Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libpaper 2.2.5.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
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 \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and [email protected] about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323 # as_fn_nop
324 # ---------
325 # Do nothing but, unlike ":", preserve the value of $?.
326 as_fn_nop ()
327 {
328 return $?
329 }
330 as_nop=as_fn_nop
331
332 # as_fn_mkdir_p
333 # -------------
334 # Create "$as_dir" as a directory, including parents if necessary.
335 as_fn_mkdir_p ()
336 {
337
338 case $as_dir in #(
339 -*) as_dir=./$as_dir;;
340 esac
341 test -d "$as_dir" || eval $as_mkdir_p || {
342 as_dirs=
343 while :; do
344 case $as_dir in #(
345 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
346 *) as_qdir=$as_dir;;
347 esac
348 as_dirs="'$as_qdir' $as_dirs"
349 as_dir=`$as_dirname -- "$as_dir" ||
350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
351 X"$as_dir" : 'X\(//\)[^/]' \| \
352 X"$as_dir" : 'X\(//\)$' \| \
353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
354 printf "%s\n" X"$as_dir" |
355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\/\)[^/].*/{
360 s//\1/
361 q
362 }
363 /^X\(\/\/\)$/{
364 s//\1/
365 q
366 }
367 /^X\(\/\).*/{
368 s//\1/
369 q
370 }
371 s/.*/./; q'`
372 test -d "$as_dir" && break
373 done
374 test -z "$as_dirs" || eval "mkdir $as_dirs"
375 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
376
377
378 } # as_fn_mkdir_p
379
380 # as_fn_executable_p FILE
381 # -----------------------
382 # Test if FILE is an executable regular file.
383 as_fn_executable_p ()
384 {
385 test -f "$1" && test -x "$1"
386 } # as_fn_executable_p
387 # as_fn_append VAR VALUE
388 # ----------------------
389 # Append the text in VALUE to the end of the definition contained in VAR. Take
390 # advantage of any shell optimizations that allow amortized linear growth over
391 # repeated appends, instead of the typical quadratic growth present in naive
392 # implementations.
393 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
394 then :
395 eval 'as_fn_append ()
396 {
397 eval $1+=\$2
398 }'
399 else $as_nop
400 as_fn_append ()
401 {
402 eval $1=\$$1\$2
403 }
404 fi # as_fn_append
405
406 # as_fn_arith ARG...
407 # ------------------
408 # Perform arithmetic evaluation on the ARGs, and store the result in the
409 # global $as_val. Take advantage of shells that can avoid forks. The arguments
410 # must be portable across $(()) and expr.
411 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
412 then :
413 eval 'as_fn_arith ()
414 {
415 as_val=$(( $* ))
416 }'
417 else $as_nop
418 as_fn_arith ()
419 {
420 as_val=`expr "$@" || test $? -eq 1`
421 }
422 fi # as_fn_arith
423
424 # as_fn_nop
425 # ---------
426 # Do nothing but, unlike ":", preserve the value of $?.
427 as_fn_nop ()
428 {
429 return $?
430 }
431 as_nop=as_fn_nop
432
433 # as_fn_error STATUS ERROR [LINENO LOG_FD]
434 # ----------------------------------------
435 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
436 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
437 # script with STATUS, using 1 if that was 0.
438 as_fn_error ()
439 {
440 as_status=$1; test $as_status -eq 0 && as_status=1
441 if test "$4"; then
442 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
444 fi
445 printf "%s\n" "$as_me: error: $2" >&2
446 as_fn_exit $as_status
447 } # as_fn_error
448
449 if expr a : '\(a\)' >/dev/null 2>&1 &&
450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
451 as_expr=expr
452 else
453 as_expr=false
454 fi
455
456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
457 as_basename=basename
458 else
459 as_basename=false
460 fi
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
466 fi
467
468 as_me=`$as_basename -- "$0" ||
469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
470 X"$0" : 'X\(//\)$' \| \
471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
472 printf "%s\n" X/"$0" |
473 sed '/^.*\/\([^/][^/]*\)\/*$/{
474 s//\1/
475 q
476 }
477 /^X\/\(\/\/\)$/{
478 s//\1/
479 q
480 }
481 /^X\/\(\/\).*/{
482 s//\1/
483 q
484 }
485 s/.*/./; q'`
486
487 # Avoid depending upon Character Ranges.
488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
491 as_cr_digits='0123456789'
492 as_cr_alnum=$as_cr_Letters$as_cr_digits
493
494
495 as_lineno_1=$LINENO as_lineno_1a=$LINENO
496 as_lineno_2=$LINENO as_lineno_2a=$LINENO
497 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
498 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
499 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
500 sed -n '
501 p
502 /[$]LINENO/=
503 ' <$as_myself |
504 sed '
505 s/[$]LINENO.*/&-/
506 t lineno
507 b
508 :lineno
509 N
510 :loop
511 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
512 t loop
513 s/-\n.*//
514 ' >$as_me.lineno &&
515 chmod +x "$as_me.lineno" ||
516 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
517
518 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
519 # already done that, so ensure we don't try to do so again and fall
520 # in an infinite loop. This has already happened in practice.
521 _as_can_reexec=no; export _as_can_reexec
522 # Don't try to exec as it changes $[0], causing all sort of problems
523 # (the dirname of $[0] is not the place where we might find the
524 # original and so on. Autoconf is especially sensitive to this).
525 . "./$as_me.lineno"
526 # Exit status is that of the last command.
527 exit
528 }
529
530
531 # Determine whether it's possible to make 'echo' print without a newline.
532 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
533 # for compatibility with existing Makefiles.
534 ECHO_C= ECHO_N= ECHO_T=
535 case `echo -n x` in #(((((
536 -n*)
537 case `echo 'xy\c'` in
538 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
539 xy) ECHO_C='\c';;
540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
541 ECHO_T=' ';;
542 esac;;
543 *)
544 ECHO_N='-n';;
545 esac
546
547 # For backward compatibility with old third-party macros, we provide
548 # the shell variables $as_echo and $as_echo_n. New code should use
549 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
550 as_echo='printf %s\n'
551 as_echo_n='printf %s'
552
553
554 rm -f conf$$ conf$$.exe conf$$.file
555 if test -d conf$$.dir; then
556 rm -f conf$$.dir/conf$$.file
557 else
558 rm -f conf$$.dir
559 mkdir conf$$.dir 2>/dev/null
560 fi
561 if (echo >conf$$.file) 2>/dev/null; then
562 if ln -s conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s='ln -s'
564 # ... but there are two gotchas:
565 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
566 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
567 # In both cases, we have to default to `cp -pR'.
568 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
569 as_ln_s='cp -pR'
570 elif ln conf$$.file conf$$ 2>/dev/null; then
571 as_ln_s=ln
572 else
573 as_ln_s='cp -pR'
574 fi
575 else
576 as_ln_s='cp -pR'
577 fi
578 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
579 rmdir conf$$.dir 2>/dev/null
580
581 if mkdir -p . 2>/dev/null; then
582 as_mkdir_p='mkdir -p "$as_dir"'
583 else
584 test -d ./-p && rmdir ./-p
585 as_mkdir_p=false
586 fi
587
588 as_test_x='test -x'
589 as_executable_p=as_fn_executable_p
590
591 # Sed expression to map a string onto a valid CPP name.
592 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
593
594 # Sed expression to map a string onto a valid variable name.
595 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
596
597 SHELL=${CONFIG_SHELL-/bin/sh}
598
599
600 test -n "$DJDIR" || exec 7<&0 </dev/null
601 exec 6>&1
602
603 # Name of the host.
604 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
605 # so uname gets run too.
606 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
607
608 #
609 # Initializations.
610 #
611 ac_default_prefix=/usr/local
612 ac_clean_files=
613 ac_config_libobj_dir=.
614 LIBOBJS=
615 cross_compiling=no
616 subdirs=
617 MFLAGS=
618 MAKEFLAGS=
619
620 # Identity of this package.
621 PACKAGE_NAME='libpaper'
622 PACKAGE_TARNAME='libpaper'
623 PACKAGE_VERSION='2.2.5'
624 PACKAGE_STRING='libpaper 2.2.5'
625 PACKAGE_BUGREPORT='[email protected]'
626 PACKAGE_URL='https://github.com/rrthomas/libpaper'
627
628 # Factoring default headers for most tests.
629 ac_includes_default="\
630 #include <stddef.h>
631 #ifdef HAVE_STDIO_H
632 # include <stdio.h>
633 #endif
634 #ifdef HAVE_STDLIB_H
635 # include <stdlib.h>
636 #endif
637 #ifdef HAVE_STRING_H
638 # include <string.h>
639 #endif
640 #ifdef HAVE_INTTYPES_H
641 # include <inttypes.h>
642 #endif
643 #ifdef HAVE_STDINT_H
644 # include <stdint.h>
645 #endif
646 #ifdef HAVE_STRINGS_H
647 # include <strings.h>
648 #endif
649 #ifdef HAVE_SYS_TYPES_H
650 # include <sys/types.h>
651 #endif
652 #ifdef HAVE_SYS_STAT_H
653 # include <sys/stat.h>
654 #endif
655 #ifdef HAVE_UNISTD_H
656 # include <unistd.h>
657 #endif"
658
659 ac_header_c_list=
660 ac_func_c_list=
661 gl_getopt_required=POSIX
662 enable_year2038=no
663 enable_largefile=yes
664 ac_subst_vars='gl_papertests_LIBOBJDEPS
665 gl_papertests_LTLIBOBJS
666 gl_papertests_LIBOBJS
667 gl_paper_LIBOBJDEPS
668 gl_paper_LTLIBOBJS
669 gl_paper_LIBOBJS
670 gltests_LIBOBJDEPS
671 gltests_LTLIBOBJS
672 gltests_LIBOBJS
673 gl_LIBOBJDEPS
674 gl_LTLIBOBJS
675 gl_LIBOBJS
676 am__EXEEXT_FALSE
677 am__EXEEXT_TRUE
678 LTLIBOBJS
679 LIBOBJS
680 CROSS_COMPILING
681 HELP2MAN
682 PERL
683 ISYSTEM
684 WARN_CFLAGS
685 SHLIBS_IN_BINDIR_FALSE
686 SHLIBS_IN_BINDIR_TRUE
687 OS_WIN32_FALSE
688 OS_WIN32_TRUE
689 HAVE_GNU_GET_LIBC_VERSION
690 gl_papertests_WITNESS
691 GL_GL_PAPER_GNULIB_TOWCTRANS
692 GL_GL_PAPER_GNULIB_WCTRANS
693 GL_GL_PAPER_GNULIB_ISWCTYPE
694 GL_GL_PAPER_GNULIB_WCTYPE
695 GL_GL_PAPER_GNULIB_ISWXDIGIT
696 GL_GL_PAPER_GNULIB_ISWDIGIT
697 GL_GL_PAPER_GNULIB_ISWBLANK
698 REPLACE_TOWLOWER
699 REPLACE_ISWCNTRL
700 HAVE_WCTYPE_H
701 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
702 NEXT_WCTYPE_H
703 HAVE_ISWCNTRL
704 REPLACE_ISWXDIGIT
705 REPLACE_ISWDIGIT
706 REPLACE_ISWBLANK
707 HAVE_WCTRANS_T
708 HAVE_WCTYPE_T
709 HAVE_ISWBLANK
710 HAVE_CRTDEFS_H
711 HAVE_WINT_T
712 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
713 NEXT_WCHAR_H
714 HAVE_FEATURES_H
715 HAVE_UNISTD_H
716 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
717 NEXT_UNISTD_H
718 GL_GL_PAPER_GNULIB_MDA_TZSET
719 GL_GL_PAPER_GNULIB_TZSET
720 GL_GL_PAPER_GNULIB_TIME_RZ
721 GL_GL_PAPER_GNULIB_TIME_R
722 GL_GL_PAPER_GNULIB_TIMESPEC_GETRES
723 GL_GL_PAPER_GNULIB_TIMESPEC_GET
724 GL_GL_PAPER_GNULIB_TIMEGM
725 GL_GL_PAPER_GNULIB_STRPTIME
726 GL_GL_PAPER_GNULIB_STRFTIME
727 GL_GL_PAPER_GNULIB_NANOSLEEP
728 GL_GL_PAPER_GNULIB_LOCALTIME
729 GL_GL_PAPER_GNULIB_MKTIME
730 GL_GL_PAPER_GNULIB_CTIME
731 TIME_H_DEFINES_TIME_UTC
732 UNISTD_H_DEFINES_STRUCT_TIMESPEC
733 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
734 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
735 TIME_H_DEFINES_STRUCT_TIMESPEC
736 NEXT_AS_FIRST_DIRECTIVE_TIME_H
737 NEXT_TIME_H
738 REPLACE_LOCALTIME
739 REPLACE_GMTIME
740 GNULIB_GETTIMEOFDAY
741 REPLACE_TZSET
742 REPLACE_TIMESPEC_GET
743 REPLACE_TIMEGM
744 REPLACE_STRFTIME
745 REPLACE_NANOSLEEP
746 REPLACE_MKTIME
747 REPLACE_LOCALTIME_R
748 REPLACE_CTIME
749 HAVE_TIMEZONE_T
750 HAVE_TIMESPEC_GETRES
751 HAVE_TIMESPEC_GET
752 HAVE_TIMEGM
753 HAVE_STRPTIME
754 HAVE_NANOSLEEP
755 HAVE_DECL_LOCALTIME_R
756 WINDOWS_STAT_INODES
757 WINDOWS_64_BIT_OFF_T
758 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
759 NEXT_SYS_TYPES_H
760 NEXT_AS_FIRST_DIRECTIVE_STRING_H
761 NEXT_STRING_H
762 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE
763 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE
764 GL_COND_OBJ_STRERROR_FALSE
765 GL_COND_OBJ_STRERROR_TRUE
766 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
767 NEXT_STDLIB_H
768 GL_COND_OBJ_STDIO_WRITE_FALSE
769 GL_COND_OBJ_STDIO_WRITE_TRUE
770 GL_COND_OBJ_STDIO_READ_FALSE
771 GL_COND_OBJ_STDIO_READ_TRUE
772 GL_GL_PAPER_GNULIB_MDA_TEMPNAM
773 GL_GL_PAPER_GNULIB_MDA_PUTW
774 GL_GL_PAPER_GNULIB_MDA_GETW
775 GL_GL_PAPER_GNULIB_MDA_FILENO
776 GL_GL_PAPER_GNULIB_MDA_FDOPEN
777 GL_GL_PAPER_GNULIB_MDA_FCLOSEALL
778 GL_GL_PAPER_GNULIB_VSPRINTF_POSIX
779 GL_GL_PAPER_GNULIB_VSNPRINTF
780 GL_GL_PAPER_GNULIB_VPRINTF_POSIX
781 GL_GL_PAPER_GNULIB_VPRINTF
782 GL_GL_PAPER_GNULIB_VFPRINTF_POSIX
783 GL_GL_PAPER_GNULIB_VFPRINTF
784 GL_GL_PAPER_GNULIB_VDPRINTF
785 GL_GL_PAPER_GNULIB_VSCANF
786 GL_GL_PAPER_GNULIB_VFSCANF
787 GL_GL_PAPER_GNULIB_VASPRINTF
788 GL_GL_PAPER_GNULIB_TMPFILE
789 GL_GL_PAPER_GNULIB_STDIO_H_SIGPIPE
790 GL_GL_PAPER_GNULIB_STDIO_H_NONBLOCKING
791 GL_GL_PAPER_GNULIB_SPRINTF_POSIX
792 GL_GL_PAPER_GNULIB_SNPRINTF
793 GL_GL_PAPER_GNULIB_SCANF
794 GL_GL_PAPER_GNULIB_RENAMEAT
795 GL_GL_PAPER_GNULIB_RENAME
796 GL_GL_PAPER_GNULIB_REMOVE
797 GL_GL_PAPER_GNULIB_PUTS
798 GL_GL_PAPER_GNULIB_PUTCHAR
799 GL_GL_PAPER_GNULIB_PUTC
800 GL_GL_PAPER_GNULIB_PRINTF_POSIX
801 GL_GL_PAPER_GNULIB_PRINTF
802 GL_GL_PAPER_GNULIB_POPEN
803 GL_GL_PAPER_GNULIB_PERROR
804 GL_GL_PAPER_GNULIB_PCLOSE
805 GL_GL_PAPER_GNULIB_OBSTACK_PRINTF_POSIX
806 GL_GL_PAPER_GNULIB_OBSTACK_PRINTF
807 GL_GL_PAPER_GNULIB_GETLINE
808 GL_GL_PAPER_GNULIB_GETDELIM
809 GL_GL_PAPER_GNULIB_GETCHAR
810 GL_GL_PAPER_GNULIB_GETC
811 GL_GL_PAPER_GNULIB_FWRITE
812 GL_GL_PAPER_GNULIB_FTELLO
813 GL_GL_PAPER_GNULIB_FTELL
814 GL_GL_PAPER_GNULIB_FSEEKO
815 GL_GL_PAPER_GNULIB_FSEEK
816 GL_GL_PAPER_GNULIB_FSCANF
817 GL_GL_PAPER_GNULIB_FREOPEN
818 GL_GL_PAPER_GNULIB_FREAD
819 GL_GL_PAPER_GNULIB_FPUTS
820 GL_GL_PAPER_GNULIB_FPUTC
821 GL_GL_PAPER_GNULIB_FPURGE
822 GL_GL_PAPER_GNULIB_FPRINTF_POSIX
823 GL_GL_PAPER_GNULIB_FPRINTF
824 GL_GL_PAPER_GNULIB_FOPEN_GNU
825 GL_GL_PAPER_GNULIB_FOPEN
826 GL_GL_PAPER_GNULIB_FGETS
827 GL_GL_PAPER_GNULIB_FGETC
828 GL_GL_PAPER_GNULIB_FFLUSH
829 GL_GL_PAPER_GNULIB_FDOPEN
830 GL_GL_PAPER_GNULIB_FCLOSE
831 GL_GL_PAPER_GNULIB_DPRINTF
832 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
833 NEXT_STDIO_H
834 REPLACE_VSPRINTF
835 REPLACE_VSNPRINTF
836 REPLACE_VPRINTF
837 REPLACE_VFPRINTF
838 REPLACE_VDPRINTF
839 REPLACE_VASPRINTF
840 REPLACE_TMPFILE
841 REPLACE_STDIO_WRITE_FUNCS
842 REPLACE_STDIO_READ_FUNCS
843 REPLACE_SPRINTF
844 REPLACE_SNPRINTF
845 REPLACE_RENAMEAT
846 REPLACE_RENAME
847 REPLACE_REMOVE
848 REPLACE_PRINTF
849 REPLACE_POPEN
850 REPLACE_PERROR
851 REPLACE_OBSTACK_PRINTF
852 REPLACE_GETLINE
853 REPLACE_GETDELIM
854 REPLACE_FTELLO
855 REPLACE_FTELL
856 REPLACE_FSEEKO
857 REPLACE_FSEEK
858 REPLACE_FREOPEN
859 REPLACE_FPURGE
860 REPLACE_FPRINTF
861 REPLACE_FOPEN_FOR_FOPEN_GNU
862 REPLACE_FOPEN
863 REPLACE_FFLUSH
864 REPLACE_FDOPEN
865 REPLACE_FCLOSE
866 REPLACE_DPRINTF
867 HAVE_VDPRINTF
868 HAVE_VASPRINTF
869 HAVE_RENAMEAT
870 HAVE_POPEN
871 HAVE_PCLOSE
872 HAVE_FTELLO
873 HAVE_FSEEKO
874 HAVE_DPRINTF
875 HAVE_DECL_VSNPRINTF
876 HAVE_DECL_SNPRINTF
877 HAVE_DECL_PUTW
878 HAVE_DECL_OBSTACK_PRINTF
879 HAVE_DECL_GETW
880 HAVE_DECL_GETLINE
881 HAVE_DECL_GETDELIM
882 HAVE_DECL_FTELLO
883 HAVE_DECL_FSEEKO
884 HAVE_DECL_FPURGE
885 HAVE_DECL_FCLOSEALL
886 GL_GENERATE_STDINT_H_FALSE
887 GL_GENERATE_STDINT_H_TRUE
888 STDINT_H
889 GL_GENERATE_STDDEF_H_FALSE
890 GL_GENERATE_STDDEF_H_TRUE
891 STDDEF_H
892 GL_GENERATE_STDCKDINT_H_FALSE
893 GL_GENERATE_STDCKDINT_H_TRUE
894 STDCKDINT_H
895 GL_GENERATE_STDARG_H_FALSE
896 GL_GENERATE_STDARG_H_TRUE
897 STDARG_H
898 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
899 NEXT_STDARG_H
900 GL_COND_OBJ_STAT_FALSE
901 GL_COND_OBJ_STAT_TRUE
902 GL_COND_OBJ_SETLOCALE_LOCK_FALSE
903 GL_COND_OBJ_SETLOCALE_LOCK_TRUE
904 GL_COND_OBJ_PROGRELOC_FALSE
905 GL_COND_OBJ_PROGRELOC_TRUE
906 RELOCATABLE_STRIP
907 RELOCATABLE_BUILD_DIR
908 RELOCATABLE_SRC_DIR
909 RELOCATABLE_CONFIG_H_DIR
910 RELOCATABLE_LIBRARY_PATH
911 RELOCATABLE_VIA_WRAPPER_FALSE
912 RELOCATABLE_VIA_WRAPPER_TRUE
913 RELOCATABLE_VIA_LD_FALSE
914 RELOCATABLE_VIA_LD_TRUE
915 INSTALL_PROGRAM_ENV
916 RELOCATABLE_LDFLAGS
917 GL_COND_OBJ_REALLOCARRAY_FALSE
918 GL_COND_OBJ_REALLOCARRAY_TRUE
919 GL_COND_OBJ_READLINK_FALSE
920 GL_COND_OBJ_READLINK_TRUE
921 GL_COND_OBJ_RAWMEMCHR_FALSE
922 GL_COND_OBJ_RAWMEMCHR_TRUE
923 GL_COND_OBJ_OPEN_FALSE
924 GL_COND_OBJ_OPEN_TRUE
925 GL_COND_OBJ_MSVC_NOTHROW_FALSE
926 GL_COND_OBJ_MSVC_NOTHROW_TRUE
927 GL_COND_OBJ_MSVC_INVAL_FALSE
928 GL_COND_OBJ_MSVC_INVAL_TRUE
929 GL_COND_OBJ_MEMPCPY_FALSE
930 GL_COND_OBJ_MEMPCPY_TRUE
931 GL_GL_PAPER_GNULIB_MDA_STRDUP
932 GL_GL_PAPER_GNULIB_MDA_MEMCCPY
933 GL_GL_PAPER_GNULIB_STRVERSCMP
934 GL_GL_PAPER_GNULIB_STRSIGNAL
935 GL_GL_PAPER_GNULIB_SIGDESCR_NP
936 GL_GL_PAPER_GNULIB_SIGABBREV_NP
937 GL_GL_PAPER_GNULIB_STRERRORNAME_NP
938 GL_GL_PAPER_GNULIB_STRERROR_R
939 GL_GL_PAPER_GNULIB_STRERROR
940 GL_GL_PAPER_GNULIB_MBSTOK_R
941 GL_GL_PAPER_GNULIB_MBSSEP
942 GL_GL_PAPER_GNULIB_MBSSPN
943 GL_GL_PAPER_GNULIB_MBSPBRK
944 GL_GL_PAPER_GNULIB_MBSCSPN
945 GL_GL_PAPER_GNULIB_MBSCASESTR
946 GL_GL_PAPER_GNULIB_MBSPCASECMP
947 GL_GL_PAPER_GNULIB_MBSNCASECMP
948 GL_GL_PAPER_GNULIB_MBSCASECMP
949 GL_GL_PAPER_GNULIB_MBSSTR
950 GL_GL_PAPER_GNULIB_MBSRCHR
951 GL_GL_PAPER_GNULIB_MBSCHR
952 GL_GL_PAPER_GNULIB_MBSNLEN
953 GL_GL_PAPER_GNULIB_MBSLEN
954 GL_GL_PAPER_GNULIB_STRTOK_R
955 GL_GL_PAPER_GNULIB_STRCASESTR
956 GL_GL_PAPER_GNULIB_STRSTR
957 GL_GL_PAPER_GNULIB_STRSEP
958 GL_GL_PAPER_GNULIB_STRPBRK
959 GL_GL_PAPER_GNULIB_STRNLEN
960 GL_GL_PAPER_GNULIB_STRNDUP
961 GL_GL_PAPER_GNULIB_STRNCAT
962 GL_GL_PAPER_GNULIB_STRDUP
963 GL_GL_PAPER_GNULIB_STRCHRNUL
964 GL_GL_PAPER_GNULIB_STPNCPY
965 GL_GL_PAPER_GNULIB_STPCPY
966 GL_GL_PAPER_GNULIB_RAWMEMCHR
967 GL_GL_PAPER_GNULIB_MEMSET_EXPLICIT
968 GL_GL_PAPER_GNULIB_MEMRCHR
969 GL_GL_PAPER_GNULIB_MEMPCPY
970 GL_GL_PAPER_GNULIB_MEMMEM
971 GL_GL_PAPER_GNULIB_MEMCHR
972 GL_GL_PAPER_GNULIB_FFSLL
973 GL_GL_PAPER_GNULIB_FFSL
974 GL_GL_PAPER_GNULIB_EXPLICIT_BZERO
975 GL_COND_OBJ_MEMCHR_FALSE
976 GL_COND_OBJ_MEMCHR_TRUE
977 UNDEFINE_STRTOK_R
978 REPLACE_STRSIGNAL
979 REPLACE_STRERRORNAME_NP
980 REPLACE_STRERROR_R
981 REPLACE_STRERROR
982 REPLACE_STRTOK_R
983 REPLACE_STRCASESTR
984 REPLACE_STRSTR
985 REPLACE_STRNLEN
986 REPLACE_STRNDUP
987 REPLACE_STRNCAT
988 REPLACE_STRDUP
989 REPLACE_STRCHRNUL
990 REPLACE_STPNCPY
991 REPLACE_STPCPY
992 REPLACE_MEMPCPY
993 REPLACE_MEMMEM
994 REPLACE_MEMCHR
995 REPLACE_FFSLL
996 HAVE_STRVERSCMP
997 HAVE_DECL_STRSIGNAL
998 HAVE_SIGDESCR_NP
999 HAVE_SIGABBREV_NP
1000 HAVE_STRERRORNAME_NP
1001 HAVE_DECL_STRERROR_R
1002 HAVE_DECL_STRTOK_R
1003 HAVE_STRCASESTR
1004 HAVE_STRSEP
1005 HAVE_STRPBRK
1006 HAVE_DECL_STRNLEN
1007 HAVE_DECL_STRNDUP
1008 HAVE_DECL_STRDUP
1009 HAVE_STRCHRNUL
1010 HAVE_STPNCPY
1011 HAVE_STPCPY
1012 HAVE_RAWMEMCHR
1013 HAVE_DECL_MEMRCHR
1014 HAVE_MEMSET_EXPLICIT
1015 HAVE_MEMPCPY
1016 HAVE_DECL_MEMMEM
1017 HAVE_FFSLL
1018 HAVE_FFSL
1019 HAVE_EXPLICIT_BZERO
1020 HAVE_MBSLEN
1021 GL_COND_OBJ_MBSINIT_FALSE
1022 GL_COND_OBJ_MBSINIT_TRUE
1023 GL_GL_PAPER_GNULIB_MDA_WCSDUP
1024 GL_GL_PAPER_GNULIB_WGETCWD
1025 GL_GL_PAPER_GNULIB_WCSFTIME
1026 GL_GL_PAPER_GNULIB_WCSWIDTH
1027 GL_GL_PAPER_GNULIB_WCSTOK
1028 GL_GL_PAPER_GNULIB_WCSSTR
1029 GL_GL_PAPER_GNULIB_WCSPBRK
1030 GL_GL_PAPER_GNULIB_WCSSPN
1031 GL_GL_PAPER_GNULIB_WCSCSPN
1032 GL_GL_PAPER_GNULIB_WCSRCHR
1033 GL_GL_PAPER_GNULIB_WCSCHR
1034 GL_GL_PAPER_GNULIB_WCSDUP
1035 GL_GL_PAPER_GNULIB_WCSXFRM
1036 GL_GL_PAPER_GNULIB_WCSCOLL
1037 GL_GL_PAPER_GNULIB_WCSNCASECMP
1038 GL_GL_PAPER_GNULIB_WCSCASECMP
1039 GL_GL_PAPER_GNULIB_WCSNCMP
1040 GL_GL_PAPER_GNULIB_WCSCMP
1041 GL_GL_PAPER_GNULIB_WCSNCAT
1042 GL_GL_PAPER_GNULIB_WCSCAT
1043 GL_GL_PAPER_GNULIB_WCPNCPY
1044 GL_GL_PAPER_GNULIB_WCSNCPY
1045 GL_GL_PAPER_GNULIB_WCPCPY
1046 GL_GL_PAPER_GNULIB_WCSCPY
1047 GL_GL_PAPER_GNULIB_WCSNLEN
1048 GL_GL_PAPER_GNULIB_WCSLEN
1049 GL_GL_PAPER_GNULIB_WMEMSET
1050 GL_GL_PAPER_GNULIB_WMEMPCPY
1051 GL_GL_PAPER_GNULIB_WMEMMOVE
1052 GL_GL_PAPER_GNULIB_WMEMCPY
1053 GL_GL_PAPER_GNULIB_WMEMCMP
1054 GL_GL_PAPER_GNULIB_WMEMCHR
1055 GL_GL_PAPER_GNULIB_WCWIDTH
1056 GL_GL_PAPER_GNULIB_WCSNRTOMBS
1057 GL_GL_PAPER_GNULIB_WCSRTOMBS
1058 GL_GL_PAPER_GNULIB_WCRTOMB
1059 GL_GL_PAPER_GNULIB_MBSNRTOWCS
1060 GL_GL_PAPER_GNULIB_MBSRTOWCS
1061 GL_GL_PAPER_GNULIB_MBRLEN
1062 GL_GL_PAPER_GNULIB_MBRTOWC
1063 GL_GL_PAPER_GNULIB_MBSZERO
1064 GL_GL_PAPER_GNULIB_MBSINIT
1065 GL_GL_PAPER_GNULIB_WCTOB
1066 GL_GL_PAPER_GNULIB_BTOWC
1067 HAVE_VISIBILITY
1068 CFLAG_VISIBILITY
1069 GL_COND_OBJ_MBRTOWC_FALSE
1070 GL_COND_OBJ_MBRTOWC_TRUE
1071 LIB_MBRTOWC
1072 MBRTOWC_LIB
1073 LOCALE_ZH_CN
1074 LOCALE_FR_UTF8
1075 LOCALE_JA
1076 REPLACE_WMEMPCPY
1077 REPLACE_WMEMCMP
1078 REPLACE_WCSTOK
1079 REPLACE_WCSSTR
1080 REPLACE_WCSNCMP
1081 REPLACE_WCSCMP
1082 REPLACE_WCSFTIME
1083 REPLACE_WCSWIDTH
1084 REPLACE_WCWIDTH
1085 REPLACE_WCSNRTOMBS
1086 REPLACE_WCSRTOMBS
1087 REPLACE_WCRTOMB
1088 REPLACE_MBSNRTOWCS
1089 REPLACE_MBSRTOWCS
1090 REPLACE_MBRLEN
1091 REPLACE_MBRTOWC
1092 REPLACE_MBSINIT
1093 REPLACE_WCTOB
1094 REPLACE_BTOWC
1095 REPLACE_MBSTATE_T
1096 HAVE_DECL_WCWIDTH
1097 HAVE_DECL_WCSDUP
1098 HAVE_DECL_WCTOB
1099 HAVE_WCSFTIME
1100 HAVE_WCSWIDTH
1101 HAVE_WCSTOK
1102 HAVE_WCSSTR
1103 HAVE_WCSPBRK
1104 HAVE_WCSSPN
1105 HAVE_WCSCSPN
1106 HAVE_WCSRCHR
1107 HAVE_WCSCHR
1108 HAVE_WCSDUP
1109 HAVE_WCSXFRM
1110 HAVE_WCSCOLL
1111 HAVE_WCSNCASECMP
1112 HAVE_WCSCASECMP
1113 HAVE_WCSNCMP
1114 HAVE_WCSCMP
1115 HAVE_WCSNCAT
1116 HAVE_WCSCAT
1117 HAVE_WCPNCPY
1118 HAVE_WCSNCPY
1119 HAVE_WCPCPY
1120 HAVE_WCSCPY
1121 HAVE_WCSNLEN
1122 HAVE_WCSLEN
1123 HAVE_WMEMSET
1124 HAVE_WMEMPCPY
1125 HAVE_WMEMMOVE
1126 HAVE_WMEMCPY
1127 HAVE_WMEMCMP
1128 HAVE_WMEMCHR
1129 HAVE_WCSNRTOMBS
1130 HAVE_WCSRTOMBS
1131 HAVE_WCRTOMB
1132 HAVE_MBSNRTOWCS
1133 HAVE_MBSRTOWCS
1134 HAVE_MBRLEN
1135 HAVE_MBRTOWC
1136 HAVE_MBSINIT
1137 HAVE_BTOWC
1138 GL_GL_PAPER_GNULIB_LOCALENAME
1139 GL_GL_PAPER_GNULIB_DUPLOCALE
1140 GL_GL_PAPER_GNULIB_SETLOCALE_NULL
1141 GL_GL_PAPER_GNULIB_SETLOCALE
1142 GL_GL_PAPER_GNULIB_LOCALECONV
1143 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1144 NEXT_LOCALE_H
1145 HAVE_XLOCALE_H
1146 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1147 NEXT_STDDEF_H
1148 HAVE_WCHAR_T
1149 HAVE_MAX_ALIGN_T
1150 REPLACE_NULL
1151 LOCALENAME_ENHANCE_LOCALE_FUNCS
1152 REPLACE_STRUCT_LCONV
1153 REPLACE_FREELOCALE
1154 REPLACE_DUPLOCALE
1155 REPLACE_NEWLOCALE
1156 REPLACE_SETLOCALE
1157 REPLACE_LOCALECONV
1158 HAVE_FREELOCALE
1159 HAVE_DUPLOCALE
1160 HAVE_NEWLOCALE
1161 LOCALCHARSET_TESTS_ENVIRONMENT
1162 GL_GENERATE_LIMITS_H_FALSE
1163 GL_GENERATE_LIMITS_H_TRUE
1164 LIMITS_H
1165 GL_GL_PAPER_GNULIB_STRTOUMAX
1166 GL_GL_PAPER_GNULIB_STRTOIMAX
1167 GL_GL_PAPER_GNULIB_IMAXDIV
1168 GL_GL_PAPER_GNULIB_IMAXABS
1169 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1170 NEXT_INTTYPES_H
1171 UINT64_MAX_EQ_ULONG_MAX
1172 UINT32_MAX_LT_UINTMAX_MAX
1173 PRIPTR_PREFIX
1174 INT64_MAX_EQ_LONG_MAX
1175 INT32_MAX_LT_INTMAX_MAX
1176 REPLACE_STRTOUMAX
1177 REPLACE_STRTOIMAX
1178 REPLACE_IMAXDIV
1179 REPLACE_IMAXABS
1180 HAVE_IMAXDIV
1181 HAVE_IMAXABS
1182 HAVE_IMAXDIV_T
1183 HAVE_DECL_STRTOUMAX
1184 HAVE_DECL_STRTOIMAX
1185 HAVE_DECL_IMAXDIV
1186 HAVE_DECL_IMAXABS
1187 HAVE_SYS_INTTYPES_H
1188 HAVE_SYS_BITYPES_H
1189 HAVE_C99_STDINT_H
1190 WINT_T_SUFFIX
1191 WCHAR_T_SUFFIX
1192 SIG_ATOMIC_T_SUFFIX
1193 SIZE_T_SUFFIX
1194 PTRDIFF_T_SUFFIX
1195 HAVE_SIGNED_WINT_T
1196 HAVE_SIGNED_WCHAR_T
1197 HAVE_SIGNED_SIG_ATOMIC_T
1198 BITSIZEOF_WINT_T
1199 BITSIZEOF_WCHAR_T
1200 BITSIZEOF_SIG_ATOMIC_T
1201 BITSIZEOF_SIZE_T
1202 BITSIZEOF_PTRDIFF_T
1203 APPLE_UNIVERSAL_BUILD
1204 HAVE_STDINT_H
1205 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1206 NEXT_STDINT_H
1207 HAVE_SYS_TYPES_H
1208 HAVE_INTTYPES_H
1209 HAVE_WCHAR_H
1210 GNULIBHEADERS_OVERRIDE_WINT_T
1211 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1212 NEXT_LIMITS_H
1213 LIB_HARD_LOCALE
1214 HARD_LOCALE_LIB
1215 LIB_SETLOCALE_NULL
1216 SETLOCALE_NULL_LIB
1217 LIB_SCHED_YIELD
1218 SCHED_YIELD_LIB
1219 LIBPMULTITHREAD
1220 LIBPTHREAD
1221 LTLIBINTL
1222 LIBINTL
1223 GL_COND_OBJ_GETPROGNAME_FALSE
1224 GL_COND_OBJ_GETPROGNAME_TRUE
1225 GL_COND_OBJ_GETOPT_FALSE
1226 GL_COND_OBJ_GETOPT_TRUE
1227 GL_GENERATE_GETOPT_CDEFS_H_FALSE
1228 GL_GENERATE_GETOPT_CDEFS_H_TRUE
1229 GETOPT_CDEFS_H
1230 GL_GENERATE_GETOPT_H_FALSE
1231 GL_GENERATE_GETOPT_H_TRUE
1232 GETOPT_H
1233 HAVE_SYS_CDEFS_H
1234 HAVE_GETOPT_H
1235 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1236 NEXT_GETOPT_H
1237 GL_COND_OBJ_GETDTABLESIZE_FALSE
1238 GL_COND_OBJ_GETDTABLESIZE_TRUE
1239 GL_GL_PAPER_GNULIB_MDA_UMASK
1240 GL_GL_PAPER_GNULIB_MDA_MKDIR
1241 GL_GL_PAPER_GNULIB_MDA_CHMOD
1242 GL_GL_PAPER_GNULIB_OVERRIDES_STRUCT_STAT
1243 GL_GL_PAPER_GNULIB_UTIMENSAT
1244 GL_GL_PAPER_GNULIB_STAT
1245 GL_GL_PAPER_GNULIB_MKNODAT
1246 GL_GL_PAPER_GNULIB_MKNOD
1247 GL_GL_PAPER_GNULIB_MKFIFOAT
1248 GL_GL_PAPER_GNULIB_MKFIFO
1249 GL_GL_PAPER_GNULIB_MKDIRAT
1250 GL_GL_PAPER_GNULIB_MKDIR
1251 GL_GL_PAPER_GNULIB_LSTAT
1252 GL_GL_PAPER_GNULIB_LCHMOD
1253 GL_GL_PAPER_GNULIB_GETUMASK
1254 GL_GL_PAPER_GNULIB_FUTIMENS
1255 GL_GL_PAPER_GNULIB_FSTATAT
1256 GL_GL_PAPER_GNULIB_FSTAT
1257 GL_GL_PAPER_GNULIB_FCHMODAT
1258 GL_GL_PAPER_GNULIB_CHMOD
1259 WINDOWS_64_BIT_ST_SIZE
1260 WINDOWS_STAT_TIMESPEC
1261 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1262 NEXT_SYS_STAT_H
1263 GL_COND_OBJ_FSTAT_FALSE
1264 GL_COND_OBJ_FSTAT_TRUE
1265 REPLACE_UTIMENSAT
1266 REPLACE_STAT
1267 REPLACE_MKNODAT
1268 REPLACE_MKNOD
1269 REPLACE_MKFIFOAT
1270 REPLACE_MKFIFO
1271 REPLACE_MKDIR
1272 REPLACE_LSTAT
1273 REPLACE_FUTIMENS
1274 REPLACE_FSTATAT
1275 REPLACE_FSTAT
1276 REPLACE_FCHMODAT
1277 REPLACE_CHMOD
1278 HAVE_UTIMENSAT
1279 HAVE_MKNODAT
1280 HAVE_MKNOD
1281 HAVE_MKFIFOAT
1282 HAVE_MKFIFO
1283 HAVE_MKDIRAT
1284 HAVE_LSTAT
1285 HAVE_LCHMOD
1286 HAVE_GETUMASK
1287 HAVE_FUTIMENS
1288 HAVE_FSTATAT
1289 HAVE_FCHMODAT
1290 GL_COND_OBJ_FREE_FALSE
1291 GL_COND_OBJ_FREE_TRUE
1292 GL_COND_OBJ_ITOLD_FALSE
1293 GL_COND_OBJ_ITOLD_TRUE
1294 GL_COND_OBJ_FLOAT_FALSE
1295 GL_COND_OBJ_FLOAT_TRUE
1296 GL_GENERATE_FLOAT_H_FALSE
1297 GL_GENERATE_FLOAT_H_TRUE
1298 FLOAT_H
1299 REPLACE_ITOLD
1300 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1301 NEXT_FLOAT_H
1302 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1303 NEXT_FCNTL_H
1304 GL_GL_PAPER_GNULIB_MDA_OPEN
1305 GL_GL_PAPER_GNULIB_MDA_CREAT
1306 GL_GL_PAPER_GNULIB_OPENAT
1307 GL_GL_PAPER_GNULIB_OPEN
1308 GL_GL_PAPER_GNULIB_NONBLOCKING
1309 GL_GL_PAPER_GNULIB_FCNTL
1310 GL_GL_PAPER_GNULIB_CREAT
1311 GL_COND_OBJ_FCNTL_FALSE
1312 GL_COND_OBJ_FCNTL_TRUE
1313 REPLACE_OPENAT
1314 REPLACE_OPEN
1315 REPLACE_FCNTL
1316 REPLACE_CREAT
1317 HAVE_OPENAT
1318 HAVE_FCNTL
1319 GL_GENERATE_ERROR_H_FALSE
1320 GL_GENERATE_ERROR_H_TRUE
1321 ERROR_H
1322 GL_COND_OBJ_ERROR_FALSE
1323 GL_COND_OBJ_ERROR_TRUE
1324 REPLACE_ERROR_AT_LINE
1325 REPLACE_ERROR
1326 HAVE_ERROR_AT_LINE
1327 HAVE_ERROR
1328 HAVE_ERROR_H
1329 NEXT_AS_FIRST_DIRECTIVE_ERROR_H
1330 NEXT_ERROR_H
1331 GL_GENERATE_ERRNO_H_FALSE
1332 GL_GENERATE_ERRNO_H_TRUE
1333 ERRNO_H
1334 EOVERFLOW_VALUE
1335 EOVERFLOW_HIDDEN
1336 ENOLINK_VALUE
1337 ENOLINK_HIDDEN
1338 EMULTIHOP_VALUE
1339 EMULTIHOP_HIDDEN
1340 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1341 NEXT_ERRNO_H
1342 GL_COND_OBJ_DUP2_FALSE
1343 GL_COND_OBJ_DUP2_TRUE
1344 GL_GL_PAPER_GNULIB_MDA_WRITE
1345 GL_GL_PAPER_GNULIB_MDA_UNLINK
1346 GL_GL_PAPER_GNULIB_MDA_SWAB
1347 GL_GL_PAPER_GNULIB_MDA_RMDIR
1348 GL_GL_PAPER_GNULIB_MDA_READ
1349 GL_GL_PAPER_GNULIB_MDA_LSEEK
1350 GL_GL_PAPER_GNULIB_MDA_ISATTY
1351 GL_GL_PAPER_GNULIB_MDA_GETPID
1352 GL_GL_PAPER_GNULIB_MDA_GETCWD
1353 GL_GL_PAPER_GNULIB_MDA_EXECVPE
1354 GL_GL_PAPER_GNULIB_MDA_EXECVP
1355 GL_GL_PAPER_GNULIB_MDA_EXECVE
1356 GL_GL_PAPER_GNULIB_MDA_EXECV
1357 GL_GL_PAPER_GNULIB_MDA_EXECLP
1358 GL_GL_PAPER_GNULIB_MDA_EXECLE
1359 GL_GL_PAPER_GNULIB_MDA_EXECL
1360 GL_GL_PAPER_GNULIB_MDA_DUP2
1361 GL_GL_PAPER_GNULIB_MDA_DUP
1362 GL_GL_PAPER_GNULIB_MDA_CLOSE
1363 GL_GL_PAPER_GNULIB_MDA_CHDIR
1364 GL_GL_PAPER_GNULIB_MDA_ACCESS
1365 GL_GL_PAPER_GNULIB_WRITE
1366 GL_GL_PAPER_GNULIB_USLEEP
1367 GL_GL_PAPER_GNULIB_UNLINKAT
1368 GL_GL_PAPER_GNULIB_UNLINK
1369 GL_GL_PAPER_GNULIB_UNISTD_H_SIGPIPE
1370 GL_GL_PAPER_GNULIB_UNISTD_H_NONBLOCKING
1371 GL_GL_PAPER_GNULIB_UNISTD_H_GETOPT
1372 GL_GL_PAPER_GNULIB_TTYNAME_R
1373 GL_GL_PAPER_GNULIB_TRUNCATE
1374 GL_GL_PAPER_GNULIB_SYMLINKAT
1375 GL_GL_PAPER_GNULIB_SYMLINK
1376 GL_GL_PAPER_GNULIB_SLEEP
1377 GL_GL_PAPER_GNULIB_SETHOSTNAME
1378 GL_GL_PAPER_GNULIB_RMDIR
1379 GL_GL_PAPER_GNULIB_READLINKAT
1380 GL_GL_PAPER_GNULIB_READLINK
1381 GL_GL_PAPER_GNULIB_READ
1382 GL_GL_PAPER_GNULIB_PWRITE
1383 GL_GL_PAPER_GNULIB_PREAD
1384 GL_GL_PAPER_GNULIB_PIPE2
1385 GL_GL_PAPER_GNULIB_PIPE
1386 GL_GL_PAPER_GNULIB_LSEEK
1387 GL_GL_PAPER_GNULIB_LINKAT
1388 GL_GL_PAPER_GNULIB_LINK
1389 GL_GL_PAPER_GNULIB_LCHOWN
1390 GL_GL_PAPER_GNULIB_ISATTY
1391 GL_GL_PAPER_GNULIB_GROUP_MEMBER
1392 GL_GL_PAPER_GNULIB_GETUSERSHELL
1393 GL_GL_PAPER_GNULIB_GETPASS_GNU
1394 GL_GL_PAPER_GNULIB_GETPASS
1395 GL_GL_PAPER_GNULIB_GETPAGESIZE
1396 GL_GL_PAPER_GNULIB_GETOPT_POSIX
1397 GL_GL_PAPER_GNULIB_GETLOGIN_R
1398 GL_GL_PAPER_GNULIB_GETLOGIN
1399 GL_GL_PAPER_GNULIB_GETHOSTNAME
1400 GL_GL_PAPER_GNULIB_GETGROUPS
1401 GL_GL_PAPER_GNULIB_GETENTROPY
1402 GL_GL_PAPER_GNULIB_GETDTABLESIZE
1403 GL_GL_PAPER_GNULIB_GETDOMAINNAME
1404 GL_GL_PAPER_GNULIB_GETCWD
1405 GL_GL_PAPER_GNULIB_FTRUNCATE
1406 GL_GL_PAPER_GNULIB_FSYNC
1407 GL_GL_PAPER_GNULIB_FDATASYNC
1408 GL_GL_PAPER_GNULIB_FCHOWNAT
1409 GL_GL_PAPER_GNULIB_FCHDIR
1410 GL_GL_PAPER_GNULIB_FACCESSAT
1411 GL_GL_PAPER_GNULIB_EXECVPE
1412 GL_GL_PAPER_GNULIB_EXECVP
1413 GL_GL_PAPER_GNULIB_EXECVE
1414 GL_GL_PAPER_GNULIB_EXECV
1415 GL_GL_PAPER_GNULIB_EXECLP
1416 GL_GL_PAPER_GNULIB_EXECLE
1417 GL_GL_PAPER_GNULIB_EXECL
1418 GL_GL_PAPER_GNULIB_EUIDACCESS
1419 GL_GL_PAPER_GNULIB_ENVIRON
1420 GL_GL_PAPER_GNULIB_DUP3
1421 GL_GL_PAPER_GNULIB_DUP2
1422 GL_GL_PAPER_GNULIB_DUP
1423 GL_GL_PAPER_GNULIB_COPY_FILE_RANGE
1424 GL_GL_PAPER_GNULIB_CLOSE
1425 GL_GL_PAPER_GNULIB_CHOWN
1426 GL_GL_PAPER_GNULIB_CHDIR
1427 GL_GL_PAPER_GNULIB_ACCESS
1428 GL_COND_OBJ_CLOSE_FALSE
1429 GL_COND_OBJ_CLOSE_TRUE
1430 HAVE_WINSOCK2_H
1431 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1432 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1433 UNISTD_H_HAVE_WINSOCK2_H
1434 UNISTD_H_HAVE_SYS_RANDOM_H
1435 REPLACE_WRITE
1436 REPLACE_USLEEP
1437 REPLACE_UNLINKAT
1438 REPLACE_UNLINK
1439 REPLACE_TTYNAME_R
1440 REPLACE_TRUNCATE
1441 REPLACE_SYMLINKAT
1442 REPLACE_SYMLINK
1443 REPLACE_SLEEP
1444 REPLACE_SETHOSTNAME
1445 REPLACE_RMDIR
1446 REPLACE_READLINKAT
1447 REPLACE_READLINK
1448 REPLACE_READ
1449 REPLACE_PWRITE
1450 REPLACE_PREAD
1451 REPLACE_PIPE2
1452 REPLACE_LSEEK
1453 REPLACE_LINKAT
1454 REPLACE_LINK
1455 REPLACE_LCHOWN
1456 REPLACE_ISATTY
1457 REPLACE_GETPASS_FOR_GETPASS_GNU
1458 REPLACE_GETPASS
1459 REPLACE_GETPAGESIZE
1460 REPLACE_GETGROUPS
1461 REPLACE_GETLOGIN_R
1462 REPLACE_GETENTROPY
1463 REPLACE_GETDTABLESIZE
1464 REPLACE_GETDOMAINNAME
1465 REPLACE_GETCWD
1466 REPLACE_FTRUNCATE
1467 REPLACE_FDATASYNC
1468 REPLACE_FCHOWNAT
1469 REPLACE_FACCESSAT
1470 REPLACE_EXECVPE
1471 REPLACE_EXECVP
1472 REPLACE_EXECVE
1473 REPLACE_EXECV
1474 REPLACE_EXECLP
1475 REPLACE_EXECLE
1476 REPLACE_EXECL
1477 REPLACE_DUP3
1478 REPLACE_DUP2
1479 REPLACE_DUP
1480 REPLACE_COPY_FILE_RANGE
1481 REPLACE_CLOSE
1482 REPLACE_CHOWN
1483 REPLACE_ACCESS
1484 HAVE_SYS_PARAM_H
1485 HAVE_OS_H
1486 HAVE_DECL_TTYNAME_R
1487 HAVE_DECL_TRUNCATE
1488 HAVE_DECL_SETHOSTNAME
1489 HAVE_DECL_GETUSERSHELL
1490 HAVE_DECL_GETPAGESIZE
1491 HAVE_DECL_GETLOGIN_R
1492 HAVE_DECL_GETLOGIN
1493 HAVE_DECL_GETDOMAINNAME
1494 HAVE_DECL_FDATASYNC
1495 HAVE_DECL_FCHDIR
1496 HAVE_DECL_EXECVPE
1497 HAVE_DECL_ENVIRON
1498 HAVE_USLEEP
1499 HAVE_UNLINKAT
1500 HAVE_SYMLINKAT
1501 HAVE_SYMLINK
1502 HAVE_SLEEP
1503 HAVE_SETHOSTNAME
1504 HAVE_READLINKAT
1505 HAVE_READLINK
1506 HAVE_PWRITE
1507 HAVE_PREAD
1508 HAVE_PIPE2
1509 HAVE_PIPE
1510 HAVE_LINKAT
1511 HAVE_LINK
1512 HAVE_LCHOWN
1513 HAVE_GROUP_MEMBER
1514 HAVE_GETPASS
1515 HAVE_GETPAGESIZE
1516 HAVE_GETLOGIN
1517 HAVE_GETHOSTNAME
1518 HAVE_GETGROUPS
1519 HAVE_GETENTROPY
1520 HAVE_GETDTABLESIZE
1521 HAVE_FTRUNCATE
1522 HAVE_FSYNC
1523 HAVE_FDATASYNC
1524 HAVE_FCHOWNAT
1525 HAVE_FCHDIR
1526 HAVE_FACCESSAT
1527 HAVE_EXECVPE
1528 HAVE_EUIDACCESS
1529 HAVE_DUP3
1530 HAVE_COPY_FILE_RANGE
1531 HAVE_CHOWN
1532 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE
1533 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE
1534 GL_GL_PAPER_GNULIB_MDA_PUTENV
1535 GL_GL_PAPER_GNULIB_MDA_MKTEMP
1536 GL_GL_PAPER_GNULIB_MDA_GCVT
1537 GL_GL_PAPER_GNULIB_MDA_FCVT
1538 GL_GL_PAPER_GNULIB_MDA_ECVT
1539 GL_GL_PAPER_GNULIB_WCTOMB
1540 GL_GL_PAPER_GNULIB_UNSETENV
1541 GL_GL_PAPER_GNULIB_UNLOCKPT
1542 GL_GL_PAPER_GNULIB_SYSTEM_POSIX
1543 GL_GL_PAPER_GNULIB_STRTOULL
1544 GL_GL_PAPER_GNULIB_STRTOUL
1545 GL_GL_PAPER_GNULIB_STRTOLL
1546 GL_GL_PAPER_GNULIB_STRTOLD
1547 GL_GL_PAPER_GNULIB_STRTOL
1548 GL_GL_PAPER_GNULIB_STRTOD
1549 GL_GL_PAPER_GNULIB_SETENV
1550 GL_GL_PAPER_GNULIB_SECURE_GETENV
1551 GL_GL_PAPER_GNULIB_RPMATCH
1552 GL_GL_PAPER_GNULIB_REALPATH
1553 GL_GL_PAPER_GNULIB_REALLOC_POSIX
1554 GL_GL_PAPER_GNULIB_REALLOC_GNU
1555 GL_GL_PAPER_GNULIB_REALLOCARRAY
1556 GL_GL_PAPER_GNULIB_RANDOM_R
1557 GL_GL_PAPER_GNULIB_RANDOM
1558 GL_GL_PAPER_GNULIB_QSORT_R
1559 GL_GL_PAPER_GNULIB_PUTENV
1560 GL_GL_PAPER_GNULIB_PTSNAME_R
1561 GL_GL_PAPER_GNULIB_PTSNAME
1562 GL_GL_PAPER_GNULIB_POSIX_OPENPT
1563 GL_GL_PAPER_GNULIB_POSIX_MEMALIGN
1564 GL_GL_PAPER_GNULIB_MKSTEMPS
1565 GL_GL_PAPER_GNULIB_MKSTEMP
1566 GL_GL_PAPER_GNULIB_MKOSTEMPS
1567 GL_GL_PAPER_GNULIB_MKOSTEMP
1568 GL_GL_PAPER_GNULIB_MKDTEMP
1569 GL_GL_PAPER_GNULIB_MBTOWC
1570 GL_GL_PAPER_GNULIB_MALLOC_POSIX
1571 GL_GL_PAPER_GNULIB_MALLOC_GNU
1572 GL_GL_PAPER_GNULIB_GRANTPT
1573 GL_GL_PAPER_GNULIB_GETSUBOPT
1574 GL_GL_PAPER_GNULIB_GETPROGNAME
1575 GL_GL_PAPER_GNULIB_GETLOADAVG
1576 GL_GL_PAPER_GNULIB_FREE_POSIX
1577 GL_GL_PAPER_GNULIB_CANONICALIZE_FILE_NAME
1578 GL_GL_PAPER_GNULIB_CALLOC_POSIX
1579 GL_GL_PAPER_GNULIB_CALLOC_GNU
1580 GL_GL_PAPER_GNULIB_ATOLL
1581 GL_GL_PAPER_GNULIB_ALIGNED_ALLOC
1582 GL_GL_PAPER_GNULIB__EXIT
1583 REPLACE_WCTOMB
1584 REPLACE_UNSETENV
1585 REPLACE_STRTOULL
1586 REPLACE_STRTOUL
1587 REPLACE_STRTOLL
1588 REPLACE_STRTOLD
1589 REPLACE_STRTOL
1590 REPLACE_STRTOD
1591 REPLACE_SETSTATE
1592 REPLACE_SETENV
1593 REPLACE_REALPATH
1594 REPLACE_REALLOCARRAY
1595 REPLACE_REALLOC_FOR_REALLOC_POSIX
1596 REPLACE_REALLOC_FOR_REALLOC_GNU
1597 REPLACE_RANDOM_R
1598 REPLACE_RANDOM
1599 REPLACE_QSORT_R
1600 REPLACE_PUTENV
1601 REPLACE_PTSNAME_R
1602 REPLACE_PTSNAME
1603 REPLACE_POSIX_OPENPT
1604 REPLACE_POSIX_MEMALIGN
1605 REPLACE_MKSTEMP
1606 REPLACE_MKOSTEMPS
1607 REPLACE_MKOSTEMP
1608 REPLACE_MBTOWC
1609 REPLACE_MALLOC_FOR_MALLOC_POSIX
1610 REPLACE_MALLOC_FOR_MALLOC_GNU
1611 REPLACE_INITSTATE
1612 REPLACE_GETSUBOPT
1613 REPLACE_GETPROGNAME
1614 REPLACE_GETLOADAVG
1615 REPLACE_FREE
1616 REPLACE_CANONICALIZE_FILE_NAME
1617 REPLACE_CALLOC_FOR_CALLOC_POSIX
1618 REPLACE_CALLOC_FOR_CALLOC_GNU
1619 REPLACE_ALIGNED_ALLOC
1620 REPLACE__EXIT
1621 HAVE_DECL_UNSETENV
1622 HAVE_UNLOCKPT
1623 HAVE_SYS_LOADAVG_H
1624 HAVE_STRUCT_RANDOM_DATA
1625 HAVE_STRTOULL
1626 HAVE_STRTOUL
1627 HAVE_STRTOLL
1628 HAVE_STRTOLD
1629 HAVE_STRTOL
1630 HAVE_STRTOD
1631 HAVE_DECL_SETSTATE
1632 HAVE_SETSTATE
1633 HAVE_DECL_SETENV
1634 HAVE_SETENV
1635 HAVE_SECURE_GETENV
1636 HAVE_RPMATCH
1637 HAVE_REALPATH
1638 HAVE_REALLOCARRAY
1639 HAVE_RANDOM_R
1640 HAVE_RANDOM_H
1641 HAVE_RANDOM
1642 HAVE_QSORT_R
1643 HAVE_PTSNAME_R
1644 HAVE_PTSNAME
1645 HAVE_POSIX_OPENPT
1646 HAVE_POSIX_MEMALIGN
1647 HAVE_MKSTEMPS
1648 HAVE_MKSTEMP
1649 HAVE_MKOSTEMPS
1650 HAVE_MKOSTEMP
1651 HAVE_MKDTEMP
1652 HAVE_MBTOWC
1653 HAVE_DECL_INITSTATE
1654 HAVE_INITSTATE
1655 HAVE_GRANTPT
1656 HAVE_GETSUBOPT
1657 HAVE_GETPROGNAME
1658 HAVE_DECL_GETLOADAVG
1659 HAVE_DECL_GCVT
1660 HAVE_DECL_FCVT
1661 HAVE_DECL_ECVT
1662 HAVE_CANONICALIZE_FILE_NAME
1663 HAVE_ATOLL
1664 HAVE_ALIGNED_ALLOC
1665 HAVE__EXIT
1666 GL_GENERATE_ASSERT_H_FALSE
1667 GL_GENERATE_ASSERT_H_TRUE
1668 ASSERT_H
1669 NEXT_AS_FIRST_DIRECTIVE_ASSERT_H
1670 NEXT_ASSERT_H
1671 PRAGMA_COLUMNS
1672 PRAGMA_SYSTEM_HEADER
1673 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1674 INCLUDE_NEXT
1675 GL_GENERATE_ALLOCA_H_FALSE
1676 GL_GENERATE_ALLOCA_H_TRUE
1677 ALLOCA_H
1678 HAVE_ALLOCA_H
1679 ALLOCA
1680 GL_CFLAG_GNULIB_WARNINGS
1681 GL_CFLAG_ALLOW_WARNINGS
1682 gltests_WITNESS
1683 RELOCATABLE
1684 GL_COND_LIBTOOL_FALSE
1685 GL_COND_LIBTOOL_TRUE
1686 LT_SYS_LIBRARY_PATH
1687 OTOOL64
1688 OTOOL
1689 LIPO
1690 NMEDIT
1691 DSYMUTIL
1692 MANIFEST_TOOL
1693 DLLTOOL
1694 OBJDUMP
1695 FILECMD
1696 LN_S
1697 NM
1698 ac_ct_DUMPBIN
1699 DUMPBIN
1700 LD
1701 FGREP
1702 SED
1703 LIBTOOL
1704 host_os
1705 host_vendor
1706 host_cpu
1707 host
1708 build_os
1709 build_vendor
1710 build_cpu
1711 build
1712 RANLIB
1713 ARFLAGS
1714 ac_ct_AR
1715 AR
1716 EGREP
1717 GREP
1718 CPP
1719 am__fastdepCC_FALSE
1720 am__fastdepCC_TRUE
1721 CCDEPMODE
1722 am__nodep
1723 AMDEPBACKSLASH
1724 AMDEP_FALSE
1725 AMDEP_TRUE
1726 am__include
1727 DEPDIR
1728 OBJEXT
1729 EXEEXT
1730 ac_ct_CC
1731 CPPFLAGS
1732 LDFLAGS
1733 CFLAGS
1734 CC
1735 LIBPAPER_MICRO_VERSION
1736 LIBPAPER_MINOR_VERSION
1737 LIBPAPER_MAJOR_VERSION
1738 VERSION_INFO
1739 AM_BACKSLASH
1740 AM_DEFAULT_VERBOSITY
1741 AM_DEFAULT_V
1742 AM_V
1743 CSCOPE
1744 ETAGS
1745 CTAGS
1746 am__untar
1747 am__tar
1748 AMTAR
1749 am__leading_dot
1750 SET_MAKE
1751 AWK
1752 mkdir_p
1753 MKDIR_P
1754 INSTALL_STRIP_PROGRAM
1755 STRIP
1756 install_sh
1757 MAKEINFO
1758 AUTOHEADER
1759 AUTOMAKE
1760 AUTOCONF
1761 ACLOCAL
1762 VERSION
1763 PACKAGE
1764 CYGPATH_W
1765 am__isrc
1766 INSTALL_DATA
1767 INSTALL_SCRIPT
1768 INSTALL_PROGRAM
1769 target_alias
1770 host_alias
1771 build_alias
1772 LIBS
1773 ECHO_T
1774 ECHO_N
1775 ECHO_C
1776 DEFS
1777 mandir
1778 localedir
1779 libdir
1780 psdir
1781 pdfdir
1782 dvidir
1783 htmldir
1784 infodir
1785 docdir
1786 oldincludedir
1787 includedir
1788 runstatedir
1789 localstatedir
1790 sharedstatedir
1791 sysconfdir
1792 datadir
1793 datarootdir
1794 libexecdir
1795 sbindir
1796 bindir
1797 program_transform_name
1798 prefix
1799 exec_prefix
1800 PACKAGE_URL
1801 PACKAGE_BUGREPORT
1802 PACKAGE_STRING
1803 PACKAGE_VERSION
1804 PACKAGE_TARNAME
1805 PACKAGE_NAME
1806 PATH_SEPARATOR
1807 SHELL
1808 am__quote'
1809 ac_subst_files=''
1810 ac_user_opts='
1811 enable_option_checking
1812 enable_silent_rules
1813 enable_dependency_tracking
1814 enable_shared
1815 enable_static
1816 with_pic
1817 enable_fast_install
1818 with_aix_soname
1819 with_gnu_ld
1820 with_sysroot
1821 enable_libtool_lock
1822 enable_cross_guesses
1823 enable_relocatable
1824 enable_gcc_warnings
1825 enable_year2038
1826 enable_largefile
1827 '
1828 ac_precious_vars='build_alias
1829 host_alias
1830 target_alias
1831 CC
1832 CFLAGS
1833 LDFLAGS
1834 LIBS
1835 CPPFLAGS
1836 CPP
1837 LT_SYS_LIBRARY_PATH'
1838
1839
1840 # Initialize some variables set by options.
1841 ac_init_help=
1842 ac_init_version=false
1843 ac_unrecognized_opts=
1844 ac_unrecognized_sep=
1845 # The variables have the same names as the options, with
1846 # dashes changed to underlines.
1847 cache_file=/dev/null
1848 exec_prefix=NONE
1849 no_create=
1850 no_recursion=
1851 prefix=NONE
1852 program_prefix=NONE
1853 program_suffix=NONE
1854 program_transform_name=s,x,x,
1855 silent=
1856 site=
1857 srcdir=
1858 verbose=
1859 x_includes=NONE
1860 x_libraries=NONE
1861
1862 # Installation directory options.
1863 # These are left unexpanded so users can "make install exec_prefix=/foo"
1864 # and all the variables that are supposed to be based on exec_prefix
1865 # by default will actually change.
1866 # Use braces instead of parens because sh, perl, etc. also accept them.
1867 # (The list follows the same order as the GNU Coding Standards.)
1868 bindir='${exec_prefix}/bin'
1869 sbindir='${exec_prefix}/sbin'
1870 libexecdir='${exec_prefix}/libexec'
1871 datarootdir='${prefix}/share'
1872 datadir='${datarootdir}'
1873 sysconfdir='${prefix}/etc'
1874 sharedstatedir='${prefix}/com'
1875 localstatedir='${prefix}/var'
1876 runstatedir='${localstatedir}/run'
1877 includedir='${prefix}/include'
1878 oldincludedir='/usr/include'
1879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1880 infodir='${datarootdir}/info'
1881 htmldir='${docdir}'
1882 dvidir='${docdir}'
1883 pdfdir='${docdir}'
1884 psdir='${docdir}'
1885 libdir='${exec_prefix}/lib'
1886 localedir='${datarootdir}/locale'
1887 mandir='${datarootdir}/man'
1888
1889 ac_prev=
1890 ac_dashdash=
1891 for ac_option
1892 do
1893 # If the previous option needs an argument, assign it.
1894 if test -n "$ac_prev"; then
1895 eval $ac_prev=\$ac_option
1896 ac_prev=
1897 continue
1898 fi
1899
1900 case $ac_option in
1901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1902 *=) ac_optarg= ;;
1903 *) ac_optarg=yes ;;
1904 esac
1905
1906 case $ac_dashdash$ac_option in
1907 --)
1908 ac_dashdash=yes ;;
1909
1910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1911 ac_prev=bindir ;;
1912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1913 bindir=$ac_optarg ;;
1914
1915 -build | --build | --buil | --bui | --bu)
1916 ac_prev=build_alias ;;
1917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1918 build_alias=$ac_optarg ;;
1919
1920 -cache-file | --cache-file | --cache-fil | --cache-fi \
1921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1922 ac_prev=cache_file ;;
1923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1925 cache_file=$ac_optarg ;;
1926
1927 --config-cache | -C)
1928 cache_file=config.cache ;;
1929
1930 -datadir | --datadir | --datadi | --datad)
1931 ac_prev=datadir ;;
1932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1933 datadir=$ac_optarg ;;
1934
1935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1936 | --dataroo | --dataro | --datar)
1937 ac_prev=datarootdir ;;
1938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1940 datarootdir=$ac_optarg ;;
1941
1942 -disable-* | --disable-*)
1943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1944 # Reject names that are not valid shell variable names.
1945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1946 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1947 ac_useropt_orig=$ac_useropt
1948 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1949 case $ac_user_opts in
1950 *"
1951 "enable_$ac_useropt"
1952 "*) ;;
1953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1954 ac_unrecognized_sep=', ';;
1955 esac
1956 eval enable_$ac_useropt=no ;;
1957
1958 -docdir | --docdir | --docdi | --doc | --do)
1959 ac_prev=docdir ;;
1960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1961 docdir=$ac_optarg ;;
1962
1963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1964 ac_prev=dvidir ;;
1965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1966 dvidir=$ac_optarg ;;
1967
1968 -enable-* | --enable-*)
1969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1970 # Reject names that are not valid shell variable names.
1971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1972 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1973 ac_useropt_orig=$ac_useropt
1974 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1975 case $ac_user_opts in
1976 *"
1977 "enable_$ac_useropt"
1978 "*) ;;
1979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1980 ac_unrecognized_sep=', ';;
1981 esac
1982 eval enable_$ac_useropt=\$ac_optarg ;;
1983
1984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1986 | --exec | --exe | --ex)
1987 ac_prev=exec_prefix ;;
1988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1990 | --exec=* | --exe=* | --ex=*)
1991 exec_prefix=$ac_optarg ;;
1992
1993 -gas | --gas | --ga | --g)
1994 # Obsolete; use --with-gas.
1995 with_gas=yes ;;
1996
1997 -help | --help | --hel | --he | -h)
1998 ac_init_help=long ;;
1999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2000 ac_init_help=recursive ;;
2001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2002 ac_init_help=short ;;
2003
2004 -host | --host | --hos | --ho)
2005 ac_prev=host_alias ;;
2006 -host=* | --host=* | --hos=* | --ho=*)
2007 host_alias=$ac_optarg ;;
2008
2009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2010 ac_prev=htmldir ;;
2011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2012 | --ht=*)
2013 htmldir=$ac_optarg ;;
2014
2015 -includedir | --includedir | --includedi | --included | --include \
2016 | --includ | --inclu | --incl | --inc)
2017 ac_prev=includedir ;;
2018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2019 | --includ=* | --inclu=* | --incl=* | --inc=*)
2020 includedir=$ac_optarg ;;
2021
2022 -infodir | --infodir | --infodi | --infod | --info | --inf)
2023 ac_prev=infodir ;;
2024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2025 infodir=$ac_optarg ;;
2026
2027 -libdir | --libdir | --libdi | --libd)
2028 ac_prev=libdir ;;
2029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
2030 libdir=$ac_optarg ;;
2031
2032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2033 | --libexe | --libex | --libe)
2034 ac_prev=libexecdir ;;
2035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2036 | --libexe=* | --libex=* | --libe=*)
2037 libexecdir=$ac_optarg ;;
2038
2039 -localedir | --localedir | --localedi | --localed | --locale)
2040 ac_prev=localedir ;;
2041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2042 localedir=$ac_optarg ;;
2043
2044 -localstatedir | --localstatedir | --localstatedi | --localstated \
2045 | --localstate | --localstat | --localsta | --localst | --locals)
2046 ac_prev=localstatedir ;;
2047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2049 localstatedir=$ac_optarg ;;
2050
2051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2052 ac_prev=mandir ;;
2053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2054 mandir=$ac_optarg ;;
2055
2056 -nfp | --nfp | --nf)
2057 # Obsolete; use --without-fp.
2058 with_fp=no ;;
2059
2060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2061 | --no-cr | --no-c | -n)
2062 no_create=yes ;;
2063
2064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2066 no_recursion=yes ;;
2067
2068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2070 | --oldin | --oldi | --old | --ol | --o)
2071 ac_prev=oldincludedir ;;
2072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2075 oldincludedir=$ac_optarg ;;
2076
2077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2078 ac_prev=prefix ;;
2079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2080 prefix=$ac_optarg ;;
2081
2082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
2083 | --program-pre | --program-pr | --program-p)
2084 ac_prev=program_prefix ;;
2085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
2086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2087 program_prefix=$ac_optarg ;;
2088
2089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
2090 | --program-suf | --program-su | --program-s)
2091 ac_prev=program_suffix ;;
2092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
2093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2094 program_suffix=$ac_optarg ;;
2095
2096 -program-transform-name | --program-transform-name \
2097 | --program-transform-nam | --program-transform-na \
2098 | --program-transform-n | --program-transform- \
2099 | --program-transform | --program-transfor \
2100 | --program-transfo | --program-transf \
2101 | --program-trans | --program-tran \
2102 | --progr-tra | --program-tr | --program-t)
2103 ac_prev=program_transform_name ;;
2104 -program-transform-name=* | --program-transform-name=* \
2105 | --program-transform-nam=* | --program-transform-na=* \
2106 | --program-transform-n=* | --program-transform-=* \
2107 | --program-transform=* | --program-transfor=* \
2108 | --program-transfo=* | --program-transf=* \
2109 | --program-trans=* | --program-tran=* \
2110 | --progr-tra=* | --program-tr=* | --program-t=*)
2111 program_transform_name=$ac_optarg ;;
2112
2113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2114 ac_prev=pdfdir ;;
2115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2116 pdfdir=$ac_optarg ;;
2117
2118 -psdir | --psdir | --psdi | --psd | --ps)
2119 ac_prev=psdir ;;
2120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2121 psdir=$ac_optarg ;;
2122
2123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2124 | -silent | --silent | --silen | --sile | --sil)
2125 silent=yes ;;
2126
2127 -runstatedir | --runstatedir | --runstatedi | --runstated \
2128 | --runstate | --runstat | --runsta | --runst | --runs \
2129 | --run | --ru | --r)
2130 ac_prev=runstatedir ;;
2131 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2132 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2133 | --run=* | --ru=* | --r=*)
2134 runstatedir=$ac_optarg ;;
2135
2136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2137 ac_prev=sbindir ;;
2138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2139 | --sbi=* | --sb=*)
2140 sbindir=$ac_optarg ;;
2141
2142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2144 | --sharedst | --shareds | --shared | --share | --shar \
2145 | --sha | --sh)
2146 ac_prev=sharedstatedir ;;
2147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2150 | --sha=* | --sh=*)
2151 sharedstatedir=$ac_optarg ;;
2152
2153 -site | --site | --sit)
2154 ac_prev=site ;;
2155 -site=* | --site=* | --sit=*)
2156 site=$ac_optarg ;;
2157
2158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2159 ac_prev=srcdir ;;
2160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2161 srcdir=$ac_optarg ;;
2162
2163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2164 | --syscon | --sysco | --sysc | --sys | --sy)
2165 ac_prev=sysconfdir ;;
2166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2168 sysconfdir=$ac_optarg ;;
2169
2170 -target | --target | --targe | --targ | --tar | --ta | --t)
2171 ac_prev=target_alias ;;
2172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2173 target_alias=$ac_optarg ;;
2174
2175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2176 verbose=yes ;;
2177
2178 -version | --version | --versio | --versi | --vers | -V)
2179 ac_init_version=: ;;
2180
2181 -with-* | --with-*)
2182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2183 # Reject names that are not valid shell variable names.
2184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2185 as_fn_error $? "invalid package name: \`$ac_useropt'"
2186 ac_useropt_orig=$ac_useropt
2187 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2188 case $ac_user_opts in
2189 *"
2190 "with_$ac_useropt"
2191 "*) ;;
2192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2193 ac_unrecognized_sep=', ';;
2194 esac
2195 eval with_$ac_useropt=\$ac_optarg ;;
2196
2197 -without-* | --without-*)
2198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2199 # Reject names that are not valid shell variable names.
2200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2201 as_fn_error $? "invalid package name: \`$ac_useropt'"
2202 ac_useropt_orig=$ac_useropt
2203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2204 case $ac_user_opts in
2205 *"
2206 "with_$ac_useropt"
2207 "*) ;;
2208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2209 ac_unrecognized_sep=', ';;
2210 esac
2211 eval with_$ac_useropt=no ;;
2212
2213 --x)
2214 # Obsolete; use --with-x.
2215 with_x=yes ;;
2216
2217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2218 | --x-incl | --x-inc | --x-in | --x-i)
2219 ac_prev=x_includes ;;
2220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2222 x_includes=$ac_optarg ;;
2223
2224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2226 ac_prev=x_libraries ;;
2227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2229 x_libraries=$ac_optarg ;;
2230
2231 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2232 Try \`$0 --help' for more information"
2233 ;;
2234
2235 *=*)
2236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2237 # Reject names that are not valid shell variable names.
2238 case $ac_envvar in #(
2239 '' | [0-9]* | *[!_$as_cr_alnum]* )
2240 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2241 esac
2242 eval $ac_envvar=\$ac_optarg
2243 export $ac_envvar ;;
2244
2245 *)
2246 # FIXME: should be removed in autoconf 3.0.
2247 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
2248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2249 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
2250 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2251 ;;
2252
2253 esac
2254 done
2255
2256 if test -n "$ac_prev"; then
2257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2258 as_fn_error $? "missing argument to $ac_option"
2259 fi
2260
2261 if test -n "$ac_unrecognized_opts"; then
2262 case $enable_option_checking in
2263 no) ;;
2264 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2265 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2266 esac
2267 fi
2268
2269 # Check all directory arguments for consistency.
2270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2271 datadir sysconfdir sharedstatedir localstatedir includedir \
2272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2273 libdir localedir mandir runstatedir
2274 do
2275 eval ac_val=\$$ac_var
2276 # Remove trailing slashes.
2277 case $ac_val in
2278 */ )
2279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2280 eval $ac_var=\$ac_val;;
2281 esac
2282 # Be sure to have absolute directory names.
2283 case $ac_val in
2284 [\\/$]* | ?:[\\/]* ) continue;;
2285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2286 esac
2287 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2288 done
2289
2290 # There might be people who depend on the old broken behavior: `$host'
2291 # used to hold the argument of --host etc.
2292 # FIXME: To remove some day.
2293 build=$build_alias
2294 host=$host_alias
2295 target=$target_alias
2296
2297 # FIXME: To remove some day.
2298 if test "x$host_alias" != x; then
2299 if test "x$build_alias" = x; then
2300 cross_compiling=maybe
2301 elif test "x$build_alias" != "x$host_alias"; then
2302 cross_compiling=yes
2303 fi
2304 fi
2305
2306 ac_tool_prefix=
2307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2308
2309 test "$silent" = yes && exec 6>/dev/null
2310
2311
2312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2313 ac_ls_di=`ls -di .` &&
2314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2315 as_fn_error $? "working directory cannot be determined"
2316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2317 as_fn_error $? "pwd does not report name of working directory"
2318
2319
2320 # Find the source files, if location was not specified.
2321 if test -z "$srcdir"; then
2322 ac_srcdir_defaulted=yes
2323 # Try the directory containing this script, then the parent directory.
2324 ac_confdir=`$as_dirname -- "$as_myself" ||
2325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2326 X"$as_myself" : 'X\(//\)[^/]' \| \
2327 X"$as_myself" : 'X\(//\)$' \| \
2328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2329 printf "%s\n" X"$as_myself" |
2330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2331 s//\1/
2332 q
2333 }
2334 /^X\(\/\/\)[^/].*/{
2335 s//\1/
2336 q
2337 }
2338 /^X\(\/\/\)$/{
2339 s//\1/
2340 q
2341 }
2342 /^X\(\/\).*/{
2343 s//\1/
2344 q
2345 }
2346 s/.*/./; q'`
2347 srcdir=$ac_confdir
2348 if test ! -r "$srcdir/$ac_unique_file"; then
2349 srcdir=..
2350 fi
2351 else
2352 ac_srcdir_defaulted=no
2353 fi
2354 if test ! -r "$srcdir/$ac_unique_file"; then
2355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2356 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2357 fi
2358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2359 ac_abs_confdir=`(
2360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2361 pwd)`
2362 # When building in place, set srcdir=.
2363 if test "$ac_abs_confdir" = "$ac_pwd"; then
2364 srcdir=.
2365 fi
2366 # Remove unnecessary trailing slashes from srcdir.
2367 # Double slashes in file names in object file debugging info
2368 # mess up M-x gdb in Emacs.
2369 case $srcdir in
2370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2371 esac
2372 for ac_var in $ac_precious_vars; do
2373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2374 eval ac_env_${ac_var}_value=\$${ac_var}
2375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2377 done
2378
2379 #
2380 # Report the --help message.
2381 #
2382 if test "$ac_init_help" = "long"; then
2383 # Omit some internal or obsolete options to make the list less imposing.
2384 # This message is too long to be a string in the A/UX 3.1 sh.
2385 cat <<_ACEOF
2386 \`configure' configures libpaper 2.2.5 to adapt to many kinds of systems.
2387
2388 Usage: $0 [OPTION]... [VAR=VALUE]...
2389
2390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2391 VAR=VALUE. See below for descriptions of some of the useful variables.
2392
2393 Defaults for the options are specified in brackets.
2394
2395 Configuration:
2396 -h, --help display this help and exit
2397 --help=short display options specific to this package
2398 --help=recursive display the short help of all the included packages
2399 -V, --version display version information and exit
2400 -q, --quiet, --silent do not print \`checking ...' messages
2401 --cache-file=FILE cache test results in FILE [disabled]
2402 -C, --config-cache alias for \`--cache-file=config.cache'
2403 -n, --no-create do not create output files
2404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2405
2406 Installation directories:
2407 --prefix=PREFIX install architecture-independent files in PREFIX
2408 [$ac_default_prefix]
2409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2410 [PREFIX]
2411
2412 By default, \`make install' will install all the files in
2413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2415 for instance \`--prefix=\$HOME'.
2416
2417 For better control, use the options below.
2418
2419 Fine tuning of the installation directories:
2420 --bindir=DIR user executables [EPREFIX/bin]
2421 --sbindir=DIR system admin executables [EPREFIX/sbin]
2422 --libexecdir=DIR program executables [EPREFIX/libexec]
2423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2426 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2427 --libdir=DIR object code libraries [EPREFIX/lib]
2428 --includedir=DIR C header files [PREFIX/include]
2429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2432 --infodir=DIR info documentation [DATAROOTDIR/info]
2433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2434 --mandir=DIR man documentation [DATAROOTDIR/man]
2435 --docdir=DIR documentation root [DATAROOTDIR/doc/libpaper]
2436 --htmldir=DIR html documentation [DOCDIR]
2437 --dvidir=DIR dvi documentation [DOCDIR]
2438 --pdfdir=DIR pdf documentation [DOCDIR]
2439 --psdir=DIR ps documentation [DOCDIR]
2440 _ACEOF
2441
2442 cat <<\_ACEOF
2443
2444 Program names:
2445 --program-prefix=PREFIX prepend PREFIX to installed program names
2446 --program-suffix=SUFFIX append SUFFIX to installed program names
2447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2448
2449 System types:
2450 --build=BUILD configure for building on BUILD [guessed]
2451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2452 _ACEOF
2453 fi
2454
2455 if test -n "$ac_init_help"; then
2456 case $ac_init_help in
2457 short | recursive ) echo "Configuration of libpaper 2.2.5:";;
2458 esac
2459 cat <<\_ACEOF
2460
2461 Optional Features:
2462 --disable-option-checking ignore unrecognized --enable/--with options
2463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2465 --enable-silent-rules less verbose build output (undo: "make V=1")
2466 --disable-silent-rules verbose build output (undo: "make V=0")
2467 --enable-dependency-tracking
2468 do not reject slow dependency extractors
2469 --disable-dependency-tracking
2470 speeds up one-time build
2471 --enable-shared[=PKGS] build shared libraries [default=yes]
2472 --enable-static[=PKGS] build static libraries [default=yes]
2473 --enable-fast-install[=PKGS]
2474 optimize for fast installation [default=yes]
2475 --disable-libtool-lock avoid locking (might break parallel builds)
2476 --enable-cross-guesses={conservative|risky}
2477 specify policy for cross-compilation guesses
2478 --enable-relocatable install a package that can be moved in the file
2479 system
2480 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2481 --enable-year2038 support timestamps after 2038
2482 --disable-largefile omit support for large files
2483
2484 Optional Packages:
2485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2487 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2488 both]
2489 --with-aix-soname=aix|svr4|both
2490 shared library versioning (aka "SONAME") variant to
2491 provide on AIX, [default=aix].
2492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2493 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2494 compiler's sysroot if not specified).
2495 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2496
2497 Some influential environment variables:
2498 CC C compiler command
2499 CFLAGS C compiler flags
2500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2501 nonstandard directory <lib dir>
2502 LIBS libraries to pass to the linker, e.g. -l<library>
2503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2504 you have headers in a nonstandard directory <include dir>
2505 CPP C preprocessor
2506 LT_SYS_LIBRARY_PATH
2507 User-defined run-time library search path.
2508
2509 Use these variables to override the choices made by `configure' or to help
2510 it to find libraries and programs with nonstandard names/locations.
2511
2512 Report bugs to <[email protected]>.
2513 libpaper home page: <https://github.com/rrthomas/libpaper>.
2514 _ACEOF
2515 ac_status=$?
2516 fi
2517
2518 if test "$ac_init_help" = "recursive"; then
2519 # If there are subdirs, report their specific --help.
2520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2521 test -d "$ac_dir" ||
2522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2523 continue
2524 ac_builddir=.
2525
2526 case "$ac_dir" in
2527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2528 *)
2529 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2530 # A ".." for each directory in $ac_dir_suffix.
2531 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2532 case $ac_top_builddir_sub in
2533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2535 esac ;;
2536 esac
2537 ac_abs_top_builddir=$ac_pwd
2538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2539 # for backward compatibility:
2540 ac_top_builddir=$ac_top_build_prefix
2541
2542 case $srcdir in
2543 .) # We are building in place.
2544 ac_srcdir=.
2545 ac_top_srcdir=$ac_top_builddir_sub
2546 ac_abs_top_srcdir=$ac_pwd ;;
2547 [\\/]* | ?:[\\/]* ) # Absolute name.
2548 ac_srcdir=$srcdir$ac_dir_suffix;
2549 ac_top_srcdir=$srcdir
2550 ac_abs_top_srcdir=$srcdir ;;
2551 *) # Relative name.
2552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2553 ac_top_srcdir=$ac_top_build_prefix$srcdir
2554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2555 esac
2556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2557
2558 cd "$ac_dir" || { ac_status=$?; continue; }
2559 # Check for configure.gnu first; this name is used for a wrapper for
2560 # Metaconfig's "Configure" on case-insensitive file systems.
2561 if test -f "$ac_srcdir/configure.gnu"; then
2562 echo &&
2563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2564 elif test -f "$ac_srcdir/configure"; then
2565 echo &&
2566 $SHELL "$ac_srcdir/configure" --help=recursive
2567 else
2568 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2569 fi || ac_status=$?
2570 cd "$ac_pwd" || { ac_status=$?; break; }
2571 done
2572 fi
2573
2574 test -n "$ac_init_help" && exit $ac_status
2575 if $ac_init_version; then
2576 cat <<\_ACEOF
2577 libpaper configure 2.2.5
2578 generated by GNU Autoconf 2.71
2579
2580 Copyright (C) 2021 Free Software Foundation, Inc.
2581 This configure script is free software; the Free Software Foundation
2582 gives unlimited permission to copy, distribute and modify it.
2583 _ACEOF
2584 exit
2585 fi
2586
2587 ## ------------------------ ##
2588 ## Autoconf initialization. ##
2589 ## ------------------------ ##
2590
2591 # ac_fn_c_try_compile LINENO
2592 # --------------------------
2593 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2594 ac_fn_c_try_compile ()
2595 {
2596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2597 rm -f conftest.$ac_objext conftest.beam
2598 if { { ac_try="$ac_compile"
2599 case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2602 esac
2603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2604 printf "%s\n" "$ac_try_echo"; } >&5
2605 (eval "$ac_compile") 2>conftest.err
2606 ac_status=$?
2607 if test -s conftest.err; then
2608 grep -v '^ *+' conftest.err >conftest.er1
2609 cat conftest.er1 >&5
2610 mv -f conftest.er1 conftest.err
2611 fi
2612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2613 test $ac_status = 0; } && {
2614 test -z "$ac_c_werror_flag" ||
2615 test ! -s conftest.err
2616 } && test -s conftest.$ac_objext
2617 then :
2618 ac_retval=0
2619 else $as_nop
2620 printf "%s\n" "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 ac_retval=1
2624 fi
2625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2626 as_fn_set_status $ac_retval
2627
2628 } # ac_fn_c_try_compile
2629
2630 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2631 # -------------------------------------------------------
2632 # Tests whether HEADER exists and can be compiled using the include files in
2633 # INCLUDES, setting the cache variable VAR accordingly.
2634 ac_fn_c_check_header_compile ()
2635 {
2636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2638 printf %s "checking for $2... " >&6; }
2639 if eval test \${$3+y}
2640 then :
2641 printf %s "(cached) " >&6
2642 else $as_nop
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h. */
2645 $4
2646 #include <$2>
2647 _ACEOF
2648 if ac_fn_c_try_compile "$LINENO"
2649 then :
2650 eval "$3=yes"
2651 else $as_nop
2652 eval "$3=no"
2653 fi
2654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2655 fi
2656 eval ac_res=\$$3
2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2658 printf "%s\n" "$ac_res" >&6; }
2659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2660
2661 } # ac_fn_c_check_header_compile
2662
2663 # ac_fn_c_try_cpp LINENO
2664 # ----------------------
2665 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2666 ac_fn_c_try_cpp ()
2667 {
2668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2669 if { { ac_try="$ac_cpp conftest.$ac_ext"
2670 case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2673 esac
2674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2675 printf "%s\n" "$ac_try_echo"; } >&5
2676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2677 ac_status=$?
2678 if test -s conftest.err; then
2679 grep -v '^ *+' conftest.err >conftest.er1
2680 cat conftest.er1 >&5
2681 mv -f conftest.er1 conftest.err
2682 fi
2683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2684 test $ac_status = 0; } > conftest.i && {
2685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2686 test ! -s conftest.err
2687 }
2688 then :
2689 ac_retval=0
2690 else $as_nop
2691 printf "%s\n" "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2693
2694 ac_retval=1
2695 fi
2696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2697 as_fn_set_status $ac_retval
2698
2699 } # ac_fn_c_try_cpp
2700
2701 # ac_fn_c_try_link LINENO
2702 # -----------------------
2703 # Try to link conftest.$ac_ext, and return whether this succeeded.
2704 ac_fn_c_try_link ()
2705 {
2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2708 if { { ac_try="$ac_link"
2709 case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712 esac
2713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2714 printf "%s\n" "$ac_try_echo"; } >&5
2715 (eval "$ac_link") 2>conftest.err
2716 ac_status=$?
2717 if test -s conftest.err; then
2718 grep -v '^ *+' conftest.err >conftest.er1
2719 cat conftest.er1 >&5
2720 mv -f conftest.er1 conftest.err
2721 fi
2722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723 test $ac_status = 0; } && {
2724 test -z "$ac_c_werror_flag" ||
2725 test ! -s conftest.err
2726 } && test -s conftest$ac_exeext && {
2727 test "$cross_compiling" = yes ||
2728 test -x conftest$ac_exeext
2729 }
2730 then :
2731 ac_retval=0
2732 else $as_nop
2733 printf "%s\n" "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736 ac_retval=1
2737 fi
2738 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2739 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2740 # interfere with the next link command; also delete a directory that is
2741 # left behind by Apple's compiler. We do this before executing the actions.
2742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2744 as_fn_set_status $ac_retval
2745
2746 } # ac_fn_c_try_link
2747
2748 # ac_fn_c_check_func LINENO FUNC VAR
2749 # ----------------------------------
2750 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2751 ac_fn_c_check_func ()
2752 {
2753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2755 printf %s "checking for $2... " >&6; }
2756 if eval test \${$3+y}
2757 then :
2758 printf %s "(cached) " >&6
2759 else $as_nop
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2762 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2764 #define $2 innocuous_$2
2765
2766 /* System header to define __stub macros and hopefully few prototypes,
2767 which can conflict with char $2 (); below. */
2768
2769 #include <limits.h>
2770 #undef $2
2771
2772 /* Override any GCC internal prototype to avoid an error.
2773 Use char because int might match the return type of a GCC
2774 builtin and then its argument prototype would still apply. */
2775 #ifdef __cplusplus
2776 extern "C"
2777 #endif
2778 char $2 ();
2779 /* The GNU C library defines this for functions which it implements
2780 to always fail with ENOSYS. Some functions are actually named
2781 something starting with __ and the normal name is an alias. */
2782 #if defined __stub_$2 || defined __stub___$2
2783 choke me
2784 #endif
2785
2786 int
2787 main (void)
2788 {
2789 return $2 ();
2790 ;
2791 return 0;
2792 }
2793 _ACEOF
2794 if ac_fn_c_try_link "$LINENO"
2795 then :
2796 eval "$3=yes"
2797 else $as_nop
2798 eval "$3=no"
2799 fi
2800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2801 conftest$ac_exeext conftest.$ac_ext
2802 fi
2803 eval ac_res=\$$3
2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2805 printf "%s\n" "$ac_res" >&6; }
2806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2807
2808 } # ac_fn_c_check_func
2809
2810 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2811 # -------------------------------------------
2812 # Tests whether TYPE exists after having included INCLUDES, setting cache
2813 # variable VAR accordingly.
2814 ac_fn_c_check_type ()
2815 {
2816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2818 printf %s "checking for $2... " >&6; }
2819 if eval test \${$3+y}
2820 then :
2821 printf %s "(cached) " >&6
2822 else $as_nop
2823 eval "$3=no"
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h. */
2826 $4
2827 int
2828 main (void)
2829 {
2830 if (sizeof ($2))
2831 return 0;
2832 ;
2833 return 0;
2834 }
2835 _ACEOF
2836 if ac_fn_c_try_compile "$LINENO"
2837 then :
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h. */
2840 $4
2841 int
2842 main (void)
2843 {
2844 if (sizeof (($2)))
2845 return 0;
2846 ;
2847 return 0;
2848 }
2849 _ACEOF
2850 if ac_fn_c_try_compile "$LINENO"
2851 then :
2852
2853 else $as_nop
2854 eval "$3=yes"
2855 fi
2856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2857 fi
2858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2859 fi
2860 eval ac_res=\$$3
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2862 printf "%s\n" "$ac_res" >&6; }
2863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2864
2865 } # ac_fn_c_check_type
2866
2867 # ac_fn_c_try_run LINENO
2868 # ----------------------
2869 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2870 # executables *can* be run.
2871 ac_fn_c_try_run ()
2872 {
2873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2874 if { { ac_try="$ac_link"
2875 case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878 esac
2879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2880 printf "%s\n" "$ac_try_echo"; } >&5
2881 (eval "$ac_link") 2>&5
2882 ac_status=$?
2883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2884 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2885 { { case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888 esac
2889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2890 printf "%s\n" "$ac_try_echo"; } >&5
2891 (eval "$ac_try") 2>&5
2892 ac_status=$?
2893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894 test $ac_status = 0; }; }
2895 then :
2896 ac_retval=0
2897 else $as_nop
2898 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2899 printf "%s\n" "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2901
2902 ac_retval=$ac_status
2903 fi
2904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2906 as_fn_set_status $ac_retval
2907
2908 } # ac_fn_c_try_run
2909
2910 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2911 # ------------------------------------------------------------------
2912 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2913 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2914 ac_fn_check_decl ()
2915 {
2916 ac_save_ac_compile="$ac_compile"
2917 if test -n "$ac_compile_for_check_decl"; then
2918 ac_compile="$ac_compile_for_check_decl"
2919 fi
2920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2921 as_decl_name=`echo $2|sed 's/ *(.*//'`
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2923 printf %s "checking whether $as_decl_name is declared... " >&6; }
2924 if eval test \${$3+y}
2925 then :
2926 printf %s "(cached) " >&6
2927 else $as_nop
2928 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2929 eval ac_save_FLAGS=\$$6
2930 as_fn_append $6 " $5"
2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932 /* end confdefs.h. */
2933 $4
2934 int
2935 main (void)
2936 {
2937 #ifndef $as_decl_name
2938 #ifdef __cplusplus
2939 (void) $as_decl_use;
2940 #else
2941 (void) $as_decl_name;
2942 #endif
2943 #endif
2944
2945 ;
2946 return 0;
2947 }
2948 _ACEOF
2949 if ac_fn_c_try_compile "$LINENO"
2950 then :
2951 eval "$3=yes"
2952 else $as_nop
2953 eval "$3=no"
2954 fi
2955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2956 eval $6=\$ac_save_FLAGS
2957
2958 fi
2959 eval ac_res=\$$3
2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2961 printf "%s\n" "$ac_res" >&6; }
2962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2963 ac_compile="$ac_save_ac_compile"
2964
2965 } # ac_fn_check_decl
2966
2967 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2968 # --------------------------------------------
2969 # Tries to find the compile-time value of EXPR in a program that includes
2970 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2971 # computed
2972 ac_fn_c_compute_int ()
2973 {
2974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2975 if test "$cross_compiling" = yes; then
2976 # Depending upon the size, compute the lo and hi bounds.
2977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978 /* end confdefs.h. */
2979 $4
2980 int
2981 main (void)
2982 {
2983 static int test_array [1 - 2 * !(($2) >= 0)];
2984 test_array [0] = 0;
2985 return test_array [0];
2986
2987 ;
2988 return 0;
2989 }
2990 _ACEOF
2991 if ac_fn_c_try_compile "$LINENO"
2992 then :
2993 ac_lo=0 ac_mid=0
2994 while :; do
2995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996 /* end confdefs.h. */
2997 $4
2998 int
2999 main (void)
3000 {
3001 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3002 test_array [0] = 0;
3003 return test_array [0];
3004
3005 ;
3006 return 0;
3007 }
3008 _ACEOF
3009 if ac_fn_c_try_compile "$LINENO"
3010 then :
3011 ac_hi=$ac_mid; break
3012 else $as_nop
3013 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3014 if test $ac_lo -le $ac_mid; then
3015 ac_lo= ac_hi=
3016 break
3017 fi
3018 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3019 fi
3020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3021 done
3022 else $as_nop
3023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024 /* end confdefs.h. */
3025 $4
3026 int
3027 main (void)
3028 {
3029 static int test_array [1 - 2 * !(($2) < 0)];
3030 test_array [0] = 0;
3031 return test_array [0];
3032
3033 ;
3034 return 0;
3035 }
3036 _ACEOF
3037 if ac_fn_c_try_compile "$LINENO"
3038 then :
3039 ac_hi=-1 ac_mid=-1
3040 while :; do
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h. */
3043 $4
3044 int
3045 main (void)
3046 {
3047 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3048 test_array [0] = 0;
3049 return test_array [0];
3050
3051 ;
3052 return 0;
3053 }
3054 _ACEOF
3055 if ac_fn_c_try_compile "$LINENO"
3056 then :
3057 ac_lo=$ac_mid; break
3058 else $as_nop
3059 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3060 if test $ac_mid -le $ac_hi; then
3061 ac_lo= ac_hi=
3062 break
3063 fi
3064 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3065 fi
3066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3067 done
3068 else $as_nop
3069 ac_lo= ac_hi=
3070 fi
3071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3072 fi
3073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3074 # Binary search between lo and hi bounds.
3075 while test "x$ac_lo" != "x$ac_hi"; do
3076 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078 /* end confdefs.h. */
3079 $4
3080 int
3081 main (void)
3082 {
3083 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3084 test_array [0] = 0;
3085 return test_array [0];
3086
3087 ;
3088 return 0;
3089 }
3090 _ACEOF
3091 if ac_fn_c_try_compile "$LINENO"
3092 then :
3093 ac_hi=$ac_mid
3094 else $as_nop
3095 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3096 fi
3097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3098 done
3099 case $ac_lo in #((
3100 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3101 '') ac_retval=1 ;;
3102 esac
3103 else
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h. */
3106 $4
3107 static long int longval (void) { return $2; }
3108 static unsigned long int ulongval (void) { return $2; }
3109 #include <stdio.h>
3110 #include <stdlib.h>
3111 int
3112 main (void)
3113 {
3114
3115 FILE *f = fopen ("conftest.val", "w");
3116 if (! f)
3117 return 1;
3118 if (($2) < 0)
3119 {
3120 long int i = longval ();
3121 if (i != ($2))
3122 return 1;
3123 fprintf (f, "%ld", i);
3124 }
3125 else
3126 {
3127 unsigned long int i = ulongval ();
3128 if (i != ($2))
3129 return 1;
3130 fprintf (f, "%lu", i);
3131 }
3132 /* Do not output a trailing newline, as this causes \r\n confusion
3133 on some platforms. */
3134 return ferror (f) || fclose (f) != 0;
3135
3136 ;
3137 return 0;
3138 }
3139 _ACEOF
3140 if ac_fn_c_try_run "$LINENO"
3141 then :
3142 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3143 else $as_nop
3144 ac_retval=1
3145 fi
3146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3147 conftest.$ac_objext conftest.beam conftest.$ac_ext
3148 rm -f conftest.val
3149
3150 fi
3151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3152 as_fn_set_status $ac_retval
3153
3154 } # ac_fn_c_compute_int
3155
3156 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3157 # ----------------------------------------------------
3158 # Tries to find if the field MEMBER exists in type AGGR, after including
3159 # INCLUDES, setting cache variable VAR accordingly.
3160 ac_fn_c_check_member ()
3161 {
3162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3164 printf %s "checking for $2.$3... " >&6; }
3165 if eval test \${$4+y}
3166 then :
3167 printf %s "(cached) " >&6
3168 else $as_nop
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3171 $5
3172 int
3173 main (void)
3174 {
3175 static $2 ac_aggr;
3176 if (ac_aggr.$3)
3177 return 0;
3178 ;
3179 return 0;
3180 }
3181 _ACEOF
3182 if ac_fn_c_try_compile "$LINENO"
3183 then :
3184 eval "$4=yes"
3185 else $as_nop
3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h. */
3188 $5
3189 int
3190 main (void)
3191 {
3192 static $2 ac_aggr;
3193 if (sizeof ac_aggr.$3)
3194 return 0;
3195 ;
3196 return 0;
3197 }
3198 _ACEOF
3199 if ac_fn_c_try_compile "$LINENO"
3200 then :
3201 eval "$4=yes"
3202 else $as_nop
3203 eval "$4=no"
3204 fi
3205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3206 fi
3207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3208 fi
3209 eval ac_res=\$$4
3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3211 printf "%s\n" "$ac_res" >&6; }
3212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3213
3214 } # ac_fn_c_check_member
3215 ac_configure_args_raw=
3216 for ac_arg
3217 do
3218 case $ac_arg in
3219 *\'*)
3220 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3221 esac
3222 as_fn_append ac_configure_args_raw " '$ac_arg'"
3223 done
3224
3225 case $ac_configure_args_raw in
3226 *$as_nl*)
3227 ac_safe_unquote= ;;
3228 *)
3229 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
3230 ac_unsafe_a="$ac_unsafe_z#~"
3231 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3232 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3233 esac
3234
3235 cat >config.log <<_ACEOF
3236 This file contains any messages produced by compilers while
3237 running configure, to aid debugging if configure makes a mistake.
3238
3239 It was created by libpaper $as_me 2.2.5, which was
3240 generated by GNU Autoconf 2.71. Invocation command line was
3241
3242 $ $0$ac_configure_args_raw
3243
3244 _ACEOF
3245 exec 5>>config.log
3246 {
3247 cat <<_ASUNAME
3248 ## --------- ##
3249 ## Platform. ##
3250 ## --------- ##
3251
3252 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3253 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3254 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3255 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3256 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3257
3258 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3259 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3260
3261 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3262 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3263 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3264 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3265 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3266 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3267 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3268
3269 _ASUNAME
3270
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274 IFS=$as_save_IFS
3275 case $as_dir in #(((
3276 '') as_dir=./ ;;
3277 */) ;;
3278 *) as_dir=$as_dir/ ;;
3279 esac
3280 printf "%s\n" "PATH: $as_dir"
3281 done
3282 IFS=$as_save_IFS
3283
3284 } >&5
3285
3286 cat >&5 <<_ACEOF
3287
3288
3289 ## ----------- ##
3290 ## Core tests. ##
3291 ## ----------- ##
3292
3293 _ACEOF
3294
3295
3296 # Keep a trace of the command line.
3297 # Strip out --no-create and --no-recursion so they do not pile up.
3298 # Strip out --silent because we don't want to record it for future runs.
3299 # Also quote any args containing shell meta-characters.
3300 # Make two passes to allow for proper duplicate-argument suppression.
3301 ac_configure_args=
3302 ac_configure_args0=
3303 ac_configure_args1=
3304 ac_must_keep_next=false
3305 for ac_pass in 1 2
3306 do
3307 for ac_arg
3308 do
3309 case $ac_arg in
3310 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3312 | -silent | --silent | --silen | --sile | --sil)
3313 continue ;;
3314 *\'*)
3315 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3316 esac
3317 case $ac_pass in
3318 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3319 2)
3320 as_fn_append ac_configure_args1 " '$ac_arg'"
3321 if test $ac_must_keep_next = true; then
3322 ac_must_keep_next=false # Got value, back to normal.
3323 else
3324 case $ac_arg in
3325 *=* | --config-cache | -C | -disable-* | --disable-* \
3326 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3327 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3328 | -with-* | --with-* | -without-* | --without-* | --x)
3329 case "$ac_configure_args0 " in
3330 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3331 esac
3332 ;;
3333 -* ) ac_must_keep_next=true ;;
3334 esac
3335 fi
3336 as_fn_append ac_configure_args " '$ac_arg'"
3337 ;;
3338 esac
3339 done
3340 done
3341 { ac_configure_args0=; unset ac_configure_args0;}
3342 { ac_configure_args1=; unset ac_configure_args1;}
3343
3344 # When interrupted or exit'd, cleanup temporary files, and complete
3345 # config.log. We remove comments because anyway the quotes in there
3346 # would cause problems or look ugly.
3347 # WARNING: Use '\'' to represent an apostrophe within the trap.
3348 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3349 trap 'exit_status=$?
3350 # Sanitize IFS.
3351 IFS=" "" $as_nl"
3352 # Save into config.log some information that might help in debugging.
3353 {
3354 echo
3355
3356 printf "%s\n" "## ---------------- ##
3357 ## Cache variables. ##
3358 ## ---------------- ##"
3359 echo
3360 # The following way of writing the cache mishandles newlines in values,
3361 (
3362 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3363 eval ac_val=\$$ac_var
3364 case $ac_val in #(
3365 *${as_nl}*)
3366 case $ac_var in #(
3367 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3368 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3369 esac
3370 case $ac_var in #(
3371 _ | IFS | as_nl) ;; #(
3372 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3373 *) { eval $ac_var=; unset $ac_var;} ;;
3374 esac ;;
3375 esac
3376 done
3377 (set) 2>&1 |
3378 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3379 *${as_nl}ac_space=\ *)
3380 sed -n \
3381 "s/'\''/'\''\\\\'\'''\''/g;
3382 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3383 ;; #(
3384 *)
3385 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3386 ;;
3387 esac |
3388 sort
3389 )
3390 echo
3391
3392 printf "%s\n" "## ----------------- ##
3393 ## Output variables. ##
3394 ## ----------------- ##"
3395 echo
3396 for ac_var in $ac_subst_vars
3397 do
3398 eval ac_val=\$$ac_var
3399 case $ac_val in
3400 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3401 esac
3402 printf "%s\n" "$ac_var='\''$ac_val'\''"
3403 done | sort
3404 echo
3405
3406 if test -n "$ac_subst_files"; then
3407 printf "%s\n" "## ------------------- ##
3408 ## File substitutions. ##
3409 ## ------------------- ##"
3410 echo
3411 for ac_var in $ac_subst_files
3412 do
3413 eval ac_val=\$$ac_var
3414 case $ac_val in
3415 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3416 esac
3417 printf "%s\n" "$ac_var='\''$ac_val'\''"
3418 done | sort
3419 echo
3420 fi
3421
3422 if test -s confdefs.h; then
3423 printf "%s\n" "## ----------- ##
3424 ## confdefs.h. ##
3425 ## ----------- ##"
3426 echo
3427 cat confdefs.h
3428 echo
3429 fi
3430 test "$ac_signal" != 0 &&
3431 printf "%s\n" "$as_me: caught signal $ac_signal"
3432 printf "%s\n" "$as_me: exit $exit_status"
3433 } >&5
3434 rm -f core *.core core.conftest.* &&
3435 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3436 exit $exit_status
3437 ' 0
3438 for ac_signal in 1 2 13 15; do
3439 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3440 done
3441 ac_signal=0
3442
3443 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3444 rm -f -r conftest* confdefs.h
3445
3446 printf "%s\n" "/* confdefs.h */" > confdefs.h
3447
3448 # Predefined preprocessor variables.
3449
3450 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3451
3452 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3453
3454 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3455
3456 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3457
3458 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3459
3460 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3461
3462
3463 # Let the site file select an alternate cache file if it wants to.
3464 # Prefer an explicitly selected file to automatically selected ones.
3465 if test -n "$CONFIG_SITE"; then
3466 ac_site_files="$CONFIG_SITE"
3467 elif test "x$prefix" != xNONE; then
3468 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3469 else
3470 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3471 fi
3472
3473 for ac_site_file in $ac_site_files
3474 do
3475 case $ac_site_file in #(
3476 */*) :
3477 ;; #(
3478 *) :
3479 ac_site_file=./$ac_site_file ;;
3480 esac
3481 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3483 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3484 sed 's/^/| /' "$ac_site_file" >&5
3485 . "$ac_site_file" \
3486 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3488 as_fn_error $? "failed to load site script $ac_site_file
3489 See \`config.log' for more details" "$LINENO" 5; }
3490 fi
3491 done
3492
3493 if test -r "$cache_file"; then
3494 # Some versions of bash will fail to source /dev/null (special files
3495 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3496 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3498 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3499 case $cache_file in
3500 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3501 *) . "./$cache_file";;
3502 esac
3503 fi
3504 else
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3506 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3507 >$cache_file
3508 fi
3509
3510 # Test code for whether the C compiler supports C89 (global declarations)
3511 ac_c_conftest_c89_globals='
3512 /* Does the compiler advertise C89 conformance?
3513 Do not test the value of __STDC__, because some compilers set it to 0
3514 while being otherwise adequately conformant. */
3515 #if !defined __STDC__
3516 # error "Compiler does not advertise C89 conformance"
3517 #endif
3518
3519 #include <stddef.h>
3520 #include <stdarg.h>
3521 struct stat;
3522 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3523 struct buf { int x; };
3524 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3525 static char *e (p, i)
3526 char **p;
3527 int i;
3528 {
3529 return p[i];
3530 }
3531 static char *f (char * (*g) (char **, int), char **p, ...)
3532 {
3533 char *s;
3534 va_list v;
3535 va_start (v,p);
3536 s = g (p, va_arg (v,int));
3537 va_end (v);
3538 return s;
3539 }
3540
3541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3542 function prototypes and stuff, but not \xHH hex character constants.
3543 These do not provoke an error unfortunately, instead are silently treated
3544 as an "x". The following induces an error, until -std is added to get
3545 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3546 array size at least. It is necessary to write \x00 == 0 to get something
3547 that is true only with -std. */
3548 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3549
3550 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3551 inside strings and character constants. */
3552 #define FOO(x) '\''x'\''
3553 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3554
3555 int test (int i, double x);
3556 struct s1 {int (*f) (int a);};
3557 struct s2 {int (*f) (double a);};
3558 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3559 int, int);'
3560
3561 # Test code for whether the C compiler supports C89 (body of main).
3562 ac_c_conftest_c89_main='
3563 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3564 '
3565
3566 # Test code for whether the C compiler supports C99 (global declarations)
3567 ac_c_conftest_c99_globals='
3568 // Does the compiler advertise C99 conformance?
3569 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3570 # error "Compiler does not advertise C99 conformance"
3571 #endif
3572
3573 #include <stdbool.h>
3574 extern int puts (const char *);
3575 extern int printf (const char *, ...);
3576 extern int dprintf (int, const char *, ...);
3577 extern void *malloc (size_t);
3578
3579 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3580 // dprintf is used instead of fprintf to avoid needing to declare
3581 // FILE and stderr.
3582 #define debug(...) dprintf (2, __VA_ARGS__)
3583 #define showlist(...) puts (#__VA_ARGS__)
3584 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3585 static void
3586 test_varargs_macros (void)
3587 {
3588 int x = 1234;
3589 int y = 5678;
3590 debug ("Flag");
3591 debug ("X = %d\n", x);
3592 showlist (The first, second, and third items.);
3593 report (x>y, "x is %d but y is %d", x, y);
3594 }
3595
3596 // Check long long types.
3597 #define BIG64 18446744073709551615ull
3598 #define BIG32 4294967295ul
3599 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3600 #if !BIG_OK
3601 #error "your preprocessor is broken"
3602 #endif
3603 #if BIG_OK
3604 #else
3605 #error "your preprocessor is broken"
3606 #endif
3607 static long long int bignum = -9223372036854775807LL;
3608 static unsigned long long int ubignum = BIG64;
3609
3610 struct incomplete_array
3611 {
3612 int datasize;
3613 double data[];
3614 };
3615
3616 struct named_init {
3617 int number;
3618 const wchar_t *name;
3619 double average;
3620 };
3621
3622 typedef const char *ccp;
3623
3624 static inline int
3625 test_restrict (ccp restrict text)
3626 {
3627 // See if C++-style comments work.
3628 // Iterate through items via the restricted pointer.
3629 // Also check for declarations in for loops.
3630 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3631 continue;
3632 return 0;
3633 }
3634
3635 // Check varargs and va_copy.
3636 static bool
3637 test_varargs (const char *format, ...)
3638 {
3639 va_list args;
3640 va_start (args, format);
3641 va_list args_copy;
3642 va_copy (args_copy, args);
3643
3644 const char *str = "";
3645 int number = 0;
3646 float fnumber = 0;
3647
3648 while (*format)
3649 {
3650 switch (*format++)
3651 {
3652 case '\''s'\'': // string
3653 str = va_arg (args_copy, const char *);
3654 break;
3655 case '\''d'\'': // int
3656 number = va_arg (args_copy, int);
3657 break;
3658 case '\''f'\'': // float
3659 fnumber = va_arg (args_copy, double);
3660 break;
3661 default:
3662 break;
3663 }
3664 }
3665 va_end (args_copy);
3666 va_end (args);
3667
3668 return *str && number && fnumber;
3669 }
3670 '
3671
3672 # Test code for whether the C compiler supports C99 (body of main).
3673 ac_c_conftest_c99_main='
3674 // Check bool.
3675 _Bool success = false;
3676 success |= (argc != 0);
3677
3678 // Check restrict.
3679 if (test_restrict ("String literal") == 0)
3680 success = true;
3681 char *restrict newvar = "Another string";
3682
3683 // Check varargs.
3684 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3685 test_varargs_macros ();
3686
3687 // Check flexible array members.
3688 struct incomplete_array *ia =
3689 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3690 ia->datasize = 10;
3691 for (int i = 0; i < ia->datasize; ++i)
3692 ia->data[i] = i * 1.234;
3693
3694 // Check named initializers.
3695 struct named_init ni = {
3696 .number = 34,
3697 .name = L"Test wide string",
3698 .average = 543.34343,
3699 };
3700
3701 ni.number = 58;
3702
3703 int dynamic_array[ni.number];
3704 dynamic_array[0] = argv[0][0];
3705 dynamic_array[ni.number - 1] = 543;
3706
3707 // work around unused variable warnings
3708 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3709 || dynamic_array[ni.number - 1] != 543);
3710 '
3711
3712 # Test code for whether the C compiler supports C11 (global declarations)
3713 ac_c_conftest_c11_globals='
3714 // Does the compiler advertise C11 conformance?
3715 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3716 # error "Compiler does not advertise C11 conformance"
3717 #endif
3718
3719 // Check _Alignas.
3720 char _Alignas (double) aligned_as_double;
3721 char _Alignas (0) no_special_alignment;
3722 extern char aligned_as_int;
3723 char _Alignas (0) _Alignas (int) aligned_as_int;
3724
3725 // Check _Alignof.
3726 enum
3727 {
3728 int_alignment = _Alignof (int),
3729 int_array_alignment = _Alignof (int[100]),
3730 char_alignment = _Alignof (char)
3731 };
3732 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3733
3734 // Check _Noreturn.
3735 int _Noreturn does_not_return (void) { for (;;) continue; }
3736
3737 // Check _Static_assert.
3738 struct test_static_assert
3739 {
3740 int x;
3741 _Static_assert (sizeof (int) <= sizeof (long int),
3742 "_Static_assert does not work in struct");
3743 long int y;
3744 };
3745
3746 // Check UTF-8 literals.
3747 #define u8 syntax error!
3748 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3749
3750 // Check duplicate typedefs.
3751 typedef long *long_ptr;
3752 typedef long int *long_ptr;
3753 typedef long_ptr long_ptr;
3754
3755 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3756 struct anonymous
3757 {
3758 union {
3759 struct { int i; int j; };
3760 struct { int k; long int l; } w;
3761 };
3762 int m;
3763 } v1;
3764 '
3765
3766 # Test code for whether the C compiler supports C11 (body of main).
3767 ac_c_conftest_c11_main='
3768 _Static_assert ((offsetof (struct anonymous, i)
3769 == offsetof (struct anonymous, w.k)),
3770 "Anonymous union alignment botch");
3771 v1.i = 2;
3772 v1.w.k = 5;
3773 ok |= v1.i != 5;
3774 '
3775
3776 # Test code for whether the C compiler supports C11 (complete).
3777 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3778 ${ac_c_conftest_c99_globals}
3779 ${ac_c_conftest_c11_globals}
3780
3781 int
3782 main (int argc, char **argv)
3783 {
3784 int ok = 0;
3785 ${ac_c_conftest_c89_main}
3786 ${ac_c_conftest_c99_main}
3787 ${ac_c_conftest_c11_main}
3788 return ok;
3789 }
3790 "
3791
3792 # Test code for whether the C compiler supports C99 (complete).
3793 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3794 ${ac_c_conftest_c99_globals}
3795
3796 int
3797 main (int argc, char **argv)
3798 {
3799 int ok = 0;
3800 ${ac_c_conftest_c89_main}
3801 ${ac_c_conftest_c99_main}
3802 return ok;
3803 }
3804 "
3805
3806 # Test code for whether the C compiler supports C89 (complete).
3807 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3808
3809 int
3810 main (int argc, char **argv)
3811 {
3812 int ok = 0;
3813 ${ac_c_conftest_c89_main}
3814 return ok;
3815 }
3816 "
3817
3818 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3819 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3820 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3821 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3822 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3823 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3824 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3825 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3826 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3827 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3828 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3829 as_fn_append ac_func_c_list " canonicalize_file_name HAVE_CANONICALIZE_FILE_NAME"
3830 as_fn_append ac_func_c_list " realpath HAVE_REALPATH"
3831 as_fn_append ac_func_c_list " lstat HAVE_LSTAT"
3832 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3833 as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER"
3834 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
3835 as_fn_append ac_header_c_list " error.h error_h HAVE_ERROR_H"
3836 as_fn_append ac_func_c_list " fcntl HAVE_FCNTL"
3837 as_fn_append ac_func_c_list " symlink HAVE_SYMLINK"
3838 as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE"
3839 gl_getopt_required=GNU
3840 as_fn_append ac_header_c_list " getopt.h getopt_h HAVE_GETOPT_H"
3841 as_fn_append ac_header_c_list " sys/cdefs.h sys_cdefs_h HAVE_SYS_CDEFS_H"
3842 as_fn_append ac_func_c_list " getexecname HAVE_GETEXECNAME"
3843 as_fn_append ac_header_c_list " threads.h threads_h HAVE_THREADS_H"
3844 as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
3845 as_fn_append ac_header_c_list " xlocale.h xlocale_h HAVE_XLOCALE_H"
3846 as_fn_append ac_func_c_list " mbsinit HAVE_MBSINIT"
3847 as_fn_append ac_func_c_list " mbrtowc HAVE_MBRTOWC"
3848 as_fn_append ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H"
3849 as_fn_append ac_func_c_list " mprotect HAVE_MPROTECT"
3850 as_fn_append ac_func_c_list " readlink HAVE_READLINK"
3851 as_fn_append ac_func_c_list " setenv HAVE_SETENV"
3852 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3853 as_fn_append ac_header_c_list " stdbool.h stdbool_h HAVE_STDBOOL_H"
3854 as_fn_append ac_header_c_list " stdckdint.h stdckdint_h HAVE_STDCKDINT_H"
3855 as_fn_append ac_func_c_list " vasnprintf HAVE_VASNPRINTF"
3856 as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H"
3857 as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF"
3858 as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H"
3859 as_fn_append ac_func_c_list " iswcntrl HAVE_ISWCNTRL"
3860 as_fn_append ac_header_c_list " wctype.h wctype_h HAVE_WCTYPE_H"
3861
3862 # Auxiliary files required by this configure script.
3863 ac_aux_files="ltmain.sh config.guess config.sub ar-lib compile missing install-sh"
3864
3865 # Locations in which to look for auxiliary files.
3866 ac_aux_dir_candidates="${srcdir}/build-aux"
3867
3868 # Search for a directory containing all of the required auxiliary files,
3869 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3870 # If we don't find one directory that contains all the files we need,
3871 # we report the set of missing files from the *first* directory in
3872 # $ac_aux_dir_candidates and give up.
3873 ac_missing_aux_files=""
3874 ac_first_candidate=:
3875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 as_found=false
3878 for as_dir in $ac_aux_dir_candidates
3879 do
3880 IFS=$as_save_IFS
3881 case $as_dir in #(((
3882 '') as_dir=./ ;;
3883 */) ;;
3884 *) as_dir=$as_dir/ ;;
3885 esac
3886 as_found=:
3887
3888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3889 ac_aux_dir_found=yes
3890 ac_install_sh=
3891 for ac_aux in $ac_aux_files
3892 do
3893 # As a special case, if "install-sh" is required, that requirement
3894 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3895 # and $ac_install_sh is set appropriately for whichever one is found.
3896 if test x"$ac_aux" = x"install-sh"
3897 then
3898 if test -f "${as_dir}install-sh"; then
3899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3900 ac_install_sh="${as_dir}install-sh -c"
3901 elif test -f "${as_dir}install.sh"; then
3902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3903 ac_install_sh="${as_dir}install.sh -c"
3904 elif test -f "${as_dir}shtool"; then
3905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3906 ac_install_sh="${as_dir}shtool install -c"
3907 else
3908 ac_aux_dir_found=no
3909 if $ac_first_candidate; then
3910 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3911 else
3912 break
3913 fi
3914 fi
3915 else
3916 if test -f "${as_dir}${ac_aux}"; then
3917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3918 else
3919 ac_aux_dir_found=no
3920 if $ac_first_candidate; then
3921 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3922 else
3923 break
3924 fi
3925 fi
3926 fi
3927 done
3928 if test "$ac_aux_dir_found" = yes; then
3929 ac_aux_dir="$as_dir"
3930 break
3931 fi
3932 ac_first_candidate=false
3933
3934 as_found=false
3935 done
3936 IFS=$as_save_IFS
3937 if $as_found
3938 then :
3939
3940 else $as_nop
3941 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3942 fi
3943
3944
3945 # These three variables are undocumented and unsupported,
3946 # and are intended to be withdrawn in a future Autoconf release.
3947 # They can cause serious problems if a builder's source tree is in a directory
3948 # whose full name contains unusual characters.
3949 if test -f "${ac_aux_dir}config.guess"; then
3950 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3951 fi
3952 if test -f "${ac_aux_dir}config.sub"; then
3953 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3954 fi
3955 if test -f "$ac_aux_dir/configure"; then
3956 ac_configure="$SHELL ${ac_aux_dir}configure"
3957 fi
3958
3959 # Check that the precious variables saved in the cache have kept the same
3960 # value.
3961 ac_cache_corrupted=false
3962 for ac_var in $ac_precious_vars; do
3963 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3964 eval ac_new_set=\$ac_env_${ac_var}_set
3965 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3966 eval ac_new_val=\$ac_env_${ac_var}_value
3967 case $ac_old_set,$ac_new_set in
3968 set,)
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3970 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3971 ac_cache_corrupted=: ;;
3972 ,set)
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3974 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3975 ac_cache_corrupted=: ;;
3976 ,);;
3977 *)
3978 if test "x$ac_old_val" != "x$ac_new_val"; then
3979 # differences in whitespace do not lead to failure.
3980 ac_old_val_w=`echo x $ac_old_val`
3981 ac_new_val_w=`echo x $ac_new_val`
3982 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3984 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3985 ac_cache_corrupted=:
3986 else
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3988 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3989 eval $ac_var=\$ac_old_val
3990 fi
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3992 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3994 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3995 fi;;
3996 esac
3997 # Pass precious variables to config.status.
3998 if test "$ac_new_set" = set; then
3999 case $ac_new_val in
4000 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4001 *) ac_arg=$ac_var=$ac_new_val ;;
4002 esac
4003 case " $ac_configure_args " in
4004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
4005 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4006 esac
4007 fi
4008 done
4009 if $ac_cache_corrupted; then
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4011 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
4013 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
4014 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
4015 and start over" "$LINENO" 5
4016 fi
4017 ## -------------------- ##
4018 ## Main body of script. ##
4019 ## -------------------- ##
4020
4021 ac_ext=c
4022 ac_cpp='$CPP $CPPFLAGS'
4023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4026
4027
4028
4029
4030 am__api_version='1.16'
4031
4032
4033
4034 # Find a good install program. We prefer a C program (faster),
4035 # so one script is as good as another. But avoid the broken or
4036 # incompatible versions:
4037 # SysV /etc/install, /usr/sbin/install
4038 # SunOS /usr/etc/install
4039 # IRIX /sbin/install
4040 # AIX /bin/install
4041 # AmigaOS /C/install, which installs bootblocks on floppy discs
4042 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4043 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4044 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4045 # OS/2's system install, which has a completely different semantic
4046 # ./install, which can be erroneously created by make from ./install.sh.
4047 # Reject install programs that cannot install multiple files.
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4049 printf %s "checking for a BSD-compatible install... " >&6; }
4050 if test -z "$INSTALL"; then
4051 if test ${ac_cv_path_install+y}
4052 then :
4053 printf %s "(cached) " >&6
4054 else $as_nop
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058 IFS=$as_save_IFS
4059 case $as_dir in #(((
4060 '') as_dir=./ ;;
4061 */) ;;
4062 *) as_dir=$as_dir/ ;;
4063 esac
4064 # Account for fact that we put trailing slashes in our PATH walk.
4065 case $as_dir in #((
4066 ./ | /[cC]/* | \
4067 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4068 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4069 /usr/ucb/* ) ;;
4070 *)
4071 # OSF1 and SCO ODT 3.0 have their own names for install.
4072 # Don't use installbsd from OSF since it installs stuff as root
4073 # by default.
4074 for ac_prog in ginstall scoinst install; do
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4077 if test $ac_prog = install &&
4078 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4079 # AIX install. It has an incompatible calling convention.
4080 :
4081 elif test $ac_prog = install &&
4082 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4083 # program-specific install script used by HP pwplus--don't use.
4084 :
4085 else
4086 rm -rf conftest.one conftest.two conftest.dir
4087 echo one > conftest.one
4088 echo two > conftest.two
4089 mkdir conftest.dir
4090 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4091 test -s conftest.one && test -s conftest.two &&
4092 test -s conftest.dir/conftest.one &&
4093 test -s conftest.dir/conftest.two
4094 then
4095 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4096 break 3
4097 fi
4098 fi
4099 fi
4100 done
4101 done
4102 ;;
4103 esac
4104
4105 done
4106 IFS=$as_save_IFS
4107
4108 rm -rf conftest.one conftest.two conftest.dir
4109
4110 fi
4111 if test ${ac_cv_path_install+y}; then
4112 INSTALL=$ac_cv_path_install
4113 else
4114 # As a last resort, use the slow shell script. Don't cache a
4115 # value for INSTALL within a source directory, because that will
4116 # break other packages using the cache if that directory is
4117 # removed, or if the value is a relative name.
4118 INSTALL=$ac_install_sh
4119 fi
4120 fi
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4122 printf "%s\n" "$INSTALL" >&6; }
4123
4124 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4125 # It thinks the first close brace ends the variable substitution.
4126 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4127
4128 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4129
4130 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4131
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4133 printf %s "checking whether build environment is sane... " >&6; }
4134 # Reject unsafe characters in $srcdir or the absolute working directory
4135 # name. Accept space and tab only in the latter.
4136 am_lf='
4137 '
4138 case `pwd` in
4139 *[\\\"\#\$\&\'\`$am_lf]*)
4140 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4141 esac
4142 case $srcdir in
4143 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4144 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4145 esac
4146
4147 # Do 'set' in a subshell so we don't clobber the current shell's
4148 # arguments. Must try -L first in case configure is actually a
4149 # symlink; some systems play weird games with the mod time of symlinks
4150 # (eg FreeBSD returns the mod time of the symlink's containing
4151 # directory).
4152 if (
4153 am_has_slept=no
4154 for am_try in 1 2; do
4155 echo "timestamp, slept: $am_has_slept" > conftest.file
4156 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4157 if test "$*" = "X"; then
4158 # -L didn't work.
4159 set X `ls -t "$srcdir/configure" conftest.file`
4160 fi
4161 if test "$*" != "X $srcdir/configure conftest.file" \
4162 && test "$*" != "X conftest.file $srcdir/configure"; then
4163
4164 # If neither matched, then we have a broken ls. This can happen
4165 # if, for instance, CONFIG_SHELL is bash and it inherits a
4166 # broken ls alias from the environment. This has actually
4167 # happened. Such a system could not be considered "sane".
4168 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4169 alias in your environment" "$LINENO" 5
4170 fi
4171 if test "$2" = conftest.file || test $am_try -eq 2; then
4172 break
4173 fi
4174 # Just in case.
4175 sleep 1
4176 am_has_slept=yes
4177 done
4178 test "$2" = conftest.file
4179 )
4180 then
4181 # Ok.
4182 :
4183 else
4184 as_fn_error $? "newly created file is older than distributed files!
4185 Check your system clock" "$LINENO" 5
4186 fi
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4188 printf "%s\n" "yes" >&6; }
4189 # If we didn't sleep, we still need to ensure time stamps of config.status and
4190 # generated files are strictly newer.
4191 am_sleep_pid=
4192 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4193 ( sleep 1 ) &
4194 am_sleep_pid=$!
4195 fi
4196
4197 rm -f conftest.file
4198
4199 test "$program_prefix" != NONE &&
4200 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4201 # Use a double $ so make ignores it.
4202 test "$program_suffix" != NONE &&
4203 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4204 # Double any \ or $.
4205 # By default was `s,x,x', remove it if useless.
4206 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4207 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4208
4209
4210 # Expand $ac_aux_dir to an absolute path.
4211 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4212
4213
4214 if test x"${MISSING+set}" != xset; then
4215 MISSING="\${SHELL} '$am_aux_dir/missing'"
4216 fi
4217 # Use eval to expand $SHELL
4218 if eval "$MISSING --is-lightweight"; then
4219 am_missing_run="$MISSING "
4220 else
4221 am_missing_run=
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4223 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4224 fi
4225
4226 if test x"${install_sh+set}" != xset; then
4227 case $am_aux_dir in
4228 *\ * | *\ *)
4229 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4230 *)
4231 install_sh="\${SHELL} $am_aux_dir/install-sh"
4232 esac
4233 fi
4234
4235 # Installed binaries are usually stripped using 'strip' when the user
4236 # run "make install-strip". However 'strip' might not be the right
4237 # tool to use in cross-compilation environments, therefore Automake
4238 # will honor the 'STRIP' environment variable to overrule this program.
4239 if test "$cross_compiling" != no; then
4240 if test -n "$ac_tool_prefix"; then
4241 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4242 set dummy ${ac_tool_prefix}strip; ac_word=$2
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244 printf %s "checking for $ac_word... " >&6; }
4245 if test ${ac_cv_prog_STRIP+y}
4246 then :
4247 printf %s "(cached) " >&6
4248 else $as_nop
4249 if test -n "$STRIP"; then
4250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255 IFS=$as_save_IFS
4256 case $as_dir in #(((
4257 '') as_dir=./ ;;
4258 */) ;;
4259 *) as_dir=$as_dir/ ;;
4260 esac
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4263 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4265 break 2
4266 fi
4267 done
4268 done
4269 IFS=$as_save_IFS
4270
4271 fi
4272 fi
4273 STRIP=$ac_cv_prog_STRIP
4274 if test -n "$STRIP"; then
4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4276 printf "%s\n" "$STRIP" >&6; }
4277 else
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 printf "%s\n" "no" >&6; }
4280 fi
4281
4282
4283 fi
4284 if test -z "$ac_cv_prog_STRIP"; then
4285 ac_ct_STRIP=$STRIP
4286 # Extract the first word of "strip", so it can be a program name with args.
4287 set dummy strip; ac_word=$2
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 printf %s "checking for $ac_word... " >&6; }
4290 if test ${ac_cv_prog_ac_ct_STRIP+y}
4291 then :
4292 printf %s "(cached) " >&6
4293 else $as_nop
4294 if test -n "$ac_ct_STRIP"; then
4295 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4296 else
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4299 do
4300 IFS=$as_save_IFS
4301 case $as_dir in #(((
4302 '') as_dir=./ ;;
4303 */) ;;
4304 *) as_dir=$as_dir/ ;;
4305 esac
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4308 ac_cv_prog_ac_ct_STRIP="strip"
4309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4310 break 2
4311 fi
4312 done
4313 done
4314 IFS=$as_save_IFS
4315
4316 fi
4317 fi
4318 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4319 if test -n "$ac_ct_STRIP"; then
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4321 printf "%s\n" "$ac_ct_STRIP" >&6; }
4322 else
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 printf "%s\n" "no" >&6; }
4325 fi
4326
4327 if test "x$ac_ct_STRIP" = x; then
4328 STRIP=":"
4329 else
4330 case $cross_compiling:$ac_tool_warned in
4331 yes:)
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4333 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4334 ac_tool_warned=yes ;;
4335 esac
4336 STRIP=$ac_ct_STRIP
4337 fi
4338 else
4339 STRIP="$ac_cv_prog_STRIP"
4340 fi
4341
4342 fi
4343 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4344
4345
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4347 printf %s "checking for a race-free mkdir -p... " >&6; }
4348 if test -z "$MKDIR_P"; then
4349 if test ${ac_cv_path_mkdir+y}
4350 then :
4351 printf %s "(cached) " >&6
4352 else $as_nop
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4355 do
4356 IFS=$as_save_IFS
4357 case $as_dir in #(((
4358 '') as_dir=./ ;;
4359 */) ;;
4360 *) as_dir=$as_dir/ ;;
4361 esac
4362 for ac_prog in mkdir gmkdir; do
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4365 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4366 'mkdir ('*'coreutils) '* | \
4367 'BusyBox '* | \
4368 'mkdir (fileutils) '4.1*)
4369 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4370 break 3;;
4371 esac
4372 done
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377 fi
4378
4379 test -d ./--version && rmdir ./--version
4380 if test ${ac_cv_path_mkdir+y}; then
4381 MKDIR_P="$ac_cv_path_mkdir -p"
4382 else
4383 # As a last resort, use the slow shell script. Don't cache a
4384 # value for MKDIR_P within a source directory, because that will
4385 # break other packages using the cache if that directory is
4386 # removed, or if the value is a relative name.
4387 MKDIR_P="$ac_install_sh -d"
4388 fi
4389 fi
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4391 printf "%s\n" "$MKDIR_P" >&6; }
4392
4393 for ac_prog in gawk mawk nawk awk
4394 do
4395 # Extract the first word of "$ac_prog", so it can be a program name with args.
4396 set dummy $ac_prog; ac_word=$2
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 printf %s "checking for $ac_word... " >&6; }
4399 if test ${ac_cv_prog_AWK+y}
4400 then :
4401 printf %s "(cached) " >&6
4402 else $as_nop
4403 if test -n "$AWK"; then
4404 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409 IFS=$as_save_IFS
4410 case $as_dir in #(((
4411 '') as_dir=./ ;;
4412 */) ;;
4413 *) as_dir=$as_dir/ ;;
4414 esac
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4417 ac_cv_prog_AWK="$ac_prog"
4418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4419 break 2
4420 fi
4421 done
4422 done
4423 IFS=$as_save_IFS
4424
4425 fi
4426 fi
4427 AWK=$ac_cv_prog_AWK
4428 if test -n "$AWK"; then
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4430 printf "%s\n" "$AWK" >&6; }
4431 else
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 printf "%s\n" "no" >&6; }
4434 fi
4435
4436
4437 test -n "$AWK" && break
4438 done
4439
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4441 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4442 set x ${MAKE-make}
4443 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4444 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4445 then :
4446 printf %s "(cached) " >&6
4447 else $as_nop
4448 cat >conftest.make <<\_ACEOF
4449 SHELL = /bin/sh
4450 all:
4451 @echo '@@@%%%=$(MAKE)=@@@%%%'
4452 _ACEOF
4453 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4454 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4455 *@@@%%%=?*=@@@%%%*)
4456 eval ac_cv_prog_make_${ac_make}_set=yes;;
4457 *)
4458 eval ac_cv_prog_make_${ac_make}_set=no;;
4459 esac
4460 rm -f conftest.make
4461 fi
4462 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4464 printf "%s\n" "yes" >&6; }
4465 SET_MAKE=
4466 else
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 printf "%s\n" "no" >&6; }
4469 SET_MAKE="MAKE=${MAKE-make}"
4470 fi
4471
4472 rm -rf .tst 2>/dev/null
4473 mkdir .tst 2>/dev/null
4474 if test -d .tst; then
4475 am__leading_dot=.
4476 else
4477 am__leading_dot=_
4478 fi
4479 rmdir .tst 2>/dev/null
4480
4481 # Check whether --enable-silent-rules was given.
4482 if test ${enable_silent_rules+y}
4483 then :
4484 enableval=$enable_silent_rules;
4485 fi
4486
4487 case $enable_silent_rules in # (((
4488 yes) AM_DEFAULT_VERBOSITY=0;;
4489 no) AM_DEFAULT_VERBOSITY=1;;
4490 *) AM_DEFAULT_VERBOSITY=1;;
4491 esac
4492 am_make=${MAKE-make}
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4494 printf %s "checking whether $am_make supports nested variables... " >&6; }
4495 if test ${am_cv_make_support_nested_variables+y}
4496 then :
4497 printf %s "(cached) " >&6
4498 else $as_nop
4499 if printf "%s\n" 'TRUE=$(BAR$(V))
4500 BAR0=false
4501 BAR1=true
4502 V=1
4503 am__doit:
4504 @$(TRUE)
4505 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4506 am_cv_make_support_nested_variables=yes
4507 else
4508 am_cv_make_support_nested_variables=no
4509 fi
4510 fi
4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4512 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4513 if test $am_cv_make_support_nested_variables = yes; then
4514 AM_V='$(V)'
4515 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4516 else
4517 AM_V=$AM_DEFAULT_VERBOSITY
4518 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4519 fi
4520 AM_BACKSLASH='\'
4521
4522 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4523 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4524 # is not polluted with repeated "-I."
4525 am__isrc=' -I$(srcdir)'
4526 # test to see if srcdir already configured
4527 if test -f $srcdir/config.status; then
4528 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4529 fi
4530 fi
4531
4532 # test whether we have cygpath
4533 if test -z "$CYGPATH_W"; then
4534 if (cygpath --version) >/dev/null 2>/dev/null; then
4535 CYGPATH_W='cygpath -w'
4536 else
4537 CYGPATH_W=echo
4538 fi
4539 fi
4540
4541
4542 # Define the identity of the package.
4543 PACKAGE='libpaper'
4544 VERSION='2.2.5'
4545
4546
4547 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4548
4549
4550 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4551
4552 # Some tools Automake needs.
4553
4554 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4555
4556
4557 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4558
4559
4560 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4561
4562
4563 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4564
4565
4566 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4567
4568 # For better backward compatibility. To be removed once Automake 1.9.x
4569 # dies out for good. For more background, see:
4570 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4571 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4572 mkdir_p='$(MKDIR_P)'
4573
4574 # We need awk for the "check" target (and possibly the TAP driver). The
4575 # system "awk" is bad on some platforms.
4576 # Always define AMTAR for backward compatibility. Yes, it's still used
4577 # in the wild :-( We should find a proper way to deprecate it ...
4578 AMTAR='$${TAR-tar}'
4579
4580
4581 # We'll loop over all known methods to create a tar archive until one works.
4582 _am_tools='gnutar pax cpio none'
4583
4584 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4585
4586
4587
4588
4589
4590 # Variables for tags utilities; see am/tags.am
4591 if test -z "$CTAGS"; then
4592 CTAGS=ctags
4593 fi
4594
4595 if test -z "$ETAGS"; then
4596 ETAGS=etags
4597 fi
4598
4599 if test -z "$CSCOPE"; then
4600 CSCOPE=cscope
4601 fi
4602
4603
4604
4605 # POSIX will say in a future version that running "rm -f" with no argument
4606 # is OK; and we want to be able to make that assumption in our Makefile
4607 # recipes. So use an aggressive probe to check that the usage we want is
4608 # actually supported "in the wild" to an acceptable degree.
4609 # See automake bug#10828.
4610 # To make any issue more visible, cause the running configure to be aborted
4611 # by default if the 'rm' program in use doesn't match our expectations; the
4612 # user can still override this though.
4613 if rm -f && rm -fr && rm -rf; then : OK; else
4614 cat >&2 <<'END'
4615 Oops!
4616
4617 Your 'rm' program seems unable to run without file operands specified
4618 on the command line, even when the '-f' option is present. This is contrary
4619 to the behaviour of most rm programs out there, and not conforming with
4620 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4621
4622 Please tell [email protected] about your system, including the value
4623 of your $PATH and any error possibly output before this message. This
4624 can help us improve future automake versions.
4625
4626 END
4627 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4628 echo 'Configuration will proceed anyway, since you have set the' >&2
4629 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4630 echo >&2
4631 else
4632 cat >&2 <<'END'
4633 Aborting the configuration process, to ensure you take notice of the issue.
4634
4635 You can download and install GNU coreutils to get an 'rm' implementation
4636 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4637
4638 If you want to complete the configuration process using your problematic
4639 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4640 to "yes", and re-run configure.
4641
4642 END
4643 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4644 fi
4645 fi
4646
4647 # Check whether --enable-silent-rules was given.
4648 if test ${enable_silent_rules+y}
4649 then :
4650 enableval=$enable_silent_rules;
4651 fi
4652
4653 case $enable_silent_rules in # (((
4654 yes) AM_DEFAULT_VERBOSITY=0;;
4655 no) AM_DEFAULT_VERBOSITY=1;;
4656 *) AM_DEFAULT_VERBOSITY=0;;
4657 esac
4658 am_make=${MAKE-make}
4659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4660 printf %s "checking whether $am_make supports nested variables... " >&6; }
4661 if test ${am_cv_make_support_nested_variables+y}
4662 then :
4663 printf %s "(cached) " >&6
4664 else $as_nop
4665 if printf "%s\n" 'TRUE=$(BAR$(V))
4666 BAR0=false
4667 BAR1=true
4668 V=1
4669 am__doit:
4670 @$(TRUE)
4671 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4672 am_cv_make_support_nested_variables=yes
4673 else
4674 am_cv_make_support_nested_variables=no
4675 fi
4676 fi
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4678 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4679 if test $am_cv_make_support_nested_variables = yes; then
4680 AM_V='$(V)'
4681 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4682 else
4683 AM_V=$AM_DEFAULT_VERBOSITY
4684 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4685 fi
4686 AM_BACKSLASH='\'
4687
4688
4689
4690 LIBPAPER_MAJOR_VERSION=`echo $VERSION | awk -F. '{print $1}'`
4691 LIBPAPER_MINOR_VERSION=`echo $VERSION | awk -F. '{print $2}'`
4692 LIBPAPER_MICRO_VERSION=`echo $VERSION | awk -F. '{print $3}'`
4693 LIBPAPER_VERSION=$LIBPAPER_MAJOR_VERSION.$LIBPAPER_MINOR_VERSION.$LIBPAPER_MICRO_VERSION$LIBPAPER_MICRO_VERSION_SUFFIX
4694 LIBPAPER_VERSION_NUMBER=`expr $LIBPAPER_MAJOR_VERSION \* 1000000 + $LIBPAPER_MINOR_VERSION \* 1000 + $LIBPAPER_MICRO_VERSION`
4695
4696 LIBPAPER_SONUM=$LIBPAPER_MAJOR_VERSION
4697 AGE=$LIBPAPER_MINOR_VERSION
4698 REVISION=$LIBPAPER_MICRO_VERSION
4699 CURRENT=`expr $LIBPAPER_SONUM + $AGE`
4700
4701 VERSION_INFO=$CURRENT:$REVISION:$AGE
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717 ac_ext=c
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 if test -n "$ac_tool_prefix"; then
4723 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4724 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 printf %s "checking for $ac_word... " >&6; }
4727 if test ${ac_cv_prog_CC+y}
4728 then :
4729 printf %s "(cached) " >&6
4730 else $as_nop
4731 if test -n "$CC"; then
4732 ac_cv_prog_CC="$CC" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737 IFS=$as_save_IFS
4738 case $as_dir in #(((
4739 '') as_dir=./ ;;
4740 */) ;;
4741 *) as_dir=$as_dir/ ;;
4742 esac
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4745 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4747 break 2
4748 fi
4749 done
4750 done
4751 IFS=$as_save_IFS
4752
4753 fi
4754 fi
4755 CC=$ac_cv_prog_CC
4756 if test -n "$CC"; then
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4758 printf "%s\n" "$CC" >&6; }
4759 else
4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 printf "%s\n" "no" >&6; }
4762 fi
4763
4764
4765 fi
4766 if test -z "$ac_cv_prog_CC"; then
4767 ac_ct_CC=$CC
4768 # Extract the first word of "gcc", so it can be a program name with args.
4769 set dummy gcc; ac_word=$2
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 printf %s "checking for $ac_word... " >&6; }
4772 if test ${ac_cv_prog_ac_ct_CC+y}
4773 then :
4774 printf %s "(cached) " >&6
4775 else $as_nop
4776 if test -n "$ac_ct_CC"; then
4777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782 IFS=$as_save_IFS
4783 case $as_dir in #(((
4784 '') as_dir=./ ;;
4785 */) ;;
4786 *) as_dir=$as_dir/ ;;
4787 esac
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4790 ac_cv_prog_ac_ct_CC="gcc"
4791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4792 break 2
4793 fi
4794 done
4795 done
4796 IFS=$as_save_IFS
4797
4798 fi
4799 fi
4800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4801 if test -n "$ac_ct_CC"; then
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4803 printf "%s\n" "$ac_ct_CC" >&6; }
4804 else
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 printf "%s\n" "no" >&6; }
4807 fi
4808
4809 if test "x$ac_ct_CC" = x; then
4810 CC=""
4811 else
4812 case $cross_compiling:$ac_tool_warned in
4813 yes:)
4814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4815 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4816 ac_tool_warned=yes ;;
4817 esac
4818 CC=$ac_ct_CC
4819 fi
4820 else
4821 CC="$ac_cv_prog_CC"
4822 fi
4823
4824 if test -z "$CC"; then
4825 if test -n "$ac_tool_prefix"; then
4826 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4827 set dummy ${ac_tool_prefix}cc; ac_word=$2
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 printf %s "checking for $ac_word... " >&6; }
4830 if test ${ac_cv_prog_CC+y}
4831 then :
4832 printf %s "(cached) " >&6
4833 else $as_nop
4834 if test -n "$CC"; then
4835 ac_cv_prog_CC="$CC" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840 IFS=$as_save_IFS
4841 case $as_dir in #(((
4842 '') as_dir=./ ;;
4843 */) ;;
4844 *) as_dir=$as_dir/ ;;
4845 esac
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4848 ac_cv_prog_CC="${ac_tool_prefix}cc"
4849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4850 break 2
4851 fi
4852 done
4853 done
4854 IFS=$as_save_IFS
4855
4856 fi
4857 fi
4858 CC=$ac_cv_prog_CC
4859 if test -n "$CC"; then
4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4861 printf "%s\n" "$CC" >&6; }
4862 else
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864 printf "%s\n" "no" >&6; }
4865 fi
4866
4867
4868 fi
4869 fi
4870 if test -z "$CC"; then
4871 # Extract the first word of "cc", so it can be a program name with args.
4872 set dummy cc; ac_word=$2
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874 printf %s "checking for $ac_word... " >&6; }
4875 if test ${ac_cv_prog_CC+y}
4876 then :
4877 printf %s "(cached) " >&6
4878 else $as_nop
4879 if test -n "$CC"; then
4880 ac_cv_prog_CC="$CC" # Let the user override the test.
4881 else
4882 ac_prog_rejected=no
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4885 do
4886 IFS=$as_save_IFS
4887 case $as_dir in #(((
4888 '') as_dir=./ ;;
4889 */) ;;
4890 *) as_dir=$as_dir/ ;;
4891 esac
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4894 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4895 ac_prog_rejected=yes
4896 continue
4897 fi
4898 ac_cv_prog_CC="cc"
4899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4900 break 2
4901 fi
4902 done
4903 done
4904 IFS=$as_save_IFS
4905
4906 if test $ac_prog_rejected = yes; then
4907 # We found a bogon in the path, so make sure we never use it.
4908 set dummy $ac_cv_prog_CC
4909 shift
4910 if test $# != 0; then
4911 # We chose a different compiler from the bogus one.
4912 # However, it has the same basename, so the bogon will be chosen
4913 # first if we set CC to just the basename; use the full file name.
4914 shift
4915 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4916 fi
4917 fi
4918 fi
4919 fi
4920 CC=$ac_cv_prog_CC
4921 if test -n "$CC"; then
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4923 printf "%s\n" "$CC" >&6; }
4924 else
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 printf "%s\n" "no" >&6; }
4927 fi
4928
4929
4930 fi
4931 if test -z "$CC"; then
4932 if test -n "$ac_tool_prefix"; then
4933 for ac_prog in cl.exe
4934 do
4935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 printf %s "checking for $ac_word... " >&6; }
4939 if test ${ac_cv_prog_CC+y}
4940 then :
4941 printf %s "(cached) " >&6
4942 else $as_nop
4943 if test -n "$CC"; then
4944 ac_cv_prog_CC="$CC" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949 IFS=$as_save_IFS
4950 case $as_dir in #(((
4951 '') as_dir=./ ;;
4952 */) ;;
4953 *) as_dir=$as_dir/ ;;
4954 esac
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4959 break 2
4960 fi
4961 done
4962 done
4963 IFS=$as_save_IFS
4964
4965 fi
4966 fi
4967 CC=$ac_cv_prog_CC
4968 if test -n "$CC"; then
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4970 printf "%s\n" "$CC" >&6; }
4971 else
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 printf "%s\n" "no" >&6; }
4974 fi
4975
4976
4977 test -n "$CC" && break
4978 done
4979 fi
4980 if test -z "$CC"; then
4981 ac_ct_CC=$CC
4982 for ac_prog in cl.exe
4983 do
4984 # Extract the first word of "$ac_prog", so it can be a program name with args.
4985 set dummy $ac_prog; ac_word=$2
4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 printf %s "checking for $ac_word... " >&6; }
4988 if test ${ac_cv_prog_ac_ct_CC+y}
4989 then :
4990 printf %s "(cached) " >&6
4991 else $as_nop
4992 if test -n "$ac_ct_CC"; then
4993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998 IFS=$as_save_IFS
4999 case $as_dir in #(((
5000 '') as_dir=./ ;;
5001 */) ;;
5002 *) as_dir=$as_dir/ ;;
5003 esac
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5006 ac_cv_prog_ac_ct_CC="$ac_prog"
5007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5008 break 2
5009 fi
5010 done
5011 done
5012 IFS=$as_save_IFS
5013
5014 fi
5015 fi
5016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5017 if test -n "$ac_ct_CC"; then
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5019 printf "%s\n" "$ac_ct_CC" >&6; }
5020 else
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 printf "%s\n" "no" >&6; }
5023 fi
5024
5025
5026 test -n "$ac_ct_CC" && break
5027 done
5028
5029 if test "x$ac_ct_CC" = x; then
5030 CC=""
5031 else
5032 case $cross_compiling:$ac_tool_warned in
5033 yes:)
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5035 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5036 ac_tool_warned=yes ;;
5037 esac
5038 CC=$ac_ct_CC
5039 fi
5040 fi
5041
5042 fi
5043 if test -z "$CC"; then
5044 if test -n "$ac_tool_prefix"; then
5045 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5046 set dummy ${ac_tool_prefix}clang; ac_word=$2
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 printf %s "checking for $ac_word... " >&6; }
5049 if test ${ac_cv_prog_CC+y}
5050 then :
5051 printf %s "(cached) " >&6
5052 else $as_nop
5053 if test -n "$CC"; then
5054 ac_cv_prog_CC="$CC" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059 IFS=$as_save_IFS
5060 case $as_dir in #(((
5061 '') as_dir=./ ;;
5062 */) ;;
5063 *) as_dir=$as_dir/ ;;
5064 esac
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_CC="${ac_tool_prefix}clang"
5068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5069 break 2
5070 fi
5071 done
5072 done
5073 IFS=$as_save_IFS
5074
5075 fi
5076 fi
5077 CC=$ac_cv_prog_CC
5078 if test -n "$CC"; then
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5080 printf "%s\n" "$CC" >&6; }
5081 else
5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 printf "%s\n" "no" >&6; }
5084 fi
5085
5086
5087 fi
5088 if test -z "$ac_cv_prog_CC"; then
5089 ac_ct_CC=$CC
5090 # Extract the first word of "clang", so it can be a program name with args.
5091 set dummy clang; ac_word=$2
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 printf %s "checking for $ac_word... " >&6; }
5094 if test ${ac_cv_prog_ac_ct_CC+y}
5095 then :
5096 printf %s "(cached) " >&6
5097 else $as_nop
5098 if test -n "$ac_ct_CC"; then
5099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104 IFS=$as_save_IFS
5105 case $as_dir in #(((
5106 '') as_dir=./ ;;
5107 */) ;;
5108 *) as_dir=$as_dir/ ;;
5109 esac
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5112 ac_cv_prog_ac_ct_CC="clang"
5113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5114 break 2
5115 fi
5116 done
5117 done
5118 IFS=$as_save_IFS
5119
5120 fi
5121 fi
5122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5123 if test -n "$ac_ct_CC"; then
5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5125 printf "%s\n" "$ac_ct_CC" >&6; }
5126 else
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 printf "%s\n" "no" >&6; }
5129 fi
5130
5131 if test "x$ac_ct_CC" = x; then
5132 CC=""
5133 else
5134 case $cross_compiling:$ac_tool_warned in
5135 yes:)
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5137 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5138 ac_tool_warned=yes ;;
5139 esac
5140 CC=$ac_ct_CC
5141 fi
5142 else
5143 CC="$ac_cv_prog_CC"
5144 fi
5145
5146 fi
5147
5148
5149 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5150 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5151 as_fn_error $? "no acceptable C compiler found in \$PATH
5152 See \`config.log' for more details" "$LINENO" 5; }
5153
5154 # Provide some information about the compiler.
5155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5156 set X $ac_compile
5157 ac_compiler=$2
5158 for ac_option in --version -v -V -qversion -version; do
5159 { { ac_try="$ac_compiler $ac_option >&5"
5160 case "(($ac_try" in
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5163 esac
5164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5165 printf "%s\n" "$ac_try_echo"; } >&5
5166 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5167 ac_status=$?
5168 if test -s conftest.err; then
5169 sed '10a\
5170 ... rest of stderr output deleted ...
5171 10q' conftest.err >conftest.er1
5172 cat conftest.er1 >&5
5173 fi
5174 rm -f conftest.er1 conftest.err
5175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5176 test $ac_status = 0; }
5177 done
5178
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181
5182 int
5183 main (void)
5184 {
5185
5186 ;
5187 return 0;
5188 }
5189 _ACEOF
5190 ac_clean_files_save=$ac_clean_files
5191 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5192 # Try to create an executable without -o first, disregard a.out.
5193 # It will help us diagnose broken compilers, and finding out an intuition
5194 # of exeext.
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5196 printf %s "checking whether the C compiler works... " >&6; }
5197 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5198
5199 # The possible output files:
5200 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5201
5202 ac_rmfiles=
5203 for ac_file in $ac_files
5204 do
5205 case $ac_file in
5206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5207 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5208 esac
5209 done
5210 rm -f $ac_rmfiles
5211
5212 if { { ac_try="$ac_link_default"
5213 case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5216 esac
5217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5218 printf "%s\n" "$ac_try_echo"; } >&5
5219 (eval "$ac_link_default") 2>&5
5220 ac_status=$?
5221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5222 test $ac_status = 0; }
5223 then :
5224 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5225 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5226 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5227 # so that the user can short-circuit this test for compilers unknown to
5228 # Autoconf.
5229 for ac_file in $ac_files ''
5230 do
5231 test -f "$ac_file" || continue
5232 case $ac_file in
5233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5234 ;;
5235 [ab].out )
5236 # We found the default executable, but exeext='' is most
5237 # certainly right.
5238 break;;
5239 *.* )
5240 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5241 then :; else
5242 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5243 fi
5244 # We set ac_cv_exeext here because the later test for it is not
5245 # safe: cross compilers may not add the suffix if given an `-o'
5246 # argument, so we may need to know it at that point already.
5247 # Even if this section looks crufty: it has the advantage of
5248 # actually working.
5249 break;;
5250 * )
5251 break;;
5252 esac
5253 done
5254 test "$ac_cv_exeext" = no && ac_cv_exeext=
5255
5256 else $as_nop
5257 ac_file=''
5258 fi
5259 if test -z "$ac_file"
5260 then :
5261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 printf "%s\n" "no" >&6; }
5263 printf "%s\n" "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5265
5266 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5267 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5268 as_fn_error 77 "C compiler cannot create executables
5269 See \`config.log' for more details" "$LINENO" 5; }
5270 else $as_nop
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5272 printf "%s\n" "yes" >&6; }
5273 fi
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5275 printf %s "checking for C compiler default output file name... " >&6; }
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5277 printf "%s\n" "$ac_file" >&6; }
5278 ac_exeext=$ac_cv_exeext
5279
5280 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5281 ac_clean_files=$ac_clean_files_save
5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5283 printf %s "checking for suffix of executables... " >&6; }
5284 if { { ac_try="$ac_link"
5285 case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288 esac
5289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5290 printf "%s\n" "$ac_try_echo"; } >&5
5291 (eval "$ac_link") 2>&5
5292 ac_status=$?
5293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5294 test $ac_status = 0; }
5295 then :
5296 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5297 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5298 # work properly (i.e., refer to `conftest.exe'), while it won't with
5299 # `rm'.
5300 for ac_file in conftest.exe conftest conftest.*; do
5301 test -f "$ac_file" || continue
5302 case $ac_file in
5303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5304 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5305 break;;
5306 * ) break;;
5307 esac
5308 done
5309 else $as_nop
5310 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5311 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5312 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5313 See \`config.log' for more details" "$LINENO" 5; }
5314 fi
5315 rm -f conftest conftest$ac_cv_exeext
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5317 printf "%s\n" "$ac_cv_exeext" >&6; }
5318
5319 rm -f conftest.$ac_ext
5320 EXEEXT=$ac_cv_exeext
5321 ac_exeext=$EXEEXT
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5324 #include <stdio.h>
5325 int
5326 main (void)
5327 {
5328 FILE *f = fopen ("conftest.out", "w");
5329 return ferror (f) || fclose (f) != 0;
5330
5331 ;
5332 return 0;
5333 }
5334 _ACEOF
5335 ac_clean_files="$ac_clean_files conftest.out"
5336 # Check that the compiler produces executables we can run. If not, either
5337 # the compiler is broken, or we cross compile.
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5339 printf %s "checking whether we are cross compiling... " >&6; }
5340 if test "$cross_compiling" != yes; then
5341 { { ac_try="$ac_link"
5342 case "(($ac_try" in
5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 *) ac_try_echo=$ac_try;;
5345 esac
5346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5347 printf "%s\n" "$ac_try_echo"; } >&5
5348 (eval "$ac_link") 2>&5
5349 ac_status=$?
5350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5351 test $ac_status = 0; }
5352 if { ac_try='./conftest$ac_cv_exeext'
5353 { { case "(($ac_try" in
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5356 esac
5357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5358 printf "%s\n" "$ac_try_echo"; } >&5
5359 (eval "$ac_try") 2>&5
5360 ac_status=$?
5361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5362 test $ac_status = 0; }; }; then
5363 cross_compiling=no
5364 else
5365 if test "$cross_compiling" = maybe; then
5366 cross_compiling=yes
5367 else
5368 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5369 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5370 as_fn_error 77 "cannot run C compiled programs.
5371 If you meant to cross compile, use \`--host'.
5372 See \`config.log' for more details" "$LINENO" 5; }
5373 fi
5374 fi
5375 fi
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5377 printf "%s\n" "$cross_compiling" >&6; }
5378
5379 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5380 ac_clean_files=$ac_clean_files_save
5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5382 printf %s "checking for suffix of object files... " >&6; }
5383 if test ${ac_cv_objext+y}
5384 then :
5385 printf %s "(cached) " >&6
5386 else $as_nop
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389
5390 int
5391 main (void)
5392 {
5393
5394 ;
5395 return 0;
5396 }
5397 _ACEOF
5398 rm -f conftest.o conftest.obj
5399 if { { ac_try="$ac_compile"
5400 case "(($ac_try" in
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5403 esac
5404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5405 printf "%s\n" "$ac_try_echo"; } >&5
5406 (eval "$ac_compile") 2>&5
5407 ac_status=$?
5408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5409 test $ac_status = 0; }
5410 then :
5411 for ac_file in conftest.o conftest.obj conftest.*; do
5412 test -f "$ac_file" || continue;
5413 case $ac_file in
5414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5415 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5416 break;;
5417 esac
5418 done
5419 else $as_nop
5420 printf "%s\n" "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5424 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5425 as_fn_error $? "cannot compute suffix of object files: cannot compile
5426 See \`config.log' for more details" "$LINENO" 5; }
5427 fi
5428 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5429 fi
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5431 printf "%s\n" "$ac_cv_objext" >&6; }
5432 OBJEXT=$ac_cv_objext
5433 ac_objext=$OBJEXT
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5435 printf %s "checking whether the compiler supports GNU C... " >&6; }
5436 if test ${ac_cv_c_compiler_gnu+y}
5437 then :
5438 printf %s "(cached) " >&6
5439 else $as_nop
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442
5443 int
5444 main (void)
5445 {
5446 #ifndef __GNUC__
5447 choke me
5448 #endif
5449
5450 ;
5451 return 0;
5452 }
5453 _ACEOF
5454 if ac_fn_c_try_compile "$LINENO"
5455 then :
5456 ac_compiler_gnu=yes
5457 else $as_nop
5458 ac_compiler_gnu=no
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5461 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5462
5463 fi
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5465 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5467
5468 if test $ac_compiler_gnu = yes; then
5469 GCC=yes
5470 else
5471 GCC=
5472 fi
5473 ac_test_CFLAGS=${CFLAGS+y}
5474 ac_save_CFLAGS=$CFLAGS
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5476 printf %s "checking whether $CC accepts -g... " >&6; }
5477 if test ${ac_cv_prog_cc_g+y}
5478 then :
5479 printf %s "(cached) " >&6
5480 else $as_nop
5481 ac_save_c_werror_flag=$ac_c_werror_flag
5482 ac_c_werror_flag=yes
5483 ac_cv_prog_cc_g=no
5484 CFLAGS="-g"
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487
5488 int
5489 main (void)
5490 {
5491
5492 ;
5493 return 0;
5494 }
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"
5497 then :
5498 ac_cv_prog_cc_g=yes
5499 else $as_nop
5500 CFLAGS=""
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503
5504 int
5505 main (void)
5506 {
5507
5508 ;
5509 return 0;
5510 }
5511 _ACEOF
5512 if ac_fn_c_try_compile "$LINENO"
5513 then :
5514
5515 else $as_nop
5516 ac_c_werror_flag=$ac_save_c_werror_flag
5517 CFLAGS="-g"
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5520
5521 int
5522 main (void)
5523 {
5524
5525 ;
5526 return 0;
5527 }
5528 _ACEOF
5529 if ac_fn_c_try_compile "$LINENO"
5530 then :
5531 ac_cv_prog_cc_g=yes
5532 fi
5533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5534 fi
5535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5536 fi
5537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5538 ac_c_werror_flag=$ac_save_c_werror_flag
5539 fi
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5541 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5542 if test $ac_test_CFLAGS; then
5543 CFLAGS=$ac_save_CFLAGS
5544 elif test $ac_cv_prog_cc_g = yes; then
5545 if test "$GCC" = yes; then
5546 CFLAGS="-g -O2"
5547 else
5548 CFLAGS="-g"
5549 fi
5550 else
5551 if test "$GCC" = yes; then
5552 CFLAGS="-O2"
5553 else
5554 CFLAGS=
5555 fi
5556 fi
5557 ac_prog_cc_stdc=no
5558 if test x$ac_prog_cc_stdc = xno
5559 then :
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5561 printf %s "checking for $CC option to enable C11 features... " >&6; }
5562 if test ${ac_cv_prog_cc_c11+y}
5563 then :
5564 printf %s "(cached) " >&6
5565 else $as_nop
5566 ac_cv_prog_cc_c11=no
5567 ac_save_CC=$CC
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 $ac_c_conftest_c11_program
5571 _ACEOF
5572 for ac_arg in '' -std=gnu11
5573 do
5574 CC="$ac_save_CC $ac_arg"
5575 if ac_fn_c_try_compile "$LINENO"
5576 then :
5577 ac_cv_prog_cc_c11=$ac_arg
5578 fi
5579 rm -f core conftest.err conftest.$ac_objext conftest.beam
5580 test "x$ac_cv_prog_cc_c11" != "xno" && break
5581 done
5582 rm -f conftest.$ac_ext
5583 CC=$ac_save_CC
5584 fi
5585
5586 if test "x$ac_cv_prog_cc_c11" = xno
5587 then :
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5589 printf "%s\n" "unsupported" >&6; }
5590 else $as_nop
5591 if test "x$ac_cv_prog_cc_c11" = x
5592 then :
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5594 printf "%s\n" "none needed" >&6; }
5595 else $as_nop
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5597 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5598 CC="$CC $ac_cv_prog_cc_c11"
5599 fi
5600 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5601 ac_prog_cc_stdc=c11
5602 fi
5603 fi
5604 if test x$ac_prog_cc_stdc = xno
5605 then :
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5607 printf %s "checking for $CC option to enable C99 features... " >&6; }
5608 if test ${ac_cv_prog_cc_c99+y}
5609 then :
5610 printf %s "(cached) " >&6
5611 else $as_nop
5612 ac_cv_prog_cc_c99=no
5613 ac_save_CC=$CC
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 $ac_c_conftest_c99_program
5617 _ACEOF
5618 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5619 do
5620 CC="$ac_save_CC $ac_arg"
5621 if ac_fn_c_try_compile "$LINENO"
5622 then :
5623 ac_cv_prog_cc_c99=$ac_arg
5624 fi
5625 rm -f core conftest.err conftest.$ac_objext conftest.beam
5626 test "x$ac_cv_prog_cc_c99" != "xno" && break
5627 done
5628 rm -f conftest.$ac_ext
5629 CC=$ac_save_CC
5630 fi
5631
5632 if test "x$ac_cv_prog_cc_c99" = xno
5633 then :
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5635 printf "%s\n" "unsupported" >&6; }
5636 else $as_nop
5637 if test "x$ac_cv_prog_cc_c99" = x
5638 then :
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5640 printf "%s\n" "none needed" >&6; }
5641 else $as_nop
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5643 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5644 CC="$CC $ac_cv_prog_cc_c99"
5645 fi
5646 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5647 ac_prog_cc_stdc=c99
5648 fi
5649 fi
5650 if test x$ac_prog_cc_stdc = xno
5651 then :
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5653 printf %s "checking for $CC option to enable C89 features... " >&6; }
5654 if test ${ac_cv_prog_cc_c89+y}
5655 then :
5656 printf %s "(cached) " >&6
5657 else $as_nop
5658 ac_cv_prog_cc_c89=no
5659 ac_save_CC=$CC
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 $ac_c_conftest_c89_program
5663 _ACEOF
5664 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5665 do
5666 CC="$ac_save_CC $ac_arg"
5667 if ac_fn_c_try_compile "$LINENO"
5668 then :
5669 ac_cv_prog_cc_c89=$ac_arg
5670 fi
5671 rm -f core conftest.err conftest.$ac_objext conftest.beam
5672 test "x$ac_cv_prog_cc_c89" != "xno" && break
5673 done
5674 rm -f conftest.$ac_ext
5675 CC=$ac_save_CC
5676 fi
5677
5678 if test "x$ac_cv_prog_cc_c89" = xno
5679 then :
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5681 printf "%s\n" "unsupported" >&6; }
5682 else $as_nop
5683 if test "x$ac_cv_prog_cc_c89" = x
5684 then :
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5686 printf "%s\n" "none needed" >&6; }
5687 else $as_nop
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5689 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5690 CC="$CC $ac_cv_prog_cc_c89"
5691 fi
5692 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5693 ac_prog_cc_stdc=c89
5694 fi
5695 fi
5696
5697 ac_ext=c
5698 ac_cpp='$CPP $CPPFLAGS'
5699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5702
5703
5704 ac_ext=c
5705 ac_cpp='$CPP $CPPFLAGS'
5706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5710 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5711 if test ${am_cv_prog_cc_c_o+y}
5712 then :
5713 printf %s "(cached) " >&6
5714 else $as_nop
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717
5718 int
5719 main (void)
5720 {
5721
5722 ;
5723 return 0;
5724 }
5725 _ACEOF
5726 # Make sure it works both with $CC and with simple cc.
5727 # Following AC_PROG_CC_C_O, we do the test twice because some
5728 # compilers refuse to overwrite an existing .o file with -o,
5729 # though they will create one.
5730 am_cv_prog_cc_c_o=yes
5731 for am_i in 1 2; do
5732 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5733 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } \
5737 && test -f conftest2.$ac_objext; then
5738 : OK
5739 else
5740 am_cv_prog_cc_c_o=no
5741 break
5742 fi
5743 done
5744 rm -f core conftest*
5745 unset am_i
5746 fi
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5748 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5749 if test "$am_cv_prog_cc_c_o" != yes; then
5750 # Losing compiler, so override with the script.
5751 # FIXME: It is wrong to rewrite CC.
5752 # But if we don't then we get into trouble of one sort or another.
5753 # A longer-term fix would be to have automake use am__CC in this case,
5754 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5755 CC="$am_aux_dir/compile $CC"
5756 fi
5757 ac_ext=c
5758 ac_cpp='$CPP $CPPFLAGS'
5759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5762
5763
5764
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5766 printf %s "checking whether the compiler is clang... " >&6; }
5767 if test ${gl_cv_compiler_clang+y}
5768 then :
5769 printf %s "(cached) " >&6
5770 else $as_nop
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773
5774 #ifdef __clang__
5775 barfbarf
5776 #endif
5777
5778 int
5779 main (void)
5780 {
5781
5782 ;
5783 return 0;
5784 }
5785
5786 _ACEOF
5787 if ac_fn_c_try_compile "$LINENO"
5788 then :
5789 gl_cv_compiler_clang=no
5790 else $as_nop
5791 gl_cv_compiler_clang=yes
5792 fi
5793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5794
5795 fi
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5797 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
5798
5799
5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5801 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
5802 if test ${gl_cv_compiler_check_decl_option+y}
5803 then :
5804 printf %s "(cached) " >&6
5805 else $as_nop
5806 if test $gl_cv_compiler_clang = yes; then
5807 save_ac_compile="$ac_compile"
5808 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5811
5812 int
5813 main (void)
5814 {
5815
5816 ;
5817 return 0;
5818 }
5819 _ACEOF
5820 if ac_fn_c_try_compile "$LINENO"
5821 then :
5822 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5823 else $as_nop
5824 gl_cv_compiler_check_decl_option=none
5825 fi
5826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5827 ac_compile="$save_ac_compile"
5828 else
5829 gl_cv_compiler_check_decl_option=none
5830 fi
5831
5832 fi
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5834 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
5835 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5836 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5837 else
5838 ac_compile_for_check_decl="$ac_compile"
5839 fi
5840
5841 DEPDIR="${am__leading_dot}deps"
5842
5843 ac_config_commands="$ac_config_commands depfiles"
5844
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5846 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5847 cat > confinc.mk << 'END'
5848 am__doit:
5849 @echo this is the am__doit target >confinc.out
5850 .PHONY: am__doit
5851 END
5852 am__include="#"
5853 am__quote=
5854 # BSD make does it like this.
5855 echo '.include "confinc.mk" # ignored' > confmf.BSD
5856 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5857 echo 'include confinc.mk # ignored' > confmf.GNU
5858 _am_result=no
5859 for s in GNU BSD; do
5860 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5861 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }
5865 case $?:`cat confinc.out 2>/dev/null` in #(
5866 '0:this is the am__doit target') :
5867 case $s in #(
5868 BSD) :
5869 am__include='.include' am__quote='"' ;; #(
5870 *) :
5871 am__include='include' am__quote='' ;;
5872 esac ;; #(
5873 *) :
5874 ;;
5875 esac
5876 if test "$am__include" != "#"; then
5877 _am_result="yes ($s style)"
5878 break
5879 fi
5880 done
5881 rm -f confinc.* confmf.*
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5883 printf "%s\n" "${_am_result}" >&6; }
5884
5885 # Check whether --enable-dependency-tracking was given.
5886 if test ${enable_dependency_tracking+y}
5887 then :
5888 enableval=$enable_dependency_tracking;
5889 fi
5890
5891 if test "x$enable_dependency_tracking" != xno; then
5892 am_depcomp="$ac_aux_dir/depcomp"
5893 AMDEPBACKSLASH='\'
5894 am__nodep='_no'
5895 fi
5896 if test "x$enable_dependency_tracking" != xno; then
5897 AMDEP_TRUE=
5898 AMDEP_FALSE='#'
5899 else
5900 AMDEP_TRUE='#'
5901 AMDEP_FALSE=
5902 fi
5903
5904
5905
5906 depcc="$CC" am_compiler_list=
5907
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5909 printf %s "checking dependency style of $depcc... " >&6; }
5910 if test ${am_cv_CC_dependencies_compiler_type+y}
5911 then :
5912 printf %s "(cached) " >&6
5913 else $as_nop
5914 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5915 # We make a subdir and do the tests there. Otherwise we can end up
5916 # making bogus files that we don't know about and never remove. For
5917 # instance it was reported that on HP-UX the gcc test will end up
5918 # making a dummy file named 'D' -- because '-MD' means "put the output
5919 # in D".
5920 rm -rf conftest.dir
5921 mkdir conftest.dir
5922 # Copy depcomp to subdir because otherwise we won't find it if we're
5923 # using a relative directory.
5924 cp "$am_depcomp" conftest.dir
5925 cd conftest.dir
5926 # We will build objects and dependencies in a subdirectory because
5927 # it helps to detect inapplicable dependency modes. For instance
5928 # both Tru64's cc and ICC support -MD to output dependencies as a
5929 # side effect of compilation, but ICC will put the dependencies in
5930 # the current directory while Tru64 will put them in the object
5931 # directory.
5932 mkdir sub
5933
5934 am_cv_CC_dependencies_compiler_type=none
5935 if test "$am_compiler_list" = ""; then
5936 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5937 fi
5938 am__universal=false
5939 case " $depcc " in #(
5940 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5941 esac
5942
5943 for depmode in $am_compiler_list; do
5944 # Setup a source with many dependencies, because some compilers
5945 # like to wrap large dependency lists on column 80 (with \), and
5946 # we should not choose a depcomp mode which is confused by this.
5947 #
5948 # We need to recreate these files for each test, as the compiler may
5949 # overwrite some of them when testing with obscure command lines.
5950 # This happens at least with the AIX C compiler.
5951 : > sub/conftest.c
5952 for i in 1 2 3 4 5 6; do
5953 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5954 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5955 # Solaris 10 /bin/sh.
5956 echo '/* dummy */' > sub/conftst$i.h
5957 done
5958 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5959
5960 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5961 # mode. It turns out that the SunPro C++ compiler does not properly
5962 # handle '-M -o', and we need to detect this. Also, some Intel
5963 # versions had trouble with output in subdirs.
5964 am__obj=sub/conftest.${OBJEXT-o}
5965 am__minus_obj="-o $am__obj"
5966 case $depmode in
5967 gcc)
5968 # This depmode causes a compiler race in universal mode.
5969 test "$am__universal" = false || continue
5970 ;;
5971 nosideeffect)
5972 # After this tag, mechanisms are not by side-effect, so they'll
5973 # only be used when explicitly requested.
5974 if test "x$enable_dependency_tracking" = xyes; then
5975 continue
5976 else
5977 break
5978 fi
5979 ;;
5980 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5981 # This compiler won't grok '-c -o', but also, the minuso test has
5982 # not run yet. These depmodes are late enough in the game, and
5983 # so weak that their functioning should not be impacted.
5984 am__obj=conftest.${OBJEXT-o}
5985 am__minus_obj=
5986 ;;
5987 none) break ;;
5988 esac
5989 if depmode=$depmode \
5990 source=sub/conftest.c object=$am__obj \
5991 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5992 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5993 >/dev/null 2>conftest.err &&
5994 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5995 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5996 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5997 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5998 # icc doesn't choke on unknown options, it will just issue warnings
5999 # or remarks (even with -Werror). So we grep stderr for any message
6000 # that says an option was ignored or not supported.
6001 # When given -MP, icc 7.0 and 7.1 complain thusly:
6002 # icc: Command line warning: ignoring option '-M'; no argument required
6003 # The diagnosis changed in icc 8.0:
6004 # icc: Command line remark: option '-MP' not supported
6005 if (grep 'ignoring option' conftest.err ||
6006 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6007 am_cv_CC_dependencies_compiler_type=$depmode
6008 break
6009 fi
6010 fi
6011 done
6012
6013 cd ..
6014 rm -rf conftest.dir
6015 else
6016 am_cv_CC_dependencies_compiler_type=none
6017 fi
6018
6019 fi
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6021 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6022 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6023
6024 if
6025 test "x$enable_dependency_tracking" != xno \
6026 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6027 am__fastdepCC_TRUE=
6028 am__fastdepCC_FALSE='#'
6029 else
6030 am__fastdepCC_TRUE='#'
6031 am__fastdepCC_FALSE=
6032 fi
6033
6034
6035
6036 ac_header= ac_cache=
6037 for ac_item in $ac_header_c_list
6038 do
6039 if test $ac_cache; then
6040 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6041 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6042 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6043 fi
6044 ac_header= ac_cache=
6045 elif test $ac_header; then
6046 ac_cache=$ac_item
6047 else
6048 ac_header=$ac_item
6049 fi
6050 done
6051
6052
6053
6054
6055
6056
6057
6058
6059 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6060 then :
6061
6062 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6063
6064 fi
6065
6066
6067
6068
6069
6070
6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6072 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6073 if test ${ac_cv_safe_to_define___extensions__+y}
6074 then :
6075 printf %s "(cached) " >&6
6076 else $as_nop
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079
6080 # define __EXTENSIONS__ 1
6081 $ac_includes_default
6082 int
6083 main (void)
6084 {
6085
6086 ;
6087 return 0;
6088 }
6089 _ACEOF
6090 if ac_fn_c_try_compile "$LINENO"
6091 then :
6092 ac_cv_safe_to_define___extensions__=yes
6093 else $as_nop
6094 ac_cv_safe_to_define___extensions__=no
6095 fi
6096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6097 fi
6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6099 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6100
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6102 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6103 if test ${ac_cv_should_define__xopen_source+y}
6104 then :
6105 printf %s "(cached) " >&6
6106 else $as_nop
6107 ac_cv_should_define__xopen_source=no
6108 if test $ac_cv_header_wchar_h = yes
6109 then :
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112
6113 #include <wchar.h>
6114 mbstate_t x;
6115 int
6116 main (void)
6117 {
6118
6119 ;
6120 return 0;
6121 }
6122 _ACEOF
6123 if ac_fn_c_try_compile "$LINENO"
6124 then :
6125
6126 else $as_nop
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6129
6130 #define _XOPEN_SOURCE 500
6131 #include <wchar.h>
6132 mbstate_t x;
6133 int
6134 main (void)
6135 {
6136
6137 ;
6138 return 0;
6139 }
6140 _ACEOF
6141 if ac_fn_c_try_compile "$LINENO"
6142 then :
6143 ac_cv_should_define__xopen_source=yes
6144 fi
6145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6146 fi
6147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6148 fi
6149 fi
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6151 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6152
6153 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6154
6155 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6156
6157 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6158
6159 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6160
6161 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6162
6163 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6164
6165 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6166
6167 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6168
6169 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6170
6171 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6172
6173 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
6174
6175 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6176
6177 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6178
6179 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6180
6181 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6182
6183 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6184
6185 if test $ac_cv_header_minix_config_h = yes
6186 then :
6187 MINIX=yes
6188 printf "%s\n" "#define _MINIX 1" >>confdefs.h
6189
6190 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6191
6192 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6193
6194 else $as_nop
6195 MINIX=
6196 fi
6197 if test $ac_cv_safe_to_define___extensions__ = yes
6198 then :
6199 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6200
6201 fi
6202 if test $ac_cv_should_define__xopen_source = yes
6203 then :
6204 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6205
6206 fi
6207
6208 ac_ext=c
6209 ac_cpp='$CPP $CPPFLAGS'
6210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6214 printf %s "checking how to run the C preprocessor... " >&6; }
6215 # On Suns, sometimes $CPP names a directory.
6216 if test -n "$CPP" && test -d "$CPP"; then
6217 CPP=
6218 fi
6219 if test -z "$CPP"; then
6220 if test ${ac_cv_prog_CPP+y}
6221 then :
6222 printf %s "(cached) " >&6
6223 else $as_nop
6224 # Double quotes because $CC needs to be expanded
6225 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6226 do
6227 ac_preproc_ok=false
6228 for ac_c_preproc_warn_flag in '' yes
6229 do
6230 # Use a header file that comes with gcc, so configuring glibc
6231 # with a fresh cross-compiler works.
6232 # On the NeXT, cc -E runs the code through the compiler's parser,
6233 # not just through cpp. "Syntax error" is here to catch this case.
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 #include <limits.h>
6237 Syntax error
6238 _ACEOF
6239 if ac_fn_c_try_cpp "$LINENO"
6240 then :
6241
6242 else $as_nop
6243 # Broken: fails on valid input.
6244 continue
6245 fi
6246 rm -f conftest.err conftest.i conftest.$ac_ext
6247
6248 # OK, works on sane cases. Now check whether nonexistent headers
6249 # can be detected and how.
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6252 #include <ac_nonexistent.h>
6253 _ACEOF
6254 if ac_fn_c_try_cpp "$LINENO"
6255 then :
6256 # Broken: success on invalid input.
6257 continue
6258 else $as_nop
6259 # Passes both tests.
6260 ac_preproc_ok=:
6261 break
6262 fi
6263 rm -f conftest.err conftest.i conftest.$ac_ext
6264
6265 done
6266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6267 rm -f conftest.i conftest.err conftest.$ac_ext
6268 if $ac_preproc_ok
6269 then :
6270 break
6271 fi
6272
6273 done
6274 ac_cv_prog_CPP=$CPP
6275
6276 fi
6277 CPP=$ac_cv_prog_CPP
6278 else
6279 ac_cv_prog_CPP=$CPP
6280 fi
6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6282 printf "%s\n" "$CPP" >&6; }
6283 ac_preproc_ok=false
6284 for ac_c_preproc_warn_flag in '' yes
6285 do
6286 # Use a header file that comes with gcc, so configuring glibc
6287 # with a fresh cross-compiler works.
6288 # On the NeXT, cc -E runs the code through the compiler's parser,
6289 # not just through cpp. "Syntax error" is here to catch this case.
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6292 #include <limits.h>
6293 Syntax error
6294 _ACEOF
6295 if ac_fn_c_try_cpp "$LINENO"
6296 then :
6297
6298 else $as_nop
6299 # Broken: fails on valid input.
6300 continue
6301 fi
6302 rm -f conftest.err conftest.i conftest.$ac_ext
6303
6304 # OK, works on sane cases. Now check whether nonexistent headers
6305 # can be detected and how.
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6308 #include <ac_nonexistent.h>
6309 _ACEOF
6310 if ac_fn_c_try_cpp "$LINENO"
6311 then :
6312 # Broken: success on invalid input.
6313 continue
6314 else $as_nop
6315 # Passes both tests.
6316 ac_preproc_ok=:
6317 break
6318 fi
6319 rm -f conftest.err conftest.i conftest.$ac_ext
6320
6321 done
6322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6323 rm -f conftest.i conftest.err conftest.$ac_ext
6324 if $ac_preproc_ok
6325 then :
6326
6327 else $as_nop
6328 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6329 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6330 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6331 See \`config.log' for more details" "$LINENO" 5; }
6332 fi
6333
6334 ac_ext=c
6335 ac_cpp='$CPP $CPPFLAGS'
6336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6339
6340
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6342 printf %s "checking for grep that handles long lines and -e... " >&6; }
6343 if test ${ac_cv_path_GREP+y}
6344 then :
6345 printf %s "(cached) " >&6
6346 else $as_nop
6347 if test -z "$GREP"; then
6348 ac_path_GREP_found=false
6349 # Loop through the user's path and test for each of PROGNAME-LIST
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6352 do
6353 IFS=$as_save_IFS
6354 case $as_dir in #(((
6355 '') as_dir=./ ;;
6356 */) ;;
6357 *) as_dir=$as_dir/ ;;
6358 esac
6359 for ac_prog in grep ggrep
6360 do
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6363 as_fn_executable_p "$ac_path_GREP" || continue
6364 # Check for GNU ac_path_GREP and select it if it is found.
6365 # Check for GNU $ac_path_GREP
6366 case `"$ac_path_GREP" --version 2>&1` in
6367 *GNU*)
6368 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6369 *)
6370 ac_count=0
6371 printf %s 0123456789 >"conftest.in"
6372 while :
6373 do
6374 cat "conftest.in" "conftest.in" >"conftest.tmp"
6375 mv "conftest.tmp" "conftest.in"
6376 cp "conftest.in" "conftest.nl"
6377 printf "%s\n" 'GREP' >> "conftest.nl"
6378 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6380 as_fn_arith $ac_count + 1 && ac_count=$as_val
6381 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6382 # Best one so far, save it but keep looking for a better one
6383 ac_cv_path_GREP="$ac_path_GREP"
6384 ac_path_GREP_max=$ac_count
6385 fi
6386 # 10*(2^10) chars as input seems more than enough
6387 test $ac_count -gt 10 && break
6388 done
6389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6390 esac
6391
6392 $ac_path_GREP_found && break 3
6393 done
6394 done
6395 done
6396 IFS=$as_save_IFS
6397 if test -z "$ac_cv_path_GREP"; then
6398 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6399 fi
6400 else
6401 ac_cv_path_GREP=$GREP
6402 fi
6403
6404 fi
6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6406 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6407 GREP="$ac_cv_path_GREP"
6408
6409
6410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6411 printf %s "checking for egrep... " >&6; }
6412 if test ${ac_cv_path_EGREP+y}
6413 then :
6414 printf %s "(cached) " >&6
6415 else $as_nop
6416 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6417 then ac_cv_path_EGREP="$GREP -E"
6418 else
6419 if test -z "$EGREP"; then
6420 ac_path_EGREP_found=false
6421 # Loop through the user's path and test for each of PROGNAME-LIST
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6424 do
6425 IFS=$as_save_IFS
6426 case $as_dir in #(((
6427 '') as_dir=./ ;;
6428 */) ;;
6429 *) as_dir=$as_dir/ ;;
6430 esac
6431 for ac_prog in egrep
6432 do
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6435 as_fn_executable_p "$ac_path_EGREP" || continue
6436 # Check for GNU ac_path_EGREP and select it if it is found.
6437 # Check for GNU $ac_path_EGREP
6438 case `"$ac_path_EGREP" --version 2>&1` in
6439 *GNU*)
6440 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6441 *)
6442 ac_count=0
6443 printf %s 0123456789 >"conftest.in"
6444 while :
6445 do
6446 cat "conftest.in" "conftest.in" >"conftest.tmp"
6447 mv "conftest.tmp" "conftest.in"
6448 cp "conftest.in" "conftest.nl"
6449 printf "%s\n" 'EGREP' >> "conftest.nl"
6450 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6452 as_fn_arith $ac_count + 1 && ac_count=$as_val
6453 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6454 # Best one so far, save it but keep looking for a better one
6455 ac_cv_path_EGREP="$ac_path_EGREP"
6456 ac_path_EGREP_max=$ac_count
6457 fi
6458 # 10*(2^10) chars as input seems more than enough
6459 test $ac_count -gt 10 && break
6460 done
6461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6462 esac
6463
6464 $ac_path_EGREP_found && break 3
6465 done
6466 done
6467 done
6468 IFS=$as_save_IFS
6469 if test -z "$ac_cv_path_EGREP"; then
6470 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6471 fi
6472 else
6473 ac_cv_path_EGREP=$EGREP
6474 fi
6475
6476 fi
6477 fi
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6479 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6480 EGREP="$ac_cv_path_EGREP"
6481
6482
6483
6484
6485
6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6487 printf %s "checking for Minix Amsterdam compiler... " >&6; }
6488 if test ${gl_cv_c_amsterdam_compiler+y}
6489 then :
6490 printf %s "(cached) " >&6
6491 else $as_nop
6492
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6495
6496 #ifdef __ACK__
6497 Amsterdam
6498 #endif
6499
6500 _ACEOF
6501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6502 $EGREP "Amsterdam" >/dev/null 2>&1
6503 then :
6504 gl_cv_c_amsterdam_compiler=yes
6505 else $as_nop
6506 gl_cv_c_amsterdam_compiler=no
6507 fi
6508 rm -rf conftest*
6509
6510
6511 fi
6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6513 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
6514
6515 if test $gl_cv_c_amsterdam_compiler = yes; then
6516 if test -z "$AR"; then
6517 AR='cc -c.a'
6518 fi
6519 if test -z "$ARFLAGS"; then
6520 ARFLAGS='-o'
6521 fi
6522 else
6523
6524 if test -n "$ac_tool_prefix"; then
6525 for ac_prog in ar lib "link -lib"
6526 do
6527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 printf %s "checking for $ac_word... " >&6; }
6531 if test ${ac_cv_prog_AR+y}
6532 then :
6533 printf %s "(cached) " >&6
6534 else $as_nop
6535 if test -n "$AR"; then
6536 ac_cv_prog_AR="$AR" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541 IFS=$as_save_IFS
6542 case $as_dir in #(((
6543 '') as_dir=./ ;;
6544 */) ;;
6545 *) as_dir=$as_dir/ ;;
6546 esac
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6549 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553 done
6554 done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 AR=$ac_cv_prog_AR
6560 if test -n "$AR"; then
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6562 printf "%s\n" "$AR" >&6; }
6563 else
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 printf "%s\n" "no" >&6; }
6566 fi
6567
6568
6569 test -n "$AR" && break
6570 done
6571 fi
6572 if test -z "$AR"; then
6573 ac_ct_AR=$AR
6574 for ac_prog in ar lib "link -lib"
6575 do
6576 # Extract the first word of "$ac_prog", so it can be a program name with args.
6577 set dummy $ac_prog; ac_word=$2
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579 printf %s "checking for $ac_word... " >&6; }
6580 if test ${ac_cv_prog_ac_ct_AR+y}
6581 then :
6582 printf %s "(cached) " >&6
6583 else $as_nop
6584 if test -n "$ac_ct_AR"; then
6585 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6586 else
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6589 do
6590 IFS=$as_save_IFS
6591 case $as_dir in #(((
6592 '') as_dir=./ ;;
6593 */) ;;
6594 *) as_dir=$as_dir/ ;;
6595 esac
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6598 ac_cv_prog_ac_ct_AR="$ac_prog"
6599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6600 break 2
6601 fi
6602 done
6603 done
6604 IFS=$as_save_IFS
6605
6606 fi
6607 fi
6608 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6609 if test -n "$ac_ct_AR"; then
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6611 printf "%s\n" "$ac_ct_AR" >&6; }
6612 else
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 printf "%s\n" "no" >&6; }
6615 fi
6616
6617
6618 test -n "$ac_ct_AR" && break
6619 done
6620
6621 if test "x$ac_ct_AR" = x; then
6622 AR="false"
6623 else
6624 case $cross_compiling:$ac_tool_warned in
6625 yes:)
6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6627 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6628 ac_tool_warned=yes ;;
6629 esac
6630 AR=$ac_ct_AR
6631 fi
6632 fi
6633
6634 : ${AR=ar}
6635
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6637 printf %s "checking the archiver ($AR) interface... " >&6; }
6638 if test ${am_cv_ar_interface+y}
6639 then :
6640 printf %s "(cached) " >&6
6641 else $as_nop
6642 ac_ext=c
6643 ac_cpp='$CPP $CPPFLAGS'
6644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6647
6648 am_cv_ar_interface=ar
6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650 /* end confdefs.h. */
6651 int some_variable = 0;
6652 _ACEOF
6653 if ac_fn_c_try_compile "$LINENO"
6654 then :
6655 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6657 (eval $am_ar_try) 2>&5
6658 ac_status=$?
6659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6660 test $ac_status = 0; }
6661 if test "$ac_status" -eq 0; then
6662 am_cv_ar_interface=ar
6663 else
6664 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6666 (eval $am_ar_try) 2>&5
6667 ac_status=$?
6668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6669 test $ac_status = 0; }
6670 if test "$ac_status" -eq 0; then
6671 am_cv_ar_interface=lib
6672 else
6673 am_cv_ar_interface=unknown
6674 fi
6675 fi
6676 rm -f conftest.lib libconftest.a
6677
6678 fi
6679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6680 ac_ext=c
6681 ac_cpp='$CPP $CPPFLAGS'
6682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6685
6686 fi
6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6688 printf "%s\n" "$am_cv_ar_interface" >&6; }
6689
6690 case $am_cv_ar_interface in
6691 ar)
6692 ;;
6693 lib)
6694 # Microsoft lib, so override with the ar-lib wrapper script.
6695 # FIXME: It is wrong to rewrite AR.
6696 # But if we don't then we get into trouble of one sort or another.
6697 # A longer-term fix would be to have automake use am__AR in this case,
6698 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6699 # similar.
6700 AR="$am_aux_dir/ar-lib $AR"
6701 ;;
6702 unknown)
6703 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6704 ;;
6705 esac
6706
6707 fi
6708
6709 if test -n "$ac_tool_prefix"; then
6710 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6711 set dummy ${ac_tool_prefix}ar; ac_word=$2
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 printf %s "checking for $ac_word... " >&6; }
6714 if test ${ac_cv_prog_AR+y}
6715 then :
6716 printf %s "(cached) " >&6
6717 else $as_nop
6718 if test -n "$AR"; then
6719 ac_cv_prog_AR="$AR" # Let the user override the test.
6720 else
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724 IFS=$as_save_IFS
6725 case $as_dir in #(((
6726 '') as_dir=./ ;;
6727 */) ;;
6728 *) as_dir=$as_dir/ ;;
6729 esac
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6732 ac_cv_prog_AR="${ac_tool_prefix}ar"
6733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6734 break 2
6735 fi
6736 done
6737 done
6738 IFS=$as_save_IFS
6739
6740 fi
6741 fi
6742 AR=$ac_cv_prog_AR
6743 if test -n "$AR"; then
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6745 printf "%s\n" "$AR" >&6; }
6746 else
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 printf "%s\n" "no" >&6; }
6749 fi
6750
6751
6752 fi
6753 if test -z "$ac_cv_prog_AR"; then
6754 ac_ct_AR=$AR
6755 # Extract the first word of "ar", so it can be a program name with args.
6756 set dummy ar; ac_word=$2
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 printf %s "checking for $ac_word... " >&6; }
6759 if test ${ac_cv_prog_ac_ct_AR+y}
6760 then :
6761 printf %s "(cached) " >&6
6762 else $as_nop
6763 if test -n "$ac_ct_AR"; then
6764 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769 IFS=$as_save_IFS
6770 case $as_dir in #(((
6771 '') as_dir=./ ;;
6772 */) ;;
6773 *) as_dir=$as_dir/ ;;
6774 esac
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6777 ac_cv_prog_ac_ct_AR="ar"
6778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6779 break 2
6780 fi
6781 done
6782 done
6783 IFS=$as_save_IFS
6784
6785 fi
6786 fi
6787 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6788 if test -n "$ac_ct_AR"; then
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6790 printf "%s\n" "$ac_ct_AR" >&6; }
6791 else
6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 printf "%s\n" "no" >&6; }
6794 fi
6795
6796 if test "x$ac_ct_AR" = x; then
6797 AR="ar"
6798 else
6799 case $cross_compiling:$ac_tool_warned in
6800 yes:)
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803 ac_tool_warned=yes ;;
6804 esac
6805 AR=$ac_ct_AR
6806 fi
6807 else
6808 AR="$ac_cv_prog_AR"
6809 fi
6810
6811 if test -z "$ARFLAGS"; then
6812 ARFLAGS='cr'
6813 fi
6814
6815
6816
6817 if test -z "$RANLIB"; then
6818 if test $gl_cv_c_amsterdam_compiler = yes; then
6819 RANLIB=':'
6820 else
6821 if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 printf %s "checking for $ac_word... " >&6; }
6826 if test ${ac_cv_prog_RANLIB+y}
6827 then :
6828 printf %s "(cached) " >&6
6829 else $as_nop
6830 if test -n "$RANLIB"; then
6831 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836 IFS=$as_save_IFS
6837 case $as_dir in #(((
6838 '') as_dir=./ ;;
6839 */) ;;
6840 *) as_dir=$as_dir/ ;;
6841 esac
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6844 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852 fi
6853 fi
6854 RANLIB=$ac_cv_prog_RANLIB
6855 if test -n "$RANLIB"; then
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6857 printf "%s\n" "$RANLIB" >&6; }
6858 else
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 printf "%s\n" "no" >&6; }
6861 fi
6862
6863
6864 fi
6865 if test -z "$ac_cv_prog_RANLIB"; then
6866 ac_ct_RANLIB=$RANLIB
6867 # Extract the first word of "ranlib", so it can be a program name with args.
6868 set dummy ranlib; ac_word=$2
6869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 printf %s "checking for $ac_word... " >&6; }
6871 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6872 then :
6873 printf %s "(cached) " >&6
6874 else $as_nop
6875 if test -n "$ac_ct_RANLIB"; then
6876 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6877 else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881 IFS=$as_save_IFS
6882 case $as_dir in #(((
6883 '') as_dir=./ ;;
6884 */) ;;
6885 *) as_dir=$as_dir/ ;;
6886 esac
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6889 ac_cv_prog_ac_ct_RANLIB="ranlib"
6890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893 done
6894 done
6895 IFS=$as_save_IFS
6896
6897 fi
6898 fi
6899 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6900 if test -n "$ac_ct_RANLIB"; then
6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6902 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6903 else
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 printf "%s\n" "no" >&6; }
6906 fi
6907
6908 if test "x$ac_ct_RANLIB" = x; then
6909 RANLIB=":"
6910 else
6911 case $cross_compiling:$ac_tool_warned in
6912 yes:)
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915 ac_tool_warned=yes ;;
6916 esac
6917 RANLIB=$ac_ct_RANLIB
6918 fi
6919 else
6920 RANLIB="$ac_cv_prog_RANLIB"
6921 fi
6922
6923 fi
6924 fi
6925
6926
6927
6928
6929 # Pre-early section.
6930
6931
6932 # Code from module bootstrap:
6933 # Code from module extract-trace:
6934 # Code from module funclib.sh:
6935 # Code from module inline-source:
6936 # Code from module manywarnings:
6937 # Code from module options-parser:
6938 # Code from module relocatable-lib-lgpl:
6939 # Code from module warnings:
6940
6941
6942
6943 # Make sure we can run config.sub.
6944 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6945 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6946
6947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6948 printf %s "checking build system type... " >&6; }
6949 if test ${ac_cv_build+y}
6950 then :
6951 printf %s "(cached) " >&6
6952 else $as_nop
6953 ac_build_alias=$build_alias
6954 test "x$ac_build_alias" = x &&
6955 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6956 test "x$ac_build_alias" = x &&
6957 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6958 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6959 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6960
6961 fi
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6963 printf "%s\n" "$ac_cv_build" >&6; }
6964 case $ac_cv_build in
6965 *-*-*) ;;
6966 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6967 esac
6968 build=$ac_cv_build
6969 ac_save_IFS=$IFS; IFS='-'
6970 set x $ac_cv_build
6971 shift
6972 build_cpu=$1
6973 build_vendor=$2
6974 shift; shift
6975 # Remember, the first character of IFS is used to create $*,
6976 # except with old shells:
6977 build_os=$*
6978 IFS=$ac_save_IFS
6979 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6980
6981
6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6983 printf %s "checking host system type... " >&6; }
6984 if test ${ac_cv_host+y}
6985 then :
6986 printf %s "(cached) " >&6
6987 else $as_nop
6988 if test "x$host_alias" = x; then
6989 ac_cv_host=$ac_cv_build
6990 else
6991 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6992 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6993 fi
6994
6995 fi
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6997 printf "%s\n" "$ac_cv_host" >&6; }
6998 case $ac_cv_host in
6999 *-*-*) ;;
7000 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7001 esac
7002 host=$ac_cv_host
7003 ac_save_IFS=$IFS; IFS='-'
7004 set x $ac_cv_host
7005 shift
7006 host_cpu=$1
7007 host_vendor=$2
7008 shift; shift
7009 # Remember, the first character of IFS is used to create $*,
7010 # except with old shells:
7011 host_os=$*
7012 IFS=$ac_save_IFS
7013 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7014
7015
7016
7017
7018
7019
7020 case "$host_os" in
7021 openbsd*)
7022
7023 printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h
7024
7025 ;;
7026 esac
7027
7028 if test "$enable_largefile" != no
7029 then :
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
7031 printf %s "checking for $CC option to enable large file support... " >&6; }
7032 if test ${ac_cv_sys_largefile_opts+y}
7033 then :
7034 printf %s "(cached) " >&6
7035 else $as_nop
7036 ac_save_CC="$CC"
7037 ac_opt_found=no
7038 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
7039 if test x"$ac_opt" != x"none needed"
7040 then :
7041 CC="$ac_save_CC $ac_opt"
7042 fi
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7045 #include <sys/types.h>
7046 /* Check that off_t can represent 2**63 - 1 correctly.
7047 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7048 since some C++ compilers masquerading as C compilers
7049 incorrectly reject 9223372036854775807. */
7050 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7051 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7052 && LARGE_OFF_T % 2147483647 == 1)
7053 ? 1 : -1];
7054 int
7055 main (void)
7056 {
7057
7058 ;
7059 return 0;
7060 }
7061 _ACEOF
7062 if ac_fn_c_try_compile "$LINENO"
7063 then :
7064 ac_cv_sys_largefile_opts="$ac_opt"
7065 ac_opt_found=yes
7066 fi
7067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7068 test $ac_opt_found = no || break
7069 done
7070 CC="$ac_save_CC"
7071 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected"
7072 fi
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
7074 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
7075
7076 ac_have_largefile=yes
7077 case $ac_cv_sys_largefile_opts in #(
7078 "none needed") :
7079 ;; #(
7080 "support not detected") :
7081 ac_have_largefile=no ;; #(
7082 "-D_FILE_OFFSET_BITS=64") :
7083
7084 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
7085 ;; #(
7086 "-D_LARGE_FILES=1") :
7087
7088 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
7089 ;; #(
7090 "-n32") :
7091 CC="$CC -n32" ;; #(
7092 *) :
7093 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
7094 esac
7095
7096 if test "$enable_year2038" != no
7097 then :
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable timestamps after Jan 2038" >&5
7099 printf %s "checking for $CC option to enable timestamps after Jan 2038... " >&6; }
7100 if test ${ac_cv_sys_year2038_opts+y}
7101 then :
7102 printf %s "(cached) " >&6
7103 else $as_nop
7104 ac_save_CPPFLAGS="$CPPFLAGS"
7105 ac_opt_found=no
7106 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
7107 if test x"$ac_opt" != x"none needed"
7108 then :
7109 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
7110 fi
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113
7114 #include <time.h>
7115 /* Check that time_t can represent 2**32 - 1 correctly. */
7116 #define LARGE_TIME_T \\
7117 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
7118 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
7119 && LARGE_TIME_T % 65537 == 0)
7120 ? 1 : -1];
7121
7122 int
7123 main (void)
7124 {
7125
7126 ;
7127 return 0;
7128 }
7129 _ACEOF
7130 if ac_fn_c_try_compile "$LINENO"
7131 then :
7132 ac_cv_sys_year2038_opts="$ac_opt"
7133 ac_opt_found=yes
7134 fi
7135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7136 test $ac_opt_found = no || break
7137 done
7138 CPPFLAGS="$ac_save_CPPFLAGS"
7139 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected"
7140 fi
7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
7142 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
7143
7144 ac_have_year2038=yes
7145 case $ac_cv_sys_year2038_opts in #(
7146 "none needed") :
7147 ;; #(
7148 "support not detected") :
7149 ac_have_year2038=no
7150 case $enable_year2038 in #(
7151 yes) :
7152 # If we're not cross compiling and 'touch' works with a large
7153 # timestamp, then we can presume the system supports wider time_t
7154 # *somehow* and we just weren't able to detect it. One common
7155 # case that we deliberately *don't* probe for is a system that
7156 # supports both 32- and 64-bit ABIs but only the 64-bit ABI offers
7157 # wide time_t. (It would be inappropriate for us to override an
7158 # intentional use of -m32.) Error out, demanding use of
7159 # --disable-year2038 if this is intentional.
7160 if test $cross_compiling = no
7161 then :
7162 if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null
7163 then :
7164 case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #(
7165 *'Feb 7 2106'* | *'Feb 7 17:10'*) :
7166 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7167 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7168 as_fn_error $? "this system appears to support timestamps after
7169 January 2038, but no mechanism for enabling wide
7170 'time_t' was detected. Did you mean to build a 64-bit
7171 binary? (e.g. 'CC=\"${CC} -m64\"'.) To proceed with
7172 32-bit time_t, configure with '--disable-year2038'.
7173 See \`config.log' for more details" "$LINENO" 5; } ;; #(
7174 *) :
7175 ;;
7176 esac
7177 fi
7178 fi ;; #(
7179 *) :
7180 ;;
7181 esac ;; #(
7182 "-D_TIME_BITS=64") :
7183
7184 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
7185 ;; #(
7186 "-D__MINGW_USE_VC2005_COMPAT=1") :
7187
7188 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
7189 ;; #(
7190 "-U_USE_32_BIT_TIME_T"*) :
7191 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7192 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7193 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
7194 will stop working after January 2038. Remove
7195 _USE_32BIT_TIME_T from the compiler flags.
7196 See \`config.log' for more details" "$LINENO" 5; } ;; #(
7197 *) :
7198 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
7199 esac
7200
7201 fi
7202
7203
7204
7205 fi
7206
7207
7208
7209
7210 # Pre-early section.
7211
7212
7213
7214 # Code from module absolute-header:
7215 # Code from module alignasof:
7216 # Code from module alloca-opt:
7217 # Code from module allocator:
7218 # Code from module areadlink:
7219 # Code from module assert-h:
7220 # Code from module attribute:
7221 # Code from module basename-lgpl:
7222 # Code from module builtin-expect:
7223 # Code from module c-ctype:
7224 # Code from module c-strcase:
7225 # Code from module c-strcaseeq:
7226 # Code from module c99:
7227 # Code from module calloc-gnu:
7228 # Code from module calloc-posix:
7229 # Code from module canonicalize-lgpl:
7230 # Code from module careadlinkat:
7231 # Code from module cloexec:
7232 # Code from module close:
7233 # Code from module double-slash-root:
7234 # Code from module dup2:
7235 # Code from module eloop-threshold:
7236 # Code from module environ:
7237 # Code from module errno:
7238 # Code from module error:
7239 # Code from module error-h:
7240 # Code from module exitfail:
7241 # Code from module extensions:
7242 # Code from module extern-inline:
7243 # Code from module fcntl:
7244 # Code from module fcntl-h:
7245 # Code from module fd-hook:
7246 # Code from module filename:
7247 # Code from module float:
7248 # Code from module free-posix:
7249 # Code from module fstat:
7250 # Code from module gen-header:
7251 # Code from module getdtablesize:
7252 # Code from module getopt-gnu:
7253 # Code from module getopt-posix:
7254 # Code from module getprogname:
7255 # Code from module gettext-h:
7256 # Code from module glibc-internal/scratch_buffer:
7257 # Code from module hard-locale:
7258 # Code from module ialloc:
7259 # Code from module idx:
7260 # Code from module include_next:
7261 # Code from module intprops:
7262 # Code from module inttypes-incomplete:
7263 # Code from module largefile:
7264
7265 # Code from module libc-config:
7266 # Code from module limits-h:
7267 # Code from module localcharset:
7268 # Code from module locale:
7269 # Code from module malloc-gnu:
7270 # Code from module malloc-posix:
7271 # Code from module malloca:
7272 # Code from module mbrtowc:
7273 # Code from module mbsinit:
7274 # Code from module memchr:
7275 # Code from module mempcpy:
7276 # Code from module minmax:
7277 # Code from module msvc-inval:
7278 # Code from module msvc-nothrow:
7279 # Code from module multiarch:
7280 # Code from module nocrash:
7281 # Code from module open:
7282 # Code from module pathmax:
7283 # Code from module progname:
7284 # Code from module quote:
7285 # Code from module quotearg:
7286 # Code from module quotearg-simple:
7287 # Code from module rawmemchr:
7288 # Code from module readlink:
7289 # Code from module realloc-gnu:
7290 # Code from module realloc-posix:
7291 # Code from module reallocarray:
7292 # Code from module relocatable-prog:
7293 # Code from module relocatable-prog-wrapper:
7294
7295 # Code from module setlocale-null:
7296 # Code from module size_max:
7297 # Code from module snippet/_Noreturn:
7298 # Code from module snippet/arg-nonnull:
7299 # Code from module snippet/c++defs:
7300 # Code from module snippet/warn-on-use:
7301 # Code from module ssize_t:
7302 # Code from module stat:
7303 # Code from module stat-time:
7304 # Code from module std-gnu11:
7305 # Code from module stdarg:
7306
7307
7308
7309 # Code from module stdbool:
7310 # Code from module stdckdint:
7311 # Code from module stddef:
7312 # Code from module stdint:
7313 # Code from module stdio:
7314 # Code from module stdlib:
7315 # Code from module streq:
7316 # Code from module strerror:
7317 # Code from module strerror-override:
7318 # Code from module string:
7319 # Code from module sys_stat:
7320 # Code from module sys_types:
7321 # Code from module time:
7322 # Code from module unistd:
7323 # Code from module vararrays:
7324 # Code from module vasnprintf:
7325 # Code from module vasprintf:
7326 # Code from module wchar:
7327 # Code from module wctype-h:
7328 # Code from module xalloc:
7329 # Code from module xalloc-die:
7330 # Code from module xalloc-oversized:
7331 # Code from module xreadlink:
7332 # Code from module xsize:
7333 # Code from module xvasprintf:
7334
7335
7336 if test -n "$ac_tool_prefix"; then
7337 for ac_prog in ar lib "link -lib"
7338 do
7339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 printf %s "checking for $ac_word... " >&6; }
7343 if test ${ac_cv_prog_AR+y}
7344 then :
7345 printf %s "(cached) " >&6
7346 else $as_nop
7347 if test -n "$AR"; then
7348 ac_cv_prog_AR="$AR" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353 IFS=$as_save_IFS
7354 case $as_dir in #(((
7355 '') as_dir=./ ;;
7356 */) ;;
7357 *) as_dir=$as_dir/ ;;
7358 esac
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369 fi
7370 fi
7371 AR=$ac_cv_prog_AR
7372 if test -n "$AR"; then
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7374 printf "%s\n" "$AR" >&6; }
7375 else
7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 printf "%s\n" "no" >&6; }
7378 fi
7379
7380
7381 test -n "$AR" && break
7382 done
7383 fi
7384 if test -z "$AR"; then
7385 ac_ct_AR=$AR
7386 for ac_prog in ar lib "link -lib"
7387 do
7388 # Extract the first word of "$ac_prog", so it can be a program name with args.
7389 set dummy $ac_prog; ac_word=$2
7390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 printf %s "checking for $ac_word... " >&6; }
7392 if test ${ac_cv_prog_ac_ct_AR+y}
7393 then :
7394 printf %s "(cached) " >&6
7395 else $as_nop
7396 if test -n "$ac_ct_AR"; then
7397 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7398 else
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402 IFS=$as_save_IFS
7403 case $as_dir in #(((
7404 '') as_dir=./ ;;
7405 */) ;;
7406 *) as_dir=$as_dir/ ;;
7407 esac
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7410 ac_cv_prog_ac_ct_AR="$ac_prog"
7411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7412 break 2
7413 fi
7414 done
7415 done
7416 IFS=$as_save_IFS
7417
7418 fi
7419 fi
7420 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7421 if test -n "$ac_ct_AR"; then
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7423 printf "%s\n" "$ac_ct_AR" >&6; }
7424 else
7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 printf "%s\n" "no" >&6; }
7427 fi
7428
7429
7430 test -n "$ac_ct_AR" && break
7431 done
7432
7433 if test "x$ac_ct_AR" = x; then
7434 AR="false"
7435 else
7436 case $cross_compiling:$ac_tool_warned in
7437 yes:)
7438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7439 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7440 ac_tool_warned=yes ;;
7441 esac
7442 AR=$ac_ct_AR
7443 fi
7444 fi
7445
7446 : ${AR=ar}
7447
7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7449 printf %s "checking the archiver ($AR) interface... " >&6; }
7450 if test ${am_cv_ar_interface+y}
7451 then :
7452 printf %s "(cached) " >&6
7453 else $as_nop
7454 ac_ext=c
7455 ac_cpp='$CPP $CPPFLAGS'
7456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7459
7460 am_cv_ar_interface=ar
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 int some_variable = 0;
7464 _ACEOF
7465 if ac_fn_c_try_compile "$LINENO"
7466 then :
7467 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7469 (eval $am_ar_try) 2>&5
7470 ac_status=$?
7471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472 test $ac_status = 0; }
7473 if test "$ac_status" -eq 0; then
7474 am_cv_ar_interface=ar
7475 else
7476 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7478 (eval $am_ar_try) 2>&5
7479 ac_status=$?
7480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7481 test $ac_status = 0; }
7482 if test "$ac_status" -eq 0; then
7483 am_cv_ar_interface=lib
7484 else
7485 am_cv_ar_interface=unknown
7486 fi
7487 fi
7488 rm -f conftest.lib libconftest.a
7489
7490 fi
7491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7492 ac_ext=c
7493 ac_cpp='$CPP $CPPFLAGS'
7494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497
7498 fi
7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7500 printf "%s\n" "$am_cv_ar_interface" >&6; }
7501
7502 case $am_cv_ar_interface in
7503 ar)
7504 ;;
7505 lib)
7506 # Microsoft lib, so override with the ar-lib wrapper script.
7507 # FIXME: It is wrong to rewrite AR.
7508 # But if we don't then we get into trouble of one sort or another.
7509 # A longer-term fix would be to have automake use am__AR in this case,
7510 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7511 # similar.
7512 AR="$am_aux_dir/ar-lib $AR"
7513 ;;
7514 unknown)
7515 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7516 ;;
7517 esac
7518
7519 case `pwd` in
7520 *\ * | *\ *)
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7522 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7523 esac
7524
7525
7526
7527 macro_version='2.4.7'
7528 macro_revision='2.4.7'
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543 ltmain=$ac_aux_dir/ltmain.sh
7544
7545 # Backslashify metacharacters that are still active within
7546 # double-quoted strings.
7547 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7548
7549 # Same as above, but do not quote variable references.
7550 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7551
7552 # Sed substitution to delay expansion of an escaped shell variable in a
7553 # double_quote_subst'ed string.
7554 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7555
7556 # Sed substitution to delay expansion of an escaped single quote.
7557 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7558
7559 # Sed substitution to avoid accidental globbing in evaled expressions
7560 no_glob_subst='s/\*/\\\*/g'
7561
7562 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7563 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7564 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7565
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7567 printf %s "checking how to print strings... " >&6; }
7568 # Test print first, because it will be a builtin if present.
7569 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7570 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7571 ECHO='print -r --'
7572 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7573 ECHO='printf %s\n'
7574 else
7575 # Use this function as a fallback that always works.
7576 func_fallback_echo ()
7577 {
7578 eval 'cat <<_LTECHO_EOF
7579 $1
7580 _LTECHO_EOF'
7581 }
7582 ECHO='func_fallback_echo'
7583 fi
7584
7585 # func_echo_all arg...
7586 # Invoke $ECHO with all args, space-separated.
7587 func_echo_all ()
7588 {
7589 $ECHO ""
7590 }
7591
7592 case $ECHO in
7593 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7594 printf "%s\n" "printf" >&6; } ;;
7595 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7596 printf "%s\n" "print -r" >&6; } ;;
7597 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7598 printf "%s\n" "cat" >&6; } ;;
7599 esac
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7615 printf %s "checking for a sed that does not truncate output... " >&6; }
7616 if test ${ac_cv_path_SED+y}
7617 then :
7618 printf %s "(cached) " >&6
7619 else $as_nop
7620 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7621 for ac_i in 1 2 3 4 5 6 7; do
7622 ac_script="$ac_script$as_nl$ac_script"
7623 done
7624 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7625 { ac_script=; unset ac_script;}
7626 if test -z "$SED"; then
7627 ac_path_SED_found=false
7628 # Loop through the user's path and test for each of PROGNAME-LIST
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7631 do
7632 IFS=$as_save_IFS
7633 case $as_dir in #(((
7634 '') as_dir=./ ;;
7635 */) ;;
7636 *) as_dir=$as_dir/ ;;
7637 esac
7638 for ac_prog in sed gsed
7639 do
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7642 as_fn_executable_p "$ac_path_SED" || continue
7643 # Check for GNU ac_path_SED and select it if it is found.
7644 # Check for GNU $ac_path_SED
7645 case `"$ac_path_SED" --version 2>&1` in
7646 *GNU*)
7647 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7648 *)
7649 ac_count=0
7650 printf %s 0123456789 >"conftest.in"
7651 while :
7652 do
7653 cat "conftest.in" "conftest.in" >"conftest.tmp"
7654 mv "conftest.tmp" "conftest.in"
7655 cp "conftest.in" "conftest.nl"
7656 printf "%s\n" '' >> "conftest.nl"
7657 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7659 as_fn_arith $ac_count + 1 && ac_count=$as_val
7660 if test $ac_count -gt ${ac_path_SED_max-0}; then
7661 # Best one so far, save it but keep looking for a better one
7662 ac_cv_path_SED="$ac_path_SED"
7663 ac_path_SED_max=$ac_count
7664 fi
7665 # 10*(2^10) chars as input seems more than enough
7666 test $ac_count -gt 10 && break
7667 done
7668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7669 esac
7670
7671 $ac_path_SED_found && break 3
7672 done
7673 done
7674 done
7675 IFS=$as_save_IFS
7676 if test -z "$ac_cv_path_SED"; then
7677 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7678 fi
7679 else
7680 ac_cv_path_SED=$SED
7681 fi
7682
7683 fi
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7685 printf "%s\n" "$ac_cv_path_SED" >&6; }
7686 SED="$ac_cv_path_SED"
7687 rm -f conftest.sed
7688
7689 test -z "$SED" && SED=sed
7690 Xsed="$SED -e 1s/^X//"
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7703 printf %s "checking for fgrep... " >&6; }
7704 if test ${ac_cv_path_FGREP+y}
7705 then :
7706 printf %s "(cached) " >&6
7707 else $as_nop
7708 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7709 then ac_cv_path_FGREP="$GREP -F"
7710 else
7711 if test -z "$FGREP"; then
7712 ac_path_FGREP_found=false
7713 # Loop through the user's path and test for each of PROGNAME-LIST
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7716 do
7717 IFS=$as_save_IFS
7718 case $as_dir in #(((
7719 '') as_dir=./ ;;
7720 */) ;;
7721 *) as_dir=$as_dir/ ;;
7722 esac
7723 for ac_prog in fgrep
7724 do
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7727 as_fn_executable_p "$ac_path_FGREP" || continue
7728 # Check for GNU ac_path_FGREP and select it if it is found.
7729 # Check for GNU $ac_path_FGREP
7730 case `"$ac_path_FGREP" --version 2>&1` in
7731 *GNU*)
7732 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7733 *)
7734 ac_count=0
7735 printf %s 0123456789 >"conftest.in"
7736 while :
7737 do
7738 cat "conftest.in" "conftest.in" >"conftest.tmp"
7739 mv "conftest.tmp" "conftest.in"
7740 cp "conftest.in" "conftest.nl"
7741 printf "%s\n" 'FGREP' >> "conftest.nl"
7742 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7744 as_fn_arith $ac_count + 1 && ac_count=$as_val
7745 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7746 # Best one so far, save it but keep looking for a better one
7747 ac_cv_path_FGREP="$ac_path_FGREP"
7748 ac_path_FGREP_max=$ac_count
7749 fi
7750 # 10*(2^10) chars as input seems more than enough
7751 test $ac_count -gt 10 && break
7752 done
7753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7754 esac
7755
7756 $ac_path_FGREP_found && break 3
7757 done
7758 done
7759 done
7760 IFS=$as_save_IFS
7761 if test -z "$ac_cv_path_FGREP"; then
7762 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7763 fi
7764 else
7765 ac_cv_path_FGREP=$FGREP
7766 fi
7767
7768 fi
7769 fi
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7771 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7772 FGREP="$ac_cv_path_FGREP"
7773
7774
7775 test -z "$GREP" && GREP=grep
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795 # Check whether --with-gnu-ld was given.
7796 if test ${with_gnu_ld+y}
7797 then :
7798 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7799 else $as_nop
7800 with_gnu_ld=no
7801 fi
7802
7803 ac_prog=ld
7804 if test yes = "$GCC"; then
7805 # Check if gcc -print-prog-name=ld gives a path.
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7807 printf %s "checking for ld used by $CC... " >&6; }
7808 case $host in
7809 *-*-mingw*)
7810 # gcc leaves a trailing carriage return, which upsets mingw
7811 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7812 *)
7813 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7814 esac
7815 case $ac_prog in
7816 # Accept absolute paths.
7817 [\\/]* | ?:[\\/]*)
7818 re_direlt='/[^/][^/]*/\.\./'
7819 # Canonicalize the pathname of ld
7820 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7821 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7822 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7823 done
7824 test -z "$LD" && LD=$ac_prog
7825 ;;
7826 "")
7827 # If it fails, then pretend we aren't using GCC.
7828 ac_prog=ld
7829 ;;
7830 *)
7831 # If it is relative, then search for the first ld in PATH.
7832 with_gnu_ld=unknown
7833 ;;
7834 esac
7835 elif test yes = "$with_gnu_ld"; then
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7837 printf %s "checking for GNU ld... " >&6; }
7838 else
7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7840 printf %s "checking for non-GNU ld... " >&6; }
7841 fi
7842 if test ${lt_cv_path_LD+y}
7843 then :
7844 printf %s "(cached) " >&6
7845 else $as_nop
7846 if test -z "$LD"; then
7847 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7848 for ac_dir in $PATH; do
7849 IFS=$lt_save_ifs
7850 test -z "$ac_dir" && ac_dir=.
7851 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7852 lt_cv_path_LD=$ac_dir/$ac_prog
7853 # Check to see if the program is GNU ld. I'd rather use --version,
7854 # but apparently some variants of GNU ld only accept -v.
7855 # Break only if it was the GNU/non-GNU ld that we prefer.
7856 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7857 *GNU* | *'with BFD'*)
7858 test no != "$with_gnu_ld" && break
7859 ;;
7860 *)
7861 test yes != "$with_gnu_ld" && break
7862 ;;
7863 esac
7864 fi
7865 done
7866 IFS=$lt_save_ifs
7867 else
7868 lt_cv_path_LD=$LD # Let the user override the test with a path.
7869 fi
7870 fi
7871
7872 LD=$lt_cv_path_LD
7873 if test -n "$LD"; then
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7875 printf "%s\n" "$LD" >&6; }
7876 else
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 printf "%s\n" "no" >&6; }
7879 fi
7880 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7882 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7883 if test ${lt_cv_prog_gnu_ld+y}
7884 then :
7885 printf %s "(cached) " >&6
7886 else $as_nop
7887 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7888 case `$LD -v 2>&1 </dev/null` in
7889 *GNU* | *'with BFD'*)
7890 lt_cv_prog_gnu_ld=yes
7891 ;;
7892 *)
7893 lt_cv_prog_gnu_ld=no
7894 ;;
7895 esac
7896 fi
7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7898 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7899 with_gnu_ld=$lt_cv_prog_gnu_ld
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7910 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7911 if test ${lt_cv_path_NM+y}
7912 then :
7913 printf %s "(cached) " >&6
7914 else $as_nop
7915 if test -n "$NM"; then
7916 # Let the user override the test.
7917 lt_cv_path_NM=$NM
7918 else
7919 lt_nm_to_check=${ac_tool_prefix}nm
7920 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7921 lt_nm_to_check="$lt_nm_to_check nm"
7922 fi
7923 for lt_tmp_nm in $lt_nm_to_check; do
7924 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7925 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7926 IFS=$lt_save_ifs
7927 test -z "$ac_dir" && ac_dir=.
7928 tmp_nm=$ac_dir/$lt_tmp_nm
7929 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7930 # Check to see if the nm accepts a BSD-compat flag.
7931 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7932 # nm: unknown option "B" ignored
7933 # Tru64's nm complains that /dev/null is an invalid object file
7934 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7935 case $build_os in
7936 mingw*) lt_bad_file=conftest.nm/nofile ;;
7937 *) lt_bad_file=/dev/null ;;
7938 esac
7939 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7940 *$lt_bad_file* | *'Invalid file or object type'*)
7941 lt_cv_path_NM="$tmp_nm -B"
7942 break 2
7943 ;;
7944 *)
7945 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7946 */dev/null*)
7947 lt_cv_path_NM="$tmp_nm -p"
7948 break 2
7949 ;;
7950 *)
7951 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7952 continue # so that we can try to find one that supports BSD flags
7953 ;;
7954 esac
7955 ;;
7956 esac
7957 fi
7958 done
7959 IFS=$lt_save_ifs
7960 done
7961 : ${lt_cv_path_NM=no}
7962 fi
7963 fi
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7965 printf "%s\n" "$lt_cv_path_NM" >&6; }
7966 if test no != "$lt_cv_path_NM"; then
7967 NM=$lt_cv_path_NM
7968 else
7969 # Didn't find any BSD compatible name lister, look for dumpbin.
7970 if test -n "$DUMPBIN"; then :
7971 # Let the user override the test.
7972 else
7973 if test -n "$ac_tool_prefix"; then
7974 for ac_prog in dumpbin "link -dump"
7975 do
7976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979 printf %s "checking for $ac_word... " >&6; }
7980 if test ${ac_cv_prog_DUMPBIN+y}
7981 then :
7982 printf %s "(cached) " >&6
7983 else $as_nop
7984 if test -n "$DUMPBIN"; then
7985 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7989 do
7990 IFS=$as_save_IFS
7991 case $as_dir in #(((
7992 '') as_dir=./ ;;
7993 */) ;;
7994 *) as_dir=$as_dir/ ;;
7995 esac
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7998 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002 done
8003 done
8004 IFS=$as_save_IFS
8005
8006 fi
8007 fi
8008 DUMPBIN=$ac_cv_prog_DUMPBIN
8009 if test -n "$DUMPBIN"; then
8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8011 printf "%s\n" "$DUMPBIN" >&6; }
8012 else
8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 printf "%s\n" "no" >&6; }
8015 fi
8016
8017
8018 test -n "$DUMPBIN" && break
8019 done
8020 fi
8021 if test -z "$DUMPBIN"; then
8022 ac_ct_DUMPBIN=$DUMPBIN
8023 for ac_prog in dumpbin "link -dump"
8024 do
8025 # Extract the first word of "$ac_prog", so it can be a program name with args.
8026 set dummy $ac_prog; ac_word=$2
8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 printf %s "checking for $ac_word... " >&6; }
8029 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8030 then :
8031 printf %s "(cached) " >&6
8032 else $as_nop
8033 if test -n "$ac_ct_DUMPBIN"; then
8034 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8035 else
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 for as_dir in $PATH
8038 do
8039 IFS=$as_save_IFS
8040 case $as_dir in #(((
8041 '') as_dir=./ ;;
8042 */) ;;
8043 *) as_dir=$as_dir/ ;;
8044 esac
8045 for ac_exec_ext in '' $ac_executable_extensions; do
8046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8047 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8049 break 2
8050 fi
8051 done
8052 done
8053 IFS=$as_save_IFS
8054
8055 fi
8056 fi
8057 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8058 if test -n "$ac_ct_DUMPBIN"; then
8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8060 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8061 else
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 printf "%s\n" "no" >&6; }
8064 fi
8065
8066
8067 test -n "$ac_ct_DUMPBIN" && break
8068 done
8069
8070 if test "x$ac_ct_DUMPBIN" = x; then
8071 DUMPBIN=":"
8072 else
8073 case $cross_compiling:$ac_tool_warned in
8074 yes:)
8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8076 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8077 ac_tool_warned=yes ;;
8078 esac
8079 DUMPBIN=$ac_ct_DUMPBIN
8080 fi
8081 fi
8082
8083 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
8084 *COFF*)
8085 DUMPBIN="$DUMPBIN -symbols -headers"
8086 ;;
8087 *)
8088 DUMPBIN=:
8089 ;;
8090 esac
8091 fi
8092
8093 if test : != "$DUMPBIN"; then
8094 NM=$DUMPBIN
8095 fi
8096 fi
8097 test -z "$NM" && NM=nm
8098
8099
8100
8101
8102
8103
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8105 printf %s "checking the name lister ($NM) interface... " >&6; }
8106 if test ${lt_cv_nm_interface+y}
8107 then :
8108 printf %s "(cached) " >&6
8109 else $as_nop
8110 lt_cv_nm_interface="BSD nm"
8111 echo "int some_variable = 0;" > conftest.$ac_ext
8112 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8113 (eval "$ac_compile" 2>conftest.err)
8114 cat conftest.err >&5
8115 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8116 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8117 cat conftest.err >&5
8118 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8119 cat conftest.out >&5
8120 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8121 lt_cv_nm_interface="MS dumpbin"
8122 fi
8123 rm -f conftest*
8124 fi
8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8126 printf "%s\n" "$lt_cv_nm_interface" >&6; }
8127
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8129 printf %s "checking whether ln -s works... " >&6; }
8130 LN_S=$as_ln_s
8131 if test "$LN_S" = "ln -s"; then
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8133 printf "%s\n" "yes" >&6; }
8134 else
8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8136 printf "%s\n" "no, using $LN_S" >&6; }
8137 fi
8138
8139 # find the maximum length of command line arguments
8140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8141 printf %s "checking the maximum length of command line arguments... " >&6; }
8142 if test ${lt_cv_sys_max_cmd_len+y}
8143 then :
8144 printf %s "(cached) " >&6
8145 else $as_nop
8146 i=0
8147 teststring=ABCD
8148
8149 case $build_os in
8150 msdosdjgpp*)
8151 # On DJGPP, this test can blow up pretty badly due to problems in libc
8152 # (any single argument exceeding 2000 bytes causes a buffer overrun
8153 # during glob expansion). Even if it were fixed, the result of this
8154 # check would be larger than it should be.
8155 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8156 ;;
8157
8158 gnu*)
8159 # Under GNU Hurd, this test is not required because there is
8160 # no limit to the length of command line arguments.
8161 # Libtool will interpret -1 as no limit whatsoever
8162 lt_cv_sys_max_cmd_len=-1;
8163 ;;
8164
8165 cygwin* | mingw* | cegcc*)
8166 # On Win9x/ME, this test blows up -- it succeeds, but takes
8167 # about 5 minutes as the teststring grows exponentially.
8168 # Worse, since 9x/ME are not pre-emptively multitasking,
8169 # you end up with a "frozen" computer, even though with patience
8170 # the test eventually succeeds (with a max line length of 256k).
8171 # Instead, let's just punt: use the minimum linelength reported by
8172 # all of the supported platforms: 8192 (on NT/2K/XP).
8173 lt_cv_sys_max_cmd_len=8192;
8174 ;;
8175
8176 mint*)
8177 # On MiNT this can take a long time and run out of memory.
8178 lt_cv_sys_max_cmd_len=8192;
8179 ;;
8180
8181 amigaos*)
8182 # On AmigaOS with pdksh, this test takes hours, literally.
8183 # So we just punt and use a minimum line length of 8192.
8184 lt_cv_sys_max_cmd_len=8192;
8185 ;;
8186
8187 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
8188 # This has been around since 386BSD, at least. Likely further.
8189 if test -x /sbin/sysctl; then
8190 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8191 elif test -x /usr/sbin/sysctl; then
8192 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8193 else
8194 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8195 fi
8196 # And add a safety zone
8197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8198 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8199 ;;
8200
8201 interix*)
8202 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8203 lt_cv_sys_max_cmd_len=196608
8204 ;;
8205
8206 os2*)
8207 # The test takes a long time on OS/2.
8208 lt_cv_sys_max_cmd_len=8192
8209 ;;
8210
8211 osf*)
8212 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8213 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8214 # nice to cause kernel panics so lets avoid the loop below.
8215 # First set a reasonable default.
8216 lt_cv_sys_max_cmd_len=16384
8217 #
8218 if test -x /sbin/sysconfig; then
8219 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8220 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8221 esac
8222 fi
8223 ;;
8224 sco3.2v5*)
8225 lt_cv_sys_max_cmd_len=102400
8226 ;;
8227 sysv5* | sco5v6* | sysv4.2uw2*)
8228 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8229 if test -n "$kargmax"; then
8230 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
8231 else
8232 lt_cv_sys_max_cmd_len=32768
8233 fi
8234 ;;
8235 *)
8236 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8237 if test -n "$lt_cv_sys_max_cmd_len" && \
8238 test undefined != "$lt_cv_sys_max_cmd_len"; then
8239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8241 else
8242 # Make teststring a little bigger before we do anything with it.
8243 # a 1K string should be a reasonable start.
8244 for i in 1 2 3 4 5 6 7 8; do
8245 teststring=$teststring$teststring
8246 done
8247 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8248 # If test is not a shell built-in, we'll probably end up computing a
8249 # maximum length that is only half of the actual maximum length, but
8250 # we can't tell.
8251 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8252 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8253 test 17 != "$i" # 1/2 MB should be enough
8254 do
8255 i=`expr $i + 1`
8256 teststring=$teststring$teststring
8257 done
8258 # Only check the string length outside the loop.
8259 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8260 teststring=
8261 # Add a significant safety factor because C++ compilers can tack on
8262 # massive amounts of additional arguments before passing them to the
8263 # linker. It appears as though 1/2 is a usable value.
8264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8265 fi
8266 ;;
8267 esac
8268
8269 fi
8270
8271 if test -n "$lt_cv_sys_max_cmd_len"; then
8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8273 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8274 else
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8276 printf "%s\n" "none" >&6; }
8277 fi
8278 max_cmd_len=$lt_cv_sys_max_cmd_len
8279
8280
8281
8282
8283
8284
8285 : ${CP="cp -f"}
8286 : ${MV="mv -f"}
8287 : ${RM="rm -f"}
8288
8289 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8290 lt_unset=unset
8291 else
8292 lt_unset=false
8293 fi
8294
8295
8296
8297
8298
8299 # test EBCDIC or ASCII
8300 case `echo X|tr X '\101'` in
8301 A) # ASCII based system
8302 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8303 lt_SP2NL='tr \040 \012'
8304 lt_NL2SP='tr \015\012 \040\040'
8305 ;;
8306 *) # EBCDIC based system
8307 lt_SP2NL='tr \100 \n'
8308 lt_NL2SP='tr \r\n \100\100'
8309 ;;
8310 esac
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8321 printf %s "checking how to convert $build file names to $host format... " >&6; }
8322 if test ${lt_cv_to_host_file_cmd+y}
8323 then :
8324 printf %s "(cached) " >&6
8325 else $as_nop
8326 case $host in
8327 *-*-mingw* )
8328 case $build in
8329 *-*-mingw* ) # actually msys
8330 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8331 ;;
8332 *-*-cygwin* )
8333 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8334 ;;
8335 * ) # otherwise, assume *nix
8336 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8337 ;;
8338 esac
8339 ;;
8340 *-*-cygwin* )
8341 case $build in
8342 *-*-mingw* ) # actually msys
8343 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8344 ;;
8345 *-*-cygwin* )
8346 lt_cv_to_host_file_cmd=func_convert_file_noop
8347 ;;
8348 * ) # otherwise, assume *nix
8349 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8350 ;;
8351 esac
8352 ;;
8353 * ) # unhandled hosts (and "normal" native builds)
8354 lt_cv_to_host_file_cmd=func_convert_file_noop
8355 ;;
8356 esac
8357
8358 fi
8359
8360 to_host_file_cmd=$lt_cv_to_host_file_cmd
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8362 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8363
8364
8365
8366
8367
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8369 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8370 if test ${lt_cv_to_tool_file_cmd+y}
8371 then :
8372 printf %s "(cached) " >&6
8373 else $as_nop
8374 #assume ordinary cross tools, or native build.
8375 lt_cv_to_tool_file_cmd=func_convert_file_noop
8376 case $host in
8377 *-*-mingw* )
8378 case $build in
8379 *-*-mingw* ) # actually msys
8380 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8381 ;;
8382 esac
8383 ;;
8384 esac
8385
8386 fi
8387
8388 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8390 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8391
8392
8393
8394
8395
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8397 printf %s "checking for $LD option to reload object files... " >&6; }
8398 if test ${lt_cv_ld_reload_flag+y}
8399 then :
8400 printf %s "(cached) " >&6
8401 else $as_nop
8402 lt_cv_ld_reload_flag='-r'
8403 fi
8404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8405 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8406 reload_flag=$lt_cv_ld_reload_flag
8407 case $reload_flag in
8408 "" | " "*) ;;
8409 *) reload_flag=" $reload_flag" ;;
8410 esac
8411 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8412 case $host_os in
8413 cygwin* | mingw* | pw32* | cegcc*)
8414 if test yes != "$GCC"; then
8415 reload_cmds=false
8416 fi
8417 ;;
8418 darwin*)
8419 if test yes = "$GCC"; then
8420 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8421 else
8422 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8423 fi
8424 ;;
8425 esac
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435 if test -n "$ac_tool_prefix"; then
8436 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
8437 set dummy ${ac_tool_prefix}file; ac_word=$2
8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439 printf %s "checking for $ac_word... " >&6; }
8440 if test ${ac_cv_prog_FILECMD+y}
8441 then :
8442 printf %s "(cached) " >&6
8443 else $as_nop
8444 if test -n "$FILECMD"; then
8445 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
8446 else
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8449 do
8450 IFS=$as_save_IFS
8451 case $as_dir in #(((
8452 '') as_dir=./ ;;
8453 */) ;;
8454 *) as_dir=$as_dir/ ;;
8455 esac
8456 for ac_exec_ext in '' $ac_executable_extensions; do
8457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8458 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
8459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8460 break 2
8461 fi
8462 done
8463 done
8464 IFS=$as_save_IFS
8465
8466 fi
8467 fi
8468 FILECMD=$ac_cv_prog_FILECMD
8469 if test -n "$FILECMD"; then
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
8471 printf "%s\n" "$FILECMD" >&6; }
8472 else
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474 printf "%s\n" "no" >&6; }
8475 fi
8476
8477
8478 fi
8479 if test -z "$ac_cv_prog_FILECMD"; then
8480 ac_ct_FILECMD=$FILECMD
8481 # Extract the first word of "file", so it can be a program name with args.
8482 set dummy file; ac_word=$2
8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 printf %s "checking for $ac_word... " >&6; }
8485 if test ${ac_cv_prog_ac_ct_FILECMD+y}
8486 then :
8487 printf %s "(cached) " >&6
8488 else $as_nop
8489 if test -n "$ac_ct_FILECMD"; then
8490 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
8491 else
8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 for as_dir in $PATH
8494 do
8495 IFS=$as_save_IFS
8496 case $as_dir in #(((
8497 '') as_dir=./ ;;
8498 */) ;;
8499 *) as_dir=$as_dir/ ;;
8500 esac
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8503 ac_cv_prog_ac_ct_FILECMD="file"
8504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8505 break 2
8506 fi
8507 done
8508 done
8509 IFS=$as_save_IFS
8510
8511 fi
8512 fi
8513 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
8514 if test -n "$ac_ct_FILECMD"; then
8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
8516 printf "%s\n" "$ac_ct_FILECMD" >&6; }
8517 else
8518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 printf "%s\n" "no" >&6; }
8520 fi
8521
8522 if test "x$ac_ct_FILECMD" = x; then
8523 FILECMD=":"
8524 else
8525 case $cross_compiling:$ac_tool_warned in
8526 yes:)
8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8528 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8529 ac_tool_warned=yes ;;
8530 esac
8531 FILECMD=$ac_ct_FILECMD
8532 fi
8533 else
8534 FILECMD="$ac_cv_prog_FILECMD"
8535 fi
8536
8537
8538
8539
8540
8541
8542
8543 if test -n "$ac_tool_prefix"; then
8544 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8545 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8547 printf %s "checking for $ac_word... " >&6; }
8548 if test ${ac_cv_prog_OBJDUMP+y}
8549 then :
8550 printf %s "(cached) " >&6
8551 else $as_nop
8552 if test -n "$OBJDUMP"; then
8553 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8554 else
8555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556 for as_dir in $PATH
8557 do
8558 IFS=$as_save_IFS
8559 case $as_dir in #(((
8560 '') as_dir=./ ;;
8561 */) ;;
8562 *) as_dir=$as_dir/ ;;
8563 esac
8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8566 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8568 break 2
8569 fi
8570 done
8571 done
8572 IFS=$as_save_IFS
8573
8574 fi
8575 fi
8576 OBJDUMP=$ac_cv_prog_OBJDUMP
8577 if test -n "$OBJDUMP"; then
8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8579 printf "%s\n" "$OBJDUMP" >&6; }
8580 else
8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 printf "%s\n" "no" >&6; }
8583 fi
8584
8585
8586 fi
8587 if test -z "$ac_cv_prog_OBJDUMP"; then
8588 ac_ct_OBJDUMP=$OBJDUMP
8589 # Extract the first word of "objdump", so it can be a program name with args.
8590 set dummy objdump; ac_word=$2
8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592 printf %s "checking for $ac_word... " >&6; }
8593 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8594 then :
8595 printf %s "(cached) " >&6
8596 else $as_nop
8597 if test -n "$ac_ct_OBJDUMP"; then
8598 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8599 else
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 for as_dir in $PATH
8602 do
8603 IFS=$as_save_IFS
8604 case $as_dir in #(((
8605 '') as_dir=./ ;;
8606 */) ;;
8607 *) as_dir=$as_dir/ ;;
8608 esac
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8611 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8613 break 2
8614 fi
8615 done
8616 done
8617 IFS=$as_save_IFS
8618
8619 fi
8620 fi
8621 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8622 if test -n "$ac_ct_OBJDUMP"; then
8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8624 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8625 else
8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 printf "%s\n" "no" >&6; }
8628 fi
8629
8630 if test "x$ac_ct_OBJDUMP" = x; then
8631 OBJDUMP="false"
8632 else
8633 case $cross_compiling:$ac_tool_warned in
8634 yes:)
8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8636 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8637 ac_tool_warned=yes ;;
8638 esac
8639 OBJDUMP=$ac_ct_OBJDUMP
8640 fi
8641 else
8642 OBJDUMP="$ac_cv_prog_OBJDUMP"
8643 fi
8644
8645 test -z "$OBJDUMP" && OBJDUMP=objdump
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8656 printf %s "checking how to recognize dependent libraries... " >&6; }
8657 if test ${lt_cv_deplibs_check_method+y}
8658 then :
8659 printf %s "(cached) " >&6
8660 else $as_nop
8661 lt_cv_file_magic_cmd='$MAGIC_CMD'
8662 lt_cv_file_magic_test_file=
8663 lt_cv_deplibs_check_method='unknown'
8664 # Need to set the preceding variable on all platforms that support
8665 # interlibrary dependencies.
8666 # 'none' -- dependencies not supported.
8667 # 'unknown' -- same as none, but documents that we really don't know.
8668 # 'pass_all' -- all dependencies passed with no checks.
8669 # 'test_compile' -- check by making test program.
8670 # 'file_magic [[regex]]' -- check by looking for files in library path
8671 # that responds to the $file_magic_cmd with a given extended regex.
8672 # If you have 'file' or equivalent on your system and you're not sure
8673 # whether 'pass_all' will *always* work, you probably want this one.
8674
8675 case $host_os in
8676 aix[4-9]*)
8677 lt_cv_deplibs_check_method=pass_all
8678 ;;
8679
8680 beos*)
8681 lt_cv_deplibs_check_method=pass_all
8682 ;;
8683
8684 bsdi[45]*)
8685 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8686 lt_cv_file_magic_cmd='$FILECMD -L'
8687 lt_cv_file_magic_test_file=/shlib/libc.so
8688 ;;
8689
8690 cygwin*)
8691 # func_win32_libid is a shell function defined in ltmain.sh
8692 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8693 lt_cv_file_magic_cmd='func_win32_libid'
8694 ;;
8695
8696 mingw* | pw32*)
8697 # Base MSYS/MinGW do not provide the 'file' command needed by
8698 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8699 # unless we find 'file', for example because we are cross-compiling.
8700 if ( file / ) >/dev/null 2>&1; then
8701 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8702 lt_cv_file_magic_cmd='func_win32_libid'
8703 else
8704 # Keep this pattern in sync with the one in func_win32_libid.
8705 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8706 lt_cv_file_magic_cmd='$OBJDUMP -f'
8707 fi
8708 ;;
8709
8710 cegcc*)
8711 # use the weaker test based on 'objdump'. See mingw*.
8712 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8713 lt_cv_file_magic_cmd='$OBJDUMP -f'
8714 ;;
8715
8716 darwin* | rhapsody*)
8717 lt_cv_deplibs_check_method=pass_all
8718 ;;
8719
8720 freebsd* | dragonfly* | midnightbsd*)
8721 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8722 case $host_cpu in
8723 i*86 )
8724 # Not sure whether the presence of OpenBSD here was a mistake.
8725 # Let's accept both of them until this is cleared up.
8726 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8727 lt_cv_file_magic_cmd=$FILECMD
8728 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8729 ;;
8730 esac
8731 else
8732 lt_cv_deplibs_check_method=pass_all
8733 fi
8734 ;;
8735
8736 haiku*)
8737 lt_cv_deplibs_check_method=pass_all
8738 ;;
8739
8740 hpux10.20* | hpux11*)
8741 lt_cv_file_magic_cmd=$FILECMD
8742 case $host_cpu in
8743 ia64*)
8744 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8745 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8746 ;;
8747 hppa*64*)
8748 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]'
8749 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8750 ;;
8751 *)
8752 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8753 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8754 ;;
8755 esac
8756 ;;
8757
8758 interix[3-9]*)
8759 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8761 ;;
8762
8763 irix5* | irix6* | nonstopux*)
8764 case $LD in
8765 *-32|*"-32 ") libmagic=32-bit;;
8766 *-n32|*"-n32 ") libmagic=N32;;
8767 *-64|*"-64 ") libmagic=64-bit;;
8768 *) libmagic=never-match;;
8769 esac
8770 lt_cv_deplibs_check_method=pass_all
8771 ;;
8772
8773 # This must be glibc/ELF.
8774 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8775 lt_cv_deplibs_check_method=pass_all
8776 ;;
8777
8778 netbsd* | netbsdelf*-gnu)
8779 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8781 else
8782 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8783 fi
8784 ;;
8785
8786 newos6*)
8787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8788 lt_cv_file_magic_cmd=$FILECMD
8789 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8790 ;;
8791
8792 *nto* | *qnx*)
8793 lt_cv_deplibs_check_method=pass_all
8794 ;;
8795
8796 openbsd* | bitrig*)
8797 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8798 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8799 else
8800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8801 fi
8802 ;;
8803
8804 osf3* | osf4* | osf5*)
8805 lt_cv_deplibs_check_method=pass_all
8806 ;;
8807
8808 rdos*)
8809 lt_cv_deplibs_check_method=pass_all
8810 ;;
8811
8812 solaris*)
8813 lt_cv_deplibs_check_method=pass_all
8814 ;;
8815
8816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8817 lt_cv_deplibs_check_method=pass_all
8818 ;;
8819
8820 sysv4 | sysv4.3*)
8821 case $host_vendor in
8822 motorola)
8823 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]'
8824 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8825 ;;
8826 ncr)
8827 lt_cv_deplibs_check_method=pass_all
8828 ;;
8829 sequent)
8830 lt_cv_file_magic_cmd='/bin/file'
8831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8832 ;;
8833 sni)
8834 lt_cv_file_magic_cmd='/bin/file'
8835 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8836 lt_cv_file_magic_test_file=/lib/libc.so
8837 ;;
8838 siemens)
8839 lt_cv_deplibs_check_method=pass_all
8840 ;;
8841 pc)
8842 lt_cv_deplibs_check_method=pass_all
8843 ;;
8844 esac
8845 ;;
8846
8847 tpf*)
8848 lt_cv_deplibs_check_method=pass_all
8849 ;;
8850 os2*)
8851 lt_cv_deplibs_check_method=pass_all
8852 ;;
8853 esac
8854
8855 fi
8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8857 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8858
8859 file_magic_glob=
8860 want_nocaseglob=no
8861 if test "$build" = "$host"; then
8862 case $host_os in
8863 mingw* | pw32*)
8864 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8865 want_nocaseglob=yes
8866 else
8867 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8868 fi
8869 ;;
8870 esac
8871 fi
8872
8873 file_magic_cmd=$lt_cv_file_magic_cmd
8874 deplibs_check_method=$lt_cv_deplibs_check_method
8875 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898 if test -n "$ac_tool_prefix"; then
8899 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8900 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8902 printf %s "checking for $ac_word... " >&6; }
8903 if test ${ac_cv_prog_DLLTOOL+y}
8904 then :
8905 printf %s "(cached) " >&6
8906 else $as_nop
8907 if test -n "$DLLTOOL"; then
8908 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8909 else
8910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911 for as_dir in $PATH
8912 do
8913 IFS=$as_save_IFS
8914 case $as_dir in #(((
8915 '') as_dir=./ ;;
8916 */) ;;
8917 *) as_dir=$as_dir/ ;;
8918 esac
8919 for ac_exec_ext in '' $ac_executable_extensions; do
8920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8921 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8923 break 2
8924 fi
8925 done
8926 done
8927 IFS=$as_save_IFS
8928
8929 fi
8930 fi
8931 DLLTOOL=$ac_cv_prog_DLLTOOL
8932 if test -n "$DLLTOOL"; then
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8934 printf "%s\n" "$DLLTOOL" >&6; }
8935 else
8936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 printf "%s\n" "no" >&6; }
8938 fi
8939
8940
8941 fi
8942 if test -z "$ac_cv_prog_DLLTOOL"; then
8943 ac_ct_DLLTOOL=$DLLTOOL
8944 # Extract the first word of "dlltool", so it can be a program name with args.
8945 set dummy dlltool; ac_word=$2
8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8947 printf %s "checking for $ac_word... " >&6; }
8948 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8949 then :
8950 printf %s "(cached) " >&6
8951 else $as_nop
8952 if test -n "$ac_ct_DLLTOOL"; then
8953 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8954 else
8955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956 for as_dir in $PATH
8957 do
8958 IFS=$as_save_IFS
8959 case $as_dir in #(((
8960 '') as_dir=./ ;;
8961 */) ;;
8962 *) as_dir=$as_dir/ ;;
8963 esac
8964 for ac_exec_ext in '' $ac_executable_extensions; do
8965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8966 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8968 break 2
8969 fi
8970 done
8971 done
8972 IFS=$as_save_IFS
8973
8974 fi
8975 fi
8976 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8977 if test -n "$ac_ct_DLLTOOL"; then
8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8979 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8980 else
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 printf "%s\n" "no" >&6; }
8983 fi
8984
8985 if test "x$ac_ct_DLLTOOL" = x; then
8986 DLLTOOL="false"
8987 else
8988 case $cross_compiling:$ac_tool_warned in
8989 yes:)
8990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8992 ac_tool_warned=yes ;;
8993 esac
8994 DLLTOOL=$ac_ct_DLLTOOL
8995 fi
8996 else
8997 DLLTOOL="$ac_cv_prog_DLLTOOL"
8998 fi
8999
9000 test -z "$DLLTOOL" && DLLTOOL=dlltool
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9012 printf %s "checking how to associate runtime and link libraries... " >&6; }
9013 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9014 then :
9015 printf %s "(cached) " >&6
9016 else $as_nop
9017 lt_cv_sharedlib_from_linklib_cmd='unknown'
9018
9019 case $host_os in
9020 cygwin* | mingw* | pw32* | cegcc*)
9021 # two different shell functions defined in ltmain.sh;
9022 # decide which one to use based on capabilities of $DLLTOOL
9023 case `$DLLTOOL --help 2>&1` in
9024 *--identify-strict*)
9025 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9026 ;;
9027 *)
9028 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9029 ;;
9030 esac
9031 ;;
9032 *)
9033 # fallback: assume linklib IS sharedlib
9034 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9035 ;;
9036 esac
9037
9038 fi
9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9040 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9041 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9042 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9043
9044
9045
9046
9047
9048
9049
9050 if test -n "$ac_tool_prefix"; then
9051 for ac_prog in ar
9052 do
9053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056 printf %s "checking for $ac_word... " >&6; }
9057 if test ${ac_cv_prog_AR+y}
9058 then :
9059 printf %s "(cached) " >&6
9060 else $as_nop
9061 if test -n "$AR"; then
9062 ac_cv_prog_AR="$AR" # Let the user override the test.
9063 else
9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065 for as_dir in $PATH
9066 do
9067 IFS=$as_save_IFS
9068 case $as_dir in #(((
9069 '') as_dir=./ ;;
9070 */) ;;
9071 *) as_dir=$as_dir/ ;;
9072 esac
9073 for ac_exec_ext in '' $ac_executable_extensions; do
9074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9075 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9077 break 2
9078 fi
9079 done
9080 done
9081 IFS=$as_save_IFS
9082
9083 fi
9084 fi
9085 AR=$ac_cv_prog_AR
9086 if test -n "$AR"; then
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9088 printf "%s\n" "$AR" >&6; }
9089 else
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 printf "%s\n" "no" >&6; }
9092 fi
9093
9094
9095 test -n "$AR" && break
9096 done
9097 fi
9098 if test -z "$AR"; then
9099 ac_ct_AR=$AR
9100 for ac_prog in ar
9101 do
9102 # Extract the first word of "$ac_prog", so it can be a program name with args.
9103 set dummy $ac_prog; ac_word=$2
9104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9105 printf %s "checking for $ac_word... " >&6; }
9106 if test ${ac_cv_prog_ac_ct_AR+y}
9107 then :
9108 printf %s "(cached) " >&6
9109 else $as_nop
9110 if test -n "$ac_ct_AR"; then
9111 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9112 else
9113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 for as_dir in $PATH
9115 do
9116 IFS=$as_save_IFS
9117 case $as_dir in #(((
9118 '') as_dir=./ ;;
9119 */) ;;
9120 *) as_dir=$as_dir/ ;;
9121 esac
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9124 ac_cv_prog_ac_ct_AR="$ac_prog"
9125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9126 break 2
9127 fi
9128 done
9129 done
9130 IFS=$as_save_IFS
9131
9132 fi
9133 fi
9134 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9135 if test -n "$ac_ct_AR"; then
9136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9137 printf "%s\n" "$ac_ct_AR" >&6; }
9138 else
9139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 printf "%s\n" "no" >&6; }
9141 fi
9142
9143
9144 test -n "$ac_ct_AR" && break
9145 done
9146
9147 if test "x$ac_ct_AR" = x; then
9148 AR="false"
9149 else
9150 case $cross_compiling:$ac_tool_warned in
9151 yes:)
9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9153 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9154 ac_tool_warned=yes ;;
9155 esac
9156 AR=$ac_ct_AR
9157 fi
9158 fi
9159
9160 : ${AR=ar}
9161
9162
9163
9164
9165
9166
9167 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
9168 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
9169 # higher priority because thats what people were doing historically (setting
9170 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
9171 # variable obsoleted/removed.
9172
9173 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
9174 lt_ar_flags=$AR_FLAGS
9175
9176
9177
9178
9179
9180
9181 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
9182 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
9183
9184
9185
9186
9187
9188
9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9190 printf %s "checking for archiver @FILE support... " >&6; }
9191 if test ${lt_cv_ar_at_file+y}
9192 then :
9193 printf %s "(cached) " >&6
9194 else $as_nop
9195 lt_cv_ar_at_file=no
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198
9199 int
9200 main (void)
9201 {
9202
9203 ;
9204 return 0;
9205 }
9206 _ACEOF
9207 if ac_fn_c_try_compile "$LINENO"
9208 then :
9209 echo conftest.$ac_objext > conftest.lst
9210 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9212 (eval $lt_ar_try) 2>&5
9213 ac_status=$?
9214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9215 test $ac_status = 0; }
9216 if test 0 -eq "$ac_status"; then
9217 # Ensure the archiver fails upon bogus file names.
9218 rm -f conftest.$ac_objext libconftest.a
9219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9220 (eval $lt_ar_try) 2>&5
9221 ac_status=$?
9222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9223 test $ac_status = 0; }
9224 if test 0 -ne "$ac_status"; then
9225 lt_cv_ar_at_file=@
9226 fi
9227 fi
9228 rm -f conftest.* libconftest.a
9229
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9232
9233 fi
9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9235 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9236
9237 if test no = "$lt_cv_ar_at_file"; then
9238 archiver_list_spec=
9239 else
9240 archiver_list_spec=$lt_cv_ar_at_file
9241 fi
9242
9243
9244
9245
9246
9247
9248
9249 if test -n "$ac_tool_prefix"; then
9250 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9251 set dummy ${ac_tool_prefix}strip; ac_word=$2
9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9253 printf %s "checking for $ac_word... " >&6; }
9254 if test ${ac_cv_prog_STRIP+y}
9255 then :
9256 printf %s "(cached) " >&6
9257 else $as_nop
9258 if test -n "$STRIP"; then
9259 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9260 else
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 for as_dir in $PATH
9263 do
9264 IFS=$as_save_IFS
9265 case $as_dir in #(((
9266 '') as_dir=./ ;;
9267 */) ;;
9268 *) as_dir=$as_dir/ ;;
9269 esac
9270 for ac_exec_ext in '' $ac_executable_extensions; do
9271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9272 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9274 break 2
9275 fi
9276 done
9277 done
9278 IFS=$as_save_IFS
9279
9280 fi
9281 fi
9282 STRIP=$ac_cv_prog_STRIP
9283 if test -n "$STRIP"; then
9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9285 printf "%s\n" "$STRIP" >&6; }
9286 else
9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9288 printf "%s\n" "no" >&6; }
9289 fi
9290
9291
9292 fi
9293 if test -z "$ac_cv_prog_STRIP"; then
9294 ac_ct_STRIP=$STRIP
9295 # Extract the first word of "strip", so it can be a program name with args.
9296 set dummy strip; ac_word=$2
9297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9298 printf %s "checking for $ac_word... " >&6; }
9299 if test ${ac_cv_prog_ac_ct_STRIP+y}
9300 then :
9301 printf %s "(cached) " >&6
9302 else $as_nop
9303 if test -n "$ac_ct_STRIP"; then
9304 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9305 else
9306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307 for as_dir in $PATH
9308 do
9309 IFS=$as_save_IFS
9310 case $as_dir in #(((
9311 '') as_dir=./ ;;
9312 */) ;;
9313 *) as_dir=$as_dir/ ;;
9314 esac
9315 for ac_exec_ext in '' $ac_executable_extensions; do
9316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9317 ac_cv_prog_ac_ct_STRIP="strip"
9318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9319 break 2
9320 fi
9321 done
9322 done
9323 IFS=$as_save_IFS
9324
9325 fi
9326 fi
9327 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9328 if test -n "$ac_ct_STRIP"; then
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9330 printf "%s\n" "$ac_ct_STRIP" >&6; }
9331 else
9332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333 printf "%s\n" "no" >&6; }
9334 fi
9335
9336 if test "x$ac_ct_STRIP" = x; then
9337 STRIP=":"
9338 else
9339 case $cross_compiling:$ac_tool_warned in
9340 yes:)
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9342 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9343 ac_tool_warned=yes ;;
9344 esac
9345 STRIP=$ac_ct_STRIP
9346 fi
9347 else
9348 STRIP="$ac_cv_prog_STRIP"
9349 fi
9350
9351 test -z "$STRIP" && STRIP=:
9352
9353
9354
9355
9356
9357
9358 if test -n "$ac_tool_prefix"; then
9359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9362 printf %s "checking for $ac_word... " >&6; }
9363 if test ${ac_cv_prog_RANLIB+y}
9364 then :
9365 printf %s "(cached) " >&6
9366 else $as_nop
9367 if test -n "$RANLIB"; then
9368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9369 else
9370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9371 for as_dir in $PATH
9372 do
9373 IFS=$as_save_IFS
9374 case $as_dir in #(((
9375 '') as_dir=./ ;;
9376 */) ;;
9377 *) as_dir=$as_dir/ ;;
9378 esac
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9381 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9383 break 2
9384 fi
9385 done
9386 done
9387 IFS=$as_save_IFS
9388
9389 fi
9390 fi
9391 RANLIB=$ac_cv_prog_RANLIB
9392 if test -n "$RANLIB"; then
9393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9394 printf "%s\n" "$RANLIB" >&6; }
9395 else
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 printf "%s\n" "no" >&6; }
9398 fi
9399
9400
9401 fi
9402 if test -z "$ac_cv_prog_RANLIB"; then
9403 ac_ct_RANLIB=$RANLIB
9404 # Extract the first word of "ranlib", so it can be a program name with args.
9405 set dummy ranlib; ac_word=$2
9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407 printf %s "checking for $ac_word... " >&6; }
9408 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9409 then :
9410 printf %s "(cached) " >&6
9411 else $as_nop
9412 if test -n "$ac_ct_RANLIB"; then
9413 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9414 else
9415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416 for as_dir in $PATH
9417 do
9418 IFS=$as_save_IFS
9419 case $as_dir in #(((
9420 '') as_dir=./ ;;
9421 */) ;;
9422 *) as_dir=$as_dir/ ;;
9423 esac
9424 for ac_exec_ext in '' $ac_executable_extensions; do
9425 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9426 ac_cv_prog_ac_ct_RANLIB="ranlib"
9427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9428 break 2
9429 fi
9430 done
9431 done
9432 IFS=$as_save_IFS
9433
9434 fi
9435 fi
9436 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9437 if test -n "$ac_ct_RANLIB"; then
9438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9439 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9440 else
9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9442 printf "%s\n" "no" >&6; }
9443 fi
9444
9445 if test "x$ac_ct_RANLIB" = x; then
9446 RANLIB=":"
9447 else
9448 case $cross_compiling:$ac_tool_warned in
9449 yes:)
9450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9451 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9452 ac_tool_warned=yes ;;
9453 esac
9454 RANLIB=$ac_ct_RANLIB
9455 fi
9456 else
9457 RANLIB="$ac_cv_prog_RANLIB"
9458 fi
9459
9460 test -z "$RANLIB" && RANLIB=:
9461
9462
9463
9464
9465
9466
9467 # Determine commands to create old-style static archives.
9468 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9469 old_postinstall_cmds='chmod 644 $oldlib'
9470 old_postuninstall_cmds=
9471
9472 if test -n "$RANLIB"; then
9473 case $host_os in
9474 bitrig* | openbsd*)
9475 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9476 ;;
9477 *)
9478 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9479 ;;
9480 esac
9481 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9482 fi
9483
9484 case $host_os in
9485 darwin*)
9486 lock_old_archive_extraction=yes ;;
9487 *)
9488 lock_old_archive_extraction=no ;;
9489 esac
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529 # If no C compiler was specified, use CC.
9530 LTCC=${LTCC-"$CC"}
9531
9532 # If no C compiler flags were specified, use CFLAGS.
9533 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9534
9535 # Allow CC to be a program name with arguments.
9536 compiler=$CC
9537
9538
9539 # Check for command to grab the raw symbol name followed by C symbol from nm.
9540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9541 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9542 if test ${lt_cv_sys_global_symbol_pipe+y}
9543 then :
9544 printf %s "(cached) " >&6
9545 else $as_nop
9546
9547 # These are sane defaults that work on at least a few old systems.
9548 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9549
9550 # Character class describing NM global symbol codes.
9551 symcode='[BCDEGRST]'
9552
9553 # Regexp to match symbols that can be accessed directly from C.
9554 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9555
9556 # Define system-specific variables.
9557 case $host_os in
9558 aix*)
9559 symcode='[BCDT]'
9560 ;;
9561 cygwin* | mingw* | pw32* | cegcc*)
9562 symcode='[ABCDGISTW]'
9563 ;;
9564 hpux*)
9565 if test ia64 = "$host_cpu"; then
9566 symcode='[ABCDEGRST]'
9567 fi
9568 ;;
9569 irix* | nonstopux*)
9570 symcode='[BCDEGRST]'
9571 ;;
9572 osf*)
9573 symcode='[BCDEGQRST]'
9574 ;;
9575 solaris*)
9576 symcode='[BDRT]'
9577 ;;
9578 sco3.2v5*)
9579 symcode='[DT]'
9580 ;;
9581 sysv4.2uw2*)
9582 symcode='[DT]'
9583 ;;
9584 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9585 symcode='[ABDT]'
9586 ;;
9587 sysv4)
9588 symcode='[DFNSTU]'
9589 ;;
9590 esac
9591
9592 # If we're using GNU nm, then use its standard symbol codes.
9593 case `$NM -V 2>&1` in
9594 *GNU* | *'with BFD'*)
9595 symcode='[ABCDGIRSTW]' ;;
9596 esac
9597
9598 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9599 # Gets list of data symbols to import.
9600 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
9601 # Adjust the below global symbol transforms to fixup imported variables.
9602 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9603 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9604 lt_c_name_lib_hook="\
9605 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9606 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9607 else
9608 # Disable hooks by default.
9609 lt_cv_sys_global_symbol_to_import=
9610 lt_cdecl_hook=
9611 lt_c_name_hook=
9612 lt_c_name_lib_hook=
9613 fi
9614
9615 # Transform an extracted symbol line into a proper C declaration.
9616 # Some systems (esp. on ia64) link data and code symbols differently,
9617 # so use this general approach.
9618 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
9619 $lt_cdecl_hook\
9620 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9621 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9622
9623 # Transform an extracted symbol line into symbol name and symbol address
9624 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
9625 $lt_c_name_hook\
9626 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9627 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9628
9629 # Transform an extracted symbol line into symbol name with lib prefix and
9630 # symbol address.
9631 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
9632 $lt_c_name_lib_hook\
9633 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9634 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9635 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9636
9637 # Handle CRLF in mingw tool chain
9638 opt_cr=
9639 case $build_os in
9640 mingw*)
9641 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9642 ;;
9643 esac
9644
9645 # Try without a prefix underscore, then with it.
9646 for ac_symprfx in "" "_"; do
9647
9648 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9649 symxfrm="\\1 $ac_symprfx\\2 \\2"
9650
9651 # Write the raw and C identifiers.
9652 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9653 # Fake it for dumpbin and say T for any non-static function,
9654 # D for any global variable and I for any imported variable.
9655 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
9656 # which start with @ or ?.
9657 lt_cv_sys_global_symbol_pipe="$AWK '"\
9658 " {last_section=section; section=\$ 3};"\
9659 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9660 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9661 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9662 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9663 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9664 " \$ 0!~/External *\|/{next};"\
9665 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9666 " {if(hide[section]) next};"\
9667 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9668 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9669 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9670 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9671 " ' prfx=^$ac_symprfx"
9672 else
9673 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9674 fi
9675 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
9676
9677 # Check to see that the pipe works correctly.
9678 pipe_works=no
9679
9680 rm -f conftest*
9681 cat > conftest.$ac_ext <<_LT_EOF
9682 #ifdef __cplusplus
9683 extern "C" {
9684 #endif
9685 char nm_test_var;
9686 void nm_test_func(void);
9687 void nm_test_func(void){}
9688 #ifdef __cplusplus
9689 }
9690 #endif
9691 int main(){nm_test_var='a';nm_test_func();return(0);}
9692 _LT_EOF
9693
9694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9695 (eval $ac_compile) 2>&5
9696 ac_status=$?
9697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9698 test $ac_status = 0; }; then
9699 # Now try to grab the symbols.
9700 nlist=conftest.nm
9701 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9702 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9703 # Try sorting and uniquifying the output.
9704 if sort "$nlist" | uniq > "$nlist"T; then
9705 mv -f "$nlist"T "$nlist"
9706 else
9707 rm -f "$nlist"T
9708 fi
9709
9710 # Make sure that we snagged all the symbols we need.
9711 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9712 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9713 cat <<_LT_EOF > conftest.$ac_ext
9714 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9715 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9716 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9717 relocations are performed -- see ld's documentation on pseudo-relocs. */
9718 # define LT_DLSYM_CONST
9719 #elif defined __osf__
9720 /* This system does not cope well with relocations in const data. */
9721 # define LT_DLSYM_CONST
9722 #else
9723 # define LT_DLSYM_CONST const
9724 #endif
9725
9726 #ifdef __cplusplus
9727 extern "C" {
9728 #endif
9729
9730 _LT_EOF
9731 # Now generate the symbol file.
9732 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9733
9734 cat <<_LT_EOF >> conftest.$ac_ext
9735
9736 /* The mapping between symbol names and symbols. */
9737 LT_DLSYM_CONST struct {
9738 const char *name;
9739 void *address;
9740 }
9741 lt__PROGRAM__LTX_preloaded_symbols[] =
9742 {
9743 { "@PROGRAM@", (void *) 0 },
9744 _LT_EOF
9745 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9746 cat <<\_LT_EOF >> conftest.$ac_ext
9747 {0, (void *) 0}
9748 };
9749
9750 /* This works around a problem in FreeBSD linker */
9751 #ifdef FREEBSD_WORKAROUND
9752 static const void *lt_preloaded_setup() {
9753 return lt__PROGRAM__LTX_preloaded_symbols;
9754 }
9755 #endif
9756
9757 #ifdef __cplusplus
9758 }
9759 #endif
9760 _LT_EOF
9761 # Now try linking the two files.
9762 mv conftest.$ac_objext conftstm.$ac_objext
9763 lt_globsym_save_LIBS=$LIBS
9764 lt_globsym_save_CFLAGS=$CFLAGS
9765 LIBS=conftstm.$ac_objext
9766 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9768 (eval $ac_link) 2>&5
9769 ac_status=$?
9770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9771 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9772 pipe_works=yes
9773 fi
9774 LIBS=$lt_globsym_save_LIBS
9775 CFLAGS=$lt_globsym_save_CFLAGS
9776 else
9777 echo "cannot find nm_test_func in $nlist" >&5
9778 fi
9779 else
9780 echo "cannot find nm_test_var in $nlist" >&5
9781 fi
9782 else
9783 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9784 fi
9785 else
9786 echo "$progname: failed program was:" >&5
9787 cat conftest.$ac_ext >&5
9788 fi
9789 rm -rf conftest* conftst*
9790
9791 # Do not use the global_symbol_pipe unless it works.
9792 if test yes = "$pipe_works"; then
9793 break
9794 else
9795 lt_cv_sys_global_symbol_pipe=
9796 fi
9797 done
9798
9799 fi
9800
9801 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9802 lt_cv_sys_global_symbol_to_cdecl=
9803 fi
9804 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9806 printf "%s\n" "failed" >&6; }
9807 else
9808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9809 printf "%s\n" "ok" >&6; }
9810 fi
9811
9812 # Response file support.
9813 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9814 nm_file_list_spec='@'
9815 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9816 nm_file_list_spec='@'
9817 fi
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9856 printf %s "checking for sysroot... " >&6; }
9857
9858 # Check whether --with-sysroot was given.
9859 if test ${with_sysroot+y}
9860 then :
9861 withval=$with_sysroot;
9862 else $as_nop
9863 with_sysroot=no
9864 fi
9865
9866
9867 lt_sysroot=
9868 case $with_sysroot in #(
9869 yes)
9870 if test yes = "$GCC"; then
9871 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9872 fi
9873 ;; #(
9874 /*)
9875 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
9876 ;; #(
9877 no|'')
9878 ;; #(
9879 *)
9880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9881 printf "%s\n" "$with_sysroot" >&6; }
9882 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9883 ;;
9884 esac
9885
9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9887 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9888
9889
9890
9891
9892
9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9894 printf %s "checking for a working dd... " >&6; }
9895 if test ${ac_cv_path_lt_DD+y}
9896 then :
9897 printf %s "(cached) " >&6
9898 else $as_nop
9899 printf 0123456789abcdef0123456789abcdef >conftest.i
9900 cat conftest.i conftest.i >conftest2.i
9901 : ${lt_DD:=$DD}
9902 if test -z "$lt_DD"; then
9903 ac_path_lt_DD_found=false
9904 # Loop through the user's path and test for each of PROGNAME-LIST
9905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906 for as_dir in $PATH
9907 do
9908 IFS=$as_save_IFS
9909 case $as_dir in #(((
9910 '') as_dir=./ ;;
9911 */) ;;
9912 *) as_dir=$as_dir/ ;;
9913 esac
9914 for ac_prog in dd
9915 do
9916 for ac_exec_ext in '' $ac_executable_extensions; do
9917 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9918 as_fn_executable_p "$ac_path_lt_DD" || continue
9919 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9920 cmp -s conftest.i conftest.out \
9921 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9922 fi
9923 $ac_path_lt_DD_found && break 3
9924 done
9925 done
9926 done
9927 IFS=$as_save_IFS
9928 if test -z "$ac_cv_path_lt_DD"; then
9929 :
9930 fi
9931 else
9932 ac_cv_path_lt_DD=$lt_DD
9933 fi
9934
9935 rm -f conftest.i conftest2.i conftest.out
9936 fi
9937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9938 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9939
9940
9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9942 printf %s "checking how to truncate binary pipes... " >&6; }
9943 if test ${lt_cv_truncate_bin+y}
9944 then :
9945 printf %s "(cached) " >&6
9946 else $as_nop
9947 printf 0123456789abcdef0123456789abcdef >conftest.i
9948 cat conftest.i conftest.i >conftest2.i
9949 lt_cv_truncate_bin=
9950 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9951 cmp -s conftest.i conftest.out \
9952 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9953 fi
9954 rm -f conftest.i conftest2.i conftest.out
9955 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9956 fi
9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9958 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9959
9960
9961
9962
9963
9964
9965
9966 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9967 func_cc_basename ()
9968 {
9969 for cc_temp in $*""; do
9970 case $cc_temp in
9971 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9972 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9973 \-*) ;;
9974 *) break;;
9975 esac
9976 done
9977 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9978 }
9979
9980 # Check whether --enable-libtool-lock was given.
9981 if test ${enable_libtool_lock+y}
9982 then :
9983 enableval=$enable_libtool_lock;
9984 fi
9985
9986 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9987
9988 # Some flags need to be propagated to the compiler or linker for good
9989 # libtool support.
9990 case $host in
9991 ia64-*-hpux*)
9992 # Find out what ABI is being produced by ac_compile, and set mode
9993 # options accordingly.
9994 echo 'int i;' > conftest.$ac_ext
9995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9996 (eval $ac_compile) 2>&5
9997 ac_status=$?
9998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9999 test $ac_status = 0; }; then
10000 case `$FILECMD conftest.$ac_objext` in
10001 *ELF-32*)
10002 HPUX_IA64_MODE=32
10003 ;;
10004 *ELF-64*)
10005 HPUX_IA64_MODE=64
10006 ;;
10007 esac
10008 fi
10009 rm -rf conftest*
10010 ;;
10011 *-*-irix6*)
10012 # Find out what ABI is being produced by ac_compile, and set linker
10013 # options accordingly.
10014 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10016 (eval $ac_compile) 2>&5
10017 ac_status=$?
10018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10019 test $ac_status = 0; }; then
10020 if test yes = "$lt_cv_prog_gnu_ld"; then
10021 case `$FILECMD conftest.$ac_objext` in
10022 *32-bit*)
10023 LD="${LD-ld} -melf32bsmip"
10024 ;;
10025 *N32*)
10026 LD="${LD-ld} -melf32bmipn32"
10027 ;;
10028 *64-bit*)
10029 LD="${LD-ld} -melf64bmip"
10030 ;;
10031 esac
10032 else
10033 case `$FILECMD conftest.$ac_objext` in
10034 *32-bit*)
10035 LD="${LD-ld} -32"
10036 ;;
10037 *N32*)
10038 LD="${LD-ld} -n32"
10039 ;;
10040 *64-bit*)
10041 LD="${LD-ld} -64"
10042 ;;
10043 esac
10044 fi
10045 fi
10046 rm -rf conftest*
10047 ;;
10048
10049 mips64*-*linux*)
10050 # Find out what ABI is being produced by ac_compile, and set linker
10051 # options accordingly.
10052 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10054 (eval $ac_compile) 2>&5
10055 ac_status=$?
10056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10057 test $ac_status = 0; }; then
10058 emul=elf
10059 case `$FILECMD conftest.$ac_objext` in
10060 *32-bit*)
10061 emul="${emul}32"
10062 ;;
10063 *64-bit*)
10064 emul="${emul}64"
10065 ;;
10066 esac
10067 case `$FILECMD conftest.$ac_objext` in
10068 *MSB*)
10069 emul="${emul}btsmip"
10070 ;;
10071 *LSB*)
10072 emul="${emul}ltsmip"
10073 ;;
10074 esac
10075 case `$FILECMD conftest.$ac_objext` in
10076 *N32*)
10077 emul="${emul}n32"
10078 ;;
10079 esac
10080 LD="${LD-ld} -m $emul"
10081 fi
10082 rm -rf conftest*
10083 ;;
10084
10085 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10086 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10087 # Find out what ABI is being produced by ac_compile, and set linker
10088 # options accordingly. Note that the listed cases only cover the
10089 # situations where additional linker options are needed (such as when
10090 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10091 # vice versa); the common cases where no linker options are needed do
10092 # not appear in the list.
10093 echo 'int i;' > conftest.$ac_ext
10094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10095 (eval $ac_compile) 2>&5
10096 ac_status=$?
10097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10098 test $ac_status = 0; }; then
10099 case `$FILECMD conftest.o` in
10100 *32-bit*)
10101 case $host in
10102 x86_64-*kfreebsd*-gnu)
10103 LD="${LD-ld} -m elf_i386_fbsd"
10104 ;;
10105 x86_64-*linux*)
10106 case `$FILECMD conftest.o` in
10107 *x86-64*)
10108 LD="${LD-ld} -m elf32_x86_64"
10109 ;;
10110 *)
10111 LD="${LD-ld} -m elf_i386"
10112 ;;
10113 esac
10114 ;;
10115 powerpc64le-*linux*)
10116 LD="${LD-ld} -m elf32lppclinux"
10117 ;;
10118 powerpc64-*linux*)
10119 LD="${LD-ld} -m elf32ppclinux"
10120 ;;
10121 s390x-*linux*)
10122 LD="${LD-ld} -m elf_s390"
10123 ;;
10124 sparc64-*linux*)
10125 LD="${LD-ld} -m elf32_sparc"
10126 ;;
10127 esac
10128 ;;
10129 *64-bit*)
10130 case $host in
10131 x86_64-*kfreebsd*-gnu)
10132 LD="${LD-ld} -m elf_x86_64_fbsd"
10133 ;;
10134 x86_64-*linux*)
10135 LD="${LD-ld} -m elf_x86_64"
10136 ;;
10137 powerpcle-*linux*)
10138 LD="${LD-ld} -m elf64lppc"
10139 ;;
10140 powerpc-*linux*)
10141 LD="${LD-ld} -m elf64ppc"
10142 ;;
10143 s390*-*linux*|s390*-*tpf*)
10144 LD="${LD-ld} -m elf64_s390"
10145 ;;
10146 sparc*-*linux*)
10147 LD="${LD-ld} -m elf64_sparc"
10148 ;;
10149 esac
10150 ;;
10151 esac
10152 fi
10153 rm -rf conftest*
10154 ;;
10155
10156 *-*-sco3.2v5*)
10157 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10158 SAVE_CFLAGS=$CFLAGS
10159 CFLAGS="$CFLAGS -belf"
10160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10161 printf %s "checking whether the C compiler needs -belf... " >&6; }
10162 if test ${lt_cv_cc_needs_belf+y}
10163 then :
10164 printf %s "(cached) " >&6
10165 else $as_nop
10166 ac_ext=c
10167 ac_cpp='$CPP $CPPFLAGS'
10168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10171
10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10174
10175 int
10176 main (void)
10177 {
10178
10179 ;
10180 return 0;
10181 }
10182 _ACEOF
10183 if ac_fn_c_try_link "$LINENO"
10184 then :
10185 lt_cv_cc_needs_belf=yes
10186 else $as_nop
10187 lt_cv_cc_needs_belf=no
10188 fi
10189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10190 conftest$ac_exeext conftest.$ac_ext
10191 ac_ext=c
10192 ac_cpp='$CPP $CPPFLAGS'
10193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10196
10197 fi
10198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10199 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10200 if test yes != "$lt_cv_cc_needs_belf"; then
10201 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10202 CFLAGS=$SAVE_CFLAGS
10203 fi
10204 ;;
10205 *-*solaris*)
10206 # Find out what ABI is being produced by ac_compile, and set linker
10207 # options accordingly.
10208 echo 'int i;' > conftest.$ac_ext
10209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10210 (eval $ac_compile) 2>&5
10211 ac_status=$?
10212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10213 test $ac_status = 0; }; then
10214 case `$FILECMD conftest.o` in
10215 *64-bit*)
10216 case $lt_cv_prog_gnu_ld in
10217 yes*)
10218 case $host in
10219 i?86-*-solaris*|x86_64-*-solaris*)
10220 LD="${LD-ld} -m elf_x86_64"
10221 ;;
10222 sparc*-*-solaris*)
10223 LD="${LD-ld} -m elf64_sparc"
10224 ;;
10225 esac
10226 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10227 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10228 LD=${LD-ld}_sol2
10229 fi
10230 ;;
10231 *)
10232 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10233 LD="${LD-ld} -64"
10234 fi
10235 ;;
10236 esac
10237 ;;
10238 esac
10239 fi
10240 rm -rf conftest*
10241 ;;
10242 esac
10243
10244 need_locks=$enable_libtool_lock
10245
10246 if test -n "$ac_tool_prefix"; then
10247 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10248 set dummy ${ac_tool_prefix}mt; ac_word=$2
10249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 printf %s "checking for $ac_word... " >&6; }
10251 if test ${ac_cv_prog_MANIFEST_TOOL+y}
10252 then :
10253 printf %s "(cached) " >&6
10254 else $as_nop
10255 if test -n "$MANIFEST_TOOL"; then
10256 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10257 else
10258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259 for as_dir in $PATH
10260 do
10261 IFS=$as_save_IFS
10262 case $as_dir in #(((
10263 '') as_dir=./ ;;
10264 */) ;;
10265 *) as_dir=$as_dir/ ;;
10266 esac
10267 for ac_exec_ext in '' $ac_executable_extensions; do
10268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10269 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10271 break 2
10272 fi
10273 done
10274 done
10275 IFS=$as_save_IFS
10276
10277 fi
10278 fi
10279 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10280 if test -n "$MANIFEST_TOOL"; then
10281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10282 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10283 else
10284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285 printf "%s\n" "no" >&6; }
10286 fi
10287
10288
10289 fi
10290 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10291 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10292 # Extract the first word of "mt", so it can be a program name with args.
10293 set dummy mt; ac_word=$2
10294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295 printf %s "checking for $ac_word... " >&6; }
10296 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10297 then :
10298 printf %s "(cached) " >&6
10299 else $as_nop
10300 if test -n "$ac_ct_MANIFEST_TOOL"; then
10301 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10302 else
10303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304 for as_dir in $PATH
10305 do
10306 IFS=$as_save_IFS
10307 case $as_dir in #(((
10308 '') as_dir=./ ;;
10309 */) ;;
10310 *) as_dir=$as_dir/ ;;
10311 esac
10312 for ac_exec_ext in '' $ac_executable_extensions; do
10313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10314 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10316 break 2
10317 fi
10318 done
10319 done
10320 IFS=$as_save_IFS
10321
10322 fi
10323 fi
10324 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10325 if test -n "$ac_ct_MANIFEST_TOOL"; then
10326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10327 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10328 else
10329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330 printf "%s\n" "no" >&6; }
10331 fi
10332
10333 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10334 MANIFEST_TOOL=":"
10335 else
10336 case $cross_compiling:$ac_tool_warned in
10337 yes:)
10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10339 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10340 ac_tool_warned=yes ;;
10341 esac
10342 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10343 fi
10344 else
10345 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10346 fi
10347
10348 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10350 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10351 if test ${lt_cv_path_mainfest_tool+y}
10352 then :
10353 printf %s "(cached) " >&6
10354 else $as_nop
10355 lt_cv_path_mainfest_tool=no
10356 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10357 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10358 cat conftest.err >&5
10359 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10360 lt_cv_path_mainfest_tool=yes
10361 fi
10362 rm -f conftest*
10363 fi
10364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10365 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10366 if test yes != "$lt_cv_path_mainfest_tool"; then
10367 MANIFEST_TOOL=:
10368 fi
10369
10370
10371
10372
10373
10374
10375 case $host_os in
10376 rhapsody* | darwin*)
10377 if test -n "$ac_tool_prefix"; then
10378 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10379 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10381 printf %s "checking for $ac_word... " >&6; }
10382 if test ${ac_cv_prog_DSYMUTIL+y}
10383 then :
10384 printf %s "(cached) " >&6
10385 else $as_nop
10386 if test -n "$DSYMUTIL"; then
10387 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10388 else
10389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390 for as_dir in $PATH
10391 do
10392 IFS=$as_save_IFS
10393 case $as_dir in #(((
10394 '') as_dir=./ ;;
10395 */) ;;
10396 *) as_dir=$as_dir/ ;;
10397 esac
10398 for ac_exec_ext in '' $ac_executable_extensions; do
10399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10400 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10402 break 2
10403 fi
10404 done
10405 done
10406 IFS=$as_save_IFS
10407
10408 fi
10409 fi
10410 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10411 if test -n "$DSYMUTIL"; then
10412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10413 printf "%s\n" "$DSYMUTIL" >&6; }
10414 else
10415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10416 printf "%s\n" "no" >&6; }
10417 fi
10418
10419
10420 fi
10421 if test -z "$ac_cv_prog_DSYMUTIL"; then
10422 ac_ct_DSYMUTIL=$DSYMUTIL
10423 # Extract the first word of "dsymutil", so it can be a program name with args.
10424 set dummy dsymutil; ac_word=$2
10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10426 printf %s "checking for $ac_word... " >&6; }
10427 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10428 then :
10429 printf %s "(cached) " >&6
10430 else $as_nop
10431 if test -n "$ac_ct_DSYMUTIL"; then
10432 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10433 else
10434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435 for as_dir in $PATH
10436 do
10437 IFS=$as_save_IFS
10438 case $as_dir in #(((
10439 '') as_dir=./ ;;
10440 */) ;;
10441 *) as_dir=$as_dir/ ;;
10442 esac
10443 for ac_exec_ext in '' $ac_executable_extensions; do
10444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10445 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10447 break 2
10448 fi
10449 done
10450 done
10451 IFS=$as_save_IFS
10452
10453 fi
10454 fi
10455 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10456 if test -n "$ac_ct_DSYMUTIL"; then
10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10458 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10459 else
10460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461 printf "%s\n" "no" >&6; }
10462 fi
10463
10464 if test "x$ac_ct_DSYMUTIL" = x; then
10465 DSYMUTIL=":"
10466 else
10467 case $cross_compiling:$ac_tool_warned in
10468 yes:)
10469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10470 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10471 ac_tool_warned=yes ;;
10472 esac
10473 DSYMUTIL=$ac_ct_DSYMUTIL
10474 fi
10475 else
10476 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10477 fi
10478
10479 if test -n "$ac_tool_prefix"; then
10480 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10481 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483 printf %s "checking for $ac_word... " >&6; }
10484 if test ${ac_cv_prog_NMEDIT+y}
10485 then :
10486 printf %s "(cached) " >&6
10487 else $as_nop
10488 if test -n "$NMEDIT"; then
10489 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10490 else
10491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492 for as_dir in $PATH
10493 do
10494 IFS=$as_save_IFS
10495 case $as_dir in #(((
10496 '') as_dir=./ ;;
10497 */) ;;
10498 *) as_dir=$as_dir/ ;;
10499 esac
10500 for ac_exec_ext in '' $ac_executable_extensions; do
10501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10502 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10504 break 2
10505 fi
10506 done
10507 done
10508 IFS=$as_save_IFS
10509
10510 fi
10511 fi
10512 NMEDIT=$ac_cv_prog_NMEDIT
10513 if test -n "$NMEDIT"; then
10514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10515 printf "%s\n" "$NMEDIT" >&6; }
10516 else
10517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518 printf "%s\n" "no" >&6; }
10519 fi
10520
10521
10522 fi
10523 if test -z "$ac_cv_prog_NMEDIT"; then
10524 ac_ct_NMEDIT=$NMEDIT
10525 # Extract the first word of "nmedit", so it can be a program name with args.
10526 set dummy nmedit; ac_word=$2
10527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10528 printf %s "checking for $ac_word... " >&6; }
10529 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10530 then :
10531 printf %s "(cached) " >&6
10532 else $as_nop
10533 if test -n "$ac_ct_NMEDIT"; then
10534 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10535 else
10536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537 for as_dir in $PATH
10538 do
10539 IFS=$as_save_IFS
10540 case $as_dir in #(((
10541 '') as_dir=./ ;;
10542 */) ;;
10543 *) as_dir=$as_dir/ ;;
10544 esac
10545 for ac_exec_ext in '' $ac_executable_extensions; do
10546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10547 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10549 break 2
10550 fi
10551 done
10552 done
10553 IFS=$as_save_IFS
10554
10555 fi
10556 fi
10557 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10558 if test -n "$ac_ct_NMEDIT"; then
10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10560 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10561 else
10562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 printf "%s\n" "no" >&6; }
10564 fi
10565
10566 if test "x$ac_ct_NMEDIT" = x; then
10567 NMEDIT=":"
10568 else
10569 case $cross_compiling:$ac_tool_warned in
10570 yes:)
10571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10572 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10573 ac_tool_warned=yes ;;
10574 esac
10575 NMEDIT=$ac_ct_NMEDIT
10576 fi
10577 else
10578 NMEDIT="$ac_cv_prog_NMEDIT"
10579 fi
10580
10581 if test -n "$ac_tool_prefix"; then
10582 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10583 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585 printf %s "checking for $ac_word... " >&6; }
10586 if test ${ac_cv_prog_LIPO+y}
10587 then :
10588 printf %s "(cached) " >&6
10589 else $as_nop
10590 if test -n "$LIPO"; then
10591 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10592 else
10593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10594 for as_dir in $PATH
10595 do
10596 IFS=$as_save_IFS
10597 case $as_dir in #(((
10598 '') as_dir=./ ;;
10599 */) ;;
10600 *) as_dir=$as_dir/ ;;
10601 esac
10602 for ac_exec_ext in '' $ac_executable_extensions; do
10603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10604 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10606 break 2
10607 fi
10608 done
10609 done
10610 IFS=$as_save_IFS
10611
10612 fi
10613 fi
10614 LIPO=$ac_cv_prog_LIPO
10615 if test -n "$LIPO"; then
10616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10617 printf "%s\n" "$LIPO" >&6; }
10618 else
10619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620 printf "%s\n" "no" >&6; }
10621 fi
10622
10623
10624 fi
10625 if test -z "$ac_cv_prog_LIPO"; then
10626 ac_ct_LIPO=$LIPO
10627 # Extract the first word of "lipo", so it can be a program name with args.
10628 set dummy lipo; ac_word=$2
10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10630 printf %s "checking for $ac_word... " >&6; }
10631 if test ${ac_cv_prog_ac_ct_LIPO+y}
10632 then :
10633 printf %s "(cached) " >&6
10634 else $as_nop
10635 if test -n "$ac_ct_LIPO"; then
10636 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10637 else
10638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639 for as_dir in $PATH
10640 do
10641 IFS=$as_save_IFS
10642 case $as_dir in #(((
10643 '') as_dir=./ ;;
10644 */) ;;
10645 *) as_dir=$as_dir/ ;;
10646 esac
10647 for ac_exec_ext in '' $ac_executable_extensions; do
10648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10649 ac_cv_prog_ac_ct_LIPO="lipo"
10650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10651 break 2
10652 fi
10653 done
10654 done
10655 IFS=$as_save_IFS
10656
10657 fi
10658 fi
10659 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10660 if test -n "$ac_ct_LIPO"; then
10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10662 printf "%s\n" "$ac_ct_LIPO" >&6; }
10663 else
10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 printf "%s\n" "no" >&6; }
10666 fi
10667
10668 if test "x$ac_ct_LIPO" = x; then
10669 LIPO=":"
10670 else
10671 case $cross_compiling:$ac_tool_warned in
10672 yes:)
10673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10674 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10675 ac_tool_warned=yes ;;
10676 esac
10677 LIPO=$ac_ct_LIPO
10678 fi
10679 else
10680 LIPO="$ac_cv_prog_LIPO"
10681 fi
10682
10683 if test -n "$ac_tool_prefix"; then
10684 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10685 set dummy ${ac_tool_prefix}otool; ac_word=$2
10686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10687 printf %s "checking for $ac_word... " >&6; }
10688 if test ${ac_cv_prog_OTOOL+y}
10689 then :
10690 printf %s "(cached) " >&6
10691 else $as_nop
10692 if test -n "$OTOOL"; then
10693 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10694 else
10695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10696 for as_dir in $PATH
10697 do
10698 IFS=$as_save_IFS
10699 case $as_dir in #(((
10700 '') as_dir=./ ;;
10701 */) ;;
10702 *) as_dir=$as_dir/ ;;
10703 esac
10704 for ac_exec_ext in '' $ac_executable_extensions; do
10705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10706 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10708 break 2
10709 fi
10710 done
10711 done
10712 IFS=$as_save_IFS
10713
10714 fi
10715 fi
10716 OTOOL=$ac_cv_prog_OTOOL
10717 if test -n "$OTOOL"; then
10718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10719 printf "%s\n" "$OTOOL" >&6; }
10720 else
10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10722 printf "%s\n" "no" >&6; }
10723 fi
10724
10725
10726 fi
10727 if test -z "$ac_cv_prog_OTOOL"; then
10728 ac_ct_OTOOL=$OTOOL
10729 # Extract the first word of "otool", so it can be a program name with args.
10730 set dummy otool; ac_word=$2
10731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10732 printf %s "checking for $ac_word... " >&6; }
10733 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10734 then :
10735 printf %s "(cached) " >&6
10736 else $as_nop
10737 if test -n "$ac_ct_OTOOL"; then
10738 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10739 else
10740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741 for as_dir in $PATH
10742 do
10743 IFS=$as_save_IFS
10744 case $as_dir in #(((
10745 '') as_dir=./ ;;
10746 */) ;;
10747 *) as_dir=$as_dir/ ;;
10748 esac
10749 for ac_exec_ext in '' $ac_executable_extensions; do
10750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10751 ac_cv_prog_ac_ct_OTOOL="otool"
10752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10753 break 2
10754 fi
10755 done
10756 done
10757 IFS=$as_save_IFS
10758
10759 fi
10760 fi
10761 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10762 if test -n "$ac_ct_OTOOL"; then
10763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10764 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10765 else
10766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767 printf "%s\n" "no" >&6; }
10768 fi
10769
10770 if test "x$ac_ct_OTOOL" = x; then
10771 OTOOL=":"
10772 else
10773 case $cross_compiling:$ac_tool_warned in
10774 yes:)
10775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10776 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10777 ac_tool_warned=yes ;;
10778 esac
10779 OTOOL=$ac_ct_OTOOL
10780 fi
10781 else
10782 OTOOL="$ac_cv_prog_OTOOL"
10783 fi
10784
10785 if test -n "$ac_tool_prefix"; then
10786 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10787 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10789 printf %s "checking for $ac_word... " >&6; }
10790 if test ${ac_cv_prog_OTOOL64+y}
10791 then :
10792 printf %s "(cached) " >&6
10793 else $as_nop
10794 if test -n "$OTOOL64"; then
10795 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10796 else
10797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798 for as_dir in $PATH
10799 do
10800 IFS=$as_save_IFS
10801 case $as_dir in #(((
10802 '') as_dir=./ ;;
10803 */) ;;
10804 *) as_dir=$as_dir/ ;;
10805 esac
10806 for ac_exec_ext in '' $ac_executable_extensions; do
10807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10808 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10810 break 2
10811 fi
10812 done
10813 done
10814 IFS=$as_save_IFS
10815
10816 fi
10817 fi
10818 OTOOL64=$ac_cv_prog_OTOOL64
10819 if test -n "$OTOOL64"; then
10820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10821 printf "%s\n" "$OTOOL64" >&6; }
10822 else
10823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 printf "%s\n" "no" >&6; }
10825 fi
10826
10827
10828 fi
10829 if test -z "$ac_cv_prog_OTOOL64"; then
10830 ac_ct_OTOOL64=$OTOOL64
10831 # Extract the first word of "otool64", so it can be a program name with args.
10832 set dummy otool64; ac_word=$2
10833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834 printf %s "checking for $ac_word... " >&6; }
10835 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10836 then :
10837 printf %s "(cached) " >&6
10838 else $as_nop
10839 if test -n "$ac_ct_OTOOL64"; then
10840 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10841 else
10842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10843 for as_dir in $PATH
10844 do
10845 IFS=$as_save_IFS
10846 case $as_dir in #(((
10847 '') as_dir=./ ;;
10848 */) ;;
10849 *) as_dir=$as_dir/ ;;
10850 esac
10851 for ac_exec_ext in '' $ac_executable_extensions; do
10852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10853 ac_cv_prog_ac_ct_OTOOL64="otool64"
10854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10855 break 2
10856 fi
10857 done
10858 done
10859 IFS=$as_save_IFS
10860
10861 fi
10862 fi
10863 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10864 if test -n "$ac_ct_OTOOL64"; then
10865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10866 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10867 else
10868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 printf "%s\n" "no" >&6; }
10870 fi
10871
10872 if test "x$ac_ct_OTOOL64" = x; then
10873 OTOOL64=":"
10874 else
10875 case $cross_compiling:$ac_tool_warned in
10876 yes:)
10877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10878 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10879 ac_tool_warned=yes ;;
10880 esac
10881 OTOOL64=$ac_ct_OTOOL64
10882 fi
10883 else
10884 OTOOL64="$ac_cv_prog_OTOOL64"
10885 fi
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10914 printf %s "checking for -single_module linker flag... " >&6; }
10915 if test ${lt_cv_apple_cc_single_mod+y}
10916 then :
10917 printf %s "(cached) " >&6
10918 else $as_nop
10919 lt_cv_apple_cc_single_mod=no
10920 if test -z "$LT_MULTI_MODULE"; then
10921 # By default we will add the -single_module flag. You can override
10922 # by either setting the environment variable LT_MULTI_MODULE
10923 # non-empty at configure time, or by adding -multi_module to the
10924 # link flags.
10925 rm -rf libconftest.dylib*
10926 echo "int foo(void){return 1;}" > conftest.c
10927 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10928 -dynamiclib -Wl,-single_module conftest.c" >&5
10929 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10930 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10931 _lt_result=$?
10932 # If there is a non-empty error log, and "single_module"
10933 # appears in it, assume the flag caused a linker warning
10934 if test -s conftest.err && $GREP single_module conftest.err; then
10935 cat conftest.err >&5
10936 # Otherwise, if the output was created with a 0 exit code from
10937 # the compiler, it worked.
10938 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10939 lt_cv_apple_cc_single_mod=yes
10940 else
10941 cat conftest.err >&5
10942 fi
10943 rm -rf libconftest.dylib*
10944 rm -f conftest.*
10945 fi
10946 fi
10947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10948 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10949
10950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10951 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10952 if test ${lt_cv_ld_exported_symbols_list+y}
10953 then :
10954 printf %s "(cached) " >&6
10955 else $as_nop
10956 lt_cv_ld_exported_symbols_list=no
10957 save_LDFLAGS=$LDFLAGS
10958 echo "_main" > conftest.sym
10959 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10962
10963 int
10964 main (void)
10965 {
10966
10967 ;
10968 return 0;
10969 }
10970 _ACEOF
10971 if ac_fn_c_try_link "$LINENO"
10972 then :
10973 lt_cv_ld_exported_symbols_list=yes
10974 else $as_nop
10975 lt_cv_ld_exported_symbols_list=no
10976 fi
10977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10978 conftest$ac_exeext conftest.$ac_ext
10979 LDFLAGS=$save_LDFLAGS
10980
10981 fi
10982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10983 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10984
10985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10986 printf %s "checking for -force_load linker flag... " >&6; }
10987 if test ${lt_cv_ld_force_load+y}
10988 then :
10989 printf %s "(cached) " >&6
10990 else $as_nop
10991 lt_cv_ld_force_load=no
10992 cat > conftest.c << _LT_EOF
10993 int forced_loaded() { return 2;}
10994 _LT_EOF
10995 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10996 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10997 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10998 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10999 echo "$RANLIB libconftest.a" >&5
11000 $RANLIB libconftest.a 2>&5
11001 cat > conftest.c << _LT_EOF
11002 int main() { return 0;}
11003 _LT_EOF
11004 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11005 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11006 _lt_result=$?
11007 if test -s conftest.err && $GREP force_load conftest.err; then
11008 cat conftest.err >&5
11009 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11010 lt_cv_ld_force_load=yes
11011 else
11012 cat conftest.err >&5
11013 fi
11014 rm -f conftest.err libconftest.a conftest conftest.c
11015 rm -rf conftest.dSYM
11016
11017 fi
11018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11019 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11020 case $host_os in
11021 rhapsody* | darwin1.[012])
11022 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11023 darwin1.*)
11024 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11025 darwin*)
11026 case $MACOSX_DEPLOYMENT_TARGET,$host in
11027 10.[012],*|,*powerpc*-darwin[5-8]*)
11028 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11029 *)
11030 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11031 esac
11032 ;;
11033 esac
11034 if test yes = "$lt_cv_apple_cc_single_mod"; then
11035 _lt_dar_single_mod='$single_module'
11036 fi
11037 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11038 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11039 else
11040 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11041 fi
11042 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11043 _lt_dsymutil='~$DSYMUTIL $lib || :'
11044 else
11045 _lt_dsymutil=
11046 fi
11047 ;;
11048 esac
11049
11050 # func_munge_path_list VARIABLE PATH
11051 # -----------------------------------
11052 # VARIABLE is name of variable containing _space_ separated list of
11053 # directories to be munged by the contents of PATH, which is string
11054 # having a format:
11055 # "DIR[:DIR]:"
11056 # string "DIR[ DIR]" will be prepended to VARIABLE
11057 # ":DIR[:DIR]"
11058 # string "DIR[ DIR]" will be appended to VARIABLE
11059 # "DIRP[:DIRP]::[DIRA:]DIRA"
11060 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11061 # "DIRA[ DIRA]" will be appended to VARIABLE
11062 # "DIR[:DIR]"
11063 # VARIABLE will be replaced by "DIR[ DIR]"
11064 func_munge_path_list ()
11065 {
11066 case x$2 in
11067 x)
11068 ;;
11069 *:)
11070 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11071 ;;
11072 x:*)
11073 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11074 ;;
11075 *::*)
11076 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11077 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11078 ;;
11079 *)
11080 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11081 ;;
11082 esac
11083 }
11084
11085 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11086 "
11087 if test "x$ac_cv_header_dlfcn_h" = xyes
11088 then :
11089 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11090
11091 fi
11092
11093
11094
11095
11096
11097 # Set options
11098
11099
11100
11101 enable_dlopen=no
11102
11103
11104 enable_win32_dll=no
11105
11106
11107 # Check whether --enable-shared was given.
11108 if test ${enable_shared+y}
11109 then :
11110 enableval=$enable_shared; p=${PACKAGE-default}
11111 case $enableval in
11112 yes) enable_shared=yes ;;
11113 no) enable_shared=no ;;
11114 *)
11115 enable_shared=no
11116 # Look at the argument we got. We use all the common list separators.
11117 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11118 for pkg in $enableval; do
11119 IFS=$lt_save_ifs
11120 if test "X$pkg" = "X$p"; then
11121 enable_shared=yes
11122 fi
11123 done
11124 IFS=$lt_save_ifs
11125 ;;
11126 esac
11127 else $as_nop
11128 enable_shared=yes
11129 fi
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139 # Check whether --enable-static was given.
11140 if test ${enable_static+y}
11141 then :
11142 enableval=$enable_static; p=${PACKAGE-default}
11143 case $enableval in
11144 yes) enable_static=yes ;;
11145 no) enable_static=no ;;
11146 *)
11147 enable_static=no
11148 # Look at the argument we got. We use all the common list separators.
11149 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11150 for pkg in $enableval; do
11151 IFS=$lt_save_ifs
11152 if test "X$pkg" = "X$p"; then
11153 enable_static=yes
11154 fi
11155 done
11156 IFS=$lt_save_ifs
11157 ;;
11158 esac
11159 else $as_nop
11160 enable_static=yes
11161 fi
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172 # Check whether --with-pic was given.
11173 if test ${with_pic+y}
11174 then :
11175 withval=$with_pic; lt_p=${PACKAGE-default}
11176 case $withval in
11177 yes|no) pic_mode=$withval ;;
11178 *)
11179 pic_mode=default
11180 # Look at the argument we got. We use all the common list separators.
11181 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11182 for lt_pkg in $withval; do
11183 IFS=$lt_save_ifs
11184 if test "X$lt_pkg" = "X$lt_p"; then
11185 pic_mode=yes
11186 fi
11187 done
11188 IFS=$lt_save_ifs
11189 ;;
11190 esac
11191 else $as_nop
11192 pic_mode=default
11193 fi
11194
11195
11196
11197
11198
11199
11200
11201
11202 # Check whether --enable-fast-install was given.
11203 if test ${enable_fast_install+y}
11204 then :
11205 enableval=$enable_fast_install; p=${PACKAGE-default}
11206 case $enableval in
11207 yes) enable_fast_install=yes ;;
11208 no) enable_fast_install=no ;;
11209 *)
11210 enable_fast_install=no
11211 # Look at the argument we got. We use all the common list separators.
11212 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11213 for pkg in $enableval; do
11214 IFS=$lt_save_ifs
11215 if test "X$pkg" = "X$p"; then
11216 enable_fast_install=yes
11217 fi
11218 done
11219 IFS=$lt_save_ifs
11220 ;;
11221 esac
11222 else $as_nop
11223 enable_fast_install=yes
11224 fi
11225
11226
11227
11228
11229
11230
11231
11232
11233 shared_archive_member_spec=
11234 case $host,$enable_shared in
11235 power*-*-aix[5-9]*,yes)
11236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11237 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11238
11239 # Check whether --with-aix-soname was given.
11240 if test ${with_aix_soname+y}
11241 then :
11242 withval=$with_aix_soname; case $withval in
11243 aix|svr4|both)
11244 ;;
11245 *)
11246 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11247 ;;
11248 esac
11249 lt_cv_with_aix_soname=$with_aix_soname
11250 else $as_nop
11251 if test ${lt_cv_with_aix_soname+y}
11252 then :
11253 printf %s "(cached) " >&6
11254 else $as_nop
11255 lt_cv_with_aix_soname=aix
11256 fi
11257
11258 with_aix_soname=$lt_cv_with_aix_soname
11259 fi
11260
11261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11262 printf "%s\n" "$with_aix_soname" >&6; }
11263 if test aix != "$with_aix_soname"; then
11264 # For the AIX way of multilib, we name the shared archive member
11265 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11266 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11267 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11268 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11269 if test 64 = "${OBJECT_MODE-32}"; then
11270 shared_archive_member_spec=shr_64
11271 else
11272 shared_archive_member_spec=shr
11273 fi
11274 fi
11275 ;;
11276 *)
11277 with_aix_soname=aix
11278 ;;
11279 esac
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290 # This can be used to rebuild libtool when needed
11291 LIBTOOL_DEPS=$ltmain
11292
11293 # Always use our own libtool.
11294 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325 test -z "$LN_S" && LN_S="ln -s"
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340 if test -n "${ZSH_VERSION+set}"; then
11341 setopt NO_GLOB_SUBST
11342 fi
11343
11344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11345 printf %s "checking for objdir... " >&6; }
11346 if test ${lt_cv_objdir+y}
11347 then :
11348 printf %s "(cached) " >&6
11349 else $as_nop
11350 rm -f .libs 2>/dev/null
11351 mkdir .libs 2>/dev/null
11352 if test -d .libs; then
11353 lt_cv_objdir=.libs
11354 else
11355 # MS-DOS does not allow filenames that begin with a dot.
11356 lt_cv_objdir=_libs
11357 fi
11358 rmdir .libs 2>/dev/null
11359 fi
11360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11361 printf "%s\n" "$lt_cv_objdir" >&6; }
11362 objdir=$lt_cv_objdir
11363
11364
11365
11366
11367
11368 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11369
11370
11371
11372
11373 case $host_os in
11374 aix3*)
11375 # AIX sometimes has problems with the GCC collect2 program. For some
11376 # reason, if we set the COLLECT_NAMES environment variable, the problems
11377 # vanish in a puff of smoke.
11378 if test set != "${COLLECT_NAMES+set}"; then
11379 COLLECT_NAMES=
11380 export COLLECT_NAMES
11381 fi
11382 ;;
11383 esac
11384
11385 # Global variables:
11386 ofile=libtool
11387 can_build_shared=yes
11388
11389 # All known linkers require a '.a' archive for static linking (except MSVC and
11390 # ICC, which need '.lib').
11391 libext=a
11392
11393 with_gnu_ld=$lt_cv_prog_gnu_ld
11394
11395 old_CC=$CC
11396 old_CFLAGS=$CFLAGS
11397
11398 # Set sane defaults for various variables
11399 test -z "$CC" && CC=cc
11400 test -z "$LTCC" && LTCC=$CC
11401 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11402 test -z "$LD" && LD=ld
11403 test -z "$ac_objext" && ac_objext=o
11404
11405 func_cc_basename $compiler
11406 cc_basename=$func_cc_basename_result
11407
11408
11409 # Only perform the check for file, if the check method requires it
11410 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11411 case $deplibs_check_method in
11412 file_magic*)
11413 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11415 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11416 if test ${lt_cv_path_MAGIC_CMD+y}
11417 then :
11418 printf %s "(cached) " >&6
11419 else $as_nop
11420 case $MAGIC_CMD in
11421 [\\/*] | ?:[\\/]*)
11422 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11423 ;;
11424 *)
11425 lt_save_MAGIC_CMD=$MAGIC_CMD
11426 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11427 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11428 for ac_dir in $ac_dummy; do
11429 IFS=$lt_save_ifs
11430 test -z "$ac_dir" && ac_dir=.
11431 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11432 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11433 if test -n "$file_magic_test_file"; then
11434 case $deplibs_check_method in
11435 "file_magic "*)
11436 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11437 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11438 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11439 $EGREP "$file_magic_regex" > /dev/null; then
11440 :
11441 else
11442 cat <<_LT_EOF 1>&2
11443
11444 *** Warning: the command libtool uses to detect shared libraries,
11445 *** $file_magic_cmd, produces output that libtool cannot recognize.
11446 *** The result is that libtool may fail to recognize shared libraries
11447 *** as such. This will affect the creation of libtool libraries that
11448 *** depend on shared libraries, but programs linked with such libtool
11449 *** libraries will work regardless of this problem. Nevertheless, you
11450 *** may want to report the problem to your system manager and/or to
11451 *** [email protected]
11452
11453 _LT_EOF
11454 fi ;;
11455 esac
11456 fi
11457 break
11458 fi
11459 done
11460 IFS=$lt_save_ifs
11461 MAGIC_CMD=$lt_save_MAGIC_CMD
11462 ;;
11463 esac
11464 fi
11465
11466 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11467 if test -n "$MAGIC_CMD"; then
11468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11469 printf "%s\n" "$MAGIC_CMD" >&6; }
11470 else
11471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 printf "%s\n" "no" >&6; }
11473 fi
11474
11475
11476
11477
11478
11479 if test -z "$lt_cv_path_MAGIC_CMD"; then
11480 if test -n "$ac_tool_prefix"; then
11481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11482 printf %s "checking for file... " >&6; }
11483 if test ${lt_cv_path_MAGIC_CMD+y}
11484 then :
11485 printf %s "(cached) " >&6
11486 else $as_nop
11487 case $MAGIC_CMD in
11488 [\\/*] | ?:[\\/]*)
11489 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11490 ;;
11491 *)
11492 lt_save_MAGIC_CMD=$MAGIC_CMD
11493 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11494 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11495 for ac_dir in $ac_dummy; do
11496 IFS=$lt_save_ifs
11497 test -z "$ac_dir" && ac_dir=.
11498 if test -f "$ac_dir/file"; then
11499 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11500 if test -n "$file_magic_test_file"; then
11501 case $deplibs_check_method in
11502 "file_magic "*)
11503 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11504 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11505 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11506 $EGREP "$file_magic_regex" > /dev/null; then
11507 :
11508 else
11509 cat <<_LT_EOF 1>&2
11510
11511 *** Warning: the command libtool uses to detect shared libraries,
11512 *** $file_magic_cmd, produces output that libtool cannot recognize.
11513 *** The result is that libtool may fail to recognize shared libraries
11514 *** as such. This will affect the creation of libtool libraries that
11515 *** depend on shared libraries, but programs linked with such libtool
11516 *** libraries will work regardless of this problem. Nevertheless, you
11517 *** may want to report the problem to your system manager and/or to
11518 *** [email protected]
11519
11520 _LT_EOF
11521 fi ;;
11522 esac
11523 fi
11524 break
11525 fi
11526 done
11527 IFS=$lt_save_ifs
11528 MAGIC_CMD=$lt_save_MAGIC_CMD
11529 ;;
11530 esac
11531 fi
11532
11533 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11534 if test -n "$MAGIC_CMD"; then
11535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11536 printf "%s\n" "$MAGIC_CMD" >&6; }
11537 else
11538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 printf "%s\n" "no" >&6; }
11540 fi
11541
11542
11543 else
11544 MAGIC_CMD=:
11545 fi
11546 fi
11547
11548 fi
11549 ;;
11550 esac
11551
11552 # Use C for the default configuration in the libtool script
11553
11554 lt_save_CC=$CC
11555 ac_ext=c
11556 ac_cpp='$CPP $CPPFLAGS'
11557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11560
11561
11562 # Source file extension for C test sources.
11563 ac_ext=c
11564
11565 # Object file extension for compiled C test sources.
11566 objext=o
11567 objext=$objext
11568
11569 # Code to be used in simple compile tests
11570 lt_simple_compile_test_code="int some_variable = 0;"
11571
11572 # Code to be used in simple link tests
11573 lt_simple_link_test_code='int main(){return(0);}'
11574
11575
11576
11577
11578
11579
11580
11581 # If no C compiler was specified, use CC.
11582 LTCC=${LTCC-"$CC"}
11583
11584 # If no C compiler flags were specified, use CFLAGS.
11585 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11586
11587 # Allow CC to be a program name with arguments.
11588 compiler=$CC
11589
11590 # Save the default compiler, since it gets overwritten when the other
11591 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11592 compiler_DEFAULT=$CC
11593
11594 # save warnings/boilerplate of simple test code
11595 ac_outfile=conftest.$ac_objext
11596 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11597 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11598 _lt_compiler_boilerplate=`cat conftest.err`
11599 $RM conftest*
11600
11601 ac_outfile=conftest.$ac_objext
11602 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11603 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11604 _lt_linker_boilerplate=`cat conftest.err`
11605 $RM -r conftest*
11606
11607
11608 ## CAVEAT EMPTOR:
11609 ## There is no encapsulation within the following macros, do not change
11610 ## the running order or otherwise move them around unless you know exactly
11611 ## what you are doing...
11612 if test -n "$compiler"; then
11613
11614 lt_prog_compiler_no_builtin_flag=
11615
11616 if test yes = "$GCC"; then
11617 case $cc_basename in
11618 nvcc*)
11619 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11620 *)
11621 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11622 esac
11623
11624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11625 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11626 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11627 then :
11628 printf %s "(cached) " >&6
11629 else $as_nop
11630 lt_cv_prog_compiler_rtti_exceptions=no
11631 ac_outfile=conftest.$ac_objext
11632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11633 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11634 # Insert the option either (1) after the last *FLAGS variable, or
11635 # (2) before a word containing "conftest.", or (3) at the end.
11636 # Note that $ac_compile itself does not contain backslashes and begins
11637 # with a dollar sign (not a hyphen), so the echo should work correctly.
11638 # The option is referenced via a variable to avoid confusing sed.
11639 lt_compile=`echo "$ac_compile" | $SED \
11640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11642 -e 's:$: $lt_compiler_flag:'`
11643 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11644 (eval "$lt_compile" 2>conftest.err)
11645 ac_status=$?
11646 cat conftest.err >&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 if (exit $ac_status) && test -s "$ac_outfile"; then
11649 # The compiler can only warn and ignore the option if not recognized
11650 # So say no if there are warnings other than the usual output.
11651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11653 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11654 lt_cv_prog_compiler_rtti_exceptions=yes
11655 fi
11656 fi
11657 $RM conftest*
11658
11659 fi
11660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11661 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11662
11663 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11664 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11665 else
11666 :
11667 fi
11668
11669 fi
11670
11671
11672
11673
11674
11675
11676 lt_prog_compiler_wl=
11677 lt_prog_compiler_pic=
11678 lt_prog_compiler_static=
11679
11680
11681 if test yes = "$GCC"; then
11682 lt_prog_compiler_wl='-Wl,'
11683 lt_prog_compiler_static='-static'
11684
11685 case $host_os in
11686 aix*)
11687 # All AIX code is PIC.
11688 if test ia64 = "$host_cpu"; then
11689 # AIX 5 now supports IA64 processor
11690 lt_prog_compiler_static='-Bstatic'
11691 fi
11692 lt_prog_compiler_pic='-fPIC'
11693 ;;
11694
11695 amigaos*)
11696 case $host_cpu in
11697 powerpc)
11698 # see comment about AmigaOS4 .so support
11699 lt_prog_compiler_pic='-fPIC'
11700 ;;
11701 m68k)
11702 # FIXME: we need at least 68020 code to build shared libraries, but
11703 # adding the '-m68020' flag to GCC prevents building anything better,
11704 # like '-m68040'.
11705 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11706 ;;
11707 esac
11708 ;;
11709
11710 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11711 # PIC is the default for these OSes.
11712 ;;
11713
11714 mingw* | cygwin* | pw32* | os2* | cegcc*)
11715 # This hack is so that the source file can tell whether it is being
11716 # built for inclusion in a dll (and should export symbols for example).
11717 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11718 # (--disable-auto-import) libraries
11719 lt_prog_compiler_pic='-DDLL_EXPORT'
11720 case $host_os in
11721 os2*)
11722 lt_prog_compiler_static='$wl-static'
11723 ;;
11724 esac
11725 ;;
11726
11727 darwin* | rhapsody*)
11728 # PIC is the default on this platform
11729 # Common symbols not allowed in MH_DYLIB files
11730 lt_prog_compiler_pic='-fno-common'
11731 ;;
11732
11733 haiku*)
11734 # PIC is the default for Haiku.
11735 # The "-static" flag exists, but is broken.
11736 lt_prog_compiler_static=
11737 ;;
11738
11739 hpux*)
11740 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11741 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11742 # sets the default TLS model and affects inlining.
11743 case $host_cpu in
11744 hppa*64*)
11745 # +Z the default
11746 ;;
11747 *)
11748 lt_prog_compiler_pic='-fPIC'
11749 ;;
11750 esac
11751 ;;
11752
11753 interix[3-9]*)
11754 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11755 # Instead, we relocate shared libraries at runtime.
11756 ;;
11757
11758 msdosdjgpp*)
11759 # Just because we use GCC doesn't mean we suddenly get shared libraries
11760 # on systems that don't support them.
11761 lt_prog_compiler_can_build_shared=no
11762 enable_shared=no
11763 ;;
11764
11765 *nto* | *qnx*)
11766 # QNX uses GNU C++, but need to define -shared option too, otherwise
11767 # it will coredump.
11768 lt_prog_compiler_pic='-fPIC -shared'
11769 ;;
11770
11771 sysv4*MP*)
11772 if test -d /usr/nec; then
11773 lt_prog_compiler_pic=-Kconform_pic
11774 fi
11775 ;;
11776
11777 *)
11778 lt_prog_compiler_pic='-fPIC'
11779 ;;
11780 esac
11781
11782 case $cc_basename in
11783 nvcc*) # Cuda Compiler Driver 2.2
11784 lt_prog_compiler_wl='-Xlinker '
11785 if test -n "$lt_prog_compiler_pic"; then
11786 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11787 fi
11788 ;;
11789 esac
11790 else
11791 # PORTME Check for flag to pass linker flags through the system compiler.
11792 case $host_os in
11793 aix*)
11794 lt_prog_compiler_wl='-Wl,'
11795 if test ia64 = "$host_cpu"; then
11796 # AIX 5 now supports IA64 processor
11797 lt_prog_compiler_static='-Bstatic'
11798 else
11799 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11800 fi
11801 ;;
11802
11803 darwin* | rhapsody*)
11804 # PIC is the default on this platform
11805 # Common symbols not allowed in MH_DYLIB files
11806 lt_prog_compiler_pic='-fno-common'
11807 case $cc_basename in
11808 nagfor*)
11809 # NAG Fortran compiler
11810 lt_prog_compiler_wl='-Wl,-Wl,,'
11811 lt_prog_compiler_pic='-PIC'
11812 lt_prog_compiler_static='-Bstatic'
11813 ;;
11814 esac
11815 ;;
11816
11817 mingw* | cygwin* | pw32* | os2* | cegcc*)
11818 # This hack is so that the source file can tell whether it is being
11819 # built for inclusion in a dll (and should export symbols for example).
11820 lt_prog_compiler_pic='-DDLL_EXPORT'
11821 case $host_os in
11822 os2*)
11823 lt_prog_compiler_static='$wl-static'
11824 ;;
11825 esac
11826 ;;
11827
11828 hpux9* | hpux10* | hpux11*)
11829 lt_prog_compiler_wl='-Wl,'
11830 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11831 # not for PA HP-UX.
11832 case $host_cpu in
11833 hppa*64*|ia64*)
11834 # +Z the default
11835 ;;
11836 *)
11837 lt_prog_compiler_pic='+Z'
11838 ;;
11839 esac
11840 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11841 lt_prog_compiler_static='$wl-a ${wl}archive'
11842 ;;
11843
11844 irix5* | irix6* | nonstopux*)
11845 lt_prog_compiler_wl='-Wl,'
11846 # PIC (with -KPIC) is the default.
11847 lt_prog_compiler_static='-non_shared'
11848 ;;
11849
11850 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11851 case $cc_basename in
11852 # old Intel for x86_64, which still supported -KPIC.
11853 ecc*)
11854 lt_prog_compiler_wl='-Wl,'
11855 lt_prog_compiler_pic='-KPIC'
11856 lt_prog_compiler_static='-static'
11857 ;;
11858 # flang / f18. f95 an alias for gfortran or flang on Debian
11859 flang* | f18* | f95*)
11860 lt_prog_compiler_wl='-Wl,'
11861 lt_prog_compiler_pic='-fPIC'
11862 lt_prog_compiler_static='-static'
11863 ;;
11864 # icc used to be incompatible with GCC.
11865 # ICC 10 doesn't accept -KPIC any more.
11866 icc* | ifort*)
11867 lt_prog_compiler_wl='-Wl,'
11868 lt_prog_compiler_pic='-fPIC'
11869 lt_prog_compiler_static='-static'
11870 ;;
11871 # Lahey Fortran 8.1.
11872 lf95*)
11873 lt_prog_compiler_wl='-Wl,'
11874 lt_prog_compiler_pic='--shared'
11875 lt_prog_compiler_static='--static'
11876 ;;
11877 nagfor*)
11878 # NAG Fortran compiler
11879 lt_prog_compiler_wl='-Wl,-Wl,,'
11880 lt_prog_compiler_pic='-PIC'
11881 lt_prog_compiler_static='-Bstatic'
11882 ;;
11883 tcc*)
11884 # Fabrice Bellard et al's Tiny C Compiler
11885 lt_prog_compiler_wl='-Wl,'
11886 lt_prog_compiler_pic='-fPIC'
11887 lt_prog_compiler_static='-static'
11888 ;;
11889 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11890 # Portland Group compilers (*not* the Pentium gcc compiler,
11891 # which looks to be a dead project)
11892 lt_prog_compiler_wl='-Wl,'
11893 lt_prog_compiler_pic='-fpic'
11894 lt_prog_compiler_static='-Bstatic'
11895 ;;
11896 ccc*)
11897 lt_prog_compiler_wl='-Wl,'
11898 # All Alpha code is PIC.
11899 lt_prog_compiler_static='-non_shared'
11900 ;;
11901 xl* | bgxl* | bgf* | mpixl*)
11902 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11903 lt_prog_compiler_wl='-Wl,'
11904 lt_prog_compiler_pic='-qpic'
11905 lt_prog_compiler_static='-qstaticlink'
11906 ;;
11907 *)
11908 case `$CC -V 2>&1 | $SED 5q` in
11909 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11910 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11911 lt_prog_compiler_pic='-KPIC'
11912 lt_prog_compiler_static='-Bstatic'
11913 lt_prog_compiler_wl=''
11914 ;;
11915 *Sun\ F* | *Sun*Fortran*)
11916 lt_prog_compiler_pic='-KPIC'
11917 lt_prog_compiler_static='-Bstatic'
11918 lt_prog_compiler_wl='-Qoption ld '
11919 ;;
11920 *Sun\ C*)
11921 # Sun C 5.9
11922 lt_prog_compiler_pic='-KPIC'
11923 lt_prog_compiler_static='-Bstatic'
11924 lt_prog_compiler_wl='-Wl,'
11925 ;;
11926 *Intel*\ [CF]*Compiler*)
11927 lt_prog_compiler_wl='-Wl,'
11928 lt_prog_compiler_pic='-fPIC'
11929 lt_prog_compiler_static='-static'
11930 ;;
11931 *Portland\ Group*)
11932 lt_prog_compiler_wl='-Wl,'
11933 lt_prog_compiler_pic='-fpic'
11934 lt_prog_compiler_static='-Bstatic'
11935 ;;
11936 esac
11937 ;;
11938 esac
11939 ;;
11940
11941 newsos6)
11942 lt_prog_compiler_pic='-KPIC'
11943 lt_prog_compiler_static='-Bstatic'
11944 ;;
11945
11946 *nto* | *qnx*)
11947 # QNX uses GNU C++, but need to define -shared option too, otherwise
11948 # it will coredump.
11949 lt_prog_compiler_pic='-fPIC -shared'
11950 ;;
11951
11952 osf3* | osf4* | osf5*)
11953 lt_prog_compiler_wl='-Wl,'
11954 # All OSF/1 code is PIC.
11955 lt_prog_compiler_static='-non_shared'
11956 ;;
11957
11958 rdos*)
11959 lt_prog_compiler_static='-non_shared'
11960 ;;
11961
11962 solaris*)
11963 lt_prog_compiler_pic='-KPIC'
11964 lt_prog_compiler_static='-Bstatic'
11965 case $cc_basename in
11966 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11967 lt_prog_compiler_wl='-Qoption ld ';;
11968 *)
11969 lt_prog_compiler_wl='-Wl,';;
11970 esac
11971 ;;
11972
11973 sunos4*)
11974 lt_prog_compiler_wl='-Qoption ld '
11975 lt_prog_compiler_pic='-PIC'
11976 lt_prog_compiler_static='-Bstatic'
11977 ;;
11978
11979 sysv4 | sysv4.2uw2* | sysv4.3*)
11980 lt_prog_compiler_wl='-Wl,'
11981 lt_prog_compiler_pic='-KPIC'
11982 lt_prog_compiler_static='-Bstatic'
11983 ;;
11984
11985 sysv4*MP*)
11986 if test -d /usr/nec; then
11987 lt_prog_compiler_pic='-Kconform_pic'
11988 lt_prog_compiler_static='-Bstatic'
11989 fi
11990 ;;
11991
11992 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11993 lt_prog_compiler_wl='-Wl,'
11994 lt_prog_compiler_pic='-KPIC'
11995 lt_prog_compiler_static='-Bstatic'
11996 ;;
11997
11998 unicos*)
11999 lt_prog_compiler_wl='-Wl,'
12000 lt_prog_compiler_can_build_shared=no
12001 ;;
12002
12003 uts4*)
12004 lt_prog_compiler_pic='-pic'
12005 lt_prog_compiler_static='-Bstatic'
12006 ;;
12007
12008 *)
12009 lt_prog_compiler_can_build_shared=no
12010 ;;
12011 esac
12012 fi
12013
12014 case $host_os in
12015 # For platforms that do not support PIC, -DPIC is meaningless:
12016 *djgpp*)
12017 lt_prog_compiler_pic=
12018 ;;
12019 *)
12020 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12021 ;;
12022 esac
12023
12024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12025 printf %s "checking for $compiler option to produce PIC... " >&6; }
12026 if test ${lt_cv_prog_compiler_pic+y}
12027 then :
12028 printf %s "(cached) " >&6
12029 else $as_nop
12030 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12031 fi
12032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12033 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12034 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12035
12036 #
12037 # Check to make sure the PIC flag actually works.
12038 #
12039 if test -n "$lt_prog_compiler_pic"; then
12040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12041 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12042 if test ${lt_cv_prog_compiler_pic_works+y}
12043 then :
12044 printf %s "(cached) " >&6
12045 else $as_nop
12046 lt_cv_prog_compiler_pic_works=no
12047 ac_outfile=conftest.$ac_objext
12048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12049 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12050 # Insert the option either (1) after the last *FLAGS variable, or
12051 # (2) before a word containing "conftest.", or (3) at the end.
12052 # Note that $ac_compile itself does not contain backslashes and begins
12053 # with a dollar sign (not a hyphen), so the echo should work correctly.
12054 # The option is referenced via a variable to avoid confusing sed.
12055 lt_compile=`echo "$ac_compile" | $SED \
12056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12058 -e 's:$: $lt_compiler_flag:'`
12059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12060 (eval "$lt_compile" 2>conftest.err)
12061 ac_status=$?
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 if (exit $ac_status) && test -s "$ac_outfile"; then
12065 # The compiler can only warn and ignore the option if not recognized
12066 # So say no if there are warnings other than the usual output.
12067 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12069 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12070 lt_cv_prog_compiler_pic_works=yes
12071 fi
12072 fi
12073 $RM conftest*
12074
12075 fi
12076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12077 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12078
12079 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12080 case $lt_prog_compiler_pic in
12081 "" | " "*) ;;
12082 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12083 esac
12084 else
12085 lt_prog_compiler_pic=
12086 lt_prog_compiler_can_build_shared=no
12087 fi
12088
12089 fi
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101 #
12102 # Check to make sure the static flag actually works.
12103 #
12104 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12106 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12107 if test ${lt_cv_prog_compiler_static_works+y}
12108 then :
12109 printf %s "(cached) " >&6
12110 else $as_nop
12111 lt_cv_prog_compiler_static_works=no
12112 save_LDFLAGS=$LDFLAGS
12113 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12114 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12115 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12116 # The linker can only warn and ignore the option if not recognized
12117 # So say no if there are warnings
12118 if test -s conftest.err; then
12119 # Append any errors to the config.log.
12120 cat conftest.err 1>&5
12121 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12123 if diff conftest.exp conftest.er2 >/dev/null; then
12124 lt_cv_prog_compiler_static_works=yes
12125 fi
12126 else
12127 lt_cv_prog_compiler_static_works=yes
12128 fi
12129 fi
12130 $RM -r conftest*
12131 LDFLAGS=$save_LDFLAGS
12132
12133 fi
12134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12135 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12136
12137 if test yes = "$lt_cv_prog_compiler_static_works"; then
12138 :
12139 else
12140 lt_prog_compiler_static=
12141 fi
12142
12143
12144
12145
12146
12147
12148
12149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12150 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12151 if test ${lt_cv_prog_compiler_c_o+y}
12152 then :
12153 printf %s "(cached) " >&6
12154 else $as_nop
12155 lt_cv_prog_compiler_c_o=no
12156 $RM -r conftest 2>/dev/null
12157 mkdir conftest
12158 cd conftest
12159 mkdir out
12160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12161
12162 lt_compiler_flag="-o out/conftest2.$ac_objext"
12163 # Insert the option either (1) after the last *FLAGS variable, or
12164 # (2) before a word containing "conftest.", or (3) at the end.
12165 # Note that $ac_compile itself does not contain backslashes and begins
12166 # with a dollar sign (not a hyphen), so the echo should work correctly.
12167 lt_compile=`echo "$ac_compile" | $SED \
12168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12170 -e 's:$: $lt_compiler_flag:'`
12171 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12172 (eval "$lt_compile" 2>out/conftest.err)
12173 ac_status=$?
12174 cat out/conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12177 then
12178 # The compiler can only warn and ignore the option if not recognized
12179 # So say no if there are warnings
12180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12183 lt_cv_prog_compiler_c_o=yes
12184 fi
12185 fi
12186 chmod u+w . 2>&5
12187 $RM conftest*
12188 # SGI C++ compiler will create directory out/ii_files/ for
12189 # template instantiation
12190 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12191 $RM out/* && rmdir out
12192 cd ..
12193 $RM -r conftest
12194 $RM conftest*
12195
12196 fi
12197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12198 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12199
12200
12201
12202
12203
12204
12205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12206 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12207 if test ${lt_cv_prog_compiler_c_o+y}
12208 then :
12209 printf %s "(cached) " >&6
12210 else $as_nop
12211 lt_cv_prog_compiler_c_o=no
12212 $RM -r conftest 2>/dev/null
12213 mkdir conftest
12214 cd conftest
12215 mkdir out
12216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12217
12218 lt_compiler_flag="-o out/conftest2.$ac_objext"
12219 # Insert the option either (1) after the last *FLAGS variable, or
12220 # (2) before a word containing "conftest.", or (3) at the end.
12221 # Note that $ac_compile itself does not contain backslashes and begins
12222 # with a dollar sign (not a hyphen), so the echo should work correctly.
12223 lt_compile=`echo "$ac_compile" | $SED \
12224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12226 -e 's:$: $lt_compiler_flag:'`
12227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12228 (eval "$lt_compile" 2>out/conftest.err)
12229 ac_status=$?
12230 cat out/conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12233 then
12234 # The compiler can only warn and ignore the option if not recognized
12235 # So say no if there are warnings
12236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12237 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12238 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12239 lt_cv_prog_compiler_c_o=yes
12240 fi
12241 fi
12242 chmod u+w . 2>&5
12243 $RM conftest*
12244 # SGI C++ compiler will create directory out/ii_files/ for
12245 # template instantiation
12246 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12247 $RM out/* && rmdir out
12248 cd ..
12249 $RM -r conftest
12250 $RM conftest*
12251
12252 fi
12253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12254 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12255
12256
12257
12258
12259 hard_links=nottested
12260 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12261 # do not overwrite the value of need_locks provided by the user
12262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12263 printf %s "checking if we can lock with hard links... " >&6; }
12264 hard_links=yes
12265 $RM conftest*
12266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12267 touch conftest.a
12268 ln conftest.a conftest.b 2>&5 || hard_links=no
12269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12271 printf "%s\n" "$hard_links" >&6; }
12272 if test no = "$hard_links"; then
12273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12274 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12275 need_locks=warn
12276 fi
12277 else
12278 need_locks=no
12279 fi
12280
12281
12282
12283
12284
12285
12286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12287 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12288
12289 runpath_var=
12290 allow_undefined_flag=
12291 always_export_symbols=no
12292 archive_cmds=
12293 archive_expsym_cmds=
12294 compiler_needs_object=no
12295 enable_shared_with_static_runtimes=no
12296 export_dynamic_flag_spec=
12297 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12298 hardcode_automatic=no
12299 hardcode_direct=no
12300 hardcode_direct_absolute=no
12301 hardcode_libdir_flag_spec=
12302 hardcode_libdir_separator=
12303 hardcode_minus_L=no
12304 hardcode_shlibpath_var=unsupported
12305 inherit_rpath=no
12306 link_all_deplibs=unknown
12307 module_cmds=
12308 module_expsym_cmds=
12309 old_archive_from_new_cmds=
12310 old_archive_from_expsyms_cmds=
12311 thread_safe_flag_spec=
12312 whole_archive_flag_spec=
12313 # include_expsyms should be a list of space-separated symbols to be *always*
12314 # included in the symbol list
12315 include_expsyms=
12316 # exclude_expsyms can be an extended regexp of symbols to exclude
12317 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12318 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12319 # as well as any symbol that contains 'd'.
12320 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12321 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12322 # platforms (ab)use it in PIC code, but their linkers get confused if
12323 # the symbol is explicitly referenced. Since portable code cannot
12324 # rely on this symbol name, it's probably fine to never include it in
12325 # preloaded symbol tables.
12326 # Exclude shared library initialization/finalization symbols.
12327 extract_expsyms_cmds=
12328
12329 case $host_os in
12330 cygwin* | mingw* | pw32* | cegcc*)
12331 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12332 # When not using gcc, we currently assume that we are using
12333 # Microsoft Visual C++ or Intel C++ Compiler.
12334 if test yes != "$GCC"; then
12335 with_gnu_ld=no
12336 fi
12337 ;;
12338 interix*)
12339 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12340 with_gnu_ld=yes
12341 ;;
12342 openbsd* | bitrig*)
12343 with_gnu_ld=no
12344 ;;
12345 linux* | k*bsd*-gnu | gnu*)
12346 link_all_deplibs=no
12347 ;;
12348 esac
12349
12350 ld_shlibs=yes
12351
12352 # On some targets, GNU ld is compatible enough with the native linker
12353 # that we're better off using the native interface for both.
12354 lt_use_gnu_ld_interface=no
12355 if test yes = "$with_gnu_ld"; then
12356 case $host_os in
12357 aix*)
12358 # The AIX port of GNU ld has always aspired to compatibility
12359 # with the native linker. However, as the warning in the GNU ld
12360 # block says, versions before 2.19.5* couldn't really create working
12361 # shared libraries, regardless of the interface used.
12362 case `$LD -v 2>&1` in
12363 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12364 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12365 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12366 *)
12367 lt_use_gnu_ld_interface=yes
12368 ;;
12369 esac
12370 ;;
12371 *)
12372 lt_use_gnu_ld_interface=yes
12373 ;;
12374 esac
12375 fi
12376
12377 if test yes = "$lt_use_gnu_ld_interface"; then
12378 # If archive_cmds runs LD, not CC, wlarc should be empty
12379 wlarc='$wl'
12380
12381 # Set some defaults for GNU ld with shared library support. These
12382 # are reset later if shared libraries are not supported. Putting them
12383 # here allows them to be overridden if necessary.
12384 runpath_var=LD_RUN_PATH
12385 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12386 export_dynamic_flag_spec='$wl--export-dynamic'
12387 # ancient GNU ld didn't support --whole-archive et. al.
12388 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12389 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12390 else
12391 whole_archive_flag_spec=
12392 fi
12393 supports_anon_versioning=no
12394 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12395 *GNU\ gold*) supports_anon_versioning=yes ;;
12396 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12397 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12398 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12399 *\ 2.11.*) ;; # other 2.11 versions
12400 *) supports_anon_versioning=yes ;;
12401 esac
12402
12403 # See if GNU ld supports shared libraries.
12404 case $host_os in
12405 aix[3-9]*)
12406 # On AIX/PPC, the GNU linker is very broken
12407 if test ia64 != "$host_cpu"; then
12408 ld_shlibs=no
12409 cat <<_LT_EOF 1>&2
12410
12411 *** Warning: the GNU linker, at least up to release 2.19, is reported
12412 *** to be unable to reliably create shared libraries on AIX.
12413 *** Therefore, libtool is disabling shared libraries support. If you
12414 *** really care for shared libraries, you may want to install binutils
12415 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12416 *** You will then need to restart the configuration process.
12417
12418 _LT_EOF
12419 fi
12420 ;;
12421
12422 amigaos*)
12423 case $host_cpu in
12424 powerpc)
12425 # see comment about AmigaOS4 .so support
12426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12427 archive_expsym_cmds=''
12428 ;;
12429 m68k)
12430 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)'
12431 hardcode_libdir_flag_spec='-L$libdir'
12432 hardcode_minus_L=yes
12433 ;;
12434 esac
12435 ;;
12436
12437 beos*)
12438 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12439 allow_undefined_flag=unsupported
12440 # Joseph Beckenbach <[email protected]> says some releases of gcc
12441 # support --undefined. This deserves some investigation. FIXME
12442 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12443 else
12444 ld_shlibs=no
12445 fi
12446 ;;
12447
12448 cygwin* | mingw* | pw32* | cegcc*)
12449 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12450 # as there is no search path for DLLs.
12451 hardcode_libdir_flag_spec='-L$libdir'
12452 export_dynamic_flag_spec='$wl--export-all-symbols'
12453 allow_undefined_flag=unsupported
12454 always_export_symbols=no
12455 enable_shared_with_static_runtimes=yes
12456 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'
12457 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12458
12459 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12461 # If the export-symbols file already is a .def file, use it as
12462 # is; otherwise, prepend EXPORTS...
12463 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12464 cp $export_symbols $output_objdir/$soname.def;
12465 else
12466 echo EXPORTS > $output_objdir/$soname.def;
12467 cat $export_symbols >> $output_objdir/$soname.def;
12468 fi~
12469 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12470 else
12471 ld_shlibs=no
12472 fi
12473 ;;
12474
12475 haiku*)
12476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12477 link_all_deplibs=yes
12478 ;;
12479
12480 os2*)
12481 hardcode_libdir_flag_spec='-L$libdir'
12482 hardcode_minus_L=yes
12483 allow_undefined_flag=unsupported
12484 shrext_cmds=.dll
12485 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12486 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12487 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12488 $ECHO EXPORTS >> $output_objdir/$libname.def~
12489 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12490 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12491 emximp -o $lib $output_objdir/$libname.def'
12492 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12493 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12494 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12495 $ECHO EXPORTS >> $output_objdir/$libname.def~
12496 prefix_cmds="$SED"~
12497 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12498 prefix_cmds="$prefix_cmds -e 1d";
12499 fi~
12500 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12501 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12502 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12503 emximp -o $lib $output_objdir/$libname.def'
12504 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12505 enable_shared_with_static_runtimes=yes
12506 file_list_spec='@'
12507 ;;
12508
12509 interix[3-9]*)
12510 hardcode_direct=no
12511 hardcode_shlibpath_var=no
12512 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12513 export_dynamic_flag_spec='$wl-E'
12514 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12515 # Instead, shared libraries are loaded at an image base (0x10000000 by
12516 # default) and relocated if they conflict, which is a slow very memory
12517 # consuming and fragmenting process. To avoid this, we pick a random,
12518 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12519 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12520 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12521 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'
12522 ;;
12523
12524 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12525 tmp_diet=no
12526 if test linux-dietlibc = "$host_os"; then
12527 case $cc_basename in
12528 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12529 esac
12530 fi
12531 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12532 && test no = "$tmp_diet"
12533 then
12534 tmp_addflag=' $pic_flag'
12535 tmp_sharedflag='-shared'
12536 case $cc_basename,$host_cpu in
12537 pgcc*) # Portland Group C compiler
12538 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'
12539 tmp_addflag=' $pic_flag'
12540 ;;
12541 pgf77* | pgf90* | pgf95* | pgfortran*)
12542 # Portland Group f77 and f90 compilers
12543 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'
12544 tmp_addflag=' $pic_flag -Mnomain' ;;
12545 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12546 tmp_addflag=' -i_dynamic' ;;
12547 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12548 tmp_addflag=' -i_dynamic -nofor_main' ;;
12549 ifc* | ifort*) # Intel Fortran compiler
12550 tmp_addflag=' -nofor_main' ;;
12551 lf95*) # Lahey Fortran 8.1
12552 whole_archive_flag_spec=
12553 tmp_sharedflag='--shared' ;;
12554 nagfor*) # NAGFOR 5.3
12555 tmp_sharedflag='-Wl,-shared' ;;
12556 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12557 tmp_sharedflag='-qmkshrobj'
12558 tmp_addflag= ;;
12559 nvcc*) # Cuda Compiler Driver 2.2
12560 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'
12561 compiler_needs_object=yes
12562 ;;
12563 esac
12564 case `$CC -V 2>&1 | $SED 5q` in
12565 *Sun\ C*) # Sun C 5.9
12566 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'
12567 compiler_needs_object=yes
12568 tmp_sharedflag='-G' ;;
12569 *Sun\ F*) # Sun Fortran 8.3
12570 tmp_sharedflag='-G' ;;
12571 esac
12572 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12573
12574 if test yes = "$supports_anon_versioning"; then
12575 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12576 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12577 echo "local: *; };" >> $output_objdir/$libname.ver~
12578 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12579 fi
12580
12581 case $cc_basename in
12582 tcc*)
12583 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12584 export_dynamic_flag_spec='-rdynamic'
12585 ;;
12586 xlf* | bgf* | bgxlf* | mpixlf*)
12587 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12588 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12589 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12590 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12591 if test yes = "$supports_anon_versioning"; then
12592 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12593 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12594 echo "local: *; };" >> $output_objdir/$libname.ver~
12595 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12596 fi
12597 ;;
12598 esac
12599 else
12600 ld_shlibs=no
12601 fi
12602 ;;
12603
12604 netbsd* | netbsdelf*-gnu)
12605 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12606 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12607 wlarc=
12608 else
12609 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12610 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12611 fi
12612 ;;
12613
12614 solaris*)
12615 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12616 ld_shlibs=no
12617 cat <<_LT_EOF 1>&2
12618
12619 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12620 *** create shared libraries on Solaris systems. Therefore, libtool
12621 *** is disabling shared libraries support. We urge you to upgrade GNU
12622 *** binutils to release 2.9.1 or newer. Another option is to modify
12623 *** your PATH or compiler configuration so that the native linker is
12624 *** used, and then restart.
12625
12626 _LT_EOF
12627 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12628 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12629 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12630 else
12631 ld_shlibs=no
12632 fi
12633 ;;
12634
12635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12636 case `$LD -v 2>&1` in
12637 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12638 ld_shlibs=no
12639 cat <<_LT_EOF 1>&2
12640
12641 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12642 *** reliably create shared libraries on SCO systems. Therefore, libtool
12643 *** is disabling shared libraries support. We urge you to upgrade GNU
12644 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12645 *** your PATH or compiler configuration so that the native linker is
12646 *** used, and then restart.
12647
12648 _LT_EOF
12649 ;;
12650 *)
12651 # For security reasons, it is highly recommended that you always
12652 # use absolute paths for naming shared libraries, and exclude the
12653 # DT_RUNPATH tag from executables and libraries. But doing so
12654 # requires that you compile everything twice, which is a pain.
12655 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12656 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12658 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12659 else
12660 ld_shlibs=no
12661 fi
12662 ;;
12663 esac
12664 ;;
12665
12666 sunos4*)
12667 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12668 wlarc=
12669 hardcode_direct=yes
12670 hardcode_shlibpath_var=no
12671 ;;
12672
12673 *)
12674 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12675 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12676 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12677 else
12678 ld_shlibs=no
12679 fi
12680 ;;
12681 esac
12682
12683 if test no = "$ld_shlibs"; then
12684 runpath_var=
12685 hardcode_libdir_flag_spec=
12686 export_dynamic_flag_spec=
12687 whole_archive_flag_spec=
12688 fi
12689 else
12690 # PORTME fill in a description of your system's linker (not GNU ld)
12691 case $host_os in
12692 aix3*)
12693 allow_undefined_flag=unsupported
12694 always_export_symbols=yes
12695 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'
12696 # Note: this linker hardcodes the directories in LIBPATH if there
12697 # are no directories specified by -L.
12698 hardcode_minus_L=yes
12699 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12700 # Neither direct hardcoding nor static linking is supported with a
12701 # broken collect2.
12702 hardcode_direct=unsupported
12703 fi
12704 ;;
12705
12706 aix[4-9]*)
12707 if test ia64 = "$host_cpu"; then
12708 # On IA64, the linker does run time linking by default, so we don't
12709 # have to do anything special.
12710 aix_use_runtimelinking=no
12711 exp_sym_flag='-Bexport'
12712 no_entry_flag=
12713 else
12714 # If we're using GNU nm, then we don't want the "-C" option.
12715 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12716 # Without the "-l" option, or with the "-B" option, AIX nm treats
12717 # weak defined symbols like other global defined symbols, whereas
12718 # GNU nm marks them as "W".
12719 # While the 'weak' keyword is ignored in the Export File, we need
12720 # it in the Import File for the 'aix-soname' feature, so we have
12721 # to replace the "-B" option with "-P" for AIX nm.
12722 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12723 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'
12724 else
12725 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'
12726 fi
12727 aix_use_runtimelinking=no
12728
12729 # Test if we are trying to use run time linking or normal
12730 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12731 # have runtime linking enabled, and use it for executables.
12732 # For shared libraries, we enable/disable runtime linking
12733 # depending on the kind of the shared library created -
12734 # when "with_aix_soname,aix_use_runtimelinking" is:
12735 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12736 # "aix,yes" lib.so shared, rtl:yes, for executables
12737 # lib.a static archive
12738 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12739 # lib.a(lib.so.V) shared, rtl:no, for executables
12740 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12741 # lib.a(lib.so.V) shared, rtl:no
12742 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12743 # lib.a static archive
12744 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12745 for ld_flag in $LDFLAGS; do
12746 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12747 aix_use_runtimelinking=yes
12748 break
12749 fi
12750 done
12751 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12752 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12753 # so we don't have lib.a shared libs to link our executables.
12754 # We have to force runtime linking in this case.
12755 aix_use_runtimelinking=yes
12756 LDFLAGS="$LDFLAGS -Wl,-brtl"
12757 fi
12758 ;;
12759 esac
12760
12761 exp_sym_flag='-bexport'
12762 no_entry_flag='-bnoentry'
12763 fi
12764
12765 # When large executables or shared objects are built, AIX ld can
12766 # have problems creating the table of contents. If linking a library
12767 # or program results in "error TOC overflow" add -mminimal-toc to
12768 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12769 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12770
12771 archive_cmds=''
12772 hardcode_direct=yes
12773 hardcode_direct_absolute=yes
12774 hardcode_libdir_separator=':'
12775 link_all_deplibs=yes
12776 file_list_spec='$wl-f,'
12777 case $with_aix_soname,$aix_use_runtimelinking in
12778 aix,*) ;; # traditional, no import file
12779 svr4,* | *,yes) # use import file
12780 # The Import File defines what to hardcode.
12781 hardcode_direct=no
12782 hardcode_direct_absolute=no
12783 ;;
12784 esac
12785
12786 if test yes = "$GCC"; then
12787 case $host_os in aix4.[012]|aix4.[012].*)
12788 # We only want to do this on AIX 4.2 and lower, the check
12789 # below for broken collect2 doesn't work under 4.3+
12790 collect2name=`$CC -print-prog-name=collect2`
12791 if test -f "$collect2name" &&
12792 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12793 then
12794 # We have reworked collect2
12795 :
12796 else
12797 # We have old collect2
12798 hardcode_direct=unsupported
12799 # It fails to find uninstalled libraries when the uninstalled
12800 # path is not listed in the libpath. Setting hardcode_minus_L
12801 # to unsupported forces relinking
12802 hardcode_minus_L=yes
12803 hardcode_libdir_flag_spec='-L$libdir'
12804 hardcode_libdir_separator=
12805 fi
12806 ;;
12807 esac
12808 shared_flag='-shared'
12809 if test yes = "$aix_use_runtimelinking"; then
12810 shared_flag="$shared_flag "'$wl-G'
12811 fi
12812 # Need to ensure runtime linking is disabled for the traditional
12813 # shared library, or the linker may eventually find shared libraries
12814 # /with/ Import File - we do not want to mix them.
12815 shared_flag_aix='-shared'
12816 shared_flag_svr4='-shared $wl-G'
12817 else
12818 # not using gcc
12819 if test ia64 = "$host_cpu"; then
12820 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12821 # chokes on -Wl,-G. The following line is correct:
12822 shared_flag='-G'
12823 else
12824 if test yes = "$aix_use_runtimelinking"; then
12825 shared_flag='$wl-G'
12826 else
12827 shared_flag='$wl-bM:SRE'
12828 fi
12829 shared_flag_aix='$wl-bM:SRE'
12830 shared_flag_svr4='$wl-G'
12831 fi
12832 fi
12833
12834 export_dynamic_flag_spec='$wl-bexpall'
12835 # It seems that -bexpall does not export symbols beginning with
12836 # underscore (_), so it is better to generate a list of symbols to export.
12837 always_export_symbols=yes
12838 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12839 # Warning - without using the other runtime loading flags (-brtl),
12840 # -berok will link without error, but may produce a broken library.
12841 allow_undefined_flag='-berok'
12842 # Determine the default libpath from the value encoded in an
12843 # empty executable.
12844 if test set = "${lt_cv_aix_libpath+set}"; then
12845 aix_libpath=$lt_cv_aix_libpath
12846 else
12847 if test ${lt_cv_aix_libpath_+y}
12848 then :
12849 printf %s "(cached) " >&6
12850 else $as_nop
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12853
12854 int
12855 main (void)
12856 {
12857
12858 ;
12859 return 0;
12860 }
12861 _ACEOF
12862 if ac_fn_c_try_link "$LINENO"
12863 then :
12864
12865 lt_aix_libpath_sed='
12866 /Import File Strings/,/^$/ {
12867 /^0/ {
12868 s/^0 *\([^ ]*\) *$/\1/
12869 p
12870 }
12871 }'
12872 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12873 # Check for a 64-bit object if we didn't find anything.
12874 if test -z "$lt_cv_aix_libpath_"; then
12875 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12876 fi
12877 fi
12878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12879 conftest$ac_exeext conftest.$ac_ext
12880 if test -z "$lt_cv_aix_libpath_"; then
12881 lt_cv_aix_libpath_=/usr/lib:/lib
12882 fi
12883
12884 fi
12885
12886 aix_libpath=$lt_cv_aix_libpath_
12887 fi
12888
12889 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12890 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
12891 else
12892 if test ia64 = "$host_cpu"; then
12893 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12894 allow_undefined_flag="-z nodefs"
12895 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"
12896 else
12897 # Determine the default libpath from the value encoded in an
12898 # empty executable.
12899 if test set = "${lt_cv_aix_libpath+set}"; then
12900 aix_libpath=$lt_cv_aix_libpath
12901 else
12902 if test ${lt_cv_aix_libpath_+y}
12903 then :
12904 printf %s "(cached) " >&6
12905 else $as_nop
12906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h. */
12908
12909 int
12910 main (void)
12911 {
12912
12913 ;
12914 return 0;
12915 }
12916 _ACEOF
12917 if ac_fn_c_try_link "$LINENO"
12918 then :
12919
12920 lt_aix_libpath_sed='
12921 /Import File Strings/,/^$/ {
12922 /^0/ {
12923 s/^0 *\([^ ]*\) *$/\1/
12924 p
12925 }
12926 }'
12927 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12928 # Check for a 64-bit object if we didn't find anything.
12929 if test -z "$lt_cv_aix_libpath_"; then
12930 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12931 fi
12932 fi
12933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12934 conftest$ac_exeext conftest.$ac_ext
12935 if test -z "$lt_cv_aix_libpath_"; then
12936 lt_cv_aix_libpath_=/usr/lib:/lib
12937 fi
12938
12939 fi
12940
12941 aix_libpath=$lt_cv_aix_libpath_
12942 fi
12943
12944 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12945 # Warning - without using the other run time loading flags,
12946 # -berok will link without error, but may produce a broken library.
12947 no_undefined_flag=' $wl-bernotok'
12948 allow_undefined_flag=' $wl-berok'
12949 if test yes = "$with_gnu_ld"; then
12950 # We only use this code for GNU lds that support --whole-archive.
12951 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12952 else
12953 # Exported symbols can be pulled into shared objects from archives
12954 whole_archive_flag_spec='$convenience'
12955 fi
12956 archive_cmds_need_lc=yes
12957 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12958 # -brtl affects multiple linker settings, -berok does not and is overridden later
12959 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12960 if test svr4 != "$with_aix_soname"; then
12961 # This is similar to how AIX traditionally builds its shared libraries.
12962 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'
12963 fi
12964 if test aix != "$with_aix_soname"; then
12965 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'
12966 else
12967 # used by -dlpreopen to get the symbols
12968 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12969 fi
12970 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12971 fi
12972 fi
12973 ;;
12974
12975 amigaos*)
12976 case $host_cpu in
12977 powerpc)
12978 # see comment about AmigaOS4 .so support
12979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12980 archive_expsym_cmds=''
12981 ;;
12982 m68k)
12983 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)'
12984 hardcode_libdir_flag_spec='-L$libdir'
12985 hardcode_minus_L=yes
12986 ;;
12987 esac
12988 ;;
12989
12990 bsdi[45]*)
12991 export_dynamic_flag_spec=-rdynamic
12992 ;;
12993
12994 cygwin* | mingw* | pw32* | cegcc*)
12995 # When not using gcc, we currently assume that we are using
12996 # Microsoft Visual C++ or Intel C++ Compiler.
12997 # hardcode_libdir_flag_spec is actually meaningless, as there is
12998 # no search path for DLLs.
12999 case $cc_basename in
13000 cl* | icl*)
13001 # Native MSVC or ICC
13002 hardcode_libdir_flag_spec=' '
13003 allow_undefined_flag=unsupported
13004 always_export_symbols=yes
13005 file_list_spec='@'
13006 # Tell ltmain to make .lib files, not .a files.
13007 libext=lib
13008 # Tell ltmain to make .dll files, not .so files.
13009 shrext_cmds=.dll
13010 # FIXME: Setting linknames here is a bad hack.
13011 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13012 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13013 cp "$export_symbols" "$output_objdir/$soname.def";
13014 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13015 else
13016 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13017 fi~
13018 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13019 linknames='
13020 # The linker will not automatically build a static lib if we build a DLL.
13021 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13022 enable_shared_with_static_runtimes=yes
13023 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13024 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13025 # Don't use ranlib
13026 old_postinstall_cmds='chmod 644 $oldlib'
13027 postlink_cmds='lt_outputfile="@OUTPUT@"~
13028 lt_tool_outputfile="@TOOL_OUTPUT@"~
13029 case $lt_outputfile in
13030 *.exe|*.EXE) ;;
13031 *)
13032 lt_outputfile=$lt_outputfile.exe
13033 lt_tool_outputfile=$lt_tool_outputfile.exe
13034 ;;
13035 esac~
13036 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13037 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13038 $RM "$lt_outputfile.manifest";
13039 fi'
13040 ;;
13041 *)
13042 # Assume MSVC and ICC wrapper
13043 hardcode_libdir_flag_spec=' '
13044 allow_undefined_flag=unsupported
13045 # Tell ltmain to make .lib files, not .a files.
13046 libext=lib
13047 # Tell ltmain to make .dll files, not .so files.
13048 shrext_cmds=.dll
13049 # FIXME: Setting linknames here is a bad hack.
13050 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13051 # The linker will automatically build a .lib file if we build a DLL.
13052 old_archive_from_new_cmds='true'
13053 # FIXME: Should let the user specify the lib program.
13054 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13055 enable_shared_with_static_runtimes=yes
13056 ;;
13057 esac
13058 ;;
13059
13060 darwin* | rhapsody*)
13061
13062
13063 archive_cmds_need_lc=no
13064 hardcode_direct=no
13065 hardcode_automatic=yes
13066 hardcode_shlibpath_var=unsupported
13067 if test yes = "$lt_cv_ld_force_load"; then
13068 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\"`'
13069
13070 else
13071 whole_archive_flag_spec=''
13072 fi
13073 link_all_deplibs=yes
13074 allow_undefined_flag=$_lt_dar_allow_undefined
13075 case $cc_basename in
13076 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13077 *) _lt_dar_can_shared=$GCC ;;
13078 esac
13079 if test yes = "$_lt_dar_can_shared"; then
13080 output_verbose_link_cmd=func_echo_all
13081 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13082 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13083 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"
13084 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"
13085
13086 else
13087 ld_shlibs=no
13088 fi
13089
13090 ;;
13091
13092 dgux*)
13093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13094 hardcode_libdir_flag_spec='-L$libdir'
13095 hardcode_shlibpath_var=no
13096 ;;
13097
13098 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13099 # support. Future versions do this automatically, but an explicit c++rt0.o
13100 # does not break anything, and helps significantly (at the cost of a little
13101 # extra space).
13102 freebsd2.2*)
13103 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13104 hardcode_libdir_flag_spec='-R$libdir'
13105 hardcode_direct=yes
13106 hardcode_shlibpath_var=no
13107 ;;
13108
13109 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13110 freebsd2.*)
13111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13112 hardcode_direct=yes
13113 hardcode_minus_L=yes
13114 hardcode_shlibpath_var=no
13115 ;;
13116
13117 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13118 freebsd* | dragonfly* | midnightbsd*)
13119 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13120 hardcode_libdir_flag_spec='-R$libdir'
13121 hardcode_direct=yes
13122 hardcode_shlibpath_var=no
13123 ;;
13124
13125 hpux9*)
13126 if test yes = "$GCC"; then
13127 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'
13128 else
13129 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'
13130 fi
13131 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13132 hardcode_libdir_separator=:
13133 hardcode_direct=yes
13134
13135 # hardcode_minus_L: Not really in the search PATH,
13136 # but as the default location of the library.
13137 hardcode_minus_L=yes
13138 export_dynamic_flag_spec='$wl-E'
13139 ;;
13140
13141 hpux10*)
13142 if test yes,no = "$GCC,$with_gnu_ld"; then
13143 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13144 else
13145 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13146 fi
13147 if test no = "$with_gnu_ld"; then
13148 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13149 hardcode_libdir_separator=:
13150 hardcode_direct=yes
13151 hardcode_direct_absolute=yes
13152 export_dynamic_flag_spec='$wl-E'
13153 # hardcode_minus_L: Not really in the search PATH,
13154 # but as the default location of the library.
13155 hardcode_minus_L=yes
13156 fi
13157 ;;
13158
13159 hpux11*)
13160 if test yes,no = "$GCC,$with_gnu_ld"; then
13161 case $host_cpu in
13162 hppa*64*)
13163 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13164 ;;
13165 ia64*)
13166 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13167 ;;
13168 *)
13169 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13170 ;;
13171 esac
13172 else
13173 case $host_cpu in
13174 hppa*64*)
13175 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13176 ;;
13177 ia64*)
13178 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13179 ;;
13180 *)
13181
13182 # Older versions of the 11.00 compiler do not understand -b yet
13183 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13185 printf %s "checking if $CC understands -b... " >&6; }
13186 if test ${lt_cv_prog_compiler__b+y}
13187 then :
13188 printf %s "(cached) " >&6
13189 else $as_nop
13190 lt_cv_prog_compiler__b=no
13191 save_LDFLAGS=$LDFLAGS
13192 LDFLAGS="$LDFLAGS -b"
13193 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13195 # The linker can only warn and ignore the option if not recognized
13196 # So say no if there are warnings
13197 if test -s conftest.err; then
13198 # Append any errors to the config.log.
13199 cat conftest.err 1>&5
13200 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13202 if diff conftest.exp conftest.er2 >/dev/null; then
13203 lt_cv_prog_compiler__b=yes
13204 fi
13205 else
13206 lt_cv_prog_compiler__b=yes
13207 fi
13208 fi
13209 $RM -r conftest*
13210 LDFLAGS=$save_LDFLAGS
13211
13212 fi
13213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13214 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13215
13216 if test yes = "$lt_cv_prog_compiler__b"; then
13217 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13218 else
13219 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13220 fi
13221
13222 ;;
13223 esac
13224 fi
13225 if test no = "$with_gnu_ld"; then
13226 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13227 hardcode_libdir_separator=:
13228
13229 case $host_cpu in
13230 hppa*64*|ia64*)
13231 hardcode_direct=no
13232 hardcode_shlibpath_var=no
13233 ;;
13234 *)
13235 hardcode_direct=yes
13236 hardcode_direct_absolute=yes
13237 export_dynamic_flag_spec='$wl-E'
13238
13239 # hardcode_minus_L: Not really in the search PATH,
13240 # but as the default location of the library.
13241 hardcode_minus_L=yes
13242 ;;
13243 esac
13244 fi
13245 ;;
13246
13247 irix5* | irix6* | nonstopux*)
13248 if test yes = "$GCC"; then
13249 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'
13250 # Try to use the -exported_symbol ld option, if it does not
13251 # work, assume that -exports_file does not work either and
13252 # implicitly export all symbols.
13253 # This should be the same for all languages, so no per-tag cache variable.
13254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13255 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13256 if test ${lt_cv_irix_exported_symbol+y}
13257 then :
13258 printf %s "(cached) " >&6
13259 else $as_nop
13260 save_LDFLAGS=$LDFLAGS
13261 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264 int foo (void) { return 0; }
13265 _ACEOF
13266 if ac_fn_c_try_link "$LINENO"
13267 then :
13268 lt_cv_irix_exported_symbol=yes
13269 else $as_nop
13270 lt_cv_irix_exported_symbol=no
13271 fi
13272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13273 conftest$ac_exeext conftest.$ac_ext
13274 LDFLAGS=$save_LDFLAGS
13275 fi
13276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13277 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13278 if test yes = "$lt_cv_irix_exported_symbol"; then
13279 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'
13280 fi
13281 link_all_deplibs=no
13282 else
13283 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'
13284 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'
13285 fi
13286 archive_cmds_need_lc='no'
13287 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13288 hardcode_libdir_separator=:
13289 inherit_rpath=yes
13290 link_all_deplibs=yes
13291 ;;
13292
13293 linux*)
13294 case $cc_basename in
13295 tcc*)
13296 # Fabrice Bellard et al's Tiny C Compiler
13297 ld_shlibs=yes
13298 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13299 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13300 ;;
13301 esac
13302 ;;
13303
13304 netbsd* | netbsdelf*-gnu)
13305 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13307 else
13308 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13309 fi
13310 hardcode_libdir_flag_spec='-R$libdir'
13311 hardcode_direct=yes
13312 hardcode_shlibpath_var=no
13313 ;;
13314
13315 newsos6)
13316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13317 hardcode_direct=yes
13318 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13319 hardcode_libdir_separator=:
13320 hardcode_shlibpath_var=no
13321 ;;
13322
13323 *nto* | *qnx*)
13324 ;;
13325
13326 openbsd* | bitrig*)
13327 if test -f /usr/libexec/ld.so; then
13328 hardcode_direct=yes
13329 hardcode_shlibpath_var=no
13330 hardcode_direct_absolute=yes
13331 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13332 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13333 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13334 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13335 export_dynamic_flag_spec='$wl-E'
13336 else
13337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13338 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13339 fi
13340 else
13341 ld_shlibs=no
13342 fi
13343 ;;
13344
13345 os2*)
13346 hardcode_libdir_flag_spec='-L$libdir'
13347 hardcode_minus_L=yes
13348 allow_undefined_flag=unsupported
13349 shrext_cmds=.dll
13350 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13351 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13352 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13353 $ECHO EXPORTS >> $output_objdir/$libname.def~
13354 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13355 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13356 emximp -o $lib $output_objdir/$libname.def'
13357 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13358 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13359 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13360 $ECHO EXPORTS >> $output_objdir/$libname.def~
13361 prefix_cmds="$SED"~
13362 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13363 prefix_cmds="$prefix_cmds -e 1d";
13364 fi~
13365 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13366 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13367 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13368 emximp -o $lib $output_objdir/$libname.def'
13369 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13370 enable_shared_with_static_runtimes=yes
13371 file_list_spec='@'
13372 ;;
13373
13374 osf3*)
13375 if test yes = "$GCC"; then
13376 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13377 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'
13378 else
13379 allow_undefined_flag=' -expect_unresolved \*'
13380 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'
13381 fi
13382 archive_cmds_need_lc='no'
13383 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13384 hardcode_libdir_separator=:
13385 ;;
13386
13387 osf4* | osf5*) # as osf3* with the addition of -msym flag
13388 if test yes = "$GCC"; then
13389 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13390 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'
13391 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13392 else
13393 allow_undefined_flag=' -expect_unresolved \*'
13394 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'
13395 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~
13396 $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'
13397
13398 # Both c and cxx compiler support -rpath directly
13399 hardcode_libdir_flag_spec='-rpath $libdir'
13400 fi
13401 archive_cmds_need_lc='no'
13402 hardcode_libdir_separator=:
13403 ;;
13404
13405 solaris*)
13406 no_undefined_flag=' -z defs'
13407 if test yes = "$GCC"; then
13408 wlarc='$wl'
13409 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13410 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13411 $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'
13412 else
13413 case `$CC -V 2>&1` in
13414 *"Compilers 5.0"*)
13415 wlarc=''
13416 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13417 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13418 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13419 ;;
13420 *)
13421 wlarc='$wl'
13422 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13423 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13424 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13425 ;;
13426 esac
13427 fi
13428 hardcode_libdir_flag_spec='-R$libdir'
13429 hardcode_shlibpath_var=no
13430 case $host_os in
13431 solaris2.[0-5] | solaris2.[0-5].*) ;;
13432 *)
13433 # The compiler driver will combine and reorder linker options,
13434 # but understands '-z linker_flag'. GCC discards it without '$wl',
13435 # but is careful enough not to reorder.
13436 # Supported since Solaris 2.6 (maybe 2.5.1?)
13437 if test yes = "$GCC"; then
13438 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13439 else
13440 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13441 fi
13442 ;;
13443 esac
13444 link_all_deplibs=yes
13445 ;;
13446
13447 sunos4*)
13448 if test sequent = "$host_vendor"; then
13449 # Use $CC to link under sequent, because it throws in some extra .o
13450 # files that make .init and .fini sections work.
13451 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13452 else
13453 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13454 fi
13455 hardcode_libdir_flag_spec='-L$libdir'
13456 hardcode_direct=yes
13457 hardcode_minus_L=yes
13458 hardcode_shlibpath_var=no
13459 ;;
13460
13461 sysv4)
13462 case $host_vendor in
13463 sni)
13464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13465 hardcode_direct=yes # is this really true???
13466 ;;
13467 siemens)
13468 ## LD is ld it makes a PLAMLIB
13469 ## CC just makes a GrossModule.
13470 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13471 reload_cmds='$CC -r -o $output$reload_objs'
13472 hardcode_direct=no
13473 ;;
13474 motorola)
13475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13477 ;;
13478 esac
13479 runpath_var='LD_RUN_PATH'
13480 hardcode_shlibpath_var=no
13481 ;;
13482
13483 sysv4.3*)
13484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13485 hardcode_shlibpath_var=no
13486 export_dynamic_flag_spec='-Bexport'
13487 ;;
13488
13489 sysv4*MP*)
13490 if test -d /usr/nec; then
13491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13492 hardcode_shlibpath_var=no
13493 runpath_var=LD_RUN_PATH
13494 hardcode_runpath_var=yes
13495 ld_shlibs=yes
13496 fi
13497 ;;
13498
13499 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13500 no_undefined_flag='$wl-z,text'
13501 archive_cmds_need_lc=no
13502 hardcode_shlibpath_var=no
13503 runpath_var='LD_RUN_PATH'
13504
13505 if test yes = "$GCC"; then
13506 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13507 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13508 else
13509 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13510 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13511 fi
13512 ;;
13513
13514 sysv5* | sco3.2v5* | sco5v6*)
13515 # Note: We CANNOT use -z defs as we might desire, because we do not
13516 # link with -lc, and that would cause any symbols used from libc to
13517 # always be unresolved, which means just about no library would
13518 # ever link correctly. If we're not using GNU ld we use -z text
13519 # though, which does catch some bad symbols but isn't as heavy-handed
13520 # as -z defs.
13521 no_undefined_flag='$wl-z,text'
13522 allow_undefined_flag='$wl-z,nodefs'
13523 archive_cmds_need_lc=no
13524 hardcode_shlibpath_var=no
13525 hardcode_libdir_flag_spec='$wl-R,$libdir'
13526 hardcode_libdir_separator=':'
13527 link_all_deplibs=yes
13528 export_dynamic_flag_spec='$wl-Bexport'
13529 runpath_var='LD_RUN_PATH'
13530
13531 if test yes = "$GCC"; then
13532 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13533 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13534 else
13535 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13536 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13537 fi
13538 ;;
13539
13540 uts4*)
13541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13542 hardcode_libdir_flag_spec='-L$libdir'
13543 hardcode_shlibpath_var=no
13544 ;;
13545
13546 *)
13547 ld_shlibs=no
13548 ;;
13549 esac
13550
13551 if test sni = "$host_vendor"; then
13552 case $host in
13553 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13554 export_dynamic_flag_spec='$wl-Blargedynsym'
13555 ;;
13556 esac
13557 fi
13558 fi
13559
13560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13561 printf "%s\n" "$ld_shlibs" >&6; }
13562 test no = "$ld_shlibs" && can_build_shared=no
13563
13564 with_gnu_ld=$with_gnu_ld
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580 #
13581 # Do we need to explicitly link libc?
13582 #
13583 case "x$archive_cmds_need_lc" in
13584 x|xyes)
13585 # Assume -lc should be added
13586 archive_cmds_need_lc=yes
13587
13588 if test yes,yes = "$GCC,$enable_shared"; then
13589 case $archive_cmds in
13590 *'~'*)
13591 # FIXME: we may have to deal with multi-command sequences.
13592 ;;
13593 '$CC '*)
13594 # Test whether the compiler implicitly links with -lc since on some
13595 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13596 # to ld, don't add -lc before -lgcc.
13597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13598 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13599 if test ${lt_cv_archive_cmds_need_lc+y}
13600 then :
13601 printf %s "(cached) " >&6
13602 else $as_nop
13603 $RM conftest*
13604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13605
13606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13607 (eval $ac_compile) 2>&5
13608 ac_status=$?
13609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13610 test $ac_status = 0; } 2>conftest.err; then
13611 soname=conftest
13612 lib=conftest
13613 libobjs=conftest.$ac_objext
13614 deplibs=
13615 wl=$lt_prog_compiler_wl
13616 pic_flag=$lt_prog_compiler_pic
13617 compiler_flags=-v
13618 linker_flags=-v
13619 verstring=
13620 output_objdir=.
13621 libname=conftest
13622 lt_save_allow_undefined_flag=$allow_undefined_flag
13623 allow_undefined_flag=
13624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13625 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13626 ac_status=$?
13627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13628 test $ac_status = 0; }
13629 then
13630 lt_cv_archive_cmds_need_lc=no
13631 else
13632 lt_cv_archive_cmds_need_lc=yes
13633 fi
13634 allow_undefined_flag=$lt_save_allow_undefined_flag
13635 else
13636 cat conftest.err 1>&5
13637 fi
13638 $RM conftest*
13639
13640 fi
13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13642 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13643 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13644 ;;
13645 esac
13646 fi
13647 ;;
13648 esac
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13802 printf %s "checking dynamic linker characteristics... " >&6; }
13803
13804 if test yes = "$GCC"; then
13805 case $host_os in
13806 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13807 *) lt_awk_arg='/^libraries:/' ;;
13808 esac
13809 case $host_os in
13810 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13811 *) lt_sed_strip_eq='s|=/|/|g' ;;
13812 esac
13813 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13814 case $lt_search_path_spec in
13815 *\;*)
13816 # if the path contains ";" then we assume it to be the separator
13817 # otherwise default to the standard path separator (i.e. ":") - it is
13818 # assumed that no part of a normal pathname contains ";" but that should
13819 # okay in the real world where ";" in dirpaths is itself problematic.
13820 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13821 ;;
13822 *)
13823 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13824 ;;
13825 esac
13826 # Ok, now we have the path, separated by spaces, we can step through it
13827 # and add multilib dir if necessary...
13828 lt_tmp_lt_search_path_spec=
13829 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13830 # ...but if some path component already ends with the multilib dir we assume
13831 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13832 case "$lt_multi_os_dir; $lt_search_path_spec " in
13833 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13834 lt_multi_os_dir=
13835 ;;
13836 esac
13837 for lt_sys_path in $lt_search_path_spec; do
13838 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13839 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13840 elif test -n "$lt_multi_os_dir"; then
13841 test -d "$lt_sys_path" && \
13842 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13843 fi
13844 done
13845 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13846 BEGIN {RS = " "; FS = "/|\n";} {
13847 lt_foo = "";
13848 lt_count = 0;
13849 for (lt_i = NF; lt_i > 0; lt_i--) {
13850 if ($lt_i != "" && $lt_i != ".") {
13851 if ($lt_i == "..") {
13852 lt_count++;
13853 } else {
13854 if (lt_count == 0) {
13855 lt_foo = "/" $lt_i lt_foo;
13856 } else {
13857 lt_count--;
13858 }
13859 }
13860 }
13861 }
13862 if (lt_foo != "") { lt_freq[lt_foo]++; }
13863 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13864 }'`
13865 # AWK program above erroneously prepends '/' to C:/dos/paths
13866 # for these hosts.
13867 case $host_os in
13868 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13869 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13870 esac
13871 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13872 else
13873 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13874 fi
13875 library_names_spec=
13876 libname_spec='lib$name'
13877 soname_spec=
13878 shrext_cmds=.so
13879 postinstall_cmds=
13880 postuninstall_cmds=
13881 finish_cmds=
13882 finish_eval=
13883 shlibpath_var=
13884 shlibpath_overrides_runpath=unknown
13885 version_type=none
13886 dynamic_linker="$host_os ld.so"
13887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13888 need_lib_prefix=unknown
13889 hardcode_into_libs=no
13890
13891 # when you set need_version to no, make sure it does not cause -set_version
13892 # flags to be left without arguments
13893 need_version=unknown
13894
13895
13896
13897 case $host_os in
13898 aix3*)
13899 version_type=linux # correct to gnu/linux during the next big refactor
13900 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13901 shlibpath_var=LIBPATH
13902
13903 # AIX 3 has no versioning support, so we append a major version to the name.
13904 soname_spec='$libname$release$shared_ext$major'
13905 ;;
13906
13907 aix[4-9]*)
13908 version_type=linux # correct to gnu/linux during the next big refactor
13909 need_lib_prefix=no
13910 need_version=no
13911 hardcode_into_libs=yes
13912 if test ia64 = "$host_cpu"; then
13913 # AIX 5 supports IA64
13914 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13915 shlibpath_var=LD_LIBRARY_PATH
13916 else
13917 # With GCC up to 2.95.x, collect2 would create an import file
13918 # for dependence libraries. The import file would start with
13919 # the line '#! .'. This would cause the generated library to
13920 # depend on '.', always an invalid library. This was fixed in
13921 # development snapshots of GCC prior to 3.0.
13922 case $host_os in
13923 aix4 | aix4.[01] | aix4.[01].*)
13924 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13925 echo ' yes '
13926 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13927 :
13928 else
13929 can_build_shared=no
13930 fi
13931 ;;
13932 esac
13933 # Using Import Files as archive members, it is possible to support
13934 # filename-based versioning of shared library archives on AIX. While
13935 # this would work for both with and without runtime linking, it will
13936 # prevent static linking of such archives. So we do filename-based
13937 # shared library versioning with .so extension only, which is used
13938 # when both runtime linking and shared linking is enabled.
13939 # Unfortunately, runtime linking may impact performance, so we do
13940 # not want this to be the default eventually. Also, we use the
13941 # versioned .so libs for executables only if there is the -brtl
13942 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13943 # To allow for filename-based versioning support, we need to create
13944 # libNAME.so.V as an archive file, containing:
13945 # *) an Import File, referring to the versioned filename of the
13946 # archive as well as the shared archive member, telling the
13947 # bitwidth (32 or 64) of that shared object, and providing the
13948 # list of exported symbols of that shared object, eventually
13949 # decorated with the 'weak' keyword
13950 # *) the shared object with the F_LOADONLY flag set, to really avoid
13951 # it being seen by the linker.
13952 # At run time we better use the real file rather than another symlink,
13953 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13954
13955 case $with_aix_soname,$aix_use_runtimelinking in
13956 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13957 # soname into executable. Probably we can add versioning support to
13958 # collect2, so additional links can be useful in future.
13959 aix,yes) # traditional libtool
13960 dynamic_linker='AIX unversionable lib.so'
13961 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13962 # instead of lib<name>.a to let people know that these are not
13963 # typical AIX shared libraries.
13964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13965 ;;
13966 aix,no) # traditional AIX only
13967 dynamic_linker='AIX lib.a(lib.so.V)'
13968 # We preserve .a as extension for shared libraries through AIX4.2
13969 # and later when we are not doing run time linking.
13970 library_names_spec='$libname$release.a $libname.a'
13971 soname_spec='$libname$release$shared_ext$major'
13972 ;;
13973 svr4,*) # full svr4 only
13974 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13975 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13976 # We do not specify a path in Import Files, so LIBPATH fires.
13977 shlibpath_overrides_runpath=yes
13978 ;;
13979 *,yes) # both, prefer svr4
13980 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13981 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13982 # unpreferred sharedlib libNAME.a needs extra handling
13983 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"'
13984 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"'
13985 # We do not specify a path in Import Files, so LIBPATH fires.
13986 shlibpath_overrides_runpath=yes
13987 ;;
13988 *,no) # both, prefer aix
13989 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13990 library_names_spec='$libname$release.a $libname.a'
13991 soname_spec='$libname$release$shared_ext$major'
13992 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13993 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)'
13994 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"'
13995 ;;
13996 esac
13997 shlibpath_var=LIBPATH
13998 fi
13999 ;;
14000
14001 amigaos*)
14002 case $host_cpu in
14003 powerpc)
14004 # Since July 2007 AmigaOS4 officially supports .so libraries.
14005 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14007 ;;
14008 m68k)
14009 library_names_spec='$libname.ixlibrary $libname.a'
14010 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14011 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'
14012 ;;
14013 esac
14014 ;;
14015
14016 beos*)
14017 library_names_spec='$libname$shared_ext'
14018 dynamic_linker="$host_os ld.so"
14019 shlibpath_var=LIBRARY_PATH
14020 ;;
14021
14022 bsdi[45]*)
14023 version_type=linux # correct to gnu/linux during the next big refactor
14024 need_version=no
14025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14026 soname_spec='$libname$release$shared_ext$major'
14027 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14028 shlibpath_var=LD_LIBRARY_PATH
14029 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14030 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14031 # the default ld.so.conf also contains /usr/contrib/lib and
14032 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14033 # libtool to hard-code these into programs
14034 ;;
14035
14036 cygwin* | mingw* | pw32* | cegcc*)
14037 version_type=windows
14038 shrext_cmds=.dll
14039 need_version=no
14040 need_lib_prefix=no
14041
14042 case $GCC,$cc_basename in
14043 yes,*)
14044 # gcc
14045 library_names_spec='$libname.dll.a'
14046 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14047 postinstall_cmds='base_file=`basename \$file`~
14048 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14049 dldir=$destdir/`dirname \$dlpath`~
14050 test -d \$dldir || mkdir -p \$dldir~
14051 $install_prog $dir/$dlname \$dldir/$dlname~
14052 chmod a+x \$dldir/$dlname~
14053 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14054 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14055 fi'
14056 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14057 dlpath=$dir/\$dldll~
14058 $RM \$dlpath'
14059 shlibpath_overrides_runpath=yes
14060
14061 case $host_os in
14062 cygwin*)
14063 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14064 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14065
14066 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14067 ;;
14068 mingw* | cegcc*)
14069 # MinGW DLLs use traditional 'lib' prefix
14070 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14071 ;;
14072 pw32*)
14073 # pw32 DLLs use 'pw' prefix rather than 'lib'
14074 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14075 ;;
14076 esac
14077 dynamic_linker='Win32 ld.exe'
14078 ;;
14079
14080 *,cl* | *,icl*)
14081 # Native MSVC or ICC
14082 libname_spec='$name'
14083 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14084 library_names_spec='$libname.dll.lib'
14085
14086 case $build_os in
14087 mingw*)
14088 sys_lib_search_path_spec=
14089 lt_save_ifs=$IFS
14090 IFS=';'
14091 for lt_path in $LIB
14092 do
14093 IFS=$lt_save_ifs
14094 # Let DOS variable expansion print the short 8.3 style file name.
14095 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14096 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14097 done
14098 IFS=$lt_save_ifs
14099 # Convert to MSYS style.
14100 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14101 ;;
14102 cygwin*)
14103 # Convert to unix form, then to dos form, then back to unix form
14104 # but this time dos style (no spaces!) so that the unix form looks
14105 # like /cygdrive/c/PROGRA~1:/cygdr...
14106 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14107 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14108 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14109 ;;
14110 *)
14111 sys_lib_search_path_spec=$LIB
14112 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14113 # It is most probably a Windows format PATH.
14114 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14115 else
14116 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14117 fi
14118 # FIXME: find the short name or the path components, as spaces are
14119 # common. (e.g. "Program Files" -> "PROGRA~1")
14120 ;;
14121 esac
14122
14123 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14124 postinstall_cmds='base_file=`basename \$file`~
14125 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14126 dldir=$destdir/`dirname \$dlpath`~
14127 test -d \$dldir || mkdir -p \$dldir~
14128 $install_prog $dir/$dlname \$dldir/$dlname'
14129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14130 dlpath=$dir/\$dldll~
14131 $RM \$dlpath'
14132 shlibpath_overrides_runpath=yes
14133 dynamic_linker='Win32 link.exe'
14134 ;;
14135
14136 *)
14137 # Assume MSVC and ICC wrapper
14138 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14139 dynamic_linker='Win32 ld.exe'
14140 ;;
14141 esac
14142 # FIXME: first we should search . and the directory the executable is in
14143 shlibpath_var=PATH
14144 ;;
14145
14146 darwin* | rhapsody*)
14147 dynamic_linker="$host_os dyld"
14148 version_type=darwin
14149 need_lib_prefix=no
14150 need_version=no
14151 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14152 soname_spec='$libname$release$major$shared_ext'
14153 shlibpath_overrides_runpath=yes
14154 shlibpath_var=DYLD_LIBRARY_PATH
14155 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14156
14157 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14158 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14159 ;;
14160
14161 dgux*)
14162 version_type=linux # correct to gnu/linux during the next big refactor
14163 need_lib_prefix=no
14164 need_version=no
14165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14166 soname_spec='$libname$release$shared_ext$major'
14167 shlibpath_var=LD_LIBRARY_PATH
14168 ;;
14169
14170 freebsd* | dragonfly* | midnightbsd*)
14171 # DragonFly does not have aout. When/if they implement a new
14172 # versioning mechanism, adjust this.
14173 if test -x /usr/bin/objformat; then
14174 objformat=`/usr/bin/objformat`
14175 else
14176 case $host_os in
14177 freebsd[23].*) objformat=aout ;;
14178 *) objformat=elf ;;
14179 esac
14180 fi
14181 version_type=freebsd-$objformat
14182 case $version_type in
14183 freebsd-elf*)
14184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14185 soname_spec='$libname$release$shared_ext$major'
14186 need_version=no
14187 need_lib_prefix=no
14188 ;;
14189 freebsd-*)
14190 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14191 need_version=yes
14192 ;;
14193 esac
14194 shlibpath_var=LD_LIBRARY_PATH
14195 case $host_os in
14196 freebsd2.*)
14197 shlibpath_overrides_runpath=yes
14198 ;;
14199 freebsd3.[01]* | freebsdelf3.[01]*)
14200 shlibpath_overrides_runpath=yes
14201 hardcode_into_libs=yes
14202 ;;
14203 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14204 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14205 shlibpath_overrides_runpath=no
14206 hardcode_into_libs=yes
14207 ;;
14208 *) # from 4.6 on, and DragonFly
14209 shlibpath_overrides_runpath=yes
14210 hardcode_into_libs=yes
14211 ;;
14212 esac
14213 ;;
14214
14215 haiku*)
14216 version_type=linux # correct to gnu/linux during the next big refactor
14217 need_lib_prefix=no
14218 need_version=no
14219 dynamic_linker="$host_os runtime_loader"
14220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14221 soname_spec='$libname$release$shared_ext$major'
14222 shlibpath_var=LIBRARY_PATH
14223 shlibpath_overrides_runpath=no
14224 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14225 hardcode_into_libs=yes
14226 ;;
14227
14228 hpux9* | hpux10* | hpux11*)
14229 # Give a soname corresponding to the major version so that dld.sl refuses to
14230 # link against other versions.
14231 version_type=sunos
14232 need_lib_prefix=no
14233 need_version=no
14234 case $host_cpu in
14235 ia64*)
14236 shrext_cmds='.so'
14237 hardcode_into_libs=yes
14238 dynamic_linker="$host_os dld.so"
14239 shlibpath_var=LD_LIBRARY_PATH
14240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14242 soname_spec='$libname$release$shared_ext$major'
14243 if test 32 = "$HPUX_IA64_MODE"; then
14244 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14245 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14246 else
14247 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14248 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14249 fi
14250 ;;
14251 hppa*64*)
14252 shrext_cmds='.sl'
14253 hardcode_into_libs=yes
14254 dynamic_linker="$host_os dld.sl"
14255 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14258 soname_spec='$libname$release$shared_ext$major'
14259 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14261 ;;
14262 *)
14263 shrext_cmds='.sl'
14264 dynamic_linker="$host_os dld.sl"
14265 shlibpath_var=SHLIB_PATH
14266 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14268 soname_spec='$libname$release$shared_ext$major'
14269 ;;
14270 esac
14271 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14272 postinstall_cmds='chmod 555 $lib'
14273 # or fails outright, so override atomically:
14274 install_override_mode=555
14275 ;;
14276
14277 interix[3-9]*)
14278 version_type=linux # correct to gnu/linux during the next big refactor
14279 need_lib_prefix=no
14280 need_version=no
14281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14282 soname_spec='$libname$release$shared_ext$major'
14283 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14284 shlibpath_var=LD_LIBRARY_PATH
14285 shlibpath_overrides_runpath=no
14286 hardcode_into_libs=yes
14287 ;;
14288
14289 irix5* | irix6* | nonstopux*)
14290 case $host_os in
14291 nonstopux*) version_type=nonstopux ;;
14292 *)
14293 if test yes = "$lt_cv_prog_gnu_ld"; then
14294 version_type=linux # correct to gnu/linux during the next big refactor
14295 else
14296 version_type=irix
14297 fi ;;
14298 esac
14299 need_lib_prefix=no
14300 need_version=no
14301 soname_spec='$libname$release$shared_ext$major'
14302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14303 case $host_os in
14304 irix5* | nonstopux*)
14305 libsuff= shlibsuff=
14306 ;;
14307 *)
14308 case $LD in # libtool.m4 will add one of these switches to LD
14309 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14310 libsuff= shlibsuff= libmagic=32-bit;;
14311 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14312 libsuff=32 shlibsuff=N32 libmagic=N32;;
14313 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14314 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14315 *) libsuff= shlibsuff= libmagic=never-match;;
14316 esac
14317 ;;
14318 esac
14319 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14320 shlibpath_overrides_runpath=no
14321 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14322 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14323 hardcode_into_libs=yes
14324 ;;
14325
14326 # No shared lib support for Linux oldld, aout, or coff.
14327 linux*oldld* | linux*aout* | linux*coff*)
14328 dynamic_linker=no
14329 ;;
14330
14331 linux*android*)
14332 version_type=none # Android doesn't support versioned libraries.
14333 need_lib_prefix=no
14334 need_version=no
14335 library_names_spec='$libname$release$shared_ext'
14336 soname_spec='$libname$release$shared_ext'
14337 finish_cmds=
14338 shlibpath_var=LD_LIBRARY_PATH
14339 shlibpath_overrides_runpath=yes
14340
14341 # This implies no fast_install, which is unacceptable.
14342 # Some rework will be needed to allow for fast_install
14343 # before this can be enabled.
14344 hardcode_into_libs=yes
14345
14346 dynamic_linker='Android linker'
14347 # Don't embed -rpath directories since the linker doesn't support them.
14348 hardcode_libdir_flag_spec='-L$libdir'
14349 ;;
14350
14351 # This must be glibc/ELF.
14352 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14353 version_type=linux # correct to gnu/linux during the next big refactor
14354 need_lib_prefix=no
14355 need_version=no
14356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14357 soname_spec='$libname$release$shared_ext$major'
14358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14359 shlibpath_var=LD_LIBRARY_PATH
14360 shlibpath_overrides_runpath=no
14361
14362 # Some binutils ld are patched to set DT_RUNPATH
14363 if test ${lt_cv_shlibpath_overrides_runpath+y}
14364 then :
14365 printf %s "(cached) " >&6
14366 else $as_nop
14367 lt_cv_shlibpath_overrides_runpath=no
14368 save_LDFLAGS=$LDFLAGS
14369 save_libdir=$libdir
14370 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14371 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373 /* end confdefs.h. */
14374
14375 int
14376 main (void)
14377 {
14378
14379 ;
14380 return 0;
14381 }
14382 _ACEOF
14383 if ac_fn_c_try_link "$LINENO"
14384 then :
14385 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14386 then :
14387 lt_cv_shlibpath_overrides_runpath=yes
14388 fi
14389 fi
14390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14391 conftest$ac_exeext conftest.$ac_ext
14392 LDFLAGS=$save_LDFLAGS
14393 libdir=$save_libdir
14394
14395 fi
14396
14397 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14398
14399 # This implies no fast_install, which is unacceptable.
14400 # Some rework will be needed to allow for fast_install
14401 # before this can be enabled.
14402 hardcode_into_libs=yes
14403
14404 # Ideally, we could use ldconfig to report *all* directores which are
14405 # searched for libraries, however this is still not possible. Aside from not
14406 # being certain /sbin/ldconfig is available, command
14407 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14408 # even though it is searched at run-time. Try to do the best guess by
14409 # appending ld.so.conf contents (and includes) to the search path.
14410 if test -f /etc/ld.so.conf; then
14411 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' ' '`
14412 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14413 fi
14414
14415 # We used to test for /lib/ld.so.1 and disable shared libraries on
14416 # powerpc, because MkLinux only supported shared libraries with the
14417 # GNU dynamic linker. Since this was broken with cross compilers,
14418 # most powerpc-linux boxes support dynamic linking these days and
14419 # people can always --disable-shared, the test was removed, and we
14420 # assume the GNU/Linux dynamic linker is in use.
14421 dynamic_linker='GNU/Linux ld.so'
14422 ;;
14423
14424 netbsdelf*-gnu)
14425 version_type=linux
14426 need_lib_prefix=no
14427 need_version=no
14428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14429 soname_spec='${libname}${release}${shared_ext}$major'
14430 shlibpath_var=LD_LIBRARY_PATH
14431 shlibpath_overrides_runpath=no
14432 hardcode_into_libs=yes
14433 dynamic_linker='NetBSD ld.elf_so'
14434 ;;
14435
14436 netbsd*)
14437 version_type=sunos
14438 need_lib_prefix=no
14439 need_version=no
14440 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14441 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14443 dynamic_linker='NetBSD (a.out) ld.so'
14444 else
14445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14446 soname_spec='$libname$release$shared_ext$major'
14447 dynamic_linker='NetBSD ld.elf_so'
14448 fi
14449 shlibpath_var=LD_LIBRARY_PATH
14450 shlibpath_overrides_runpath=yes
14451 hardcode_into_libs=yes
14452 ;;
14453
14454 newsos6)
14455 version_type=linux # correct to gnu/linux during the next big refactor
14456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14457 shlibpath_var=LD_LIBRARY_PATH
14458 shlibpath_overrides_runpath=yes
14459 ;;
14460
14461 *nto* | *qnx*)
14462 version_type=qnx
14463 need_lib_prefix=no
14464 need_version=no
14465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14466 soname_spec='$libname$release$shared_ext$major'
14467 shlibpath_var=LD_LIBRARY_PATH
14468 shlibpath_overrides_runpath=no
14469 hardcode_into_libs=yes
14470 dynamic_linker='ldqnx.so'
14471 ;;
14472
14473 openbsd* | bitrig*)
14474 version_type=sunos
14475 sys_lib_dlsearch_path_spec=/usr/lib
14476 need_lib_prefix=no
14477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14478 need_version=no
14479 else
14480 need_version=yes
14481 fi
14482 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14484 shlibpath_var=LD_LIBRARY_PATH
14485 shlibpath_overrides_runpath=yes
14486 ;;
14487
14488 os2*)
14489 libname_spec='$name'
14490 version_type=windows
14491 shrext_cmds=.dll
14492 need_version=no
14493 need_lib_prefix=no
14494 # OS/2 can only load a DLL with a base name of 8 characters or less.
14495 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14496 v=$($ECHO $release$versuffix | tr -d .-);
14497 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14498 $ECHO $n$v`$shared_ext'
14499 library_names_spec='${libname}_dll.$libext'
14500 dynamic_linker='OS/2 ld.exe'
14501 shlibpath_var=BEGINLIBPATH
14502 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14503 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14504 postinstall_cmds='base_file=`basename \$file`~
14505 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14506 dldir=$destdir/`dirname \$dlpath`~
14507 test -d \$dldir || mkdir -p \$dldir~
14508 $install_prog $dir/$dlname \$dldir/$dlname~
14509 chmod a+x \$dldir/$dlname~
14510 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14511 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14512 fi'
14513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14514 dlpath=$dir/\$dldll~
14515 $RM \$dlpath'
14516 ;;
14517
14518 osf3* | osf4* | osf5*)
14519 version_type=osf
14520 need_lib_prefix=no
14521 need_version=no
14522 soname_spec='$libname$release$shared_ext$major'
14523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14524 shlibpath_var=LD_LIBRARY_PATH
14525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14527 ;;
14528
14529 rdos*)
14530 dynamic_linker=no
14531 ;;
14532
14533 solaris*)
14534 version_type=linux # correct to gnu/linux during the next big refactor
14535 need_lib_prefix=no
14536 need_version=no
14537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14538 soname_spec='$libname$release$shared_ext$major'
14539 shlibpath_var=LD_LIBRARY_PATH
14540 shlibpath_overrides_runpath=yes
14541 hardcode_into_libs=yes
14542 # ldd complains unless libraries are executable
14543 postinstall_cmds='chmod +x $lib'
14544 ;;
14545
14546 sunos4*)
14547 version_type=sunos
14548 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14549 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14550 shlibpath_var=LD_LIBRARY_PATH
14551 shlibpath_overrides_runpath=yes
14552 if test yes = "$with_gnu_ld"; then
14553 need_lib_prefix=no
14554 fi
14555 need_version=yes
14556 ;;
14557
14558 sysv4 | sysv4.3*)
14559 version_type=linux # correct to gnu/linux during the next big refactor
14560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14561 soname_spec='$libname$release$shared_ext$major'
14562 shlibpath_var=LD_LIBRARY_PATH
14563 case $host_vendor in
14564 sni)
14565 shlibpath_overrides_runpath=no
14566 need_lib_prefix=no
14567 runpath_var=LD_RUN_PATH
14568 ;;
14569 siemens)
14570 need_lib_prefix=no
14571 ;;
14572 motorola)
14573 need_lib_prefix=no
14574 need_version=no
14575 shlibpath_overrides_runpath=no
14576 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14577 ;;
14578 esac
14579 ;;
14580
14581 sysv4*MP*)
14582 if test -d /usr/nec; then
14583 version_type=linux # correct to gnu/linux during the next big refactor
14584 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14585 soname_spec='$libname$shared_ext.$major'
14586 shlibpath_var=LD_LIBRARY_PATH
14587 fi
14588 ;;
14589
14590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14591 version_type=sco
14592 need_lib_prefix=no
14593 need_version=no
14594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14595 soname_spec='$libname$release$shared_ext$major'
14596 shlibpath_var=LD_LIBRARY_PATH
14597 shlibpath_overrides_runpath=yes
14598 hardcode_into_libs=yes
14599 if test yes = "$with_gnu_ld"; then
14600 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14601 else
14602 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14603 case $host_os in
14604 sco3.2v5*)
14605 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14606 ;;
14607 esac
14608 fi
14609 sys_lib_dlsearch_path_spec='/usr/lib'
14610 ;;
14611
14612 tpf*)
14613 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14614 version_type=linux # correct to gnu/linux during the next big refactor
14615 need_lib_prefix=no
14616 need_version=no
14617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14618 shlibpath_var=LD_LIBRARY_PATH
14619 shlibpath_overrides_runpath=no
14620 hardcode_into_libs=yes
14621 ;;
14622
14623 uts4*)
14624 version_type=linux # correct to gnu/linux during the next big refactor
14625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14626 soname_spec='$libname$release$shared_ext$major'
14627 shlibpath_var=LD_LIBRARY_PATH
14628 ;;
14629
14630 *)
14631 dynamic_linker=no
14632 ;;
14633 esac
14634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14635 printf "%s\n" "$dynamic_linker" >&6; }
14636 test no = "$dynamic_linker" && can_build_shared=no
14637
14638 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14639 if test yes = "$GCC"; then
14640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14641 fi
14642
14643 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14644 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14645 fi
14646
14647 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14648 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14649 fi
14650
14651 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14652 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14653
14654 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14655 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14656
14657 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14658 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14757 printf %s "checking how to hardcode library paths into programs... " >&6; }
14758 hardcode_action=
14759 if test -n "$hardcode_libdir_flag_spec" ||
14760 test -n "$runpath_var" ||
14761 test yes = "$hardcode_automatic"; then
14762
14763 # We can hardcode non-existent directories.
14764 if test no != "$hardcode_direct" &&
14765 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14766 # have to relink, otherwise we might link with an installed library
14767 # when we should be linking with a yet-to-be-installed one
14768 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14769 test no != "$hardcode_minus_L"; then
14770 # Linking always hardcodes the temporary library directory.
14771 hardcode_action=relink
14772 else
14773 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14774 hardcode_action=immediate
14775 fi
14776 else
14777 # We cannot hardcode anything, or else we can only hardcode existing
14778 # directories.
14779 hardcode_action=unsupported
14780 fi
14781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14782 printf "%s\n" "$hardcode_action" >&6; }
14783
14784 if test relink = "$hardcode_action" ||
14785 test yes = "$inherit_rpath"; then
14786 # Fast installation is not supported
14787 enable_fast_install=no
14788 elif test yes = "$shlibpath_overrides_runpath" ||
14789 test no = "$enable_shared"; then
14790 # Fast installation is not necessary
14791 enable_fast_install=needless
14792 fi
14793
14794
14795
14796
14797
14798
14799 if test yes != "$enable_dlopen"; then
14800 enable_dlopen=unknown
14801 enable_dlopen_self=unknown
14802 enable_dlopen_self_static=unknown
14803 else
14804 lt_cv_dlopen=no
14805 lt_cv_dlopen_libs=
14806
14807 case $host_os in
14808 beos*)
14809 lt_cv_dlopen=load_add_on
14810 lt_cv_dlopen_libs=
14811 lt_cv_dlopen_self=yes
14812 ;;
14813
14814 mingw* | pw32* | cegcc*)
14815 lt_cv_dlopen=LoadLibrary
14816 lt_cv_dlopen_libs=
14817 ;;
14818
14819 cygwin*)
14820 lt_cv_dlopen=dlopen
14821 lt_cv_dlopen_libs=
14822 ;;
14823
14824 darwin*)
14825 # if libdl is installed we need to link against it
14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14827 printf %s "checking for dlopen in -ldl... " >&6; }
14828 if test ${ac_cv_lib_dl_dlopen+y}
14829 then :
14830 printf %s "(cached) " >&6
14831 else $as_nop
14832 ac_check_lib_save_LIBS=$LIBS
14833 LIBS="-ldl $LIBS"
14834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14835 /* end confdefs.h. */
14836
14837 /* Override any GCC internal prototype to avoid an error.
14838 Use char because int might match the return type of a GCC
14839 builtin and then its argument prototype would still apply. */
14840 char dlopen ();
14841 int
14842 main (void)
14843 {
14844 return dlopen ();
14845 ;
14846 return 0;
14847 }
14848 _ACEOF
14849 if ac_fn_c_try_link "$LINENO"
14850 then :
14851 ac_cv_lib_dl_dlopen=yes
14852 else $as_nop
14853 ac_cv_lib_dl_dlopen=no
14854 fi
14855 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14856 conftest$ac_exeext conftest.$ac_ext
14857 LIBS=$ac_check_lib_save_LIBS
14858 fi
14859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14860 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14861 if test "x$ac_cv_lib_dl_dlopen" = xyes
14862 then :
14863 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14864 else $as_nop
14865
14866 lt_cv_dlopen=dyld
14867 lt_cv_dlopen_libs=
14868 lt_cv_dlopen_self=yes
14869
14870 fi
14871
14872 ;;
14873
14874 tpf*)
14875 # Don't try to run any link tests for TPF. We know it's impossible
14876 # because TPF is a cross-compiler, and we know how we open DSOs.
14877 lt_cv_dlopen=dlopen
14878 lt_cv_dlopen_libs=
14879 lt_cv_dlopen_self=no
14880 ;;
14881
14882 *)
14883 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14884 if test "x$ac_cv_func_shl_load" = xyes
14885 then :
14886 lt_cv_dlopen=shl_load
14887 else $as_nop
14888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14889 printf %s "checking for shl_load in -ldld... " >&6; }
14890 if test ${ac_cv_lib_dld_shl_load+y}
14891 then :
14892 printf %s "(cached) " >&6
14893 else $as_nop
14894 ac_check_lib_save_LIBS=$LIBS
14895 LIBS="-ldld $LIBS"
14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897 /* end confdefs.h. */
14898
14899 /* Override any GCC internal prototype to avoid an error.
14900 Use char because int might match the return type of a GCC
14901 builtin and then its argument prototype would still apply. */
14902 char shl_load ();
14903 int
14904 main (void)
14905 {
14906 return shl_load ();
14907 ;
14908 return 0;
14909 }
14910 _ACEOF
14911 if ac_fn_c_try_link "$LINENO"
14912 then :
14913 ac_cv_lib_dld_shl_load=yes
14914 else $as_nop
14915 ac_cv_lib_dld_shl_load=no
14916 fi
14917 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14918 conftest$ac_exeext conftest.$ac_ext
14919 LIBS=$ac_check_lib_save_LIBS
14920 fi
14921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14922 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14923 if test "x$ac_cv_lib_dld_shl_load" = xyes
14924 then :
14925 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14926 else $as_nop
14927 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14928 if test "x$ac_cv_func_dlopen" = xyes
14929 then :
14930 lt_cv_dlopen=dlopen
14931 else $as_nop
14932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14933 printf %s "checking for dlopen in -ldl... " >&6; }
14934 if test ${ac_cv_lib_dl_dlopen+y}
14935 then :
14936 printf %s "(cached) " >&6
14937 else $as_nop
14938 ac_check_lib_save_LIBS=$LIBS
14939 LIBS="-ldl $LIBS"
14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h. */
14942
14943 /* Override any GCC internal prototype to avoid an error.
14944 Use char because int might match the return type of a GCC
14945 builtin and then its argument prototype would still apply. */
14946 char dlopen ();
14947 int
14948 main (void)
14949 {
14950 return dlopen ();
14951 ;
14952 return 0;
14953 }
14954 _ACEOF
14955 if ac_fn_c_try_link "$LINENO"
14956 then :
14957 ac_cv_lib_dl_dlopen=yes
14958 else $as_nop
14959 ac_cv_lib_dl_dlopen=no
14960 fi
14961 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14962 conftest$ac_exeext conftest.$ac_ext
14963 LIBS=$ac_check_lib_save_LIBS
14964 fi
14965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14966 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14967 if test "x$ac_cv_lib_dl_dlopen" = xyes
14968 then :
14969 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14970 else $as_nop
14971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14972 printf %s "checking for dlopen in -lsvld... " >&6; }
14973 if test ${ac_cv_lib_svld_dlopen+y}
14974 then :
14975 printf %s "(cached) " >&6
14976 else $as_nop
14977 ac_check_lib_save_LIBS=$LIBS
14978 LIBS="-lsvld $LIBS"
14979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14980 /* end confdefs.h. */
14981
14982 /* Override any GCC internal prototype to avoid an error.
14983 Use char because int might match the return type of a GCC
14984 builtin and then its argument prototype would still apply. */
14985 char dlopen ();
14986 int
14987 main (void)
14988 {
14989 return dlopen ();
14990 ;
14991 return 0;
14992 }
14993 _ACEOF
14994 if ac_fn_c_try_link "$LINENO"
14995 then :
14996 ac_cv_lib_svld_dlopen=yes
14997 else $as_nop
14998 ac_cv_lib_svld_dlopen=no
14999 fi
15000 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15001 conftest$ac_exeext conftest.$ac_ext
15002 LIBS=$ac_check_lib_save_LIBS
15003 fi
15004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15005 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15006 if test "x$ac_cv_lib_svld_dlopen" = xyes
15007 then :
15008 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15009 else $as_nop
15010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15011 printf %s "checking for dld_link in -ldld... " >&6; }
15012 if test ${ac_cv_lib_dld_dld_link+y}
15013 then :
15014 printf %s "(cached) " >&6
15015 else $as_nop
15016 ac_check_lib_save_LIBS=$LIBS
15017 LIBS="-ldld $LIBS"
15018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h. */
15020
15021 /* Override any GCC internal prototype to avoid an error.
15022 Use char because int might match the return type of a GCC
15023 builtin and then its argument prototype would still apply. */
15024 char dld_link ();
15025 int
15026 main (void)
15027 {
15028 return dld_link ();
15029 ;
15030 return 0;
15031 }
15032 _ACEOF
15033 if ac_fn_c_try_link "$LINENO"
15034 then :
15035 ac_cv_lib_dld_dld_link=yes
15036 else $as_nop
15037 ac_cv_lib_dld_dld_link=no
15038 fi
15039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15040 conftest$ac_exeext conftest.$ac_ext
15041 LIBS=$ac_check_lib_save_LIBS
15042 fi
15043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15044 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15045 if test "x$ac_cv_lib_dld_dld_link" = xyes
15046 then :
15047 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15048 fi
15049
15050
15051 fi
15052
15053
15054 fi
15055
15056
15057 fi
15058
15059
15060 fi
15061
15062
15063 fi
15064
15065 ;;
15066 esac
15067
15068 if test no = "$lt_cv_dlopen"; then
15069 enable_dlopen=no
15070 else
15071 enable_dlopen=yes
15072 fi
15073
15074 case $lt_cv_dlopen in
15075 dlopen)
15076 save_CPPFLAGS=$CPPFLAGS
15077 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15078
15079 save_LDFLAGS=$LDFLAGS
15080 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15081
15082 save_LIBS=$LIBS
15083 LIBS="$lt_cv_dlopen_libs $LIBS"
15084
15085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15086 printf %s "checking whether a program can dlopen itself... " >&6; }
15087 if test ${lt_cv_dlopen_self+y}
15088 then :
15089 printf %s "(cached) " >&6
15090 else $as_nop
15091 if test yes = "$cross_compiling"; then :
15092 lt_cv_dlopen_self=cross
15093 else
15094 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15095 lt_status=$lt_dlunknown
15096 cat > conftest.$ac_ext <<_LT_EOF
15097 #line $LINENO "configure"
15098 #include "confdefs.h"
15099
15100 #if HAVE_DLFCN_H
15101 #include <dlfcn.h>
15102 #endif
15103
15104 #include <stdio.h>
15105
15106 #ifdef RTLD_GLOBAL
15107 # define LT_DLGLOBAL RTLD_GLOBAL
15108 #else
15109 # ifdef DL_GLOBAL
15110 # define LT_DLGLOBAL DL_GLOBAL
15111 # else
15112 # define LT_DLGLOBAL 0
15113 # endif
15114 #endif
15115
15116 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15117 find out it does not work in some platform. */
15118 #ifndef LT_DLLAZY_OR_NOW
15119 # ifdef RTLD_LAZY
15120 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15121 # else
15122 # ifdef DL_LAZY
15123 # define LT_DLLAZY_OR_NOW DL_LAZY
15124 # else
15125 # ifdef RTLD_NOW
15126 # define LT_DLLAZY_OR_NOW RTLD_NOW
15127 # else
15128 # ifdef DL_NOW
15129 # define LT_DLLAZY_OR_NOW DL_NOW
15130 # else
15131 # define LT_DLLAZY_OR_NOW 0
15132 # endif
15133 # endif
15134 # endif
15135 # endif
15136 #endif
15137
15138 /* When -fvisibility=hidden is used, assume the code has been annotated
15139 correspondingly for the symbols needed. */
15140 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15141 int fnord () __attribute__((visibility("default")));
15142 #endif
15143
15144 int fnord () { return 42; }
15145 int main ()
15146 {
15147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15148 int status = $lt_dlunknown;
15149
15150 if (self)
15151 {
15152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15153 else
15154 {
15155 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15156 else puts (dlerror ());
15157 }
15158 /* dlclose (self); */
15159 }
15160 else
15161 puts (dlerror ());
15162
15163 return status;
15164 }
15165 _LT_EOF
15166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15167 (eval $ac_link) 2>&5
15168 ac_status=$?
15169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15170 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15171 (./conftest; exit; ) >&5 2>/dev/null
15172 lt_status=$?
15173 case x$lt_status in
15174 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15175 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15176 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15177 esac
15178 else :
15179 # compilation failed
15180 lt_cv_dlopen_self=no
15181 fi
15182 fi
15183 rm -fr conftest*
15184
15185
15186 fi
15187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15188 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15189
15190 if test yes = "$lt_cv_dlopen_self"; then
15191 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15193 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15194 if test ${lt_cv_dlopen_self_static+y}
15195 then :
15196 printf %s "(cached) " >&6
15197 else $as_nop
15198 if test yes = "$cross_compiling"; then :
15199 lt_cv_dlopen_self_static=cross
15200 else
15201 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15202 lt_status=$lt_dlunknown
15203 cat > conftest.$ac_ext <<_LT_EOF
15204 #line $LINENO "configure"
15205 #include "confdefs.h"
15206
15207 #if HAVE_DLFCN_H
15208 #include <dlfcn.h>
15209 #endif
15210
15211 #include <stdio.h>
15212
15213 #ifdef RTLD_GLOBAL
15214 # define LT_DLGLOBAL RTLD_GLOBAL
15215 #else
15216 # ifdef DL_GLOBAL
15217 # define LT_DLGLOBAL DL_GLOBAL
15218 # else
15219 # define LT_DLGLOBAL 0
15220 # endif
15221 #endif
15222
15223 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15224 find out it does not work in some platform. */
15225 #ifndef LT_DLLAZY_OR_NOW
15226 # ifdef RTLD_LAZY
15227 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15228 # else
15229 # ifdef DL_LAZY
15230 # define LT_DLLAZY_OR_NOW DL_LAZY
15231 # else
15232 # ifdef RTLD_NOW
15233 # define LT_DLLAZY_OR_NOW RTLD_NOW
15234 # else
15235 # ifdef DL_NOW
15236 # define LT_DLLAZY_OR_NOW DL_NOW
15237 # else
15238 # define LT_DLLAZY_OR_NOW 0
15239 # endif
15240 # endif
15241 # endif
15242 # endif
15243 #endif
15244
15245 /* When -fvisibility=hidden is used, assume the code has been annotated
15246 correspondingly for the symbols needed. */
15247 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15248 int fnord () __attribute__((visibility("default")));
15249 #endif
15250
15251 int fnord () { return 42; }
15252 int main ()
15253 {
15254 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15255 int status = $lt_dlunknown;
15256
15257 if (self)
15258 {
15259 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15260 else
15261 {
15262 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15263 else puts (dlerror ());
15264 }
15265 /* dlclose (self); */
15266 }
15267 else
15268 puts (dlerror ());
15269
15270 return status;
15271 }
15272 _LT_EOF
15273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15274 (eval $ac_link) 2>&5
15275 ac_status=$?
15276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15277 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15278 (./conftest; exit; ) >&5 2>/dev/null
15279 lt_status=$?
15280 case x$lt_status in
15281 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15282 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15283 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15284 esac
15285 else :
15286 # compilation failed
15287 lt_cv_dlopen_self_static=no
15288 fi
15289 fi
15290 rm -fr conftest*
15291
15292
15293 fi
15294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15295 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15296 fi
15297
15298 CPPFLAGS=$save_CPPFLAGS
15299 LDFLAGS=$save_LDFLAGS
15300 LIBS=$save_LIBS
15301 ;;
15302 esac
15303
15304 case $lt_cv_dlopen_self in
15305 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15306 *) enable_dlopen_self=unknown ;;
15307 esac
15308
15309 case $lt_cv_dlopen_self_static in
15310 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15311 *) enable_dlopen_self_static=unknown ;;
15312 esac
15313 fi
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331 striplib=
15332 old_striplib=
15333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15334 printf %s "checking whether stripping libraries is possible... " >&6; }
15335 if test -z "$STRIP"; then
15336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15337 printf "%s\n" "no" >&6; }
15338 else
15339 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15340 old_striplib="$STRIP --strip-debug"
15341 striplib="$STRIP --strip-unneeded"
15342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15343 printf "%s\n" "yes" >&6; }
15344 else
15345 case $host_os in
15346 darwin*)
15347 # FIXME - insert some real tests, host_os isn't really good enough
15348 striplib="$STRIP -x"
15349 old_striplib="$STRIP -S"
15350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15351 printf "%s\n" "yes" >&6; }
15352 ;;
15353 freebsd*)
15354 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15355 old_striplib="$STRIP --strip-debug"
15356 striplib="$STRIP --strip-unneeded"
15357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15358 printf "%s\n" "yes" >&6; }
15359 else
15360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15361 printf "%s\n" "no" >&6; }
15362 fi
15363 ;;
15364 *)
15365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366 printf "%s\n" "no" >&6; }
15367 ;;
15368 esac
15369 fi
15370 fi
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383 # Report what library types will actually be built
15384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15385 printf %s "checking if libtool supports shared libraries... " >&6; }
15386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15387 printf "%s\n" "$can_build_shared" >&6; }
15388
15389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15390 printf %s "checking whether to build shared libraries... " >&6; }
15391 test no = "$can_build_shared" && enable_shared=no
15392
15393 # On AIX, shared libraries and static libraries use the same namespace, and
15394 # are all built from PIC.
15395 case $host_os in
15396 aix3*)
15397 test yes = "$enable_shared" && enable_static=no
15398 if test -n "$RANLIB"; then
15399 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15400 postinstall_cmds='$RANLIB $lib'
15401 fi
15402 ;;
15403
15404 aix[4-9]*)
15405 if test ia64 != "$host_cpu"; then
15406 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15407 yes,aix,yes) ;; # shared object as lib.so file only
15408 yes,svr4,*) ;; # shared object as lib.so archive member only
15409 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15410 esac
15411 fi
15412 ;;
15413 esac
15414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15415 printf "%s\n" "$enable_shared" >&6; }
15416
15417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15418 printf %s "checking whether to build static libraries... " >&6; }
15419 # Make sure either enable_shared or enable_static is yes.
15420 test yes = "$enable_shared" || enable_static=yes
15421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15422 printf "%s\n" "$enable_static" >&6; }
15423
15424
15425
15426
15427 fi
15428 ac_ext=c
15429 ac_cpp='$CPP $CPPFLAGS'
15430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15433
15434 CC=$lt_save_CC
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450 ac_config_commands="$ac_config_commands libtool"
15451
15452
15453
15454
15455 # Only expand once:
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466 # Check whether --enable-cross-guesses was given.
15467 if test ${enable_cross_guesses+y}
15468 then :
15469 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
15470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
15471 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
15472 enableval=conservative
15473 fi
15474 gl_cross_guesses="$enableval"
15475 else $as_nop
15476 gl_cross_guesses=conservative
15477 fi
15478
15479 if test $gl_cross_guesses = risky; then
15480 gl_cross_guess_normal="guessing yes"
15481 gl_cross_guess_inverted="guessing no"
15482 else
15483 gl_cross_guess_normal="guessing no"
15484 gl_cross_guess_inverted="guessing yes"
15485 fi
15486 LIBC_FATAL_STDERR_=1
15487 export LIBC_FATAL_STDERR_
15488
15489
15490
15491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
15492 printf %s "checking whether to activate relocatable installation... " >&6; }
15493 # Check whether --enable-relocatable was given.
15494 if test ${enable_relocatable+y}
15495 then :
15496 enableval=$enable_relocatable; if test "$enableval" != no; then
15497 RELOCATABLE=yes
15498 else
15499 RELOCATABLE=no
15500 fi
15501
15502 else $as_nop
15503 RELOCATABLE=no
15504 fi
15505
15506
15507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
15508 printf "%s\n" "$RELOCATABLE" >&6; }
15509
15510
15511
15512 if test "X$prefix" = "XNONE"; then
15513 reloc_final_prefix="$ac_default_prefix"
15514 else
15515 reloc_final_prefix="$prefix"
15516 fi
15517
15518 printf "%s\n" "#define INSTALLPREFIX \"${reloc_final_prefix}\"" >>confdefs.h
15519
15520 if test $RELOCATABLE = yes; then
15521
15522 printf "%s\n" "#define ENABLE_RELOCATABLE 1" >>confdefs.h
15523
15524 fi
15525
15526
15527
15528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5
15529 printf %s "checking for C compiler option to allow warnings... " >&6; }
15530 if test ${gl_cv_cc_wallow+y}
15531 then :
15532 printf %s "(cached) " >&6
15533 else $as_nop
15534 rm -f conftest*
15535 echo 'int dummy;' > conftest.c
15536 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err'
15537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15541 test $ac_status = 0; }; } >/dev/null
15542 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err'
15543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15547 test $ac_status = 0; }; } >/dev/null
15548 if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
15549 gl_cv_cc_wallow='-Wno-error'
15550 else
15551 gl_cv_cc_wallow=none
15552 fi
15553 rm -f conftest*
15554
15555 fi
15556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5
15557 printf "%s\n" "$gl_cv_cc_wallow" >&6; }
15558 case "$gl_cv_cc_wallow" in
15559 none) GL_CFLAG_ALLOW_WARNINGS='' ;;
15560 *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
15561 esac
15562
15563
15564
15565
15566 GL_CFLAG_GNULIB_WARNINGS=''
15567 if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
15568 cat > conftest.c <<\EOF
15569 #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15570 -Wno-cast-qual
15571 -Wno-conversion
15572 -Wno-float-equal
15573 -Wno-sign-compare
15574 -Wno-undef
15575 -Wno-unused-function
15576 -Wno-unused-parameter
15577 #endif
15578 #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15579 -Wno-float-conversion
15580 #endif
15581 #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15582 -Wimplicit-fallthrough
15583 #endif
15584 #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15585 -Wno-pedantic
15586 #endif
15587 #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15588 -Wno-sign-conversion
15589 -Wno-type-limits
15590 #endif
15591 #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
15592 -Wno-unsuffixed-float-constants
15593 #endif
15594 EOF
15595 gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
15596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
15597 (eval $gl_command) 2>&5
15598 ac_status=$?
15599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15600 test $ac_status = 0; }; then
15601 gl_options=`grep -v '#' conftest.out`
15602 for word in $gl_options; do
15603 GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
15604 done
15605 fi
15606 rm -f conftest.c conftest.out
15607 fi
15608
15609
15610
15611 if true; then
15612 GL_COND_LIBTOOL_TRUE=
15613 GL_COND_LIBTOOL_FALSE='#'
15614 else
15615 GL_COND_LIBTOOL_TRUE='#'
15616 GL_COND_LIBTOOL_FALSE=
15617 fi
15618
15619 gl_cond_libtool=true
15620 gl_m4_base='m4'
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633 gl_source_base='libgnu'
15634 gl_source_base_prefix=
15635
15636
15637
15638 if test $RELOCATABLE = yes; then
15639
15640
15641
15642
15643
15644
15645
15646
15647 gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
15648
15649 fi
15650 # End of code from modules
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662 gltests_libdeps=
15663 gltests_ltlibdeps=
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676 gl_source_base='tests'
15677 gl_source_base_prefix=
15678 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
15679
15680 gl_module_indicator_condition=$gltests_WITNESS
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15695 if test "x$ac_cv_type_size_t" = xyes
15696 then :
15697
15698 else $as_nop
15699
15700 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15701
15702 fi
15703
15704 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15705 # for constant arguments. Useless!
15706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15707 printf %s "checking for working alloca.h... " >&6; }
15708 if test ${ac_cv_working_alloca_h+y}
15709 then :
15710 printf %s "(cached) " >&6
15711 else $as_nop
15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15713 /* end confdefs.h. */
15714 #include <alloca.h>
15715 int
15716 main (void)
15717 {
15718 char *p = (char *) alloca (2 * sizeof (int));
15719 if (p) return 0;
15720 ;
15721 return 0;
15722 }
15723 _ACEOF
15724 if ac_fn_c_try_link "$LINENO"
15725 then :
15726 ac_cv_working_alloca_h=yes
15727 else $as_nop
15728 ac_cv_working_alloca_h=no
15729 fi
15730 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15731 conftest$ac_exeext conftest.$ac_ext
15732 fi
15733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15734 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
15735 if test $ac_cv_working_alloca_h = yes; then
15736
15737 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
15738
15739 fi
15740
15741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15742 printf %s "checking for alloca... " >&6; }
15743 if test ${ac_cv_func_alloca_works+y}
15744 then :
15745 printf %s "(cached) " >&6
15746 else $as_nop
15747 if test $ac_cv_working_alloca_h = yes; then
15748 ac_cv_func_alloca_works=yes
15749 else
15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15752 #include <stdlib.h>
15753 #include <stddef.h>
15754 #ifndef alloca
15755 # ifdef __GNUC__
15756 # define alloca __builtin_alloca
15757 # elif defined _MSC_VER
15758 # include <malloc.h>
15759 # define alloca _alloca
15760 # else
15761 # ifdef __cplusplus
15762 extern "C"
15763 # endif
15764 void *alloca (size_t);
15765 # endif
15766 #endif
15767
15768 int
15769 main (void)
15770 {
15771 char *p = (char *) alloca (1);
15772 if (p) return 0;
15773 ;
15774 return 0;
15775 }
15776 _ACEOF
15777 if ac_fn_c_try_link "$LINENO"
15778 then :
15779 ac_cv_func_alloca_works=yes
15780 else $as_nop
15781 ac_cv_func_alloca_works=no
15782 fi
15783 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15784 conftest$ac_exeext conftest.$ac_ext
15785 fi
15786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15787 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
15788 fi
15789
15790 if test $ac_cv_func_alloca_works = yes; then
15791
15792 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
15793
15794 else
15795 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15796 # that cause trouble. Some versions do not even contain alloca or
15797 # contain a buggy version. If you still want to use their alloca,
15798 # use ar to extract alloca.o from them instead of compiling alloca.c.
15799
15800
15801
15802
15803
15804 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15805
15806 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
15807
15808
15809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15810 printf %s "checking stack direction for C alloca... " >&6; }
15811 if test ${ac_cv_c_stack_direction+y}
15812 then :
15813 printf %s "(cached) " >&6
15814 else $as_nop
15815 if test "$cross_compiling" = yes
15816 then :
15817 ac_cv_c_stack_direction=0
15818 else $as_nop
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15821 $ac_includes_default
15822 int
15823 find_stack_direction (int *addr, int depth)
15824 {
15825 int dir, dummy = 0;
15826 if (! addr)
15827 addr = &dummy;
15828 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15829 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15830 return dir + dummy;
15831 }
15832
15833 int
15834 main (int argc, char **argv)
15835 {
15836 return find_stack_direction (0, argc + !argv + 20) < 0;
15837 }
15838 _ACEOF
15839 if ac_fn_c_try_run "$LINENO"
15840 then :
15841 ac_cv_c_stack_direction=1
15842 else $as_nop
15843 ac_cv_c_stack_direction=-1
15844 fi
15845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15846 conftest.$ac_objext conftest.beam conftest.$ac_ext
15847 fi
15848
15849 fi
15850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15851 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
15852 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
15853
15854
15855 fi
15856
15857
15858
15859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15860 printf %s "checking whether the preprocessor supports include_next... " >&6; }
15861 if test ${gl_cv_have_include_next+y}
15862 then :
15863 printf %s "(cached) " >&6
15864 else $as_nop
15865 rm -rf conftestd1a conftestd1b conftestd2
15866 mkdir conftestd1a conftestd1b conftestd2
15867 cat <<EOF > conftestd1a/conftest.h
15868 #define DEFINED_IN_CONFTESTD1
15869 #include_next <conftest.h>
15870 #ifdef DEFINED_IN_CONFTESTD2
15871 int foo;
15872 #else
15873 #error "include_next doesn't work"
15874 #endif
15875 EOF
15876 cat <<EOF > conftestd1b/conftest.h
15877 #define DEFINED_IN_CONFTESTD1
15878 #include <stdio.h>
15879 #include_next <conftest.h>
15880 #ifdef DEFINED_IN_CONFTESTD2
15881 int foo;
15882 #else
15883 #error "include_next doesn't work"
15884 #endif
15885 EOF
15886 cat <<EOF > conftestd2/conftest.h
15887 #ifndef DEFINED_IN_CONFTESTD1
15888 #error "include_next test doesn't work"
15889 #endif
15890 #define DEFINED_IN_CONFTESTD2
15891 EOF
15892 gl_save_CPPFLAGS="$CPPFLAGS"
15893 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895 /* end confdefs.h. */
15896 #include <conftest.h>
15897 _ACEOF
15898 if ac_fn_c_try_compile "$LINENO"
15899 then :
15900 gl_cv_have_include_next=yes
15901 else $as_nop
15902 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15905 #include <conftest.h>
15906 _ACEOF
15907 if ac_fn_c_try_compile "$LINENO"
15908 then :
15909 gl_cv_have_include_next=buggy
15910 else $as_nop
15911 gl_cv_have_include_next=no
15912 fi
15913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15914
15915 fi
15916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15917 CPPFLAGS="$gl_save_CPPFLAGS"
15918 rm -rf conftestd1a conftestd1b conftestd2
15919
15920 fi
15921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15922 printf "%s\n" "$gl_cv_have_include_next" >&6; }
15923 PRAGMA_SYSTEM_HEADER=
15924 if test $gl_cv_have_include_next = yes; then
15925 INCLUDE_NEXT=include_next
15926 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15927 if test -n "$GCC"; then
15928 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15929 fi
15930 else
15931 if test $gl_cv_have_include_next = buggy; then
15932 INCLUDE_NEXT=include
15933 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15934 else
15935 INCLUDE_NEXT=include
15936 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15937 fi
15938 fi
15939
15940
15941
15942
15943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
15944 printf %s "checking whether source code line length is unlimited... " >&6; }
15945 if test ${gl_cv_source_line_length_unlimited+y}
15946 then :
15947 printf %s "(cached) " >&6
15948 else $as_nop
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15951
15952 #ifdef __TANDEM
15953 choke me
15954 #endif
15955
15956 _ACEOF
15957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15958 $EGREP "choke me" >/dev/null 2>&1
15959 then :
15960 gl_cv_source_line_length_unlimited=no
15961 else $as_nop
15962 gl_cv_source_line_length_unlimited=yes
15963 fi
15964 rm -rf conftest*
15965
15966
15967 fi
15968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
15969 printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; }
15970 if test $gl_cv_source_line_length_unlimited = no; then
15971 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15972 else
15973 PRAGMA_COLUMNS=
15974 fi
15975
15976
15977
15978 HAVE__EXIT=1;
15979 HAVE_ALIGNED_ALLOC=1;
15980 HAVE_ATOLL=1;
15981 HAVE_CANONICALIZE_FILE_NAME=1;
15982 HAVE_DECL_ECVT=1;
15983 HAVE_DECL_FCVT=1;
15984 HAVE_DECL_GCVT=1;
15985 HAVE_DECL_GETLOADAVG=1;
15986 HAVE_GETPROGNAME=1;
15987 HAVE_GETSUBOPT=1;
15988 HAVE_GRANTPT=1;
15989 HAVE_INITSTATE=1;
15990 HAVE_DECL_INITSTATE=1;
15991 HAVE_MBTOWC=1;
15992 HAVE_MKDTEMP=1;
15993 HAVE_MKOSTEMP=1;
15994 HAVE_MKOSTEMPS=1;
15995 HAVE_MKSTEMP=1;
15996 HAVE_MKSTEMPS=1;
15997 HAVE_POSIX_MEMALIGN=1;
15998 HAVE_POSIX_OPENPT=1;
15999 HAVE_PTSNAME=1;
16000 HAVE_PTSNAME_R=1;
16001 HAVE_QSORT_R=1;
16002 HAVE_RANDOM=1;
16003 HAVE_RANDOM_H=1;
16004 HAVE_RANDOM_R=1;
16005 HAVE_REALLOCARRAY=1;
16006 HAVE_REALPATH=1;
16007 HAVE_RPMATCH=1;
16008 HAVE_SECURE_GETENV=1;
16009 HAVE_SETENV=1;
16010 HAVE_DECL_SETENV=1;
16011 HAVE_SETSTATE=1;
16012 HAVE_DECL_SETSTATE=1;
16013 HAVE_STRTOD=1;
16014 HAVE_STRTOL=1;
16015 HAVE_STRTOLD=1;
16016 HAVE_STRTOLL=1;
16017 HAVE_STRTOUL=1;
16018 HAVE_STRTOULL=1;
16019 HAVE_STRUCT_RANDOM_DATA=1;
16020 HAVE_SYS_LOADAVG_H=0;
16021 HAVE_UNLOCKPT=1;
16022 HAVE_DECL_UNSETENV=1;
16023 REPLACE__EXIT=0;
16024 REPLACE_ALIGNED_ALLOC=0;
16025 REPLACE_CALLOC_FOR_CALLOC_GNU=0;
16026 REPLACE_CALLOC_FOR_CALLOC_POSIX=0;
16027 REPLACE_CANONICALIZE_FILE_NAME=0;
16028 REPLACE_FREE=0;
16029 REPLACE_GETLOADAVG=0;
16030 REPLACE_GETPROGNAME=0;
16031 REPLACE_GETSUBOPT=0;
16032 REPLACE_INITSTATE=0;
16033 REPLACE_MALLOC_FOR_MALLOC_GNU=0;
16034 REPLACE_MALLOC_FOR_MALLOC_POSIX=0;
16035 REPLACE_MBTOWC=0;
16036 REPLACE_MKOSTEMP=0;
16037 REPLACE_MKOSTEMPS=0;
16038 REPLACE_MKSTEMP=0;
16039 REPLACE_POSIX_MEMALIGN=0;
16040 REPLACE_POSIX_OPENPT=0;
16041 REPLACE_PTSNAME=0;
16042 REPLACE_PTSNAME_R=0;
16043 REPLACE_PUTENV=0;
16044 REPLACE_QSORT_R=0;
16045 REPLACE_RANDOM=0;
16046 REPLACE_RANDOM_R=0;
16047 REPLACE_REALLOC_FOR_REALLOC_GNU=0;
16048 REPLACE_REALLOC_FOR_REALLOC_POSIX=0;
16049 REPLACE_REALLOCARRAY=0;
16050 REPLACE_REALPATH=0;
16051 REPLACE_SETENV=0;
16052 REPLACE_SETSTATE=0;
16053 REPLACE_STRTOD=0;
16054 REPLACE_STRTOL=0;
16055 REPLACE_STRTOLD=0;
16056 REPLACE_STRTOLL=0;
16057 REPLACE_STRTOUL=0;
16058 REPLACE_STRTOULL=0;
16059 REPLACE_UNSETENV=0;
16060 REPLACE_WCTOMB=0;
16061
16062
16063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5
16064 printf %s "checking whether malloc is ptrdiff_t safe... " >&6; }
16065 if test ${gl_cv_malloc_ptrdiff+y}
16066 then :
16067 printf %s "(cached) " >&6
16068 else $as_nop
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16071 #include <stdint.h>
16072
16073 int
16074 main (void)
16075 {
16076 /* 64-bit ptrdiff_t is so wide that no practical platform
16077 can exceed it. */
16078 #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0)
16079
16080 /* On rare machines where size_t fits in ptrdiff_t there
16081 is no problem. */
16082 #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX)
16083
16084 /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t
16085 bounds even on 32-bit platforms. We don't know which
16086 non-glibc systems are safe. */
16087 #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__))
16088
16089 #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE
16090 return 0;
16091 #else
16092 #error "malloc might not be ptrdiff_t safe"
16093 syntax error
16094 #endif
16095
16096 ;
16097 return 0;
16098 }
16099 _ACEOF
16100 if ac_fn_c_try_compile "$LINENO"
16101 then :
16102 gl_cv_malloc_ptrdiff=yes
16103 else $as_nop
16104 gl_cv_malloc_ptrdiff=no
16105 fi
16106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16107
16108 fi
16109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5
16110 printf "%s\n" "$gl_cv_malloc_ptrdiff" >&6; }
16111
16112
16113
16114
16115 test "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC_FOR_MALLOC_POSIX=1
16116
16117
16118
16119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc set errno on failure" >&5
16120 printf %s "checking whether malloc, realloc, calloc set errno on failure... " >&6; }
16121 if test ${gl_cv_func_malloc_posix+y}
16122 then :
16123 printf %s "(cached) " >&6
16124 else $as_nop
16125
16126 case "$host_os" in
16127 mingw*)
16128 gl_cv_func_malloc_posix=no ;;
16129 irix* | solaris*)
16130
16131 gl_cv_func_malloc_posix=no ;;
16132 *)
16133 gl_cv_func_malloc_posix=yes ;;
16134 esac
16135
16136 fi
16137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
16138 printf "%s\n" "$gl_cv_func_malloc_posix" >&6; }
16139
16140
16141
16142
16143
16144 if test "$gl_cv_func_malloc_posix" = yes; then
16145
16146 printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
16147
16148 else
16149 REPLACE_MALLOC_FOR_MALLOC_POSIX=1
16150 fi
16151
16152
16153
16154
16155 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
16156 REPLACE_CALLOC_FOR_CALLOC_POSIX=1
16157 fi
16158
16159
16160
16161 GL_GL_PAPER_GNULIB__EXIT=0
16162
16163
16164
16165 GL_GL_PAPER_GNULIB_ALIGNED_ALLOC=0
16166
16167
16168
16169 GL_GL_PAPER_GNULIB_ATOLL=0
16170
16171
16172
16173 GL_GL_PAPER_GNULIB_CALLOC_GNU=0
16174
16175
16176
16177 GL_GL_PAPER_GNULIB_CALLOC_POSIX=0
16178
16179
16180
16181 GL_GL_PAPER_GNULIB_CANONICALIZE_FILE_NAME=0
16182
16183
16184
16185 GL_GL_PAPER_GNULIB_FREE_POSIX=0
16186
16187
16188
16189 GL_GL_PAPER_GNULIB_GETLOADAVG=0
16190
16191
16192
16193 GL_GL_PAPER_GNULIB_GETPROGNAME=0
16194
16195
16196
16197 GL_GL_PAPER_GNULIB_GETSUBOPT=0
16198
16199
16200
16201 GL_GL_PAPER_GNULIB_GRANTPT=0
16202
16203
16204
16205 GL_GL_PAPER_GNULIB_MALLOC_GNU=0
16206
16207
16208
16209 GL_GL_PAPER_GNULIB_MALLOC_POSIX=0
16210
16211
16212
16213 GL_GL_PAPER_GNULIB_MBTOWC=0
16214
16215
16216
16217 GL_GL_PAPER_GNULIB_MKDTEMP=0
16218
16219
16220
16221 GL_GL_PAPER_GNULIB_MKOSTEMP=0
16222
16223
16224
16225 GL_GL_PAPER_GNULIB_MKOSTEMPS=0
16226
16227
16228
16229 GL_GL_PAPER_GNULIB_MKSTEMP=0
16230
16231
16232
16233 GL_GL_PAPER_GNULIB_MKSTEMPS=0
16234
16235
16236
16237 GL_GL_PAPER_GNULIB_POSIX_MEMALIGN=0
16238
16239
16240
16241 GL_GL_PAPER_GNULIB_POSIX_OPENPT=0
16242
16243
16244
16245 GL_GL_PAPER_GNULIB_PTSNAME=0
16246
16247
16248
16249 GL_GL_PAPER_GNULIB_PTSNAME_R=0
16250
16251
16252
16253 GL_GL_PAPER_GNULIB_PUTENV=0
16254
16255
16256
16257 GL_GL_PAPER_GNULIB_QSORT_R=0
16258
16259
16260
16261 GL_GL_PAPER_GNULIB_RANDOM=0
16262
16263
16264
16265 GL_GL_PAPER_GNULIB_RANDOM_R=0
16266
16267
16268
16269 GL_GL_PAPER_GNULIB_REALLOCARRAY=0
16270
16271
16272
16273 GL_GL_PAPER_GNULIB_REALLOC_GNU=0
16274
16275
16276
16277 GL_GL_PAPER_GNULIB_REALLOC_POSIX=0
16278
16279
16280
16281 GL_GL_PAPER_GNULIB_REALPATH=0
16282
16283
16284
16285 GL_GL_PAPER_GNULIB_RPMATCH=0
16286
16287
16288
16289 GL_GL_PAPER_GNULIB_SECURE_GETENV=0
16290
16291
16292
16293 GL_GL_PAPER_GNULIB_SETENV=0
16294
16295
16296
16297 GL_GL_PAPER_GNULIB_STRTOD=0
16298
16299
16300
16301 GL_GL_PAPER_GNULIB_STRTOL=0
16302
16303
16304
16305 GL_GL_PAPER_GNULIB_STRTOLD=0
16306
16307
16308
16309 GL_GL_PAPER_GNULIB_STRTOLL=0
16310
16311
16312
16313 GL_GL_PAPER_GNULIB_STRTOUL=0
16314
16315
16316
16317 GL_GL_PAPER_GNULIB_STRTOULL=0
16318
16319
16320
16321 GL_GL_PAPER_GNULIB_SYSTEM_POSIX=0
16322
16323
16324
16325 GL_GL_PAPER_GNULIB_UNLOCKPT=0
16326
16327
16328
16329 GL_GL_PAPER_GNULIB_UNSETENV=0
16330
16331
16332
16333 GL_GL_PAPER_GNULIB_WCTOMB=0
16334
16335
16336
16337 GL_GL_PAPER_GNULIB_MDA_ECVT=1
16338
16339
16340
16341 GL_GL_PAPER_GNULIB_MDA_FCVT=1
16342
16343
16344
16345 GL_GL_PAPER_GNULIB_MDA_GCVT=1
16346
16347
16348
16349 GL_GL_PAPER_GNULIB_MDA_MKTEMP=1
16350
16351
16352
16353 GL_GL_PAPER_GNULIB_MDA_PUTENV=1
16354
16355
16356
16357
16358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
16359 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
16360 if test ${gl_cv_func_lstat_dereferences_slashed_symlink+y}
16361 then :
16362 printf %s "(cached) " >&6
16363 else $as_nop
16364 rm -f conftest.sym conftest.file
16365 echo >conftest.file
16366 if test "$cross_compiling" = yes
16367 then :
16368 case "$host_os" in
16369 linux-* | linux)
16370 # Guess yes on Linux systems.
16371 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
16372 *-gnu* | gnu*)
16373 # Guess yes on glibc systems.
16374 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
16375 mingw*)
16376 # Guess no on native Windows.
16377 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
16378 *)
16379 # If we don't know, obey --enable-cross-guesses.
16380 gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;;
16381 esac
16382
16383 else $as_nop
16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385 /* end confdefs.h. */
16386 $ac_includes_default
16387 int
16388 main (void)
16389 {
16390 struct stat sbuf;
16391 if (symlink ("conftest.file", "conftest.sym") != 0)
16392 return 1;
16393 /* Linux will dereference the symlink and fail, as required by
16394 POSIX. That is better in the sense that it means we will not
16395 have to compile and use the lstat wrapper. */
16396 return lstat ("conftest.sym/", &sbuf) == 0;
16397
16398 ;
16399 return 0;
16400 }
16401 _ACEOF
16402 if ac_fn_c_try_run "$LINENO"
16403 then :
16404 gl_cv_func_lstat_dereferences_slashed_symlink=yes
16405 else $as_nop
16406 gl_cv_func_lstat_dereferences_slashed_symlink=no
16407 fi
16408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16409 conftest.$ac_objext conftest.beam conftest.$ac_ext
16410 fi
16411
16412 rm -f conftest.sym conftest.file
16413
16414 fi
16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
16416 printf "%s\n" "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16417 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
16418 *yes)
16419
16420 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
16421
16422 ;;
16423 esac
16424
16425 ac_func=
16426 for ac_item in $ac_func_c_list
16427 do
16428 if test $ac_func; then
16429 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
16430 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
16431 echo "#define $ac_item 1" >> confdefs.h
16432 fi
16433 ac_func=
16434 else
16435 ac_func=$ac_item
16436 fi
16437 done
16438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
16439 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
16440 if test ${ac_cv_c_undeclared_builtin_options+y}
16441 then :
16442 printf %s "(cached) " >&6
16443 else $as_nop
16444 ac_save_CFLAGS=$CFLAGS
16445 ac_cv_c_undeclared_builtin_options='cannot detect'
16446 for ac_arg in '' -fno-builtin; do
16447 CFLAGS="$ac_save_CFLAGS $ac_arg"
16448 # This test program should *not* compile successfully.
16449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16450 /* end confdefs.h. */
16451
16452 int
16453 main (void)
16454 {
16455 (void) strchr;
16456 ;
16457 return 0;
16458 }
16459 _ACEOF
16460 if ac_fn_c_try_compile "$LINENO"
16461 then :
16462
16463 else $as_nop
16464 # This test program should compile successfully.
16465 # No library function is consistently available on
16466 # freestanding implementations, so test against a dummy
16467 # declaration. Include always-available headers on the
16468 # off chance that they somehow elicit warnings.
16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16471 #include <float.h>
16472 #include <limits.h>
16473 #include <stdarg.h>
16474 #include <stddef.h>
16475 extern void ac_decl (int, char *);
16476
16477 int
16478 main (void)
16479 {
16480 (void) ac_decl (0, (char *) 0);
16481 (void) ac_decl;
16482
16483 ;
16484 return 0;
16485 }
16486 _ACEOF
16487 if ac_fn_c_try_compile "$LINENO"
16488 then :
16489 if test x"$ac_arg" = x
16490 then :
16491 ac_cv_c_undeclared_builtin_options='none needed'
16492 else $as_nop
16493 ac_cv_c_undeclared_builtin_options=$ac_arg
16494 fi
16495 break
16496 fi
16497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16498 fi
16499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16500 done
16501 CFLAGS=$ac_save_CFLAGS
16502
16503 fi
16504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
16505 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
16506 case $ac_cv_c_undeclared_builtin_options in #(
16507 'cannot detect') :
16508 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16509 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16510 as_fn_error $? "cannot make $CC report undeclared builtins
16511 See \`config.log' for more details" "$LINENO" 5; } ;; #(
16512 'none needed') :
16513 ac_c_undeclared_builtin_options='' ;; #(
16514 *) :
16515 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
16516 esac
16517
16518
16519
16520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
16521 printf %s "checking whether // is distinct from /... " >&6; }
16522 if test ${gl_cv_double_slash_root+y}
16523 then :
16524 printf %s "(cached) " >&6
16525 else $as_nop
16526 if test x"$cross_compiling" = xyes ; then
16527 # When cross-compiling, there is no way to tell whether // is special
16528 # short of a list of hosts. However, the only known hosts to date
16529 # that have a distinct // are Apollo DomainOS (too old to port to),
16530 # Cygwin, and z/OS. If anyone knows of another system for which // has
16531 # special semantics and is distinct from /, please report it to
16532 # <[email protected]>.
16533 case $host in
16534 *-cygwin | i370-ibm-openedition)
16535 gl_cv_double_slash_root=yes ;;
16536 *)
16537 # Be optimistic and assume that / and // are the same when we
16538 # don't know.
16539 gl_cv_double_slash_root='unknown, assuming no' ;;
16540 esac
16541 else
16542 set x `ls -di / // 2>/dev/null`
16543 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
16544 gl_cv_double_slash_root=no
16545 else
16546 gl_cv_double_slash_root=yes
16547 fi
16548 fi
16549 fi
16550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
16551 printf "%s\n" "$gl_cv_double_slash_root" >&6; }
16552 if test "$gl_cv_double_slash_root" = yes; then
16553
16554 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
16555
16556 fi
16557
16558
16559
16560
16561
16562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
16563 printf %s "checking whether realpath works... " >&6; }
16564 if test ${gl_cv_func_realpath_works+y}
16565 then :
16566 printf %s "(cached) " >&6
16567 else $as_nop
16568
16569 rm -rf conftest.a conftest.d
16570 touch conftest.a
16571 # Assume that if we have lstat, we can also check symlinks.
16572 if test $ac_cv_func_lstat = yes; then
16573 ln -s conftest.a conftest.l
16574 fi
16575 mkdir conftest.d
16576 if test "$cross_compiling" = yes
16577 then :
16578 case "$host_os" in
16579 # Guess yes on glibc systems.
16580 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
16581 # Guess 'nearly' on musl systems.
16582 *-musl*) gl_cv_func_realpath_works="guessing nearly" ;;
16583 # Guess no on Cygwin.
16584 cygwin*) gl_cv_func_realpath_works="guessing no" ;;
16585 # Guess no on native Windows.
16586 mingw*) gl_cv_func_realpath_works="guessing no" ;;
16587 # If we don't know, obey --enable-cross-guesses.
16588 *) gl_cv_func_realpath_works="$gl_cross_guess_normal" ;;
16589 esac
16590
16591 else $as_nop
16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593 /* end confdefs.h. */
16594
16595
16596
16597 #include <stdlib.h>
16598 #if defined __MACH__ && defined __APPLE__
16599 /* Avoid a crash on Mac OS X. */
16600 #include <mach/mach.h>
16601 #include <mach/mach_error.h>
16602 #include <mach/thread_status.h>
16603 #include <mach/exception.h>
16604 #include <mach/task.h>
16605 #include <pthread.h>
16606 /* The exception port on which our thread listens. */
16607 static mach_port_t our_exception_port;
16608 /* The main function of the thread listening for exceptions of type
16609 EXC_BAD_ACCESS. */
16610 static void *
16611 mach_exception_thread (void *arg)
16612 {
16613 /* Buffer for a message to be received. */
16614 struct {
16615 mach_msg_header_t head;
16616 mach_msg_body_t msgh_body;
16617 char data[1024];
16618 } msg;
16619 mach_msg_return_t retval;
16620 /* Wait for a message on the exception port. */
16621 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
16622 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
16623 if (retval != MACH_MSG_SUCCESS)
16624 abort ();
16625 exit (1);
16626 }
16627 static void
16628 nocrash_init (void)
16629 {
16630 mach_port_t self = mach_task_self ();
16631 /* Allocate a port on which the thread shall listen for exceptions. */
16632 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
16633 == KERN_SUCCESS) {
16634 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
16635 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
16636 MACH_MSG_TYPE_MAKE_SEND)
16637 == KERN_SUCCESS) {
16638 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
16639 for us. */
16640 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
16641 /* Create the thread listening on the exception port. */
16642 pthread_attr_t attr;
16643 pthread_t thread;
16644 if (pthread_attr_init (&attr) == 0
16645 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
16646 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
16647 pthread_attr_destroy (&attr);
16648 /* Replace the exception port info for these exceptions with our own.
16649 Note that we replace the exception port for the entire task, not only
16650 for a particular thread. This has the effect that when our exception
16651 port gets the message, the thread specific exception port has already
16652 been asked, and we don't need to bother about it.
16653 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
16654 task_set_exception_ports (self, mask, our_exception_port,
16655 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
16656 }
16657 }
16658 }
16659 }
16660 #elif defined _WIN32 && ! defined __CYGWIN__
16661 /* Avoid a crash on native Windows. */
16662 #define WIN32_LEAN_AND_MEAN
16663 #include <windows.h>
16664 #include <winerror.h>
16665 static LONG WINAPI
16666 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
16667 {
16668 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
16669 {
16670 case EXCEPTION_ACCESS_VIOLATION:
16671 case EXCEPTION_IN_PAGE_ERROR:
16672 case EXCEPTION_STACK_OVERFLOW:
16673 case EXCEPTION_GUARD_PAGE:
16674 case EXCEPTION_PRIV_INSTRUCTION:
16675 case EXCEPTION_ILLEGAL_INSTRUCTION:
16676 case EXCEPTION_DATATYPE_MISALIGNMENT:
16677 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
16678 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
16679 exit (1);
16680 }
16681 return EXCEPTION_CONTINUE_SEARCH;
16682 }
16683 static void
16684 nocrash_init (void)
16685 {
16686 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
16687 }
16688 #else
16689 /* Avoid a crash on POSIX systems. */
16690 #include <signal.h>
16691 #include <unistd.h>
16692 /* A POSIX signal handler. */
16693 static void
16694 exception_handler (int sig)
16695 {
16696 _exit (1);
16697 }
16698 static void
16699 nocrash_init (void)
16700 {
16701 #ifdef SIGSEGV
16702 signal (SIGSEGV, exception_handler);
16703 #endif
16704 #ifdef SIGBUS
16705 signal (SIGBUS, exception_handler);
16706 #endif
16707 }
16708 #endif
16709
16710 #include <errno.h>
16711 #include <stdlib.h>
16712 #include <string.h>
16713
16714 int
16715 main (void)
16716 {
16717
16718 int result = 0;
16719 /* This test fails on Solaris 10. */
16720 {
16721 char *name = realpath ("conftest.a", NULL);
16722 if (!(name && *name == '/'))
16723 result |= 1;
16724 free (name);
16725 }
16726 /* This test fails on older versions of Cygwin. */
16727 {
16728 char *name = realpath ("conftest.b/../conftest.a", NULL);
16729 if (name != NULL)
16730 result |= 2;
16731 free (name);
16732 }
16733 /* This test fails on Cygwin 2.9. */
16734 #if HAVE_LSTAT
16735 {
16736 char *name = realpath ("conftest.l/../conftest.a", NULL);
16737 if (name != NULL || errno != ENOTDIR)
16738 result |= 4;
16739 free (name);
16740 }
16741 #endif
16742 /* This test fails on Mac OS X 10.13, OpenBSD 6.0. */
16743 {
16744 char *name = realpath ("conftest.a/", NULL);
16745 if (name != NULL)
16746 result |= 8;
16747 free (name);
16748 }
16749 /* This test fails on AIX 7, Solaris 10. */
16750 {
16751 char *name1 = realpath (".", NULL);
16752 char *name2 = realpath ("conftest.d//./..", NULL);
16753 if (! name1 || ! name2 || strcmp (name1, name2))
16754 result |= 16;
16755 free (name1);
16756 free (name2);
16757 }
16758 #ifdef __linux__
16759 /* On Linux, // is the same as /. See also double-slash-root.m4.
16760 realpath() should respect this.
16761 This test fails on musl libc 1.2.2. */
16762 {
16763 char *name = realpath ("//", NULL);
16764 if (! name || strcmp (name, "/"))
16765 result |= 32;
16766 free (name);
16767 }
16768 #endif
16769 return result;
16770
16771 ;
16772 return 0;
16773 }
16774
16775 _ACEOF
16776 if ac_fn_c_try_run "$LINENO"
16777 then :
16778 gl_cv_func_realpath_works=yes
16779 else $as_nop
16780 case $? in
16781 32) gl_cv_func_realpath_works=nearly ;;
16782 *) gl_cv_func_realpath_works=no ;;
16783 esac
16784
16785 fi
16786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16787 conftest.$ac_objext conftest.beam conftest.$ac_ext
16788 fi
16789
16790 rm -rf conftest.a conftest.l conftest.d
16791
16792 fi
16793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
16794 printf "%s\n" "$gl_cv_func_realpath_works" >&6; }
16795 case "$gl_cv_func_realpath_works" in
16796 *yes)
16797
16798 printf "%s\n" "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
16799
16800 ;;
16801 *nearly)
16802
16803 printf "%s\n" "#define FUNC_REALPATH_NEARLY_WORKS 1" >>confdefs.h
16804
16805 ;;
16806 esac
16807
16808
16809
16810
16811
16812
16813
16814
16815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for faccessat" >&5
16816 printf %s "checking for faccessat... " >&6; }
16817 if test ${gl_cv_onwards_func_faccessat+y}
16818 then :
16819 printf %s "(cached) " >&6
16820 else $as_nop
16821
16822 exec 9>&6 6>/dev/null
16823
16824 case "$host_os" in
16825
16826 linux*-android*)
16827 ac_fn_check_decl "$LINENO" "faccessat" "ac_cv_have_decl_faccessat" "#include <unistd.h>
16828 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16829 if test "x$ac_cv_have_decl_faccessat" = xyes
16830 then :
16831
16832 fi
16833 if test $ac_cv_have_decl_faccessat = yes; then
16834 ac_fn_c_check_func "$LINENO" "faccessat" "ac_cv_func_faccessat"
16835 if test "x$ac_cv_func_faccessat" = xyes
16836 then :
16837
16838 fi
16839
16840 if test $ac_cv_func_faccessat = yes; then
16841 gl_cv_onwards_func_faccessat=yes
16842 else
16843 gl_cv_onwards_func_faccessat='future OS version'
16844 fi
16845 else
16846 gl_cv_onwards_func_faccessat='future OS version'
16847 fi
16848 ;;
16849
16850
16851 *)
16852 ac_fn_c_check_func "$LINENO" "faccessat" "ac_cv_func_faccessat"
16853 if test "x$ac_cv_func_faccessat" = xyes
16854 then :
16855
16856 fi
16857
16858 gl_cv_onwards_func_faccessat=$ac_cv_func_faccessat
16859 ;;
16860
16861 esac
16862
16863 exec 6>&9 9>&-
16864
16865
16866 fi
16867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_faccessat" >&5
16868 printf "%s\n" "$gl_cv_onwards_func_faccessat" >&6; }
16869
16870 case "$gl_cv_onwards_func_faccessat" in
16871 future*) ac_cv_func_faccessat=no ;;
16872 *) ac_cv_func_faccessat=$gl_cv_onwards_func_faccessat ;;
16873 esac
16874 if test $ac_cv_func_faccessat = yes; then
16875
16876 printf "%s\n" "#define HAVE_FACCESSAT 1" >>confdefs.h
16877
16878 fi
16879
16880
16881
16882
16883 case "$host_os" in
16884 mingw*) ;;
16885 *) ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
16886 if test "x$ac_cv_func_getcwd" = xyes
16887 then :
16888 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
16889
16890 fi
16891 ;;
16892 esac
16893
16894
16895
16896
16897
16898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16899 printf %s "checking for C/C++ restrict keyword... " >&6; }
16900 if test ${ac_cv_c_restrict+y}
16901 then :
16902 printf %s "(cached) " >&6
16903 else $as_nop
16904 ac_cv_c_restrict=no
16905 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
16906 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
16907 # Put 'restrict' last, because C++ lacks it.
16908 for ac_kw in __restrict__ __restrict _Restrict restrict; do
16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16911 typedef int *int_ptr;
16912 int foo (int_ptr $ac_kw ip) { return ip[0]; }
16913 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
16914 int bar (int ip[$ac_kw]) { return ip[0]; }
16915
16916 int
16917 main (void)
16918 {
16919 int s[1];
16920 int *$ac_kw t = s;
16921 t[0] = 0;
16922 return foo (t) + bar (t);
16923
16924 ;
16925 return 0;
16926 }
16927 _ACEOF
16928 if ac_fn_c_try_compile "$LINENO"
16929 then :
16930 ac_cv_c_restrict=$ac_kw
16931 fi
16932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16933 test "$ac_cv_c_restrict" != no && break
16934 done
16935
16936 fi
16937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16938 printf "%s\n" "$ac_cv_c_restrict" >&6; }
16939
16940 case $ac_cv_c_restrict in
16941 restrict) ;;
16942 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
16943 ;;
16944 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
16945 ;;
16946 esac
16947
16948
16949 HAVE_CHOWN=1;
16950 HAVE_COPY_FILE_RANGE=1;
16951 HAVE_DUP3=1;
16952 HAVE_EUIDACCESS=1;
16953 HAVE_EXECVPE=1;
16954 HAVE_FACCESSAT=1;
16955 HAVE_FCHDIR=1;
16956 HAVE_FCHOWNAT=1;
16957 HAVE_FDATASYNC=1;
16958 HAVE_FSYNC=1;
16959 HAVE_FTRUNCATE=1;
16960 HAVE_GETDTABLESIZE=1;
16961 HAVE_GETENTROPY=1;
16962 HAVE_GETGROUPS=1;
16963 HAVE_GETHOSTNAME=1;
16964 HAVE_GETLOGIN=1;
16965 HAVE_GETPAGESIZE=1;
16966 HAVE_GETPASS=1;
16967 HAVE_GROUP_MEMBER=1;
16968 HAVE_LCHOWN=1;
16969 HAVE_LINK=1;
16970 HAVE_LINKAT=1;
16971 HAVE_PIPE=1;
16972 HAVE_PIPE2=1;
16973 HAVE_PREAD=1;
16974 HAVE_PWRITE=1;
16975 HAVE_READLINK=1;
16976 HAVE_READLINKAT=1;
16977 HAVE_SETHOSTNAME=1;
16978 HAVE_SLEEP=1;
16979 HAVE_SYMLINK=1;
16980 HAVE_SYMLINKAT=1;
16981 HAVE_UNLINKAT=1;
16982 HAVE_USLEEP=1;
16983 HAVE_DECL_ENVIRON=1;
16984 HAVE_DECL_EXECVPE=1;
16985 HAVE_DECL_FCHDIR=1;
16986 HAVE_DECL_FDATASYNC=1;
16987 HAVE_DECL_GETDOMAINNAME=1;
16988 HAVE_DECL_GETLOGIN=1;
16989 HAVE_DECL_GETLOGIN_R=1;
16990 HAVE_DECL_GETPAGESIZE=1;
16991 HAVE_DECL_GETUSERSHELL=1;
16992 HAVE_DECL_SETHOSTNAME=1;
16993 HAVE_DECL_TRUNCATE=1;
16994 HAVE_DECL_TTYNAME_R=1;
16995 HAVE_OS_H=0;
16996 HAVE_SYS_PARAM_H=0;
16997 REPLACE_ACCESS=0;
16998 REPLACE_CHOWN=0;
16999 REPLACE_CLOSE=0;
17000 REPLACE_COPY_FILE_RANGE=0;
17001 REPLACE_DUP=0;
17002 REPLACE_DUP2=0;
17003 REPLACE_DUP3=0;
17004 REPLACE_EXECL=0;
17005 REPLACE_EXECLE=0;
17006 REPLACE_EXECLP=0;
17007 REPLACE_EXECV=0;
17008 REPLACE_EXECVE=0;
17009 REPLACE_EXECVP=0;
17010 REPLACE_EXECVPE=0;
17011 REPLACE_FACCESSAT=0;
17012 REPLACE_FCHOWNAT=0;
17013 REPLACE_FDATASYNC=0;
17014 REPLACE_FTRUNCATE=0;
17015 REPLACE_GETCWD=0;
17016 REPLACE_GETDOMAINNAME=0;
17017 REPLACE_GETDTABLESIZE=0;
17018 REPLACE_GETENTROPY=0;
17019 REPLACE_GETLOGIN_R=0;
17020 REPLACE_GETGROUPS=0;
17021 REPLACE_GETPAGESIZE=0;
17022 REPLACE_GETPASS=0;
17023 REPLACE_GETPASS_FOR_GETPASS_GNU=0;
17024 REPLACE_ISATTY=0;
17025 REPLACE_LCHOWN=0;
17026 REPLACE_LINK=0;
17027 REPLACE_LINKAT=0;
17028 REPLACE_LSEEK=0;
17029 REPLACE_PIPE2=0;
17030 REPLACE_PREAD=0;
17031 REPLACE_PWRITE=0;
17032 REPLACE_READ=0;
17033 REPLACE_READLINK=0;
17034 REPLACE_READLINKAT=0;
17035 REPLACE_RMDIR=0;
17036 REPLACE_SETHOSTNAME=0;
17037 REPLACE_SLEEP=0;
17038 REPLACE_SYMLINK=0;
17039 REPLACE_SYMLINKAT=0;
17040 REPLACE_TRUNCATE=0;
17041 REPLACE_TTYNAME_R=0;
17042 REPLACE_UNLINK=0;
17043 REPLACE_UNLINKAT=0;
17044 REPLACE_USLEEP=0;
17045 REPLACE_WRITE=0;
17046 UNISTD_H_HAVE_SYS_RANDOM_H=0;
17047 UNISTD_H_HAVE_WINSOCK2_H=0;
17048 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
17049
17050
17051
17052
17053
17054 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
17055 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
17056
17057 printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
17058
17059 else
17060 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
17061 fi
17062
17063
17064
17065
17066
17067 GL_GL_PAPER_GNULIB_ACCESS=0
17068
17069
17070
17071 GL_GL_PAPER_GNULIB_CHDIR=0
17072
17073
17074
17075 GL_GL_PAPER_GNULIB_CHOWN=0
17076
17077
17078
17079 GL_GL_PAPER_GNULIB_CLOSE=0
17080
17081
17082
17083 GL_GL_PAPER_GNULIB_COPY_FILE_RANGE=0
17084
17085
17086
17087 GL_GL_PAPER_GNULIB_DUP=0
17088
17089
17090
17091 GL_GL_PAPER_GNULIB_DUP2=0
17092
17093
17094
17095 GL_GL_PAPER_GNULIB_DUP3=0
17096
17097
17098
17099 GL_GL_PAPER_GNULIB_ENVIRON=0
17100
17101
17102
17103 GL_GL_PAPER_GNULIB_EUIDACCESS=0
17104
17105
17106
17107 GL_GL_PAPER_GNULIB_EXECL=0
17108
17109
17110
17111 GL_GL_PAPER_GNULIB_EXECLE=0
17112
17113
17114
17115 GL_GL_PAPER_GNULIB_EXECLP=0
17116
17117
17118
17119 GL_GL_PAPER_GNULIB_EXECV=0
17120
17121
17122
17123 GL_GL_PAPER_GNULIB_EXECVE=0
17124
17125
17126
17127 GL_GL_PAPER_GNULIB_EXECVP=0
17128
17129
17130
17131 GL_GL_PAPER_GNULIB_EXECVPE=0
17132
17133
17134
17135 GL_GL_PAPER_GNULIB_FACCESSAT=0
17136
17137
17138
17139 GL_GL_PAPER_GNULIB_FCHDIR=0
17140
17141
17142
17143 GL_GL_PAPER_GNULIB_FCHOWNAT=0
17144
17145
17146
17147 GL_GL_PAPER_GNULIB_FDATASYNC=0
17148
17149
17150
17151 GL_GL_PAPER_GNULIB_FSYNC=0
17152
17153
17154
17155 GL_GL_PAPER_GNULIB_FTRUNCATE=0
17156
17157
17158
17159 GL_GL_PAPER_GNULIB_GETCWD=0
17160
17161
17162
17163 GL_GL_PAPER_GNULIB_GETDOMAINNAME=0
17164
17165
17166
17167 GL_GL_PAPER_GNULIB_GETDTABLESIZE=0
17168
17169
17170
17171 GL_GL_PAPER_GNULIB_GETENTROPY=0
17172
17173
17174
17175 GL_GL_PAPER_GNULIB_GETGROUPS=0
17176
17177
17178
17179 GL_GL_PAPER_GNULIB_GETHOSTNAME=0
17180
17181
17182
17183 GL_GL_PAPER_GNULIB_GETLOGIN=0
17184
17185
17186
17187 GL_GL_PAPER_GNULIB_GETLOGIN_R=0
17188
17189
17190
17191 GL_GL_PAPER_GNULIB_GETOPT_POSIX=0
17192
17193
17194
17195 GL_GL_PAPER_GNULIB_GETPAGESIZE=0
17196
17197
17198
17199 GL_GL_PAPER_GNULIB_GETPASS=0
17200
17201
17202
17203 GL_GL_PAPER_GNULIB_GETPASS_GNU=0
17204
17205
17206
17207 GL_GL_PAPER_GNULIB_GETUSERSHELL=0
17208
17209
17210
17211 GL_GL_PAPER_GNULIB_GROUP_MEMBER=0
17212
17213
17214
17215 GL_GL_PAPER_GNULIB_ISATTY=0
17216
17217
17218
17219 GL_GL_PAPER_GNULIB_LCHOWN=0
17220
17221
17222
17223 GL_GL_PAPER_GNULIB_LINK=0
17224
17225
17226
17227 GL_GL_PAPER_GNULIB_LINKAT=0
17228
17229
17230
17231 GL_GL_PAPER_GNULIB_LSEEK=0
17232
17233
17234
17235 GL_GL_PAPER_GNULIB_PIPE=0
17236
17237
17238
17239 GL_GL_PAPER_GNULIB_PIPE2=0
17240
17241
17242
17243 GL_GL_PAPER_GNULIB_PREAD=0
17244
17245
17246
17247 GL_GL_PAPER_GNULIB_PWRITE=0
17248
17249
17250
17251 GL_GL_PAPER_GNULIB_READ=0
17252
17253
17254
17255 GL_GL_PAPER_GNULIB_READLINK=0
17256
17257
17258
17259 GL_GL_PAPER_GNULIB_READLINKAT=0
17260
17261
17262
17263 GL_GL_PAPER_GNULIB_RMDIR=0
17264
17265
17266
17267 GL_GL_PAPER_GNULIB_SETHOSTNAME=0
17268
17269
17270
17271 GL_GL_PAPER_GNULIB_SLEEP=0
17272
17273
17274
17275 GL_GL_PAPER_GNULIB_SYMLINK=0
17276
17277
17278
17279 GL_GL_PAPER_GNULIB_SYMLINKAT=0
17280
17281
17282
17283 GL_GL_PAPER_GNULIB_TRUNCATE=0
17284
17285
17286
17287 GL_GL_PAPER_GNULIB_TTYNAME_R=0
17288
17289
17290
17291 GL_GL_PAPER_GNULIB_UNISTD_H_GETOPT=0
17292
17293
17294
17295 GL_GL_PAPER_GNULIB_UNISTD_H_NONBLOCKING=0
17296
17297
17298
17299 GL_GL_PAPER_GNULIB_UNISTD_H_SIGPIPE=0
17300
17301
17302
17303 GL_GL_PAPER_GNULIB_UNLINK=0
17304
17305
17306
17307 GL_GL_PAPER_GNULIB_UNLINKAT=0
17308
17309
17310
17311 GL_GL_PAPER_GNULIB_USLEEP=0
17312
17313
17314
17315 GL_GL_PAPER_GNULIB_WRITE=0
17316
17317
17318
17319 GL_GL_PAPER_GNULIB_MDA_ACCESS=1
17320
17321
17322
17323 GL_GL_PAPER_GNULIB_MDA_CHDIR=1
17324
17325
17326
17327 GL_GL_PAPER_GNULIB_MDA_CLOSE=1
17328
17329
17330
17331 GL_GL_PAPER_GNULIB_MDA_DUP=1
17332
17333
17334
17335 GL_GL_PAPER_GNULIB_MDA_DUP2=1
17336
17337
17338
17339 GL_GL_PAPER_GNULIB_MDA_EXECL=1
17340
17341
17342
17343 GL_GL_PAPER_GNULIB_MDA_EXECLE=1
17344
17345
17346
17347 GL_GL_PAPER_GNULIB_MDA_EXECLP=1
17348
17349
17350
17351 GL_GL_PAPER_GNULIB_MDA_EXECV=1
17352
17353
17354
17355 GL_GL_PAPER_GNULIB_MDA_EXECVE=1
17356
17357
17358
17359 GL_GL_PAPER_GNULIB_MDA_EXECVP=1
17360
17361
17362
17363 GL_GL_PAPER_GNULIB_MDA_EXECVPE=1
17364
17365
17366
17367 GL_GL_PAPER_GNULIB_MDA_GETCWD=1
17368
17369
17370
17371 GL_GL_PAPER_GNULIB_MDA_GETPID=1
17372
17373
17374
17375 GL_GL_PAPER_GNULIB_MDA_ISATTY=1
17376
17377
17378
17379 GL_GL_PAPER_GNULIB_MDA_LSEEK=1
17380
17381
17382
17383 GL_GL_PAPER_GNULIB_MDA_READ=1
17384
17385
17386
17387 GL_GL_PAPER_GNULIB_MDA_RMDIR=1
17388
17389
17390
17391 GL_GL_PAPER_GNULIB_MDA_SWAB=1
17392
17393
17394
17395 GL_GL_PAPER_GNULIB_MDA_UNLINK=1
17396
17397
17398
17399 GL_GL_PAPER_GNULIB_MDA_WRITE=1
17400
17401
17402
17403 gl_mda_defines='
17404 #if defined _WIN32 && !defined __CYGWIN__
17405 #define access _access
17406 #define chdir _chdir
17407 #define chmod _chmod
17408 #define close _close
17409 #define creat _creat
17410 #define dup _dup
17411 #define dup2 _dup2
17412 #define ecvt _ecvt
17413 #define execl _execl
17414 #define execle _execle
17415 #define execlp _execlp
17416 #define execv _execv
17417 #define execve _execve
17418 #define execvp _execvp
17419 #define execvpe _execvpe
17420 #define fcloseall _fcloseall
17421 #define fcvt _fcvt
17422 #define fdopen _fdopen
17423 #define fileno _fileno
17424 #define gcvt _gcvt
17425 #define getcwd _getcwd
17426 #define getpid _getpid
17427 #define getw _getw
17428 #define isatty _isatty
17429 #define j0 _j0
17430 #define j1 _j1
17431 #define jn _jn
17432 #define lfind _lfind
17433 #define lsearch _lsearch
17434 #define lseek _lseek
17435 #define memccpy _memccpy
17436 #define mkdir _mkdir
17437 #define mktemp _mktemp
17438 #define open _open
17439 #define putenv _putenv
17440 #define putw _putw
17441 #define read _read
17442 #define rmdir _rmdir
17443 #define strdup _strdup
17444 #define swab _swab
17445 #define tempnam _tempnam
17446 #define tzset _tzset
17447 #define umask _umask
17448 #define unlink _unlink
17449 #define utime _utime
17450 #define wcsdup _wcsdup
17451 #define write _write
17452 #define y0 _y0
17453 #define y1 _y1
17454 #define yn _yn
17455 #endif
17456 '
17457
17458
17459
17460
17461
17462
17463
17464
17465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
17466 printf %s "checking if environ is properly declared... " >&6; }
17467 if test ${gt_cv_var_environ_declaration+y}
17468 then :
17469 printf %s "(cached) " >&6
17470 else $as_nop
17471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17472 /* end confdefs.h. */
17473 #if HAVE_UNISTD_H
17474 #include <unistd.h>
17475 #endif
17476 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17477 #include <stdlib.h>
17478
17479 typedef struct { int foo; } foo_t;
17480 extern foo_t environ;
17481 int
17482 main (void)
17483 {
17484 environ.foo = 1;
17485 ;
17486 return 0;
17487 }
17488 _ACEOF
17489 if ac_fn_c_try_compile "$LINENO"
17490 then :
17491 gt_cv_var_environ_declaration=no
17492 else $as_nop
17493 gt_cv_var_environ_declaration=yes
17494 fi
17495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17496 fi
17497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
17498 printf "%s\n" "$gt_cv_var_environ_declaration" >&6; }
17499 if test $gt_cv_var_environ_declaration = yes; then
17500
17501 printf "%s\n" "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
17502
17503 fi
17504
17505
17506 if test $gt_cv_var_environ_declaration != yes; then
17507 HAVE_DECL_ENVIRON=0
17508 fi
17509
17510
17511
17512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
17513 printf %s "checking for complete errno.h... " >&6; }
17514 if test ${gl_cv_header_errno_h_complete+y}
17515 then :
17516 printf %s "(cached) " >&6
17517 else $as_nop
17518
17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520 /* end confdefs.h. */
17521
17522 #include <errno.h>
17523 #if !defined ETXTBSY
17524 booboo
17525 #endif
17526 #if !defined ENOMSG
17527 booboo
17528 #endif
17529 #if !defined EIDRM
17530 booboo
17531 #endif
17532 #if !defined ENOLINK
17533 booboo
17534 #endif
17535 #if !defined EPROTO
17536 booboo
17537 #endif
17538 #if !defined EMULTIHOP
17539 booboo
17540 #endif
17541 #if !defined EBADMSG
17542 booboo
17543 #endif
17544 #if !defined EOVERFLOW
17545 booboo
17546 #endif
17547 #if !defined ENOTSUP
17548 booboo
17549 #endif
17550 #if !defined ENETRESET
17551 booboo
17552 #endif
17553 #if !defined ECONNABORTED
17554 booboo
17555 #endif
17556 #if !defined ESTALE
17557 booboo
17558 #endif
17559 #if !defined EDQUOT
17560 booboo
17561 #endif
17562 #if !defined ECANCELED
17563 booboo
17564 #endif
17565 #if !defined EOWNERDEAD
17566 booboo
17567 #endif
17568 #if !defined ENOTRECOVERABLE
17569 booboo
17570 #endif
17571 #if !defined EILSEQ
17572 booboo
17573 #endif
17574
17575 _ACEOF
17576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17577 $EGREP "booboo" >/dev/null 2>&1
17578 then :
17579 gl_cv_header_errno_h_complete=no
17580 else $as_nop
17581 gl_cv_header_errno_h_complete=yes
17582 fi
17583 rm -rf conftest*
17584
17585
17586 fi
17587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
17588 printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; }
17589 if test $gl_cv_header_errno_h_complete = yes; then
17590 GL_GENERATE_ERRNO_H=false
17591 else
17592
17593
17594
17595
17596
17597
17598
17599
17600 if test $gl_cv_have_include_next = yes; then
17601 gl_cv_next_errno_h='<'errno.h'>'
17602 else
17603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
17604 printf %s "checking absolute name of <errno.h>... " >&6; }
17605 if test ${gl_cv_next_errno_h+y}
17606 then :
17607 printf %s "(cached) " >&6
17608 else $as_nop
17609
17610
17611
17612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17613 /* end confdefs.h. */
17614 #include <errno.h>
17615 _ACEOF
17616 case "$host_os" in
17617 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17618 *) gl_absname_cpp="$ac_cpp" ;;
17619 esac
17620
17621 case "$host_os" in
17622 mingw*)
17623 gl_dirsep_regex='[/\\]'
17624 ;;
17625 *)
17626 gl_dirsep_regex='\/'
17627 ;;
17628 esac
17629 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17630 gl_header_literal_regex=`echo 'errno.h' \
17631 | sed -e "$gl_make_literal_regex_sed"`
17632 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17633 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17634 s|^/[^/]|//&|
17635 p
17636 q
17637 }'
17638
17639 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17640 sed -n "$gl_absolute_header_sed"`
17641
17642 gl_header=$gl_cv_absolute_errno_h
17643 gl_cv_next_errno_h='"'$gl_header'"'
17644
17645
17646 fi
17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
17648 printf "%s\n" "$gl_cv_next_errno_h" >&6; }
17649 fi
17650 NEXT_ERRNO_H=$gl_cv_next_errno_h
17651
17652 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17653 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17654 gl_next_as_first_directive='<'errno.h'>'
17655 else
17656 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17657 gl_next_as_first_directive=$gl_cv_next_errno_h
17658 fi
17659 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
17660
17661
17662
17663
17664 GL_GENERATE_ERRNO_H=true
17665 fi
17666
17667 if $GL_GENERATE_ERRNO_H; then
17668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
17669 printf %s "checking for EMULTIHOP value... " >&6; }
17670 if test ${gl_cv_header_errno_h_EMULTIHOP+y}
17671 then :
17672 printf %s "(cached) " >&6
17673 else $as_nop
17674
17675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17676 /* end confdefs.h. */
17677
17678 #include <errno.h>
17679 #ifdef EMULTIHOP
17680 yes
17681 #endif
17682
17683 _ACEOF
17684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17685 $EGREP "yes" >/dev/null 2>&1
17686 then :
17687 gl_cv_header_errno_h_EMULTIHOP=yes
17688 else $as_nop
17689 gl_cv_header_errno_h_EMULTIHOP=no
17690 fi
17691 rm -rf conftest*
17692
17693 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
17694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17695 /* end confdefs.h. */
17696
17697 #define _XOPEN_SOURCE_EXTENDED 1
17698 #include <errno.h>
17699 #ifdef EMULTIHOP
17700 yes
17701 #endif
17702
17703 _ACEOF
17704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17705 $EGREP "yes" >/dev/null 2>&1
17706 then :
17707 gl_cv_header_errno_h_EMULTIHOP=hidden
17708 fi
17709 rm -rf conftest*
17710
17711 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
17712 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
17713 #define _XOPEN_SOURCE_EXTENDED 1
17714 #include <errno.h>
17715 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17716 #include <stdio.h>
17717 #include <stdlib.h>
17718 "
17719 then :
17720
17721 fi
17722
17723 fi
17724 fi
17725
17726 fi
17727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
17728 printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
17729 case $gl_cv_header_errno_h_EMULTIHOP in
17730 yes | no)
17731 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
17732 ;;
17733 *)
17734 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
17735 ;;
17736 esac
17737
17738
17739 fi
17740
17741
17742 if $GL_GENERATE_ERRNO_H; then
17743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
17744 printf %s "checking for ENOLINK value... " >&6; }
17745 if test ${gl_cv_header_errno_h_ENOLINK+y}
17746 then :
17747 printf %s "(cached) " >&6
17748 else $as_nop
17749
17750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751 /* end confdefs.h. */
17752
17753 #include <errno.h>
17754 #ifdef ENOLINK
17755 yes
17756 #endif
17757
17758 _ACEOF
17759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17760 $EGREP "yes" >/dev/null 2>&1
17761 then :
17762 gl_cv_header_errno_h_ENOLINK=yes
17763 else $as_nop
17764 gl_cv_header_errno_h_ENOLINK=no
17765 fi
17766 rm -rf conftest*
17767
17768 if test $gl_cv_header_errno_h_ENOLINK = no; then
17769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17770 /* end confdefs.h. */
17771
17772 #define _XOPEN_SOURCE_EXTENDED 1
17773 #include <errno.h>
17774 #ifdef ENOLINK
17775 yes
17776 #endif
17777
17778 _ACEOF
17779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17780 $EGREP "yes" >/dev/null 2>&1
17781 then :
17782 gl_cv_header_errno_h_ENOLINK=hidden
17783 fi
17784 rm -rf conftest*
17785
17786 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
17787 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
17788 #define _XOPEN_SOURCE_EXTENDED 1
17789 #include <errno.h>
17790 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17791 #include <stdio.h>
17792 #include <stdlib.h>
17793 "
17794 then :
17795
17796 fi
17797
17798 fi
17799 fi
17800
17801 fi
17802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
17803 printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; }
17804 case $gl_cv_header_errno_h_ENOLINK in
17805 yes | no)
17806 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
17807 ;;
17808 *)
17809 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
17810 ;;
17811 esac
17812
17813
17814 fi
17815
17816
17817 if $GL_GENERATE_ERRNO_H; then
17818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
17819 printf %s "checking for EOVERFLOW value... " >&6; }
17820 if test ${gl_cv_header_errno_h_EOVERFLOW+y}
17821 then :
17822 printf %s "(cached) " >&6
17823 else $as_nop
17824
17825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h. */
17827
17828 #include <errno.h>
17829 #ifdef EOVERFLOW
17830 yes
17831 #endif
17832
17833 _ACEOF
17834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17835 $EGREP "yes" >/dev/null 2>&1
17836 then :
17837 gl_cv_header_errno_h_EOVERFLOW=yes
17838 else $as_nop
17839 gl_cv_header_errno_h_EOVERFLOW=no
17840 fi
17841 rm -rf conftest*
17842
17843 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
17844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h. */
17846
17847 #define _XOPEN_SOURCE_EXTENDED 1
17848 #include <errno.h>
17849 #ifdef EOVERFLOW
17850 yes
17851 #endif
17852
17853 _ACEOF
17854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17855 $EGREP "yes" >/dev/null 2>&1
17856 then :
17857 gl_cv_header_errno_h_EOVERFLOW=hidden
17858 fi
17859 rm -rf conftest*
17860
17861 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
17862 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
17863 #define _XOPEN_SOURCE_EXTENDED 1
17864 #include <errno.h>
17865 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17866 #include <stdio.h>
17867 #include <stdlib.h>
17868 "
17869 then :
17870
17871 fi
17872
17873 fi
17874 fi
17875
17876 fi
17877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
17878 printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
17879 case $gl_cv_header_errno_h_EOVERFLOW in
17880 yes | no)
17881 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
17882 ;;
17883 *)
17884 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
17885 ;;
17886 esac
17887
17888
17889 fi
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904 if test $gl_cv_have_include_next = yes; then
17905 gl_cv_next_error_h='<'error.h'>'
17906 else
17907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <error.h>" >&5
17908 printf %s "checking absolute name of <error.h>... " >&6; }
17909 if test ${gl_cv_next_error_h+y}
17910 then :
17911 printf %s "(cached) " >&6
17912 else $as_nop
17913
17914 if test $ac_cv_header_error_h = yes; then
17915
17916
17917
17918
17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h. */
17921 #include <error.h>
17922 _ACEOF
17923 case "$host_os" in
17924 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17925 *) gl_absname_cpp="$ac_cpp" ;;
17926 esac
17927
17928 case "$host_os" in
17929 mingw*)
17930 gl_dirsep_regex='[/\\]'
17931 ;;
17932 *)
17933 gl_dirsep_regex='\/'
17934 ;;
17935 esac
17936 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17937 gl_header_literal_regex=`echo 'error.h' \
17938 | sed -e "$gl_make_literal_regex_sed"`
17939 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17940 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17941 s|^/[^/]|//&|
17942 p
17943 q
17944 }'
17945
17946 gl_cv_absolute_error_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17947 sed -n "$gl_absolute_header_sed"`
17948
17949 gl_header=$gl_cv_absolute_error_h
17950 gl_cv_next_error_h='"'$gl_header'"'
17951 else
17952 gl_cv_next_error_h='<'error.h'>'
17953 fi
17954
17955
17956 fi
17957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_error_h" >&5
17958 printf "%s\n" "$gl_cv_next_error_h" >&6; }
17959 fi
17960 NEXT_ERROR_H=$gl_cv_next_error_h
17961
17962 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17963 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17964 gl_next_as_first_directive='<'error.h'>'
17965 else
17966 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17967 gl_next_as_first_directive=$gl_cv_next_error_h
17968 fi
17969 NEXT_AS_FIRST_DIRECTIVE_ERROR_H=$gl_next_as_first_directive
17970
17971
17972
17973
17974 if test $ac_cv_header_error_h = yes; then
17975 HAVE_ERROR_H=1
17976 else
17977 HAVE_ERROR_H=0
17978 fi
17979
17980
17981 REPLACE_ERROR=0
17982
17983
17984
17985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error" >&5
17986 printf %s "checking for error... " >&6; }
17987 if test ${gl_cv_onwards_func_error+y}
17988 then :
17989 printf %s "(cached) " >&6
17990 else $as_nop
17991
17992 exec 9>&6 6>/dev/null
17993
17994 case "$host_os" in
17995
17996 linux*-android*)
17997 ac_fn_check_decl "$LINENO" "error" "ac_cv_have_decl_error" "#include <error.h>
17998 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17999 if test "x$ac_cv_have_decl_error" = xyes
18000 then :
18001
18002 fi
18003 if test $ac_cv_have_decl_error = yes; then
18004 ac_fn_c_check_func "$LINENO" "error" "ac_cv_func_error"
18005 if test "x$ac_cv_func_error" = xyes
18006 then :
18007
18008 fi
18009
18010 if test $ac_cv_func_error = yes; then
18011 gl_cv_onwards_func_error=yes
18012 else
18013 gl_cv_onwards_func_error='future OS version'
18014 fi
18015 else
18016 gl_cv_onwards_func_error='future OS version'
18017 fi
18018 ;;
18019
18020
18021 *)
18022 ac_fn_c_check_func "$LINENO" "error" "ac_cv_func_error"
18023 if test "x$ac_cv_func_error" = xyes
18024 then :
18025
18026 fi
18027
18028 gl_cv_onwards_func_error=$ac_cv_func_error
18029 ;;
18030
18031 esac
18032
18033 exec 6>&9 9>&-
18034
18035
18036 fi
18037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_error" >&5
18038 printf "%s\n" "$gl_cv_onwards_func_error" >&6; }
18039
18040 case "$gl_cv_onwards_func_error" in
18041 future*) ac_cv_func_error=no ;;
18042 *) ac_cv_func_error=$gl_cv_onwards_func_error ;;
18043 esac
18044 if test $ac_cv_func_error = yes; then
18045
18046 printf "%s\n" "#define HAVE_ERROR 1" >>confdefs.h
18047
18048 fi
18049
18050
18051 if test $ac_cv_func_error = yes; then
18052 HAVE_ERROR=1
18053 else
18054 HAVE_ERROR=0
18055 case "$gl_cv_onwards_func_error" in
18056 future*) REPLACE_ERROR=1 ;;
18057 esac
18058 fi
18059
18060 ac_fn_check_decl "$LINENO" "error_at_line" "ac_cv_have_decl_error_at_line" "#include <error.h>
18061 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18062 if test "x$ac_cv_have_decl_error_at_line" = xyes
18063 then :
18064
18065 fi
18066 if test $ac_cv_have_decl_error_at_line = yes; then
18067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
18068 printf %s "checking for error_at_line... " >&6; }
18069 if test ${ac_cv_lib_error_at_line+y}
18070 then :
18071 printf %s "(cached) " >&6
18072 else $as_nop
18073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18074 /* end confdefs.h. */
18075 #include <error.h>
18076 int
18077 main (void)
18078 {
18079 error_at_line (0, 0, "", 0, "an error occurred");
18080 ;
18081 return 0;
18082 }
18083 _ACEOF
18084 if ac_fn_c_try_link "$LINENO"
18085 then :
18086 ac_cv_lib_error_at_line=yes
18087 else $as_nop
18088 ac_cv_lib_error_at_line=no
18089 fi
18090 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18091 conftest$ac_exeext conftest.$ac_ext
18092 fi
18093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
18094 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
18095 else
18096 ac_cv_lib_error_at_line=no
18097 fi
18098 if test $ac_cv_lib_error_at_line = yes; then
18099 HAVE_ERROR_AT_LINE=1
18100 else
18101 HAVE_ERROR_AT_LINE=0
18102 fi
18103 REPLACE_ERROR_AT_LINE=0
18104
18105 if test $ac_cv_func_error = yes && test $ac_cv_lib_error_at_line = yes; then
18106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working error function" >&5
18107 printf %s "checking for working error function... " >&6; }
18108 if test ${gl_cv_func_working_error+y}
18109 then :
18110 printf %s "(cached) " >&6
18111 else $as_nop
18112 if test $cross_compiling != yes; then
18113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h. */
18115
18116 #include <error.h>
18117 static void print_no_progname (void) {}
18118
18119 int
18120 main (void)
18121 {
18122
18123 error_print_progname = print_no_progname;
18124 error (0, 0, "foo");
18125
18126 ;
18127 return 0;
18128 }
18129
18130 _ACEOF
18131 if ac_fn_c_try_link "$LINENO"
18132 then :
18133 rm -f conftest.out
18134 if test -s conftest$ac_exeext \
18135 && ./conftest$ac_exeext 2> conftest.out; then
18136 if grep ' ' conftest.out >/dev/null; then
18137 gl_cv_func_working_error=no
18138 else
18139 gl_cv_func_working_error=yes
18140 fi
18141 else
18142 gl_cv_func_working_error=no
18143 fi
18144 rm -f conftest.out
18145
18146 else $as_nop
18147 gl_cv_func_working_error=no
18148 fi
18149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18150 conftest$ac_exeext conftest.$ac_ext
18151 else
18152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18153 /* end confdefs.h. */
18154
18155 #include <error.h>
18156
18157 int
18158 main (void)
18159 {
18160
18161 error (0, 0, "foo");
18162
18163 ;
18164 return 0;
18165 }
18166
18167 _ACEOF
18168 if ac_fn_c_try_compile "$LINENO"
18169 then :
18170 case "$host_os" in
18171 # Guess yes on glibc systems.
18172 *-gnu* | gnu*) gl_cv_func_working_error="guessing yes" ;;
18173 # Guess no on Android.
18174 linux*-android*) gl_cv_func_working_error="guessing no" ;;
18175 # If we don't know, obey --enable-cross-guesses.
18176 *) gl_cv_func_working_error="$gl_cross_guess_normal" ;;
18177 esac
18178
18179 else $as_nop
18180 gl_cv_func_working_error=no
18181 fi
18182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18183 fi
18184
18185 fi
18186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_error" >&5
18187 printf "%s\n" "$gl_cv_func_working_error" >&6; }
18188 case "$gl_cv_func_working_error" in
18189 *no)
18190 REPLACE_ERROR=1
18191 REPLACE_ERROR_AT_LINE=1
18192 ;;
18193 esac
18194 fi
18195
18196 if test $HAVE_ERROR = 0 || test $REPLACE_ERROR = 1 \
18197 || test $HAVE_ERROR_AT_LINE = 0 || test $REPLACE_ERROR_AT_LINE = 1; then
18198 GL_GENERATE_ERROR_H=true
18199 else
18200 GL_GENERATE_ERROR_H=false
18201 fi
18202
18203
18204
18205
18206
18207
18208 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18209 if test "x$ac_cv_have_decl_strerror_r" = xyes
18210 then :
18211 ac_have_decl=1
18212 else $as_nop
18213 ac_have_decl=0
18214 fi
18215 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
18216
18217
18218 if test $ac_cv_have_decl_strerror_r = yes; then
18219 # For backward compatibility's sake, define HAVE_STRERROR_R.
18220 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
18221 # as AC_CHECK_DECLS_ONCE.)
18222
18223 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
18224
18225 fi
18226
18227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
18228 printf %s "checking whether strerror_r returns char *... " >&6; }
18229 if test ${ac_cv_func_strerror_r_char_p+y}
18230 then :
18231 printf %s "(cached) " >&6
18232 else $as_nop
18233
18234 ac_cv_func_strerror_r_char_p=no
18235 if test $ac_cv_have_decl_strerror_r = yes; then
18236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18237 /* end confdefs.h. */
18238 #include <string.h>
18239 int
18240 main (void)
18241 {
18242
18243 char buf[100];
18244 char x = *strerror_r (0, buf, sizeof buf);
18245 char *p = strerror_r (0, buf, sizeof buf);
18246 return !p || x;
18247
18248 ;
18249 return 0;
18250 }
18251 _ACEOF
18252 if ac_fn_c_try_compile "$LINENO"
18253 then :
18254 ac_cv_func_strerror_r_char_p=yes
18255 fi
18256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18257
18258 fi
18259
18260 fi
18261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
18262 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
18263 if test $ac_cv_func_strerror_r_char_p = yes; then
18264
18265 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
18266
18267 fi
18268
18269
18270 XGETTEXT_EXTRA_OPTIONS=
18271
18272
18273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctype.h defines __header_inline" >&5
18274 printf %s "checking whether ctype.h defines __header_inline... " >&6; }
18275 if test ${gl_cv_have___header_inline+y}
18276 then :
18277 printf %s "(cached) " >&6
18278 else $as_nop
18279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18280 /* end confdefs.h. */
18281 #include <ctype.h>
18282 #ifndef __header_inline
18283 #error "<ctype.h> does not define __header_inline"
18284 #endif
18285
18286 _ACEOF
18287 if ac_fn_c_try_cpp "$LINENO"
18288 then :
18289 gl_cv_have___header_inline=yes
18290 else $as_nop
18291 gl_cv_have___header_inline=no
18292 fi
18293 rm -f conftest.err conftest.i conftest.$ac_ext
18294 fi
18295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have___header_inline" >&5
18296 printf "%s\n" "$gl_cv_have___header_inline" >&6; }
18297 if test "$gl_cv_have___header_inline" = yes; then
18298
18299 printf "%s\n" "#define HAVE___HEADER_INLINE 1" >>confdefs.h
18300
18301 fi
18302
18303
18304
18305
18306 HAVE_FCNTL=1;
18307 HAVE_OPENAT=1;
18308 REPLACE_CREAT=0;
18309 REPLACE_FCNTL=0;
18310 REPLACE_OPEN=0;
18311 REPLACE_OPENAT=0;
18312
18313
18314
18315
18316 GL_GL_PAPER_GNULIB_CREAT=0
18317
18318
18319
18320 GL_GL_PAPER_GNULIB_FCNTL=0
18321
18322
18323
18324 GL_GL_PAPER_GNULIB_NONBLOCKING=0
18325
18326
18327
18328 GL_GL_PAPER_GNULIB_OPEN=0
18329
18330
18331
18332 GL_GL_PAPER_GNULIB_OPENAT=0
18333
18334
18335
18336 GL_GL_PAPER_GNULIB_MDA_CREAT=1
18337
18338
18339
18340 GL_GL_PAPER_GNULIB_MDA_OPEN=1
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
18351 printf %s "checking for working fcntl.h... " >&6; }
18352 if test ${gl_cv_header_working_fcntl_h+y}
18353 then :
18354 printf %s "(cached) " >&6
18355 else $as_nop
18356 if test "$cross_compiling" = yes
18357 then :
18358 case "$host_os" in
18359 # Guess 'no' on native Windows.
18360 mingw*) gl_cv_header_working_fcntl_h='no' ;;
18361 *) gl_cv_header_working_fcntl_h=cross-compiling ;;
18362 esac
18363
18364 else $as_nop
18365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366 /* end confdefs.h. */
18367 #include <sys/types.h>
18368 #include <sys/stat.h>
18369 #if HAVE_UNISTD_H
18370 # include <unistd.h>
18371 #else /* on Windows with MSVC */
18372 # include <io.h>
18373 # include <stdlib.h>
18374 # defined sleep(n) _sleep ((n) * 1000)
18375 #endif
18376 #include <fcntl.h>
18377
18378
18379 $gl_mda_defines
18380
18381 #ifndef O_NOATIME
18382 #define O_NOATIME 0
18383 #endif
18384 #ifndef O_NOFOLLOW
18385 #define O_NOFOLLOW 0
18386 #endif
18387 static int const constants[] =
18388 {
18389 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
18390 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
18391 };
18392
18393 int
18394 main (void)
18395 {
18396
18397 int result = !constants;
18398 #if HAVE_SYMLINK
18399 {
18400 static char const sym[] = "conftest.sym";
18401 if (symlink ("/dev/null", sym) != 0)
18402 result |= 2;
18403 else
18404 {
18405 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
18406 if (fd >= 0)
18407 {
18408 close (fd);
18409 result |= 4;
18410 }
18411 }
18412 if (unlink (sym) != 0 || symlink (".", sym) != 0)
18413 result |= 2;
18414 else
18415 {
18416 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
18417 if (fd >= 0)
18418 {
18419 close (fd);
18420 result |= 4;
18421 }
18422 }
18423 unlink (sym);
18424 }
18425 #endif
18426 {
18427 static char const file[] = "confdefs.h";
18428 int fd = open (file, O_RDONLY | O_NOATIME);
18429 if (fd < 0)
18430 result |= 8;
18431 else
18432 {
18433 struct stat st0;
18434 if (fstat (fd, &st0) != 0)
18435 result |= 16;
18436 else
18437 {
18438 char c;
18439 sleep (1);
18440 if (read (fd, &c, 1) != 1)
18441 result |= 24;
18442 else
18443 {
18444 if (close (fd) != 0)
18445 result |= 32;
18446 else
18447 {
18448 struct stat st1;
18449 if (stat (file, &st1) != 0)
18450 result |= 40;
18451 else
18452 if (st0.st_atime != st1.st_atime)
18453 result |= 64;
18454 }
18455 }
18456 }
18457 }
18458 }
18459 return result;
18460 ;
18461 return 0;
18462 }
18463 _ACEOF
18464 if ac_fn_c_try_run "$LINENO"
18465 then :
18466 gl_cv_header_working_fcntl_h=yes
18467 else $as_nop
18468 case $? in #(
18469 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
18470 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
18471 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
18472 *) gl_cv_header_working_fcntl_h='no';;
18473 esac
18474 fi
18475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18476 conftest.$ac_objext conftest.beam conftest.$ac_ext
18477 fi
18478
18479
18480 fi
18481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
18482 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; }
18483
18484 case $gl_cv_header_working_fcntl_h in #(
18485 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
18486 *) ac_val=1;;
18487 esac
18488
18489 printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h
18490
18491
18492 case $gl_cv_header_working_fcntl_h in #(
18493 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
18494 *) ac_val=1;;
18495 esac
18496
18497 printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h
18498
18499
18500
18501 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
18502 "
18503 if test "x$ac_cv_type_pid_t" = xyes
18504 then :
18505
18506 else $as_nop
18507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18508 /* end confdefs.h. */
18509
18510 #if defined _WIN64 && !defined __CYGWIN__
18511 LLP64
18512 #endif
18513
18514 int
18515 main (void)
18516 {
18517
18518 ;
18519 return 0;
18520 }
18521
18522 _ACEOF
18523 if ac_fn_c_try_compile "$LINENO"
18524 then :
18525 ac_pid_type='int'
18526 else $as_nop
18527 ac_pid_type='__int64'
18528 fi
18529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18530
18531 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
18532
18533
18534 fi
18535
18536
18537 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18538 if test "x$ac_cv_type_mode_t" = xyes
18539 then :
18540
18541 else $as_nop
18542
18543 printf "%s\n" "#define mode_t int" >>confdefs.h
18544
18545 fi
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558 if test $gl_cv_have_include_next = yes; then
18559 gl_cv_next_fcntl_h='<'fcntl.h'>'
18560 else
18561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
18562 printf %s "checking absolute name of <fcntl.h>... " >&6; }
18563 if test ${gl_cv_next_fcntl_h+y}
18564 then :
18565 printf %s "(cached) " >&6
18566 else $as_nop
18567
18568
18569
18570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571 /* end confdefs.h. */
18572 #include <fcntl.h>
18573 _ACEOF
18574 case "$host_os" in
18575 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18576 *) gl_absname_cpp="$ac_cpp" ;;
18577 esac
18578
18579 case "$host_os" in
18580 mingw*)
18581 gl_dirsep_regex='[/\\]'
18582 ;;
18583 *)
18584 gl_dirsep_regex='\/'
18585 ;;
18586 esac
18587 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18588 gl_header_literal_regex=`echo 'fcntl.h' \
18589 | sed -e "$gl_make_literal_regex_sed"`
18590 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18591 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18592 s|^/[^/]|//&|
18593 p
18594 q
18595 }'
18596
18597 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18598 sed -n "$gl_absolute_header_sed"`
18599
18600 gl_header=$gl_cv_absolute_fcntl_h
18601 gl_cv_next_fcntl_h='"'$gl_header'"'
18602
18603
18604 fi
18605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
18606 printf "%s\n" "$gl_cv_next_fcntl_h" >&6; }
18607 fi
18608 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
18609
18610 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18612 gl_next_as_first_directive='<'fcntl.h'>'
18613 else
18614 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18615 gl_next_as_first_directive=$gl_cv_next_fcntl_h
18616 fi
18617 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632 HAVE_FCHMODAT=1;
18633 HAVE_FSTATAT=1;
18634 HAVE_FUTIMENS=1;
18635 HAVE_GETUMASK=1;
18636 HAVE_LCHMOD=1;
18637 HAVE_LSTAT=1;
18638 HAVE_MKDIRAT=1;
18639 HAVE_MKFIFO=1;
18640 HAVE_MKFIFOAT=1;
18641 HAVE_MKNOD=1;
18642 HAVE_MKNODAT=1;
18643 HAVE_UTIMENSAT=1;
18644 REPLACE_CHMOD=0;
18645 REPLACE_FCHMODAT=0;
18646 REPLACE_FSTAT=0;
18647 REPLACE_FSTATAT=0;
18648 REPLACE_FUTIMENS=0;
18649 REPLACE_LSTAT=0;
18650 REPLACE_MKDIR=0;
18651 REPLACE_MKFIFO=0;
18652 REPLACE_MKFIFOAT=0;
18653 REPLACE_MKNOD=0;
18654 REPLACE_MKNODAT=0;
18655 REPLACE_STAT=0;
18656 REPLACE_UTIMENSAT=0;
18657
18658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18659 printf %s "checking whether stat file-mode macros are broken... " >&6; }
18660 if test ${ac_cv_header_stat_broken+y}
18661 then :
18662 printf %s "(cached) " >&6
18663 else $as_nop
18664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18665 /* end confdefs.h. */
18666 #include <sys/types.h>
18667 #include <sys/stat.h>
18668
18669 #if defined S_ISBLK && defined S_IFDIR
18670 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18671 #endif
18672
18673 #if defined S_ISBLK && defined S_IFCHR
18674 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18675 #endif
18676
18677 #if defined S_ISLNK && defined S_IFREG
18678 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18679 #endif
18680
18681 #if defined S_ISSOCK && defined S_IFREG
18682 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18683 #endif
18684
18685 _ACEOF
18686 if ac_fn_c_try_compile "$LINENO"
18687 then :
18688 ac_cv_header_stat_broken=no
18689 else $as_nop
18690 ac_cv_header_stat_broken=yes
18691 fi
18692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18693 fi
18694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18695 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
18696 if test $ac_cv_header_stat_broken = yes; then
18697
18698 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18699
18700 fi
18701
18702
18703
18704 case "$host_os" in
18705 mingw*)
18706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18707 printf %s "checking for 64-bit off_t... " >&6; }
18708 if test ${gl_cv_type_off_t_64+y}
18709 then :
18710 printf %s "(cached) " >&6
18711 else $as_nop
18712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18713 /* end confdefs.h. */
18714 #include <sys/types.h>
18715 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18716
18717 int
18718 main (void)
18719 {
18720
18721 ;
18722 return 0;
18723 }
18724 _ACEOF
18725 if ac_fn_c_try_compile "$LINENO"
18726 then :
18727 gl_cv_type_off_t_64=yes
18728 else $as_nop
18729 gl_cv_type_off_t_64=no
18730 fi
18731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18732
18733 fi
18734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18735 printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
18736 if test $gl_cv_type_off_t_64 = no; then
18737 WINDOWS_64_BIT_OFF_T=1
18738 else
18739 WINDOWS_64_BIT_OFF_T=0
18740 fi
18741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
18742 printf %s "checking for 64-bit st_size... " >&6; }
18743 if test ${gl_cv_member_st_size_64+y}
18744 then :
18745 printf %s "(cached) " >&6
18746 else $as_nop
18747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18748 /* end confdefs.h. */
18749 #include <sys/types.h>
18750 struct stat buf;
18751 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
18752
18753 int
18754 main (void)
18755 {
18756
18757 ;
18758 return 0;
18759 }
18760 _ACEOF
18761 if ac_fn_c_try_compile "$LINENO"
18762 then :
18763 gl_cv_member_st_size_64=yes
18764 else $as_nop
18765 gl_cv_member_st_size_64=no
18766 fi
18767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18768
18769 fi
18770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
18771 printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
18772 if test $gl_cv_member_st_size_64 = no; then
18773 WINDOWS_64_BIT_ST_SIZE=1
18774 else
18775 WINDOWS_64_BIT_ST_SIZE=0
18776 fi
18777 ;;
18778 *)
18779 WINDOWS_64_BIT_OFF_T=0
18780 WINDOWS_64_BIT_ST_SIZE=0
18781 ;;
18782 esac
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798 if test $gl_cv_have_include_next = yes; then
18799 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18800 else
18801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18802 printf %s "checking absolute name of <sys/stat.h>... " >&6; }
18803 if test ${gl_cv_next_sys_stat_h+y}
18804 then :
18805 printf %s "(cached) " >&6
18806 else $as_nop
18807
18808 if test $ac_cv_header_sys_stat_h = yes; then
18809
18810
18811
18812
18813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h. */
18815 #include <sys/stat.h>
18816 _ACEOF
18817 case "$host_os" in
18818 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18819 *) gl_absname_cpp="$ac_cpp" ;;
18820 esac
18821
18822 case "$host_os" in
18823 mingw*)
18824 gl_dirsep_regex='[/\\]'
18825 ;;
18826 *)
18827 gl_dirsep_regex='\/'
18828 ;;
18829 esac
18830 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18831 gl_header_literal_regex=`echo 'sys/stat.h' \
18832 | sed -e "$gl_make_literal_regex_sed"`
18833 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18834 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18835 s|^/[^/]|//&|
18836 p
18837 q
18838 }'
18839
18840 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18841 sed -n "$gl_absolute_header_sed"`
18842
18843 gl_header=$gl_cv_absolute_sys_stat_h
18844 gl_cv_next_sys_stat_h='"'$gl_header'"'
18845 else
18846 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18847 fi
18848
18849
18850 fi
18851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18852 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
18853 fi
18854 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18855
18856 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18857 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18858 gl_next_as_first_directive='<'sys/stat.h'>'
18859 else
18860 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18861 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18862 fi
18863 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18864
18865
18866
18867
18868
18869
18870
18871
18872 WINDOWS_STAT_TIMESPEC=0
18873
18874
18875
18876
18877
18878
18879
18880
18881 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18882 #include <sys/stat.h>
18883 "
18884 if test "x$ac_cv_type_nlink_t" = xyes
18885 then :
18886
18887 else $as_nop
18888
18889 printf "%s\n" "#define nlink_t int" >>confdefs.h
18890
18891 fi
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902 case "$host_os" in
18903 mingw*)
18904 ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
18905 if test "x$ac_cv_header_sdkddkver_h" = xyes
18906 then :
18907 printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h
18908
18909 fi
18910
18911 ;;
18912 esac
18913
18914
18915
18916
18917
18918
18919
18920 GL_GL_PAPER_GNULIB_CHMOD=0
18921
18922
18923
18924 GL_GL_PAPER_GNULIB_FCHMODAT=0
18925
18926
18927
18928 GL_GL_PAPER_GNULIB_FSTAT=0
18929
18930
18931
18932 GL_GL_PAPER_GNULIB_FSTATAT=0
18933
18934
18935
18936 GL_GL_PAPER_GNULIB_FUTIMENS=0
18937
18938
18939
18940 GL_GL_PAPER_GNULIB_GETUMASK=0
18941
18942
18943
18944 GL_GL_PAPER_GNULIB_LCHMOD=0
18945
18946
18947
18948 GL_GL_PAPER_GNULIB_LSTAT=0
18949
18950
18951
18952 GL_GL_PAPER_GNULIB_MKDIR=0
18953
18954
18955
18956 GL_GL_PAPER_GNULIB_MKDIRAT=0
18957
18958
18959
18960 GL_GL_PAPER_GNULIB_MKFIFO=0
18961
18962
18963
18964 GL_GL_PAPER_GNULIB_MKFIFOAT=0
18965
18966
18967
18968 GL_GL_PAPER_GNULIB_MKNOD=0
18969
18970
18971
18972 GL_GL_PAPER_GNULIB_MKNODAT=0
18973
18974
18975
18976 GL_GL_PAPER_GNULIB_STAT=0
18977
18978
18979
18980 GL_GL_PAPER_GNULIB_UTIMENSAT=0
18981
18982
18983
18984 GL_GL_PAPER_GNULIB_OVERRIDES_STRUCT_STAT=0
18985
18986
18987
18988 GL_GL_PAPER_GNULIB_MDA_CHMOD=1
18989
18990
18991
18992 GL_GL_PAPER_GNULIB_MDA_MKDIR=1
18993
18994
18995
18996 GL_GL_PAPER_GNULIB_MDA_UMASK=1
18997
18998
18999
19000
19001 ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
19002 if test "x$ac_cv_have_decl_getdtablesize" = xyes
19003 then :
19004 ac_have_decl=1
19005 else $as_nop
19006 ac_have_decl=0
19007 fi
19008 printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024 if test $gl_cv_have_include_next = yes; then
19025 gl_cv_next_getopt_h='<'getopt.h'>'
19026 else
19027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
19028 printf %s "checking absolute name of <getopt.h>... " >&6; }
19029 if test ${gl_cv_next_getopt_h+y}
19030 then :
19031 printf %s "(cached) " >&6
19032 else $as_nop
19033
19034 if test $ac_cv_header_getopt_h = yes; then
19035
19036
19037
19038
19039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19040 /* end confdefs.h. */
19041 #include <getopt.h>
19042 _ACEOF
19043 case "$host_os" in
19044 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19045 *) gl_absname_cpp="$ac_cpp" ;;
19046 esac
19047
19048 case "$host_os" in
19049 mingw*)
19050 gl_dirsep_regex='[/\\]'
19051 ;;
19052 *)
19053 gl_dirsep_regex='\/'
19054 ;;
19055 esac
19056 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19057 gl_header_literal_regex=`echo 'getopt.h' \
19058 | sed -e "$gl_make_literal_regex_sed"`
19059 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19060 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19061 s|^/[^/]|//&|
19062 p
19063 q
19064 }'
19065
19066 gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19067 sed -n "$gl_absolute_header_sed"`
19068
19069 gl_header=$gl_cv_absolute_getopt_h
19070 gl_cv_next_getopt_h='"'$gl_header'"'
19071 else
19072 gl_cv_next_getopt_h='<'getopt.h'>'
19073 fi
19074
19075
19076 fi
19077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
19078 printf "%s\n" "$gl_cv_next_getopt_h" >&6; }
19079 fi
19080 NEXT_GETOPT_H=$gl_cv_next_getopt_h
19081
19082 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19083 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19084 gl_next_as_first_directive='<'getopt.h'>'
19085 else
19086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19087 gl_next_as_first_directive=$gl_cv_next_getopt_h
19088 fi
19089 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
19090
19091
19092
19093
19094 if test $ac_cv_header_getopt_h = yes; then
19095 HAVE_GETOPT_H=1
19096 else
19097 HAVE_GETOPT_H=0
19098 fi
19099
19100
19101 gl_replace_getopt=
19102
19103 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19104 for ac_header in getopt.h
19105 do :
19106 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
19107 if test "x$ac_cv_header_getopt_h" = xyes
19108 then :
19109 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
19110
19111 else $as_nop
19112 gl_replace_getopt=yes
19113 fi
19114
19115 done
19116 fi
19117
19118 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19119
19120 for ac_func in getopt_long_only
19121 do :
19122 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
19123 if test "x$ac_cv_func_getopt_long_only" = xyes
19124 then :
19125 printf "%s\n" "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
19126
19127 else $as_nop
19128 gl_replace_getopt=yes
19129 fi
19130
19131 done
19132 fi
19133
19134 if test -z "$gl_replace_getopt"; then
19135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
19136 printf %s "checking whether getopt is POSIX compatible... " >&6; }
19137 if test ${gl_cv_func_getopt_posix+y}
19138 then :
19139 printf %s "(cached) " >&6
19140 else $as_nop
19141
19142 if test $cross_compiling = no; then
19143 if test "$cross_compiling" = yes
19144 then :
19145 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19146 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19147 as_fn_error $? "cannot run test program while cross compiling
19148 See \`config.log' for more details" "$LINENO" 5; }
19149 else $as_nop
19150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19151 /* end confdefs.h. */
19152
19153 #include <unistd.h>
19154 #include <stdlib.h>
19155 #include <string.h>
19156
19157 int
19158 main ()
19159 {
19160 static char program[] = "program";
19161 static char a[] = "-a";
19162 static char foo[] = "foo";
19163 static char bar[] = "bar";
19164 char *argv[] = { program, a, foo, bar, NULL };
19165 int c;
19166
19167 c = getopt (4, argv, "ab");
19168 if (!(c == 'a'))
19169 return 1;
19170 c = getopt (4, argv, "ab");
19171 if (!(c == -1))
19172 return 2;
19173 if (!(optind == 2))
19174 return 3;
19175 return 0;
19176 }
19177
19178 _ACEOF
19179 if ac_fn_c_try_run "$LINENO"
19180 then :
19181 gl_cv_func_getopt_posix=maybe
19182 else $as_nop
19183 gl_cv_func_getopt_posix=no
19184 fi
19185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19186 conftest.$ac_objext conftest.beam conftest.$ac_ext
19187 fi
19188
19189 if test $gl_cv_func_getopt_posix = maybe; then
19190 if test "$cross_compiling" = yes
19191 then :
19192 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19193 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19194 as_fn_error $? "cannot run test program while cross compiling
19195 See \`config.log' for more details" "$LINENO" 5; }
19196 else $as_nop
19197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19198 /* end confdefs.h. */
19199
19200 #include <unistd.h>
19201 #include <stdlib.h>
19202 #include <string.h>
19203
19204 int
19205 main ()
19206 {
19207 static char program[] = "program";
19208 static char donald[] = "donald";
19209 static char p[] = "-p";
19210 static char billy[] = "billy";
19211 static char duck[] = "duck";
19212 static char a[] = "-a";
19213 static char bar[] = "bar";
19214 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
19215 int c;
19216
19217 c = getopt (7, argv, "+abp:q:");
19218 if (!(c == -1))
19219 return 4;
19220 if (!(strcmp (argv[0], "program") == 0))
19221 return 5;
19222 if (!(strcmp (argv[1], "donald") == 0))
19223 return 6;
19224 if (!(strcmp (argv[2], "-p") == 0))
19225 return 7;
19226 if (!(strcmp (argv[3], "billy") == 0))
19227 return 8;
19228 if (!(strcmp (argv[4], "duck") == 0))
19229 return 9;
19230 if (!(strcmp (argv[5], "-a") == 0))
19231 return 10;
19232 if (!(strcmp (argv[6], "bar") == 0))
19233 return 11;
19234 if (!(optind == 1))
19235 return 12;
19236 return 0;
19237 }
19238
19239 _ACEOF
19240 if ac_fn_c_try_run "$LINENO"
19241 then :
19242 gl_cv_func_getopt_posix=maybe
19243 else $as_nop
19244 gl_cv_func_getopt_posix=no
19245 fi
19246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19247 conftest.$ac_objext conftest.beam conftest.$ac_ext
19248 fi
19249
19250 fi
19251 if test $gl_cv_func_getopt_posix = maybe; then
19252 if test "$cross_compiling" = yes
19253 then :
19254 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19255 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19256 as_fn_error $? "cannot run test program while cross compiling
19257 See \`config.log' for more details" "$LINENO" 5; }
19258 else $as_nop
19259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19260 /* end confdefs.h. */
19261
19262 #include <unistd.h>
19263 #include <stdlib.h>
19264 #include <string.h>
19265
19266 int
19267 main ()
19268 {
19269 static char program[] = "program";
19270 static char ab[] = "-ab";
19271 char *argv[3] = { program, ab, NULL };
19272 if (getopt (2, argv, "ab:") != 'a')
19273 return 13;
19274 if (getopt (2, argv, "ab:") != '?')
19275 return 14;
19276 if (optopt != 'b')
19277 return 15;
19278 if (optind != 2)
19279 return 16;
19280 return 0;
19281 }
19282
19283 _ACEOF
19284 if ac_fn_c_try_run "$LINENO"
19285 then :
19286 gl_cv_func_getopt_posix=yes
19287 else $as_nop
19288 gl_cv_func_getopt_posix=no
19289 fi
19290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19291 conftest.$ac_objext conftest.beam conftest.$ac_ext
19292 fi
19293
19294 fi
19295 else
19296 case "$host_os" in
19297 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
19298 *) gl_cv_func_getopt_posix="guessing yes";;
19299 esac
19300 fi
19301
19302 fi
19303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
19304 printf "%s\n" "$gl_cv_func_getopt_posix" >&6; }
19305 case "$gl_cv_func_getopt_posix" in
19306 *no) gl_replace_getopt=yes ;;
19307 esac
19308 fi
19309
19310 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19312 printf %s "checking for working GNU getopt function... " >&6; }
19313 if test ${gl_cv_func_getopt_gnu+y}
19314 then :
19315 printf %s "(cached) " >&6
19316 else $as_nop
19317 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19318 # optstring is necessary for programs like m4 that have POSIX-mandated
19319 # semantics for supporting options interspersed with files.
19320 # Also, since getopt_long is a GNU extension, we require optind=0.
19321 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19322 # so take care to revert to the correct (non-)export state.
19323 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19324 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19325 xx) gl_had_POSIXLY_CORRECT=exported ;;
19326 x) gl_had_POSIXLY_CORRECT=yes ;;
19327 *) gl_had_POSIXLY_CORRECT= ;;
19328 esac
19329 POSIXLY_CORRECT=1
19330 export POSIXLY_CORRECT
19331 if test "$cross_compiling" = yes
19332 then :
19333 gl_cv_func_getopt_gnu="$gl_cross_guess_normal"
19334
19335 else $as_nop
19336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19337 /* end confdefs.h. */
19338 #include <getopt.h>
19339 #include <stddef.h>
19340 #include <string.h>
19341
19342 #include <stdlib.h>
19343 #if defined __MACH__ && defined __APPLE__
19344 /* Avoid a crash on Mac OS X. */
19345 #include <mach/mach.h>
19346 #include <mach/mach_error.h>
19347 #include <mach/thread_status.h>
19348 #include <mach/exception.h>
19349 #include <mach/task.h>
19350 #include <pthread.h>
19351 /* The exception port on which our thread listens. */
19352 static mach_port_t our_exception_port;
19353 /* The main function of the thread listening for exceptions of type
19354 EXC_BAD_ACCESS. */
19355 static void *
19356 mach_exception_thread (void *arg)
19357 {
19358 /* Buffer for a message to be received. */
19359 struct {
19360 mach_msg_header_t head;
19361 mach_msg_body_t msgh_body;
19362 char data[1024];
19363 } msg;
19364 mach_msg_return_t retval;
19365 /* Wait for a message on the exception port. */
19366 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19367 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19368 if (retval != MACH_MSG_SUCCESS)
19369 abort ();
19370 exit (1);
19371 }
19372 static void
19373 nocrash_init (void)
19374 {
19375 mach_port_t self = mach_task_self ();
19376 /* Allocate a port on which the thread shall listen for exceptions. */
19377 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19378 == KERN_SUCCESS) {
19379 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19380 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19381 MACH_MSG_TYPE_MAKE_SEND)
19382 == KERN_SUCCESS) {
19383 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19384 for us. */
19385 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19386 /* Create the thread listening on the exception port. */
19387 pthread_attr_t attr;
19388 pthread_t thread;
19389 if (pthread_attr_init (&attr) == 0
19390 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19391 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19392 pthread_attr_destroy (&attr);
19393 /* Replace the exception port info for these exceptions with our own.
19394 Note that we replace the exception port for the entire task, not only
19395 for a particular thread. This has the effect that when our exception
19396 port gets the message, the thread specific exception port has already
19397 been asked, and we don't need to bother about it.
19398 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19399 task_set_exception_ports (self, mask, our_exception_port,
19400 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19401 }
19402 }
19403 }
19404 }
19405 #elif defined _WIN32 && ! defined __CYGWIN__
19406 /* Avoid a crash on native Windows. */
19407 #define WIN32_LEAN_AND_MEAN
19408 #include <windows.h>
19409 #include <winerror.h>
19410 static LONG WINAPI
19411 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19412 {
19413 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19414 {
19415 case EXCEPTION_ACCESS_VIOLATION:
19416 case EXCEPTION_IN_PAGE_ERROR:
19417 case EXCEPTION_STACK_OVERFLOW:
19418 case EXCEPTION_GUARD_PAGE:
19419 case EXCEPTION_PRIV_INSTRUCTION:
19420 case EXCEPTION_ILLEGAL_INSTRUCTION:
19421 case EXCEPTION_DATATYPE_MISALIGNMENT:
19422 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19423 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19424 exit (1);
19425 }
19426 return EXCEPTION_CONTINUE_SEARCH;
19427 }
19428 static void
19429 nocrash_init (void)
19430 {
19431 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19432 }
19433 #else
19434 /* Avoid a crash on POSIX systems. */
19435 #include <signal.h>
19436 #include <unistd.h>
19437 /* A POSIX signal handler. */
19438 static void
19439 exception_handler (int sig)
19440 {
19441 _exit (1);
19442 }
19443 static void
19444 nocrash_init (void)
19445 {
19446 #ifdef SIGSEGV
19447 signal (SIGSEGV, exception_handler);
19448 #endif
19449 #ifdef SIGBUS
19450 signal (SIGBUS, exception_handler);
19451 #endif
19452 }
19453 #endif
19454
19455
19456 int
19457 main (void)
19458 {
19459
19460 int result = 0;
19461
19462 nocrash_init();
19463
19464 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19465 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19466 OSF/1 5.1, Solaris 10. */
19467 {
19468 static char conftest[] = "conftest";
19469 static char plus[] = "-+";
19470 char *argv[3] = { conftest, plus, NULL };
19471 opterr = 0;
19472 if (getopt (2, argv, "+a") != '?')
19473 result |= 1;
19474 }
19475 /* This code succeeds on glibc 2.8, mingw,
19476 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19477 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19478 {
19479 static char program[] = "program";
19480 static char p[] = "-p";
19481 static char foo[] = "foo";
19482 static char bar[] = "bar";
19483 char *argv[] = { program, p, foo, bar, NULL };
19484
19485 optind = 1;
19486 if (getopt (4, argv, "p::") != 'p')
19487 result |= 2;
19488 else if (optarg != NULL)
19489 result |= 4;
19490 else if (getopt (4, argv, "p::") != -1)
19491 result |= 6;
19492 else if (optind != 2)
19493 result |= 8;
19494 }
19495 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19496 {
19497 static char program[] = "program";
19498 static char foo[] = "foo";
19499 static char p[] = "-p";
19500 char *argv[] = { program, foo, p, NULL };
19501 optind = 0;
19502 if (getopt (3, argv, "-p") != 1)
19503 result |= 16;
19504 else if (getopt (3, argv, "-p") != 'p')
19505 result |= 16;
19506 }
19507 /* This code fails on glibc 2.11. */
19508 {
19509 static char program[] = "program";
19510 static char b[] = "-b";
19511 static char a[] = "-a";
19512 char *argv[] = { program, b, a, NULL };
19513 optind = opterr = 0;
19514 if (getopt (3, argv, "+:a:b") != 'b')
19515 result |= 32;
19516 else if (getopt (3, argv, "+:a:b") != ':')
19517 result |= 32;
19518 }
19519 /* This code dumps core on glibc 2.14. */
19520 {
19521 static char program[] = "program";
19522 static char w[] = "-W";
19523 static char dummy[] = "dummy";
19524 char *argv[] = { program, w, dummy, NULL };
19525 optind = opterr = 1;
19526 if (getopt (3, argv, "W;") != 'W')
19527 result |= 64;
19528 }
19529 return result;
19530
19531 ;
19532 return 0;
19533 }
19534 _ACEOF
19535 if ac_fn_c_try_run "$LINENO"
19536 then :
19537 gl_cv_func_getopt_gnu=yes
19538 else $as_nop
19539 gl_cv_func_getopt_gnu=no
19540 fi
19541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19542 conftest.$ac_objext conftest.beam conftest.$ac_ext
19543 fi
19544
19545 case $gl_had_POSIXLY_CORRECT in
19546 exported) ;;
19547 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
19548 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
19549 esac
19550
19551 fi
19552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19553 printf "%s\n" "$gl_cv_func_getopt_gnu" >&6; }
19554 if test "$gl_cv_func_getopt_gnu" != yes; then
19555 gl_replace_getopt=yes
19556 else
19557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19558 printf %s "checking for working GNU getopt_long function... " >&6; }
19559 if test ${gl_cv_func_getopt_long_gnu+y}
19560 then :
19561 printf %s "(cached) " >&6
19562 else $as_nop
19563 if test "$cross_compiling" = yes
19564 then :
19565 case "$host_os" in
19566 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
19567 *) gl_cv_func_getopt_long_gnu="guessing yes";;
19568 esac
19569
19570 else $as_nop
19571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19572 /* end confdefs.h. */
19573 #include <getopt.h>
19574 #include <stddef.h>
19575 #include <string.h>
19576
19577 int
19578 main (void)
19579 {
19580 static const struct option long_options[] =
19581 {
19582 { "xtremely-",no_argument, NULL, 1003 },
19583 { "xtra", no_argument, NULL, 1001 },
19584 { "xtreme", no_argument, NULL, 1002 },
19585 { "xtremely", no_argument, NULL, 1003 },
19586 { NULL, 0, NULL, 0 }
19587 };
19588 /* This code fails on OpenBSD 5.0. */
19589 {
19590 static char program[] = "program";
19591 static char xtremel[] = "--xtremel";
19592 char *argv[] = { program, xtremel, NULL };
19593 int option_index;
19594 optind = 1; opterr = 0;
19595 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19596 return 1;
19597 }
19598 return 0;
19599
19600 ;
19601 return 0;
19602 }
19603 _ACEOF
19604 if ac_fn_c_try_run "$LINENO"
19605 then :
19606 gl_cv_func_getopt_long_gnu=yes
19607 else $as_nop
19608 gl_cv_func_getopt_long_gnu=no
19609 fi
19610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19611 conftest.$ac_objext conftest.beam conftest.$ac_ext
19612 fi
19613
19614
19615 fi
19616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19617 printf "%s\n" "$gl_cv_func_getopt_long_gnu" >&6; }
19618 case "$gl_cv_func_getopt_long_gnu" in
19619 *yes) ;;
19620 *) gl_replace_getopt=yes ;;
19621 esac
19622 fi
19623 fi
19624
19625
19626
19627
19628
19629 if test -z "$gl_anythreadlib_early_done"; then
19630 case "$host_os" in
19631 osf*)
19632 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
19633 # groks <pthread.h>. cc also understands the flag -pthread, but
19634 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
19635 # 2. putting a flag into CPPFLAGS that has an effect on the linker
19636 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
19637 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
19638 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
19639 ;;
19640 esac
19641 # Some systems optimize for single-threaded programs by default, and
19642 # need special flags to disable these optimizations. For example, the
19643 # definition of 'errno' in <errno.h>.
19644 case "$host_os" in
19645 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
19646 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
19647 esac
19648 gl_anythreadlib_early_done=done
19649 fi
19650
19651
19652
19653
19654
19655 if test -z "$gl_pthreadlib_body_done"; then
19656 gl_pthread_api=no
19657 LIBPTHREAD=
19658 LIBPMULTITHREAD=
19659 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
19660 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
19661 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19662 if test "x$ac_cv_header_pthread_h" = xyes
19663 then :
19664 gl_have_pthread_h=yes
19665 else $as_nop
19666 gl_have_pthread_h=no
19667 fi
19668
19669 if test "$gl_have_pthread_h" = yes; then
19670 # Other possible tests:
19671 # -lpthreads (FSU threads, PCthreads)
19672 # -lgthreads
19673 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
19674 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
19675 # the second one only in libpthread, and lock.c needs it.
19676 #
19677 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
19678 # needs -pthread for some reason. See:
19679 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
19680 save_LIBS=$LIBS
19681 for gl_pthread in '' '-pthread'; do
19682 LIBS="$LIBS $gl_pthread"
19683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19684 /* end confdefs.h. */
19685 #include <pthread.h>
19686 pthread_mutex_t m;
19687 pthread_mutexattr_t ma;
19688
19689 int
19690 main (void)
19691 {
19692 pthread_mutex_lock (&m);
19693 pthread_mutexattr_init (&ma);
19694 ;
19695 return 0;
19696 }
19697 _ACEOF
19698 if ac_fn_c_try_link "$LINENO"
19699 then :
19700 gl_pthread_api=yes
19701 LIBPTHREAD=$gl_pthread
19702 LIBPMULTITHREAD=$gl_pthread
19703 fi
19704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19705 conftest$ac_exeext conftest.$ac_ext
19706 LIBS=$save_LIBS
19707 test $gl_pthread_api = yes && break
19708 done
19709 echo "$as_me:19709: gl_pthread_api=$gl_pthread_api" >&5
19710 echo "$as_me:19710: LIBPTHREAD=$LIBPTHREAD" >&5
19711
19712 gl_pthread_in_glibc=no
19713 # On Linux with glibc >= 2.34, libc contains the fully functional
19714 # pthread functions.
19715 case "$host_os" in
19716 linux*)
19717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19718 /* end confdefs.h. */
19719 #include <features.h>
19720 #ifdef __GNU_LIBRARY__
19721 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2)
19722 Lucky user
19723 #endif
19724 #endif
19725
19726 _ACEOF
19727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19728 $EGREP "Lucky user" >/dev/null 2>&1
19729 then :
19730 gl_pthread_in_glibc=yes
19731 fi
19732 rm -rf conftest*
19733
19734 ;;
19735 esac
19736 echo "$as_me:19736: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5
19737
19738 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
19739 # since it is defined as a macro on OSF/1.)
19740 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
19741 # The program links fine without libpthread. But it may actually
19742 # need to link with libpthread in order to create multiple threads.
19743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
19744 printf %s "checking for pthread_kill in -lpthread... " >&6; }
19745 if test ${ac_cv_lib_pthread_pthread_kill+y}
19746 then :
19747 printf %s "(cached) " >&6
19748 else $as_nop
19749 ac_check_lib_save_LIBS=$LIBS
19750 LIBS="-lpthread $LIBS"
19751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19752 /* end confdefs.h. */
19753
19754 /* Override any GCC internal prototype to avoid an error.
19755 Use char because int might match the return type of a GCC
19756 builtin and then its argument prototype would still apply. */
19757 char pthread_kill ();
19758 int
19759 main (void)
19760 {
19761 return pthread_kill ();
19762 ;
19763 return 0;
19764 }
19765 _ACEOF
19766 if ac_fn_c_try_link "$LINENO"
19767 then :
19768 ac_cv_lib_pthread_pthread_kill=yes
19769 else $as_nop
19770 ac_cv_lib_pthread_pthread_kill=no
19771 fi
19772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19773 conftest$ac_exeext conftest.$ac_ext
19774 LIBS=$ac_check_lib_save_LIBS
19775 fi
19776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
19777 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
19778 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
19779 then :
19780 if test $gl_pthread_in_glibc = yes; then
19781 LIBPMULTITHREAD=
19782 else
19783 LIBPMULTITHREAD=-lpthread
19784 # On Solaris and HP-UX, most pthread functions exist also in libc.
19785 # Therefore pthread_in_use() needs to actually try to create a
19786 # thread: pthread_create from libc will fail, whereas
19787 # pthread_create will actually create a thread.
19788 # On Solaris 10 or newer, this test is no longer needed, because
19789 # libc contains the fully functional pthread functions.
19790 case "$host_os" in
19791 solaris | solaris2.[1-9] | solaris2.[1-9].* | hpux*)
19792
19793 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
19794
19795 esac
19796 fi
19797
19798 fi
19799
19800 elif test $gl_pthread_api != yes; then
19801 # Some library is needed. Try libpthread and libc_r.
19802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
19803 printf %s "checking for pthread_kill in -lpthread... " >&6; }
19804 if test ${ac_cv_lib_pthread_pthread_kill+y}
19805 then :
19806 printf %s "(cached) " >&6
19807 else $as_nop
19808 ac_check_lib_save_LIBS=$LIBS
19809 LIBS="-lpthread $LIBS"
19810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19811 /* end confdefs.h. */
19812
19813 /* Override any GCC internal prototype to avoid an error.
19814 Use char because int might match the return type of a GCC
19815 builtin and then its argument prototype would still apply. */
19816 char pthread_kill ();
19817 int
19818 main (void)
19819 {
19820 return pthread_kill ();
19821 ;
19822 return 0;
19823 }
19824 _ACEOF
19825 if ac_fn_c_try_link "$LINENO"
19826 then :
19827 ac_cv_lib_pthread_pthread_kill=yes
19828 else $as_nop
19829 ac_cv_lib_pthread_pthread_kill=no
19830 fi
19831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19832 conftest$ac_exeext conftest.$ac_ext
19833 LIBS=$ac_check_lib_save_LIBS
19834 fi
19835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
19836 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
19837 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
19838 then :
19839 gl_pthread_api=yes
19840 LIBPTHREAD=-lpthread
19841 LIBPMULTITHREAD=-lpthread
19842 fi
19843
19844 if test $gl_pthread_api != yes; then
19845 # For FreeBSD 4.
19846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
19847 printf %s "checking for pthread_kill in -lc_r... " >&6; }
19848 if test ${ac_cv_lib_c_r_pthread_kill+y}
19849 then :
19850 printf %s "(cached) " >&6
19851 else $as_nop
19852 ac_check_lib_save_LIBS=$LIBS
19853 LIBS="-lc_r $LIBS"
19854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19855 /* end confdefs.h. */
19856
19857 /* Override any GCC internal prototype to avoid an error.
19858 Use char because int might match the return type of a GCC
19859 builtin and then its argument prototype would still apply. */
19860 char pthread_kill ();
19861 int
19862 main (void)
19863 {
19864 return pthread_kill ();
19865 ;
19866 return 0;
19867 }
19868 _ACEOF
19869 if ac_fn_c_try_link "$LINENO"
19870 then :
19871 ac_cv_lib_c_r_pthread_kill=yes
19872 else $as_nop
19873 ac_cv_lib_c_r_pthread_kill=no
19874 fi
19875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19876 conftest$ac_exeext conftest.$ac_ext
19877 LIBS=$ac_check_lib_save_LIBS
19878 fi
19879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
19880 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
19881 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
19882 then :
19883 gl_pthread_api=yes
19884 LIBPTHREAD=-lc_r
19885 LIBPMULTITHREAD=-lc_r
19886 fi
19887
19888 fi
19889 fi
19890 echo "$as_me:19890: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5
19891 fi
19892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
19893 printf %s "checking whether POSIX threads API is available... " >&6; }
19894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
19895 printf "%s\n" "$gl_pthread_api" >&6; }
19896
19897
19898 if test $gl_pthread_api = yes; then
19899
19900 printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h
19901
19902 fi
19903
19904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19905 /* end confdefs.h. */
19906 #include <sched.h>
19907 int
19908 main (void)
19909 {
19910 sched_yield ();
19911 ;
19912 return 0;
19913 }
19914 _ACEOF
19915 if ac_fn_c_try_link "$LINENO"
19916 then :
19917 SCHED_YIELD_LIB=
19918
19919 else $as_nop
19920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
19921 printf %s "checking for sched_yield in -lrt... " >&6; }
19922 if test ${ac_cv_lib_rt_sched_yield+y}
19923 then :
19924 printf %s "(cached) " >&6
19925 else $as_nop
19926 ac_check_lib_save_LIBS=$LIBS
19927 LIBS="-lrt $LIBS"
19928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19929 /* end confdefs.h. */
19930
19931 /* Override any GCC internal prototype to avoid an error.
19932 Use char because int might match the return type of a GCC
19933 builtin and then its argument prototype would still apply. */
19934 char sched_yield ();
19935 int
19936 main (void)
19937 {
19938 return sched_yield ();
19939 ;
19940 return 0;
19941 }
19942 _ACEOF
19943 if ac_fn_c_try_link "$LINENO"
19944 then :
19945 ac_cv_lib_rt_sched_yield=yes
19946 else $as_nop
19947 ac_cv_lib_rt_sched_yield=no
19948 fi
19949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19950 conftest$ac_exeext conftest.$ac_ext
19951 LIBS=$ac_check_lib_save_LIBS
19952 fi
19953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
19954 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
19955 if test "x$ac_cv_lib_rt_sched_yield" = xyes
19956 then :
19957 SCHED_YIELD_LIB=-lrt
19958 else $as_nop
19959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
19960 printf %s "checking for sched_yield in -lposix4... " >&6; }
19961 if test ${ac_cv_lib_posix4_sched_yield+y}
19962 then :
19963 printf %s "(cached) " >&6
19964 else $as_nop
19965 ac_check_lib_save_LIBS=$LIBS
19966 LIBS="-lposix4 $LIBS"
19967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19968 /* end confdefs.h. */
19969
19970 /* Override any GCC internal prototype to avoid an error.
19971 Use char because int might match the return type of a GCC
19972 builtin and then its argument prototype would still apply. */
19973 char sched_yield ();
19974 int
19975 main (void)
19976 {
19977 return sched_yield ();
19978 ;
19979 return 0;
19980 }
19981 _ACEOF
19982 if ac_fn_c_try_link "$LINENO"
19983 then :
19984 ac_cv_lib_posix4_sched_yield=yes
19985 else $as_nop
19986 ac_cv_lib_posix4_sched_yield=no
19987 fi
19988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19989 conftest$ac_exeext conftest.$ac_ext
19990 LIBS=$ac_check_lib_save_LIBS
19991 fi
19992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
19993 printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; }
19994 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
19995 then :
19996 SCHED_YIELD_LIB=-lposix4
19997 fi
19998
19999 fi
20000
20001
20002 fi
20003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20004 conftest$ac_exeext conftest.$ac_ext
20005
20006 LIB_SCHED_YIELD="$SCHED_YIELD_LIB"
20007
20008
20009 gl_pthreadlib_body_done=done
20010 fi
20011
20012
20013
20014
20015
20016
20017
20018
20019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
20020 printf %s "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
20021 if test ${gl_cv_func_setlocale_null_all_mtsafe+y}
20022 then :
20023 printf %s "(cached) " >&6
20024 else $as_nop
20025 case "$host_os" in
20026 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku.
20027 *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | openbsd* | aix* | haiku*)
20028 gl_cv_func_setlocale_null_all_mtsafe=no ;;
20029 # Guess no on Cygwin < 3.4.6.
20030 cygwin*)
20031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20032 /* end confdefs.h. */
20033
20034 #if defined __CYGWIN__
20035 #include <cygwin/version.h>
20036 #if CYGWIN_VERSION_DLL_COMBINED >= CYGWIN_VERSION_DLL_MAKE_COMBINED (3004, 6)
20037 Lucky user
20038 #endif
20039 #endif
20040
20041 _ACEOF
20042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20043 $EGREP "Lucky user" >/dev/null 2>&1
20044 then :
20045 gl_cv_func_setlocale_null_all_mtsafe=yes
20046 else $as_nop
20047 gl_cv_func_setlocale_null_all_mtsafe=no
20048 fi
20049 rm -rf conftest*
20050
20051 ;;
20052 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
20053 *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
20054 gl_cv_func_setlocale_null_all_mtsafe=yes ;;
20055 # If we don't know, obey --enable-cross-guesses.
20056 *)
20057 gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
20058 esac
20059
20060 fi
20061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
20062 printf "%s\n" "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
20063 case "$host_os" in
20064 mingw*) ;;
20065 *)
20066 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
20067 gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
20068 fi
20069 ;;
20070 esac
20071 case "$gl_cv_func_setlocale_null_all_mtsafe" in
20072 *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
20073 *) SETLOCALE_NULL_ALL_MTSAFE=0 ;;
20074 esac
20075
20076 printf "%s\n" "#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE" >>confdefs.h
20077
20078
20079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
20080 printf %s "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
20081 if test ${gl_cv_func_setlocale_null_one_mtsafe+y}
20082 then :
20083 printf %s "(cached) " >&6
20084 else $as_nop
20085 case "$host_os" in
20086 # Guess no on OpenBSD, AIX.
20087 openbsd* | aix*)
20088 gl_cv_func_setlocale_null_one_mtsafe=no ;;
20089 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
20090 *-gnu* | gnu* | *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
20091 gl_cv_func_setlocale_null_one_mtsafe=yes ;;
20092 # If we don't know, obey --enable-cross-guesses.
20093 *)
20094 gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
20095 esac
20096
20097 fi
20098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
20099 printf "%s\n" "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
20100 case "$host_os" in
20101 mingw*) ;;
20102 *)
20103 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
20104 gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
20105 fi
20106 ;;
20107 esac
20108 case "$gl_cv_func_setlocale_null_one_mtsafe" in
20109 *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
20110 *) SETLOCALE_NULL_ONE_MTSAFE=0 ;;
20111 esac
20112
20113 printf "%s\n" "#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE" >>confdefs.h
20114
20115
20116 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
20117 case "$host_os" in
20118 mingw*) SETLOCALE_NULL_LIB= ;;
20119 *)
20120
20121
20122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
20123 printf %s "checking whether imported symbols can be declared weak... " >&6; }
20124 if test ${gl_cv_have_weak+y}
20125 then :
20126 printf %s "(cached) " >&6
20127 else $as_nop
20128 case "$host_os" in
20129 cygwin*)
20130 gl_cv_have_weak="guessing no"
20131 ;;
20132 *)
20133 gl_cv_have_weak=no
20134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20135 /* end confdefs.h. */
20136 extern void xyzzy ();
20137 #pragma weak xyzzy
20138 int
20139 main (void)
20140 {
20141 xyzzy();
20142 ;
20143 return 0;
20144 }
20145 _ACEOF
20146 if ac_fn_c_try_link "$LINENO"
20147 then :
20148 gl_cv_have_weak=maybe
20149 fi
20150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20151 conftest$ac_exeext conftest.$ac_ext
20152 if test $gl_cv_have_weak = maybe; then
20153 if test "$cross_compiling" = yes
20154 then :
20155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20156 /* end confdefs.h. */
20157 #ifdef __ELF__
20158 Extensible Linking Format
20159 #endif
20160
20161 _ACEOF
20162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20163 $EGREP "Extensible Linking Format" >/dev/null 2>&1
20164 then :
20165 gl_cv_have_weak="guessing yes"
20166 else $as_nop
20167 gl_cv_have_weak="guessing no"
20168 fi
20169 rm -rf conftest*
20170
20171
20172 else $as_nop
20173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20174 /* end confdefs.h. */
20175
20176 #include <stdio.h>
20177 #pragma weak fputs
20178 int main ()
20179 {
20180 return (fputs == NULL);
20181 }
20182 _ACEOF
20183 if ac_fn_c_try_run "$LINENO"
20184 then :
20185 gl_cv_have_weak=yes
20186 else $as_nop
20187 gl_cv_have_weak=no
20188 fi
20189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20190 conftest.$ac_objext conftest.beam conftest.$ac_ext
20191 fi
20192
20193 fi
20194 ;;
20195 esac
20196 case " $LDFLAGS " in
20197 *" -static "*) gl_cv_have_weak=no ;;
20198 esac
20199 case "$gl_cv_have_weak" in
20200 *yes)
20201 case "$host_os" in
20202 freebsd* | dragonfly* | midnightbsd*)
20203 : > conftest1.c
20204 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
20205 cat <<EOF > conftest2.c
20206 #include <pthread.h>
20207 #pragma weak pthread_mutexattr_gettype
20208 int main ()
20209 {
20210 return (pthread_mutexattr_gettype != NULL);
20211 }
20212 EOF
20213 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
20214 || gl_cv_have_weak=no
20215 rm -f conftest1.c libempty.so conftest2.c conftest
20216 ;;
20217 esac
20218 ;;
20219 esac
20220
20221 fi
20222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
20223 printf "%s\n" "$gl_cv_have_weak" >&6; }
20224 case "$gl_cv_have_weak" in
20225 *yes)
20226
20227 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
20228
20229 ;;
20230 esac
20231
20232 case "$gl_cv_have_weak" in
20233 *yes) SETLOCALE_NULL_LIB= ;;
20234 *) SETLOCALE_NULL_LIB="$LIBPTHREAD" ;;
20235 esac
20236 ;;
20237 esac
20238 else
20239 SETLOCALE_NULL_LIB=
20240 fi
20241
20242 LIB_SETLOCALE_NULL="$SETLOCALE_NULL_LIB"
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256 if test $gl_cv_have_include_next = yes; then
20257 gl_cv_next_limits_h='<'limits.h'>'
20258 else
20259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
20260 printf %s "checking absolute name of <limits.h>... " >&6; }
20261 if test ${gl_cv_next_limits_h+y}
20262 then :
20263 printf %s "(cached) " >&6
20264 else $as_nop
20265
20266 if test $ac_cv_header_limits_h = yes; then
20267
20268
20269
20270
20271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20272 /* end confdefs.h. */
20273 #include <limits.h>
20274 _ACEOF
20275 case "$host_os" in
20276 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20277 *) gl_absname_cpp="$ac_cpp" ;;
20278 esac
20279
20280 case "$host_os" in
20281 mingw*)
20282 gl_dirsep_regex='[/\\]'
20283 ;;
20284 *)
20285 gl_dirsep_regex='\/'
20286 ;;
20287 esac
20288 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20289 gl_header_literal_regex=`echo 'limits.h' \
20290 | sed -e "$gl_make_literal_regex_sed"`
20291 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20292 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20293 s|^/[^/]|//&|
20294 p
20295 q
20296 }'
20297
20298 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20299 sed -n "$gl_absolute_header_sed"`
20300
20301 gl_header=$gl_cv_absolute_limits_h
20302 gl_cv_next_limits_h='"'$gl_header'"'
20303 else
20304 gl_cv_next_limits_h='<'limits.h'>'
20305 fi
20306
20307
20308 fi
20309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
20310 printf "%s\n" "$gl_cv_next_limits_h" >&6; }
20311 fi
20312 NEXT_LIMITS_H=$gl_cv_next_limits_h
20313
20314 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20315 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20316 gl_next_as_first_directive='<'limits.h'>'
20317 else
20318 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20319 gl_next_as_first_directive=$gl_cv_next_limits_h
20320 fi
20321 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
20322
20323
20324
20325
20326
20327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5
20328 printf %s "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; }
20329 if test ${gl_cv_header_limits_width+y}
20330 then :
20331 printf %s "(cached) " >&6
20332 else $as_nop
20333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20334 /* end confdefs.h. */
20335 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
20336 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
20337 #endif
20338 #include <limits.h>
20339 long long llm = LLONG_MAX;
20340 int wb = WORD_BIT;
20341 int ullw = ULLONG_WIDTH;
20342 int bw = BOOL_WIDTH;
20343 int bm = BOOL_MAX;
20344
20345 int
20346 main (void)
20347 {
20348
20349 ;
20350 return 0;
20351 }
20352 _ACEOF
20353 if ac_fn_c_try_compile "$LINENO"
20354 then :
20355 gl_cv_header_limits_width=yes
20356 else $as_nop
20357 gl_cv_header_limits_width=no
20358 fi
20359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20360 fi
20361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
20362 printf "%s\n" "$gl_cv_header_limits_width" >&6; }
20363 if test "$gl_cv_header_limits_width" = yes; then
20364 GL_GENERATE_LIMITS_H=false
20365 else
20366 GL_GENERATE_LIMITS_H=true
20367 fi
20368
20369
20370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
20371 printf %s "checking for wint_t... " >&6; }
20372 if test ${gt_cv_c_wint_t+y}
20373 then :
20374 printf %s "(cached) " >&6
20375 else $as_nop
20376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20377 /* end confdefs.h. */
20378 #include <wchar.h>
20379 wint_t foo = (wchar_t)'\0';
20380 int
20381 main (void)
20382 {
20383
20384 ;
20385 return 0;
20386 }
20387 _ACEOF
20388 if ac_fn_c_try_compile "$LINENO"
20389 then :
20390 gt_cv_c_wint_t=yes
20391 else $as_nop
20392 gt_cv_c_wint_t=no
20393 fi
20394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20395 fi
20396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20397 printf "%s\n" "$gt_cv_c_wint_t" >&6; }
20398 if test $gt_cv_c_wint_t = yes; then
20399
20400 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
20401
20402
20403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
20404 printf %s "checking whether wint_t is large enough... " >&6; }
20405 if test ${gl_cv_type_wint_t_large_enough+y}
20406 then :
20407 printf %s "(cached) " >&6
20408 else $as_nop
20409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20410 /* end confdefs.h. */
20411 #include <wchar.h>
20412 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
20413
20414 int
20415 main (void)
20416 {
20417
20418 ;
20419 return 0;
20420 }
20421 _ACEOF
20422 if ac_fn_c_try_compile "$LINENO"
20423 then :
20424 gl_cv_type_wint_t_large_enough=yes
20425 else $as_nop
20426 gl_cv_type_wint_t_large_enough=no
20427 fi
20428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20429 fi
20430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
20431 printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; }
20432 if test $gl_cv_type_wint_t_large_enough = no; then
20433 GNULIBHEADERS_OVERRIDE_WINT_T=1
20434 else
20435 GNULIBHEADERS_OVERRIDE_WINT_T=0
20436 fi
20437 else
20438 GNULIBHEADERS_OVERRIDE_WINT_T=0
20439 fi
20440
20441
20442
20443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
20444 printf %s "checking whether the compiler produces multi-arch binaries... " >&6; }
20445 if test ${gl_cv_c_multiarch+y}
20446 then :
20447 printf %s "(cached) " >&6
20448 else $as_nop
20449 gl_cv_c_multiarch=no
20450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20451 /* end confdefs.h. */
20452 #ifndef __APPLE_CC__
20453 not a universal capable compiler
20454 #endif
20455 typedef int dummy;
20456
20457 _ACEOF
20458 if ac_fn_c_try_compile "$LINENO"
20459 then :
20460
20461 arch=
20462 prev=
20463 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
20464 if test -n "$prev"; then
20465 case $word in
20466 i?86 | x86_64 | ppc | ppc64 | arm | arm64)
20467 if test -z "$arch" || test "$arch" = "$word"; then
20468 arch="$word"
20469 else
20470 gl_cv_c_multiarch=yes
20471 fi
20472 ;;
20473 esac
20474 prev=
20475 else
20476 if test "x$word" = "x-arch"; then
20477 prev=arch
20478 fi
20479 fi
20480 done
20481
20482 fi
20483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20484
20485 fi
20486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
20487 printf "%s\n" "$gl_cv_c_multiarch" >&6; }
20488 if test $gl_cv_c_multiarch = yes; then
20489 APPLE_UNIVERSAL_BUILD=1
20490 else
20491 APPLE_UNIVERSAL_BUILD=0
20492 fi
20493
20494
20495
20496
20497
20498
20499
20500
20501 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20502
20503
20504 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20505
20506
20507
20508 if test $ac_cv_header_wchar_h = yes; then
20509 HAVE_WCHAR_H=1
20510 else
20511 HAVE_WCHAR_H=0
20512 fi
20513
20514
20515
20516 if test $ac_cv_header_inttypes_h = yes; then
20517 HAVE_INTTYPES_H=1
20518 else
20519 HAVE_INTTYPES_H=0
20520 fi
20521
20522
20523
20524 if test $ac_cv_header_sys_types_h = yes; then
20525 HAVE_SYS_TYPES_H=1
20526 else
20527 HAVE_SYS_TYPES_H=0
20528 fi
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540 if test $gl_cv_have_include_next = yes; then
20541 gl_cv_next_stdint_h='<'stdint.h'>'
20542 else
20543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20544 printf %s "checking absolute name of <stdint.h>... " >&6; }
20545 if test ${gl_cv_next_stdint_h+y}
20546 then :
20547 printf %s "(cached) " >&6
20548 else $as_nop
20549
20550 if test $ac_cv_header_stdint_h = yes; then
20551
20552
20553
20554
20555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20556 /* end confdefs.h. */
20557 #include <stdint.h>
20558 _ACEOF
20559 case "$host_os" in
20560 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20561 *) gl_absname_cpp="$ac_cpp" ;;
20562 esac
20563
20564 case "$host_os" in
20565 mingw*)
20566 gl_dirsep_regex='[/\\]'
20567 ;;
20568 *)
20569 gl_dirsep_regex='\/'
20570 ;;
20571 esac
20572 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20573 gl_header_literal_regex=`echo 'stdint.h' \
20574 | sed -e "$gl_make_literal_regex_sed"`
20575 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20576 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20577 s|^/[^/]|//&|
20578 p
20579 q
20580 }'
20581
20582 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20583 sed -n "$gl_absolute_header_sed"`
20584
20585 gl_header=$gl_cv_absolute_stdint_h
20586 gl_cv_next_stdint_h='"'$gl_header'"'
20587 else
20588 gl_cv_next_stdint_h='<'stdint.h'>'
20589 fi
20590
20591
20592 fi
20593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
20594 printf "%s\n" "$gl_cv_next_stdint_h" >&6; }
20595 fi
20596 NEXT_STDINT_H=$gl_cv_next_stdint_h
20597
20598 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20599 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20600 gl_next_as_first_directive='<'stdint.h'>'
20601 else
20602 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20603 gl_next_as_first_directive=$gl_cv_next_stdint_h
20604 fi
20605 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
20606
20607
20608
20609
20610 if test $ac_cv_header_stdint_h = yes; then
20611 HAVE_STDINT_H=1
20612 else
20613 HAVE_STDINT_H=0
20614 fi
20615
20616
20617 if test $ac_cv_header_stdint_h = yes; then
20618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
20619 printf %s "checking whether stdint.h conforms to C99... " >&6; }
20620 if test ${gl_cv_header_working_stdint_h+y}
20621 then :
20622 printf %s "(cached) " >&6
20623 else $as_nop
20624 gl_cv_header_working_stdint_h=no
20625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20626 /* end confdefs.h. */
20627
20628
20629 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20630 #define __STDC_CONSTANT_MACROS 1
20631 #define __STDC_LIMIT_MACROS 1
20632 #include <stdint.h>
20633 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
20634 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
20635 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20636 #endif
20637
20638
20639 #include <stddef.h>
20640 #include <signal.h>
20641 #if HAVE_WCHAR_H
20642 # include <wchar.h>
20643 #endif
20644
20645
20646 #ifdef INT8_MAX
20647 int8_t a1 = INT8_MAX;
20648 int8_t a1min = INT8_MIN;
20649 #endif
20650 #ifdef INT16_MAX
20651 int16_t a2 = INT16_MAX;
20652 int16_t a2min = INT16_MIN;
20653 #endif
20654 #ifdef INT32_MAX
20655 int32_t a3 = INT32_MAX;
20656 int32_t a3min = INT32_MIN;
20657 #endif
20658 #ifdef INT64_MAX
20659 int64_t a4 = INT64_MAX;
20660 int64_t a4min = INT64_MIN;
20661 #endif
20662 #ifdef UINT8_MAX
20663 uint8_t b1 = UINT8_MAX;
20664 #else
20665 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20666 #endif
20667 #ifdef UINT16_MAX
20668 uint16_t b2 = UINT16_MAX;
20669 #endif
20670 #ifdef UINT32_MAX
20671 uint32_t b3 = UINT32_MAX;
20672 #endif
20673 #ifdef UINT64_MAX
20674 uint64_t b4 = UINT64_MAX;
20675 #endif
20676 int_least8_t c1 = INT8_C (0x7f);
20677 int_least8_t c1max = INT_LEAST8_MAX;
20678 int_least8_t c1min = INT_LEAST8_MIN;
20679 int_least16_t c2 = INT16_C (0x7fff);
20680 int_least16_t c2max = INT_LEAST16_MAX;
20681 int_least16_t c2min = INT_LEAST16_MIN;
20682 int_least32_t c3 = INT32_C (0x7fffffff);
20683 int_least32_t c3max = INT_LEAST32_MAX;
20684 int_least32_t c3min = INT_LEAST32_MIN;
20685 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20686 int_least64_t c4max = INT_LEAST64_MAX;
20687 int_least64_t c4min = INT_LEAST64_MIN;
20688 uint_least8_t d1 = UINT8_C (0xff);
20689 uint_least8_t d1max = UINT_LEAST8_MAX;
20690 uint_least16_t d2 = UINT16_C (0xffff);
20691 uint_least16_t d2max = UINT_LEAST16_MAX;
20692 uint_least32_t d3 = UINT32_C (0xffffffff);
20693 uint_least32_t d3max = UINT_LEAST32_MAX;
20694 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20695 uint_least64_t d4max = UINT_LEAST64_MAX;
20696 int_fast8_t e1 = INT_FAST8_MAX;
20697 int_fast8_t e1min = INT_FAST8_MIN;
20698 int_fast16_t e2 = INT_FAST16_MAX;
20699 int_fast16_t e2min = INT_FAST16_MIN;
20700 int_fast32_t e3 = INT_FAST32_MAX;
20701 int_fast32_t e3min = INT_FAST32_MIN;
20702 int_fast64_t e4 = INT_FAST64_MAX;
20703 int_fast64_t e4min = INT_FAST64_MIN;
20704 uint_fast8_t f1 = UINT_FAST8_MAX;
20705 uint_fast16_t f2 = UINT_FAST16_MAX;
20706 uint_fast32_t f3 = UINT_FAST32_MAX;
20707 uint_fast64_t f4 = UINT_FAST64_MAX;
20708 #ifdef INTPTR_MAX
20709 intptr_t g = INTPTR_MAX;
20710 intptr_t gmin = INTPTR_MIN;
20711 #endif
20712 #ifdef UINTPTR_MAX
20713 uintptr_t h = UINTPTR_MAX;
20714 #endif
20715 intmax_t i = INTMAX_MAX;
20716 uintmax_t j = UINTMAX_MAX;
20717
20718 /* Check that SIZE_MAX has the correct type, if possible. */
20719 #if 201112 <= __STDC_VERSION__
20720 int k = _Generic (SIZE_MAX, size_t: 0);
20721 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
20722 || (0x5110 <= __SUNPRO_C && !__STDC__))
20723 extern size_t k;
20724 extern __typeof__ (SIZE_MAX) k;
20725 #endif
20726
20727 #include <limits.h> /* for CHAR_BIT */
20728 #define TYPE_MINIMUM(t) \
20729 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20730 #define TYPE_MAXIMUM(t) \
20731 ((t) ((t) 0 < (t) -1 \
20732 ? (t) -1 \
20733 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20734 struct s {
20735 int check_PTRDIFF:
20736 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20737 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20738 ? 1 : -1;
20739 /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64. */
20740 int check_SIG_ATOMIC:
20741 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20742 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20743 ? 1 : -1;
20744 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20745 int check_WCHAR:
20746 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20747 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20748 ? 1 : -1;
20749 /* Detect bug in mingw. */
20750 int check_WINT:
20751 WINT_MIN == TYPE_MINIMUM (wint_t)
20752 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20753 ? 1 : -1;
20754
20755 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20756 int check_UINT8_C:
20757 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20758 int check_UINT16_C:
20759 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20760
20761 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20762 #ifdef UINT8_MAX
20763 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20764 #endif
20765 #ifdef UINT16_MAX
20766 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20767 #endif
20768 #ifdef UINT32_MAX
20769 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20770 #endif
20771 #ifdef UINT64_MAX
20772 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20773 #endif
20774 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20775 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20776 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20777 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20778 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20779 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20780 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20781 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20782 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20783 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20784 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20785 };
20786
20787 int
20788 main (void)
20789 {
20790
20791 ;
20792 return 0;
20793 }
20794 _ACEOF
20795 if ac_fn_c_try_compile "$LINENO"
20796 then :
20797 if test "$cross_compiling" = yes
20798 then :
20799 case "$host_os" in
20800 # Guess yes on native Windows.
20801 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
20802 # In general, assume it works.
20803 *) gl_cv_header_working_stdint_h="guessing yes" ;;
20804 esac
20805
20806 else $as_nop
20807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20808 /* end confdefs.h. */
20809
20810
20811 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20812 #define __STDC_CONSTANT_MACROS 1
20813 #define __STDC_LIMIT_MACROS 1
20814 #include <stdint.h>
20815
20816
20817 #include <stddef.h>
20818 #include <signal.h>
20819 #if HAVE_WCHAR_H
20820 # include <wchar.h>
20821 #endif
20822
20823
20824 #include <stdio.h>
20825 #include <string.h>
20826 #define MVAL(macro) MVAL1(macro)
20827 #define MVAL1(expression) #expression
20828 static const char *macro_values[] =
20829 {
20830 #ifdef INT8_MAX
20831 MVAL (INT8_MAX),
20832 #endif
20833 #ifdef INT16_MAX
20834 MVAL (INT16_MAX),
20835 #endif
20836 #ifdef INT32_MAX
20837 MVAL (INT32_MAX),
20838 #endif
20839 #ifdef INT64_MAX
20840 MVAL (INT64_MAX),
20841 #endif
20842 #ifdef UINT8_MAX
20843 MVAL (UINT8_MAX),
20844 #endif
20845 #ifdef UINT16_MAX
20846 MVAL (UINT16_MAX),
20847 #endif
20848 #ifdef UINT32_MAX
20849 MVAL (UINT32_MAX),
20850 #endif
20851 #ifdef UINT64_MAX
20852 MVAL (UINT64_MAX),
20853 #endif
20854 NULL
20855 };
20856
20857 int
20858 main (void)
20859 {
20860
20861 const char **mv;
20862 for (mv = macro_values; *mv != NULL; mv++)
20863 {
20864 const char *value = *mv;
20865 /* Test whether it looks like a cast expression. */
20866 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20867 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20868 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20869 || strncmp (value, "((int)"/*)*/, 6) == 0
20870 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20871 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20872 return mv - macro_values + 1;
20873 }
20874 return 0;
20875
20876 ;
20877 return 0;
20878 }
20879 _ACEOF
20880 if ac_fn_c_try_run "$LINENO"
20881 then :
20882 gl_cv_header_working_stdint_h=yes
20883 fi
20884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20885 conftest.$ac_objext conftest.beam conftest.$ac_ext
20886 fi
20887
20888
20889 fi
20890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20891
20892 fi
20893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20894 printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; }
20895 fi
20896
20897 HAVE_C99_STDINT_H=0
20898 HAVE_SYS_BITYPES_H=0
20899 HAVE_SYS_INTTYPES_H=0
20900 GL_GENERATE_STDINT_H=true
20901 case "$gl_cv_header_working_stdint_h" in
20902 *yes)
20903 HAVE_C99_STDINT_H=1
20904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
20905 printf %s "checking whether stdint.h works without ISO C predefines... " >&6; }
20906 if test ${gl_cv_header_stdint_without_STDC_macros+y}
20907 then :
20908 printf %s "(cached) " >&6
20909 else $as_nop
20910 gl_cv_header_stdint_without_STDC_macros=no
20911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20912 /* end confdefs.h. */
20913
20914
20915 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20916 #include <stdint.h>
20917
20918
20919 #include <stddef.h>
20920 #include <signal.h>
20921 #if HAVE_WCHAR_H
20922 # include <wchar.h>
20923 #endif
20924
20925
20926 intmax_t im = INTMAX_MAX;
20927 int32_t i32 = INT32_C (0x7fffffff);
20928
20929 int
20930 main (void)
20931 {
20932
20933 ;
20934 return 0;
20935 }
20936 _ACEOF
20937 if ac_fn_c_try_compile "$LINENO"
20938 then :
20939 gl_cv_header_stdint_without_STDC_macros=yes
20940 fi
20941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20942
20943 fi
20944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
20945 printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; }
20946
20947 if test $gl_cv_header_stdint_without_STDC_macros = no; then
20948
20949 printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
20950
20951
20952 printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
20953
20954 fi
20955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
20956 printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
20957 if test ${gl_cv_header_stdint_width+y}
20958 then :
20959 printf %s "(cached) " >&6
20960 else $as_nop
20961 gl_cv_header_stdint_width=no
20962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20963 /* end confdefs.h. */
20964
20965 /* Work if build is not clean. */
20966 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
20967 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
20968 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
20969 #endif
20970 #include <stdint.h>
20971
20972 #include <stddef.h>
20973 #include <signal.h>
20974 #if HAVE_WCHAR_H
20975 # include <wchar.h>
20976 #endif
20977
20978 int iw = UINTMAX_WIDTH;
20979
20980 int
20981 main (void)
20982 {
20983
20984 ;
20985 return 0;
20986 }
20987 _ACEOF
20988 if ac_fn_c_try_compile "$LINENO"
20989 then :
20990 gl_cv_header_stdint_width=yes
20991 fi
20992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20993 fi
20994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
20995 printf "%s\n" "$gl_cv_header_stdint_width" >&6; }
20996 if test "$gl_cv_header_stdint_width" = yes; then
20997 GL_GENERATE_STDINT_H=false
20998 fi
20999 ;;
21000 *)
21001 ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
21002 if test "x$ac_cv_header_sys_inttypes_h" = xyes
21003 then :
21004 printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h
21005
21006 fi
21007 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
21008 if test "x$ac_cv_header_sys_bitypes_h" = xyes
21009 then :
21010 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
21011
21012 fi
21013
21014 if test $ac_cv_header_sys_inttypes_h = yes; then
21015 HAVE_SYS_INTTYPES_H=1
21016 fi
21017 if test $ac_cv_header_sys_bitypes_h = yes; then
21018 HAVE_SYS_BITYPES_H=1
21019 fi
21020
21021
21022 if test $APPLE_UNIVERSAL_BUILD = 0; then
21023
21024
21025 for gltype in ptrdiff_t size_t ; do
21026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21027 printf %s "checking for bit size of $gltype... " >&6; }
21028 if eval test \${gl_cv_bitsizeof_${gltype}+y}
21029 then :
21030 printf %s "(cached) " >&6
21031 else $as_nop
21032 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21033 #include <stddef.h>
21034 #include <signal.h>
21035 #if HAVE_WCHAR_H
21036 # include <wchar.h>
21037 #endif
21038
21039 #include <limits.h>"
21040 then :
21041
21042 else $as_nop
21043 result=unknown
21044 fi
21045
21046 eval gl_cv_bitsizeof_${gltype}=\$result
21047
21048 fi
21049 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21051 printf "%s\n" "$ac_res" >&6; }
21052 eval result=\$gl_cv_bitsizeof_${gltype}
21053 if test $result = unknown; then
21054 result=0
21055 fi
21056 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21057 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
21058
21059 eval BITSIZEOF_${GLTYPE}=\$result
21060 done
21061
21062
21063 fi
21064
21065
21066 for gltype in sig_atomic_t wchar_t wint_t ; do
21067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21068 printf %s "checking for bit size of $gltype... " >&6; }
21069 if eval test \${gl_cv_bitsizeof_${gltype}+y}
21070 then :
21071 printf %s "(cached) " >&6
21072 else $as_nop
21073 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21074 #include <stddef.h>
21075 #include <signal.h>
21076 #if HAVE_WCHAR_H
21077 # include <wchar.h>
21078 #endif
21079
21080 #include <limits.h>"
21081 then :
21082
21083 else $as_nop
21084 result=unknown
21085 fi
21086
21087 eval gl_cv_bitsizeof_${gltype}=\$result
21088
21089 fi
21090 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21092 printf "%s\n" "$ac_res" >&6; }
21093 eval result=\$gl_cv_bitsizeof_${gltype}
21094 if test $result = unknown; then
21095 result=0
21096 fi
21097 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21098 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
21099
21100 eval BITSIZEOF_${GLTYPE}=\$result
21101 done
21102
21103
21104
21105
21106 for gltype in sig_atomic_t wchar_t wint_t ; do
21107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
21108 printf %s "checking whether $gltype is signed... " >&6; }
21109 if eval test \${gl_cv_type_${gltype}_signed+y}
21110 then :
21111 printf %s "(cached) " >&6
21112 else $as_nop
21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h. */
21115
21116 #include <stddef.h>
21117 #include <signal.h>
21118 #if HAVE_WCHAR_H
21119 # include <wchar.h>
21120 #endif
21121
21122 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
21123 int
21124 main (void)
21125 {
21126
21127 ;
21128 return 0;
21129 }
21130 _ACEOF
21131 if ac_fn_c_try_compile "$LINENO"
21132 then :
21133 result=yes
21134 else $as_nop
21135 result=no
21136 fi
21137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21138 eval gl_cv_type_${gltype}_signed=\$result
21139
21140 fi
21141 eval ac_res=\$gl_cv_type_${gltype}_signed
21142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21143 printf "%s\n" "$ac_res" >&6; }
21144 eval result=\$gl_cv_type_${gltype}_signed
21145 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21146 if test "$result" = yes; then
21147 printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h
21148
21149 eval HAVE_SIGNED_${GLTYPE}=1
21150 else
21151 eval HAVE_SIGNED_${GLTYPE}=0
21152 fi
21153 done
21154
21155
21156 gl_cv_type_ptrdiff_t_signed=yes
21157 gl_cv_type_size_t_signed=no
21158 if test $APPLE_UNIVERSAL_BUILD = 0; then
21159
21160
21161 for gltype in ptrdiff_t size_t ; do
21162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21163 printf %s "checking for $gltype integer literal suffix... " >&6; }
21164 if eval test \${gl_cv_type_${gltype}_suffix+y}
21165 then :
21166 printf %s "(cached) " >&6
21167 else $as_nop
21168 eval gl_cv_type_${gltype}_suffix=no
21169 eval result=\$gl_cv_type_${gltype}_signed
21170 if test "$result" = yes; then
21171 glsufu=
21172 else
21173 glsufu=u
21174 fi
21175 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21176 case $glsuf in
21177 '') gltype1='int';;
21178 l) gltype1='long int';;
21179 ll) gltype1='long long int';;
21180 i64) gltype1='__int64';;
21181 u) gltype1='unsigned int';;
21182 ul) gltype1='unsigned long int';;
21183 ull) gltype1='unsigned long long int';;
21184 ui64)gltype1='unsigned __int64';;
21185 esac
21186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21187 /* end confdefs.h. */
21188
21189 #include <stddef.h>
21190 #include <signal.h>
21191 #if HAVE_WCHAR_H
21192 # include <wchar.h>
21193 #endif
21194
21195 extern $gltype foo;
21196 extern $gltype1 foo;
21197 int
21198 main (void)
21199 {
21200
21201 ;
21202 return 0;
21203 }
21204 _ACEOF
21205 if ac_fn_c_try_compile "$LINENO"
21206 then :
21207 eval gl_cv_type_${gltype}_suffix=\$glsuf
21208 fi
21209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21210 eval result=\$gl_cv_type_${gltype}_suffix
21211 test "$result" != no && break
21212 done
21213 fi
21214 eval ac_res=\$gl_cv_type_${gltype}_suffix
21215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21216 printf "%s\n" "$ac_res" >&6; }
21217 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21218 eval result=\$gl_cv_type_${gltype}_suffix
21219 test "$result" = no && result=
21220 eval ${GLTYPE}_SUFFIX=\$result
21221 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
21222
21223 done
21224
21225
21226 fi
21227
21228
21229 for gltype in sig_atomic_t wchar_t wint_t ; do
21230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21231 printf %s "checking for $gltype integer literal suffix... " >&6; }
21232 if eval test \${gl_cv_type_${gltype}_suffix+y}
21233 then :
21234 printf %s "(cached) " >&6
21235 else $as_nop
21236 eval gl_cv_type_${gltype}_suffix=no
21237 eval result=\$gl_cv_type_${gltype}_signed
21238 if test "$result" = yes; then
21239 glsufu=
21240 else
21241 glsufu=u
21242 fi
21243 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21244 case $glsuf in
21245 '') gltype1='int';;
21246 l) gltype1='long int';;
21247 ll) gltype1='long long int';;
21248 i64) gltype1='__int64';;
21249 u) gltype1='unsigned int';;
21250 ul) gltype1='unsigned long int';;
21251 ull) gltype1='unsigned long long int';;
21252 ui64)gltype1='unsigned __int64';;
21253 esac
21254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21255 /* end confdefs.h. */
21256
21257 #include <stddef.h>
21258 #include <signal.h>
21259 #if HAVE_WCHAR_H
21260 # include <wchar.h>
21261 #endif
21262
21263 extern $gltype foo;
21264 extern $gltype1 foo;
21265 int
21266 main (void)
21267 {
21268
21269 ;
21270 return 0;
21271 }
21272 _ACEOF
21273 if ac_fn_c_try_compile "$LINENO"
21274 then :
21275 eval gl_cv_type_${gltype}_suffix=\$glsuf
21276 fi
21277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21278 eval result=\$gl_cv_type_${gltype}_suffix
21279 test "$result" != no && break
21280 done
21281 fi
21282 eval ac_res=\$gl_cv_type_${gltype}_suffix
21283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21284 printf "%s\n" "$ac_res" >&6; }
21285 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21286 eval result=\$gl_cv_type_${gltype}_suffix
21287 test "$result" = no && result=
21288 eval ${GLTYPE}_SUFFIX=\$result
21289 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
21290
21291 done
21292
21293
21294
21295 if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
21296 BITSIZEOF_WINT_T=32
21297 fi
21298
21299 ;;
21300 esac
21301
21302
21303
21304 GL_GENERATE_LIMITS_H=true
21305
21306
21307
21308
21309
21310
21311
21312 HAVE_DECL_IMAXABS=1;
21313 HAVE_DECL_IMAXDIV=1;
21314 HAVE_DECL_STRTOIMAX=1;
21315 HAVE_DECL_STRTOUMAX=1;
21316 HAVE_IMAXDIV_T=1;
21317 HAVE_IMAXABS=1;
21318 HAVE_IMAXDIV=1;
21319 REPLACE_IMAXABS=0;
21320 REPLACE_IMAXDIV=0;
21321 REPLACE_STRTOIMAX=0;
21322 REPLACE_STRTOUMAX=0;
21323 INT32_MAX_LT_INTMAX_MAX=1;
21324 INT64_MAX_EQ_LONG_MAX='defined _LP64';
21325 PRIPTR_PREFIX=__PRIPTR_PREFIX;
21326 UINT32_MAX_LT_UINTMAX_MAX=1;
21327 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343 if test $gl_cv_have_include_next = yes; then
21344 gl_cv_next_inttypes_h='<'inttypes.h'>'
21345 else
21346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
21347 printf %s "checking absolute name of <inttypes.h>... " >&6; }
21348 if test ${gl_cv_next_inttypes_h+y}
21349 then :
21350 printf %s "(cached) " >&6
21351 else $as_nop
21352
21353 if test $ac_cv_header_inttypes_h = yes; then
21354
21355
21356
21357
21358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21359 /* end confdefs.h. */
21360 #include <inttypes.h>
21361 _ACEOF
21362 case "$host_os" in
21363 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21364 *) gl_absname_cpp="$ac_cpp" ;;
21365 esac
21366
21367 case "$host_os" in
21368 mingw*)
21369 gl_dirsep_regex='[/\\]'
21370 ;;
21371 *)
21372 gl_dirsep_regex='\/'
21373 ;;
21374 esac
21375 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21376 gl_header_literal_regex=`echo 'inttypes.h' \
21377 | sed -e "$gl_make_literal_regex_sed"`
21378 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21379 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21380 s|^/[^/]|//&|
21381 p
21382 q
21383 }'
21384
21385 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21386 sed -n "$gl_absolute_header_sed"`
21387
21388 gl_header=$gl_cv_absolute_inttypes_h
21389 gl_cv_next_inttypes_h='"'$gl_header'"'
21390 else
21391 gl_cv_next_inttypes_h='<'inttypes.h'>'
21392 fi
21393
21394
21395 fi
21396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
21397 printf "%s\n" "$gl_cv_next_inttypes_h" >&6; }
21398 fi
21399 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
21400
21401 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21402 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21403 gl_next_as_first_directive='<'inttypes.h'>'
21404 else
21405 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21406 gl_next_as_first_directive=$gl_cv_next_inttypes_h
21407 fi
21408 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424 GL_GL_PAPER_GNULIB_IMAXABS=0
21425
21426
21427
21428 GL_GL_PAPER_GNULIB_IMAXDIV=0
21429
21430
21431
21432 GL_GL_PAPER_GNULIB_STRTOIMAX=0
21433
21434
21435
21436 GL_GL_PAPER_GNULIB_STRTOUMAX=0
21437
21438
21439
21440
21441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
21442 printf %s "checking for nl_langinfo and CODESET... " >&6; }
21443 if test ${am_cv_langinfo_codeset+y}
21444 then :
21445 printf %s "(cached) " >&6
21446 else $as_nop
21447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21448 /* end confdefs.h. */
21449 #include <langinfo.h>
21450 int
21451 main (void)
21452 {
21453 char* cs = nl_langinfo(CODESET); return !cs;
21454 ;
21455 return 0;
21456 }
21457 _ACEOF
21458 if ac_fn_c_try_link "$LINENO"
21459 then :
21460 am_cv_langinfo_codeset=yes
21461 else $as_nop
21462 am_cv_langinfo_codeset=no
21463 fi
21464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21465 conftest$ac_exeext conftest.$ac_ext
21466
21467 fi
21468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
21469 printf "%s\n" "$am_cv_langinfo_codeset" >&6; }
21470 if test $am_cv_langinfo_codeset = yes; then
21471
21472 printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
21473
21474 fi
21475
21476
21477 HAVE_NEWLOCALE=1;
21478 HAVE_DUPLOCALE=1;
21479 HAVE_FREELOCALE=1;
21480 REPLACE_LOCALECONV=0;
21481 REPLACE_SETLOCALE=0;
21482 REPLACE_NEWLOCALE=0;
21483 REPLACE_DUPLOCALE=0;
21484 REPLACE_FREELOCALE=0;
21485 REPLACE_STRUCT_LCONV=0;
21486 LOCALENAME_ENHANCE_LOCALE_FUNCS=0;
21487
21488
21489 REPLACE_NULL=0;
21490 HAVE_MAX_ALIGN_T=1;
21491 HAVE_WCHAR_T=1;
21492
21493
21494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21495 printf %s "checking for wchar_t... " >&6; }
21496 if test ${gt_cv_c_wchar_t+y}
21497 then :
21498 printf %s "(cached) " >&6
21499 else $as_nop
21500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21501 /* end confdefs.h. */
21502 #include <stddef.h>
21503 wchar_t foo = (wchar_t)'\0';
21504 int
21505 main (void)
21506 {
21507
21508 ;
21509 return 0;
21510 }
21511 _ACEOF
21512 if ac_fn_c_try_compile "$LINENO"
21513 then :
21514 gt_cv_c_wchar_t=yes
21515 else $as_nop
21516 gt_cv_c_wchar_t=no
21517 fi
21518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21519 fi
21520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21521 printf "%s\n" "$gt_cv_c_wchar_t" >&6; }
21522 if test $gt_cv_c_wchar_t = yes; then
21523
21524 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
21525
21526 fi
21527
21528
21529
21530
21531
21532
21533
21534 GL_GENERATE_STDDEF_H=false
21535
21536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
21537 printf %s "checking for good max_align_t... " >&6; }
21538 if test ${gl_cv_type_max_align_t+y}
21539 then :
21540 printf %s "(cached) " >&6
21541 else $as_nop
21542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h. */
21544 /* On FreeBSD 12.0/x86, max_align_t defined by <stddef.h> has
21545 the correct alignment with the default (wrong) definition of
21546 _Alignof, but a wrong alignment as soon as we activate an
21547 ISO C compliant _Alignof definition. */
21548 #if ((defined __GNUC__ && 4 <= __GNUC__) || defined __clang__) && !defined __cplusplus
21549 #define _Alignof(type) __builtin_offsetof (struct { char __a; type __b; }, __b)
21550 #endif
21551 #include <stddef.h>
21552 unsigned int s = sizeof (max_align_t);
21553 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
21554 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
21555 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
21556 #endif
21557 typedef struct { char a; max_align_t b; } max_helper;
21558 typedef struct { char a; long b; } long_helper;
21559 typedef struct { char a; double b; } double_helper;
21560 typedef struct { char a; long double b; } long_double_helper;
21561 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
21562 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
21563 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
21564
21565 int
21566 main (void)
21567 {
21568
21569 ;
21570 return 0;
21571 }
21572 _ACEOF
21573 if ac_fn_c_try_compile "$LINENO"
21574 then :
21575 gl_cv_type_max_align_t=yes
21576 else $as_nop
21577 gl_cv_type_max_align_t=no
21578 fi
21579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21580
21581 fi
21582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
21583 printf "%s\n" "$gl_cv_type_max_align_t" >&6; }
21584 if test $gl_cv_type_max_align_t = no; then
21585 HAVE_MAX_ALIGN_T=0
21586 GL_GENERATE_STDDEF_H=true
21587 fi
21588
21589 if test $gt_cv_c_wchar_t = no; then
21590 HAVE_WCHAR_T=0
21591 GL_GENERATE_STDDEF_H=true
21592 fi
21593
21594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21595 printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; }
21596 if test ${gl_cv_decl_null_works+y}
21597 then :
21598 printf %s "(cached) " >&6
21599 else $as_nop
21600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21601 /* end confdefs.h. */
21602 #include <stddef.h>
21603 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21604
21605 int
21606 main (void)
21607 {
21608
21609 ;
21610 return 0;
21611 }
21612 _ACEOF
21613 if ac_fn_c_try_compile "$LINENO"
21614 then :
21615 gl_cv_decl_null_works=yes
21616 else $as_nop
21617 gl_cv_decl_null_works=no
21618 fi
21619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21620 fi
21621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21622 printf "%s\n" "$gl_cv_decl_null_works" >&6; }
21623 if test $gl_cv_decl_null_works = no; then
21624 REPLACE_NULL=1
21625 GL_GENERATE_STDDEF_H=true
21626 fi
21627
21628 if $GL_GENERATE_STDDEF_H; then
21629
21630
21631
21632
21633
21634
21635
21636
21637 if test $gl_cv_have_include_next = yes; then
21638 gl_cv_next_stddef_h='<'stddef.h'>'
21639 else
21640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21641 printf %s "checking absolute name of <stddef.h>... " >&6; }
21642 if test ${gl_cv_next_stddef_h+y}
21643 then :
21644 printf %s "(cached) " >&6
21645 else $as_nop
21646
21647
21648
21649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21650 /* end confdefs.h. */
21651 #include <stddef.h>
21652 _ACEOF
21653 case "$host_os" in
21654 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21655 *) gl_absname_cpp="$ac_cpp" ;;
21656 esac
21657
21658 case "$host_os" in
21659 mingw*)
21660 gl_dirsep_regex='[/\\]'
21661 ;;
21662 *)
21663 gl_dirsep_regex='\/'
21664 ;;
21665 esac
21666 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21667 gl_header_literal_regex=`echo 'stddef.h' \
21668 | sed -e "$gl_make_literal_regex_sed"`
21669 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21670 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21671 s|^/[^/]|//&|
21672 p
21673 q
21674 }'
21675
21676 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21677 sed -n "$gl_absolute_header_sed"`
21678
21679 gl_header=$gl_cv_absolute_stddef_h
21680 gl_cv_next_stddef_h='"'$gl_header'"'
21681
21682
21683 fi
21684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21685 printf "%s\n" "$gl_cv_next_stddef_h" >&6; }
21686 fi
21687 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21688
21689 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21690 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21691 gl_next_as_first_directive='<'stddef.h'>'
21692 else
21693 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21694 gl_next_as_first_directive=$gl_cv_next_stddef_h
21695 fi
21696 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21697
21698
21699
21700
21701 fi
21702
21703
21704
21705
21706
21707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
21708 printf %s "checking whether locale.h defines locale_t... " >&6; }
21709 if test ${gl_cv_header_locale_has_locale_t+y}
21710 then :
21711 printf %s "(cached) " >&6
21712 else $as_nop
21713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21714 /* end confdefs.h. */
21715 #include <locale.h>
21716 locale_t x;
21717 int
21718 main (void)
21719 {
21720
21721 ;
21722 return 0;
21723 }
21724 _ACEOF
21725 if ac_fn_c_try_compile "$LINENO"
21726 then :
21727 gl_cv_header_locale_has_locale_t=yes
21728 else $as_nop
21729 gl_cv_header_locale_has_locale_t=no
21730 fi
21731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21732
21733 fi
21734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
21735 printf "%s\n" "$gl_cv_header_locale_has_locale_t" >&6; }
21736
21737
21738 if test $ac_cv_header_xlocale_h = yes; then
21739 HAVE_XLOCALE_H=1
21740 if test $gl_cv_header_locale_has_locale_t = yes; then
21741 gl_cv_header_locale_h_needs_xlocale_h=no
21742 else
21743 gl_cv_header_locale_h_needs_xlocale_h=yes
21744 fi
21745 HAVE_LOCALE_T=1
21746 else
21747 HAVE_XLOCALE_H=0
21748 gl_cv_header_locale_h_needs_xlocale_h=no
21749 if test $gl_cv_header_locale_has_locale_t = yes; then
21750 HAVE_LOCALE_T=1
21751 else
21752 HAVE_LOCALE_T=0
21753 fi
21754 fi
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767 case "$host_os" in
21768 solaris*)
21769
21770 printf "%s\n" "#define _LCONV_C99 1" >>confdefs.h
21771
21772 ;;
21773 esac
21774
21775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
21776 printf %s "checking whether locale.h conforms to POSIX:2001... " >&6; }
21777 if test ${gl_cv_header_locale_h_posix2001+y}
21778 then :
21779 printf %s "(cached) " >&6
21780 else $as_nop
21781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21782 /* end confdefs.h. */
21783 #include <locale.h>
21784 int x = LC_MESSAGES;
21785 int y = sizeof (((struct lconv *) 0)->decimal_point);
21786 int
21787 main (void)
21788 {
21789
21790 ;
21791 return 0;
21792 }
21793 _ACEOF
21794 if ac_fn_c_try_compile "$LINENO"
21795 then :
21796 gl_cv_header_locale_h_posix2001=yes
21797 else $as_nop
21798 gl_cv_header_locale_h_posix2001=no
21799 fi
21800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21801 fi
21802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
21803 printf "%s\n" "$gl_cv_header_locale_h_posix2001" >&6; }
21804
21805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
21806 printf %s "checking whether struct lconv is properly defined... " >&6; }
21807 if test ${gl_cv_sys_struct_lconv_ok+y}
21808 then :
21809 printf %s "(cached) " >&6
21810 else $as_nop
21811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21812 /* end confdefs.h. */
21813 #include <locale.h>
21814 struct lconv l;
21815 int x = sizeof (l.decimal_point);
21816 int y = sizeof (l.int_p_cs_precedes);
21817 int
21818 main (void)
21819 {
21820
21821 ;
21822 return 0;
21823 }
21824 _ACEOF
21825 if ac_fn_c_try_compile "$LINENO"
21826 then :
21827 gl_cv_sys_struct_lconv_ok=yes
21828 else $as_nop
21829 gl_cv_sys_struct_lconv_ok=no
21830 fi
21831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21832
21833 fi
21834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
21835 printf "%s\n" "$gl_cv_sys_struct_lconv_ok" >&6; }
21836 if test $gl_cv_sys_struct_lconv_ok = no; then
21837 case "$host_os" in
21838 mingw*)
21839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21840 /* end confdefs.h. */
21841
21842 #ifdef _MSC_VER
21843 Special
21844 #endif
21845
21846 _ACEOF
21847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21848 $EGREP "Special" >/dev/null 2>&1
21849 then :
21850
21851 else $as_nop
21852 REPLACE_STRUCT_LCONV=1
21853 fi
21854 rm -rf conftest*
21855
21856 ;;
21857 *) REPLACE_STRUCT_LCONV=1 ;;
21858 esac
21859 fi
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869 if test $gl_cv_have_include_next = yes; then
21870 gl_cv_next_locale_h='<'locale.h'>'
21871 else
21872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
21873 printf %s "checking absolute name of <locale.h>... " >&6; }
21874 if test ${gl_cv_next_locale_h+y}
21875 then :
21876 printf %s "(cached) " >&6
21877 else $as_nop
21878
21879
21880
21881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21882 /* end confdefs.h. */
21883 #include <locale.h>
21884 _ACEOF
21885 case "$host_os" in
21886 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21887 *) gl_absname_cpp="$ac_cpp" ;;
21888 esac
21889
21890 case "$host_os" in
21891 mingw*)
21892 gl_dirsep_regex='[/\\]'
21893 ;;
21894 *)
21895 gl_dirsep_regex='\/'
21896 ;;
21897 esac
21898 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21899 gl_header_literal_regex=`echo 'locale.h' \
21900 | sed -e "$gl_make_literal_regex_sed"`
21901 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21902 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21903 s|^/[^/]|//&|
21904 p
21905 q
21906 }'
21907
21908 gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21909 sed -n "$gl_absolute_header_sed"`
21910
21911 gl_header=$gl_cv_absolute_locale_h
21912 gl_cv_next_locale_h='"'$gl_header'"'
21913
21914
21915 fi
21916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
21917 printf "%s\n" "$gl_cv_next_locale_h" >&6; }
21918 fi
21919 NEXT_LOCALE_H=$gl_cv_next_locale_h
21920
21921 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21922 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21923 gl_next_as_first_directive='<'locale.h'>'
21924 else
21925 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21926 gl_next_as_first_directive=$gl_cv_next_locale_h
21927 fi
21928 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940 GL_GL_PAPER_GNULIB_LOCALECONV=0
21941
21942
21943
21944 GL_GL_PAPER_GNULIB_SETLOCALE=0
21945
21946
21947
21948 GL_GL_PAPER_GNULIB_SETLOCALE_NULL=0
21949
21950
21951
21952 GL_GL_PAPER_GNULIB_DUPLOCALE=0
21953
21954
21955
21956 GL_GL_PAPER_GNULIB_LOCALENAME=0
21957
21958
21959
21960
21961
21962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
21963 printf %s "checking whether malloc (0) returns nonnull... " >&6; }
21964 if test ${ac_cv_func_malloc_0_nonnull+y}
21965 then :
21966 printf %s "(cached) " >&6
21967 else $as_nop
21968 if test "$cross_compiling" = yes
21969 then :
21970 case "$host_os" in
21971 # Guess yes on platforms where we know the result.
21972 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
21973 | gnu* | *-musl* | midnightbsd* \
21974 | hpux* | solaris* | cygwin* | mingw* | msys* )
21975 ac_cv_func_malloc_0_nonnull="guessing yes" ;;
21976 # If we don't know, obey --enable-cross-guesses.
21977 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
21978 esac
21979
21980 else $as_nop
21981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21982 /* end confdefs.h. */
21983 #include <stdlib.h>
21984
21985 int
21986 main (void)
21987 {
21988 void *p = malloc (0);
21989 int result = !p;
21990 free (p);
21991 return result;
21992 ;
21993 return 0;
21994 }
21995
21996 _ACEOF
21997 if ac_fn_c_try_run "$LINENO"
21998 then :
21999 ac_cv_func_malloc_0_nonnull=yes
22000 else $as_nop
22001 ac_cv_func_malloc_0_nonnull=no
22002 fi
22003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22004 conftest.$ac_objext conftest.beam conftest.$ac_ext
22005 fi
22006
22007
22008 fi
22009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
22010 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
22011 case $ac_cv_func_malloc_0_nonnull in #(
22012 *yes) :
22013 gl_cv_func_malloc_0_nonnull=1 ;; #(
22014 *) :
22015 gl_cv_func_malloc_0_nonnull=0 ;;
22016 esac
22017
22018
22019 printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h
22020
22021
22022
22023 HAVE_BTOWC=1;
22024 HAVE_MBSINIT=1;
22025 HAVE_MBRTOWC=1;
22026 HAVE_MBRLEN=1;
22027 HAVE_MBSRTOWCS=1;
22028 HAVE_MBSNRTOWCS=1;
22029 HAVE_WCRTOMB=1;
22030 HAVE_WCSRTOMBS=1;
22031 HAVE_WCSNRTOMBS=1;
22032 HAVE_WMEMCHR=1;
22033 HAVE_WMEMCMP=1;
22034 HAVE_WMEMCPY=1;
22035 HAVE_WMEMMOVE=1;
22036 HAVE_WMEMPCPY=1;
22037 HAVE_WMEMSET=1;
22038 HAVE_WCSLEN=1;
22039 HAVE_WCSNLEN=1;
22040 HAVE_WCSCPY=1;
22041 HAVE_WCPCPY=1;
22042 HAVE_WCSNCPY=1;
22043 HAVE_WCPNCPY=1;
22044 HAVE_WCSCAT=1;
22045 HAVE_WCSNCAT=1;
22046 HAVE_WCSCMP=1;
22047 HAVE_WCSNCMP=1;
22048 HAVE_WCSCASECMP=1;
22049 HAVE_WCSNCASECMP=1;
22050 HAVE_WCSCOLL=1;
22051 HAVE_WCSXFRM=1;
22052 HAVE_WCSDUP=1;
22053 HAVE_WCSCHR=1;
22054 HAVE_WCSRCHR=1;
22055 HAVE_WCSCSPN=1;
22056 HAVE_WCSSPN=1;
22057 HAVE_WCSPBRK=1;
22058 HAVE_WCSSTR=1;
22059 HAVE_WCSTOK=1;
22060 HAVE_WCSWIDTH=1;
22061 HAVE_WCSFTIME=1;
22062 HAVE_DECL_WCTOB=1;
22063 HAVE_DECL_WCSDUP=1;
22064 HAVE_DECL_WCWIDTH=1;
22065 REPLACE_MBSTATE_T=0;
22066 REPLACE_BTOWC=0;
22067 REPLACE_WCTOB=0;
22068 REPLACE_MBSINIT=0;
22069 REPLACE_MBRTOWC=0;
22070 REPLACE_MBRLEN=0;
22071 REPLACE_MBSRTOWCS=0;
22072 REPLACE_MBSNRTOWCS=0;
22073 REPLACE_WCRTOMB=0;
22074 REPLACE_WCSRTOMBS=0;
22075 REPLACE_WCSNRTOMBS=0;
22076 REPLACE_WCWIDTH=0;
22077 REPLACE_WCSWIDTH=0;
22078 REPLACE_WCSFTIME=0;
22079 REPLACE_WCSCMP=0;
22080 REPLACE_WCSNCMP=0;
22081 REPLACE_WCSSTR=0;
22082 REPLACE_WCSTOK=0;
22083 REPLACE_WMEMCMP=0;
22084 REPLACE_WMEMPCPY=0;
22085
22086
22087
22088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22089 printf %s "checking for mbstate_t... " >&6; }
22090 if test ${ac_cv_type_mbstate_t+y}
22091 then :
22092 printf %s "(cached) " >&6
22093 else $as_nop
22094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22095 /* end confdefs.h. */
22096 $ac_includes_default
22097 #include <wchar.h>
22098 int
22099 main (void)
22100 {
22101 mbstate_t x; return sizeof x;
22102 ;
22103 return 0;
22104 }
22105 _ACEOF
22106 if ac_fn_c_try_compile "$LINENO"
22107 then :
22108 ac_cv_type_mbstate_t=yes
22109 else $as_nop
22110 ac_cv_type_mbstate_t=no
22111 fi
22112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22113 fi
22114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22115 printf "%s\n" "$ac_cv_type_mbstate_t" >&6; }
22116 if test $ac_cv_type_mbstate_t = yes; then
22117
22118 printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
22119
22120 else
22121
22122 printf "%s\n" "#define mbstate_t int" >>confdefs.h
22123
22124 fi
22125
22126
22127
22128
22129
22130
22131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
22132 printf %s "checking for a traditional japanese locale... " >&6; }
22133 if test ${gt_cv_locale_ja+y}
22134 then :
22135 printf %s "(cached) " >&6
22136 else $as_nop
22137
22138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22139 /* end confdefs.h. */
22140
22141 #include <locale.h>
22142 #include <time.h>
22143 #if HAVE_LANGINFO_CODESET
22144 # include <langinfo.h>
22145 #endif
22146 #include <stdlib.h>
22147 #include <string.h>
22148 struct tm t;
22149 char buf[16];
22150 int main ()
22151 {
22152 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
22153 imitates locale dependent behaviour by looking at the environment
22154 variables, and all locales use the UTF-8 encoding. */
22155 #if defined __BEOS__ || defined __HAIKU__
22156 return 1;
22157 #else
22158 /* Check whether the given locale name is recognized by the system. */
22159 # if defined _WIN32 && !defined __CYGWIN__
22160 /* On native Windows, setlocale(category, "") looks at the system settings,
22161 not at the environment variables. Also, when an encoding suffix such
22162 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
22163 category of the locale to "C". */
22164 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
22165 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
22166 return 1;
22167 # else
22168 if (setlocale (LC_ALL, "") == NULL) return 1;
22169 # endif
22170 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
22171 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
22172 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
22173 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
22174 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
22175 some unit tests fail.
22176 On MirBSD 10, when an unsupported locale is specified, setlocale()
22177 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
22178 # if HAVE_LANGINFO_CODESET
22179 {
22180 const char *cs = nl_langinfo (CODESET);
22181 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
22182 || strcmp (cs, "UTF-8") == 0)
22183 return 1;
22184 }
22185 # endif
22186 # ifdef __CYGWIN__
22187 /* On Cygwin, avoid locale names without encoding suffix, because the
22188 locale_charset() function relies on the encoding suffix. Note that
22189 LC_ALL is set on the command line. */
22190 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
22191 # endif
22192 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
22193 on Cygwin 1.5.x. */
22194 if (MB_CUR_MAX == 1)
22195 return 1;
22196 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
22197 This excludes the UTF-8 encoding (except on MirBSD). */
22198 {
22199 const char *p;
22200 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
22201 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
22202 for (p = buf; *p != '\0'; p++)
22203 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
22204 return 1;
22205 }
22206 return 0;
22207 #endif
22208 }
22209
22210 _ACEOF
22211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22212 (eval $ac_link) 2>&5
22213 ac_status=$?
22214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22215 test $ac_status = 0; } && test -s conftest$ac_exeext; then
22216 case "$host_os" in
22217 # Handle native Windows specially, because there setlocale() interprets
22218 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
22219 # "fr" or "fra" as "French" or "French_France.1252",
22220 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
22221 # "ja" as "Japanese" or "Japanese_Japan.932",
22222 # and similar.
22223 mingw*)
22224 # Note that on native Windows, the Japanese locale is
22225 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
22226 # cannot use it here.
22227 gt_cv_locale_ja=none
22228 ;;
22229 *)
22230 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
22231 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
22232 # configure script would override the LC_ALL setting. Likewise for
22233 # LC_CTYPE, which is also set at the beginning of the configure script.
22234 # Test for the AIX locale name.
22235 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22236 gt_cv_locale_ja=ja_JP
22237 else
22238 # Test for the locale name with explicit encoding suffix.
22239 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22240 gt_cv_locale_ja=ja_JP.EUC-JP
22241 else
22242 # Test for the HP-UX, OSF/1, NetBSD locale name.
22243 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22244 gt_cv_locale_ja=ja_JP.eucJP
22245 else
22246 # Test for the IRIX, FreeBSD locale name.
22247 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22248 gt_cv_locale_ja=ja_JP.EUC
22249 else
22250 # Test for the Solaris 7 locale name.
22251 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22252 gt_cv_locale_ja=ja
22253 else
22254 # Special test for NetBSD 1.6.
22255 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
22256 gt_cv_locale_ja=ja_JP.eucJP
22257 else
22258 # None found.
22259 gt_cv_locale_ja=none
22260 fi
22261 fi
22262 fi
22263 fi
22264 fi
22265 fi
22266 ;;
22267 esac
22268 fi
22269 rm -fr conftest*
22270
22271 fi
22272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
22273 printf "%s\n" "$gt_cv_locale_ja" >&6; }
22274 LOCALE_JA=$gt_cv_locale_ja
22275
22276
22277
22278
22279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
22280 printf %s "checking for a french Unicode locale... " >&6; }
22281 if test ${gt_cv_locale_fr_utf8+y}
22282 then :
22283 printf %s "(cached) " >&6
22284 else $as_nop
22285
22286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22287 /* end confdefs.h. */
22288
22289 #include <locale.h>
22290 #include <time.h>
22291 #if HAVE_LANGINFO_CODESET
22292 # include <langinfo.h>
22293 #endif
22294 #include <stdlib.h>
22295 #include <string.h>
22296 struct tm t;
22297 char buf[16];
22298 int main () {
22299 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
22300 imitates locale dependent behaviour by looking at the environment
22301 variables, and all locales use the UTF-8 encoding. */
22302 #if !(defined __BEOS__ || defined __HAIKU__)
22303 /* Check whether the given locale name is recognized by the system. */
22304 # if defined _WIN32 && !defined __CYGWIN__
22305 /* On native Windows, setlocale(category, "") looks at the system settings,
22306 not at the environment variables. Also, when an encoding suffix such
22307 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
22308 category of the locale to "C". */
22309 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
22310 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
22311 return 1;
22312 # else
22313 if (setlocale (LC_ALL, "") == NULL) return 1;
22314 # endif
22315 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
22316 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
22317 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
22318 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
22319 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
22320 some unit tests fail. */
22321 # if HAVE_LANGINFO_CODESET
22322 {
22323 const char *cs = nl_langinfo (CODESET);
22324 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
22325 return 1;
22326 }
22327 # endif
22328 # ifdef __CYGWIN__
22329 /* On Cygwin, avoid locale names without encoding suffix, because the
22330 locale_charset() function relies on the encoding suffix. Note that
22331 LC_ALL is set on the command line. */
22332 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
22333 # endif
22334 /* Check whether in the abbreviation of the second month, the second
22335 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
22336 two bytes long, with UTF-8 encoding. */
22337 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
22338 if (strftime (buf, sizeof (buf), "%b", &t) < 4
22339 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
22340 return 1;
22341 #endif
22342 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
22343 /* Check whether the decimal separator is a comma.
22344 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
22345 are nl_langinfo(RADIXCHAR) are both ".". */
22346 if (localeconv () ->decimal_point[0] != ',') return 1;
22347 #endif
22348 return 0;
22349 }
22350
22351 _ACEOF
22352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22353 (eval $ac_link) 2>&5
22354 ac_status=$?
22355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22356 test $ac_status = 0; } && test -s conftest$ac_exeext; then
22357 case "$host_os" in
22358 # Handle native Windows specially, because there setlocale() interprets
22359 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
22360 # "fr" or "fra" as "French" or "French_France.1252",
22361 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
22362 # "ja" as "Japanese" or "Japanese_Japan.932",
22363 # and similar.
22364 mingw*)
22365 # Test for the hypothetical native Windows locale name.
22366 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22367 gt_cv_locale_fr_utf8=French_France.65001
22368 else
22369 # None found.
22370 gt_cv_locale_fr_utf8=none
22371 fi
22372 ;;
22373 *)
22374 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
22375 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
22376 # configure script would override the LC_ALL setting. Likewise for
22377 # LC_CTYPE, which is also set at the beginning of the configure script.
22378 # Test for the usual locale name.
22379 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22380 gt_cv_locale_fr_utf8=fr_FR
22381 else
22382 # Test for the locale name with explicit encoding suffix.
22383 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22384 gt_cv_locale_fr_utf8=fr_FR.UTF-8
22385 else
22386 # Test for the Solaris 7 locale name.
22387 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22388 gt_cv_locale_fr_utf8=fr.UTF-8
22389 else
22390 # None found.
22391 gt_cv_locale_fr_utf8=none
22392 fi
22393 fi
22394 fi
22395 ;;
22396 esac
22397 fi
22398 rm -fr conftest*
22399
22400 fi
22401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
22402 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
22403 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
22404
22405
22406
22407
22408
22409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
22410 printf %s "checking for a transitional chinese locale... " >&6; }
22411 if test ${gt_cv_locale_zh_CN+y}
22412 then :
22413 printf %s "(cached) " >&6
22414 else $as_nop
22415
22416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22417 /* end confdefs.h. */
22418
22419 #include <locale.h>
22420 #include <stdlib.h>
22421 #include <time.h>
22422 #if HAVE_LANGINFO_CODESET
22423 # include <langinfo.h>
22424 #endif
22425 #include <stdlib.h>
22426 #include <string.h>
22427 struct tm t;
22428 char buf[16];
22429 int main ()
22430 {
22431 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
22432 imitates locale dependent behaviour by looking at the environment
22433 variables, and all locales use the UTF-8 encoding. */
22434 #if defined __BEOS__ || defined __HAIKU__
22435 return 1;
22436 #else
22437 /* Check whether the given locale name is recognized by the system. */
22438 # if defined _WIN32 && !defined __CYGWIN__
22439 /* On native Windows, setlocale(category, "") looks at the system settings,
22440 not at the environment variables. Also, when an encoding suffix such
22441 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
22442 category of the locale to "C". */
22443 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
22444 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
22445 return 1;
22446 # else
22447 if (setlocale (LC_ALL, "") == NULL) return 1;
22448 # endif
22449 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
22450 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
22451 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
22452 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
22453 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
22454 some unit tests fail.
22455 On MirBSD 10, when an unsupported locale is specified, setlocale()
22456 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
22457 # if HAVE_LANGINFO_CODESET
22458 {
22459 const char *cs = nl_langinfo (CODESET);
22460 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
22461 || strcmp (cs, "UTF-8") == 0)
22462 return 1;
22463 }
22464 # endif
22465 # ifdef __CYGWIN__
22466 /* On Cygwin, avoid locale names without encoding suffix, because the
22467 locale_charset() function relies on the encoding suffix. Note that
22468 LC_ALL is set on the command line. */
22469 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
22470 # endif
22471 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
22472 This excludes the UTF-8 encoding (except on MirBSD). */
22473 {
22474 const char *p;
22475 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
22476 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
22477 for (p = buf; *p != '\0'; p++)
22478 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
22479 return 1;
22480 }
22481 /* Check whether a typical GB18030 multibyte sequence is recognized as a
22482 single wide character. This excludes the GB2312 and GBK encodings. */
22483 if (mblen ("\203\062\332\066", 5) != 4)
22484 return 1;
22485 return 0;
22486 #endif
22487 }
22488
22489 _ACEOF
22490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22491 (eval $ac_link) 2>&5
22492 ac_status=$?
22493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22494 test $ac_status = 0; } && test -s conftest$ac_exeext; then
22495 case "$host_os" in
22496 # Handle native Windows specially, because there setlocale() interprets
22497 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
22498 # "fr" or "fra" as "French" or "French_France.1252",
22499 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
22500 # "ja" as "Japanese" or "Japanese_Japan.932",
22501 # and similar.
22502 mingw*)
22503 # Test for the hypothetical native Windows locale name.
22504 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22505 gt_cv_locale_zh_CN=Chinese_China.54936
22506 else
22507 # None found.
22508 gt_cv_locale_zh_CN=none
22509 fi
22510 ;;
22511 solaris2.8)
22512 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
22513 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
22514 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
22515 gt_cv_locale_zh_CN=none
22516 ;;
22517 *)
22518 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
22519 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
22520 # configure script would override the LC_ALL setting. Likewise for
22521 # LC_CTYPE, which is also set at the beginning of the configure script.
22522 # Test for the locale name without encoding suffix.
22523 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22524 gt_cv_locale_zh_CN=zh_CN
22525 else
22526 # Test for the locale name with explicit encoding suffix.
22527 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22528 gt_cv_locale_zh_CN=zh_CN.GB18030
22529 else
22530 # None found.
22531 gt_cv_locale_zh_CN=none
22532 fi
22533 fi
22534 ;;
22535 esac
22536 else
22537 # If there was a link error, due to mblen(), the system is so old that
22538 # it certainly doesn't have a chinese locale.
22539 gt_cv_locale_zh_CN=none
22540 fi
22541 rm -fr conftest*
22542
22543 fi
22544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
22545 printf "%s\n" "$gt_cv_locale_zh_CN" >&6; }
22546 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
22547
22548
22549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22550 printf %s "checking for inline... " >&6; }
22551 if test ${ac_cv_c_inline+y}
22552 then :
22553 printf %s "(cached) " >&6
22554 else $as_nop
22555 ac_cv_c_inline=no
22556 for ac_kw in inline __inline__ __inline; do
22557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22558 /* end confdefs.h. */
22559 #ifndef __cplusplus
22560 typedef int foo_t;
22561 static $ac_kw foo_t static_foo (void) {return 0; }
22562 $ac_kw foo_t foo (void) {return 0; }
22563 #endif
22564
22565 _ACEOF
22566 if ac_fn_c_try_compile "$LINENO"
22567 then :
22568 ac_cv_c_inline=$ac_kw
22569 fi
22570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22571 test "$ac_cv_c_inline" != no && break
22572 done
22573
22574 fi
22575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22576 printf "%s\n" "$ac_cv_c_inline" >&6; }
22577
22578 case $ac_cv_c_inline in
22579 inline | yes) ;;
22580 *)
22581 case $ac_cv_c_inline in
22582 no) ac_val=;;
22583 *) ac_val=$ac_cv_c_inline;;
22584 esac
22585 cat >>confdefs.h <<_ACEOF
22586 #ifndef __cplusplus
22587 #define inline $ac_val
22588 #endif
22589 _ACEOF
22590 ;;
22591 esac
22592
22593
22594
22595 GL_GL_PAPER_GNULIB_BTOWC=0
22596
22597
22598
22599 GL_GL_PAPER_GNULIB_WCTOB=0
22600
22601
22602
22603 GL_GL_PAPER_GNULIB_MBSINIT=0
22604
22605
22606
22607 GL_GL_PAPER_GNULIB_MBSZERO=0
22608
22609
22610
22611 GL_GL_PAPER_GNULIB_MBRTOWC=0
22612
22613
22614
22615 GL_GL_PAPER_GNULIB_MBRLEN=0
22616
22617
22618
22619 GL_GL_PAPER_GNULIB_MBSRTOWCS=0
22620
22621
22622
22623 GL_GL_PAPER_GNULIB_MBSNRTOWCS=0
22624
22625
22626
22627 GL_GL_PAPER_GNULIB_WCRTOMB=0
22628
22629
22630
22631 GL_GL_PAPER_GNULIB_WCSRTOMBS=0
22632
22633
22634
22635 GL_GL_PAPER_GNULIB_WCSNRTOMBS=0
22636
22637
22638
22639 GL_GL_PAPER_GNULIB_WCWIDTH=0
22640
22641
22642
22643 GL_GL_PAPER_GNULIB_WMEMCHR=0
22644
22645
22646
22647 GL_GL_PAPER_GNULIB_WMEMCMP=0
22648
22649
22650
22651 GL_GL_PAPER_GNULIB_WMEMCPY=0
22652
22653
22654
22655 GL_GL_PAPER_GNULIB_WMEMMOVE=0
22656
22657
22658
22659 GL_GL_PAPER_GNULIB_WMEMPCPY=0
22660
22661
22662
22663 GL_GL_PAPER_GNULIB_WMEMSET=0
22664
22665
22666
22667 GL_GL_PAPER_GNULIB_WCSLEN=0
22668
22669
22670
22671 GL_GL_PAPER_GNULIB_WCSNLEN=0
22672
22673
22674
22675 GL_GL_PAPER_GNULIB_WCSCPY=0
22676
22677
22678
22679 GL_GL_PAPER_GNULIB_WCPCPY=0
22680
22681
22682
22683 GL_GL_PAPER_GNULIB_WCSNCPY=0
22684
22685
22686
22687 GL_GL_PAPER_GNULIB_WCPNCPY=0
22688
22689
22690
22691 GL_GL_PAPER_GNULIB_WCSCAT=0
22692
22693
22694
22695 GL_GL_PAPER_GNULIB_WCSNCAT=0
22696
22697
22698
22699 GL_GL_PAPER_GNULIB_WCSCMP=0
22700
22701
22702
22703 GL_GL_PAPER_GNULIB_WCSNCMP=0
22704
22705
22706
22707 GL_GL_PAPER_GNULIB_WCSCASECMP=0
22708
22709
22710
22711 GL_GL_PAPER_GNULIB_WCSNCASECMP=0
22712
22713
22714
22715 GL_GL_PAPER_GNULIB_WCSCOLL=0
22716
22717
22718
22719 GL_GL_PAPER_GNULIB_WCSXFRM=0
22720
22721
22722
22723 GL_GL_PAPER_GNULIB_WCSDUP=0
22724
22725
22726
22727 GL_GL_PAPER_GNULIB_WCSCHR=0
22728
22729
22730
22731 GL_GL_PAPER_GNULIB_WCSRCHR=0
22732
22733
22734
22735 GL_GL_PAPER_GNULIB_WCSCSPN=0
22736
22737
22738
22739 GL_GL_PAPER_GNULIB_WCSSPN=0
22740
22741
22742
22743 GL_GL_PAPER_GNULIB_WCSPBRK=0
22744
22745
22746
22747 GL_GL_PAPER_GNULIB_WCSSTR=0
22748
22749
22750
22751 GL_GL_PAPER_GNULIB_WCSTOK=0
22752
22753
22754
22755 GL_GL_PAPER_GNULIB_WCSWIDTH=0
22756
22757
22758
22759 GL_GL_PAPER_GNULIB_WCSFTIME=0
22760
22761
22762
22763 GL_GL_PAPER_GNULIB_WGETCWD=0
22764
22765
22766
22767 GL_GL_PAPER_GNULIB_MDA_WCSDUP=1
22768
22769
22770
22771
22772
22773
22774 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
22775 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
22776 # irrelevant for anonymous mappings.
22777 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22778 if test "x$ac_cv_func_mmap" = xyes
22779 then :
22780 gl_have_mmap=yes
22781 else $as_nop
22782 gl_have_mmap=no
22783 fi
22784
22785
22786 # Try to allow MAP_ANONYMOUS.
22787 gl_have_mmap_anonymous=no
22788 if test $gl_have_mmap = yes; then
22789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
22790 printf %s "checking for MAP_ANONYMOUS... " >&6; }
22791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22792 /* end confdefs.h. */
22793
22794 #include <sys/mman.h>
22795 #ifdef MAP_ANONYMOUS
22796 I cannot identify this map
22797 #endif
22798
22799 _ACEOF
22800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22801 $EGREP "I cannot identify this map" >/dev/null 2>&1
22802 then :
22803 gl_have_mmap_anonymous=yes
22804 fi
22805 rm -rf conftest*
22806
22807 if test $gl_have_mmap_anonymous != yes; then
22808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22809 /* end confdefs.h. */
22810
22811 #include <sys/mman.h>
22812 #ifdef MAP_ANON
22813 I cannot identify this map
22814 #endif
22815
22816 _ACEOF
22817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22818 $EGREP "I cannot identify this map" >/dev/null 2>&1
22819 then :
22820
22821 printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
22822
22823 gl_have_mmap_anonymous=yes
22824 fi
22825 rm -rf conftest*
22826
22827 fi
22828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
22829 printf "%s\n" "$gl_have_mmap_anonymous" >&6; }
22830 if test $gl_have_mmap_anonymous = yes; then
22831
22832 printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
22833
22834 fi
22835 fi
22836
22837
22838
22839
22840 HAVE_MBSLEN=0;
22841 HAVE_EXPLICIT_BZERO=1;
22842 HAVE_FFSL=1;
22843 HAVE_FFSLL=1;
22844 HAVE_DECL_MEMMEM=1;
22845 HAVE_MEMPCPY=1;
22846 HAVE_MEMSET_EXPLICIT=1;
22847 HAVE_DECL_MEMRCHR=1;
22848 HAVE_RAWMEMCHR=1;
22849 HAVE_STPCPY=1;
22850 HAVE_STPNCPY=1;
22851 HAVE_STRCHRNUL=1;
22852 HAVE_DECL_STRDUP=1;
22853 HAVE_DECL_STRNDUP=1;
22854 HAVE_DECL_STRNLEN=1;
22855 HAVE_STRPBRK=1;
22856 HAVE_STRSEP=1;
22857 HAVE_STRCASESTR=1;
22858 HAVE_DECL_STRTOK_R=1;
22859 HAVE_DECL_STRERROR_R=1;
22860 HAVE_STRERRORNAME_NP=1;
22861 HAVE_SIGABBREV_NP=1;
22862 HAVE_SIGDESCR_NP=1;
22863 HAVE_DECL_STRSIGNAL=1;
22864 HAVE_STRVERSCMP=1;
22865 REPLACE_FFSLL=0;
22866 REPLACE_MEMCHR=0;
22867 REPLACE_MEMMEM=0;
22868 REPLACE_MEMPCPY=0;
22869 REPLACE_STPCPY=0;
22870 REPLACE_STPNCPY=0;
22871 REPLACE_STRCHRNUL=0;
22872 REPLACE_STRDUP=0;
22873 REPLACE_STRNCAT=0;
22874 REPLACE_STRNDUP=0;
22875 REPLACE_STRNLEN=0;
22876 REPLACE_STRSTR=0;
22877 REPLACE_STRCASESTR=0;
22878 REPLACE_STRTOK_R=0;
22879 REPLACE_STRERROR=0;
22880 REPLACE_STRERROR_R=0;
22881 REPLACE_STRERRORNAME_NP=0;
22882 REPLACE_STRSIGNAL=0;
22883 UNDEFINE_STRTOK_R=0;
22884
22885
22886
22887
22888
22889
22890
22891
22892 # Detect platform-specific bugs in some versions of glibc:
22893 # memchr should not dereference anything with length 0
22894 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
22895 # memchr should not dereference overestimated length after a match
22896 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
22897 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
22898 # memchr should cast the second argument to 'unsigned char'.
22899 # This bug exists in Android 4.3.
22900 # Assume that memchr works on platforms that lack mprotect.
22901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
22902 printf %s "checking whether memchr works... " >&6; }
22903 if test ${gl_cv_func_memchr_works+y}
22904 then :
22905 printf %s "(cached) " >&6
22906 else $as_nop
22907 if test "$cross_compiling" = yes
22908 then :
22909 case "$host_os" in
22910 # Guess no on Android.
22911 linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
22912 # Guess yes on native Windows.
22913 mingw*) gl_cv_func_memchr_works="guessing yes" ;;
22914 # If we don't know, obey --enable-cross-guesses.
22915 *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
22916 esac
22917
22918 else $as_nop
22919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22920 /* end confdefs.h. */
22921
22922 #include <string.h>
22923 #if HAVE_SYS_MMAN_H
22924 # include <fcntl.h>
22925 # include <unistd.h>
22926 # include <sys/types.h>
22927 # include <sys/mman.h>
22928 # ifndef MAP_FILE
22929 # define MAP_FILE 0
22930 # endif
22931 #endif
22932
22933 int
22934 main (void)
22935 {
22936
22937 int result = 0;
22938 char *fence = NULL;
22939 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
22940 # if HAVE_MAP_ANONYMOUS
22941 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
22942 const int fd = -1;
22943 # else /* !HAVE_MAP_ANONYMOUS */
22944 const int flags = MAP_FILE | MAP_PRIVATE;
22945 int fd = open ("/dev/zero", O_RDONLY, 0666);
22946 if (fd >= 0)
22947 # endif
22948 {
22949 int pagesize = getpagesize ();
22950 char *two_pages =
22951 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
22952 flags, fd, 0);
22953 if (two_pages != (char *)(-1)
22954 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
22955 fence = two_pages + pagesize;
22956 }
22957 #endif
22958 if (fence)
22959 {
22960 /* Test against bugs on glibc systems. */
22961 if (memchr (fence, 0, 0))
22962 result |= 1;
22963 strcpy (fence - 9, "12345678");
22964 if (memchr (fence - 9, 0, 79) != fence - 1)
22965 result |= 2;
22966 if (memchr (fence - 1, 0, 3) != fence - 1)
22967 result |= 4;
22968 /* Test against bug on AIX 7.2. */
22969 if (memchr (fence - 4, '6', 16) != fence - 4)
22970 result |= 8;
22971 }
22972 /* Test against bug on Android 4.3. */
22973 {
22974 char input[3];
22975 input[0] = 'a';
22976 input[1] = 'b';
22977 input[2] = 'c';
22978 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
22979 result |= 16;
22980 }
22981 return result;
22982
22983 ;
22984 return 0;
22985 }
22986 _ACEOF
22987 if ac_fn_c_try_run "$LINENO"
22988 then :
22989 gl_cv_func_memchr_works=yes
22990 else $as_nop
22991 gl_cv_func_memchr_works=no
22992 fi
22993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22994 conftest.$ac_objext conftest.beam conftest.$ac_ext
22995 fi
22996
22997
22998 fi
22999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
23000 printf "%s\n" "$gl_cv_func_memchr_works" >&6; }
23001 case "$gl_cv_func_memchr_works" in
23002 *yes) ;;
23003 *) REPLACE_MEMCHR=1 ;;
23004 esac
23005
23006
23007
23008 GL_GL_PAPER_GNULIB_EXPLICIT_BZERO=0
23009
23010
23011
23012 GL_GL_PAPER_GNULIB_FFSL=0
23013
23014
23015
23016 GL_GL_PAPER_GNULIB_FFSLL=0
23017
23018
23019
23020 GL_GL_PAPER_GNULIB_MEMCHR=0
23021
23022
23023
23024 GL_GL_PAPER_GNULIB_MEMMEM=0
23025
23026
23027
23028 GL_GL_PAPER_GNULIB_MEMPCPY=0
23029
23030
23031
23032 GL_GL_PAPER_GNULIB_MEMRCHR=0
23033
23034
23035
23036 GL_GL_PAPER_GNULIB_MEMSET_EXPLICIT=0
23037
23038
23039
23040 GL_GL_PAPER_GNULIB_RAWMEMCHR=0
23041
23042
23043
23044 GL_GL_PAPER_GNULIB_STPCPY=0
23045
23046
23047
23048 GL_GL_PAPER_GNULIB_STPNCPY=0
23049
23050
23051
23052 GL_GL_PAPER_GNULIB_STRCHRNUL=0
23053
23054
23055
23056 GL_GL_PAPER_GNULIB_STRDUP=0
23057
23058
23059
23060 GL_GL_PAPER_GNULIB_STRNCAT=0
23061
23062
23063
23064 GL_GL_PAPER_GNULIB_STRNDUP=0
23065
23066
23067
23068 GL_GL_PAPER_GNULIB_STRNLEN=0
23069
23070
23071
23072 GL_GL_PAPER_GNULIB_STRPBRK=0
23073
23074
23075
23076 GL_GL_PAPER_GNULIB_STRSEP=0
23077
23078
23079
23080 GL_GL_PAPER_GNULIB_STRSTR=0
23081
23082
23083
23084 GL_GL_PAPER_GNULIB_STRCASESTR=0
23085
23086
23087
23088 GL_GL_PAPER_GNULIB_STRTOK_R=0
23089
23090
23091
23092 GL_GL_PAPER_GNULIB_MBSLEN=0
23093
23094
23095
23096 GL_GL_PAPER_GNULIB_MBSNLEN=0
23097
23098
23099
23100 GL_GL_PAPER_GNULIB_MBSCHR=0
23101
23102
23103
23104 GL_GL_PAPER_GNULIB_MBSRCHR=0
23105
23106
23107
23108 GL_GL_PAPER_GNULIB_MBSSTR=0
23109
23110
23111
23112 GL_GL_PAPER_GNULIB_MBSCASECMP=0
23113
23114
23115
23116 GL_GL_PAPER_GNULIB_MBSNCASECMP=0
23117
23118
23119
23120 GL_GL_PAPER_GNULIB_MBSPCASECMP=0
23121
23122
23123
23124 GL_GL_PAPER_GNULIB_MBSCASESTR=0
23125
23126
23127
23128 GL_GL_PAPER_GNULIB_MBSCSPN=0
23129
23130
23131
23132 GL_GL_PAPER_GNULIB_MBSPBRK=0
23133
23134
23135
23136 GL_GL_PAPER_GNULIB_MBSSPN=0
23137
23138
23139
23140 GL_GL_PAPER_GNULIB_MBSSEP=0
23141
23142
23143
23144 GL_GL_PAPER_GNULIB_MBSTOK_R=0
23145
23146
23147
23148 GL_GL_PAPER_GNULIB_STRERROR=0
23149
23150
23151
23152 GL_GL_PAPER_GNULIB_STRERROR_R=0
23153
23154
23155
23156 GL_GL_PAPER_GNULIB_STRERRORNAME_NP=0
23157
23158
23159
23160 GL_GL_PAPER_GNULIB_SIGABBREV_NP=0
23161
23162
23163
23164 GL_GL_PAPER_GNULIB_SIGDESCR_NP=0
23165
23166
23167
23168 GL_GL_PAPER_GNULIB_STRSIGNAL=0
23169
23170
23171
23172 GL_GL_PAPER_GNULIB_STRVERSCMP=0
23173
23174
23175
23176 GL_GL_PAPER_GNULIB_MDA_MEMCCPY=1
23177
23178
23179
23180 GL_GL_PAPER_GNULIB_MDA_STRDUP=1
23181
23182
23183
23184
23185
23186
23187
23188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
23189 printf %s "checking whether <limits.h> defines MIN and MAX... " >&6; }
23190 if test ${gl_cv_minmax_in_limits_h+y}
23191 then :
23192 printf %s "(cached) " >&6
23193 else $as_nop
23194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23195 /* end confdefs.h. */
23196 #include <limits.h>
23197 int x = MIN (42, 17);
23198 int
23199 main (void)
23200 {
23201
23202 ;
23203 return 0;
23204 }
23205 _ACEOF
23206 if ac_fn_c_try_compile "$LINENO"
23207 then :
23208 gl_cv_minmax_in_limits_h=yes
23209 else $as_nop
23210 gl_cv_minmax_in_limits_h=no
23211 fi
23212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23213 fi
23214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
23215 printf "%s\n" "$gl_cv_minmax_in_limits_h" >&6; }
23216 if test $gl_cv_minmax_in_limits_h = yes; then
23217
23218 printf "%s\n" "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
23219
23220 fi
23221
23222
23223
23224
23225
23226
23227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
23228 printf %s "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
23229 if test ${gl_cv_minmax_in_sys_param_h+y}
23230 then :
23231 printf %s "(cached) " >&6
23232 else $as_nop
23233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23234 /* end confdefs.h. */
23235 #include <sys/param.h>
23236 int x = MIN (42, 17);
23237 int
23238 main (void)
23239 {
23240
23241 ;
23242 return 0;
23243 }
23244 _ACEOF
23245 if ac_fn_c_try_compile "$LINENO"
23246 then :
23247 gl_cv_minmax_in_sys_param_h=yes
23248 else $as_nop
23249 gl_cv_minmax_in_sys_param_h=no
23250 fi
23251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23252 fi
23253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
23254 printf "%s\n" "$gl_cv_minmax_in_sys_param_h" >&6; }
23255 if test $gl_cv_minmax_in_sys_param_h = yes; then
23256
23257 printf "%s\n" "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
23258
23259 fi
23260
23261
23262
23263
23264
23265
23266
23267
23268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
23269 printf %s "checking for O_CLOEXEC... " >&6; }
23270 if test ${gl_cv_macro_O_CLOEXEC+y}
23271 then :
23272 printf %s "(cached) " >&6
23273 else $as_nop
23274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23275 /* end confdefs.h. */
23276 #include <fcntl.h>
23277 #ifndef O_CLOEXEC
23278 choke me;
23279 #endif
23280
23281 int
23282 main (void)
23283 {
23284 return O_CLOEXEC;
23285 ;
23286 return 0;
23287 }
23288 _ACEOF
23289 if ac_fn_c_try_compile "$LINENO"
23290 then :
23291 gl_cv_macro_O_CLOEXEC=yes
23292 else $as_nop
23293 gl_cv_macro_O_CLOEXEC=no
23294 fi
23295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23296 fi
23297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
23298 printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; }
23299
23300
23301
23302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
23303 printf %s "checking for promoted mode_t type... " >&6; }
23304 if test ${gl_cv_promoted_mode_t+y}
23305 then :
23306 printf %s "(cached) " >&6
23307 else $as_nop
23308
23309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23310 /* end confdefs.h. */
23311 #include <sys/types.h>
23312 int
23313 main (void)
23314 {
23315 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
23316 ;
23317 return 0;
23318 }
23319 _ACEOF
23320 if ac_fn_c_try_compile "$LINENO"
23321 then :
23322 gl_cv_promoted_mode_t='int'
23323 else $as_nop
23324 gl_cv_promoted_mode_t='mode_t'
23325 fi
23326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23327
23328 fi
23329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
23330 printf "%s\n" "$gl_cv_promoted_mode_t" >&6; }
23331
23332 printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h
23333
23334
23335
23336
23337
23338
23339 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
23340 REPLACE_REALLOC_FOR_REALLOC_POSIX=1
23341 fi
23342
23343
23344
23345 # Check whether --with-gnu-ld was given.
23346 if test ${with_gnu_ld+y}
23347 then :
23348 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
23349 else $as_nop
23350 with_gnu_ld=no
23351 fi
23352
23353 # Prepare PATH_SEPARATOR.
23354 # The user is always right.
23355 if test "${PATH_SEPARATOR+set}" != set; then
23356 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
23357 # contains only /bin. Note that ksh looks also at the FPATH variable,
23358 # so we have to set that as well for the test.
23359 PATH_SEPARATOR=:
23360 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
23361 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
23362 || PATH_SEPARATOR=';'
23363 }
23364 fi
23365
23366 if test -n "$LD"; then
23367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
23368 printf %s "checking for ld... " >&6; }
23369 elif test "$GCC" = yes; then
23370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
23371 printf %s "checking for ld used by $CC... " >&6; }
23372 elif test "$with_gnu_ld" = yes; then
23373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
23374 printf %s "checking for GNU ld... " >&6; }
23375 else
23376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
23377 printf %s "checking for non-GNU ld... " >&6; }
23378 fi
23379 if test -n "$LD"; then
23380 # Let the user override the test with a path.
23381 :
23382 else
23383 if test ${acl_cv_path_LD+y}
23384 then :
23385 printf %s "(cached) " >&6
23386 else $as_nop
23387
23388 acl_cv_path_LD= # Final result of this test
23389 ac_prog=ld # Program to search in $PATH
23390 if test "$GCC" = yes; then
23391 # Check if gcc -print-prog-name=ld gives a path.
23392 case $host in
23393 *-*-mingw*)
23394 # gcc leaves a trailing carriage return which upsets mingw
23395 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
23396 *)
23397 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
23398 esac
23399 case $acl_output in
23400 # Accept absolute paths.
23401 [\\/]* | ?:[\\/]*)
23402 re_direlt='/[^/][^/]*/\.\./'
23403 # Canonicalize the pathname of ld
23404 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
23405 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
23406 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
23407 done
23408 # Got the pathname. No search in PATH is needed.
23409 acl_cv_path_LD="$acl_output"
23410 ac_prog=
23411 ;;
23412 "")
23413 # If it fails, then pretend we aren't using GCC.
23414 ;;
23415 *)
23416 # If it is relative, then search for the first ld in PATH.
23417 with_gnu_ld=unknown
23418 ;;
23419 esac
23420 fi
23421 if test -n "$ac_prog"; then
23422 # Search for $ac_prog in $PATH.
23423 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
23424 for ac_dir in $PATH; do
23425 IFS="$acl_save_ifs"
23426 test -z "$ac_dir" && ac_dir=.
23427 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
23428 acl_cv_path_LD="$ac_dir/$ac_prog"
23429 # Check to see if the program is GNU ld. I'd rather use --version,
23430 # but apparently some variants of GNU ld only accept -v.
23431 # Break only if it was the GNU/non-GNU ld that we prefer.
23432 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
23433 *GNU* | *'with BFD'*)
23434 test "$with_gnu_ld" != no && break
23435 ;;
23436 *)
23437 test "$with_gnu_ld" != yes && break
23438 ;;
23439 esac
23440 fi
23441 done
23442 IFS="$acl_save_ifs"
23443 fi
23444 case $host in
23445 *-*-aix*)
23446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23447 /* end confdefs.h. */
23448 #if defined __powerpc64__ || defined __LP64__
23449 int ok;
23450 #else
23451 error fail
23452 #endif
23453
23454 _ACEOF
23455 if ac_fn_c_try_compile "$LINENO"
23456 then :
23457 # The compiler produces 64-bit code. Add option '-b64' so that the
23458 # linker groks 64-bit object files.
23459 case "$acl_cv_path_LD " in
23460 *" -b64 "*) ;;
23461 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
23462 esac
23463
23464 fi
23465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23466 ;;
23467 sparc64-*-netbsd*)
23468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23469 /* end confdefs.h. */
23470 #if defined __sparcv9 || defined __arch64__
23471 int ok;
23472 #else
23473 error fail
23474 #endif
23475
23476 _ACEOF
23477 if ac_fn_c_try_compile "$LINENO"
23478 then :
23479
23480 else $as_nop
23481 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
23482 # so that the linker groks 32-bit object files.
23483 case "$acl_cv_path_LD " in
23484 *" -m elf32_sparc "*) ;;
23485 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
23486 esac
23487
23488 fi
23489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23490 ;;
23491 esac
23492
23493 fi
23494
23495 LD="$acl_cv_path_LD"
23496 fi
23497 if test -n "$LD"; then
23498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
23499 printf "%s\n" "$LD" >&6; }
23500 else
23501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23502 printf "%s\n" "no" >&6; }
23503 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
23504 fi
23505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
23506 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
23507 if test ${acl_cv_prog_gnu_ld+y}
23508 then :
23509 printf %s "(cached) " >&6
23510 else $as_nop
23511 # I'd rather use --version here, but apparently some GNU lds only accept -v.
23512 case `$LD -v 2>&1 </dev/null` in
23513 *GNU* | *'with BFD'*)
23514 acl_cv_prog_gnu_ld=yes
23515 ;;
23516 *)
23517 acl_cv_prog_gnu_ld=no
23518 ;;
23519 esac
23520 fi
23521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
23522 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
23523 with_gnu_ld=$acl_cv_prog_gnu_ld
23524
23525
23526
23527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
23528 printf %s "checking for shared library path variable... " >&6; }
23529 if test ${acl_cv_libpath+y}
23530 then :
23531 printf %s "(cached) " >&6
23532 else $as_nop
23533
23534 LD="$LD" \
23535 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
23536 . ./conftest.sh
23537 rm -f ./conftest.sh
23538 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
23539
23540 fi
23541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
23542 printf "%s\n" "$acl_cv_libpath" >&6; }
23543 shlibpath_var="$acl_cv_shlibpath_var"
23544
23545
23546
23547
23548
23549
23550
23551
23552 is_noop=no
23553 use_elf_origin_trick=no
23554 use_macos_tools=no
23555 use_wrapper=no
23556 if test $RELOCATABLE = yes; then
23557 # --enable-relocatable implies --disable-rpath
23558 enable_rpath=no
23559 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
23560 if test "x$ac_cv_header_mach_o_dyld_h" = xyes
23561 then :
23562 printf "%s\n" "#define HAVE_MACH_O_DYLD_H 1" >>confdefs.h
23563
23564 fi
23565
23566 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
23567 if test "x$ac_cv_func__NSGetExecutablePath" = xyes
23568 then :
23569 printf "%s\n" "#define HAVE__NSGETEXECUTABLEPATH 1" >>confdefs.h
23570
23571 fi
23572
23573 case "$host_os" in
23574 mingw*) is_noop=yes ;;
23575 # For the platforms that support $ORIGIN, see
23576 # <https://lekensteyn.nl/rpath.html>.
23577 # glibc systems, Linux with musl libc: yes. Android: no.
23578 linux*-android*) ;;
23579 linux* | kfreebsd*) use_elf_origin_trick=yes ;;
23580 # Hurd: <https://lists.gnu.org/r/bug-hurd/2019-02/msg00049.html>
23581 # only after the glibc commit from 2018-01-08
23582 # <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=311ba8dc4416467947eff2ab327854f124226309>
23583 gnu*)
23584 # Test for a glibc version >= 2.27.
23585 ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range"
23586 if test "x$ac_cv_func_copy_file_range" = xyes
23587 then :
23588 printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
23589
23590 fi
23591
23592 if test $ac_cv_func_copy_file_range = yes; then
23593 use_elf_origin_trick=yes
23594 fi
23595 ;;
23596 # FreeBSD >= 7.3, DragonFly >= 3.0, MidnightBSD >= 1.1: yes.
23597 freebsd | freebsd[1-7] | freebsd[1-6].* | freebsd7.[0-2]) ;;
23598 dragonfly | dragonfly[1-2] | dragonfly[1-2].*) ;;
23599 midnightbsd | midnightbsd0* | midnightbsd1.0*) ;;
23600 freebsd* | dragonfly* | midnightbsd*) use_elf_origin_trick=yes ;;
23601 # NetBSD >= 8.0: yes.
23602 netbsd | netbsd[1-7] | netbsd[1-7].*) ;;
23603 netbsdelf | netbsdelf[1-7] | netbsdelf[1-7].*) ;;
23604 netbsd*) use_elf_origin_trick=yes ;;
23605 # OpenBSD >= 5.4: yes.
23606 openbsd | openbsd[1-5] | openbsd[1-4].* | openbsd5.[0-3]) ;;
23607 openbsd*) use_elf_origin_trick=yes ;;
23608 # Solaris >= 10: yes.
23609 solaris | solaris2.[1-9] | solaris2.[1-9].*) ;;
23610 solaris*) use_elf_origin_trick=yes ;;
23611 # Haiku: yes.
23612 haiku*) use_elf_origin_trick=yes ;;
23613 # On Mac OS X 10.4 or newer, use Mac OS X tools. See
23614 # <https://wincent.com/wiki/@executable_path,_@load_path_and_@rpath>.
23615 darwin | darwin[1-7].*) ;;
23616 darwin*) use_macos_tools=yes ;;
23617 esac
23618 if test $is_noop = yes; then
23619 RELOCATABLE_LDFLAGS=:
23620
23621 else
23622 if test $use_elf_origin_trick = yes || test $use_macos_tools = yes; then
23623 case "$ac_aux_dir" in
23624 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
23625 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
23626 esac
23627 RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
23628
23629 if test $use_macos_tools = yes; then
23630 case "$ac_aux_dir" in
23631 /*) LIBTOOL="${CONFIG_SHELL-$SHELL} $ac_aux_dir/libtool-reloc $LIBTOOL" ;;
23632 *) LIBTOOL="${CONFIG_SHELL-$SHELL} \$(top_builddir)/$ac_aux_dir/libtool-reloc $LIBTOOL" ;;
23633 esac
23634 fi
23635 else
23636 use_wrapper=yes
23637 INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
23638
23639 case "$ac_aux_dir" in
23640 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
23641 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
23642 esac
23643 fi
23644 fi
23645 fi
23646 if test $is_noop = yes || test $use_elf_origin_trick = yes || test $use_macos_tools = yes; then
23647 RELOCATABLE_VIA_LD_TRUE=
23648 RELOCATABLE_VIA_LD_FALSE='#'
23649 else
23650 RELOCATABLE_VIA_LD_TRUE='#'
23651 RELOCATABLE_VIA_LD_FALSE=
23652 fi
23653
23654 if test $use_wrapper = yes; then
23655 RELOCATABLE_VIA_WRAPPER_TRUE=
23656 RELOCATABLE_VIA_WRAPPER_FALSE='#'
23657 else
23658 RELOCATABLE_VIA_WRAPPER_TRUE='#'
23659 RELOCATABLE_VIA_WRAPPER_FALSE=
23660 fi
23661
23662
23663
23664
23665
23666
23667
23668
23669 RELOCATABLE_STRIP=':'
23670
23671
23672 ac_fn_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
23673 if test "x$ac_cv_have_decl_setenv" = xyes
23674 then :
23675 ac_have_decl=1
23676 else $as_nop
23677 ac_have_decl=0
23678 fi
23679 printf "%s\n" "#define HAVE_DECL_SETENV $ac_have_decl" >>confdefs.h
23680
23681
23682
23683
23684
23685
23686
23687
23688 HAVE_DECL_FCLOSEALL=1;
23689 HAVE_DECL_FPURGE=1;
23690 HAVE_DECL_FSEEKO=1;
23691 HAVE_DECL_FTELLO=1;
23692 HAVE_DECL_GETDELIM=1;
23693 HAVE_DECL_GETLINE=1;
23694 HAVE_DECL_GETW=1;
23695 HAVE_DECL_OBSTACK_PRINTF=1;
23696 HAVE_DECL_PUTW=1;
23697 HAVE_DECL_SNPRINTF=1;
23698 HAVE_DECL_VSNPRINTF=1;
23699 HAVE_DPRINTF=1;
23700 HAVE_FSEEKO=1;
23701 HAVE_FTELLO=1;
23702 HAVE_PCLOSE=1;
23703 HAVE_POPEN=1;
23704 HAVE_RENAMEAT=1;
23705 HAVE_VASPRINTF=1;
23706 HAVE_VDPRINTF=1;
23707 REPLACE_DPRINTF=0;
23708 REPLACE_FCLOSE=0;
23709 REPLACE_FDOPEN=0;
23710 REPLACE_FFLUSH=0;
23711 REPLACE_FOPEN=0;
23712 REPLACE_FOPEN_FOR_FOPEN_GNU=0;
23713 REPLACE_FPRINTF=0;
23714 REPLACE_FPURGE=0;
23715 REPLACE_FREOPEN=0;
23716 REPLACE_FSEEK=0;
23717 REPLACE_FSEEKO=0;
23718 REPLACE_FTELL=0;
23719 REPLACE_FTELLO=0;
23720 REPLACE_GETDELIM=0;
23721 REPLACE_GETLINE=0;
23722 REPLACE_OBSTACK_PRINTF=0;
23723 REPLACE_PERROR=0;
23724 REPLACE_POPEN=0;
23725 REPLACE_PRINTF=0;
23726 REPLACE_REMOVE=0;
23727 REPLACE_RENAME=0;
23728 REPLACE_RENAMEAT=0;
23729 REPLACE_SNPRINTF=0;
23730 REPLACE_SPRINTF=0;
23731 REPLACE_STDIO_READ_FUNCS=0;
23732 REPLACE_STDIO_WRITE_FUNCS=0;
23733 REPLACE_TMPFILE=0;
23734 REPLACE_VASPRINTF=0;
23735 REPLACE_VDPRINTF=0;
23736 REPLACE_VFPRINTF=0;
23737 REPLACE_VPRINTF=0;
23738 REPLACE_VSNPRINTF=0;
23739 REPLACE_VSPRINTF=0;
23740
23741 ac_fn_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
23742 if test "x$ac_cv_have_decl_fcloseall" = xyes
23743 then :
23744 ac_have_decl=1
23745 else $as_nop
23746 ac_have_decl=0
23747 fi
23748 printf "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h
23749
23750 ac_fn_check_decl "$LINENO" "getw" "ac_cv_have_decl_getw" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
23751 if test "x$ac_cv_have_decl_getw" = xyes
23752 then :
23753 ac_have_decl=1
23754 else $as_nop
23755 ac_have_decl=0
23756 fi
23757 printf "%s\n" "#define HAVE_DECL_GETW $ac_have_decl" >>confdefs.h
23758
23759 ac_fn_check_decl "$LINENO" "putw" "ac_cv_have_decl_putw" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
23760 if test "x$ac_cv_have_decl_putw" = xyes
23761 then :
23762 ac_have_decl=1
23763 else $as_nop
23764 ac_have_decl=0
23765 fi
23766 printf "%s\n" "#define HAVE_DECL_PUTW $ac_have_decl" >>confdefs.h
23767
23768
23769
23770
23771 printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781 if test $gl_cv_have_include_next = yes; then
23782 gl_cv_next_stdio_h='<'stdio.h'>'
23783 else
23784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23785 printf %s "checking absolute name of <stdio.h>... " >&6; }
23786 if test ${gl_cv_next_stdio_h+y}
23787 then :
23788 printf %s "(cached) " >&6
23789 else $as_nop
23790
23791
23792
23793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23794 /* end confdefs.h. */
23795 #include <stdio.h>
23796 _ACEOF
23797 case "$host_os" in
23798 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23799 *) gl_absname_cpp="$ac_cpp" ;;
23800 esac
23801
23802 case "$host_os" in
23803 mingw*)
23804 gl_dirsep_regex='[/\\]'
23805 ;;
23806 *)
23807 gl_dirsep_regex='\/'
23808 ;;
23809 esac
23810 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23811 gl_header_literal_regex=`echo 'stdio.h' \
23812 | sed -e "$gl_make_literal_regex_sed"`
23813 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23814 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23815 s|^/[^/]|//&|
23816 p
23817 q
23818 }'
23819
23820 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23821 sed -n "$gl_absolute_header_sed"`
23822
23823 gl_header=$gl_cv_absolute_stdio_h
23824 gl_cv_next_stdio_h='"'$gl_header'"'
23825
23826
23827 fi
23828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23829 printf "%s\n" "$gl_cv_next_stdio_h" >&6; }
23830 fi
23831 NEXT_STDIO_H=$gl_cv_next_stdio_h
23832
23833 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23835 gl_next_as_first_directive='<'stdio.h'>'
23836 else
23837 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23838 gl_next_as_first_directive=$gl_cv_next_stdio_h
23839 fi
23840 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23841
23842
23843
23844
23845
23846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
23847 printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; }
23848 if test ${gl_cv_func_printf_attribute_flavor+y}
23849 then :
23850 printf %s "(cached) " >&6
23851 else $as_nop
23852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23853 /* end confdefs.h. */
23854
23855 #define __STDC_FORMAT_MACROS 1
23856 #include <stdio.h>
23857 #include <inttypes.h>
23858 /* For non-mingw systems, compilation will trivially succeed.
23859 For mingw, compilation will succeed for older mingw (system
23860 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
23861 #if (defined _WIN32 && ! defined __CYGWIN__) && \
23862 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
23863 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
23864 #endif
23865
23866 int
23867 main (void)
23868 {
23869
23870 ;
23871 return 0;
23872 }
23873 _ACEOF
23874 if ac_fn_c_try_compile "$LINENO"
23875 then :
23876 gl_cv_func_printf_attribute_flavor=system
23877 else $as_nop
23878 gl_cv_func_printf_attribute_flavor=gnu
23879 fi
23880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23881 fi
23882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
23883 printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; }
23884 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
23885
23886 printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
23887
23888 fi
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902 if test $ac_cv_have_decl_fcloseall = no; then
23903 HAVE_DECL_FCLOSEALL=0
23904 fi
23905
23906
23907 if test $ac_cv_have_decl_getw = no; then
23908 HAVE_DECL_GETW=0
23909 fi
23910
23911
23912 if test $ac_cv_have_decl_putw = no; then
23913 HAVE_DECL_PUTW=0
23914 fi
23915
23916
23917
23918 GL_GL_PAPER_GNULIB_DPRINTF=0
23919
23920
23921
23922 GL_GL_PAPER_GNULIB_FCLOSE=0
23923
23924
23925
23926 GL_GL_PAPER_GNULIB_FDOPEN=0
23927
23928
23929
23930 GL_GL_PAPER_GNULIB_FFLUSH=0
23931
23932
23933
23934 GL_GL_PAPER_GNULIB_FGETC=0
23935
23936
23937
23938 GL_GL_PAPER_GNULIB_FGETS=0
23939
23940
23941
23942 GL_GL_PAPER_GNULIB_FOPEN=0
23943
23944
23945
23946 GL_GL_PAPER_GNULIB_FOPEN_GNU=0
23947
23948
23949
23950 GL_GL_PAPER_GNULIB_FPRINTF=0
23951
23952
23953
23954 GL_GL_PAPER_GNULIB_FPRINTF_POSIX=0
23955
23956
23957
23958 GL_GL_PAPER_GNULIB_FPURGE=0
23959
23960
23961
23962 GL_GL_PAPER_GNULIB_FPUTC=0
23963
23964
23965
23966 GL_GL_PAPER_GNULIB_FPUTS=0
23967
23968
23969
23970 GL_GL_PAPER_GNULIB_FREAD=0
23971
23972
23973
23974 GL_GL_PAPER_GNULIB_FREOPEN=0
23975
23976
23977
23978 GL_GL_PAPER_GNULIB_FSCANF=0
23979
23980
23981
23982 GL_GL_PAPER_GNULIB_FSEEK=0
23983
23984
23985
23986 GL_GL_PAPER_GNULIB_FSEEKO=0
23987
23988
23989
23990 GL_GL_PAPER_GNULIB_FTELL=0
23991
23992
23993
23994 GL_GL_PAPER_GNULIB_FTELLO=0
23995
23996
23997
23998 GL_GL_PAPER_GNULIB_FWRITE=0
23999
24000
24001
24002 GL_GL_PAPER_GNULIB_GETC=0
24003
24004
24005
24006 GL_GL_PAPER_GNULIB_GETCHAR=0
24007
24008
24009
24010 GL_GL_PAPER_GNULIB_GETDELIM=0
24011
24012
24013
24014 GL_GL_PAPER_GNULIB_GETLINE=0
24015
24016
24017
24018 GL_GL_PAPER_GNULIB_OBSTACK_PRINTF=0
24019
24020
24021
24022 GL_GL_PAPER_GNULIB_OBSTACK_PRINTF_POSIX=0
24023
24024
24025
24026 GL_GL_PAPER_GNULIB_PCLOSE=0
24027
24028
24029
24030 GL_GL_PAPER_GNULIB_PERROR=0
24031
24032
24033
24034 GL_GL_PAPER_GNULIB_POPEN=0
24035
24036
24037
24038 GL_GL_PAPER_GNULIB_PRINTF=0
24039
24040
24041
24042 GL_GL_PAPER_GNULIB_PRINTF_POSIX=0
24043
24044
24045
24046 GL_GL_PAPER_GNULIB_PUTC=0
24047
24048
24049
24050 GL_GL_PAPER_GNULIB_PUTCHAR=0
24051
24052
24053
24054 GL_GL_PAPER_GNULIB_PUTS=0
24055
24056
24057
24058 GL_GL_PAPER_GNULIB_REMOVE=0
24059
24060
24061
24062 GL_GL_PAPER_GNULIB_RENAME=0
24063
24064
24065
24066 GL_GL_PAPER_GNULIB_RENAMEAT=0
24067
24068
24069
24070 GL_GL_PAPER_GNULIB_SCANF=0
24071
24072
24073
24074 GL_GL_PAPER_GNULIB_SNPRINTF=0
24075
24076
24077
24078 GL_GL_PAPER_GNULIB_SPRINTF_POSIX=0
24079
24080
24081
24082 GL_GL_PAPER_GNULIB_STDIO_H_NONBLOCKING=0
24083
24084
24085
24086 GL_GL_PAPER_GNULIB_STDIO_H_SIGPIPE=0
24087
24088
24089
24090 GL_GL_PAPER_GNULIB_TMPFILE=0
24091
24092
24093
24094 GL_GL_PAPER_GNULIB_VASPRINTF=0
24095
24096
24097
24098 GL_GL_PAPER_GNULIB_VFSCANF=0
24099
24100
24101
24102 GL_GL_PAPER_GNULIB_VSCANF=0
24103
24104
24105
24106 GL_GL_PAPER_GNULIB_VDPRINTF=0
24107
24108
24109
24110 GL_GL_PAPER_GNULIB_VFPRINTF=0
24111
24112
24113
24114 GL_GL_PAPER_GNULIB_VFPRINTF_POSIX=0
24115
24116
24117
24118 GL_GL_PAPER_GNULIB_VPRINTF=0
24119
24120
24121
24122 GL_GL_PAPER_GNULIB_VPRINTF_POSIX=0
24123
24124
24125
24126 GL_GL_PAPER_GNULIB_VSNPRINTF=0
24127
24128
24129
24130 GL_GL_PAPER_GNULIB_VSPRINTF_POSIX=0
24131
24132
24133
24134 GL_GL_PAPER_GNULIB_MDA_FCLOSEALL=1
24135
24136
24137
24138 GL_GL_PAPER_GNULIB_MDA_FDOPEN=1
24139
24140
24141
24142 GL_GL_PAPER_GNULIB_MDA_FILENO=1
24143
24144
24145
24146 GL_GL_PAPER_GNULIB_MDA_GETW=1
24147
24148
24149
24150 GL_GL_PAPER_GNULIB_MDA_PUTW=1
24151
24152
24153
24154 GL_GL_PAPER_GNULIB_MDA_TEMPNAM=1
24155
24156
24157
24158 ac_fn_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
24159 if test "x$ac_cv_have_decl_ecvt" = xyes
24160 then :
24161 ac_have_decl=1
24162 else $as_nop
24163 ac_have_decl=0
24164 fi
24165 printf "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h
24166
24167 ac_fn_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
24168 if test "x$ac_cv_have_decl_fcvt" = xyes
24169 then :
24170 ac_have_decl=1
24171 else $as_nop
24172 ac_have_decl=0
24173 fi
24174 printf "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h
24175
24176 ac_fn_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
24177 if test "x$ac_cv_have_decl_gcvt" = xyes
24178 then :
24179 ac_have_decl=1
24180 else $as_nop
24181 ac_have_decl=0
24182 fi
24183 printf "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195 if test $gl_cv_have_include_next = yes; then
24196 gl_cv_next_stdlib_h='<'stdlib.h'>'
24197 else
24198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24199 printf %s "checking absolute name of <stdlib.h>... " >&6; }
24200 if test ${gl_cv_next_stdlib_h+y}
24201 then :
24202 printf %s "(cached) " >&6
24203 else $as_nop
24204
24205
24206
24207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24208 /* end confdefs.h. */
24209 #include <stdlib.h>
24210 _ACEOF
24211 case "$host_os" in
24212 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24213 *) gl_absname_cpp="$ac_cpp" ;;
24214 esac
24215
24216 case "$host_os" in
24217 mingw*)
24218 gl_dirsep_regex='[/\\]'
24219 ;;
24220 *)
24221 gl_dirsep_regex='\/'
24222 ;;
24223 esac
24224 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24225 gl_header_literal_regex=`echo 'stdlib.h' \
24226 | sed -e "$gl_make_literal_regex_sed"`
24227 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24228 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24229 s|^/[^/]|//&|
24230 p
24231 q
24232 }'
24233
24234 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24235 sed -n "$gl_absolute_header_sed"`
24236
24237 gl_header=$gl_cv_absolute_stdlib_h
24238 gl_cv_next_stdlib_h='"'$gl_header'"'
24239
24240
24241 fi
24242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24243 printf "%s\n" "$gl_cv_next_stdlib_h" >&6; }
24244 fi
24245 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24246
24247 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24249 gl_next_as_first_directive='<'stdlib.h'>'
24250 else
24251 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24252 gl_next_as_first_directive=$gl_cv_next_stdlib_h
24253 fi
24254 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267 if test $ac_cv_have_decl_ecvt = no; then
24268 HAVE_DECL_ECVT=0
24269 fi
24270
24271 if test $ac_cv_have_decl_fcvt = no; then
24272 HAVE_DECL_FCVT=0
24273 fi
24274
24275 if test $ac_cv_have_decl_gcvt = no; then
24276 HAVE_DECL_GCVT=0
24277 fi
24278
24279
24280 REPLACE_STRERROR_0=0
24281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
24282 printf %s "checking whether strerror(0) succeeds... " >&6; }
24283 if test ${gl_cv_func_strerror_0_works+y}
24284 then :
24285 printf %s "(cached) " >&6
24286 else $as_nop
24287 if test "$cross_compiling" = yes
24288 then :
24289 case "$host_os" in
24290 # Guess yes on glibc systems.
24291 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
24292 # Guess yes on musl systems.
24293 *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;;
24294 # Guess yes on native Windows.
24295 mingw*) gl_cv_func_strerror_0_works="guessing yes" ;;
24296 # If we don't know, obey --enable-cross-guesses.
24297 *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
24298 esac
24299
24300 else $as_nop
24301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24302 /* end confdefs.h. */
24303 #include <string.h>
24304 #include <errno.h>
24305
24306 int
24307 main (void)
24308 {
24309 int result = 0;
24310 char *str;
24311 errno = 0;
24312 str = strerror (0);
24313 if (!*str) result |= 1;
24314 if (errno) result |= 2;
24315 if (strstr (str, "nknown") || strstr (str, "ndefined"))
24316 result |= 4;
24317 return result;
24318 ;
24319 return 0;
24320 }
24321 _ACEOF
24322 if ac_fn_c_try_run "$LINENO"
24323 then :
24324 gl_cv_func_strerror_0_works=yes
24325 else $as_nop
24326 gl_cv_func_strerror_0_works=no
24327 fi
24328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24329 conftest.$ac_objext conftest.beam conftest.$ac_ext
24330 fi
24331
24332
24333 fi
24334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
24335 printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; }
24336 case "$gl_cv_func_strerror_0_works" in
24337 *yes) ;;
24338 *)
24339 REPLACE_STRERROR_0=1
24340
24341 printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h
24342
24343 ;;
24344 esac
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356 if test $gl_cv_have_include_next = yes; then
24357 gl_cv_next_string_h='<'string.h'>'
24358 else
24359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
24360 printf %s "checking absolute name of <string.h>... " >&6; }
24361 if test ${gl_cv_next_string_h+y}
24362 then :
24363 printf %s "(cached) " >&6
24364 else $as_nop
24365
24366
24367
24368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24369 /* end confdefs.h. */
24370 #include <string.h>
24371 _ACEOF
24372 case "$host_os" in
24373 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24374 *) gl_absname_cpp="$ac_cpp" ;;
24375 esac
24376
24377 case "$host_os" in
24378 mingw*)
24379 gl_dirsep_regex='[/\\]'
24380 ;;
24381 *)
24382 gl_dirsep_regex='\/'
24383 ;;
24384 esac
24385 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24386 gl_header_literal_regex=`echo 'string.h' \
24387 | sed -e "$gl_make_literal_regex_sed"`
24388 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24389 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24390 s|^/[^/]|//&|
24391 p
24392 q
24393 }'
24394
24395 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24396 sed -n "$gl_absolute_header_sed"`
24397
24398 gl_header=$gl_cv_absolute_string_h
24399 gl_cv_next_string_h='"'$gl_header'"'
24400
24401
24402 fi
24403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
24404 printf "%s\n" "$gl_cv_next_string_h" >&6; }
24405 fi
24406 NEXT_STRING_H=$gl_cv_next_string_h
24407
24408 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24409 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24410 gl_next_as_first_directive='<'string.h'>'
24411 else
24412 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24413 gl_next_as_first_directive=$gl_cv_next_string_h
24414 fi
24415 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439 printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h
24440
24441
24442
24443
24444
24445
24446
24447
24448
24449
24450 if test $gl_cv_have_include_next = yes; then
24451 gl_cv_next_sys_types_h='<'sys/types.h'>'
24452 else
24453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
24454 printf %s "checking absolute name of <sys/types.h>... " >&6; }
24455 if test ${gl_cv_next_sys_types_h+y}
24456 then :
24457 printf %s "(cached) " >&6
24458 else $as_nop
24459
24460
24461
24462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24463 /* end confdefs.h. */
24464 #include <sys/types.h>
24465 _ACEOF
24466 case "$host_os" in
24467 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24468 *) gl_absname_cpp="$ac_cpp" ;;
24469 esac
24470
24471 case "$host_os" in
24472 mingw*)
24473 gl_dirsep_regex='[/\\]'
24474 ;;
24475 *)
24476 gl_dirsep_regex='\/'
24477 ;;
24478 esac
24479 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24480 gl_header_literal_regex=`echo 'sys/types.h' \
24481 | sed -e "$gl_make_literal_regex_sed"`
24482 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24483 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24484 s|^/[^/]|//&|
24485 p
24486 q
24487 }'
24488
24489 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24490 sed -n "$gl_absolute_header_sed"`
24491
24492 gl_header=$gl_cv_absolute_sys_types_h
24493 gl_cv_next_sys_types_h='"'$gl_header'"'
24494
24495
24496 fi
24497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
24498 printf "%s\n" "$gl_cv_next_sys_types_h" >&6; }
24499 fi
24500 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
24501
24502 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24503 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24504 gl_next_as_first_directive='<'sys/types.h'>'
24505 else
24506 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24507 gl_next_as_first_directive=$gl_cv_next_sys_types_h
24508 fi
24509 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522 WINDOWS_STAT_INODES=0
24523
24524
24525
24526
24527
24528
24529 HAVE_DECL_LOCALTIME_R=1;
24530 HAVE_NANOSLEEP=1;
24531 HAVE_STRPTIME=1;
24532 HAVE_TIMEGM=1;
24533 HAVE_TIMESPEC_GET=1;
24534 HAVE_TIMESPEC_GETRES=1;
24535 HAVE_TIMEZONE_T=0;
24536 REPLACE_CTIME=GNULIB_PORTCHECK;
24537 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
24538 REPLACE_MKTIME=GNULIB_PORTCHECK;
24539 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
24540 REPLACE_STRFTIME=GNULIB_PORTCHECK;
24541 REPLACE_TIMEGM=GNULIB_PORTCHECK;
24542 REPLACE_TIMESPEC_GET=GNULIB_PORTCHECK;
24543 REPLACE_TZSET=GNULIB_PORTCHECK;
24544
24545 : ${GNULIB_GETTIMEOFDAY=0};
24546 REPLACE_GMTIME=0;
24547 REPLACE_LOCALTIME=0;
24548
24549
24550
24551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
24552 printf %s "checking for struct timespec in <time.h>... " >&6; }
24553 if test ${gl_cv_sys_struct_timespec_in_time_h+y}
24554 then :
24555 printf %s "(cached) " >&6
24556 else $as_nop
24557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24558 /* end confdefs.h. */
24559 #include <time.h>
24560
24561 int
24562 main (void)
24563 {
24564 static struct timespec x; x.tv_sec = x.tv_nsec;
24565 ;
24566 return 0;
24567 }
24568 _ACEOF
24569 if ac_fn_c_try_compile "$LINENO"
24570 then :
24571 gl_cv_sys_struct_timespec_in_time_h=yes
24572 else $as_nop
24573 gl_cv_sys_struct_timespec_in_time_h=no
24574 fi
24575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24576 fi
24577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
24578 printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
24579
24580 TIME_H_DEFINES_STRUCT_TIMESPEC=0
24581 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
24582 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
24583 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
24584 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
24585 TIME_H_DEFINES_STRUCT_TIMESPEC=1
24586 else
24587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
24588 printf %s "checking for struct timespec in <sys/time.h>... " >&6; }
24589 if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y}
24590 then :
24591 printf %s "(cached) " >&6
24592 else $as_nop
24593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24594 /* end confdefs.h. */
24595 #include <sys/time.h>
24596
24597 int
24598 main (void)
24599 {
24600 static struct timespec x; x.tv_sec = x.tv_nsec;
24601 ;
24602 return 0;
24603 }
24604 _ACEOF
24605 if ac_fn_c_try_compile "$LINENO"
24606 then :
24607 gl_cv_sys_struct_timespec_in_sys_time_h=yes
24608 else $as_nop
24609 gl_cv_sys_struct_timespec_in_sys_time_h=no
24610 fi
24611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24612 fi
24613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
24614 printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
24615 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
24616 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
24617 else
24618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
24619 printf %s "checking for struct timespec in <pthread.h>... " >&6; }
24620 if test ${gl_cv_sys_struct_timespec_in_pthread_h+y}
24621 then :
24622 printf %s "(cached) " >&6
24623 else $as_nop
24624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24625 /* end confdefs.h. */
24626 #include <pthread.h>
24627
24628 int
24629 main (void)
24630 {
24631 static struct timespec x; x.tv_sec = x.tv_nsec;
24632 ;
24633 return 0;
24634 }
24635 _ACEOF
24636 if ac_fn_c_try_compile "$LINENO"
24637 then :
24638 gl_cv_sys_struct_timespec_in_pthread_h=yes
24639 else $as_nop
24640 gl_cv_sys_struct_timespec_in_pthread_h=no
24641 fi
24642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24643 fi
24644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
24645 printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
24646 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
24647 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
24648 else
24649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
24650 printf %s "checking for struct timespec in <unistd.h>... " >&6; }
24651 if test ${gl_cv_sys_struct_timespec_in_unistd_h+y}
24652 then :
24653 printf %s "(cached) " >&6
24654 else $as_nop
24655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24656 /* end confdefs.h. */
24657 #include <unistd.h>
24658
24659 int
24660 main (void)
24661 {
24662 static struct timespec x; x.tv_sec = x.tv_nsec;
24663 ;
24664 return 0;
24665 }
24666 _ACEOF
24667 if ac_fn_c_try_compile "$LINENO"
24668 then :
24669 gl_cv_sys_struct_timespec_in_unistd_h=yes
24670 else $as_nop
24671 gl_cv_sys_struct_timespec_in_unistd_h=no
24672 fi
24673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24674 fi
24675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
24676 printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
24677 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
24678 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
24679 fi
24680 fi
24681 fi
24682 fi
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699 if test $gl_cv_have_include_next = yes; then
24700 gl_cv_next_time_h='<'time.h'>'
24701 else
24702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
24703 printf %s "checking absolute name of <time.h>... " >&6; }
24704 if test ${gl_cv_next_time_h+y}
24705 then :
24706 printf %s "(cached) " >&6
24707 else $as_nop
24708
24709
24710
24711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24712 /* end confdefs.h. */
24713 #include <time.h>
24714 _ACEOF
24715 case "$host_os" in
24716 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24717 *) gl_absname_cpp="$ac_cpp" ;;
24718 esac
24719
24720 case "$host_os" in
24721 mingw*)
24722 gl_dirsep_regex='[/\\]'
24723 ;;
24724 *)
24725 gl_dirsep_regex='\/'
24726 ;;
24727 esac
24728 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24729 gl_header_literal_regex=`echo 'time.h' \
24730 | sed -e "$gl_make_literal_regex_sed"`
24731 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24732 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24733 s|^/[^/]|//&|
24734 p
24735 q
24736 }'
24737
24738 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24739 sed -n "$gl_absolute_header_sed"`
24740
24741 gl_header=$gl_cv_absolute_time_h
24742 gl_cv_next_time_h='"'$gl_header'"'
24743
24744
24745 fi
24746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
24747 printf "%s\n" "$gl_cv_next_time_h" >&6; }
24748 fi
24749 NEXT_TIME_H=$gl_cv_next_time_h
24750
24751 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24752 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24753 gl_next_as_first_directive='<'time.h'>'
24754 else
24755 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24756 gl_next_as_first_directive=$gl_cv_next_time_h
24757 fi
24758 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769
24770
24771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
24772 printf %s "checking for TIME_UTC in <time.h>... " >&6; }
24773 if test ${gl_cv_time_h_has_TIME_UTC+y}
24774 then :
24775 printf %s "(cached) " >&6
24776 else $as_nop
24777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24778 /* end confdefs.h. */
24779 #include <time.h>
24780
24781 int
24782 main (void)
24783 {
24784 static int x = TIME_UTC; x++;
24785 ;
24786 return 0;
24787 }
24788 _ACEOF
24789 if ac_fn_c_try_compile "$LINENO"
24790 then :
24791 gl_cv_time_h_has_TIME_UTC=yes
24792 else $as_nop
24793 gl_cv_time_h_has_TIME_UTC=no
24794 fi
24795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24796 fi
24797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
24798 printf "%s\n" "$gl_cv_time_h_has_TIME_UTC" >&6; }
24799 if test $gl_cv_time_h_has_TIME_UTC = yes; then
24800 TIME_H_DEFINES_TIME_UTC=1
24801 else
24802 TIME_H_DEFINES_TIME_UTC=0
24803 fi
24804
24805
24806
24807
24808 GL_GL_PAPER_GNULIB_CTIME=0
24809
24810
24811
24812 GL_GL_PAPER_GNULIB_MKTIME=0
24813
24814
24815
24816 GL_GL_PAPER_GNULIB_LOCALTIME=0
24817
24818
24819
24820 GL_GL_PAPER_GNULIB_NANOSLEEP=0
24821
24822
24823
24824 GL_GL_PAPER_GNULIB_STRFTIME=0
24825
24826
24827
24828 GL_GL_PAPER_GNULIB_STRPTIME=0
24829
24830
24831
24832 GL_GL_PAPER_GNULIB_TIMEGM=0
24833
24834
24835
24836 GL_GL_PAPER_GNULIB_TIMESPEC_GET=0
24837
24838
24839
24840 GL_GL_PAPER_GNULIB_TIMESPEC_GETRES=0
24841
24842
24843
24844 GL_GL_PAPER_GNULIB_TIME_R=0
24845
24846
24847
24848 GL_GL_PAPER_GNULIB_TIME_RZ=0
24849
24850
24851
24852 GL_GL_PAPER_GNULIB_TZSET=0
24853
24854
24855
24856 GL_GL_PAPER_GNULIB_MDA_TZSET=1
24857
24858
24859
24860 ac_fn_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
24861 if test "x$ac_cv_have_decl_execvpe" = xyes
24862 then :
24863 ac_have_decl=1
24864 else $as_nop
24865 ac_have_decl=0
24866 fi
24867 printf "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881 if test $gl_cv_have_include_next = yes; then
24882 gl_cv_next_unistd_h='<'unistd.h'>'
24883 else
24884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24885 printf %s "checking absolute name of <unistd.h>... " >&6; }
24886 if test ${gl_cv_next_unistd_h+y}
24887 then :
24888 printf %s "(cached) " >&6
24889 else $as_nop
24890
24891 if test $ac_cv_header_unistd_h = yes; then
24892
24893
24894
24895
24896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24897 /* end confdefs.h. */
24898 #include <unistd.h>
24899 _ACEOF
24900 case "$host_os" in
24901 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24902 *) gl_absname_cpp="$ac_cpp" ;;
24903 esac
24904
24905 case "$host_os" in
24906 mingw*)
24907 gl_dirsep_regex='[/\\]'
24908 ;;
24909 *)
24910 gl_dirsep_regex='\/'
24911 ;;
24912 esac
24913 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24914 gl_header_literal_regex=`echo 'unistd.h' \
24915 | sed -e "$gl_make_literal_regex_sed"`
24916 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24917 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24918 s|^/[^/]|//&|
24919 p
24920 q
24921 }'
24922
24923 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24924 sed -n "$gl_absolute_header_sed"`
24925
24926 gl_header=$gl_cv_absolute_unistd_h
24927 gl_cv_next_unistd_h='"'$gl_header'"'
24928 else
24929 gl_cv_next_unistd_h='<'unistd.h'>'
24930 fi
24931
24932
24933 fi
24934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24935 printf "%s\n" "$gl_cv_next_unistd_h" >&6; }
24936 fi
24937 NEXT_UNISTD_H=$gl_cv_next_unistd_h
24938
24939 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24940 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24941 gl_next_as_first_directive='<'unistd.h'>'
24942 else
24943 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24944 gl_next_as_first_directive=$gl_cv_next_unistd_h
24945 fi
24946 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24947
24948
24949
24950
24951 if test $ac_cv_header_unistd_h = yes; then
24952 HAVE_UNISTD_H=1
24953 else
24954 HAVE_UNISTD_H=0
24955 fi
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969 if test $ac_cv_have_decl_execvpe = no; then
24970 HAVE_DECL_EXECVPE=0
24971 fi
24972
24973
24974
24975
24976
24977 if test $ac_cv_header_features_h = yes; then
24978 HAVE_FEATURES_H=1
24979 else
24980 HAVE_FEATURES_H=0
24981 fi
24982
24983
24984
24985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
24986 printf %s "checking for inttypes.h... " >&6; }
24987 if test ${gl_cv_header_inttypes_h+y}
24988 then :
24989 printf %s "(cached) " >&6
24990 else $as_nop
24991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24992 /* end confdefs.h. */
24993
24994 #include <sys/types.h>
24995 #include <inttypes.h>
24996
24997 int
24998 main (void)
24999 {
25000 uintmax_t i = (uintmax_t) -1; return !i;
25001 ;
25002 return 0;
25003 }
25004 _ACEOF
25005 if ac_fn_c_try_compile "$LINENO"
25006 then :
25007 gl_cv_header_inttypes_h=yes
25008 else $as_nop
25009 gl_cv_header_inttypes_h=no
25010 fi
25011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25012 fi
25013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
25014 printf "%s\n" "$gl_cv_header_inttypes_h" >&6; }
25015 if test $gl_cv_header_inttypes_h = yes; then
25016
25017 printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h
25018
25019 fi
25020
25021
25022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
25023 printf %s "checking for stdint.h... " >&6; }
25024 if test ${gl_cv_header_stdint_h+y}
25025 then :
25026 printf %s "(cached) " >&6
25027 else $as_nop
25028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25029 /* end confdefs.h. */
25030 #include <sys/types.h>
25031 #include <stdint.h>
25032 int
25033 main (void)
25034 {
25035 uintmax_t i = (uintmax_t) -1; return !i;
25036 ;
25037 return 0;
25038 }
25039 _ACEOF
25040 if ac_fn_c_try_compile "$LINENO"
25041 then :
25042 gl_cv_header_stdint_h=yes
25043 else $as_nop
25044 gl_cv_header_stdint_h=no
25045 fi
25046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25047 fi
25048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
25049 printf "%s\n" "$gl_cv_header_stdint_h" >&6; }
25050 if test $gl_cv_header_stdint_h = yes; then
25051
25052 printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h
25053
25054 fi
25055
25056
25057
25058
25059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
25060 printf %s "checking for intmax_t... " >&6; }
25061 if test ${gt_cv_c_intmax_t+y}
25062 then :
25063 printf %s "(cached) " >&6
25064 else $as_nop
25065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25066 /* end confdefs.h. */
25067
25068 #include <stddef.h>
25069 #include <stdlib.h>
25070 #if HAVE_STDINT_H_WITH_UINTMAX
25071 #include <stdint.h>
25072 #endif
25073 #if HAVE_INTTYPES_H_WITH_UINTMAX
25074 #include <inttypes.h>
25075 #endif
25076
25077 int
25078 main (void)
25079 {
25080 intmax_t x = -1; return !x;
25081 ;
25082 return 0;
25083 }
25084 _ACEOF
25085 if ac_fn_c_try_compile "$LINENO"
25086 then :
25087 gt_cv_c_intmax_t=yes
25088 else $as_nop
25089 gt_cv_c_intmax_t=no
25090 fi
25091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25092 fi
25093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
25094 printf "%s\n" "$gt_cv_c_intmax_t" >&6; }
25095 if test $gt_cv_c_intmax_t = yes; then
25096
25097 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
25098
25099 else
25100
25101 printf "%s\n" "#define intmax_t long long" >>confdefs.h
25102
25103 fi
25104
25105
25106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
25107 printf %s "checking where to find the exponent in a 'double'... " >&6; }
25108 if test ${gl_cv_cc_double_expbit0+y}
25109 then :
25110 printf %s "(cached) " >&6
25111 else $as_nop
25112
25113 if test "$cross_compiling" = yes
25114 then :
25115
25116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25117 /* end confdefs.h. */
25118
25119 #if defined arm || defined __arm || defined __arm__
25120 mixed_endianness
25121 #endif
25122
25123 _ACEOF
25124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25125 $EGREP "mixed_endianness" >/dev/null 2>&1
25126 then :
25127 gl_cv_cc_double_expbit0="unknown"
25128 else $as_nop
25129
25130 :
25131 if test ${ac_cv_c_bigendian+y}
25132 then :
25133 printf %s "(cached) " >&6
25134 else $as_nop
25135 ac_cv_c_bigendian=unknown
25136 # See if we're dealing with a universal compiler.
25137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25138 /* end confdefs.h. */
25139 #ifndef __APPLE_CC__
25140 not a universal capable compiler
25141 #endif
25142 typedef int dummy;
25143
25144 _ACEOF
25145 if ac_fn_c_try_compile "$LINENO"
25146 then :
25147
25148 # Check for potential -arch flags. It is not universal unless
25149 # there are at least two -arch flags with different values.
25150 ac_arch=
25151 ac_prev=
25152 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25153 if test -n "$ac_prev"; then
25154 case $ac_word in
25155 i?86 | x86_64 | ppc | ppc64)
25156 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25157 ac_arch=$ac_word
25158 else
25159 ac_cv_c_bigendian=universal
25160 break
25161 fi
25162 ;;
25163 esac
25164 ac_prev=
25165 elif test "x$ac_word" = "x-arch"; then
25166 ac_prev=arch
25167 fi
25168 done
25169 fi
25170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25171 if test $ac_cv_c_bigendian = unknown; then
25172 # See if sys/param.h defines the BYTE_ORDER macro.
25173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25174 /* end confdefs.h. */
25175 #include <sys/types.h>
25176 #include <sys/param.h>
25177
25178 int
25179 main (void)
25180 {
25181 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25182 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25183 && LITTLE_ENDIAN)
25184 bogus endian macros
25185 #endif
25186
25187 ;
25188 return 0;
25189 }
25190 _ACEOF
25191 if ac_fn_c_try_compile "$LINENO"
25192 then :
25193 # It does; now see whether it defined to BIG_ENDIAN or not.
25194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25195 /* end confdefs.h. */
25196 #include <sys/types.h>
25197 #include <sys/param.h>
25198
25199 int
25200 main (void)
25201 {
25202 #if BYTE_ORDER != BIG_ENDIAN
25203 not big endian
25204 #endif
25205
25206 ;
25207 return 0;
25208 }
25209 _ACEOF
25210 if ac_fn_c_try_compile "$LINENO"
25211 then :
25212 ac_cv_c_bigendian=yes
25213 else $as_nop
25214 ac_cv_c_bigendian=no
25215 fi
25216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25217 fi
25218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25219 fi
25220 if test $ac_cv_c_bigendian = unknown; then
25221 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25223 /* end confdefs.h. */
25224 #include <limits.h>
25225
25226 int
25227 main (void)
25228 {
25229 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25230 bogus endian macros
25231 #endif
25232
25233 ;
25234 return 0;
25235 }
25236 _ACEOF
25237 if ac_fn_c_try_compile "$LINENO"
25238 then :
25239 # It does; now see whether it defined to _BIG_ENDIAN or not.
25240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25241 /* end confdefs.h. */
25242 #include <limits.h>
25243
25244 int
25245 main (void)
25246 {
25247 #ifndef _BIG_ENDIAN
25248 not big endian
25249 #endif
25250
25251 ;
25252 return 0;
25253 }
25254 _ACEOF
25255 if ac_fn_c_try_compile "$LINENO"
25256 then :
25257 ac_cv_c_bigendian=yes
25258 else $as_nop
25259 ac_cv_c_bigendian=no
25260 fi
25261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25262 fi
25263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25264 fi
25265 if test $ac_cv_c_bigendian = unknown; then
25266 # Compile a test program.
25267 if test "$cross_compiling" = yes
25268 then :
25269 # Try to guess by grepping values from an object file.
25270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25271 /* end confdefs.h. */
25272 unsigned short int ascii_mm[] =
25273 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25274 unsigned short int ascii_ii[] =
25275 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25276 int use_ascii (int i) {
25277 return ascii_mm[i] + ascii_ii[i];
25278 }
25279 unsigned short int ebcdic_ii[] =
25280 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25281 unsigned short int ebcdic_mm[] =
25282 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25283 int use_ebcdic (int i) {
25284 return ebcdic_mm[i] + ebcdic_ii[i];
25285 }
25286 extern int foo;
25287
25288 int
25289 main (void)
25290 {
25291 return use_ascii (foo) == use_ebcdic (foo);
25292 ;
25293 return 0;
25294 }
25295 _ACEOF
25296 if ac_fn_c_try_compile "$LINENO"
25297 then :
25298 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25299 ac_cv_c_bigendian=yes
25300 fi
25301 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25302 if test "$ac_cv_c_bigendian" = unknown; then
25303 ac_cv_c_bigendian=no
25304 else
25305 # finding both strings is unlikely to happen, but who knows?
25306 ac_cv_c_bigendian=unknown
25307 fi
25308 fi
25309 fi
25310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25311 else $as_nop
25312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25313 /* end confdefs.h. */
25314 $ac_includes_default
25315 int
25316 main (void)
25317 {
25318
25319 /* Are we little or big endian? From Harbison&Steele. */
25320 union
25321 {
25322 long int l;
25323 char c[sizeof (long int)];
25324 } u;
25325 u.l = 1;
25326 return u.c[sizeof (long int) - 1] == 1;
25327
25328 ;
25329 return 0;
25330 }
25331 _ACEOF
25332 if ac_fn_c_try_run "$LINENO"
25333 then :
25334 ac_cv_c_bigendian=no
25335 else $as_nop
25336 ac_cv_c_bigendian=yes
25337 fi
25338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25339 conftest.$ac_objext conftest.beam conftest.$ac_ext
25340 fi
25341
25342 fi
25343 fi
25344 :
25345 case $ac_cv_c_bigendian in #(
25346 yes)
25347 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
25348 no)
25349 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
25350 universal)
25351
25352 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25353
25354 ;; #(
25355 *)
25356 gl_cv_cc_double_expbit0="unknown" ;;
25357 esac
25358
25359
25360 fi
25361 rm -rf conftest*
25362
25363
25364 else $as_nop
25365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25366 /* end confdefs.h. */
25367
25368 #include <float.h>
25369 #include <stddef.h>
25370 #include <stdio.h>
25371 #include <string.h>
25372 #define NWORDS \
25373 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
25374 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
25375 static unsigned int ored_words[NWORDS];
25376 static unsigned int anded_words[NWORDS];
25377 static void add_to_ored_words (double x)
25378 {
25379 memory_double m;
25380 size_t i;
25381 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
25382 memset (&m, 0, sizeof (memory_double));
25383 m.value = x;
25384 for (i = 0; i < NWORDS; i++)
25385 {
25386 ored_words[i] |= m.word[i];
25387 anded_words[i] &= m.word[i];
25388 }
25389 }
25390 int main ()
25391 {
25392 size_t j;
25393 FILE *fp = fopen ("conftest.out", "w");
25394 if (fp == NULL)
25395 return 1;
25396 for (j = 0; j < NWORDS; j++)
25397 anded_words[j] = ~ (unsigned int) 0;
25398 add_to_ored_words (0.25);
25399 add_to_ored_words (0.5);
25400 add_to_ored_words (1.0);
25401 add_to_ored_words (2.0);
25402 add_to_ored_words (4.0);
25403 /* Remove bits that are common (e.g. if representation of the first mantissa
25404 bit is explicit). */
25405 for (j = 0; j < NWORDS; j++)
25406 ored_words[j] &= ~anded_words[j];
25407 /* Now find the nonzero word. */
25408 for (j = 0; j < NWORDS; j++)
25409 if (ored_words[j] != 0)
25410 break;
25411 if (j < NWORDS)
25412 {
25413 size_t i;
25414 for (i = j + 1; i < NWORDS; i++)
25415 if (ored_words[i] != 0)
25416 {
25417 fprintf (fp, "unknown");
25418 return (fclose (fp) != 0);
25419 }
25420 for (i = 0; ; i++)
25421 if ((ored_words[j] >> i) & 1)
25422 {
25423 fprintf (fp, "word %d bit %d", (int) j, (int) i);
25424 return (fclose (fp) != 0);
25425 }
25426 }
25427 fprintf (fp, "unknown");
25428 return (fclose (fp) != 0);
25429 }
25430
25431 _ACEOF
25432 if ac_fn_c_try_run "$LINENO"
25433 then :
25434 gl_cv_cc_double_expbit0=`cat conftest.out`
25435 else $as_nop
25436 gl_cv_cc_double_expbit0="unknown"
25437 fi
25438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25439 conftest.$ac_objext conftest.beam conftest.$ac_ext
25440 fi
25441
25442 rm -f conftest.out
25443
25444 fi
25445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
25446 printf "%s\n" "$gl_cv_cc_double_expbit0" >&6; }
25447 case "$gl_cv_cc_double_expbit0" in
25448 word*bit*)
25449 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
25450 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
25451
25452 printf "%s\n" "#define DBL_EXPBIT0_WORD $word" >>confdefs.h
25453
25454
25455 printf "%s\n" "#define DBL_EXPBIT0_BIT $bit" >>confdefs.h
25456
25457 ;;
25458 esac
25459
25460
25461
25462
25463
25464
25465
25466
25467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
25468 printf %s "checking whether snprintf returns a byte count as in C99... " >&6; }
25469 if test ${gl_cv_func_snprintf_retval_c99+y}
25470 then :
25471 printf %s "(cached) " >&6
25472 else $as_nop
25473
25474 if test "$cross_compiling" = yes
25475 then :
25476 case "$host_os" in
25477 # Guess yes on glibc systems.
25478 *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
25479 # Guess yes on musl systems.
25480 *-musl*) gl_cv_func_snprintf_retval_c99="guessing yes";;
25481 # Guess yes on FreeBSD >= 5.
25482 freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";;
25483 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
25484 midnightbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
25485 # Guess yes on Mac OS X >= 10.3.
25486 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
25487 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
25488 # Guess yes on OpenBSD >= 3.9.
25489 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
25490 gl_cv_func_snprintf_retval_c99="guessing no";;
25491 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
25492 # Guess yes on Solaris >= 2.10.
25493 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
25494 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
25495 # Guess yes on AIX >= 4.
25496 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
25497 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
25498 # Guess yes on NetBSD >= 3.
25499 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
25500 gl_cv_func_snprintf_retval_c99="guessing no";;
25501 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
25502 # Guess yes on BeOS.
25503 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
25504 # Guess yes on Android.
25505 linux*-android*) gl_cv_func_snprintf_retval_c99="guessing yes";;
25506 # Guess yes on MSVC, no on mingw.
25507 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25508 /* end confdefs.h. */
25509
25510 #ifdef _MSC_VER
25511 Known
25512 #endif
25513
25514 _ACEOF
25515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25516 $EGREP "Known" >/dev/null 2>&1
25517 then :
25518 gl_cv_func_snprintf_retval_c99="guessing yes"
25519 else $as_nop
25520 gl_cv_func_snprintf_retval_c99="guessing no"
25521 fi
25522 rm -rf conftest*
25523
25524 ;;
25525 # If we don't know, obey --enable-cross-guesses.
25526 *) gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";;
25527 esac
25528
25529 else $as_nop
25530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25531 /* end confdefs.h. */
25532
25533 #include <stdio.h>
25534 #include <string.h>
25535 #if HAVE_SNPRINTF
25536 # define my_snprintf snprintf
25537 #else
25538 # include <stdarg.h>
25539 static int my_snprintf (char *buf, int size, const char *format, ...)
25540 {
25541 va_list args;
25542 int ret;
25543 va_start (args, format);
25544 ret = vsnprintf (buf, size, format, args);
25545 va_end (args);
25546 return ret;
25547 }
25548 #endif
25549 static char buf[100];
25550 int main ()
25551 {
25552 strcpy (buf, "ABCDEF");
25553 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
25554 return 1;
25555 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
25556 return 2;
25557 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
25558 return 3;
25559 return 0;
25560 }
25561 _ACEOF
25562 if ac_fn_c_try_run "$LINENO"
25563 then :
25564 gl_cv_func_snprintf_retval_c99=yes
25565 else $as_nop
25566 gl_cv_func_snprintf_retval_c99=no
25567 fi
25568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25569 conftest.$ac_objext conftest.beam conftest.$ac_ext
25570 fi
25571
25572
25573 fi
25574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
25575 printf "%s\n" "$gl_cv_func_snprintf_retval_c99" >&6; }
25576
25577
25578
25579
25580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5
25581 printf %s "checking whether snprintf truncates the result as in C99... " >&6; }
25582 if test ${gl_cv_func_snprintf_truncation_c99+y}
25583 then :
25584 printf %s "(cached) " >&6
25585 else $as_nop
25586
25587 if test "$cross_compiling" = yes
25588 then :
25589
25590 case "$host_os" in
25591 # Guess yes on glibc systems.
25592 *-gnu* | gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
25593 # Guess yes on musl systems.
25594 *-musl*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
25595 # Guess yes on FreeBSD >= 5.
25596 freebsd[1-4].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
25597 freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
25598 midnightbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
25599 # Guess yes on Mac OS X >= 10.3.
25600 darwin[1-6].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
25601 darwin*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
25602 # Guess yes on OpenBSD >= 3.9.
25603 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
25604 gl_cv_func_snprintf_truncation_c99="guessing no";;
25605 openbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
25606 # Guess yes on Solaris >= 2.6.
25607 solaris2.[0-5] | solaris2.[0-5].*)
25608 gl_cv_func_snprintf_truncation_c99="guessing no";;
25609 solaris*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
25610 # Guess yes on AIX >= 4.
25611 aix[1-3]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
25612 aix*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
25613 # Guess yes on HP-UX >= 11.
25614 hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";;
25615 hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
25616 # Guess yes on IRIX >= 6.5.
25617 irix6.5) gl_cv_func_snprintf_truncation_c99="guessing yes";;
25618 # Guess yes on OSF/1 >= 5.
25619 osf[3-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
25620 osf*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
25621 # Guess yes on NetBSD >= 3.
25622 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
25623 gl_cv_func_snprintf_truncation_c99="guessing no";;
25624 netbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
25625 # Guess yes on BeOS.
25626 beos*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
25627 # Guess yes on Android.
25628 linux*-android*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
25629 # Guess no on native Windows.
25630 mingw*) gl_cv_func_snprintf_truncation_c99="guessing no";;
25631 # If we don't know, obey --enable-cross-guesses.
25632 *) gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";;
25633 esac
25634
25635 else $as_nop
25636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25637 /* end confdefs.h. */
25638
25639 #include <stdio.h>
25640 #include <string.h>
25641 #if HAVE_SNPRINTF
25642 # define my_snprintf snprintf
25643 #else
25644 # include <stdarg.h>
25645 static int my_snprintf (char *buf, int size, const char *format, ...)
25646 {
25647 va_list args;
25648 int ret;
25649 va_start (args, format);
25650 ret = vsnprintf (buf, size, format, args);
25651 va_end (args);
25652 return ret;
25653 }
25654 #endif
25655 static char buf[100];
25656 int main ()
25657 {
25658 strcpy (buf, "ABCDEF");
25659 my_snprintf (buf, 3, "%d %d", 4567, 89);
25660 if (memcmp (buf, "45\0DEF", 6) != 0)
25661 return 1;
25662 return 0;
25663 }
25664 _ACEOF
25665 if ac_fn_c_try_run "$LINENO"
25666 then :
25667 gl_cv_func_snprintf_truncation_c99=yes
25668 else $as_nop
25669 gl_cv_func_snprintf_truncation_c99=no
25670 fi
25671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25672 conftest.$ac_objext conftest.beam conftest.$ac_ext
25673 fi
25674
25675
25676 fi
25677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5
25678 printf "%s\n" "$gl_cv_func_snprintf_truncation_c99" >&6; }
25679
25680
25681
25682
25683
25684 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
25685 if test "x$ac_cv_func_snprintf" = xyes
25686 then :
25687 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
25688
25689 fi
25690 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
25691 if test "x$ac_cv_func_strnlen" = xyes
25692 then :
25693 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
25694
25695 fi
25696 ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
25697 if test "x$ac_cv_func_wcslen" = xyes
25698 then :
25699 printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
25700
25701 fi
25702 ac_fn_c_check_func "$LINENO" "wcsnlen" "ac_cv_func_wcsnlen"
25703 if test "x$ac_cv_func_wcsnlen" = xyes
25704 then :
25705 printf "%s\n" "#define HAVE_WCSNLEN 1" >>confdefs.h
25706
25707 fi
25708 ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
25709 if test "x$ac_cv_func_mbrtowc" = xyes
25710 then :
25711 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
25712
25713 fi
25714 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
25715 if test "x$ac_cv_func_wcrtomb" = xyes
25716 then :
25717 printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
25718
25719 fi
25720
25721 ac_fn_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
25722 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25723 if test "x$ac_cv_have_decl__snprintf" = xyes
25724 then :
25725 ac_have_decl=1
25726 else $as_nop
25727 ac_have_decl=0
25728 fi
25729 printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h
25730
25731
25732
25733 case "$gl_cv_func_snprintf_retval_c99" in
25734 *yes)
25735
25736 printf "%s\n" "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
25737
25738 ;;
25739 esac
25740
25741 case "$gl_cv_func_snprintf_truncation_c99" in
25742 *yes)
25743
25744 printf "%s\n" "#define HAVE_SNPRINTF_TRUNCATION_C99 1" >>confdefs.h
25745
25746 ;;
25747 esac
25748
25749
25750
25751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
25752 printf %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
25753 if test ${gl_cv_header_wchar_h_correct_inline+y}
25754 then :
25755 printf %s "(cached) " >&6
25756 else $as_nop
25757 gl_cv_header_wchar_h_correct_inline=yes
25758 case "$host_os" in
25759 *-gnu* | gnu*)
25760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25761 /* end confdefs.h. */
25762
25763
25764 #define wcstod renamed_wcstod
25765 #include <wchar.h>
25766 extern int zero (void);
25767 int main () { return zero(); }
25768
25769 _ACEOF
25770 saved_ac_compile="$ac_compile"
25771 ac_compile=`echo "$saved_ac_compile" | sed s/conftest/conftest1/`
25772 if echo '#include "conftest.c"' >conftest1.c \
25773 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25774 (eval $ac_compile) 2>&5
25775 ac_status=$?
25776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25777 test $ac_status = 0; }; then
25778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25779 /* end confdefs.h. */
25780
25781
25782 #define wcstod renamed_wcstod
25783 #include <wchar.h>
25784 int zero (void) { return 0; }
25785
25786 _ACEOF
25787 ac_compile=`echo "$saved_ac_compile" | sed s/conftest/conftest2/`
25788 if echo '#include "conftest.c"' >conftest2.c \
25789 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25790 (eval $ac_compile) 2>&5
25791 ac_status=$?
25792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25793 test $ac_status = 0; }; then
25794 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
25795 :
25796 else
25797 gl_cv_header_wchar_h_correct_inline=no
25798 fi
25799 fi
25800 fi
25801 ac_compile="$saved_ac_compile"
25802 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
25803 ;;
25804 esac
25805
25806 fi
25807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
25808 printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; }
25809 if test $gl_cv_header_wchar_h_correct_inline = no; then
25810 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
25811 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
25812 C99 mode. You have four options:
25813 - Add the flag -fgnu89-inline to CC and reconfigure, or
25814 - Fix your include files, using parts of
25815 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
25816 - Use a gcc version older than 4.3, or
25817 - Don't use the flags -std=c99 or -std=gnu99.
25818 Configuration aborted." "$LINENO" 5
25819 fi
25820
25821
25822
25823
25824 if test $ac_cv_header_crtdefs_h = yes; then
25825 HAVE_CRTDEFS_H=1
25826 else
25827 HAVE_CRTDEFS_H=0
25828 fi
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843 if test $gl_cv_have_include_next = yes; then
25844 gl_cv_next_wchar_h='<'wchar.h'>'
25845 else
25846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
25847 printf %s "checking absolute name of <wchar.h>... " >&6; }
25848 if test ${gl_cv_next_wchar_h+y}
25849 then :
25850 printf %s "(cached) " >&6
25851 else $as_nop
25852
25853 if test $ac_cv_header_wchar_h = yes; then
25854
25855
25856
25857
25858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25859 /* end confdefs.h. */
25860 #include <wchar.h>
25861 _ACEOF
25862 case "$host_os" in
25863 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25864 *) gl_absname_cpp="$ac_cpp" ;;
25865 esac
25866
25867 case "$host_os" in
25868 mingw*)
25869 gl_dirsep_regex='[/\\]'
25870 ;;
25871 *)
25872 gl_dirsep_regex='\/'
25873 ;;
25874 esac
25875 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25876 gl_header_literal_regex=`echo 'wchar.h' \
25877 | sed -e "$gl_make_literal_regex_sed"`
25878 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25879 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25880 s|^/[^/]|//&|
25881 p
25882 q
25883 }'
25884
25885 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25886 sed -n "$gl_absolute_header_sed"`
25887
25888 gl_header=$gl_cv_absolute_wchar_h
25889 gl_cv_next_wchar_h='"'$gl_header'"'
25890 else
25891 gl_cv_next_wchar_h='<'wchar.h'>'
25892 fi
25893
25894
25895 fi
25896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
25897 printf "%s\n" "$gl_cv_next_wchar_h" >&6; }
25898 fi
25899 NEXT_WCHAR_H=$gl_cv_next_wchar_h
25900
25901 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25902 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25903 gl_next_as_first_directive='<'wchar.h'>'
25904 else
25905 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25906 gl_next_as_first_directive=$gl_cv_next_wchar_h
25907 fi
25908 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
25909
25910
25911
25912
25913 if test $ac_cv_header_wchar_h = yes; then
25914 HAVE_WCHAR_H=1
25915 else
25916 HAVE_WCHAR_H=0
25917 fi
25918
25919
25920
25921
25922
25923 if test $gt_cv_c_wint_t = yes; then
25924 HAVE_WINT_T=1
25925 else
25926 HAVE_WINT_T=0
25927 fi
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937
25938 ac_fn_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" "
25939 #include <wchar.h>
25940
25941 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25942 if test "x$ac_cv_have_decl_wcsdup" = xyes
25943 then :
25944 ac_have_decl=1
25945 else $as_nop
25946 ac_have_decl=0
25947 fi
25948 printf "%s\n" "#define HAVE_DECL_WCSDUP $ac_have_decl" >>confdefs.h
25949
25950 if test $ac_cv_have_decl_wcsdup = no; then
25951 HAVE_DECL_WCSDUP=0
25952 fi
25953
25954
25955 HAVE_ISWBLANK=1;
25956 HAVE_WCTYPE_T=1;
25957 HAVE_WCTRANS_T=1;
25958 REPLACE_ISWBLANK=0;
25959 REPLACE_ISWDIGIT=0;
25960 REPLACE_ISWXDIGIT=0;
25961
25962
25963
25964
25965
25966
25967
25968
25969 if test $ac_cv_func_iswcntrl = yes; then
25970 HAVE_ISWCNTRL=1
25971 else
25972 HAVE_ISWCNTRL=0
25973 fi
25974
25975
25976
25977 if test $gt_cv_c_wint_t = yes; then
25978 HAVE_WINT_T=1
25979 else
25980 HAVE_WINT_T=0
25981 fi
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995 if test $gl_cv_have_include_next = yes; then
25996 gl_cv_next_wctype_h='<'wctype.h'>'
25997 else
25998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
25999 printf %s "checking absolute name of <wctype.h>... " >&6; }
26000 if test ${gl_cv_next_wctype_h+y}
26001 then :
26002 printf %s "(cached) " >&6
26003 else $as_nop
26004
26005 if test $ac_cv_header_wctype_h = yes; then
26006
26007
26008
26009
26010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26011 /* end confdefs.h. */
26012 #include <wctype.h>
26013 _ACEOF
26014 case "$host_os" in
26015 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26016 *) gl_absname_cpp="$ac_cpp" ;;
26017 esac
26018
26019 case "$host_os" in
26020 mingw*)
26021 gl_dirsep_regex='[/\\]'
26022 ;;
26023 *)
26024 gl_dirsep_regex='\/'
26025 ;;
26026 esac
26027 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26028 gl_header_literal_regex=`echo 'wctype.h' \
26029 | sed -e "$gl_make_literal_regex_sed"`
26030 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26031 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26032 s|^/[^/]|//&|
26033 p
26034 q
26035 }'
26036
26037 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26038 sed -n "$gl_absolute_header_sed"`
26039
26040 gl_header=$gl_cv_absolute_wctype_h
26041 gl_cv_next_wctype_h='"'$gl_header'"'
26042 else
26043 gl_cv_next_wctype_h='<'wctype.h'>'
26044 fi
26045
26046
26047 fi
26048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
26049 printf "%s\n" "$gl_cv_next_wctype_h" >&6; }
26050 fi
26051 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
26052
26053 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26054 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26055 gl_next_as_first_directive='<'wctype.h'>'
26056 else
26057 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26058 gl_next_as_first_directive=$gl_cv_next_wctype_h
26059 fi
26060 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
26061
26062
26063
26064
26065 if test $ac_cv_header_wctype_h = yes; then
26066 if test $ac_cv_func_iswcntrl = yes; then
26067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
26068 printf %s "checking whether iswcntrl works... " >&6; }
26069 if test ${gl_cv_func_iswcntrl_works+y}
26070 then :
26071 printf %s "(cached) " >&6
26072 else $as_nop
26073
26074 if test "$cross_compiling" = yes
26075 then :
26076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26077 /* end confdefs.h. */
26078 #include <stdlib.h>
26079 #if __GNU_LIBRARY__ == 1
26080 Linux libc5 i18n is broken.
26081 #endif
26082 int
26083 main (void)
26084 {
26085
26086 ;
26087 return 0;
26088 }
26089 _ACEOF
26090 if ac_fn_c_try_compile "$LINENO"
26091 then :
26092 gl_cv_func_iswcntrl_works="guessing yes"
26093 else $as_nop
26094 gl_cv_func_iswcntrl_works="guessing no"
26095 fi
26096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26097
26098 else $as_nop
26099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26100 /* end confdefs.h. */
26101
26102 #include <wchar.h>
26103 #include <wctype.h>
26104 int main () { return iswprint ('x') == 0; }
26105
26106 _ACEOF
26107 if ac_fn_c_try_run "$LINENO"
26108 then :
26109 gl_cv_func_iswcntrl_works=yes
26110 else $as_nop
26111 gl_cv_func_iswcntrl_works=no
26112 fi
26113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26114 conftest.$ac_objext conftest.beam conftest.$ac_ext
26115 fi
26116
26117
26118 fi
26119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
26120 printf "%s\n" "$gl_cv_func_iswcntrl_works" >&6; }
26121 fi
26122 HAVE_WCTYPE_H=1
26123 else
26124 HAVE_WCTYPE_H=0
26125 fi
26126
26127
26128 if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
26129 REPLACE_ISWCNTRL=1
26130 else
26131 case "$gl_cv_func_iswcntrl_works" in
26132 *yes) REPLACE_ISWCNTRL=0 ;;
26133 *) REPLACE_ISWCNTRL=1 ;;
26134 esac
26135 fi
26136
26137
26138 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
26139 :
26140 fi
26141
26142 if test $REPLACE_ISWCNTRL = 1; then
26143 REPLACE_TOWLOWER=1
26144 else
26145 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
26146 if test "x$ac_cv_func_towlower" = xyes
26147 then :
26148 printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h
26149
26150 fi
26151
26152 if test $ac_cv_func_towlower = yes; then
26153 REPLACE_TOWLOWER=0
26154 else
26155 ac_fn_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "#include <wchar.h>
26156 #if HAVE_WCTYPE_H
26157 # include <wctype.h>
26158 #endif
26159
26160 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26161 if test "x$ac_cv_have_decl_towlower" = xyes
26162 then :
26163 ac_have_decl=1
26164 else $as_nop
26165 ac_have_decl=0
26166 fi
26167 printf "%s\n" "#define HAVE_DECL_TOWLOWER $ac_have_decl" >>confdefs.h
26168
26169 if test $ac_cv_have_decl_towlower = yes; then
26170 REPLACE_TOWLOWER=1
26171 else
26172 REPLACE_TOWLOWER=0
26173 fi
26174 fi
26175 fi
26176
26177
26178 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
26179 :
26180 fi
26181
26182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
26183 printf %s "checking for wctype_t... " >&6; }
26184 if test ${gl_cv_type_wctype_t+y}
26185 then :
26186 printf %s "(cached) " >&6
26187 else $as_nop
26188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26189 /* end confdefs.h. */
26190 #include <wchar.h>
26191 #if HAVE_WCTYPE_H
26192 # include <wctype.h>
26193 #endif
26194 wctype_t a;
26195
26196 int
26197 main (void)
26198 {
26199
26200 ;
26201 return 0;
26202 }
26203 _ACEOF
26204 if ac_fn_c_try_compile "$LINENO"
26205 then :
26206 gl_cv_type_wctype_t=yes
26207 else $as_nop
26208 gl_cv_type_wctype_t=no
26209 fi
26210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26211
26212 fi
26213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
26214 printf "%s\n" "$gl_cv_type_wctype_t" >&6; }
26215 if test $gl_cv_type_wctype_t = no; then
26216 HAVE_WCTYPE_T=0
26217 fi
26218
26219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
26220 printf %s "checking for wctrans_t... " >&6; }
26221 if test ${gl_cv_type_wctrans_t+y}
26222 then :
26223 printf %s "(cached) " >&6
26224 else $as_nop
26225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26226 /* end confdefs.h. */
26227 #include <wchar.h>
26228 #include <wctype.h>
26229 wctrans_t a;
26230
26231 int
26232 main (void)
26233 {
26234
26235 ;
26236 return 0;
26237 }
26238 _ACEOF
26239 if ac_fn_c_try_compile "$LINENO"
26240 then :
26241 gl_cv_type_wctrans_t=yes
26242 else $as_nop
26243 gl_cv_type_wctrans_t=no
26244 fi
26245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26246
26247 fi
26248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
26249 printf "%s\n" "$gl_cv_type_wctrans_t" >&6; }
26250 if test $gl_cv_type_wctrans_t = no; then
26251 HAVE_WCTRANS_T=0
26252 fi
26253
26254
26255
26256
26257
26258
26259
26260 GL_GL_PAPER_GNULIB_ISWBLANK=0
26261
26262
26263
26264 GL_GL_PAPER_GNULIB_ISWDIGIT=0
26265
26266
26267
26268 GL_GL_PAPER_GNULIB_ISWXDIGIT=0
26269
26270
26271
26272 GL_GL_PAPER_GNULIB_WCTYPE=0
26273
26274
26275
26276 GL_GL_PAPER_GNULIB_ISWCTYPE=0
26277
26278
26279
26280 GL_GL_PAPER_GNULIB_WCTRANS=0
26281
26282
26283
26284 GL_GL_PAPER_GNULIB_TOWCTRANS=0
26285
26286
26287
26288
26289 if true; then
26290 GL_COND_LIBTOOL_TRUE=
26291 GL_COND_LIBTOOL_FALSE='#'
26292 else
26293 GL_COND_LIBTOOL_TRUE='#'
26294 GL_COND_LIBTOOL_FALSE=
26295 fi
26296
26297 gl_cond_libtool=true
26298 gl_m4_base='src/m4'
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311 gl_source_base='src/libgnu'
26312 gl_source_base_prefix=
26313
26314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alignas and alignof" >&5
26315 printf %s "checking for alignas and alignof... " >&6; }
26316 if test ${gl_cv_header_working_stdalign_h+y}
26317 then :
26318 printf %s "(cached) " >&6
26319 else $as_nop
26320 gl_save_CFLAGS=$CFLAGS
26321 for gl_working in "yes, keywords" "yes, <stdalign.h> macros"; do
26322 case $gl_working in #(
26323 *stdalign.h*) :
26324 CFLAGS="$gl_save_CFLAGS -DINCLUDE_STDALIGN_H" ;; #(
26325 *) :
26326 ;;
26327 esac
26328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26329 /* end confdefs.h. */
26330 #include <stdint.h>
26331 #ifdef INCLUDE_STDALIGN_H
26332 #include <stdalign.h>
26333 #endif
26334 #include <stddef.h>
26335
26336 /* Test that alignof yields a result consistent with offsetof.
26337 This catches GCC bug 52023
26338 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26339 #ifdef __cplusplus
26340 template <class t> struct alignof_helper { char a; t b; };
26341 # define ao(type) offsetof (alignof_helper<type>, b)
26342 #else
26343 # define ao(type) offsetof (struct { char a; type b; }, b)
26344 #endif
26345 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26346 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26347 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26348
26349 /* Test alignas only on platforms where gnulib can help. */
26350 #if \
26351 ((defined __cplusplus && 201103 <= __cplusplus) \
26352 || (__TINYC__ && defined __attribute__) \
26353 || (defined __APPLE__ && defined __MACH__ \
26354 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
26355 : __GNUC__) \
26356 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
26357 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
26358 || 1300 <= _MSC_VER)
26359 struct alignas_test { char c; char alignas (8) alignas_8; };
26360 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26361 ? 1 : -1];
26362 #endif
26363
26364 int
26365 main (void)
26366 {
26367
26368 ;
26369 return 0;
26370 }
26371 _ACEOF
26372 if ac_fn_c_try_compile "$LINENO"
26373 then :
26374 gl_cv_header_working_stdalign_h=$gl_working
26375 else $as_nop
26376 gl_cv_header_working_stdalign_h=no
26377 fi
26378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26379
26380 CFLAGS=$gl_save_CFLAGS
26381 test "$gl_cv_header_working_stdalign_h" != no && break
26382 done
26383 fi
26384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26385 printf "%s\n" "$gl_cv_header_working_stdalign_h" >&6; }
26386
26387 case $gl_cv_header_working_stdalign_h in #(
26388 yes*keyword*) :
26389
26390 printf "%s\n" "#define HAVE_C_ALIGNASOF 1" >>confdefs.h
26391 ;; #(
26392 *) :
26393 ;;
26394 esac
26395
26396
26397
26398
26399
26400 if test $ac_cv_func_alloca_works = no; then
26401 :
26402 fi
26403
26404 # Define an additional variable used in the Makefile substitution.
26405 if test $ac_cv_working_alloca_h = yes; then
26406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
26407 printf %s "checking for alloca as a compiler built-in... " >&6; }
26408 if test ${gl_cv_rpl_alloca+y}
26409 then :
26410 printf %s "(cached) " >&6
26411 else $as_nop
26412
26413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26414 /* end confdefs.h. */
26415
26416 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
26417 Need own alloca
26418 #endif
26419
26420 _ACEOF
26421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26422 $EGREP "Need own alloca" >/dev/null 2>&1
26423 then :
26424 gl_cv_rpl_alloca=yes
26425 else $as_nop
26426 gl_cv_rpl_alloca=no
26427 fi
26428 rm -rf conftest*
26429
26430
26431 fi
26432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
26433 printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
26434 if test $gl_cv_rpl_alloca = yes; then
26435
26436 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
26437
26438 GL_GENERATE_ALLOCA_H=true
26439 else
26440 GL_GENERATE_ALLOCA_H=false
26441 fi
26442 else
26443 GL_GENERATE_ALLOCA_H=true
26444 fi
26445
26446 if test $ac_cv_working_alloca_h = yes; then
26447 HAVE_ALLOCA_H=1
26448 else
26449 HAVE_ALLOCA_H=0
26450 fi
26451
26452
26453
26454
26455
26456
26457 case "$GL_GENERATE_ALLOCA_H" in
26458 false) ALLOCA_H='' ;;
26459 true)
26460 if test -z "$ALLOCA_H"; then
26461 ALLOCA_H="${gl_source_base_prefix}alloca.h"
26462 fi
26463 ;;
26464 *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;;
26465 esac
26466
26467
26468 if $GL_GENERATE_ALLOCA_H; then
26469 GL_GENERATE_ALLOCA_H_TRUE=
26470 GL_GENERATE_ALLOCA_H_FALSE='#'
26471 else
26472 GL_GENERATE_ALLOCA_H_TRUE='#'
26473 GL_GENERATE_ALLOCA_H_FALSE=
26474 fi
26475 :
26476 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
26477 GL_GENERATE_ALLOCA_H_TRUE='#'
26478 GL_GENERATE_ALLOCA_H_FALSE='#'
26479 fi
26480
26481
26482
26483
26484
26485
26486
26487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static_assert" >&5
26488 printf %s "checking for static_assert... " >&6; }
26489 if test ${gl_cv_static_assert+y}
26490 then :
26491 printf %s "(cached) " >&6
26492 else $as_nop
26493 gl_save_CFLAGS=$CFLAGS
26494 for gl_working in "yes, a keyword" "yes, an <assert.h> macro"; do
26495 case $gl_working in #(
26496 *assert.h*) :
26497 CFLAGS="$gl_save_CFLAGS -DINCLUDE_ASSERT_H" ;; #(
26498 *) :
26499 ;;
26500 esac
26501
26502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26503 /* end confdefs.h. */
26504 #if defined __clang__ && __STDC_VERSION__ < 202311
26505 #pragma clang diagnostic error "-Wc2x-extensions"
26506 #pragma clang diagnostic error "-Wc++1z-extensions"
26507 #endif
26508 #ifdef INCLUDE_ASSERT_H
26509 #include <assert.h>
26510 #endif
26511 static_assert (2 + 2 == 4, "arithmetic does not work");
26512 static_assert (2 + 2 == 4);
26513
26514 int
26515 main (void)
26516 {
26517
26518 static_assert (sizeof (char) == 1, "sizeof does not work");
26519 static_assert (sizeof (char) == 1);
26520
26521 ;
26522 return 0;
26523 }
26524 _ACEOF
26525 if ac_fn_c_try_compile "$LINENO"
26526 then :
26527 gl_cv_static_assert=$gl_working
26528 else $as_nop
26529 gl_cv_static_assert=no
26530 fi
26531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26532 CFLAGS=$gl_save_CFLAGS
26533 test "$gl_cv_static_assert" != no && break
26534 done
26535 fi
26536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_static_assert" >&5
26537 printf "%s\n" "$gl_cv_static_assert" >&6; }
26538
26539 GL_GENERATE_ASSERT_H=false
26540 case $gl_cv_static_assert in #(
26541 yes*keyword*) :
26542
26543 printf "%s\n" "#define HAVE_C_STATIC_ASSERT 1" >>confdefs.h
26544 ;; #(
26545 no) :
26546 GL_GENERATE_ASSERT_H=true
26547
26548
26549
26550
26551
26552
26553
26554
26555 if test $gl_cv_have_include_next = yes; then
26556 gl_cv_next_assert_h='<'assert.h'>'
26557 else
26558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <assert.h>" >&5
26559 printf %s "checking absolute name of <assert.h>... " >&6; }
26560 if test ${gl_cv_next_assert_h+y}
26561 then :
26562 printf %s "(cached) " >&6
26563 else $as_nop
26564
26565
26566
26567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26568 /* end confdefs.h. */
26569 #include <assert.h>
26570 _ACEOF
26571 case "$host_os" in
26572 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26573 *) gl_absname_cpp="$ac_cpp" ;;
26574 esac
26575
26576 case "$host_os" in
26577 mingw*)
26578 gl_dirsep_regex='[/\\]'
26579 ;;
26580 *)
26581 gl_dirsep_regex='\/'
26582 ;;
26583 esac
26584 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26585 gl_header_literal_regex=`echo 'assert.h' \
26586 | sed -e "$gl_make_literal_regex_sed"`
26587 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26588 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26589 s|^/[^/]|//&|
26590 p
26591 q
26592 }'
26593
26594 gl_cv_absolute_assert_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26595 sed -n "$gl_absolute_header_sed"`
26596
26597 gl_header=$gl_cv_absolute_assert_h
26598 gl_cv_next_assert_h='"'$gl_header'"'
26599
26600
26601 fi
26602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_assert_h" >&5
26603 printf "%s\n" "$gl_cv_next_assert_h" >&6; }
26604 fi
26605 NEXT_ASSERT_H=$gl_cv_next_assert_h
26606
26607 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26608 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26609 gl_next_as_first_directive='<'assert.h'>'
26610 else
26611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26612 gl_next_as_first_directive=$gl_cv_next_assert_h
26613 fi
26614 NEXT_AS_FIRST_DIRECTIVE_ASSERT_H=$gl_next_as_first_directive
26615
26616
26617
26618 ;; #(
26619 *) :
26620 ;;
26621 esac
26622
26623
26624
26625
26626
26627
26628
26629 case "$GL_GENERATE_ASSERT_H" in
26630 false) ASSERT_H='' ;;
26631 true)
26632 if test -z "$ASSERT_H"; then
26633 ASSERT_H="${gl_source_base_prefix}assert.h"
26634 fi
26635 ;;
26636 *) echo "*** GL_GENERATE_ASSERT_H is not set correctly" 1>&2; exit 1 ;;
26637 esac
26638
26639
26640 if $GL_GENERATE_ASSERT_H; then
26641 GL_GENERATE_ASSERT_H_TRUE=
26642 GL_GENERATE_ASSERT_H_FALSE='#'
26643 else
26644 GL_GENERATE_ASSERT_H_TRUE='#'
26645 GL_GENERATE_ASSERT_H_FALSE=
26646 fi
26647 :
26648 if test -z "${GL_GENERATE_ASSERT_H_TRUE}" && test -z "${GL_GENERATE_ASSERT_H_FALSE}"; then
26649 GL_GENERATE_ASSERT_H_TRUE='#'
26650 GL_GENERATE_ASSERT_H_FALSE='#'
26651 fi
26652
26653
26654
26655
26656
26657
26658
26659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
26660 printf %s "checking for __builtin_expect... " >&6; }
26661 if test ${gl_cv___builtin_expect+y}
26662 then :
26663 printf %s "(cached) " >&6
26664 else $as_nop
26665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26666 /* end confdefs.h. */
26667
26668 int
26669 main (int argc, char **argv)
26670 {
26671 argc = __builtin_expect (argc, 100);
26672 return argv[argc != 100][0];
26673 }
26674 _ACEOF
26675 if ac_fn_c_try_link "$LINENO"
26676 then :
26677 gl_cv___builtin_expect=yes
26678 else $as_nop
26679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26680 /* end confdefs.h. */
26681
26682 #include <builtins.h>
26683 int
26684 main (int argc, char **argv)
26685 {
26686 argc = __builtin_expect (argc, 100);
26687 return argv[argc != 100][0];
26688 }
26689 _ACEOF
26690 if ac_fn_c_try_link "$LINENO"
26691 then :
26692 gl_cv___builtin_expect="in <builtins.h>"
26693 else $as_nop
26694 gl_cv___builtin_expect=no
26695 fi
26696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26697 conftest$ac_exeext conftest.$ac_ext
26698 fi
26699 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26700 conftest$ac_exeext conftest.$ac_ext
26701 fi
26702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
26703 printf "%s\n" "$gl_cv___builtin_expect" >&6; }
26704 if test "$gl_cv___builtin_expect" = yes; then
26705 printf "%s\n" "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
26706
26707 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
26708 printf "%s\n" "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
26709
26710 fi
26711
26712
26713
26714
26715
26716 REPLACE_CALLOC_FOR_CALLOC_GNU="$REPLACE_CALLOC_FOR_CALLOC_POSIX"
26717 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 0; then
26718
26719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether calloc (0, n) and calloc (n, 0) return nonnull" >&5
26720 printf %s "checking whether calloc (0, n) and calloc (n, 0) return nonnull... " >&6; }
26721 if test ${ac_cv_func_calloc_0_nonnull+y}
26722 then :
26723 printf %s "(cached) " >&6
26724 else $as_nop
26725 if test $cross_compiling != yes; then
26726 ac_cv_func_calloc_0_nonnull=yes
26727 if test "$cross_compiling" = yes
26728 then :
26729 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26730 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
26731 as_fn_error $? "cannot run test program while cross compiling
26732 See \`config.log' for more details" "$LINENO" 5; }
26733 else $as_nop
26734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26735 /* end confdefs.h. */
26736 $ac_includes_default
26737 int
26738 main (void)
26739 {
26740 int result = 0;
26741 char * volatile p = calloc (0, 0);
26742 if (!p)
26743 result |= 1;
26744 free (p);
26745 return result;
26746
26747 ;
26748 return 0;
26749 }
26750 _ACEOF
26751 if ac_fn_c_try_run "$LINENO"
26752 then :
26753
26754 else $as_nop
26755 ac_cv_func_calloc_0_nonnull=no
26756 fi
26757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26758 conftest.$ac_objext conftest.beam conftest.$ac_ext
26759 fi
26760
26761 else
26762 case "$host_os" in
26763 # Guess yes on glibc systems.
26764 *-gnu* | gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
26765 # Guess yes on musl systems.
26766 *-musl*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
26767 # Guess yes on native Windows.
26768 mingw*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
26769 # If we don't know, obey --enable-cross-guesses.
26770 *) ac_cv_func_calloc_0_nonnull="$gl_cross_guess_normal" ;;
26771 esac
26772 fi
26773
26774 fi
26775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_calloc_0_nonnull" >&5
26776 printf "%s\n" "$ac_cv_func_calloc_0_nonnull" >&6; }
26777 case $ac_cv_func_calloc_0_nonnull in #(
26778 *yes) :
26779 ;; #(
26780 *) :
26781 REPLACE_CALLOC_FOR_CALLOC_GNU=1 ;;
26782 esac
26783
26784 fi
26785
26786 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then
26787
26788
26789
26790
26791
26792
26793
26794
26795 gl_paper_LIBOBJS="$gl_paper_LIBOBJS calloc.$ac_objext"
26796
26797 fi
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807 GL_GL_PAPER_GNULIB_CALLOC_GNU=1
26808
26809
26810
26811
26812
26813 printf "%s\n" "#define GNULIB_TEST_CALLOC_GNU 1" >>confdefs.h
26814
26815
26816
26817
26818
26819
26820 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
26821 REPLACE_CALLOC_FOR_CALLOC_POSIX=1
26822 fi
26823
26824 if test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then
26825
26826
26827
26828
26829
26830
26831
26832
26833 gl_paper_LIBOBJS="$gl_paper_LIBOBJS calloc.$ac_objext"
26834
26835 fi
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845 GL_GL_PAPER_GNULIB_CALLOC_POSIX=1
26846
26847
26848
26849
26850
26851 printf "%s\n" "#define GNULIB_TEST_CALLOC_POSIX 1" >>confdefs.h
26852
26853
26854
26855
26856
26857
26858 if test $ac_cv_func_canonicalize_file_name = no; then
26859 HAVE_CANONICALIZE_FILE_NAME=0
26860 if test $ac_cv_func_realpath = no; then
26861 HAVE_REALPATH=0
26862 else
26863 case "$gl_cv_func_realpath_works" in
26864 *yes) ;;
26865 *) REPLACE_REALPATH=1 ;;
26866 esac
26867 fi
26868 else
26869 case "$gl_cv_func_realpath_works" in
26870 *yes)
26871 ;;
26872 *)
26873 REPLACE_CANONICALIZE_FILE_NAME=1
26874 REPLACE_REALPATH=1
26875 ;;
26876 esac
26877 fi
26878
26879
26880 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
26881 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE=
26882 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE='#'
26883 else
26884 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE='#'
26885 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE=
26886 fi
26887 :
26888 if test -z "${GL_COND_OBJ_CANONICALIZE_LGPL_TRUE}" && test -z "${GL_COND_OBJ_CANONICALIZE_LGPL_FALSE}"; then
26889 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE='#'
26890 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE='#'
26891 fi
26892
26893
26894
26895 printf "%s\n" "#define GNULIB_CANONICALIZE_LGPL 1" >>confdefs.h
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907 GL_GL_PAPER_GNULIB_CANONICALIZE_FILE_NAME=1
26908
26909
26910
26911
26912
26913 printf "%s\n" "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924
26925
26926 GL_GL_PAPER_GNULIB_REALPATH=1
26927
26928
26929
26930
26931
26932 printf "%s\n" "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
26933
26934
26935
26936
26937
26938
26939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readlinkat" >&5
26940 printf %s "checking for readlinkat... " >&6; }
26941 if test ${gl_cv_onwards_func_readlinkat+y}
26942 then :
26943 printf %s "(cached) " >&6
26944 else $as_nop
26945
26946 exec 9>&6 6>/dev/null
26947
26948 case "$host_os" in
26949
26950 linux*-android*)
26951 ac_fn_check_decl "$LINENO" "readlinkat" "ac_cv_have_decl_readlinkat" "#include <unistd.h>
26952 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26953 if test "x$ac_cv_have_decl_readlinkat" = xyes
26954 then :
26955
26956 fi
26957 if test $ac_cv_have_decl_readlinkat = yes; then
26958 ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat"
26959 if test "x$ac_cv_func_readlinkat" = xyes
26960 then :
26961
26962 fi
26963
26964 if test $ac_cv_func_readlinkat = yes; then
26965 gl_cv_onwards_func_readlinkat=yes
26966 else
26967 gl_cv_onwards_func_readlinkat='future OS version'
26968 fi
26969 else
26970 gl_cv_onwards_func_readlinkat='future OS version'
26971 fi
26972 ;;
26973
26974
26975 *)
26976 ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat"
26977 if test "x$ac_cv_func_readlinkat" = xyes
26978 then :
26979
26980 fi
26981
26982 gl_cv_onwards_func_readlinkat=$ac_cv_func_readlinkat
26983 ;;
26984
26985 esac
26986
26987 exec 6>&9 9>&-
26988
26989
26990 fi
26991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_readlinkat" >&5
26992 printf "%s\n" "$gl_cv_onwards_func_readlinkat" >&6; }
26993
26994 case "$gl_cv_onwards_func_readlinkat" in
26995 future*) ac_cv_func_readlinkat=no ;;
26996 *) ac_cv_func_readlinkat=$gl_cv_onwards_func_readlinkat ;;
26997 esac
26998 if test $ac_cv_func_readlinkat = yes; then
26999
27000 printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h
27001
27002 fi
27003
27004
27005
27006
27007 printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
27008
27009
27010
27011
27012
27013
27014 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27015 REPLACE_CLOSE=1
27016 fi
27017
27018
27019
27020
27021
27022
27023 if test $ac_cv_header_sys_socket_h != yes; then
27024 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27025 if test "x$ac_cv_header_winsock2_h" = xyes
27026 then :
27027 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
27028
27029 fi
27030
27031 fi
27032 if test "$ac_cv_header_winsock2_h" = yes; then
27033 HAVE_WINSOCK2_H=1
27034 UNISTD_H_HAVE_WINSOCK2_H=1
27035 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27036 else
27037 HAVE_WINSOCK2_H=0
27038 fi
27039
27040
27041 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
27042 REPLACE_CLOSE=1
27043 fi
27044
27045
27046
27047
27048 if test $REPLACE_CLOSE = 1; then
27049 GL_COND_OBJ_CLOSE_TRUE=
27050 GL_COND_OBJ_CLOSE_FALSE='#'
27051 else
27052 GL_COND_OBJ_CLOSE_TRUE='#'
27053 GL_COND_OBJ_CLOSE_FALSE=
27054 fi
27055 :
27056 if test -z "${GL_COND_OBJ_CLOSE_TRUE}" && test -z "${GL_COND_OBJ_CLOSE_FALSE}"; then
27057 GL_COND_OBJ_CLOSE_TRUE='#'
27058 GL_COND_OBJ_CLOSE_FALSE='#'
27059 fi
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070 GL_GL_PAPER_GNULIB_CLOSE=1
27071
27072
27073
27074
27075
27076 printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
27077
27078
27079
27080
27081
27082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
27083 printf %s "checking whether // is distinct from /... " >&6; }
27084 if test ${gl_cv_double_slash_root+y}
27085 then :
27086 printf %s "(cached) " >&6
27087 else $as_nop
27088 if test x"$cross_compiling" = xyes ; then
27089 # When cross-compiling, there is no way to tell whether // is special
27090 # short of a list of hosts. However, the only known hosts to date
27091 # that have a distinct // are Apollo DomainOS (too old to port to),
27092 # Cygwin, and z/OS. If anyone knows of another system for which // has
27093 # special semantics and is distinct from /, please report it to
27094 # <[email protected]>.
27095 case $host in
27096 *-cygwin | i370-ibm-openedition)
27097 gl_cv_double_slash_root=yes ;;
27098 *)
27099 # Be optimistic and assume that / and // are the same when we
27100 # don't know.
27101 gl_cv_double_slash_root='unknown, assuming no' ;;
27102 esac
27103 else
27104 set x `ls -di / // 2>/dev/null`
27105 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
27106 gl_cv_double_slash_root=no
27107 else
27108 gl_cv_double_slash_root=yes
27109 fi
27110 fi
27111 fi
27112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
27113 printf "%s\n" "$gl_cv_double_slash_root" >&6; }
27114 if test "$gl_cv_double_slash_root" = yes; then
27115
27116 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
27117
27118 fi
27119
27120
27121
27122
27123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
27124 printf %s "checking whether dup2 works... " >&6; }
27125 if test ${gl_cv_func_dup2_works+y}
27126 then :
27127 printf %s "(cached) " >&6
27128 else $as_nop
27129 if test "$cross_compiling" = yes
27130 then :
27131 case "$host_os" in
27132 mingw*) # on this platform, dup2 always returns 0 for success
27133 gl_cv_func_dup2_works="guessing no" ;;
27134 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
27135 gl_cv_func_dup2_works="guessing no" ;;
27136 aix* | freebsd*)
27137 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
27138 # not EBADF.
27139 gl_cv_func_dup2_works="guessing no" ;;
27140 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
27141 gl_cv_func_dup2_works="guessing no" ;;
27142 *-android*) # implemented using dup3(), which fails if oldfd == newfd
27143 gl_cv_func_dup2_works="guessing no" ;;
27144 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
27145 gl_cv_func_dup2_works="guessing no" ;;
27146 *) gl_cv_func_dup2_works="guessing yes" ;;
27147 esac
27148 else $as_nop
27149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27150 /* end confdefs.h. */
27151
27152 #include <errno.h>
27153 #include <fcntl.h>
27154 #include <limits.h>
27155 #include <sys/resource.h>
27156 #include <unistd.h>
27157
27158
27159 $gl_mda_defines
27160
27161 #ifndef RLIM_SAVED_CUR
27162 # define RLIM_SAVED_CUR RLIM_INFINITY
27163 #endif
27164 #ifndef RLIM_SAVED_MAX
27165 # define RLIM_SAVED_MAX RLIM_INFINITY
27166 #endif
27167
27168 int
27169 main (void)
27170 {
27171 int result = 0;
27172 int bad_fd = INT_MAX;
27173 struct rlimit rlim;
27174 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
27175 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
27176 && rlim.rlim_cur != RLIM_INFINITY
27177 && rlim.rlim_cur != RLIM_SAVED_MAX
27178 && rlim.rlim_cur != RLIM_SAVED_CUR)
27179 bad_fd = rlim.rlim_cur;
27180 #ifdef FD_CLOEXEC
27181 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
27182 result |= 1;
27183 #endif
27184 if (dup2 (1, 1) != 1)
27185 result |= 2;
27186 #ifdef FD_CLOEXEC
27187 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
27188 result |= 4;
27189 #endif
27190 close (0);
27191 if (dup2 (0, 0) != -1)
27192 result |= 8;
27193 /* Many gnulib modules require POSIX conformance of EBADF. */
27194 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
27195 result |= 16;
27196 /* Flush out some cygwin core dumps. */
27197 if (dup2 (2, -1) != -1 || errno != EBADF)
27198 result |= 32;
27199 dup2 (2, 255);
27200 dup2 (2, 256);
27201 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
27202 {
27203 int fd = open (".", O_RDONLY);
27204 if (fd == -1)
27205 result |= 64;
27206 else if (dup2 (fd, fd + 1) == -1)
27207 result |= 128;
27208 close (fd);
27209 }
27210 return result;
27211 ;
27212 return 0;
27213 }
27214
27215 _ACEOF
27216 if ac_fn_c_try_run "$LINENO"
27217 then :
27218 gl_cv_func_dup2_works=yes
27219 else $as_nop
27220 gl_cv_func_dup2_works=no
27221 fi
27222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27223 conftest.$ac_objext conftest.beam conftest.$ac_ext
27224 fi
27225
27226
27227 fi
27228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
27229 printf "%s\n" "$gl_cv_func_dup2_works" >&6; }
27230 case "$gl_cv_func_dup2_works" in
27231 *yes) ;;
27232 *)
27233 REPLACE_DUP2=1
27234 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
27235 if test "x$ac_cv_func_setdtablesize" = xyes
27236 then :
27237 printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h
27238
27239 fi
27240
27241 ;;
27242 esac
27243
27244
27245
27246 if test $REPLACE_DUP2 = 1; then
27247 GL_COND_OBJ_DUP2_TRUE=
27248 GL_COND_OBJ_DUP2_FALSE='#'
27249 else
27250 GL_COND_OBJ_DUP2_TRUE='#'
27251 GL_COND_OBJ_DUP2_FALSE=
27252 fi
27253 :
27254 if test -z "${GL_COND_OBJ_DUP2_TRUE}" && test -z "${GL_COND_OBJ_DUP2_FALSE}"; then
27255 GL_COND_OBJ_DUP2_TRUE='#'
27256 GL_COND_OBJ_DUP2_FALSE='#'
27257 fi
27258
27259 if test -z "$GL_COND_OBJ_DUP2_TRUE"; then :
27260
27261
27262
27263 fi
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273 GL_GL_PAPER_GNULIB_DUP2=1
27274
27275
27276
27277
27278
27279 printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h
27280
27281
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291
27292
27293 GL_GL_PAPER_GNULIB_ENVIRON=1
27294
27295
27296
27297
27298
27299 printf "%s\n" "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
27300
27301
27302
27303
27304
27305
27306
27307
27308 case "$GL_GENERATE_ERRNO_H" in
27309 false) ERRNO_H='' ;;
27310 true)
27311 if test -z "$ERRNO_H"; then
27312 ERRNO_H="${gl_source_base_prefix}errno.h"
27313 fi
27314 ;;
27315 *) echo "*** GL_GENERATE_ERRNO_H is not set correctly" 1>&2; exit 1 ;;
27316 esac
27317
27318
27319 if $GL_GENERATE_ERRNO_H; then
27320 GL_GENERATE_ERRNO_H_TRUE=
27321 GL_GENERATE_ERRNO_H_FALSE='#'
27322 else
27323 GL_GENERATE_ERRNO_H_TRUE='#'
27324 GL_GENERATE_ERRNO_H_FALSE=
27325 fi
27326 :
27327 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
27328 GL_GENERATE_ERRNO_H_TRUE='#'
27329 GL_GENERATE_ERRNO_H_FALSE='#'
27330 fi
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341 if test $GL_GENERATE_ERROR_H = true; then
27342 GL_COND_OBJ_ERROR_TRUE=
27343 GL_COND_OBJ_ERROR_FALSE='#'
27344 else
27345 GL_COND_OBJ_ERROR_TRUE='#'
27346 GL_COND_OBJ_ERROR_FALSE=
27347 fi
27348 :
27349 if test -z "${GL_COND_OBJ_ERROR_TRUE}" && test -z "${GL_COND_OBJ_ERROR_FALSE}"; then
27350 GL_COND_OBJ_ERROR_TRUE='#'
27351 GL_COND_OBJ_ERROR_FALSE='#'
27352 fi
27353
27354 if test -z "$GL_COND_OBJ_ERROR_TRUE"; then :
27355
27356
27357
27358
27359
27360 :
27361
27362
27363 fi
27364
27365
27366 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
27367
27368
27369
27370 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
27371
27372
27373
27374
27375
27376
27377 case "$GL_GENERATE_ERROR_H" in
27378 false) ERROR_H='' ;;
27379 true)
27380 if test -z "$ERROR_H"; then
27381 ERROR_H="${gl_source_base_prefix}error.h"
27382 fi
27383 ;;
27384 *) echo "*** GL_GENERATE_ERROR_H is not set correctly" 1>&2; exit 1 ;;
27385 esac
27386
27387
27388 if $GL_GENERATE_ERROR_H; then
27389 GL_GENERATE_ERROR_H_TRUE=
27390 GL_GENERATE_ERROR_H_FALSE='#'
27391 else
27392 GL_GENERATE_ERROR_H_TRUE='#'
27393 GL_GENERATE_ERROR_H_FALSE=
27394 fi
27395 :
27396 if test -z "${GL_GENERATE_ERROR_H_TRUE}" && test -z "${GL_GENERATE_ERROR_H_FALSE}"; then
27397 GL_GENERATE_ERROR_H_TRUE='#'
27398 GL_GENERATE_ERROR_H_FALSE='#'
27399 fi
27400
27401
27402
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412 if test $ac_cv_func_fcntl = no; then
27413
27414
27415
27416 if test $ac_cv_func_fcntl = no; then
27417 HAVE_FCNTL=0
27418 else
27419 REPLACE_FCNTL=1
27420 fi
27421
27422 else
27423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
27424 printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; }
27425 if test ${gl_cv_func_fcntl_f_dupfd_works+y}
27426 then :
27427 printf %s "(cached) " >&6
27428 else $as_nop
27429 if test "$cross_compiling" = yes
27430 then :
27431 case $host_os in
27432 aix* | cygwin* | haiku*)
27433 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
27434 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
27435 esac
27436 else $as_nop
27437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27438 /* end confdefs.h. */
27439 #include <errno.h>
27440 #include <fcntl.h>
27441 #include <limits.h>
27442 #include <sys/resource.h>
27443 #include <unistd.h>
27444
27445
27446 $gl_mda_defines
27447
27448 #ifndef RLIM_SAVED_CUR
27449 # define RLIM_SAVED_CUR RLIM_INFINITY
27450 #endif
27451 #ifndef RLIM_SAVED_MAX
27452 # define RLIM_SAVED_MAX RLIM_INFINITY
27453 #endif
27454
27455 int
27456 main (void)
27457 {
27458 int result = 0;
27459 int bad_fd = INT_MAX;
27460 struct rlimit rlim;
27461 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
27462 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
27463 && rlim.rlim_cur != RLIM_INFINITY
27464 && rlim.rlim_cur != RLIM_SAVED_MAX
27465 && rlim.rlim_cur != RLIM_SAVED_CUR)
27466 bad_fd = rlim.rlim_cur;
27467 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
27468 if (errno != EINVAL) result |= 2;
27469 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
27470 if (errno != EINVAL) result |= 8;
27471 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
27472 {
27473 int fd;
27474 fd = open (".", O_RDONLY);
27475 if (fd == -1)
27476 result |= 16;
27477 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
27478 result |= 32;
27479
27480 close (fd);
27481 }
27482 return result;
27483 ;
27484 return 0;
27485 }
27486 _ACEOF
27487 if ac_fn_c_try_run "$LINENO"
27488 then :
27489 gl_cv_func_fcntl_f_dupfd_works=yes
27490 else $as_nop
27491 gl_cv_func_fcntl_f_dupfd_works=no
27492 fi
27493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27494 conftest.$ac_objext conftest.beam conftest.$ac_ext
27495 fi
27496
27497 fi
27498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
27499 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
27500 case $gl_cv_func_fcntl_f_dupfd_works in
27501 *yes) ;;
27502 *)
27503
27504
27505 if test $ac_cv_func_fcntl = no; then
27506 HAVE_FCNTL=0
27507 else
27508 REPLACE_FCNTL=1
27509 fi
27510
27511
27512 printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
27513 ;;
27514 esac
27515
27516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
27517 printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
27518 if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y}
27519 then :
27520 printf %s "(cached) " >&6
27521 else $as_nop
27522 if test "$cross_compiling" = yes
27523 then :
27524 case "$host_os" in
27525 # Guess no on NetBSD.
27526 netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;;
27527 *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;;
27528 esac
27529
27530 else $as_nop
27531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27532 /* end confdefs.h. */
27533 #include <fcntl.h>
27534 #include <unistd.h>
27535 int main (int argc, char *argv[])
27536 {
27537 if (argc == 1)
27538 /* parent process */
27539 {
27540 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
27541 return 1;
27542 return execl ("./conftest", "./conftest", "child", NULL);
27543 }
27544 else
27545 /* child process */
27546 return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
27547 }
27548
27549
27550 _ACEOF
27551 if ac_fn_c_try_run "$LINENO"
27552 then :
27553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27554 /* end confdefs.h. */
27555
27556 #ifdef __linux__
27557 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
27558 it to support the semantics on older kernels that failed with EINVAL. */
27559 choke me
27560 #endif
27561
27562 int
27563 main (void)
27564 {
27565
27566 ;
27567 return 0;
27568 }
27569 _ACEOF
27570 if ac_fn_c_try_compile "$LINENO"
27571 then :
27572 gl_cv_func_fcntl_f_dupfd_cloexec=yes
27573 else $as_nop
27574 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
27575 fi
27576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27577
27578 else $as_nop
27579 gl_cv_func_fcntl_f_dupfd_cloexec=no
27580 fi
27581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27582 conftest.$ac_objext conftest.beam conftest.$ac_ext
27583 fi
27584
27585
27586 fi
27587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
27588 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
27589 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
27590 *yes) ;;
27591 *)
27592
27593
27594 if test $ac_cv_func_fcntl = no; then
27595 HAVE_FCNTL=0
27596 else
27597 REPLACE_FCNTL=1
27598 fi
27599
27600 ;;
27601 esac
27602 fi
27603
27604
27605
27606 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
27607 GL_COND_OBJ_FCNTL_TRUE=
27608 GL_COND_OBJ_FCNTL_FALSE='#'
27609 else
27610 GL_COND_OBJ_FCNTL_TRUE='#'
27611 GL_COND_OBJ_FCNTL_FALSE=
27612 fi
27613 :
27614 if test -z "${GL_COND_OBJ_FCNTL_TRUE}" && test -z "${GL_COND_OBJ_FCNTL_FALSE}"; then
27615 GL_COND_OBJ_FCNTL_TRUE='#'
27616 GL_COND_OBJ_FCNTL_FALSE='#'
27617 fi
27618
27619
27620
27621
27622
27623
27624
27625
27626
27627
27628 GL_GL_PAPER_GNULIB_FCNTL=1
27629
27630
27631
27632
27633
27634 printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648 GL_GENERATE_FLOAT_H=false
27649 REPLACE_FLOAT_LDBL=0
27650 case "$host_os" in
27651 aix* | beos* | openbsd* | mirbsd* | irix*)
27652 GL_GENERATE_FLOAT_H=true
27653 ;;
27654 freebsd* | dragonfly*)
27655 case "$host_cpu" in
27656 i[34567]86 )
27657 GL_GENERATE_FLOAT_H=true
27658 ;;
27659 x86_64 )
27660 # On x86_64 systems, the C compiler may still be generating
27661 # 32-bit code.
27662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27663 /* end confdefs.h. */
27664 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
27665 int ok;
27666 #else
27667 error fail
27668 #endif
27669
27670 _ACEOF
27671 if ac_fn_c_try_compile "$LINENO"
27672 then :
27673
27674 else $as_nop
27675 GL_GENERATE_FLOAT_H=true
27676 fi
27677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27678 ;;
27679 esac
27680 ;;
27681 linux*)
27682 case "$host_cpu" in
27683 powerpc*)
27684 GL_GENERATE_FLOAT_H=true
27685 ;;
27686 esac
27687 ;;
27688 esac
27689 case "$host_os" in
27690 aix* | freebsd* | dragonfly* | linux*)
27691 if $GL_GENERATE_FLOAT_H; then
27692 REPLACE_FLOAT_LDBL=1
27693 fi
27694 ;;
27695 esac
27696
27697 REPLACE_ITOLD=0
27698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
27699 printf %s "checking whether conversion from 'int' to 'long double' works... " >&6; }
27700 if test ${gl_cv_func_itold_works+y}
27701 then :
27702 printf %s "(cached) " >&6
27703 else $as_nop
27704
27705 if test "$cross_compiling" = yes
27706 then :
27707 case "$host" in
27708 sparc*-*-linux*)
27709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27710 /* end confdefs.h. */
27711 #if defined __LP64__ || defined __arch64__
27712 int ok;
27713 #else
27714 error fail
27715 #endif
27716
27717 _ACEOF
27718 if ac_fn_c_try_compile "$LINENO"
27719 then :
27720 gl_cv_func_itold_works="guessing no"
27721 else $as_nop
27722 gl_cv_func_itold_works="guessing yes"
27723 fi
27724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27725 ;;
27726 # Guess yes on native Windows.
27727 mingw*) gl_cv_func_itold_works="guessing yes" ;;
27728 *) gl_cv_func_itold_works="guessing yes" ;;
27729 esac
27730
27731 else $as_nop
27732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27733 /* end confdefs.h. */
27734
27735 int i = -1;
27736 volatile long double ld;
27737 int main ()
27738 {
27739 ld += i * 1.0L;
27740 if (ld > 0)
27741 return 1;
27742 return 0;
27743 }
27744 _ACEOF
27745 if ac_fn_c_try_run "$LINENO"
27746 then :
27747 gl_cv_func_itold_works=yes
27748 else $as_nop
27749 gl_cv_func_itold_works=no
27750 fi
27751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27752 conftest.$ac_objext conftest.beam conftest.$ac_ext
27753 fi
27754
27755
27756 fi
27757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
27758 printf "%s\n" "$gl_cv_func_itold_works" >&6; }
27759 case "$gl_cv_func_itold_works" in
27760 *no)
27761 REPLACE_ITOLD=1
27762 GL_GENERATE_FLOAT_H=true
27763 ;;
27764 esac
27765
27766 if $GL_GENERATE_FLOAT_H; then
27767
27768
27769
27770
27771
27772
27773
27774
27775 if test $gl_cv_have_include_next = yes; then
27776 gl_cv_next_float_h='<'float.h'>'
27777 else
27778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
27779 printf %s "checking absolute name of <float.h>... " >&6; }
27780 if test ${gl_cv_next_float_h+y}
27781 then :
27782 printf %s "(cached) " >&6
27783 else $as_nop
27784
27785
27786
27787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27788 /* end confdefs.h. */
27789 #include <float.h>
27790 _ACEOF
27791 case "$host_os" in
27792 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27793 *) gl_absname_cpp="$ac_cpp" ;;
27794 esac
27795
27796 case "$host_os" in
27797 mingw*)
27798 gl_dirsep_regex='[/\\]'
27799 ;;
27800 *)
27801 gl_dirsep_regex='\/'
27802 ;;
27803 esac
27804 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27805 gl_header_literal_regex=`echo 'float.h' \
27806 | sed -e "$gl_make_literal_regex_sed"`
27807 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27808 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27809 s|^/[^/]|//&|
27810 p
27811 q
27812 }'
27813
27814 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27815 sed -n "$gl_absolute_header_sed"`
27816
27817 gl_header=$gl_cv_absolute_float_h
27818 gl_cv_next_float_h='"'$gl_header'"'
27819
27820
27821 fi
27822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
27823 printf "%s\n" "$gl_cv_next_float_h" >&6; }
27824 fi
27825 NEXT_FLOAT_H=$gl_cv_next_float_h
27826
27827 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27828 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27829 gl_next_as_first_directive='<'float.h'>'
27830 else
27831 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27832 gl_next_as_first_directive=$gl_cv_next_float_h
27833 fi
27834 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
27835
27836
27837
27838
27839 fi
27840
27841
27842
27843
27844
27845
27846 case "$GL_GENERATE_FLOAT_H" in
27847 false) FLOAT_H='' ;;
27848 true)
27849 if test -z "$FLOAT_H"; then
27850 FLOAT_H="${gl_source_base_prefix}float.h"
27851 fi
27852 ;;
27853 *) echo "*** GL_GENERATE_FLOAT_H is not set correctly" 1>&2; exit 1 ;;
27854 esac
27855
27856
27857 if $GL_GENERATE_FLOAT_H; then
27858 GL_GENERATE_FLOAT_H_TRUE=
27859 GL_GENERATE_FLOAT_H_FALSE='#'
27860 else
27861 GL_GENERATE_FLOAT_H_TRUE='#'
27862 GL_GENERATE_FLOAT_H_FALSE=
27863 fi
27864 :
27865 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
27866 GL_GENERATE_FLOAT_H_TRUE='#'
27867 GL_GENERATE_FLOAT_H_FALSE='#'
27868 fi
27869
27870
27871
27872
27873
27874
27875
27876 if test $REPLACE_FLOAT_LDBL = 1; then
27877 GL_COND_OBJ_FLOAT_TRUE=
27878 GL_COND_OBJ_FLOAT_FALSE='#'
27879 else
27880 GL_COND_OBJ_FLOAT_TRUE='#'
27881 GL_COND_OBJ_FLOAT_FALSE=
27882 fi
27883 :
27884 if test -z "${GL_COND_OBJ_FLOAT_TRUE}" && test -z "${GL_COND_OBJ_FLOAT_FALSE}"; then
27885 GL_COND_OBJ_FLOAT_TRUE='#'
27886 GL_COND_OBJ_FLOAT_FALSE='#'
27887 fi
27888
27889
27890 if test $REPLACE_ITOLD = 1; then
27891 GL_COND_OBJ_ITOLD_TRUE=
27892 GL_COND_OBJ_ITOLD_FALSE='#'
27893 else
27894 GL_COND_OBJ_ITOLD_TRUE='#'
27895 GL_COND_OBJ_ITOLD_FALSE=
27896 fi
27897 :
27898 if test -z "${GL_COND_OBJ_ITOLD_TRUE}" && test -z "${GL_COND_OBJ_ITOLD_FALSE}"; then
27899 GL_COND_OBJ_ITOLD_TRUE='#'
27900 GL_COND_OBJ_ITOLD_FALSE='#'
27901 fi
27902
27903
27904
27905
27906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
27907 printf %s "checking whether free is known to preserve errno... " >&6; }
27908 if test ${gl_cv_func_free_preserves_errno+y}
27909 then :
27910 printf %s "(cached) " >&6
27911 else $as_nop
27912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27913 /* end confdefs.h. */
27914 #include <stdlib.h>
27915
27916 int
27917 main (void)
27918 {
27919 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
27920 #elif defined __OpenBSD__
27921 #elif defined __sun
27922 #else
27923 #error "'free' is not known to preserve errno"
27924 #endif
27925
27926 ;
27927 return 0;
27928 }
27929 _ACEOF
27930 if ac_fn_c_try_compile "$LINENO"
27931 then :
27932 gl_cv_func_free_preserves_errno=yes
27933 else $as_nop
27934 gl_cv_func_free_preserves_errno=no
27935 fi
27936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27937
27938 fi
27939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
27940 printf "%s\n" "$gl_cv_func_free_preserves_errno" >&6; }
27941
27942 case $gl_cv_func_free_preserves_errno in
27943 *yes)
27944
27945 printf "%s\n" "#define HAVE_FREE_POSIX 1" >>confdefs.h
27946
27947 ;;
27948 *) REPLACE_FREE=1 ;;
27949 esac
27950
27951
27952 if test $REPLACE_FREE = 1; then
27953 GL_COND_OBJ_FREE_TRUE=
27954 GL_COND_OBJ_FREE_FALSE='#'
27955 else
27956 GL_COND_OBJ_FREE_TRUE='#'
27957 GL_COND_OBJ_FREE_FALSE=
27958 fi
27959 :
27960 if test -z "${GL_COND_OBJ_FREE_TRUE}" && test -z "${GL_COND_OBJ_FREE_FALSE}"; then
27961 GL_COND_OBJ_FREE_TRUE='#'
27962 GL_COND_OBJ_FREE_FALSE='#'
27963 fi
27964
27965 if test -z "$GL_COND_OBJ_FREE_TRUE"; then :
27966
27967 :
27968
27969 fi
27970
27971
27972
27973
27974
27975
27976
27977
27978
27979 GL_GL_PAPER_GNULIB_FREE_POSIX=1
27980
27981
27982
27983
27984
27985 printf "%s\n" "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h
27986
27987
27988
27989
27990
27991
27992
27993 case "$host_os" in
27994 mingw* | solaris*)
27995 REPLACE_FSTAT=1
27996 ;;
27997 esac
27998
27999
28000
28001
28002 if test $REPLACE_FSTAT = 1; then
28003 GL_COND_OBJ_FSTAT_TRUE=
28004 GL_COND_OBJ_FSTAT_FALSE='#'
28005 else
28006 GL_COND_OBJ_FSTAT_TRUE='#'
28007 GL_COND_OBJ_FSTAT_FALSE=
28008 fi
28009 :
28010 if test -z "${GL_COND_OBJ_FSTAT_TRUE}" && test -z "${GL_COND_OBJ_FSTAT_FALSE}"; then
28011 GL_COND_OBJ_FSTAT_TRUE='#'
28012 GL_COND_OBJ_FSTAT_FALSE='#'
28013 fi
28014
28015 if test -z "$GL_COND_OBJ_FSTAT_TRUE"; then :
28016
28017 case "$host_os" in
28018 mingw*)
28019
28020
28021
28022
28023
28024
28025
28026
28027 gl_paper_LIBOBJS="$gl_paper_LIBOBJS stat-w32.$ac_objext"
28028
28029 ;;
28030 esac
28031
28032
28033
28034 :
28035
28036
28037 fi
28038
28039
28040
28041
28042
28043
28044
28045
28046
28047 GL_GL_PAPER_GNULIB_FSTAT=1
28048
28049
28050
28051
28052
28053 printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
28054
28055
28056
28057
28058
28059
28060
28061
28062 if test $ac_cv_func_getdtablesize = yes &&
28063 test $ac_cv_have_decl_getdtablesize = yes; then
28064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
28065 printf %s "checking whether getdtablesize works... " >&6; }
28066 if test ${gl_cv_func_getdtablesize_works+y}
28067 then :
28068 printf %s "(cached) " >&6
28069 else $as_nop
28070 case "$host_os" in
28071 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
28072 *)
28073 if test "$cross_compiling" = yes
28074 then :
28075 case "$host_os" in
28076 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
28077 gl_cv_func_getdtablesize_works="guessing no" ;;
28078 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
28079 esac
28080
28081 else $as_nop
28082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28083 /* end confdefs.h. */
28084
28085 #include <unistd.h>
28086
28087
28088 $gl_mda_defines
28089
28090
28091 int
28092 main (void)
28093 {
28094 int size = getdtablesize();
28095 if (dup2 (0, getdtablesize()) != -1)
28096 return 1;
28097 if (size != getdtablesize())
28098 return 2;
28099
28100 ;
28101 return 0;
28102 }
28103 _ACEOF
28104 if ac_fn_c_try_run "$LINENO"
28105 then :
28106 gl_cv_func_getdtablesize_works=yes
28107 else $as_nop
28108 gl_cv_func_getdtablesize_works=no
28109 fi
28110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28111 conftest.$ac_objext conftest.beam conftest.$ac_ext
28112 fi
28113
28114 ;;
28115 esac
28116
28117 fi
28118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
28119 printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; }
28120 case "$gl_cv_func_getdtablesize_works" in
28121 *yes | "no (limitation)") ;;
28122 *) REPLACE_GETDTABLESIZE=1 ;;
28123 esac
28124 else
28125 HAVE_GETDTABLESIZE=0
28126 fi
28127
28128
28129 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
28130 GL_COND_OBJ_GETDTABLESIZE_TRUE=
28131 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
28132 else
28133 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
28134 GL_COND_OBJ_GETDTABLESIZE_FALSE=
28135 fi
28136 :
28137 if test -z "${GL_COND_OBJ_GETDTABLESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETDTABLESIZE_FALSE}"; then
28138 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
28139 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
28140 fi
28141
28142 if test -z "$GL_COND_OBJ_GETDTABLESIZE_TRUE"; then :
28143
28144 :
28145
28146 fi
28147
28148
28149
28150
28151
28152
28153
28154
28155
28156 GL_GL_PAPER_GNULIB_GETDTABLESIZE=1
28157
28158
28159
28160
28161
28162 printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
28163
28164
28165
28166
28167
28168
28169
28170
28171
28172
28173
28174
28175 REPLACE_GETOPT=0
28176 if test -n "$gl_replace_getopt"; then
28177 REPLACE_GETOPT=1
28178 fi
28179
28180 GL_GENERATE_GETOPT_H=false
28181 GL_GENERATE_GETOPT_CDEFS_H=false
28182 if test $REPLACE_GETOPT = 1; then
28183
28184
28185 if test $ac_cv_header_sys_cdefs_h = yes; then
28186 HAVE_SYS_CDEFS_H=1
28187 else
28188 HAVE_SYS_CDEFS_H=0
28189 fi
28190
28191
28192
28193 printf "%s\n" "#define __GETOPT_PREFIX rpl_" >>confdefs.h
28194
28195 GL_GENERATE_GETOPT_H=true
28196 GL_GENERATE_GETOPT_CDEFS_H=true
28197
28198 fi
28199
28200
28201
28202
28203
28204 case "$GL_GENERATE_GETOPT_H" in
28205 false) GETOPT_H='' ;;
28206 true)
28207 if test -z "$GETOPT_H"; then
28208 GETOPT_H="${gl_source_base_prefix}getopt.h"
28209 fi
28210 ;;
28211 *) echo "*** GL_GENERATE_GETOPT_H is not set correctly" 1>&2; exit 1 ;;
28212 esac
28213
28214
28215 if $GL_GENERATE_GETOPT_H; then
28216 GL_GENERATE_GETOPT_H_TRUE=
28217 GL_GENERATE_GETOPT_H_FALSE='#'
28218 else
28219 GL_GENERATE_GETOPT_H_TRUE='#'
28220 GL_GENERATE_GETOPT_H_FALSE=
28221 fi
28222 :
28223 if test -z "${GL_GENERATE_GETOPT_H_TRUE}" && test -z "${GL_GENERATE_GETOPT_H_FALSE}"; then
28224 GL_GENERATE_GETOPT_H_TRUE='#'
28225 GL_GENERATE_GETOPT_H_FALSE='#'
28226 fi
28227
28228
28229
28230
28231
28232
28233
28234
28235
28236 case "$GL_GENERATE_GETOPT_CDEFS_H" in
28237 false) GETOPT_CDEFS_H='' ;;
28238 true)
28239 if test -z "$GETOPT_CDEFS_H"; then
28240 GETOPT_CDEFS_H="${gl_source_base_prefix}getopt-cdefs.h"
28241 fi
28242 ;;
28243 *) echo "*** GL_GENERATE_GETOPT_CDEFS_H is not set correctly" 1>&2; exit 1 ;;
28244 esac
28245
28246
28247 if $GL_GENERATE_GETOPT_CDEFS_H; then
28248 GL_GENERATE_GETOPT_CDEFS_H_TRUE=
28249 GL_GENERATE_GETOPT_CDEFS_H_FALSE='#'
28250 else
28251 GL_GENERATE_GETOPT_CDEFS_H_TRUE='#'
28252 GL_GENERATE_GETOPT_CDEFS_H_FALSE=
28253 fi
28254 :
28255 if test -z "${GL_GENERATE_GETOPT_CDEFS_H_TRUE}" && test -z "${GL_GENERATE_GETOPT_CDEFS_H_FALSE}"; then
28256 GL_GENERATE_GETOPT_CDEFS_H_TRUE='#'
28257 GL_GENERATE_GETOPT_CDEFS_H_FALSE='#'
28258 fi
28259
28260
28261
28262
28263
28264
28265
28266 if test $REPLACE_GETOPT = 1; then
28267 GL_COND_OBJ_GETOPT_TRUE=
28268 GL_COND_OBJ_GETOPT_FALSE='#'
28269 else
28270 GL_COND_OBJ_GETOPT_TRUE='#'
28271 GL_COND_OBJ_GETOPT_FALSE=
28272 fi
28273 :
28274 if test -z "${GL_COND_OBJ_GETOPT_TRUE}" && test -z "${GL_COND_OBJ_GETOPT_FALSE}"; then
28275 GL_COND_OBJ_GETOPT_TRUE='#'
28276 GL_COND_OBJ_GETOPT_FALSE='#'
28277 fi
28278
28279 if test -z "$GL_COND_OBJ_GETOPT_TRUE"; then :
28280
28281
28282
28283
28284
28285
28286
28287 GL_GL_PAPER_GNULIB_UNISTD_H_GETOPT=1
28288
28289
28290
28291 fi
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301 GL_GL_PAPER_GNULIB_GETOPT_POSIX=1
28302
28303
28304
28305
28306
28307 printf "%s\n" "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h
28308
28309
28310
28311
28312
28313
28314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getprogname" >&5
28315 printf %s "checking for getprogname... " >&6; }
28316 if test ${gl_cv_onwards_func_getprogname+y}
28317 then :
28318 printf %s "(cached) " >&6
28319 else $as_nop
28320
28321 exec 9>&6 6>/dev/null
28322
28323 case "$host_os" in
28324
28325 linux*-android*)
28326 ac_fn_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "#include <stdlib.h>
28327 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28328 if test "x$ac_cv_have_decl_getprogname" = xyes
28329 then :
28330
28331 fi
28332 if test $ac_cv_have_decl_getprogname = yes; then
28333 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
28334 if test "x$ac_cv_func_getprogname" = xyes
28335 then :
28336
28337 fi
28338
28339 if test $ac_cv_func_getprogname = yes; then
28340 gl_cv_onwards_func_getprogname=yes
28341 else
28342 gl_cv_onwards_func_getprogname='future OS version'
28343 fi
28344 else
28345 gl_cv_onwards_func_getprogname='future OS version'
28346 fi
28347 ;;
28348
28349
28350 *)
28351 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
28352 if test "x$ac_cv_func_getprogname" = xyes
28353 then :
28354
28355 fi
28356
28357 gl_cv_onwards_func_getprogname=$ac_cv_func_getprogname
28358 ;;
28359
28360 esac
28361
28362 exec 6>&9 9>&-
28363
28364
28365 fi
28366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_getprogname" >&5
28367 printf "%s\n" "$gl_cv_onwards_func_getprogname" >&6; }
28368
28369 case "$gl_cv_onwards_func_getprogname" in
28370 future*) ac_cv_func_getprogname=no ;;
28371 *) ac_cv_func_getprogname=$gl_cv_onwards_func_getprogname ;;
28372 esac
28373 if test $ac_cv_func_getprogname = yes; then
28374
28375 printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h
28376
28377 fi
28378
28379
28380 if test $ac_cv_func_getprogname = no; then
28381 HAVE_GETPROGNAME=0
28382 case "$gl_cv_onwards_func_getprogname" in
28383 future*) REPLACE_GETPROGNAME=1 ;;
28384 esac
28385 fi
28386
28387
28388 if test $HAVE_GETPROGNAME = 0 || test $REPLACE_GETPROGNAME = 1; then
28389 GL_COND_OBJ_GETPROGNAME_TRUE=
28390 GL_COND_OBJ_GETPROGNAME_FALSE='#'
28391 else
28392 GL_COND_OBJ_GETPROGNAME_TRUE='#'
28393 GL_COND_OBJ_GETPROGNAME_FALSE=
28394 fi
28395 :
28396 if test -z "${GL_COND_OBJ_GETPROGNAME_TRUE}" && test -z "${GL_COND_OBJ_GETPROGNAME_FALSE}"; then
28397 GL_COND_OBJ_GETPROGNAME_TRUE='#'
28398 GL_COND_OBJ_GETPROGNAME_FALSE='#'
28399 fi
28400
28401 if test -z "$GL_COND_OBJ_GETPROGNAME_TRUE"; then :
28402
28403
28404
28405
28406 ac_found=0
28407 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
28408 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28409 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
28410 then :
28411 ac_have_decl=1
28412 else $as_nop
28413 ac_have_decl=0
28414 fi
28415 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
28416 if test $ac_have_decl = 1
28417 then :
28418 ac_found=1
28419 fi
28420
28421 ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
28422 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28423 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
28424 then :
28425 ac_have_decl=1
28426 else $as_nop
28427 ac_have_decl=0
28428 fi
28429 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
28430 if test $ac_have_decl = 1
28431 then :
28432 ac_found=1
28433 fi
28434
28435 ac_fn_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
28436 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28437 if test "x$ac_cv_have_decl___argv" = xyes
28438 then :
28439 ac_have_decl=1
28440 else $as_nop
28441 ac_have_decl=0
28442 fi
28443 printf "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h
28444 if test $ac_have_decl = 1
28445 then :
28446 ac_found=1
28447 fi
28448
28449
28450 # Incur the cost of this test only if none of the above worked.
28451 if test $ac_found = 0; then
28452 # On OpenBSD 5.1, using the global __progname variable appears to be
28453 # the only way to implement getprogname.
28454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
28455 printf %s "checking whether __progname is defined in default libraries... " >&6; }
28456 if test ${gl_cv_var___progname+y}
28457 then :
28458 printf %s "(cached) " >&6
28459 else $as_nop
28460
28461 gl_cv_var___progname=
28462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28463 /* end confdefs.h. */
28464 extern char *__progname;
28465 int
28466 main (void)
28467 {
28468 return *__progname;
28469
28470 ;
28471 return 0;
28472 }
28473 _ACEOF
28474 if ac_fn_c_try_link "$LINENO"
28475 then :
28476 gl_cv_var___progname=yes
28477
28478 fi
28479 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28480 conftest$ac_exeext conftest.$ac_ext
28481
28482
28483 fi
28484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
28485 printf "%s\n" "$gl_cv_var___progname" >&6; }
28486 if test "$gl_cv_var___progname" = yes; then
28487
28488 printf "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
28489
28490 fi
28491 fi
28492
28493
28494 fi
28495
28496
28497
28498
28499
28500
28501
28502
28503
28504 GL_GL_PAPER_GNULIB_GETPROGNAME=1
28505
28506
28507
28508
28509
28510 printf "%s\n" "#define GNULIB_TEST_GETPROGNAME 1" >>confdefs.h
28511
28512
28513
28514
28515
28516
28517
28518 HARD_LOCALE_LIB="$SETLOCALE_NULL_LIB"
28519
28520 LIB_HARD_LOCALE="$HARD_LOCALE_LIB"
28521
28522
28523
28524
28525
28526
28527
28528
28529
28530
28531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
28532 printf %s "checking whether the compiler supports the __inline keyword... " >&6; }
28533 if test ${gl_cv_c___inline+y}
28534 then :
28535 printf %s "(cached) " >&6
28536 else $as_nop
28537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28538 /* end confdefs.h. */
28539 typedef int foo_t;
28540 static __inline foo_t foo (void) { return 0; }
28541 int
28542 main (void)
28543 {
28544 return foo ();
28545 ;
28546 return 0;
28547 }
28548 _ACEOF
28549 if ac_fn_c_try_compile "$LINENO"
28550 then :
28551 gl_cv_c___inline=yes
28552 else $as_nop
28553 gl_cv_c___inline=no
28554 fi
28555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28556 fi
28557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
28558 printf "%s\n" "$gl_cv_c___inline" >&6; }
28559 if test $gl_cv_c___inline = yes; then
28560
28561 printf "%s\n" "#define HAVE___INLINE 1" >>confdefs.h
28562
28563 fi
28564
28565
28566
28567
28568
28569
28570 case "$GL_GENERATE_LIMITS_H" in
28571 false) LIMITS_H='' ;;
28572 true)
28573 if test -z "$LIMITS_H"; then
28574 LIMITS_H="${gl_source_base_prefix}limits.h"
28575 fi
28576 ;;
28577 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
28578 esac
28579
28580
28581 if $GL_GENERATE_LIMITS_H; then
28582 GL_GENERATE_LIMITS_H_TRUE=
28583 GL_GENERATE_LIMITS_H_FALSE='#'
28584 else
28585 GL_GENERATE_LIMITS_H_TRUE='#'
28586 GL_GENERATE_LIMITS_H_FALSE=
28587 fi
28588 :
28589 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
28590 GL_GENERATE_LIMITS_H_TRUE='#'
28591 GL_GENERATE_LIMITS_H_FALSE='#'
28592 fi
28593
28594
28595
28596
28597
28598
28599
28600
28601
28602 LOCALCHARSET_TESTS_ENVIRONMENT=
28603
28604
28605
28606
28607
28608
28609
28610
28611
28612
28613
28614 REPLACE_MALLOC_FOR_MALLOC_GNU="$REPLACE_MALLOC_FOR_MALLOC_POSIX"
28615 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 0; then
28616
28617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
28618 printf %s "checking whether malloc (0) returns nonnull... " >&6; }
28619 if test ${ac_cv_func_malloc_0_nonnull+y}
28620 then :
28621 printf %s "(cached) " >&6
28622 else $as_nop
28623 if test "$cross_compiling" = yes
28624 then :
28625 case "$host_os" in
28626 # Guess yes on platforms where we know the result.
28627 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
28628 | gnu* | *-musl* | midnightbsd* \
28629 | hpux* | solaris* | cygwin* | mingw* | msys* )
28630 ac_cv_func_malloc_0_nonnull="guessing yes" ;;
28631 # If we don't know, obey --enable-cross-guesses.
28632 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
28633 esac
28634
28635 else $as_nop
28636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28637 /* end confdefs.h. */
28638 #include <stdlib.h>
28639
28640 int
28641 main (void)
28642 {
28643 void *p = malloc (0);
28644 int result = !p;
28645 free (p);
28646 return result;
28647 ;
28648 return 0;
28649 }
28650
28651 _ACEOF
28652 if ac_fn_c_try_run "$LINENO"
28653 then :
28654 ac_cv_func_malloc_0_nonnull=yes
28655 else $as_nop
28656 ac_cv_func_malloc_0_nonnull=no
28657 fi
28658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28659 conftest.$ac_objext conftest.beam conftest.$ac_ext
28660 fi
28661
28662
28663 fi
28664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
28665 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
28666 case $ac_cv_func_malloc_0_nonnull in #(
28667 *yes) :
28668 ;; #(
28669 *) :
28670 REPLACE_MALLOC_FOR_MALLOC_GNU=1 ;;
28671 esac
28672
28673 fi
28674
28675 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then
28676
28677
28678
28679
28680
28681
28682
28683
28684 gl_paper_LIBOBJS="$gl_paper_LIBOBJS malloc.$ac_objext"
28685
28686 fi
28687
28688
28689
28690
28691
28692
28693
28694
28695
28696 GL_GL_PAPER_GNULIB_MALLOC_GNU=1
28697
28698
28699
28700
28701
28702 printf "%s\n" "#define GNULIB_TEST_MALLOC_GNU 1" >>confdefs.h
28703
28704
28705
28706
28707 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
28708
28709
28710
28711
28712
28713
28714
28715
28716 gl_paper_LIBOBJS="$gl_paper_LIBOBJS malloc.$ac_objext"
28717
28718 fi
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728 GL_GL_PAPER_GNULIB_MALLOC_POSIX=1
28729
28730
28731
28732
28733
28734 printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
28735
28736
28737
28738
28739
28740
28741
28742
28743
28744
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754 if case "$host_os" in
28755 mingw*) true ;;
28756 *) test $ac_cv_func_mbsinit = yes ;;
28757 esac \
28758 && test $ac_cv_func_mbrtowc = yes; then
28759
28760
28761
28762
28763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
28764 printf %s "checking whether mbrtowc handles incomplete characters... " >&6; }
28765 if test ${gl_cv_func_mbrtowc_incomplete_state+y}
28766 then :
28767 printf %s "(cached) " >&6
28768 else $as_nop
28769
28770 case "$host_os" in
28771 # Guess no on AIX and OSF/1.
28772 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
28773 # Guess yes otherwise.
28774 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
28775 esac
28776 if test $LOCALE_JA != none; then
28777 if test "$cross_compiling" = yes
28778 then :
28779 :
28780 else $as_nop
28781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28782 /* end confdefs.h. */
28783
28784 #include <locale.h>
28785 #include <string.h>
28786 #include <wchar.h>
28787 int main ()
28788 {
28789 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
28790 {
28791 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
28792 mbstate_t state;
28793 wchar_t wc;
28794
28795 memset (&state, '\0', sizeof (mbstate_t));
28796 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
28797 if (mbsinit (&state))
28798 return 2;
28799 }
28800 return 0;
28801 }
28802 _ACEOF
28803 if ac_fn_c_try_run "$LINENO"
28804 then :
28805 gl_cv_func_mbrtowc_incomplete_state=yes
28806 else $as_nop
28807 gl_cv_func_mbrtowc_incomplete_state=no
28808 fi
28809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28810 conftest.$ac_objext conftest.beam conftest.$ac_ext
28811 fi
28812
28813 else
28814 if test $LOCALE_FR_UTF8 != none; then
28815 if test "$cross_compiling" = yes
28816 then :
28817 :
28818 else $as_nop
28819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28820 /* end confdefs.h. */
28821
28822 #include <locale.h>
28823 #include <string.h>
28824 #include <wchar.h>
28825 int main ()
28826 {
28827 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
28828 {
28829 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
28830 mbstate_t state;
28831 wchar_t wc;
28832
28833 memset (&state, '\0', sizeof (mbstate_t));
28834 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
28835 if (mbsinit (&state))
28836 return 2;
28837 }
28838 return 0;
28839 }
28840 _ACEOF
28841 if ac_fn_c_try_run "$LINENO"
28842 then :
28843 gl_cv_func_mbrtowc_incomplete_state=yes
28844 else $as_nop
28845 gl_cv_func_mbrtowc_incomplete_state=no
28846 fi
28847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28848 conftest.$ac_objext conftest.beam conftest.$ac_ext
28849 fi
28850
28851 fi
28852 fi
28853
28854 fi
28855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
28856 printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
28857
28858
28859
28860
28861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
28862 printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; }
28863 if test ${gl_cv_func_mbrtowc_sanitycheck+y}
28864 then :
28865 printf %s "(cached) " >&6
28866 else $as_nop
28867
28868 case "$host_os" in
28869 # Guess no on Solaris 8.
28870 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
28871 # Guess yes otherwise.
28872 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
28873 esac
28874 if test $LOCALE_ZH_CN != none; then
28875 if test "$cross_compiling" = yes
28876 then :
28877 :
28878 else $as_nop
28879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28880 /* end confdefs.h. */
28881
28882 #include <locale.h>
28883 #include <stdlib.h>
28884 #include <string.h>
28885 #include <wchar.h>
28886 int main ()
28887 {
28888 /* This fails on Solaris 8:
28889 mbrtowc returns 2, and sets wc to 0x00F0.
28890 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
28891 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
28892 {
28893 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
28894 mbstate_t state;
28895 wchar_t wc;
28896
28897 memset (&state, '\0', sizeof (mbstate_t));
28898 if (mbrtowc (&wc, input + 3, 6, &state) != 4
28899 && mbtowc (&wc, input + 3, 6) == 4)
28900 return 2;
28901 }
28902 return 0;
28903 }
28904 _ACEOF
28905 if ac_fn_c_try_run "$LINENO"
28906 then :
28907 gl_cv_func_mbrtowc_sanitycheck=yes
28908 else $as_nop
28909 gl_cv_func_mbrtowc_sanitycheck=no
28910 fi
28911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28912 conftest.$ac_objext conftest.beam conftest.$ac_ext
28913 fi
28914
28915 fi
28916
28917 fi
28918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
28919 printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
28920
28921 REPLACE_MBSTATE_T=0
28922 case "$gl_cv_func_mbrtowc_incomplete_state" in
28923 *yes) ;;
28924 *) REPLACE_MBSTATE_T=1 ;;
28925 esac
28926 case "$gl_cv_func_mbrtowc_sanitycheck" in
28927 *yes) ;;
28928 *) REPLACE_MBSTATE_T=1 ;;
28929 esac
28930 else
28931 REPLACE_MBSTATE_T=1
28932 fi
28933
28934
28935
28936 if test $ac_cv_func_mbrtowc = no; then
28937 HAVE_MBRTOWC=0
28938 ac_fn_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
28939 #include <wchar.h>
28940
28941 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28942 if test "x$ac_cv_have_decl_mbrtowc" = xyes
28943 then :
28944 ac_have_decl=1
28945 else $as_nop
28946 ac_have_decl=0
28947 fi
28948 printf "%s\n" "#define HAVE_DECL_MBRTOWC $ac_have_decl" >>confdefs.h
28949
28950 if test $ac_cv_have_decl_mbrtowc = yes; then
28951 REPLACE_MBRTOWC=1
28952 fi
28953 else
28954 if test $REPLACE_MBSTATE_T = 1; then
28955 REPLACE_MBRTOWC=1
28956 else
28957
28958
28959
28960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
28961 printf %s "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
28962 if test ${gl_cv_func_mbrtowc_null_arg1+y}
28963 then :
28964 printf %s "(cached) " >&6
28965 else $as_nop
28966
28967 case "$host_os" in
28968 # Guess no on Solaris.
28969 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
28970 # Guess yes otherwise.
28971 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
28972 esac
28973 if test $LOCALE_FR_UTF8 != none; then
28974 if test "$cross_compiling" = yes
28975 then :
28976 :
28977 else $as_nop
28978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28979 /* end confdefs.h. */
28980
28981 #include <locale.h>
28982 #include <stdlib.h>
28983 #include <string.h>
28984 #include <wchar.h>
28985 int main ()
28986 {
28987 int result = 0;
28988
28989 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
28990 {
28991 char input[] = "\303\237er";
28992 mbstate_t state;
28993 wchar_t wc;
28994 size_t ret;
28995
28996 memset (&state, '\0', sizeof (mbstate_t));
28997 wc = (wchar_t) 0xBADFACE;
28998 ret = mbrtowc (&wc, input, 5, &state);
28999 if (ret != 2)
29000 result |= 1;
29001 if (!mbsinit (&state))
29002 result |= 2;
29003
29004 memset (&state, '\0', sizeof (mbstate_t));
29005 ret = mbrtowc (NULL, input, 5, &state);
29006 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
29007 result |= 4;
29008 if (!mbsinit (&state))
29009 result |= 8;
29010 }
29011 return result;
29012 }
29013 _ACEOF
29014 if ac_fn_c_try_run "$LINENO"
29015 then :
29016 gl_cv_func_mbrtowc_null_arg1=yes
29017 else $as_nop
29018 gl_cv_func_mbrtowc_null_arg1=no
29019 fi
29020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29021 conftest.$ac_objext conftest.beam conftest.$ac_ext
29022 fi
29023
29024 fi
29025
29026 fi
29027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
29028 printf "%s\n" "$gl_cv_func_mbrtowc_null_arg1" >&6; }
29029
29030
29031
29032
29033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
29034 printf %s "checking whether mbrtowc handles a NULL string argument... " >&6; }
29035 if test ${gl_cv_func_mbrtowc_null_arg2+y}
29036 then :
29037 printf %s "(cached) " >&6
29038 else $as_nop
29039
29040 case "$host_os" in
29041 # Guess no on OSF/1.
29042 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
29043 # Guess yes otherwise.
29044 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
29045 esac
29046 if test $LOCALE_FR_UTF8 != none; then
29047 if test "$cross_compiling" = yes
29048 then :
29049 :
29050 else $as_nop
29051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29052 /* end confdefs.h. */
29053
29054 #include <locale.h>
29055 #include <string.h>
29056 #include <wchar.h>
29057 int main ()
29058 {
29059 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
29060 {
29061 mbstate_t state;
29062 wchar_t wc;
29063 int ret;
29064
29065 memset (&state, '\0', sizeof (mbstate_t));
29066 wc = (wchar_t) 0xBADFACE;
29067 mbrtowc (&wc, NULL, 5, &state);
29068 /* Check that wc was not modified. */
29069 if (wc != (wchar_t) 0xBADFACE)
29070 return 2;
29071 }
29072 return 0;
29073 }
29074 _ACEOF
29075 if ac_fn_c_try_run "$LINENO"
29076 then :
29077 gl_cv_func_mbrtowc_null_arg2=yes
29078 else $as_nop
29079 gl_cv_func_mbrtowc_null_arg2=no
29080 fi
29081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29082 conftest.$ac_objext conftest.beam conftest.$ac_ext
29083 fi
29084
29085 fi
29086
29087 fi
29088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
29089 printf "%s\n" "$gl_cv_func_mbrtowc_null_arg2" >&6; }
29090
29091
29092
29093
29094
29095
29096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
29097 printf %s "checking whether mbrtowc has a correct return value... " >&6; }
29098 if test ${gl_cv_func_mbrtowc_retval+y}
29099 then :
29100 printf %s "(cached) " >&6
29101 else $as_nop
29102
29103 case "$host_os" in
29104 # Guess no on HP-UX, Solaris, native Windows.
29105 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
29106 # Guess yes otherwise.
29107 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
29108 esac
29109 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
29110 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
29111 if test "$cross_compiling" = yes
29112 then :
29113 :
29114 else $as_nop
29115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29116 /* end confdefs.h. */
29117
29118 #include <locale.h>
29119 #include <string.h>
29120 #include <wchar.h>
29121 int main ()
29122 {
29123 int result = 0;
29124 int found_some_locale = 0;
29125 /* This fails on Solaris. */
29126 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
29127 {
29128 char input[] = "B\303\274\303\237er"; /* "Büßer" */
29129 mbstate_t state;
29130 wchar_t wc;
29131
29132 memset (&state, '\0', sizeof (mbstate_t));
29133 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
29134 {
29135 input[1] = '\0';
29136 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
29137 result |= 1;
29138 }
29139 found_some_locale = 1;
29140 }
29141 /* This fails on HP-UX 11.11. */
29142 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
29143 {
29144 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
29145 mbstate_t state;
29146 wchar_t wc;
29147
29148 memset (&state, '\0', sizeof (mbstate_t));
29149 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
29150 {
29151 input[1] = '\0';
29152 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
29153 result |= 2;
29154 }
29155 found_some_locale = 1;
29156 }
29157 /* This fails on native Windows. */
29158 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
29159 {
29160 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
29161 mbstate_t state;
29162 wchar_t wc;
29163
29164 memset (&state, '\0', sizeof (mbstate_t));
29165 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
29166 {
29167 input[3] = '\0';
29168 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
29169 result |= 4;
29170 }
29171 found_some_locale = 1;
29172 }
29173 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
29174 {
29175 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
29176 mbstate_t state;
29177 wchar_t wc;
29178
29179 memset (&state, '\0', sizeof (mbstate_t));
29180 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
29181 {
29182 input[3] = '\0';
29183 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
29184 result |= 8;
29185 }
29186 found_some_locale = 1;
29187 }
29188 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
29189 {
29190 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
29191 mbstate_t state;
29192 wchar_t wc;
29193
29194 memset (&state, '\0', sizeof (mbstate_t));
29195 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
29196 {
29197 input[3] = '\0';
29198 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
29199 result |= 16;
29200 }
29201 found_some_locale = 1;
29202 }
29203 return (found_some_locale ? result : 77);
29204 }
29205 _ACEOF
29206 if ac_fn_c_try_run "$LINENO"
29207 then :
29208 gl_cv_func_mbrtowc_retval=yes
29209 else $as_nop
29210 if test $? != 77; then
29211 gl_cv_func_mbrtowc_retval=no
29212 fi
29213
29214 fi
29215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29216 conftest.$ac_objext conftest.beam conftest.$ac_ext
29217 fi
29218
29219 fi
29220
29221 fi
29222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
29223 printf "%s\n" "$gl_cv_func_mbrtowc_retval" >&6; }
29224
29225
29226
29227
29228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
29229 printf %s "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
29230 if test ${gl_cv_func_mbrtowc_nul_retval+y}
29231 then :
29232 printf %s "(cached) " >&6
29233 else $as_nop
29234
29235 case "$host_os" in
29236 # Guess no on Solaris 8 and 9.
29237 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
29238 # Guess yes otherwise.
29239 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
29240 esac
29241 if test $LOCALE_ZH_CN != none; then
29242 if test "$cross_compiling" = yes
29243 then :
29244 :
29245 else $as_nop
29246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29247 /* end confdefs.h. */
29248
29249 #include <locale.h>
29250 #include <string.h>
29251 #include <wchar.h>
29252 int main ()
29253 {
29254 /* This fails on Solaris 8 and 9. */
29255 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
29256 {
29257 mbstate_t state;
29258 wchar_t wc;
29259
29260 memset (&state, '\0', sizeof (mbstate_t));
29261 if (mbrtowc (&wc, "", 1, &state) != 0)
29262 return 2;
29263 }
29264 return 0;
29265 }
29266 _ACEOF
29267 if ac_fn_c_try_run "$LINENO"
29268 then :
29269 gl_cv_func_mbrtowc_nul_retval=yes
29270 else $as_nop
29271 gl_cv_func_mbrtowc_nul_retval=no
29272 fi
29273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29274 conftest.$ac_objext conftest.beam conftest.$ac_ext
29275 fi
29276
29277 fi
29278
29279 fi
29280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
29281 printf "%s\n" "$gl_cv_func_mbrtowc_nul_retval" >&6; }
29282
29283
29284
29285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5
29286 printf %s "checking whether mbrtowc stores incomplete characters... " >&6; }
29287 if test ${gl_cv_func_mbrtowc_stores_incomplete+y}
29288 then :
29289 printf %s "(cached) " >&6
29290 else $as_nop
29291
29292 case "$host_os" in
29293 # Guess yes on native Windows.
29294 mingw*) gl_cv_func_mbrtowc_stores_incomplete="guessing yes" ;;
29295 *) gl_cv_func_mbrtowc_stores_incomplete="guessing no" ;;
29296 esac
29297 case "$host_os" in
29298 mingw*)
29299 if test "$cross_compiling" = yes
29300 then :
29301 :
29302 else $as_nop
29303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29304 /* end confdefs.h. */
29305
29306 #include <locale.h>
29307 #include <string.h>
29308 #include <wchar.h>
29309 int main ()
29310 {
29311 int result = 0;
29312 if (setlocale (LC_ALL, "French_France.65001") != NULL)
29313 {
29314 wchar_t wc = (wchar_t) 0xBADFACE;
29315 mbstate_t state;
29316
29317 memset (&state, '\0', sizeof (mbstate_t));
29318 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
29319 && wc != (wchar_t) 0xBADFACE)
29320 result |= 1;
29321 }
29322 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
29323 {
29324 wchar_t wc = (wchar_t) 0xBADFACE;
29325 mbstate_t state;
29326
29327 memset (&state, '\0', sizeof (mbstate_t));
29328 if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2)
29329 && wc != (wchar_t) 0xBADFACE)
29330 result |= 2;
29331 }
29332 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
29333 {
29334 wchar_t wc = (wchar_t) 0xBADFACE;
29335 mbstate_t state;
29336
29337 memset (&state, '\0', sizeof (mbstate_t));
29338 if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2)
29339 && wc != (wchar_t) 0xBADFACE)
29340 result |= 4;
29341 }
29342 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
29343 {
29344 wchar_t wc = (wchar_t) 0xBADFACE;
29345 mbstate_t state;
29346
29347 memset (&state, '\0', sizeof (mbstate_t));
29348 if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2)
29349 && wc != (wchar_t) 0xBADFACE)
29350 result |= 8;
29351 }
29352 return result;
29353 }
29354 _ACEOF
29355 if ac_fn_c_try_run "$LINENO"
29356 then :
29357 gl_cv_func_mbrtowc_stores_incomplete=no
29358 else $as_nop
29359 gl_cv_func_mbrtowc_stores_incomplete=yes
29360 fi
29361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29362 conftest.$ac_objext conftest.beam conftest.$ac_ext
29363 fi
29364
29365 ;;
29366 *)
29367
29368 if test $LOCALE_FR_UTF8 != none; then
29369 if test "$cross_compiling" = yes
29370 then :
29371 :
29372 else $as_nop
29373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29374 /* end confdefs.h. */
29375
29376 #include <locale.h>
29377 #include <string.h>
29378 #include <wchar.h>
29379 int main ()
29380 {
29381 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
29382 {
29383 wchar_t wc = (wchar_t) 0xBADFACE;
29384 mbstate_t state;
29385
29386 memset (&state, '\0', sizeof (mbstate_t));
29387 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
29388 && wc != (wchar_t) 0xBADFACE)
29389 return 1;
29390 }
29391 return 0;
29392 }
29393 _ACEOF
29394 if ac_fn_c_try_run "$LINENO"
29395 then :
29396 gl_cv_func_mbrtowc_stores_incomplete=no
29397 else $as_nop
29398 gl_cv_func_mbrtowc_stores_incomplete=yes
29399 fi
29400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29401 conftest.$ac_objext conftest.beam conftest.$ac_ext
29402 fi
29403
29404 fi
29405 ;;
29406 esac
29407
29408 fi
29409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5
29410 printf "%s\n" "$gl_cv_func_mbrtowc_stores_incomplete" >&6; }
29411
29412
29413
29414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
29415 printf %s "checking whether mbrtowc works on empty input... " >&6; }
29416 if test ${gl_cv_func_mbrtowc_empty_input+y}
29417 then :
29418 printf %s "(cached) " >&6
29419 else $as_nop
29420
29421 case "$host_os" in
29422 # Guess no on AIX and glibc systems.
29423 aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;;
29424 # Guess yes on native Windows.
29425 mingw*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
29426 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
29427 esac
29428 if test "$cross_compiling" = yes
29429 then :
29430 :
29431 else $as_nop
29432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29433 /* end confdefs.h. */
29434
29435 #include <wchar.h>
29436 static wchar_t wc;
29437 static mbstate_t mbs;
29438 int
29439 main (void)
29440 {
29441 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
29442 }
29443 _ACEOF
29444 if ac_fn_c_try_run "$LINENO"
29445 then :
29446 gl_cv_func_mbrtowc_empty_input=yes
29447 else $as_nop
29448 gl_cv_func_mbrtowc_empty_input=no
29449 fi
29450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29451 conftest.$ac_objext conftest.beam conftest.$ac_ext
29452 fi
29453
29454
29455 fi
29456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
29457 printf "%s\n" "$gl_cv_func_mbrtowc_empty_input" >&6; }
29458
29459
29460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
29461 printf %s "checking whether the C locale is free of encoding errors... " >&6; }
29462 if test ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+y}
29463 then :
29464 printf %s "(cached) " >&6
29465 else $as_nop
29466
29467 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="$gl_cross_guess_normal"
29468
29469 if test "$cross_compiling" = yes
29470 then :
29471 case "$host_os" in
29472 # Guess yes on native Windows.
29473 mingw*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="guessing yes" ;;
29474 esac
29475
29476 else $as_nop
29477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29478 /* end confdefs.h. */
29479 #include <limits.h>
29480 #include <locale.h>
29481 #include <wchar.h>
29482
29483 int
29484 main (void)
29485 {
29486
29487 int i;
29488 char *locale = setlocale (LC_ALL, "C");
29489 if (! locale)
29490 return 2;
29491 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
29492 {
29493 char c = i;
29494 wchar_t wc;
29495 mbstate_t mbs = { 0, };
29496 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
29497 if (1 < ss)
29498 return 3;
29499 }
29500 return 0;
29501
29502 ;
29503 return 0;
29504 }
29505 _ACEOF
29506 if ac_fn_c_try_run "$LINENO"
29507 then :
29508 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=yes
29509 else $as_nop
29510 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=no
29511 fi
29512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29513 conftest.$ac_objext conftest.beam conftest.$ac_ext
29514 fi
29515
29516
29517 fi
29518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5
29519 printf "%s\n" "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; }
29520
29521 case "$gl_cv_func_mbrtowc_null_arg1" in
29522 *yes) ;;
29523 *)
29524 printf "%s\n" "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
29525
29526 REPLACE_MBRTOWC=1
29527 ;;
29528 esac
29529 case "$gl_cv_func_mbrtowc_null_arg2" in
29530 *yes) ;;
29531 *)
29532 printf "%s\n" "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
29533
29534 REPLACE_MBRTOWC=1
29535 ;;
29536 esac
29537 case "$gl_cv_func_mbrtowc_retval" in
29538 *yes) ;;
29539 *)
29540 printf "%s\n" "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
29541
29542 REPLACE_MBRTOWC=1
29543 ;;
29544 esac
29545 case "$gl_cv_func_mbrtowc_nul_retval" in
29546 *yes) ;;
29547 *)
29548 printf "%s\n" "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
29549
29550 REPLACE_MBRTOWC=1
29551 ;;
29552 esac
29553 case "$gl_cv_func_mbrtowc_stores_incomplete" in
29554 *no) ;;
29555 *)
29556 printf "%s\n" "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h
29557
29558 REPLACE_MBRTOWC=1
29559 ;;
29560 esac
29561 case "$gl_cv_func_mbrtowc_empty_input" in
29562 *yes) ;;
29563 *)
29564 printf "%s\n" "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
29565
29566 REPLACE_MBRTOWC=1
29567 ;;
29568 esac
29569 case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in
29570 *yes) ;;
29571 *)
29572 printf "%s\n" "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
29573
29574 REPLACE_MBRTOWC=1
29575 ;;
29576 esac
29577 fi
29578 fi
29579 if test $REPLACE_MBSTATE_T = 1; then
29580 case "$host_os" in
29581 mingw*) MBRTOWC_LIB= ;;
29582 *)
29583
29584
29585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
29586 printf %s "checking whether imported symbols can be declared weak... " >&6; }
29587 if test ${gl_cv_have_weak+y}
29588 then :
29589 printf %s "(cached) " >&6
29590 else $as_nop
29591 case "$host_os" in
29592 cygwin*)
29593 gl_cv_have_weak="guessing no"
29594 ;;
29595 *)
29596 gl_cv_have_weak=no
29597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29598 /* end confdefs.h. */
29599 extern void xyzzy ();
29600 #pragma weak xyzzy
29601 int
29602 main (void)
29603 {
29604 xyzzy();
29605 ;
29606 return 0;
29607 }
29608 _ACEOF
29609 if ac_fn_c_try_link "$LINENO"
29610 then :
29611 gl_cv_have_weak=maybe
29612 fi
29613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29614 conftest$ac_exeext conftest.$ac_ext
29615 if test $gl_cv_have_weak = maybe; then
29616 if test "$cross_compiling" = yes
29617 then :
29618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29619 /* end confdefs.h. */
29620 #ifdef __ELF__
29621 Extensible Linking Format
29622 #endif
29623
29624 _ACEOF
29625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29626 $EGREP "Extensible Linking Format" >/dev/null 2>&1
29627 then :
29628 gl_cv_have_weak="guessing yes"
29629 else $as_nop
29630 gl_cv_have_weak="guessing no"
29631 fi
29632 rm -rf conftest*
29633
29634
29635 else $as_nop
29636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29637 /* end confdefs.h. */
29638
29639 #include <stdio.h>
29640 #pragma weak fputs
29641 int main ()
29642 {
29643 return (fputs == NULL);
29644 }
29645 _ACEOF
29646 if ac_fn_c_try_run "$LINENO"
29647 then :
29648 gl_cv_have_weak=yes
29649 else $as_nop
29650 gl_cv_have_weak=no
29651 fi
29652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29653 conftest.$ac_objext conftest.beam conftest.$ac_ext
29654 fi
29655
29656 fi
29657 ;;
29658 esac
29659 case " $LDFLAGS " in
29660 *" -static "*) gl_cv_have_weak=no ;;
29661 esac
29662 case "$gl_cv_have_weak" in
29663 *yes)
29664 case "$host_os" in
29665 freebsd* | dragonfly* | midnightbsd*)
29666 : > conftest1.c
29667 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
29668 cat <<EOF > conftest2.c
29669 #include <pthread.h>
29670 #pragma weak pthread_mutexattr_gettype
29671 int main ()
29672 {
29673 return (pthread_mutexattr_gettype != NULL);
29674 }
29675 EOF
29676 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
29677 || gl_cv_have_weak=no
29678 rm -f conftest1.c libempty.so conftest2.c conftest
29679 ;;
29680 esac
29681 ;;
29682 esac
29683
29684 fi
29685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
29686 printf "%s\n" "$gl_cv_have_weak" >&6; }
29687 case "$gl_cv_have_weak" in
29688 *yes)
29689
29690 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
29691
29692 ;;
29693 esac
29694
29695 case "$gl_cv_have_weak" in
29696 *yes) MBRTOWC_LIB= ;;
29697 *) MBRTOWC_LIB="$LIBPTHREAD" ;;
29698 esac
29699 ;;
29700 esac
29701 else
29702 MBRTOWC_LIB=
29703 fi
29704
29705 LIB_MBRTOWC="$MBRTOWC_LIB"
29706
29707
29708
29709 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
29710 GL_COND_OBJ_MBRTOWC_TRUE=
29711 GL_COND_OBJ_MBRTOWC_FALSE='#'
29712 else
29713 GL_COND_OBJ_MBRTOWC_TRUE='#'
29714 GL_COND_OBJ_MBRTOWC_FALSE=
29715 fi
29716 :
29717 if test -z "${GL_COND_OBJ_MBRTOWC_TRUE}" && test -z "${GL_COND_OBJ_MBRTOWC_FALSE}"; then
29718 GL_COND_OBJ_MBRTOWC_TRUE='#'
29719 GL_COND_OBJ_MBRTOWC_FALSE='#'
29720 fi
29721
29722 if test -z "$GL_COND_OBJ_MBRTOWC_TRUE"; then :
29723
29724 if test $REPLACE_MBSTATE_T = 1; then
29725
29726
29727
29728
29729
29730
29731
29732
29733 gl_paper_LIBOBJS="$gl_paper_LIBOBJS lc-charset-dispatch.$ac_objext"
29734
29735
29736
29737
29738
29739
29740
29741
29742
29743 gl_paper_LIBOBJS="$gl_paper_LIBOBJS mbtowc-lock.$ac_objext"
29744
29745
29746
29747
29748 CFLAG_VISIBILITY=
29749 HAVE_VISIBILITY=0
29750 if test -n "$GCC"; then
29751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
29752 printf %s "checking whether the -Werror option is usable... " >&6; }
29753 if test ${gl_cv_cc_vis_werror+y}
29754 then :
29755 printf %s "(cached) " >&6
29756 else $as_nop
29757 gl_save_CFLAGS="$CFLAGS"
29758 CFLAGS="$CFLAGS -Werror"
29759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29760 /* end confdefs.h. */
29761
29762 int
29763 main (void)
29764 {
29765
29766 ;
29767 return 0;
29768 }
29769 _ACEOF
29770 if ac_fn_c_try_compile "$LINENO"
29771 then :
29772 gl_cv_cc_vis_werror=yes
29773 else $as_nop
29774 gl_cv_cc_vis_werror=no
29775 fi
29776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29777 CFLAGS="$gl_save_CFLAGS"
29778
29779 fi
29780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
29781 printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
29782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
29783 printf %s "checking for simple visibility declarations... " >&6; }
29784 if test ${gl_cv_cc_visibility+y}
29785 then :
29786 printf %s "(cached) " >&6
29787 else $as_nop
29788 gl_save_CFLAGS="$CFLAGS"
29789 CFLAGS="$CFLAGS -fvisibility=hidden"
29790 if test $gl_cv_cc_vis_werror = yes; then
29791 CFLAGS="$CFLAGS -Werror"
29792 fi
29793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29794 /* end confdefs.h. */
29795 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
29796 extern __attribute__((__visibility__("default"))) int exportedvar;
29797 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
29798 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
29799 void dummyfunc (void);
29800 int hiddenvar;
29801 int exportedvar;
29802 int hiddenfunc (void) { return 51; }
29803 int exportedfunc (void) { return 1225736919; }
29804 void dummyfunc (void) {}
29805
29806 int
29807 main (void)
29808 {
29809
29810 ;
29811 return 0;
29812 }
29813 _ACEOF
29814 if ac_fn_c_try_compile "$LINENO"
29815 then :
29816 gl_cv_cc_visibility=yes
29817 else $as_nop
29818 gl_cv_cc_visibility=no
29819 fi
29820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29821 CFLAGS="$gl_save_CFLAGS"
29822
29823 fi
29824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
29825 printf "%s\n" "$gl_cv_cc_visibility" >&6; }
29826 if test $gl_cv_cc_visibility = yes; then
29827 CFLAG_VISIBILITY="-fvisibility=hidden"
29828 HAVE_VISIBILITY=1
29829 fi
29830 fi
29831
29832
29833
29834 printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
29835
29836
29837
29838 fi
29839
29840
29841 :
29842
29843
29844 fi
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859 GL_GL_PAPER_GNULIB_MBRTOWC=1
29860
29861
29862
29863
29864
29865 printf "%s\n" "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
29866
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876
29877
29878
29879
29880
29881 if case "$host_os" in
29882 mingw*) true ;;
29883 *) test $ac_cv_func_mbsinit = yes ;;
29884 esac \
29885 && test $ac_cv_func_mbrtowc = yes; then
29886
29887
29888
29889
29890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
29891 printf %s "checking whether mbrtowc handles incomplete characters... " >&6; }
29892 if test ${gl_cv_func_mbrtowc_incomplete_state+y}
29893 then :
29894 printf %s "(cached) " >&6
29895 else $as_nop
29896
29897 case "$host_os" in
29898 # Guess no on AIX and OSF/1.
29899 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
29900 # Guess yes otherwise.
29901 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
29902 esac
29903 if test $LOCALE_JA != none; then
29904 if test "$cross_compiling" = yes
29905 then :
29906 :
29907 else $as_nop
29908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29909 /* end confdefs.h. */
29910
29911 #include <locale.h>
29912 #include <string.h>
29913 #include <wchar.h>
29914 int main ()
29915 {
29916 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
29917 {
29918 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
29919 mbstate_t state;
29920 wchar_t wc;
29921
29922 memset (&state, '\0', sizeof (mbstate_t));
29923 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
29924 if (mbsinit (&state))
29925 return 2;
29926 }
29927 return 0;
29928 }
29929 _ACEOF
29930 if ac_fn_c_try_run "$LINENO"
29931 then :
29932 gl_cv_func_mbrtowc_incomplete_state=yes
29933 else $as_nop
29934 gl_cv_func_mbrtowc_incomplete_state=no
29935 fi
29936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29937 conftest.$ac_objext conftest.beam conftest.$ac_ext
29938 fi
29939
29940 else
29941 if test $LOCALE_FR_UTF8 != none; then
29942 if test "$cross_compiling" = yes
29943 then :
29944 :
29945 else $as_nop
29946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29947 /* end confdefs.h. */
29948
29949 #include <locale.h>
29950 #include <string.h>
29951 #include <wchar.h>
29952 int main ()
29953 {
29954 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
29955 {
29956 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
29957 mbstate_t state;
29958 wchar_t wc;
29959
29960 memset (&state, '\0', sizeof (mbstate_t));
29961 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
29962 if (mbsinit (&state))
29963 return 2;
29964 }
29965 return 0;
29966 }
29967 _ACEOF
29968 if ac_fn_c_try_run "$LINENO"
29969 then :
29970 gl_cv_func_mbrtowc_incomplete_state=yes
29971 else $as_nop
29972 gl_cv_func_mbrtowc_incomplete_state=no
29973 fi
29974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29975 conftest.$ac_objext conftest.beam conftest.$ac_ext
29976 fi
29977
29978 fi
29979 fi
29980
29981 fi
29982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
29983 printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
29984
29985
29986
29987
29988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
29989 printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; }
29990 if test ${gl_cv_func_mbrtowc_sanitycheck+y}
29991 then :
29992 printf %s "(cached) " >&6
29993 else $as_nop
29994
29995 case "$host_os" in
29996 # Guess no on Solaris 8.
29997 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
29998 # Guess yes otherwise.
29999 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
30000 esac
30001 if test $LOCALE_ZH_CN != none; then
30002 if test "$cross_compiling" = yes
30003 then :
30004 :
30005 else $as_nop
30006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30007 /* end confdefs.h. */
30008
30009 #include <locale.h>
30010 #include <stdlib.h>
30011 #include <string.h>
30012 #include <wchar.h>
30013 int main ()
30014 {
30015 /* This fails on Solaris 8:
30016 mbrtowc returns 2, and sets wc to 0x00F0.
30017 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
30018 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
30019 {
30020 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
30021 mbstate_t state;
30022 wchar_t wc;
30023
30024 memset (&state, '\0', sizeof (mbstate_t));
30025 if (mbrtowc (&wc, input + 3, 6, &state) != 4
30026 && mbtowc (&wc, input + 3, 6) == 4)
30027 return 2;
30028 }
30029 return 0;
30030 }
30031 _ACEOF
30032 if ac_fn_c_try_run "$LINENO"
30033 then :
30034 gl_cv_func_mbrtowc_sanitycheck=yes
30035 else $as_nop
30036 gl_cv_func_mbrtowc_sanitycheck=no
30037 fi
30038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30039 conftest.$ac_objext conftest.beam conftest.$ac_ext
30040 fi
30041
30042 fi
30043
30044 fi
30045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
30046 printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
30047
30048 REPLACE_MBSTATE_T=0
30049 case "$gl_cv_func_mbrtowc_incomplete_state" in
30050 *yes) ;;
30051 *) REPLACE_MBSTATE_T=1 ;;
30052 esac
30053 case "$gl_cv_func_mbrtowc_sanitycheck" in
30054 *yes) ;;
30055 *) REPLACE_MBSTATE_T=1 ;;
30056 esac
30057 else
30058 REPLACE_MBSTATE_T=1
30059 fi
30060
30061
30062
30063 if test $ac_cv_func_mbsinit = no; then
30064 HAVE_MBSINIT=0
30065 ac_fn_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
30066 #include <wchar.h>
30067
30068 " "$ac_c_undeclared_builtin_options" "CFLAGS"
30069 if test "x$ac_cv_have_decl_mbsinit" = xyes
30070 then :
30071 ac_have_decl=1
30072 else $as_nop
30073 ac_have_decl=0
30074 fi
30075 printf "%s\n" "#define HAVE_DECL_MBSINIT $ac_have_decl" >>confdefs.h
30076
30077 if test $ac_cv_have_decl_mbsinit = yes; then
30078 REPLACE_MBSINIT=1
30079 fi
30080 else
30081 if test $REPLACE_MBSTATE_T = 1; then
30082 REPLACE_MBSINIT=1
30083 else
30084 case "$host_os" in
30085 mingw*) REPLACE_MBSINIT=1 ;;
30086 esac
30087 fi
30088 fi
30089
30090
30091 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
30092 GL_COND_OBJ_MBSINIT_TRUE=
30093 GL_COND_OBJ_MBSINIT_FALSE='#'
30094 else
30095 GL_COND_OBJ_MBSINIT_TRUE='#'
30096 GL_COND_OBJ_MBSINIT_FALSE=
30097 fi
30098 :
30099 if test -z "${GL_COND_OBJ_MBSINIT_TRUE}" && test -z "${GL_COND_OBJ_MBSINIT_FALSE}"; then
30100 GL_COND_OBJ_MBSINIT_TRUE='#'
30101 GL_COND_OBJ_MBSINIT_FALSE='#'
30102 fi
30103
30104 if test -z "$GL_COND_OBJ_MBSINIT_TRUE"; then :
30105
30106
30107 :
30108
30109
30110 fi
30111
30112
30113
30114
30115
30116
30117
30118
30119
30120
30121
30122
30123
30124
30125 GL_GL_PAPER_GNULIB_MBSINIT=1
30126
30127
30128
30129
30130
30131 printf "%s\n" "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
30132
30133
30134
30135
30136
30137 if test $REPLACE_MEMCHR = 1; then
30138 GL_COND_OBJ_MEMCHR_TRUE=
30139 GL_COND_OBJ_MEMCHR_FALSE='#'
30140 else
30141 GL_COND_OBJ_MEMCHR_TRUE='#'
30142 GL_COND_OBJ_MEMCHR_FALSE=
30143 fi
30144 :
30145 if test -z "${GL_COND_OBJ_MEMCHR_TRUE}" && test -z "${GL_COND_OBJ_MEMCHR_FALSE}"; then
30146 GL_COND_OBJ_MEMCHR_TRUE='#'
30147 GL_COND_OBJ_MEMCHR_FALSE='#'
30148 fi
30149
30150 if test -z "$GL_COND_OBJ_MEMCHR_TRUE"; then :
30151
30152
30153 ac_fn_c_check_header_compile "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
30154 if test "x$ac_cv_header_bp_sym_h" = xyes
30155 then :
30156 printf "%s\n" "#define HAVE_BP_SYM_H 1" >>confdefs.h
30157
30158 fi
30159
30160
30161
30162 fi
30163
30164
30165
30166
30167
30168
30169
30170
30171
30172
30173
30174
30175
30176
30177 GL_GL_PAPER_GNULIB_MEMCHR=1
30178
30179
30180
30181
30182
30183 printf "%s\n" "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
30184
30185
30186
30187
30188
30189
30190
30191
30192
30193
30194
30195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mempcpy" >&5
30196 printf %s "checking for mempcpy... " >&6; }
30197 if test ${gl_cv_onwards_func_mempcpy+y}
30198 then :
30199 printf %s "(cached) " >&6
30200 else $as_nop
30201
30202 exec 9>&6 6>/dev/null
30203
30204 case "$host_os" in
30205
30206 linux*-android*)
30207 ac_fn_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "#include <string.h>
30208 " "$ac_c_undeclared_builtin_options" "CFLAGS"
30209 if test "x$ac_cv_have_decl_mempcpy" = xyes
30210 then :
30211
30212 fi
30213 if test $ac_cv_have_decl_mempcpy = yes; then
30214 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
30215 if test "x$ac_cv_func_mempcpy" = xyes
30216 then :
30217
30218 fi
30219
30220 if test $ac_cv_func_mempcpy = yes; then
30221 gl_cv_onwards_func_mempcpy=yes
30222 else
30223 gl_cv_onwards_func_mempcpy='future OS version'
30224 fi
30225 else
30226 gl_cv_onwards_func_mempcpy='future OS version'
30227 fi
30228 ;;
30229
30230
30231 *)
30232 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
30233 if test "x$ac_cv_func_mempcpy" = xyes
30234 then :
30235
30236 fi
30237
30238 gl_cv_onwards_func_mempcpy=$ac_cv_func_mempcpy
30239 ;;
30240
30241 esac
30242
30243 exec 6>&9 9>&-
30244
30245
30246 fi
30247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_mempcpy" >&5
30248 printf "%s\n" "$gl_cv_onwards_func_mempcpy" >&6; }
30249
30250 case "$gl_cv_onwards_func_mempcpy" in
30251 future*) ac_cv_func_mempcpy=no ;;
30252 *) ac_cv_func_mempcpy=$gl_cv_onwards_func_mempcpy ;;
30253 esac
30254 if test $ac_cv_func_mempcpy = yes; then
30255
30256 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
30257
30258 fi
30259
30260
30261 if test $ac_cv_func_mempcpy = no; then
30262 HAVE_MEMPCPY=0
30263 case "$gl_cv_onwards_func_mempcpy" in
30264 future*) REPLACE_MEMPCPY=1 ;;
30265 esac
30266 fi
30267
30268
30269 if test $HAVE_MEMPCPY = 0 || test $REPLACE_MEMPCPY = 1; then
30270 GL_COND_OBJ_MEMPCPY_TRUE=
30271 GL_COND_OBJ_MEMPCPY_FALSE='#'
30272 else
30273 GL_COND_OBJ_MEMPCPY_TRUE='#'
30274 GL_COND_OBJ_MEMPCPY_FALSE=
30275 fi
30276 :
30277 if test -z "${GL_COND_OBJ_MEMPCPY_TRUE}" && test -z "${GL_COND_OBJ_MEMPCPY_FALSE}"; then
30278 GL_COND_OBJ_MEMPCPY_TRUE='#'
30279 GL_COND_OBJ_MEMPCPY_FALSE='#'
30280 fi
30281
30282 if test -z "$GL_COND_OBJ_MEMPCPY_TRUE"; then :
30283
30284
30285 :
30286
30287
30288 fi
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303 GL_GL_PAPER_GNULIB_MEMPCPY=1
30304
30305
30306
30307
30308
30309 printf "%s\n" "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
30310
30311
30312
30313
30314
30315
30316
30317
30318 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
30319 GL_COND_OBJ_MSVC_INVAL_TRUE=
30320 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
30321 else
30322 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
30323 GL_COND_OBJ_MSVC_INVAL_FALSE=
30324 fi
30325 :
30326 if test -z "${GL_COND_OBJ_MSVC_INVAL_TRUE}" && test -z "${GL_COND_OBJ_MSVC_INVAL_FALSE}"; then
30327 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
30328 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
30329 fi
30330
30331
30332
30333 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
30334 GL_COND_OBJ_MSVC_NOTHROW_TRUE=
30335 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
30336 else
30337 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
30338 GL_COND_OBJ_MSVC_NOTHROW_FALSE=
30339 fi
30340 :
30341 if test -z "${GL_COND_OBJ_MSVC_NOTHROW_TRUE}" && test -z "${GL_COND_OBJ_MSVC_NOTHROW_FALSE}"; then
30342 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
30343 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
30344 fi
30345
30346
30347
30348 printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h
30349
30350
30351
30352
30353
30354
30355 case "$host_os" in
30356 mingw* | pw*)
30357 REPLACE_OPEN=1
30358 ;;
30359 *)
30360
30361 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
30362 REPLACE_OPEN=1
30363 fi
30364
30365
30366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
30367 printf %s "checking whether open recognizes a trailing slash... " >&6; }
30368 if test ${gl_cv_func_open_slash+y}
30369 then :
30370 printf %s "(cached) " >&6
30371 else $as_nop
30372 # Assume that if we have lstat, we can also check symlinks.
30373 if test $ac_cv_func_lstat = yes; then
30374 touch conftest.tmp
30375 ln -s conftest.tmp conftest.lnk
30376 fi
30377 if test "$cross_compiling" = yes
30378 then :
30379
30380 case "$host_os" in
30381 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
30382 gl_cv_func_open_slash="guessing no" ;;
30383 *)
30384 gl_cv_func_open_slash="guessing yes" ;;
30385 esac
30386
30387 else $as_nop
30388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30389 /* end confdefs.h. */
30390
30391 #include <fcntl.h>
30392 #if HAVE_UNISTD_H
30393 # include <unistd.h>
30394 #endif
30395
30396
30397 $gl_mda_defines
30398
30399 int main ()
30400 {
30401 int result = 0;
30402 #if HAVE_LSTAT
30403 if (open ("conftest.lnk/", O_RDONLY) != -1)
30404 result |= 1;
30405 #endif
30406 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
30407 result |= 2;
30408 return result;
30409 }
30410 _ACEOF
30411 if ac_fn_c_try_run "$LINENO"
30412 then :
30413 gl_cv_func_open_slash=yes
30414 else $as_nop
30415 gl_cv_func_open_slash=no
30416 fi
30417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30418 conftest.$ac_objext conftest.beam conftest.$ac_ext
30419 fi
30420
30421 rm -f conftest.sl conftest.tmp conftest.lnk
30422
30423 fi
30424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
30425 printf "%s\n" "$gl_cv_func_open_slash" >&6; }
30426 case "$gl_cv_func_open_slash" in
30427 *no)
30428
30429 printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
30430
30431 ;;
30432 esac
30433
30434 case "$gl_cv_func_open_slash" in
30435 *no)
30436 REPLACE_OPEN=1
30437 ;;
30438 esac
30439 ;;
30440 esac
30441
30442
30443
30444
30445 if test $REPLACE_OPEN = 1; then
30446 GL_COND_OBJ_OPEN_TRUE=
30447 GL_COND_OBJ_OPEN_FALSE='#'
30448 else
30449 GL_COND_OBJ_OPEN_TRUE='#'
30450 GL_COND_OBJ_OPEN_FALSE=
30451 fi
30452 :
30453 if test -z "${GL_COND_OBJ_OPEN_TRUE}" && test -z "${GL_COND_OBJ_OPEN_FALSE}"; then
30454 GL_COND_OBJ_OPEN_TRUE='#'
30455 GL_COND_OBJ_OPEN_FALSE='#'
30456 fi
30457
30458 if test -z "$GL_COND_OBJ_OPEN_TRUE"; then :
30459
30460
30461
30462 :
30463
30464
30465 fi
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475 GL_GL_PAPER_GNULIB_OPEN=1
30476
30477
30478
30479
30480
30481 printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h
30482
30483
30484
30485
30486
30487
30488 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
30489 " "$ac_c_undeclared_builtin_options" "CFLAGS"
30490 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
30491 then :
30492 ac_have_decl=1
30493 else $as_nop
30494 ac_have_decl=0
30495 fi
30496 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
30497
30498 ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
30499 " "$ac_c_undeclared_builtin_options" "CFLAGS"
30500 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
30501 then :
30502 ac_have_decl=1
30503 else $as_nop
30504 ac_have_decl=0
30505 fi
30506 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
30507
30508
30509 :
30510
30511
30512
30513 :
30514
30515
30516
30517
30518
30519 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
30520 if test "x$ac_cv_func_rawmemchr" = xyes
30521 then :
30522 printf "%s\n" "#define HAVE_RAWMEMCHR 1" >>confdefs.h
30523
30524 fi
30525
30526 if test $ac_cv_func_rawmemchr = no; then
30527 HAVE_RAWMEMCHR=0
30528 fi
30529
30530
30531 if test $HAVE_RAWMEMCHR = 0; then
30532 GL_COND_OBJ_RAWMEMCHR_TRUE=
30533 GL_COND_OBJ_RAWMEMCHR_FALSE='#'
30534 else
30535 GL_COND_OBJ_RAWMEMCHR_TRUE='#'
30536 GL_COND_OBJ_RAWMEMCHR_FALSE=
30537 fi
30538 :
30539 if test -z "${GL_COND_OBJ_RAWMEMCHR_TRUE}" && test -z "${GL_COND_OBJ_RAWMEMCHR_FALSE}"; then
30540 GL_COND_OBJ_RAWMEMCHR_TRUE='#'
30541 GL_COND_OBJ_RAWMEMCHR_FALSE='#'
30542 fi
30543
30544 if test -z "$GL_COND_OBJ_RAWMEMCHR_TRUE"; then :
30545
30546 :
30547
30548 fi
30549
30550
30551
30552
30553
30554
30555
30556
30557
30558
30559
30560
30561
30562
30563 GL_GL_PAPER_GNULIB_RAWMEMCHR=1
30564
30565
30566
30567
30568
30569 printf "%s\n" "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
30570
30571
30572
30573
30574
30575
30576 if test $ac_cv_func_readlink = no; then
30577 HAVE_READLINK=0
30578 else
30579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
30580 printf %s "checking whether readlink signature is correct... " >&6; }
30581 if test ${gl_cv_decl_readlink_works+y}
30582 then :
30583 printf %s "(cached) " >&6
30584 else $as_nop
30585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30586 /* end confdefs.h. */
30587 #include <unistd.h>
30588 /* Cause compilation failure if original declaration has wrong type. */
30589 ssize_t readlink (const char *, char *, size_t);
30590 int
30591 main (void)
30592 {
30593
30594 ;
30595 return 0;
30596 }
30597 _ACEOF
30598 if ac_fn_c_try_compile "$LINENO"
30599 then :
30600 gl_cv_decl_readlink_works=yes
30601 else $as_nop
30602 gl_cv_decl_readlink_works=no
30603 fi
30604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30605 fi
30606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
30607 printf "%s\n" "$gl_cv_decl_readlink_works" >&6; }
30608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
30609 printf %s "checking whether readlink handles trailing slash correctly... " >&6; }
30610 if test ${gl_cv_func_readlink_trailing_slash+y}
30611 then :
30612 printf %s "(cached) " >&6
30613 else $as_nop
30614 # We have readlink, so assume ln -s works.
30615 ln -s conftest.no-such conftest.link
30616 ln -s conftest.link conftest.lnk2
30617 if test "$cross_compiling" = yes
30618 then :
30619 case "$host_os" in
30620 # Guess yes on Linux or glibc systems.
30621 linux-* | linux | *-gnu* | gnu*)
30622 gl_cv_func_readlink_trailing_slash="guessing yes" ;;
30623 # Guess no on AIX or HP-UX.
30624 aix* | hpux*)
30625 gl_cv_func_readlink_trailing_slash="guessing no" ;;
30626 # If we don't know, obey --enable-cross-guesses.
30627 *)
30628 gl_cv_func_readlink_trailing_slash="$gl_cross_guess_normal" ;;
30629 esac
30630
30631 else $as_nop
30632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30633 /* end confdefs.h. */
30634 #include <unistd.h>
30635
30636 int
30637 main (void)
30638 {
30639 char buf[20];
30640 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
30641 ;
30642 return 0;
30643 }
30644 _ACEOF
30645 if ac_fn_c_try_run "$LINENO"
30646 then :
30647 gl_cv_func_readlink_trailing_slash=yes
30648 else $as_nop
30649 gl_cv_func_readlink_trailing_slash=no
30650 fi
30651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30652 conftest.$ac_objext conftest.beam conftest.$ac_ext
30653 fi
30654
30655 rm -f conftest.link conftest.lnk2
30656 fi
30657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_trailing_slash" >&5
30658 printf "%s\n" "$gl_cv_func_readlink_trailing_slash" >&6; }
30659 case "$gl_cv_func_readlink_trailing_slash" in
30660 *yes)
30661 if test "$gl_cv_decl_readlink_works" != yes; then
30662 REPLACE_READLINK=1
30663 fi
30664 ;;
30665 *)
30666
30667 printf "%s\n" "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
30668
30669 REPLACE_READLINK=1
30670 ;;
30671 esac
30672
30673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink truncates results correctly" >&5
30674 printf %s "checking whether readlink truncates results correctly... " >&6; }
30675 if test ${gl_cv_func_readlink_truncate+y}
30676 then :
30677 printf %s "(cached) " >&6
30678 else $as_nop
30679 # We have readlink, so assume ln -s works.
30680 ln -s ab conftest.link
30681 if test "$cross_compiling" = yes
30682 then :
30683 case "$host_os" in
30684 # Guess yes on Linux or glibc systems.
30685 linux-* | linux | *-gnu* | gnu*)
30686 gl_cv_func_readlink_truncate="guessing yes" ;;
30687 # Guess no on AIX or HP-UX.
30688 aix* | hpux*)
30689 gl_cv_func_readlink_truncate="guessing no" ;;
30690 # If we don't know, obey --enable-cross-guesses.
30691 *)
30692 gl_cv_func_readlink_truncate="$gl_cross_guess_normal" ;;
30693 esac
30694
30695 else $as_nop
30696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30697 /* end confdefs.h. */
30698 #include <unistd.h>
30699
30700 int
30701 main (void)
30702 {
30703 char c;
30704 return readlink ("conftest.link", &c, 1) != 1;
30705 ;
30706 return 0;
30707 }
30708 _ACEOF
30709 if ac_fn_c_try_run "$LINENO"
30710 then :
30711 gl_cv_func_readlink_truncate=yes
30712 else $as_nop
30713 gl_cv_func_readlink_truncate=no
30714 fi
30715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30716 conftest.$ac_objext conftest.beam conftest.$ac_ext
30717 fi
30718
30719 rm -f conftest.link conftest.lnk2
30720 fi
30721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_truncate" >&5
30722 printf "%s\n" "$gl_cv_func_readlink_truncate" >&6; }
30723 case $gl_cv_func_readlink_truncate in
30724 *yes)
30725 if test "$gl_cv_decl_readlink_works" != yes; then
30726 REPLACE_READLINK=1
30727 fi
30728 ;;
30729 *)
30730
30731 printf "%s\n" "#define READLINK_TRUNCATE_BUG 1" >>confdefs.h
30732
30733 REPLACE_READLINK=1
30734 ;;
30735 esac
30736 fi
30737
30738
30739 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
30740 GL_COND_OBJ_READLINK_TRUE=
30741 GL_COND_OBJ_READLINK_FALSE='#'
30742 else
30743 GL_COND_OBJ_READLINK_TRUE='#'
30744 GL_COND_OBJ_READLINK_FALSE=
30745 fi
30746 :
30747 if test -z "${GL_COND_OBJ_READLINK_TRUE}" && test -z "${GL_COND_OBJ_READLINK_FALSE}"; then
30748 GL_COND_OBJ_READLINK_TRUE='#'
30749 GL_COND_OBJ_READLINK_FALSE='#'
30750 fi
30751
30752 if test -z "$GL_COND_OBJ_READLINK_TRUE"; then :
30753
30754
30755 :
30756
30757
30758 fi
30759
30760
30761
30762
30763
30764
30765
30766
30767
30768 GL_GL_PAPER_GNULIB_READLINK=1
30769
30770
30771
30772
30773
30774 printf "%s\n" "#define GNULIB_TEST_READLINK 1" >>confdefs.h
30775
30776
30777
30778
30779
30780
30781 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 0; then
30782
30783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realloc (0, 0) returns nonnull" >&5
30784 printf %s "checking whether realloc (0, 0) returns nonnull... " >&6; }
30785 if test ${ac_cv_func_realloc_0_nonnull+y}
30786 then :
30787 printf %s "(cached) " >&6
30788 else $as_nop
30789 if test "$cross_compiling" = yes
30790 then :
30791 case "$host_os" in
30792 # Guess yes on platforms where we know the result.
30793 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
30794 | gnu* | *-musl* | midipix* | midnightbsd* \
30795 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
30796 ac_cv_func_realloc_0_nonnull="guessing yes" ;;
30797 # If we don't know, obey --enable-cross-guesses.
30798 *) ac_cv_func_realloc_0_nonnull="$gl_cross_guess_normal" ;;
30799 esac
30800
30801 else $as_nop
30802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30803 /* end confdefs.h. */
30804 #include <stdlib.h>
30805
30806 int
30807 main (void)
30808 {
30809 void *p = realloc (0, 0);
30810 void * volatile vp = p;
30811 int result = !vp;
30812 free (p);
30813 return result;
30814 ;
30815 return 0;
30816 }
30817
30818 _ACEOF
30819 if ac_fn_c_try_run "$LINENO"
30820 then :
30821 ac_cv_func_realloc_0_nonnull=yes
30822 else $as_nop
30823 ac_cv_func_realloc_0_nonnull=no
30824 fi
30825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30826 conftest.$ac_objext conftest.beam conftest.$ac_ext
30827 fi
30828
30829
30830 fi
30831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
30832 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
30833 case $ac_cv_func_realloc_0_nonnull in #(
30834 *yes) :
30835 ;; #(
30836 *) :
30837 REPLACE_REALLOC_FOR_REALLOC_GNU=1 ;;
30838 esac
30839
30840 fi
30841
30842 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then
30843
30844
30845
30846
30847
30848
30849
30850
30851 gl_paper_LIBOBJS="$gl_paper_LIBOBJS realloc.$ac_objext"
30852
30853 fi
30854
30855
30856
30857
30858
30859
30860
30861
30862
30863 GL_GL_PAPER_GNULIB_REALLOC_GNU=1
30864
30865
30866
30867
30868
30869 printf "%s\n" "#define GNULIB_TEST_REALLOC_GNU 1" >>confdefs.h
30870
30871
30872
30873
30874
30875
30876 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
30877 REPLACE_REALLOC_FOR_REALLOC_POSIX=1
30878 fi
30879
30880 if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
30881
30882
30883
30884
30885
30886
30887
30888
30889 gl_paper_LIBOBJS="$gl_paper_LIBOBJS realloc.$ac_objext"
30890
30891 fi
30892
30893
30894
30895
30896
30897
30898
30899
30900
30901 GL_GL_PAPER_GNULIB_REALLOC_POSIX=1
30902
30903
30904
30905
30906
30907 printf "%s\n" "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
30908
30909
30910
30911
30912
30913
30914
30915
30916
30917
30918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
30919 printf %s "checking for reallocarray... " >&6; }
30920 if test ${gl_cv_onwards_func_reallocarray+y}
30921 then :
30922 printf %s "(cached) " >&6
30923 else $as_nop
30924
30925 exec 9>&6 6>/dev/null
30926
30927 case "$host_os" in
30928
30929 linux*-android*)
30930 ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "#include <stdlib.h>
30931 " "$ac_c_undeclared_builtin_options" "CFLAGS"
30932 if test "x$ac_cv_have_decl_reallocarray" = xyes
30933 then :
30934
30935 fi
30936 if test $ac_cv_have_decl_reallocarray = yes; then
30937 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
30938 if test "x$ac_cv_func_reallocarray" = xyes
30939 then :
30940
30941 fi
30942
30943 if test $ac_cv_func_reallocarray = yes; then
30944 gl_cv_onwards_func_reallocarray=yes
30945 else
30946 gl_cv_onwards_func_reallocarray='future OS version'
30947 fi
30948 else
30949 gl_cv_onwards_func_reallocarray='future OS version'
30950 fi
30951 ;;
30952
30953
30954 *)
30955 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
30956 if test "x$ac_cv_func_reallocarray" = xyes
30957 then :
30958
30959 fi
30960
30961 gl_cv_onwards_func_reallocarray=$ac_cv_func_reallocarray
30962 ;;
30963
30964 esac
30965
30966 exec 6>&9 9>&-
30967
30968
30969 fi
30970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_reallocarray" >&5
30971 printf "%s\n" "$gl_cv_onwards_func_reallocarray" >&6; }
30972
30973 case "$gl_cv_onwards_func_reallocarray" in
30974 future*) ac_cv_func_reallocarray=no ;;
30975 *) ac_cv_func_reallocarray=$gl_cv_onwards_func_reallocarray ;;
30976 esac
30977 if test $ac_cv_func_reallocarray = yes; then
30978
30979 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
30980
30981 fi
30982
30983
30984 if test "$ac_cv_func_reallocarray" = no; then
30985 HAVE_REALLOCARRAY=0
30986 case "$gl_cv_onwards_func_reallocarray" in
30987 future*) REPLACE_REALLOCARRAY=1 ;;
30988 esac
30989 elif test "$gl_cv_malloc_ptrdiff" = no; then
30990 REPLACE_REALLOCARRAY=1
30991 fi
30992
30993
30994 if test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1; then
30995 GL_COND_OBJ_REALLOCARRAY_TRUE=
30996 GL_COND_OBJ_REALLOCARRAY_FALSE='#'
30997 else
30998 GL_COND_OBJ_REALLOCARRAY_TRUE='#'
30999 GL_COND_OBJ_REALLOCARRAY_FALSE=
31000 fi
31001 :
31002 if test -z "${GL_COND_OBJ_REALLOCARRAY_TRUE}" && test -z "${GL_COND_OBJ_REALLOCARRAY_FALSE}"; then
31003 GL_COND_OBJ_REALLOCARRAY_TRUE='#'
31004 GL_COND_OBJ_REALLOCARRAY_FALSE='#'
31005 fi
31006
31007 if test -z "$GL_COND_OBJ_REALLOCARRAY_TRUE"; then :
31008
31009 :
31010
31011 fi
31012
31013
31014 printf "%s\n" "#define GNULIB_REALLOCARRAY 1" >>confdefs.h
31015
31016
31017
31018
31019
31020
31021
31022
31023
31024
31025
31026 GL_GL_PAPER_GNULIB_REALLOCARRAY=1
31027
31028
31029
31030
31031
31032 printf "%s\n" "#define GNULIB_TEST_REALLOCARRAY 1" >>confdefs.h
31033
31034
31035
31036
31037
31038
31039
31040
31041 : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
31042 RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
31043 RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
31044
31045
31046 if test $RELOCATABLE = yes; then
31047 GL_COND_OBJ_PROGRELOC_TRUE=
31048 GL_COND_OBJ_PROGRELOC_FALSE='#'
31049 else
31050 GL_COND_OBJ_PROGRELOC_TRUE='#'
31051 GL_COND_OBJ_PROGRELOC_FALSE=
31052 fi
31053 :
31054 if test -z "${GL_COND_OBJ_PROGRELOC_TRUE}" && test -z "${GL_COND_OBJ_PROGRELOC_FALSE}"; then
31055 GL_COND_OBJ_PROGRELOC_TRUE='#'
31056 GL_COND_OBJ_PROGRELOC_FALSE='#'
31057 fi
31058
31059 if test -z "$GL_COND_OBJ_PROGRELOC_TRUE"; then :
31060
31061
31062
31063
31064
31065
31066
31067
31068
31069 gl_paper_LIBOBJS="$gl_paper_LIBOBJS relocatable.$ac_objext"
31070
31071
31072 fi
31073
31074
31075
31076
31077 :
31078
31079
31080
31081
31082
31083
31084
31085
31086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for faccessat" >&5
31087 printf %s "checking for faccessat... " >&6; }
31088 if test ${gl_cv_onwards_func_faccessat+y}
31089 then :
31090 printf %s "(cached) " >&6
31091 else $as_nop
31092
31093 exec 9>&6 6>/dev/null
31094
31095 case "$host_os" in
31096
31097 linux*-android*)
31098 ac_fn_check_decl "$LINENO" "faccessat" "ac_cv_have_decl_faccessat" "#include <unistd.h>
31099 " "$ac_c_undeclared_builtin_options" "CFLAGS"
31100 if test "x$ac_cv_have_decl_faccessat" = xyes
31101 then :
31102
31103 fi
31104 if test $ac_cv_have_decl_faccessat = yes; then
31105 ac_fn_c_check_func "$LINENO" "faccessat" "ac_cv_func_faccessat"
31106 if test "x$ac_cv_func_faccessat" = xyes
31107 then :
31108
31109 fi
31110
31111 if test $ac_cv_func_faccessat = yes; then
31112 gl_cv_onwards_func_faccessat=yes
31113 else
31114 gl_cv_onwards_func_faccessat='future OS version'
31115 fi
31116 else
31117 gl_cv_onwards_func_faccessat='future OS version'
31118 fi
31119 ;;
31120
31121
31122 *)
31123 ac_fn_c_check_func "$LINENO" "faccessat" "ac_cv_func_faccessat"
31124 if test "x$ac_cv_func_faccessat" = xyes
31125 then :
31126
31127 fi
31128
31129 gl_cv_onwards_func_faccessat=$ac_cv_func_faccessat
31130 ;;
31131
31132 esac
31133
31134 exec 6>&9 9>&-
31135
31136
31137 fi
31138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_faccessat" >&5
31139 printf "%s\n" "$gl_cv_onwards_func_faccessat" >&6; }
31140
31141 case "$gl_cv_onwards_func_faccessat" in
31142 future*) ac_cv_func_faccessat=no ;;
31143 *) ac_cv_func_faccessat=$gl_cv_onwards_func_faccessat ;;
31144 esac
31145 if test $ac_cv_func_faccessat = yes; then
31146
31147 printf "%s\n" "#define HAVE_FACCESSAT 1" >>confdefs.h
31148
31149 fi
31150
31151
31152
31153
31154 case "$host_os" in
31155 mingw*) ;;
31156 *) ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
31157 if test "x$ac_cv_func_getcwd" = xyes
31158 then :
31159 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
31160
31161 fi
31162 ;;
31163 esac
31164
31165
31166
31167
31168
31169
31170
31171
31172
31173 if test "$gl_cv_func_malloc_posix" = yes; then
31174
31175 printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
31176
31177 else
31178 REPLACE_MALLOC_FOR_MALLOC_POSIX=1
31179 fi
31180
31181
31182
31183
31184 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
31185 REPLACE_REALLOC_FOR_REALLOC_POSIX=1
31186 fi
31187
31188
31189
31190
31191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
31192 printf %s "checking whether free is known to preserve errno... " >&6; }
31193 if test ${gl_cv_func_free_preserves_errno+y}
31194 then :
31195 printf %s "(cached) " >&6
31196 else $as_nop
31197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31198 /* end confdefs.h. */
31199 #include <stdlib.h>
31200
31201 int
31202 main (void)
31203 {
31204 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
31205 #elif defined __OpenBSD__
31206 #elif defined __sun
31207 #else
31208 #error "'free' is not known to preserve errno"
31209 #endif
31210
31211 ;
31212 return 0;
31213 }
31214 _ACEOF
31215 if ac_fn_c_try_compile "$LINENO"
31216 then :
31217 gl_cv_func_free_preserves_errno=yes
31218 else $as_nop
31219 gl_cv_func_free_preserves_errno=no
31220 fi
31221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31222
31223 fi
31224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
31225 printf "%s\n" "$gl_cv_func_free_preserves_errno" >&6; }
31226
31227 case $gl_cv_func_free_preserves_errno in
31228 *yes)
31229
31230 printf "%s\n" "#define HAVE_FREE_POSIX 1" >>confdefs.h
31231
31232 ;;
31233 *) REPLACE_FREE=1 ;;
31234 esac
31235
31236
31237
31238
31239
31240
31241
31242
31243
31244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mempcpy" >&5
31245 printf %s "checking for mempcpy... " >&6; }
31246 if test ${gl_cv_onwards_func_mempcpy+y}
31247 then :
31248 printf %s "(cached) " >&6
31249 else $as_nop
31250
31251 exec 9>&6 6>/dev/null
31252
31253 case "$host_os" in
31254
31255 linux*-android*)
31256 ac_fn_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "#include <string.h>
31257 " "$ac_c_undeclared_builtin_options" "CFLAGS"
31258 if test "x$ac_cv_have_decl_mempcpy" = xyes
31259 then :
31260
31261 fi
31262 if test $ac_cv_have_decl_mempcpy = yes; then
31263 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
31264 if test "x$ac_cv_func_mempcpy" = xyes
31265 then :
31266
31267 fi
31268
31269 if test $ac_cv_func_mempcpy = yes; then
31270 gl_cv_onwards_func_mempcpy=yes
31271 else
31272 gl_cv_onwards_func_mempcpy='future OS version'
31273 fi
31274 else
31275 gl_cv_onwards_func_mempcpy='future OS version'
31276 fi
31277 ;;
31278
31279
31280 *)
31281 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
31282 if test "x$ac_cv_func_mempcpy" = xyes
31283 then :
31284
31285 fi
31286
31287 gl_cv_onwards_func_mempcpy=$ac_cv_func_mempcpy
31288 ;;
31289
31290 esac
31291
31292 exec 6>&9 9>&-
31293
31294
31295 fi
31296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_mempcpy" >&5
31297 printf "%s\n" "$gl_cv_onwards_func_mempcpy" >&6; }
31298
31299 case "$gl_cv_onwards_func_mempcpy" in
31300 future*) ac_cv_func_mempcpy=no ;;
31301 *) ac_cv_func_mempcpy=$gl_cv_onwards_func_mempcpy ;;
31302 esac
31303 if test $ac_cv_func_mempcpy = yes; then
31304
31305 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
31306
31307 fi
31308
31309
31310 if test $ac_cv_func_mempcpy = no; then
31311 HAVE_MEMPCPY=0
31312 case "$gl_cv_onwards_func_mempcpy" in
31313 future*) REPLACE_MEMPCPY=1 ;;
31314 esac
31315 fi
31316
31317
31318
31319
31320
31321 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
31322 if test "x$ac_cv_func_rawmemchr" = xyes
31323 then :
31324 printf "%s\n" "#define HAVE_RAWMEMCHR 1" >>confdefs.h
31325
31326 fi
31327
31328 if test $ac_cv_func_rawmemchr = no; then
31329 HAVE_RAWMEMCHR=0
31330 fi
31331
31332
31333
31334
31335
31336
31337
31338
31339
31340
31341 if test $ac_cv_have_decl_setenv = no; then
31342 HAVE_DECL_SETENV=0
31343 fi
31344
31345
31346
31347
31348
31349 ac_fn_c_check_header_compile "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
31350 if test "x$ac_cv_header_search_h" = xyes
31351 then :
31352 printf "%s\n" "#define HAVE_SEARCH_H 1" >>confdefs.h
31353
31354 fi
31355
31356
31357
31358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tsearch" >&5
31359 printf %s "checking for tsearch... " >&6; }
31360 if test ${gl_cv_onwards_func_tsearch+y}
31361 then :
31362 printf %s "(cached) " >&6
31363 else $as_nop
31364
31365 exec 9>&6 6>/dev/null
31366
31367 case "$host_os" in
31368
31369 linux*-android*)
31370 ac_fn_check_decl "$LINENO" "tsearch" "ac_cv_have_decl_tsearch" "#include <search.h>
31371 " "$ac_c_undeclared_builtin_options" "CFLAGS"
31372 if test "x$ac_cv_have_decl_tsearch" = xyes
31373 then :
31374
31375 fi
31376 if test $ac_cv_have_decl_tsearch = yes; then
31377 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
31378 if test "x$ac_cv_func_tsearch" = xyes
31379 then :
31380
31381 fi
31382
31383 if test $ac_cv_func_tsearch = yes; then
31384 gl_cv_onwards_func_tsearch=yes
31385 else
31386 gl_cv_onwards_func_tsearch='future OS version'
31387 fi
31388 else
31389 gl_cv_onwards_func_tsearch='future OS version'
31390 fi
31391 ;;
31392
31393
31394 *)
31395 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
31396 if test "x$ac_cv_func_tsearch" = xyes
31397 then :
31398
31399 fi
31400
31401 gl_cv_onwards_func_tsearch=$ac_cv_func_tsearch
31402 ;;
31403
31404 esac
31405
31406 exec 6>&9 9>&-
31407
31408
31409 fi
31410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_tsearch" >&5
31411 printf "%s\n" "$gl_cv_onwards_func_tsearch" >&6; }
31412
31413 case "$gl_cv_onwards_func_tsearch" in
31414 future*) ac_cv_func_tsearch=no ;;
31415 *) ac_cv_func_tsearch=$gl_cv_onwards_func_tsearch ;;
31416 esac
31417 if test $ac_cv_func_tsearch = yes; then
31418
31419 printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h
31420
31421 fi
31422
31423
31424
31425
31426
31427
31428
31429
31430
31431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
31432 printf %s "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
31433 if test ${gl_cv_func_setlocale_null_all_mtsafe+y}
31434 then :
31435 printf %s "(cached) " >&6
31436 else $as_nop
31437 case "$host_os" in
31438 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku.
31439 *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | openbsd* | aix* | haiku*)
31440 gl_cv_func_setlocale_null_all_mtsafe=no ;;
31441 # Guess no on Cygwin < 3.4.6.
31442 cygwin*)
31443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31444 /* end confdefs.h. */
31445
31446 #if defined __CYGWIN__
31447 #include <cygwin/version.h>
31448 #if CYGWIN_VERSION_DLL_COMBINED >= CYGWIN_VERSION_DLL_MAKE_COMBINED (3004, 6)
31449 Lucky user
31450 #endif
31451 #endif
31452
31453 _ACEOF
31454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31455 $EGREP "Lucky user" >/dev/null 2>&1
31456 then :
31457 gl_cv_func_setlocale_null_all_mtsafe=yes
31458 else $as_nop
31459 gl_cv_func_setlocale_null_all_mtsafe=no
31460 fi
31461 rm -rf conftest*
31462
31463 ;;
31464 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
31465 *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
31466 gl_cv_func_setlocale_null_all_mtsafe=yes ;;
31467 # If we don't know, obey --enable-cross-guesses.
31468 *)
31469 gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
31470 esac
31471
31472 fi
31473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
31474 printf "%s\n" "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
31475 case "$host_os" in
31476 mingw*) ;;
31477 *)
31478 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
31479 gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
31480 fi
31481 ;;
31482 esac
31483 case "$gl_cv_func_setlocale_null_all_mtsafe" in
31484 *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
31485 *) SETLOCALE_NULL_ALL_MTSAFE=0 ;;
31486 esac
31487
31488 printf "%s\n" "#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE" >>confdefs.h
31489
31490
31491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
31492 printf %s "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
31493 if test ${gl_cv_func_setlocale_null_one_mtsafe+y}
31494 then :
31495 printf %s "(cached) " >&6
31496 else $as_nop
31497 case "$host_os" in
31498 # Guess no on OpenBSD, AIX.
31499 openbsd* | aix*)
31500 gl_cv_func_setlocale_null_one_mtsafe=no ;;
31501 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
31502 *-gnu* | gnu* | *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
31503 gl_cv_func_setlocale_null_one_mtsafe=yes ;;
31504 # If we don't know, obey --enable-cross-guesses.
31505 *)
31506 gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
31507 esac
31508
31509 fi
31510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
31511 printf "%s\n" "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
31512 case "$host_os" in
31513 mingw*) ;;
31514 *)
31515 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
31516 gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
31517 fi
31518 ;;
31519 esac
31520 case "$gl_cv_func_setlocale_null_one_mtsafe" in
31521 *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
31522 *) SETLOCALE_NULL_ONE_MTSAFE=0 ;;
31523 esac
31524
31525 printf "%s\n" "#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE" >>confdefs.h
31526
31527
31528 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
31529 case "$host_os" in
31530 mingw*) SETLOCALE_NULL_LIB= ;;
31531 *)
31532
31533
31534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
31535 printf %s "checking whether imported symbols can be declared weak... " >&6; }
31536 if test ${gl_cv_have_weak+y}
31537 then :
31538 printf %s "(cached) " >&6
31539 else $as_nop
31540 case "$host_os" in
31541 cygwin*)
31542 gl_cv_have_weak="guessing no"
31543 ;;
31544 *)
31545 gl_cv_have_weak=no
31546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31547 /* end confdefs.h. */
31548 extern void xyzzy ();
31549 #pragma weak xyzzy
31550 int
31551 main (void)
31552 {
31553 xyzzy();
31554 ;
31555 return 0;
31556 }
31557 _ACEOF
31558 if ac_fn_c_try_link "$LINENO"
31559 then :
31560 gl_cv_have_weak=maybe
31561 fi
31562 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31563 conftest$ac_exeext conftest.$ac_ext
31564 if test $gl_cv_have_weak = maybe; then
31565 if test "$cross_compiling" = yes
31566 then :
31567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31568 /* end confdefs.h. */
31569 #ifdef __ELF__
31570 Extensible Linking Format
31571 #endif
31572
31573 _ACEOF
31574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31575 $EGREP "Extensible Linking Format" >/dev/null 2>&1
31576 then :
31577 gl_cv_have_weak="guessing yes"
31578 else $as_nop
31579 gl_cv_have_weak="guessing no"
31580 fi
31581 rm -rf conftest*
31582
31583
31584 else $as_nop
31585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31586 /* end confdefs.h. */
31587
31588 #include <stdio.h>
31589 #pragma weak fputs
31590 int main ()
31591 {
31592 return (fputs == NULL);
31593 }
31594 _ACEOF
31595 if ac_fn_c_try_run "$LINENO"
31596 then :
31597 gl_cv_have_weak=yes
31598 else $as_nop
31599 gl_cv_have_weak=no
31600 fi
31601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31602 conftest.$ac_objext conftest.beam conftest.$ac_ext
31603 fi
31604
31605 fi
31606 ;;
31607 esac
31608 case " $LDFLAGS " in
31609 *" -static "*) gl_cv_have_weak=no ;;
31610 esac
31611 case "$gl_cv_have_weak" in
31612 *yes)
31613 case "$host_os" in
31614 freebsd* | dragonfly* | midnightbsd*)
31615 : > conftest1.c
31616 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
31617 cat <<EOF > conftest2.c
31618 #include <pthread.h>
31619 #pragma weak pthread_mutexattr_gettype
31620 int main ()
31621 {
31622 return (pthread_mutexattr_gettype != NULL);
31623 }
31624 EOF
31625 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
31626 || gl_cv_have_weak=no
31627 rm -f conftest1.c libempty.so conftest2.c conftest
31628 ;;
31629 esac
31630 ;;
31631 esac
31632
31633 fi
31634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
31635 printf "%s\n" "$gl_cv_have_weak" >&6; }
31636 case "$gl_cv_have_weak" in
31637 *yes)
31638
31639 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
31640
31641 ;;
31642 esac
31643
31644 case "$gl_cv_have_weak" in
31645 *yes) SETLOCALE_NULL_LIB= ;;
31646 *) SETLOCALE_NULL_LIB="$LIBPTHREAD" ;;
31647 esac
31648 ;;
31649 esac
31650 else
31651 SETLOCALE_NULL_LIB=
31652 fi
31653
31654 LIB_SETLOCALE_NULL="$SETLOCALE_NULL_LIB"
31655
31656
31657
31658 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
31659 GL_COND_OBJ_SETLOCALE_LOCK_TRUE=
31660 GL_COND_OBJ_SETLOCALE_LOCK_FALSE='#'
31661 else
31662 GL_COND_OBJ_SETLOCALE_LOCK_TRUE='#'
31663 GL_COND_OBJ_SETLOCALE_LOCK_FALSE=
31664 fi
31665 :
31666 if test -z "${GL_COND_OBJ_SETLOCALE_LOCK_TRUE}" && test -z "${GL_COND_OBJ_SETLOCALE_LOCK_FALSE}"; then
31667 GL_COND_OBJ_SETLOCALE_LOCK_TRUE='#'
31668 GL_COND_OBJ_SETLOCALE_LOCK_FALSE='#'
31669 fi
31670
31671 if test -z "$GL_COND_OBJ_SETLOCALE_LOCK_TRUE"; then :
31672
31673
31674
31675
31676 CFLAG_VISIBILITY=
31677 HAVE_VISIBILITY=0
31678 if test -n "$GCC"; then
31679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
31680 printf %s "checking whether the -Werror option is usable... " >&6; }
31681 if test ${gl_cv_cc_vis_werror+y}
31682 then :
31683 printf %s "(cached) " >&6
31684 else $as_nop
31685 gl_save_CFLAGS="$CFLAGS"
31686 CFLAGS="$CFLAGS -Werror"
31687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31688 /* end confdefs.h. */
31689
31690 int
31691 main (void)
31692 {
31693
31694 ;
31695 return 0;
31696 }
31697 _ACEOF
31698 if ac_fn_c_try_compile "$LINENO"
31699 then :
31700 gl_cv_cc_vis_werror=yes
31701 else $as_nop
31702 gl_cv_cc_vis_werror=no
31703 fi
31704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31705 CFLAGS="$gl_save_CFLAGS"
31706
31707 fi
31708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
31709 printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
31710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
31711 printf %s "checking for simple visibility declarations... " >&6; }
31712 if test ${gl_cv_cc_visibility+y}
31713 then :
31714 printf %s "(cached) " >&6
31715 else $as_nop
31716 gl_save_CFLAGS="$CFLAGS"
31717 CFLAGS="$CFLAGS -fvisibility=hidden"
31718 if test $gl_cv_cc_vis_werror = yes; then
31719 CFLAGS="$CFLAGS -Werror"
31720 fi
31721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31722 /* end confdefs.h. */
31723 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
31724 extern __attribute__((__visibility__("default"))) int exportedvar;
31725 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
31726 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
31727 void dummyfunc (void);
31728 int hiddenvar;
31729 int exportedvar;
31730 int hiddenfunc (void) { return 51; }
31731 int exportedfunc (void) { return 1225736919; }
31732 void dummyfunc (void) {}
31733
31734 int
31735 main (void)
31736 {
31737
31738 ;
31739 return 0;
31740 }
31741 _ACEOF
31742 if ac_fn_c_try_compile "$LINENO"
31743 then :
31744 gl_cv_cc_visibility=yes
31745 else $as_nop
31746 gl_cv_cc_visibility=no
31747 fi
31748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31749 CFLAGS="$gl_save_CFLAGS"
31750
31751 fi
31752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
31753 printf "%s\n" "$gl_cv_cc_visibility" >&6; }
31754 if test $gl_cv_cc_visibility = yes; then
31755 CFLAG_VISIBILITY="-fvisibility=hidden"
31756 HAVE_VISIBILITY=1
31757 fi
31758 fi
31759
31760
31761
31762 printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
31763
31764
31765
31766
31767 fi
31768
31769
31770
31771
31772
31773
31774
31775
31776
31777 GL_GL_PAPER_GNULIB_SETLOCALE_NULL=1
31778
31779
31780
31781
31782
31783 printf "%s\n" "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
31784
31785
31786
31787
31788 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
31789 if test "x$ac_cv_header_stdint_h" = xyes
31790 then :
31791 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
31792
31793 fi
31794
31795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
31796 printf %s "checking for SIZE_MAX... " >&6; }
31797 if test ${gl_cv_size_max+y}
31798 then :
31799 printf %s "(cached) " >&6
31800 else $as_nop
31801
31802 gl_cv_size_max=no
31803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31804 /* end confdefs.h. */
31805
31806 #include <limits.h>
31807 #if HAVE_STDINT_H
31808 #include <stdint.h>
31809 #endif
31810 #ifdef SIZE_MAX
31811 Found it
31812 #endif
31813
31814 _ACEOF
31815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31816 $EGREP "Found it" >/dev/null 2>&1
31817 then :
31818 gl_cv_size_max=yes
31819 fi
31820 rm -rf conftest*
31821
31822 if test $gl_cv_size_max != yes; then
31823 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
31824 #include <limits.h>"
31825 then :
31826
31827 else $as_nop
31828 size_t_bits_minus_1=
31829 fi
31830
31831 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"
31832 then :
31833
31834 else $as_nop
31835 fits_in_uint=
31836 fi
31837
31838 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
31839 if test $fits_in_uint = 1; then
31840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31841 /* end confdefs.h. */
31842 #include <stddef.h>
31843 extern size_t foo;
31844 extern unsigned long foo;
31845
31846 int
31847 main (void)
31848 {
31849
31850 ;
31851 return 0;
31852 }
31853 _ACEOF
31854 if ac_fn_c_try_compile "$LINENO"
31855 then :
31856 fits_in_uint=0
31857 fi
31858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31859 fi
31860 if test $fits_in_uint = 1; then
31861 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
31862 else
31863 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
31864 fi
31865 else
31866 gl_cv_size_max='((size_t)~(size_t)0)'
31867 fi
31868 fi
31869
31870 fi
31871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
31872 printf "%s\n" "$gl_cv_size_max" >&6; }
31873 if test "$gl_cv_size_max" != yes; then
31874
31875 printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h
31876
31877 fi
31878
31879
31880
31881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
31882 printf %s "checking for ssize_t... " >&6; }
31883 if test ${gt_cv_ssize_t+y}
31884 then :
31885 printf %s "(cached) " >&6
31886 else $as_nop
31887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31888 /* end confdefs.h. */
31889 #include <sys/types.h>
31890 int
31891 main (void)
31892 {
31893 int x = sizeof (ssize_t *) + sizeof (ssize_t);
31894 return !x;
31895 ;
31896 return 0;
31897 }
31898 _ACEOF
31899 if ac_fn_c_try_compile "$LINENO"
31900 then :
31901 gt_cv_ssize_t=yes
31902 else $as_nop
31903 gt_cv_ssize_t=no
31904 fi
31905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31906 fi
31907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
31908 printf "%s\n" "$gt_cv_ssize_t" >&6; }
31909 if test $gt_cv_ssize_t = no; then
31910
31911 printf "%s\n" "#define ssize_t int" >>confdefs.h
31912
31913 fi
31914
31915
31916
31917
31918
31919 case "$host_os" in
31920 mingw*)
31921 REPLACE_STAT=1
31922 ;;
31923 *)
31924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
31925 printf %s "checking whether stat handles trailing slashes on files... " >&6; }
31926 if test ${gl_cv_func_stat_file_slash+y}
31927 then :
31928 printf %s "(cached) " >&6
31929 else $as_nop
31930 touch conftest.tmp
31931 # Assume that if we have lstat, we can also check symlinks.
31932 if test $ac_cv_func_lstat = yes; then
31933 ln -s conftest.tmp conftest.lnk
31934 fi
31935 if test "$cross_compiling" = yes
31936 then :
31937 case "$host_os" in
31938 # Guess yes on Linux systems.
31939 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
31940 # Guess yes on glibc systems.
31941 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
31942 # If we don't know, obey --enable-cross-guesses.
31943 *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
31944 esac
31945
31946 else $as_nop
31947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31948 /* end confdefs.h. */
31949 #include <sys/stat.h>
31950
31951 int
31952 main (void)
31953 {
31954 int result = 0;
31955 struct stat st;
31956 if (!stat ("conftest.tmp/", &st))
31957 result |= 1;
31958 #if HAVE_LSTAT
31959 if (!stat ("conftest.lnk/", &st))
31960 result |= 2;
31961 #endif
31962 return result;
31963
31964 ;
31965 return 0;
31966 }
31967 _ACEOF
31968 if ac_fn_c_try_run "$LINENO"
31969 then :
31970 gl_cv_func_stat_file_slash=yes
31971 else $as_nop
31972 gl_cv_func_stat_file_slash=no
31973 fi
31974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31975 conftest.$ac_objext conftest.beam conftest.$ac_ext
31976 fi
31977
31978 rm -f conftest.tmp conftest.lnk
31979 fi
31980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
31981 printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; }
31982 case $gl_cv_func_stat_file_slash in
31983 *no)
31984 REPLACE_STAT=1
31985
31986 printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
31987 ;;
31988 esac
31989 case $host_os in
31990 solaris*)
31991 REPLACE_FSTAT=1 ;;
31992 esac
31993 ;;
31994 esac
31995
31996
31997 if test $REPLACE_STAT = 1; then
31998 GL_COND_OBJ_STAT_TRUE=
31999 GL_COND_OBJ_STAT_FALSE='#'
32000 else
32001 GL_COND_OBJ_STAT_TRUE='#'
32002 GL_COND_OBJ_STAT_FALSE=
32003 fi
32004 :
32005 if test -z "${GL_COND_OBJ_STAT_TRUE}" && test -z "${GL_COND_OBJ_STAT_FALSE}"; then
32006 GL_COND_OBJ_STAT_TRUE='#'
32007 GL_COND_OBJ_STAT_FALSE='#'
32008 fi
32009
32010 if test -z "$GL_COND_OBJ_STAT_TRUE"; then :
32011
32012 case "$host_os" in
32013 mingw*)
32014
32015
32016
32017
32018
32019
32020
32021
32022 gl_paper_LIBOBJS="$gl_paper_LIBOBJS stat-w32.$ac_objext"
32023
32024 ;;
32025 esac
32026
32027
32028
32029 :
32030
32031
32032 fi
32033
32034
32035
32036
32037
32038
32039
32040
32041
32042 GL_GL_PAPER_GNULIB_STAT=1
32043
32044
32045
32046
32047
32048 printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h
32049
32050
32051
32052
32053
32054
32055
32056 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>
32057 #include <sys/stat.h>
32058 "
32059 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
32060 then :
32061
32062 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
32063
32064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
32065 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
32066 if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y}
32067 then :
32068 printf %s "(cached) " >&6
32069 else $as_nop
32070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32071 /* end confdefs.h. */
32072
32073 #include <sys/types.h>
32074 #include <sys/stat.h>
32075 #if HAVE_SYS_TIME_H
32076 # include <sys/time.h>
32077 #endif
32078 #include <time.h>
32079 struct timespec ts;
32080 struct stat st;
32081
32082 int
32083 main (void)
32084 {
32085
32086 st.st_atim = ts;
32087
32088 ;
32089 return 0;
32090 }
32091 _ACEOF
32092 if ac_fn_c_try_compile "$LINENO"
32093 then :
32094 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
32095 else $as_nop
32096 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
32097 fi
32098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32099 fi
32100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
32101 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
32102 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
32103
32104 printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
32105
32106 fi
32107 else $as_nop
32108 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>
32109 #include <sys/stat.h>
32110 "
32111 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
32112 then :
32113
32114 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
32115
32116
32117 else $as_nop
32118 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
32119 #include <sys/stat.h>
32120 "
32121 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
32122 then :
32123
32124 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
32125
32126
32127 else $as_nop
32128 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>
32129 #include <sys/stat.h>
32130 "
32131 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
32132 then :
32133
32134 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h
32135
32136
32137 fi
32138
32139 fi
32140
32141 fi
32142
32143 fi
32144
32145
32146
32147
32148
32149 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>
32150 #include <sys/stat.h>
32151 "
32152 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
32153 then :
32154
32155 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
32156
32157
32158 else $as_nop
32159 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
32160 #include <sys/stat.h>
32161 "
32162 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
32163 then :
32164
32165 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
32166
32167
32168 else $as_nop
32169 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>
32170 #include <sys/stat.h>
32171 "
32172 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
32173 then :
32174
32175 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h
32176
32177
32178 fi
32179
32180 fi
32181
32182 fi
32183
32184
32185
32186 GL_GENERATE_STDARG_H=false
32187 NEXT_STDARG_H='<stdarg.h>'
32188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
32189 printf %s "checking for va_copy... " >&6; }
32190 if test ${gl_cv_func_va_copy+y}
32191 then :
32192 printf %s "(cached) " >&6
32193 else $as_nop
32194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32195 /* end confdefs.h. */
32196 #include <stdarg.h>
32197 int
32198 main (void)
32199 {
32200
32201 #ifndef va_copy
32202 void (*func) (va_list, va_list) = va_copy;
32203 #endif
32204
32205 ;
32206 return 0;
32207 }
32208 _ACEOF
32209 if ac_fn_c_try_compile "$LINENO"
32210 then :
32211 gl_cv_func_va_copy=yes
32212 else $as_nop
32213 gl_cv_func_va_copy=no
32214 fi
32215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32216
32217 fi
32218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
32219 printf "%s\n" "$gl_cv_func_va_copy" >&6; }
32220 if test $gl_cv_func_va_copy = no; then
32221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32222 /* end confdefs.h. */
32223 #if defined _AIX && !defined __GNUC__
32224 AIX vaccine
32225 #endif
32226
32227 _ACEOF
32228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32229 $EGREP "vaccine" >/dev/null 2>&1
32230 then :
32231 gl_aixcc=yes
32232 else $as_nop
32233 gl_aixcc=no
32234 fi
32235 rm -rf conftest*
32236
32237 if test $gl_aixcc = yes; then
32238 GL_GENERATE_STDARG_H=true
32239
32240
32241
32242
32243
32244
32245
32246
32247 if test $gl_cv_have_include_next = yes; then
32248 gl_cv_next_stdarg_h='<'stdarg.h'>'
32249 else
32250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
32251 printf %s "checking absolute name of <stdarg.h>... " >&6; }
32252 if test ${gl_cv_next_stdarg_h+y}
32253 then :
32254 printf %s "(cached) " >&6
32255 else $as_nop
32256
32257
32258
32259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32260 /* end confdefs.h. */
32261 #include <stdarg.h>
32262 _ACEOF
32263 case "$host_os" in
32264 aix*) gl_absname_cpp="$ac_cpp -C" ;;
32265 *) gl_absname_cpp="$ac_cpp" ;;
32266 esac
32267
32268 case "$host_os" in
32269 mingw*)
32270 gl_dirsep_regex='[/\\]'
32271 ;;
32272 *)
32273 gl_dirsep_regex='\/'
32274 ;;
32275 esac
32276 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32277 gl_header_literal_regex=`echo 'stdarg.h' \
32278 | sed -e "$gl_make_literal_regex_sed"`
32279 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32280 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32281 s|^/[^/]|//&|
32282 p
32283 q
32284 }'
32285
32286 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32287 sed -n "$gl_absolute_header_sed"`
32288
32289 gl_header=$gl_cv_absolute_stdarg_h
32290 gl_cv_next_stdarg_h='"'$gl_header'"'
32291
32292
32293 fi
32294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
32295 printf "%s\n" "$gl_cv_next_stdarg_h" >&6; }
32296 fi
32297 NEXT_STDARG_H=$gl_cv_next_stdarg_h
32298
32299 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32300 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32301 gl_next_as_first_directive='<'stdarg.h'>'
32302 else
32303 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32304 gl_next_as_first_directive=$gl_cv_next_stdarg_h
32305 fi
32306 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
32307
32308
32309
32310
32311 if test "$gl_cv_next_stdarg_h" = '""'; then
32312 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
32313 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
32314 fi
32315 else
32316
32317
32318 exec 9>&6 6>/dev/null
32319
32320 if test ${gl_cv_func___va_copy+y}
32321 then :
32322 printf %s "(cached) " >&6
32323 else $as_nop
32324
32325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32326 /* end confdefs.h. */
32327 #include <stdarg.h>
32328 int
32329 main (void)
32330 {
32331
32332 #ifndef __va_copy
32333 error, bail out
32334 #endif
32335
32336 ;
32337 return 0;
32338 }
32339 _ACEOF
32340 if ac_fn_c_try_compile "$LINENO"
32341 then :
32342 gl_cv_func___va_copy=yes
32343 else $as_nop
32344 gl_cv_func___va_copy=no
32345 fi
32346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32347 fi
32348
32349
32350 exec 6>&9 9>&-
32351
32352
32353 if test $gl_cv_func___va_copy = yes; then
32354
32355 printf "%s\n" "#define va_copy __va_copy" >>confdefs.h
32356
32357 else
32358
32359
32360 printf "%s\n" "#define va_copy gl_va_copy" >>confdefs.h
32361
32362 fi
32363 fi
32364 fi
32365
32366
32367
32368
32369
32370
32371 case "$GL_GENERATE_STDARG_H" in
32372 false) STDARG_H='' ;;
32373 true)
32374 if test -z "$STDARG_H"; then
32375 STDARG_H="${gl_source_base_prefix}stdarg.h"
32376 fi
32377 ;;
32378 *) echo "*** GL_GENERATE_STDARG_H is not set correctly" 1>&2; exit 1 ;;
32379 esac
32380
32381
32382 if $GL_GENERATE_STDARG_H; then
32383 GL_GENERATE_STDARG_H_TRUE=
32384 GL_GENERATE_STDARG_H_FALSE='#'
32385 else
32386 GL_GENERATE_STDARG_H_TRUE='#'
32387 GL_GENERATE_STDARG_H_FALSE=
32388 fi
32389 :
32390 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
32391 GL_GENERATE_STDARG_H_TRUE='#'
32392 GL_GENERATE_STDARG_H_FALSE='#'
32393 fi
32394
32395
32396
32397
32398
32399
32400
32401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bool, true, false" >&5
32402 printf %s "checking for bool, true, false... " >&6; }
32403 if test ${gl_cv_c_bool+y}
32404 then :
32405 printf %s "(cached) " >&6
32406 else $as_nop
32407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32408 /* end confdefs.h. */
32409
32410 #if true == false
32411 #error "true == false"
32412 #endif
32413 extern bool b;
32414 bool b = true == false;
32415 _ACEOF
32416 if ac_fn_c_try_compile "$LINENO"
32417 then :
32418 gl_cv_c_bool=yes
32419 else $as_nop
32420 gl_cv_c_bool=no
32421 fi
32422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32423 fi
32424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_bool" >&5
32425 printf "%s\n" "$gl_cv_c_bool" >&6; }
32426 if test "$gl_cv_c_bool" = yes; then
32427
32428 printf "%s\n" "#define HAVE_C_BOOL 1" >>confdefs.h
32429
32430 fi
32431
32432
32433
32434
32435
32436
32437 if test $ac_cv_header_stdckdint_h = yes; then
32438 GL_GENERATE_STDCKDINT_H=false
32439 else
32440 GL_GENERATE_STDCKDINT_H=true
32441 fi
32442
32443
32444
32445
32446 case "$GL_GENERATE_STDCKDINT_H" in
32447 false) STDCKDINT_H='' ;;
32448 true)
32449 if test -z "$STDCKDINT_H"; then
32450 STDCKDINT_H="${gl_source_base_prefix}stdckdint.h"
32451 fi
32452 ;;
32453 *) echo "*** GL_GENERATE_STDCKDINT_H is not set correctly" 1>&2; exit 1 ;;
32454 esac
32455
32456
32457 if $GL_GENERATE_STDCKDINT_H; then
32458 GL_GENERATE_STDCKDINT_H_TRUE=
32459 GL_GENERATE_STDCKDINT_H_FALSE='#'
32460 else
32461 GL_GENERATE_STDCKDINT_H_TRUE='#'
32462 GL_GENERATE_STDCKDINT_H_FALSE=
32463 fi
32464 :
32465 if test -z "${GL_GENERATE_STDCKDINT_H_TRUE}" && test -z "${GL_GENERATE_STDCKDINT_H_FALSE}"; then
32466 GL_GENERATE_STDCKDINT_H_TRUE='#'
32467 GL_GENERATE_STDCKDINT_H_FALSE='#'
32468 fi
32469
32470
32471
32472
32473
32474
32475
32476
32477
32478
32479
32480
32481
32482
32483
32484
32485 case "$GL_GENERATE_STDDEF_H" in
32486 false) STDDEF_H='' ;;
32487 true)
32488 if test -z "$STDDEF_H"; then
32489 STDDEF_H="${gl_source_base_prefix}stddef.h"
32490 fi
32491 ;;
32492 *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;;
32493 esac
32494
32495
32496 if $GL_GENERATE_STDDEF_H; then
32497 GL_GENERATE_STDDEF_H_TRUE=
32498 GL_GENERATE_STDDEF_H_FALSE='#'
32499 else
32500 GL_GENERATE_STDDEF_H_TRUE='#'
32501 GL_GENERATE_STDDEF_H_FALSE=
32502 fi
32503 :
32504 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
32505 GL_GENERATE_STDDEF_H_TRUE='#'
32506 GL_GENERATE_STDDEF_H_FALSE='#'
32507 fi
32508
32509
32510
32511
32512
32513
32514
32515
32516
32517
32518
32519 case "$GL_GENERATE_STDINT_H" in
32520 false) STDINT_H='' ;;
32521 true)
32522 if test -z "$STDINT_H"; then
32523 STDINT_H="${gl_source_base_prefix}stdint.h"
32524 fi
32525 ;;
32526 *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;;
32527 esac
32528
32529
32530 if $GL_GENERATE_STDINT_H; then
32531 GL_GENERATE_STDINT_H_TRUE=
32532 GL_GENERATE_STDINT_H_FALSE='#'
32533 else
32534 GL_GENERATE_STDINT_H_TRUE='#'
32535 GL_GENERATE_STDINT_H_FALSE=
32536 fi
32537 :
32538 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
32539 GL_GENERATE_STDINT_H_TRUE='#'
32540 GL_GENERATE_STDINT_H_FALSE='#'
32541 fi
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551 case "$GL_GENERATE_LIMITS_H" in
32552 false) LIMITS_H='' ;;
32553 true)
32554 if test -z "$LIMITS_H"; then
32555 LIMITS_H="${gl_source_base_prefix}limits.h"
32556 fi
32557 ;;
32558 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
32559 esac
32560
32561
32562 if $GL_GENERATE_LIMITS_H; then
32563 GL_GENERATE_LIMITS_H_TRUE=
32564 GL_GENERATE_LIMITS_H_FALSE='#'
32565 else
32566 GL_GENERATE_LIMITS_H_TRUE='#'
32567 GL_GENERATE_LIMITS_H_FALSE=
32568 fi
32569 :
32570 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
32571 GL_GENERATE_LIMITS_H_TRUE='#'
32572 GL_GENERATE_LIMITS_H_FALSE='#'
32573 fi
32574
32575
32576
32577
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587
32588 if test $REPLACE_STDIO_READ_FUNCS = 1; then
32589 GL_COND_OBJ_STDIO_READ_TRUE=
32590 GL_COND_OBJ_STDIO_READ_FALSE='#'
32591 else
32592 GL_COND_OBJ_STDIO_READ_TRUE='#'
32593 GL_COND_OBJ_STDIO_READ_FALSE=
32594 fi
32595 :
32596 if test -z "${GL_COND_OBJ_STDIO_READ_TRUE}" && test -z "${GL_COND_OBJ_STDIO_READ_FALSE}"; then
32597 GL_COND_OBJ_STDIO_READ_TRUE='#'
32598 GL_COND_OBJ_STDIO_READ_FALSE='#'
32599 fi
32600
32601
32602 if test $REPLACE_STDIO_WRITE_FUNCS = 1; then
32603 GL_COND_OBJ_STDIO_WRITE_TRUE=
32604 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
32605 else
32606 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
32607 GL_COND_OBJ_STDIO_WRITE_FALSE=
32608 fi
32609 :
32610 if test -z "${GL_COND_OBJ_STDIO_WRITE_TRUE}" && test -z "${GL_COND_OBJ_STDIO_WRITE_FALSE}"; then
32611 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
32612 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
32613 fi
32614
32615
32616
32617
32618
32619
32620
32621
32622
32623
32624 GL_GL_PAPER_GNULIB_FSCANF=1
32625
32626
32627
32628
32629
32630 printf "%s\n" "#define GNULIB_TEST_FSCANF 1" >>confdefs.h
32631
32632
32633
32634
32635
32636 printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h
32637
32638
32639
32640
32641
32642
32643
32644
32645
32646
32647
32648 GL_GL_PAPER_GNULIB_SCANF=1
32649
32650
32651
32652
32653
32654 printf "%s\n" "#define GNULIB_TEST_SCANF 1" >>confdefs.h
32655
32656
32657
32658
32659
32660 printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h
32661
32662
32663
32664
32665
32666
32667
32668
32669
32670
32671
32672 GL_GL_PAPER_GNULIB_FGETC=1
32673
32674
32675
32676
32677
32678 printf "%s\n" "#define GNULIB_TEST_FGETC 1" >>confdefs.h
32679
32680
32681
32682
32683
32684
32685
32686
32687
32688
32689
32690
32691 GL_GL_PAPER_GNULIB_GETC=1
32692
32693
32694
32695
32696
32697 printf "%s\n" "#define GNULIB_TEST_GETC 1" >>confdefs.h
32698
32699
32700
32701
32702
32703
32704
32705
32706
32707
32708
32709
32710 GL_GL_PAPER_GNULIB_GETCHAR=1
32711
32712
32713
32714
32715
32716 printf "%s\n" "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h
32717
32718
32719
32720
32721
32722
32723
32724
32725
32726
32727
32728
32729 GL_GL_PAPER_GNULIB_FGETS=1
32730
32731
32732
32733
32734
32735 printf "%s\n" "#define GNULIB_TEST_FGETS 1" >>confdefs.h
32736
32737
32738
32739
32740
32741
32742
32743
32744
32745
32746
32747
32748 GL_GL_PAPER_GNULIB_FREAD=1
32749
32750
32751
32752
32753
32754 printf "%s\n" "#define GNULIB_TEST_FREAD 1" >>confdefs.h
32755
32756
32757
32758
32759
32760
32761
32762
32763
32764
32765
32766
32767 GL_GL_PAPER_GNULIB_FPRINTF=1
32768
32769
32770
32771
32772
32773 printf "%s\n" "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h
32774
32775
32776
32777
32778
32779
32780
32781
32782
32783
32784
32785
32786 GL_GL_PAPER_GNULIB_PRINTF=1
32787
32788
32789
32790
32791
32792 printf "%s\n" "#define GNULIB_TEST_PRINTF 1" >>confdefs.h
32793
32794
32795
32796
32797
32798
32799
32800
32801
32802
32803
32804
32805 GL_GL_PAPER_GNULIB_VFPRINTF=1
32806
32807
32808
32809
32810
32811 printf "%s\n" "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h
32812
32813
32814
32815
32816
32817
32818
32819
32820
32821
32822
32823
32824 GL_GL_PAPER_GNULIB_VPRINTF=1
32825
32826
32827
32828
32829
32830 printf "%s\n" "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h
32831
32832
32833
32834
32835
32836
32837
32838
32839
32840
32841
32842
32843 GL_GL_PAPER_GNULIB_FPUTC=1
32844
32845
32846
32847
32848
32849 printf "%s\n" "#define GNULIB_TEST_FPUTC 1" >>confdefs.h
32850
32851
32852
32853
32854
32855
32856
32857
32858
32859
32860
32861
32862 GL_GL_PAPER_GNULIB_PUTC=1
32863
32864
32865
32866
32867
32868 printf "%s\n" "#define GNULIB_TEST_PUTC 1" >>confdefs.h
32869
32870
32871
32872
32873
32874
32875
32876
32877
32878
32879
32880
32881 GL_GL_PAPER_GNULIB_PUTCHAR=1
32882
32883
32884
32885
32886
32887 printf "%s\n" "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h
32888
32889
32890
32891
32892
32893
32894
32895
32896
32897
32898
32899
32900 GL_GL_PAPER_GNULIB_FPUTS=1
32901
32902
32903
32904
32905
32906 printf "%s\n" "#define GNULIB_TEST_FPUTS 1" >>confdefs.h
32907
32908
32909
32910
32911
32912
32913
32914
32915
32916
32917
32918
32919 GL_GL_PAPER_GNULIB_PUTS=1
32920
32921
32922
32923
32924
32925 printf "%s\n" "#define GNULIB_TEST_PUTS 1" >>confdefs.h
32926
32927
32928
32929
32930
32931
32932
32933
32934
32935
32936
32937
32938 GL_GL_PAPER_GNULIB_FWRITE=1
32939
32940
32941
32942
32943
32944 printf "%s\n" "#define GNULIB_TEST_FWRITE 1" >>confdefs.h
32945
32946
32947
32948
32949
32950
32951
32952
32953
32954
32955
32956
32957
32958
32959
32960 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
32961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
32962 printf %s "checking for working strerror function... " >&6; }
32963 if test ${gl_cv_func_working_strerror+y}
32964 then :
32965 printf %s "(cached) " >&6
32966 else $as_nop
32967 if test "$cross_compiling" = yes
32968 then :
32969 case "$host_os" in
32970 # Guess yes on glibc systems.
32971 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
32972 # Guess yes on musl systems.
32973 *-musl*) gl_cv_func_working_strerror="guessing yes" ;;
32974 # If we don't know, obey --enable-cross-guesses.
32975 *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
32976 esac
32977
32978 else $as_nop
32979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32980 /* end confdefs.h. */
32981 #include <string.h>
32982
32983 int
32984 main (void)
32985 {
32986 if (!*strerror (-2)) return 1;
32987 ;
32988 return 0;
32989 }
32990 _ACEOF
32991 if ac_fn_c_try_run "$LINENO"
32992 then :
32993 gl_cv_func_working_strerror=yes
32994 else $as_nop
32995 gl_cv_func_working_strerror=no
32996 fi
32997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32998 conftest.$ac_objext conftest.beam conftest.$ac_ext
32999 fi
33000
33001
33002 fi
33003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
33004 printf "%s\n" "$gl_cv_func_working_strerror" >&6; }
33005 case "$gl_cv_func_working_strerror" in
33006 *yes) ;;
33007 *)
33008 REPLACE_STRERROR=1
33009 ;;
33010 esac
33011
33012 else
33013 REPLACE_STRERROR=1
33014 fi
33015
33016
33017 if test $REPLACE_STRERROR = 1; then
33018 GL_COND_OBJ_STRERROR_TRUE=
33019 GL_COND_OBJ_STRERROR_FALSE='#'
33020 else
33021 GL_COND_OBJ_STRERROR_TRUE='#'
33022 GL_COND_OBJ_STRERROR_FALSE=
33023 fi
33024 :
33025 if test -z "${GL_COND_OBJ_STRERROR_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_FALSE}"; then
33026 GL_COND_OBJ_STRERROR_TRUE='#'
33027 GL_COND_OBJ_STRERROR_FALSE='#'
33028 fi
33029
33030
33031
33032 printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h
33033
33034
33035
33036
33037
33038
33039
33040
33041
33042
33043
33044
33045
33046
33047
33048
33049 GL_GL_PAPER_GNULIB_STRERROR=1
33050
33051
33052
33053
33054
33055 printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
33056
33057
33058
33059
33060
33061
33062 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
33063 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE=
33064 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
33065 else
33066 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
33067 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE=
33068 fi
33069 :
33070 if test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_FALSE}"; then
33071 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
33072 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
33073 fi
33074
33075 if test -z "$GL_COND_OBJ_STRERROR_OVERRIDE_TRUE"; then :
33076
33077
33078
33079
33080
33081 if test $ac_cv_header_sys_socket_h != yes; then
33082 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
33083 if test "x$ac_cv_header_winsock2_h" = xyes
33084 then :
33085 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
33086
33087 fi
33088
33089 fi
33090 if test "$ac_cv_header_winsock2_h" = yes; then
33091 HAVE_WINSOCK2_H=1
33092 UNISTD_H_HAVE_WINSOCK2_H=1
33093 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
33094 else
33095 HAVE_WINSOCK2_H=0
33096 fi
33097
33098
33099
33100 fi
33101
33102
33103
33104
33105
33106
33107
33108
33109
33110
33111
33112
33113
33114
33115
33116
33117
33118
33119
33120
33121
33122
33123
33124
33125
33126
33127
33128
33129
33130
33131
33132
33133
33134
33135
33136
33137
33138
33139
33140
33141
33142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
33143 printf %s "checking for variable-length arrays... " >&6; }
33144 if test ${ac_cv_c_vararrays+y}
33145 then :
33146 printf %s "(cached) " >&6
33147 else $as_nop
33148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33149 /* end confdefs.h. */
33150 #ifdef __STDC_NO_VLA__
33151 defined
33152 #endif
33153
33154 _ACEOF
33155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33156 $EGREP "defined" >/dev/null 2>&1
33157 then :
33158 ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'
33159 else $as_nop
33160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33161 /* end confdefs.h. */
33162 /* Test for VLA support. This test is partly inspired
33163 from examples in the C standard. Use at least two VLA
33164 functions to detect the GCC 3.4.3 bug described in:
33165 https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
33166 */
33167 #ifdef __STDC_NO_VLA__
33168 syntax error;
33169 #else
33170 extern int n;
33171 int B[100];
33172 int fvla (int m, int C[m][m]);
33173
33174 int
33175 simple (int count, int all[static count])
33176 {
33177 return all[count - 1];
33178 }
33179
33180 int
33181 fvla (int m, int C[m][m])
33182 {
33183 typedef int VLA[m][m];
33184 VLA x;
33185 int D[m];
33186 static int (*q)[m] = &B;
33187 int (*s)[n] = q;
33188 return C && &x[0][0] == &D[0] && &D[0] == s[0];
33189 }
33190 #endif
33191
33192 int
33193 main (void)
33194 {
33195
33196 ;
33197 return 0;
33198 }
33199 _ACEOF
33200 if ac_fn_c_try_compile "$LINENO"
33201 then :
33202 ac_cv_c_vararrays=yes
33203 else $as_nop
33204 ac_cv_c_vararrays=no
33205 fi
33206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33207 fi
33208 rm -rf conftest*
33209
33210 fi
33211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
33212 printf "%s\n" "$ac_cv_c_vararrays" >&6; }
33213 if test "$ac_cv_c_vararrays" = yes; then
33214
33215 printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h
33216
33217 elif test "$ac_cv_c_vararrays" = no; then
33218
33219 printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h
33220
33221 fi
33222
33223
33224
33225
33226 if test $ac_cv_func_vasnprintf = no; then
33227
33228
33229
33230
33231
33232
33233
33234
33235
33236
33237 gl_paper_LIBOBJS="$gl_paper_LIBOBJS vasnprintf.$ac_objext"
33238
33239
33240
33241
33242
33243
33244
33245
33246
33247 gl_paper_LIBOBJS="$gl_paper_LIBOBJS printf-args.$ac_objext"
33248
33249
33250
33251
33252
33253
33254
33255
33256
33257 gl_paper_LIBOBJS="$gl_paper_LIBOBJS printf-parse.$ac_objext"
33258
33259
33260
33261
33262
33263
33264
33265
33266
33267 gl_paper_LIBOBJS="$gl_paper_LIBOBJS asnprintf.$ac_objext"
33268
33269 if test $ac_cv_func_vasnprintf = yes; then
33270
33271 printf "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h
33272
33273 fi
33274
33275
33276
33277
33278
33279
33280
33281
33282
33283 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
33284 if test "x$ac_cv_type_ptrdiff_t" = xyes
33285 then :
33286
33287 else $as_nop
33288
33289 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
33290
33291
33292 fi
33293
33294
33295
33296
33297
33298
33299
33300 fi
33301
33302
33303 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
33304 if test "x$ac_cv_func_vasprintf" = xyes
33305 then :
33306 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
33307
33308 fi
33309
33310 if test $ac_cv_func_vasprintf = no; then
33311
33312
33313
33314
33315
33316
33317
33318
33319
33320 gl_paper_LIBOBJS="$gl_paper_LIBOBJS vasprintf.$ac_objext"
33321
33322
33323
33324
33325
33326
33327
33328
33329
33330 gl_paper_LIBOBJS="$gl_paper_LIBOBJS asprintf.$ac_objext"
33331
33332
33333 if test $ac_cv_func_vasprintf = yes; then
33334 REPLACE_VASPRINTF=1
33335 else
33336 HAVE_VASPRINTF=0
33337 fi
33338
33339
33340
33341
33342
33343
33344
33345
33346 fi
33347
33348
33349
33350
33351
33352
33353
33354
33355
33356
33357 GL_GL_PAPER_GNULIB_VASPRINTF=1
33358
33359
33360
33361
33362
33363 printf "%s\n" "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
33364
33365
33366
33367
33368
33369 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
33370
33371
33372
33373 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
33374
33375
33376
33377
33378
33379
33380
33381
33382
33383
33384
33385
33386
33387
33388
33389
33390
33391
33392
33393
33394 :
33395
33396
33397 printf "%s\n" "#define GNULIB_XALLOC 1" >>confdefs.h
33398
33399
33400
33401
33402 printf "%s\n" "#define GNULIB_XALLOC_DIE 1" >>confdefs.h
33403
33404
33405
33406
33407 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
33408 if test "x$ac_cv_header_stdint_h" = xyes
33409 then :
33410 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
33411
33412 fi
33413
33414
33415 :
33416
33417
33418 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
33419
33420 # End of code from modules
33421
33422
33423
33424
33425
33426
33427
33428
33429
33430
33431
33432 gltests_libdeps=
33433 gltests_ltlibdeps=
33434
33435
33436
33437
33438
33439
33440
33441
33442
33443
33444
33445
33446 gl_source_base='tests'
33447 gl_source_base_prefix=
33448 gl_papertests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
33449
33450 gl_module_indicator_condition=$gl_papertests_WITNESS
33451
33452
33453
33454
33455
33456
33457
33458
33459
33460
33461
33462
33463
33464
33465 # Check for glibc (for tests)
33466 ac_fn_c_check_func "$LINENO" "gnu_get_libc_version" "ac_cv_func_gnu_get_libc_version"
33467 if test "x$ac_cv_func_gnu_get_libc_version" = xyes
33468 then :
33469 printf "%s\n" "#define HAVE_GNU_GET_LIBC_VERSION 1" >>confdefs.h
33470
33471 fi
33472 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
33473 if test "x$ac_cv_func_strndup" = xyes
33474 then :
33475 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
33476
33477 fi
33478
33479 HAVE_GNU_GET_LIBC_VERSION=$ac_cv_func_gnu_get_libc_version
33480
33481
33482 # Windows-specific checks
33483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
33484 printf %s "checking for native Win32... " >&6; }
33485 native_win32=no
33486 case "$host" in
33487 *-*-mingw*)
33488 native_win32=yes
33489 ;;
33490 esac
33491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $native_win32" >&5
33492 printf "%s\n" "$native_win32" >&6; }
33493 if test "x$native_win32" = "xyes"; then
33494 OS_WIN32_TRUE=
33495 OS_WIN32_FALSE='#'
33496 else
33497 OS_WIN32_TRUE='#'
33498 OS_WIN32_FALSE=
33499 fi
33500
33501
33502 if case "$host_os" in mingw* | cygwin*) true;; *) false;; esac; then
33503 SHLIBS_IN_BINDIR_TRUE=
33504 SHLIBS_IN_BINDIR_FALSE='#'
33505 else
33506 SHLIBS_IN_BINDIR_TRUE='#'
33507 SHLIBS_IN_BINDIR_FALSE=
33508 fi
33509
33510
33511 # Check whether --enable-gcc-warnings was given.
33512 if test ${enable_gcc_warnings+y}
33513 then :
33514 enableval=$enable_gcc_warnings; case $enableval in
33515 yes|no) ;;
33516 *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
33517 esac
33518 gl_gcc_warnings=$enableval
33519 else $as_nop
33520 gl_gcc_warnings=no
33521
33522 fi
33523
33524 if test "$gl_gcc_warnings" = yes; then
33525 nw=
33526 nw="$nw -Wsystem-headers" # Don’t let system headers trigger warnings
33527 nw="$nw -Wundef" # All compiler preprocessors support #if UNDEF
33528 nw="$nw -Wtraditional" # All compilers nowadays support ANSI C
33529 nw="$nw -Wdeclaration-after-statement" # We require C99.
33530 nw="$nw -Wtraditional-conversion" # Don't care.
33531 nw="$nw -Wpadded" # Don't care.
33532 nw="$nw -Wc++-compat" # Don't care.
33533 nw="$nw -Woverlength-strings" # Don't care.
33534 nw="$nw -Wmissing-format-attribute" # Don't care.
33535 nw="$nw -Wunreachable-code" # Seems buggy.
33536
33537
33538 ac_ext=c
33539 ac_cpp='$CPP $CPPFLAGS'
33540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33543
33544
33545
33546 if test -n "$GCC"; then
33547
33548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
33549 printf %s "checking whether -Wno-missing-field-initializers is supported... " >&6; }
33550 if test ${gl_cv_cc_nomfi_supported+y}
33551 then :
33552 printf %s "(cached) " >&6
33553 else $as_nop
33554 gl_save_CFLAGS="$CFLAGS"
33555 CFLAGS="$CFLAGS -Wextra -Werror -Wno-missing-field-initializers"
33556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33557 /* end confdefs.h. */
33558
33559 int
33560 main (void)
33561 {
33562
33563 ;
33564 return 0;
33565 }
33566 _ACEOF
33567 if ac_fn_c_try_compile "$LINENO"
33568 then :
33569 gl_cv_cc_nomfi_supported=yes
33570 else $as_nop
33571 gl_cv_cc_nomfi_supported=no
33572 fi
33573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33574 CFLAGS="$gl_save_CFLAGS"
33575
33576 fi
33577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
33578 printf "%s\n" "$gl_cv_cc_nomfi_supported" >&6; }
33579
33580 if test "$gl_cv_cc_nomfi_supported" = yes; then
33581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
33582 printf %s "checking whether -Wno-missing-field-initializers is needed... " >&6; }
33583 if test ${gl_cv_cc_nomfi_needed+y}
33584 then :
33585 printf %s "(cached) " >&6
33586 else $as_nop
33587 gl_save_CFLAGS="$CFLAGS"
33588 CFLAGS="$CFLAGS -Wextra -Werror"
33589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33590 /* end confdefs.h. */
33591 int f (void)
33592 {
33593 typedef struct { int a; int b; } s_t;
33594 s_t s1 = { 0, };
33595 return s1.b;
33596 }
33597
33598 int
33599 main (void)
33600 {
33601
33602 ;
33603 return 0;
33604 }
33605 _ACEOF
33606 if ac_fn_c_try_compile "$LINENO"
33607 then :
33608 gl_cv_cc_nomfi_needed=no
33609 else $as_nop
33610 gl_cv_cc_nomfi_needed=yes
33611 fi
33612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33613 CFLAGS="$gl_save_CFLAGS"
33614
33615 fi
33616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
33617 printf "%s\n" "$gl_cv_cc_nomfi_needed" >&6; }
33618 fi
33619
33620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
33621 printf %s "checking whether -Wuninitialized is supported... " >&6; }
33622 if test ${gl_cv_cc_uninitialized_supported+y}
33623 then :
33624 printf %s "(cached) " >&6
33625 else $as_nop
33626 gl_save_CFLAGS="$CFLAGS"
33627 CFLAGS="$CFLAGS -Werror -Wuninitialized"
33628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33629 /* end confdefs.h. */
33630
33631 int
33632 main (void)
33633 {
33634
33635 ;
33636 return 0;
33637 }
33638 _ACEOF
33639 if ac_fn_c_try_compile "$LINENO"
33640 then :
33641 gl_cv_cc_uninitialized_supported=yes
33642 else $as_nop
33643 gl_cv_cc_uninitialized_supported=no
33644 fi
33645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33646 CFLAGS="$gl_save_CFLAGS"
33647
33648 fi
33649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
33650 printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; }
33651
33652 fi
33653
33654 # List all gcc warning categories.
33655 # To compare this list to your installed GCC's, run this Bash command:
33656 #
33657 # comm -3 \
33658 # <((sed -n 's/^ *\(-[^ 0-9][^ ]*\).*/\1/p' manywarnings.m4; \
33659 # awk '/^[^#]/ {print warnings}' ../build-aux/gcc-warning.spec) | sort) \
33660 # <(LC_ALL=C gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort)
33661
33662 warnings=
33663 for gl_manywarn_item in -fanalyzer -fno-common \
33664 -Wall \
33665 -Warith-conversion \
33666 -Wbad-function-cast \
33667 -Wcast-align=strict \
33668 -Wdate-time \
33669 -Wdisabled-optimization \
33670 -Wdouble-promotion \
33671 -Wduplicated-branches \
33672 -Wduplicated-cond \
33673 -Wextra \
33674 -Wformat-signedness \
33675 -Winit-self \
33676 -Winline \
33677 -Winvalid-pch \
33678 -Wlogical-op \
33679 -Wmissing-declarations \
33680 -Wmissing-include-dirs \
33681 -Wmissing-prototypes \
33682 -Wnested-externs \
33683 -Wnull-dereference \
33684 -Wold-style-definition \
33685 -Wopenmp-simd \
33686 -Woverlength-strings \
33687 -Wpacked \
33688 -Wpointer-arith \
33689 -Wshadow \
33690 -Wstack-protector \
33691 -Wstrict-overflow \
33692 -Wstrict-prototypes \
33693 -Wsuggest-attribute=cold \
33694 -Wsuggest-attribute=const \
33695 -Wsuggest-attribute=format \
33696 -Wsuggest-attribute=malloc \
33697 -Wsuggest-attribute=noreturn \
33698 -Wsuggest-attribute=pure \
33699 -Wsuggest-final-methods \
33700 -Wsuggest-final-types \
33701 -Wsync-nand \
33702 -Wsystem-headers \
33703 -Wtrampolines \
33704 -Wuninitialized \
33705 -Wunknown-pragmas \
33706 -Wunsafe-loop-optimizations \
33707 -Wunused-macros \
33708 -Wvariadic-macros \
33709 -Wvector-operation-performance \
33710 -Wvla \
33711 -Wwrite-strings \
33712 \
33713 ; do
33714 as_fn_append warnings " $gl_manywarn_item"
33715 done
33716
33717 # gcc --help=warnings outputs an unusual form for these options; list
33718 # them here so that the above 'comm' command doesn't report a false match.
33719 as_fn_append warnings ' -Warray-bounds=2'
33720 as_fn_append warnings ' -Wattribute-alias=2'
33721 as_fn_append warnings ' -Wbidi-chars=any,ucn'
33722 as_fn_append warnings ' -Wformat-overflow=2'
33723 as_fn_append warnings ' -Wformat=2'
33724 as_fn_append warnings ' -Wformat-truncation=2'
33725 as_fn_append warnings ' -Wimplicit-fallthrough=5'
33726 as_fn_append warnings ' -Wshift-overflow=2'
33727 as_fn_append warnings ' -Wuse-after-free=3'
33728 as_fn_append warnings ' -Wunused-const-variable=2'
33729 as_fn_append warnings ' -Wvla-larger-than=4031'
33730
33731 # These are needed for older GCC versions.
33732 if test -n "$GCC"; then
33733 case `($CC --version) 2>/dev/null` in
33734 'gcc (GCC) '[0-3].* | \
33735 'gcc (GCC) '4.[0-7].*)
33736 as_fn_append warnings ' -fdiagnostics-show-option'
33737 as_fn_append warnings ' -funit-at-a-time'
33738 ;;
33739 esac
33740 fi
33741
33742 # Disable specific options as needed.
33743 if test "$gl_cv_cc_nomfi_needed" = yes; then
33744 as_fn_append warnings ' -Wno-missing-field-initializers'
33745 fi
33746
33747 if test "$gl_cv_cc_uninitialized_supported" = no; then
33748 as_fn_append warnings ' -Wno-uninitialized'
33749 fi
33750
33751 # This warning have too many false alarms in GCC 11.2.1.
33752 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101713
33753 as_fn_append warnings ' -Wno-analyzer-malloc-leak'
33754
33755 ac_ext=c
33756 ac_cpp='$CPP $CPPFLAGS'
33757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33760
33761
33762
33763
33764 gl_warn_set=
33765 set x $warnings; shift
33766 for gl_warn_item
33767 do
33768 case " $nw " in
33769 *" $gl_warn_item "*)
33770 ;;
33771 *)
33772 as_fn_append gl_warn_set " $gl_warn_item"
33773 ;;
33774 esac
33775 done
33776 warnings=$gl_warn_set
33777
33778 for w in $warnings; do
33779
33780 ac_ext=c
33781 ac_cpp='$CPP $CPPFLAGS'
33782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33785
33786
33787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
33788 printf %s "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
33789 if test ${gl_cv_warn_c__Werror__Wunknown_warning_option+y}
33790 then :
33791 printf %s "(cached) " >&6
33792 else $as_nop
33793
33794 gl_save_compiler_FLAGS="$CFLAGS"
33795 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
33796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33797 /* end confdefs.h. */
33798
33799 int
33800 main (void)
33801 {
33802
33803 ;
33804 return 0;
33805 }
33806 _ACEOF
33807 if ac_fn_c_try_link "$LINENO"
33808 then :
33809 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
33810 else $as_nop
33811 gl_cv_warn_c__Werror__Wunknown_warning_option=no
33812 fi
33813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33814 conftest$ac_exeext conftest.$ac_ext
33815 CFLAGS="$gl_save_compiler_FLAGS"
33816
33817 fi
33818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
33819 printf "%s\n" "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
33820 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes
33821 then :
33822 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
33823 else $as_nop
33824 gl_unknown_warnings_are_errors=
33825 fi
33826
33827 ac_ext=c
33828 ac_cpp='$CPP $CPPFLAGS'
33829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33832
33833
33834
33835
33836 as_gl_Warn=`printf "%s\n" "gl_cv_warn_c_$w" | $as_tr_sh`
33837 gl_positive="$w"
33838 case $gl_positive in
33839 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
33840 esac
33841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
33842 printf %s "checking whether C compiler handles $w... " >&6; }
33843 if eval test \${$as_gl_Warn+y}
33844 then :
33845 printf %s "(cached) " >&6
33846 else $as_nop
33847
33848 gl_save_compiler_FLAGS="$CFLAGS"
33849 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
33850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33851 /* end confdefs.h. */
33852
33853 int
33854 main (void)
33855 {
33856
33857 ;
33858 return 0;
33859 }
33860 _ACEOF
33861 if ac_fn_c_try_link "$LINENO"
33862 then :
33863 eval "$as_gl_Warn=yes"
33864 else $as_nop
33865 eval "$as_gl_Warn=no"
33866 fi
33867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33868 conftest$ac_exeext conftest.$ac_ext
33869 CFLAGS="$gl_save_compiler_FLAGS"
33870
33871 fi
33872 eval ac_res=\$$as_gl_Warn
33873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33874 printf "%s\n" "$ac_res" >&6; }
33875 if eval test \"x\$"$as_gl_Warn"\" = x"yes"
33876 then :
33877 as_fn_append WARN_CFLAGS " $w"
33878 fi
33879
33880
33881 done
33882
33883
33884
33885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wconversion" >&5
33886 printf %s "checking whether C compiler handles -Wconversion... " >&6; }
33887 if test ${gl_cv_warn_c__Wconversion+y}
33888 then :
33889 printf %s "(cached) " >&6
33890 else $as_nop
33891
33892 gl_save_compiler_FLAGS="$CFLAGS"
33893 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wconversion"
33894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33895 /* end confdefs.h. */
33896
33897 int
33898 main (void)
33899 {
33900
33901 ;
33902 return 0;
33903 }
33904 _ACEOF
33905 if ac_fn_c_try_link "$LINENO"
33906 then :
33907 gl_cv_warn_c__Wconversion=yes
33908 else $as_nop
33909 gl_cv_warn_c__Wconversion=no
33910 fi
33911 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33912 conftest$ac_exeext conftest.$ac_ext
33913 CFLAGS="$gl_save_compiler_FLAGS"
33914
33915 fi
33916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wconversion" >&5
33917 printf "%s\n" "$gl_cv_warn_c__Wconversion" >&6; }
33918 if test "x$gl_cv_warn_c__Wconversion" = xyes
33919 then :
33920 as_fn_append WARN_CFLAGS " -Wconversion"
33921 fi
33922
33923
33924
33925
33926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-error=format-security" >&5
33927 printf %s "checking whether C compiler handles -Wno-error=format-security... " >&6; }
33928 if test ${gl_cv_warn_c__Wno_error_format_security+y}
33929 then :
33930 printf %s "(cached) " >&6
33931 else $as_nop
33932
33933 gl_save_compiler_FLAGS="$CFLAGS"
33934 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror=format-security"
33935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33936 /* end confdefs.h. */
33937
33938 int
33939 main (void)
33940 {
33941
33942 ;
33943 return 0;
33944 }
33945 _ACEOF
33946 if ac_fn_c_try_link "$LINENO"
33947 then :
33948 gl_cv_warn_c__Wno_error_format_security=yes
33949 else $as_nop
33950 gl_cv_warn_c__Wno_error_format_security=no
33951 fi
33952 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33953 conftest$ac_exeext conftest.$ac_ext
33954 CFLAGS="$gl_save_compiler_FLAGS"
33955
33956 fi
33957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_error_format_security" >&5
33958 printf "%s\n" "$gl_cv_warn_c__Wno_error_format_security" >&6; }
33959 if test "x$gl_cv_warn_c__Wno_error_format_security" = xyes
33960 then :
33961 as_fn_append WARN_CFLAGS " -Wno-error=format-security"
33962 fi
33963
33964
33965
33966 # When compiling with GCC, prefer -isystem to -I when including system
33967 # include files, to avoid generating useless diagnostics for the files.
33968 ISYSTEM='-isystem '
33969 else
33970 ISYSTEM='-I'
33971 fi
33972
33973
33974 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
33975 # Extract the first word of "perl", so it can be a program name with args.
33976 set dummy perl; ac_word=$2
33977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33978 printf %s "checking for $ac_word... " >&6; }
33979 if test ${ac_cv_path_PERL+y}
33980 then :
33981 printf %s "(cached) " >&6
33982 else $as_nop
33983 case $PERL in
33984 [\\/]* | ?:[\\/]*)
33985 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33986 ;;
33987 *)
33988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33989 for as_dir in $PATH
33990 do
33991 IFS=$as_save_IFS
33992 case $as_dir in #(((
33993 '') as_dir=./ ;;
33994 */) ;;
33995 *) as_dir=$as_dir/ ;;
33996 esac
33997 for ac_exec_ext in '' $ac_executable_extensions; do
33998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33999 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
34000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
34001 break 2
34002 fi
34003 done
34004 done
34005 IFS=$as_save_IFS
34006
34007 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
34008 ;;
34009 esac
34010 fi
34011 PERL=$ac_cv_path_PERL
34012 if test -n "$PERL"; then
34013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
34014 printf "%s\n" "$PERL" >&6; }
34015 else
34016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34017 printf "%s\n" "no" >&6; }
34018 fi
34019
34020
34021 # Extract the first word of "help2man", so it can be a program name with args.
34022 set dummy help2man; ac_word=$2
34023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34024 printf %s "checking for $ac_word... " >&6; }
34025 if test ${ac_cv_path_HELP2MAN+y}
34026 then :
34027 printf %s "(cached) " >&6
34028 else $as_nop
34029 case $HELP2MAN in
34030 [\\/]* | ?:[\\/]*)
34031 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
34032 ;;
34033 *)
34034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34035 for as_dir in $PATH
34036 do
34037 IFS=$as_save_IFS
34038 case $as_dir in #(((
34039 '') as_dir=./ ;;
34040 */) ;;
34041 *) as_dir=$as_dir/ ;;
34042 esac
34043 for ac_exec_ext in '' $ac_executable_extensions; do
34044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
34045 ac_cv_path_HELP2MAN="$as_dir$ac_word$ac_exec_ext"
34046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
34047 break 2
34048 fi
34049 done
34050 done
34051 IFS=$as_save_IFS
34052
34053 test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="help2man"
34054 ;;
34055 esac
34056 fi
34057 HELP2MAN=$ac_cv_path_HELP2MAN
34058 if test -n "$HELP2MAN"; then
34059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
34060 printf "%s\n" "$HELP2MAN" >&6; }
34061 else
34062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34063 printf "%s\n" "no" >&6; }
34064 fi
34065
34066
34067 CROSS_COMPILING=$cross_compiling
34068
34069
34070 ac_config_headers="$ac_config_headers config.h"
34071
34072 ac_config_files="$ac_config_files Makefile lib/Makefile lib/libpaper.c.in lib/libpaper.rc libgnu/Makefile src/Makefile src/libgnu/Makefile man/Makefile tests/Makefile"
34073
34074 ac_config_files="$ac_config_files build-aux/x-to-1"
34075
34076 cat >confcache <<\_ACEOF
34077 # This file is a shell script that caches the results of configure
34078 # tests run on this system so they can be shared between configure
34079 # scripts and configure runs, see configure's option --config-cache.
34080 # It is not useful on other systems. If it contains results you don't
34081 # want to keep, you may remove or edit it.
34082 #
34083 # config.status only pays attention to the cache file if you give it
34084 # the --recheck option to rerun configure.
34085 #
34086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34088 # following values.
34089
34090 _ACEOF
34091
34092 # The following way of writing the cache mishandles newlines in values,
34093 # but we know of no workaround that is simple, portable, and efficient.
34094 # So, we kill variables containing newlines.
34095 # Ultrix sh set writes to stderr and can't be redirected directly,
34096 # and sets the high bit in the cache file unless we assign to the vars.
34097 (
34098 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34099 eval ac_val=\$$ac_var
34100 case $ac_val in #(
34101 *${as_nl}*)
34102 case $ac_var in #(
34103 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34104 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34105 esac
34106 case $ac_var in #(
34107 _ | IFS | as_nl) ;; #(
34108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34109 *) { eval $ac_var=; unset $ac_var;} ;;
34110 esac ;;
34111 esac
34112 done
34113
34114 (set) 2>&1 |
34115 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34116 *${as_nl}ac_space=\ *)
34117 # `set' does not quote correctly, so add quotes: double-quote
34118 # substitution turns \\\\ into \\, and sed turns \\ into \.
34119 sed -n \
34120 "s/'/'\\\\''/g;
34121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34122 ;; #(
34123 *)
34124 # `set' quotes correctly as required by POSIX, so do not add quotes.
34125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34126 ;;
34127 esac |
34128 sort
34129 ) |
34130 sed '
34131 /^ac_cv_env_/b end
34132 t clear
34133 :clear
34134 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
34135 t end
34136 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34137 :end' >>confcache
34138 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34139 if test -w "$cache_file"; then
34140 if test "x$cache_file" != "x/dev/null"; then
34141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34142 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
34143 if test ! -f "$cache_file" || test -h "$cache_file"; then
34144 cat confcache >"$cache_file"
34145 else
34146 case $cache_file in #(
34147 */* | ?:*)
34148 mv -f confcache "$cache_file"$$ &&
34149 mv -f "$cache_file"$$ "$cache_file" ;; #(
34150 *)
34151 mv -f confcache "$cache_file" ;;
34152 esac
34153 fi
34154 fi
34155 else
34156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34157 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
34158 fi
34159 fi
34160 rm -f confcache
34161
34162 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34163 # Let make expand exec_prefix.
34164 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34165
34166 DEFS=-DHAVE_CONFIG_H
34167
34168 ac_libobjs=
34169 ac_ltlibobjs=
34170 U=
34171 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34172 # 1. Remove the extension, and $U if already installed.
34173 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34174 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
34175 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34176 # will be set to the directory where LIBOBJS objects are built.
34177 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34178 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34179 done
34180 LIBOBJS=$ac_libobjs
34181
34182 LTLIBOBJS=$ac_ltlibobjs
34183
34184
34185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
34186 printf %s "checking that generated files are newer than configure... " >&6; }
34187 if test -n "$am_sleep_pid"; then
34188 # Hide warnings about reused PIDs.
34189 wait $am_sleep_pid 2>/dev/null
34190 fi
34191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
34192 printf "%s\n" "done" >&6; }
34193 if test -n "$EXEEXT"; then
34194 am__EXEEXT_TRUE=
34195 am__EXEEXT_FALSE='#'
34196 else
34197 am__EXEEXT_TRUE='#'
34198 am__EXEEXT_FALSE=
34199 fi
34200
34201 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34202 as_fn_error $? "conditional \"AMDEP\" was never defined.
34203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34204 fi
34205 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34206 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34208 fi
34209 # Check whether --enable-year2038 was given.
34210 if test ${enable_year2038+y}
34211 then :
34212 enableval=$enable_year2038;
34213 fi
34214
34215 # Check whether --enable-largefile was given.
34216 if test ${enable_largefile+y}
34217 then :
34218 enableval=$enable_largefile;
34219 fi
34220
34221 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
34222 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
34223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34224 fi
34225
34226 gl_libobjs=
34227 gl_ltlibobjs=
34228 gl_libobjdeps=
34229 if test -n "$gl_LIBOBJS"; then
34230 # Remove the extension.
34231 sed_drop_objext='s/\.o$//;s/\.obj$//'
34232 sed_dirname1='s,//*,/,g'
34233 sed_dirname2='s,\(.\)/$,\1,'
34234 sed_dirname3='s,^[^/]*$,.,'
34235 sed_dirname4='s,\(.\)/[^/]*$,\1,'
34236 sed_basename1='s,.*/,,'
34237 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
34238 gl_libobjs="$gl_libobjs $i.$ac_objext"
34239 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
34240 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
34241 i_base=`echo "$i" | sed -e "$sed_basename1"`
34242 gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
34243 done
34244 fi
34245 gl_LIBOBJS=$gl_libobjs
34246
34247 gl_LTLIBOBJS=$gl_ltlibobjs
34248
34249 gl_LIBOBJDEPS=$gl_libobjdeps
34250
34251
34252
34253 gltests_libobjs=
34254 gltests_ltlibobjs=
34255 gltests_libobjdeps=
34256 if test -n "$gltests_LIBOBJS"; then
34257 # Remove the extension.
34258 sed_drop_objext='s/\.o$//;s/\.obj$//'
34259 sed_dirname1='s,//*,/,g'
34260 sed_dirname2='s,\(.\)/$,\1,'
34261 sed_dirname3='s,^[^/]*$,.,'
34262 sed_dirname4='s,\(.\)/[^/]*$,\1,'
34263 sed_basename1='s,.*/,,'
34264 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
34265 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
34266 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
34267 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
34268 i_base=`echo "$i" | sed -e "$sed_basename1"`
34269 gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
34270 done
34271 fi
34272 gltests_LIBOBJS=$gltests_libobjs
34273
34274 gltests_LTLIBOBJS=$gltests_ltlibobjs
34275
34276 gltests_LIBOBJDEPS=$gltests_libobjdeps
34277
34278
34279 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
34280 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
34281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34282 fi
34283 if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
34284 as_fn_error $? "conditional \"RELOCATABLE_VIA_LD\" was never defined.
34285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34286 fi
34287 if test -z "${RELOCATABLE_VIA_WRAPPER_TRUE}" && test -z "${RELOCATABLE_VIA_WRAPPER_FALSE}"; then
34288 as_fn_error $? "conditional \"RELOCATABLE_VIA_WRAPPER\" was never defined.
34289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34290 fi
34291
34292
34293 gl_paper_libobjs=
34294 gl_paper_ltlibobjs=
34295 gl_paper_libobjdeps=
34296 if test -n "$gl_paper_LIBOBJS"; then
34297 # Remove the extension.
34298 sed_drop_objext='s/\.o$//;s/\.obj$//'
34299 sed_dirname1='s,//*,/,g'
34300 sed_dirname2='s,\(.\)/$,\1,'
34301 sed_dirname3='s,^[^/]*$,.,'
34302 sed_dirname4='s,\(.\)/[^/]*$,\1,'
34303 sed_basename1='s,.*/,,'
34304 for i in `for i in $gl_paper_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
34305 gl_paper_libobjs="$gl_paper_libobjs $i.$ac_objext"
34306 gl_paper_ltlibobjs="$gl_paper_ltlibobjs $i.lo"
34307 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
34308 i_base=`echo "$i" | sed -e "$sed_basename1"`
34309 gl_paper_libobjdeps="$gl_paper_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
34310 done
34311 fi
34312 gl_paper_LIBOBJS=$gl_paper_libobjs
34313
34314 gl_paper_LTLIBOBJS=$gl_paper_ltlibobjs
34315
34316 gl_paper_LIBOBJDEPS=$gl_paper_libobjdeps
34317
34318
34319
34320 gl_papertests_libobjs=
34321 gl_papertests_ltlibobjs=
34322 gl_papertests_libobjdeps=
34323 if test -n "$gl_papertests_LIBOBJS"; then
34324 # Remove the extension.
34325 sed_drop_objext='s/\.o$//;s/\.obj$//'
34326 sed_dirname1='s,//*,/,g'
34327 sed_dirname2='s,\(.\)/$,\1,'
34328 sed_dirname3='s,^[^/]*$,.,'
34329 sed_dirname4='s,\(.\)/[^/]*$,\1,'
34330 sed_basename1='s,.*/,,'
34331 for i in `for i in $gl_papertests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
34332 gl_papertests_libobjs="$gl_papertests_libobjs $i.$ac_objext"
34333 gl_papertests_ltlibobjs="$gl_papertests_ltlibobjs $i.lo"
34334 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
34335 i_base=`echo "$i" | sed -e "$sed_basename1"`
34336 gl_papertests_libobjdeps="$gl_papertests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
34337 done
34338 fi
34339 gl_papertests_LIBOBJS=$gl_papertests_libobjs
34340
34341 gl_papertests_LTLIBOBJS=$gl_papertests_ltlibobjs
34342
34343 gl_papertests_LIBOBJDEPS=$gl_papertests_libobjdeps
34344
34345
34346 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
34347 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
34348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34349 fi
34350 if test -z "${SHLIBS_IN_BINDIR_TRUE}" && test -z "${SHLIBS_IN_BINDIR_FALSE}"; then
34351 as_fn_error $? "conditional \"SHLIBS_IN_BINDIR\" was never defined.
34352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34353 fi
34354
34355 : "${CONFIG_STATUS=./config.status}"
34356 ac_write_fail=0
34357 ac_clean_files_save=$ac_clean_files
34358 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34360 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
34361 as_write_fail=0
34362 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34363 #! $SHELL
34364 # Generated by $as_me.
34365 # Run this file to recreate the current configuration.
34366 # Compiler output produced by configure, useful for debugging
34367 # configure, is in config.log if it exists.
34368
34369 debug=false
34370 ac_cs_recheck=false
34371 ac_cs_silent=false
34372
34373 SHELL=\${CONFIG_SHELL-$SHELL}
34374 export SHELL
34375 _ASEOF
34376 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34377 ## -------------------- ##
34378 ## M4sh Initialization. ##
34379 ## -------------------- ##
34380
34381 # Be more Bourne compatible
34382 DUALCASE=1; export DUALCASE # for MKS sh
34383 as_nop=:
34384 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
34385 then :
34386 emulate sh
34387 NULLCMD=:
34388 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34389 # is contrary to our usage. Disable this feature.
34390 alias -g '${1+"$@"}'='"$@"'
34391 setopt NO_GLOB_SUBST
34392 else $as_nop
34393 case `(set -o) 2>/dev/null` in #(
34394 *posix*) :
34395 set -o posix ;; #(
34396 *) :
34397 ;;
34398 esac
34399 fi
34400
34401
34402
34403 # Reset variables that may have inherited troublesome values from
34404 # the environment.
34405
34406 # IFS needs to be set, to space, tab, and newline, in precisely that order.
34407 # (If _AS_PATH_WALK were called with IFS unset, it would have the
34408 # side effect of setting IFS to empty, thus disabling word splitting.)
34409 # Quoting is to prevent editors from complaining about space-tab.
34410 as_nl='
34411 '
34412 export as_nl
34413 IFS=" "" $as_nl"
34414
34415 PS1='$ '
34416 PS2='> '
34417 PS4='+ '
34418
34419 # Ensure predictable behavior from utilities with locale-dependent output.
34420 LC_ALL=C
34421 export LC_ALL
34422 LANGUAGE=C
34423 export LANGUAGE
34424
34425 # We cannot yet rely on "unset" to work, but we need these variables
34426 # to be unset--not just set to an empty or harmless value--now, to
34427 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
34428 # also avoids known problems related to "unset" and subshell syntax
34429 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
34430 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
34431 do eval test \${$as_var+y} \
34432 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
34433 done
34434
34435 # Ensure that fds 0, 1, and 2 are open.
34436 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
34437 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
34438 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
34439
34440 # The user is always right.
34441 if ${PATH_SEPARATOR+false} :; then
34442 PATH_SEPARATOR=:
34443 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34444 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34445 PATH_SEPARATOR=';'
34446 }
34447 fi
34448
34449
34450 # Find who we are. Look in the path if we contain no directory separator.
34451 as_myself=
34452 case $0 in #((
34453 *[\\/]* ) as_myself=$0 ;;
34454 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34455 for as_dir in $PATH
34456 do
34457 IFS=$as_save_IFS
34458 case $as_dir in #(((
34459 '') as_dir=./ ;;
34460 */) ;;
34461 *) as_dir=$as_dir/ ;;
34462 esac
34463 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
34464 done
34465 IFS=$as_save_IFS
34466
34467 ;;
34468 esac
34469 # We did not find ourselves, most probably we were run as `sh COMMAND'
34470 # in which case we are not to be found in the path.
34471 if test "x$as_myself" = x; then
34472 as_myself=$0
34473 fi
34474 if test ! -f "$as_myself"; then
34475 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34476 exit 1
34477 fi
34478
34479
34480
34481 # as_fn_error STATUS ERROR [LINENO LOG_FD]
34482 # ----------------------------------------
34483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
34485 # script with STATUS, using 1 if that was 0.
34486 as_fn_error ()
34487 {
34488 as_status=$1; test $as_status -eq 0 && as_status=1
34489 if test "$4"; then
34490 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
34492 fi
34493 printf "%s\n" "$as_me: error: $2" >&2
34494 as_fn_exit $as_status
34495 } # as_fn_error
34496
34497
34498
34499 # as_fn_set_status STATUS
34500 # -----------------------
34501 # Set $? to STATUS, without forking.
34502 as_fn_set_status ()
34503 {
34504 return $1
34505 } # as_fn_set_status
34506
34507 # as_fn_exit STATUS
34508 # -----------------
34509 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34510 as_fn_exit ()
34511 {
34512 set +e
34513 as_fn_set_status $1
34514 exit $1
34515 } # as_fn_exit
34516
34517 # as_fn_unset VAR
34518 # ---------------
34519 # Portably unset VAR.
34520 as_fn_unset ()
34521 {
34522 { eval $1=; unset $1;}
34523 }
34524 as_unset=as_fn_unset
34525
34526 # as_fn_append VAR VALUE
34527 # ----------------------
34528 # Append the text in VALUE to the end of the definition contained in VAR. Take
34529 # advantage of any shell optimizations that allow amortized linear growth over
34530 # repeated appends, instead of the typical quadratic growth present in naive
34531 # implementations.
34532 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
34533 then :
34534 eval 'as_fn_append ()
34535 {
34536 eval $1+=\$2
34537 }'
34538 else $as_nop
34539 as_fn_append ()
34540 {
34541 eval $1=\$$1\$2
34542 }
34543 fi # as_fn_append
34544
34545 # as_fn_arith ARG...
34546 # ------------------
34547 # Perform arithmetic evaluation on the ARGs, and store the result in the
34548 # global $as_val. Take advantage of shells that can avoid forks. The arguments
34549 # must be portable across $(()) and expr.
34550 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
34551 then :
34552 eval 'as_fn_arith ()
34553 {
34554 as_val=$(( $* ))
34555 }'
34556 else $as_nop
34557 as_fn_arith ()
34558 {
34559 as_val=`expr "$@" || test $? -eq 1`
34560 }
34561 fi # as_fn_arith
34562
34563
34564 if expr a : '\(a\)' >/dev/null 2>&1 &&
34565 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34566 as_expr=expr
34567 else
34568 as_expr=false
34569 fi
34570
34571 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34572 as_basename=basename
34573 else
34574 as_basename=false
34575 fi
34576
34577 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34578 as_dirname=dirname
34579 else
34580 as_dirname=false
34581 fi
34582
34583 as_me=`$as_basename -- "$0" ||
34584 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34585 X"$0" : 'X\(//\)$' \| \
34586 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34587 printf "%s\n" X/"$0" |
34588 sed '/^.*\/\([^/][^/]*\)\/*$/{
34589 s//\1/
34590 q
34591 }
34592 /^X\/\(\/\/\)$/{
34593 s//\1/
34594 q
34595 }
34596 /^X\/\(\/\).*/{
34597 s//\1/
34598 q
34599 }
34600 s/.*/./; q'`
34601
34602 # Avoid depending upon Character Ranges.
34603 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34604 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34605 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34606 as_cr_digits='0123456789'
34607 as_cr_alnum=$as_cr_Letters$as_cr_digits
34608
34609
34610 # Determine whether it's possible to make 'echo' print without a newline.
34611 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
34612 # for compatibility with existing Makefiles.
34613 ECHO_C= ECHO_N= ECHO_T=
34614 case `echo -n x` in #(((((
34615 -n*)
34616 case `echo 'xy\c'` in
34617 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34618 xy) ECHO_C='\c';;
34619 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34620 ECHO_T=' ';;
34621 esac;;
34622 *)
34623 ECHO_N='-n';;
34624 esac
34625
34626 # For backward compatibility with old third-party macros, we provide
34627 # the shell variables $as_echo and $as_echo_n. New code should use
34628 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
34629 as_echo='printf %s\n'
34630 as_echo_n='printf %s'
34631
34632 rm -f conf$$ conf$$.exe conf$$.file
34633 if test -d conf$$.dir; then
34634 rm -f conf$$.dir/conf$$.file
34635 else
34636 rm -f conf$$.dir
34637 mkdir conf$$.dir 2>/dev/null
34638 fi
34639 if (echo >conf$$.file) 2>/dev/null; then
34640 if ln -s conf$$.file conf$$ 2>/dev/null; then
34641 as_ln_s='ln -s'
34642 # ... but there are two gotchas:
34643 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34644 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34645 # In both cases, we have to default to `cp -pR'.
34646 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34647 as_ln_s='cp -pR'
34648 elif ln conf$$.file conf$$ 2>/dev/null; then
34649 as_ln_s=ln
34650 else
34651 as_ln_s='cp -pR'
34652 fi
34653 else
34654 as_ln_s='cp -pR'
34655 fi
34656 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34657 rmdir conf$$.dir 2>/dev/null
34658
34659
34660 # as_fn_mkdir_p
34661 # -------------
34662 # Create "$as_dir" as a directory, including parents if necessary.
34663 as_fn_mkdir_p ()
34664 {
34665
34666 case $as_dir in #(
34667 -*) as_dir=./$as_dir;;
34668 esac
34669 test -d "$as_dir" || eval $as_mkdir_p || {
34670 as_dirs=
34671 while :; do
34672 case $as_dir in #(
34673 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34674 *) as_qdir=$as_dir;;
34675 esac
34676 as_dirs="'$as_qdir' $as_dirs"
34677 as_dir=`$as_dirname -- "$as_dir" ||
34678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34679 X"$as_dir" : 'X\(//\)[^/]' \| \
34680 X"$as_dir" : 'X\(//\)$' \| \
34681 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34682 printf "%s\n" X"$as_dir" |
34683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34684 s//\1/
34685 q
34686 }
34687 /^X\(\/\/\)[^/].*/{
34688 s//\1/
34689 q
34690 }
34691 /^X\(\/\/\)$/{
34692 s//\1/
34693 q
34694 }
34695 /^X\(\/\).*/{
34696 s//\1/
34697 q
34698 }
34699 s/.*/./; q'`
34700 test -d "$as_dir" && break
34701 done
34702 test -z "$as_dirs" || eval "mkdir $as_dirs"
34703 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34704
34705
34706 } # as_fn_mkdir_p
34707 if mkdir -p . 2>/dev/null; then
34708 as_mkdir_p='mkdir -p "$as_dir"'
34709 else
34710 test -d ./-p && rmdir ./-p
34711 as_mkdir_p=false
34712 fi
34713
34714
34715 # as_fn_executable_p FILE
34716 # -----------------------
34717 # Test if FILE is an executable regular file.
34718 as_fn_executable_p ()
34719 {
34720 test -f "$1" && test -x "$1"
34721 } # as_fn_executable_p
34722 as_test_x='test -x'
34723 as_executable_p=as_fn_executable_p
34724
34725 # Sed expression to map a string onto a valid CPP name.
34726 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34727
34728 # Sed expression to map a string onto a valid variable name.
34729 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34730
34731
34732 exec 6>&1
34733 ## ----------------------------------- ##
34734 ## Main body of $CONFIG_STATUS script. ##
34735 ## ----------------------------------- ##
34736 _ASEOF
34737 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34738
34739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34740 # Save the log message, to keep $0 and so on meaningful, and to
34741 # report actual input values of CONFIG_FILES etc. instead of their
34742 # values after options handling.
34743 ac_log="
34744 This file was extended by libpaper $as_me 2.2.5, which was
34745 generated by GNU Autoconf 2.71. Invocation command line was
34746
34747 CONFIG_FILES = $CONFIG_FILES
34748 CONFIG_HEADERS = $CONFIG_HEADERS
34749 CONFIG_LINKS = $CONFIG_LINKS
34750 CONFIG_COMMANDS = $CONFIG_COMMANDS
34751 $ $0 $@
34752
34753 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34754 "
34755
34756 _ACEOF
34757
34758 case $ac_config_files in *"
34759 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34760 esac
34761
34762 case $ac_config_headers in *"
34763 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34764 esac
34765
34766
34767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34768 # Files that config.status was made for.
34769 config_files="$ac_config_files"
34770 config_headers="$ac_config_headers"
34771 config_commands="$ac_config_commands"
34772
34773 _ACEOF
34774
34775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34776 ac_cs_usage="\
34777 \`$as_me' instantiates files and other configuration actions
34778 from templates according to the current configuration. Unless the files
34779 and actions are specified as TAGs, all are instantiated by default.
34780
34781 Usage: $0 [OPTION]... [TAG]...
34782
34783 -h, --help print this help, then exit
34784 -V, --version print version number and configuration settings, then exit
34785 --config print configuration, then exit
34786 -q, --quiet, --silent
34787 do not print progress messages
34788 -d, --debug don't remove temporary files
34789 --recheck update $as_me by reconfiguring in the same conditions
34790 --file=FILE[:TEMPLATE]
34791 instantiate the configuration file FILE
34792 --header=FILE[:TEMPLATE]
34793 instantiate the configuration header FILE
34794
34795 Configuration files:
34796 $config_files
34797
34798 Configuration headers:
34799 $config_headers
34800
34801 Configuration commands:
34802 $config_commands
34803
34804 Report bugs to <[email protected]>.
34805 libpaper home page: <https://github.com/rrthomas/libpaper>."
34806
34807 _ACEOF
34808 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
34809 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
34810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34811 ac_cs_config='$ac_cs_config_escaped'
34812 ac_cs_version="\\
34813 libpaper config.status 2.2.5
34814 configured by $0, generated by GNU Autoconf 2.71,
34815 with options \\"\$ac_cs_config\\"
34816
34817 Copyright (C) 2021 Free Software Foundation, Inc.
34818 This config.status script is free software; the Free Software Foundation
34819 gives unlimited permission to copy, distribute and modify it."
34820
34821 ac_pwd='$ac_pwd'
34822 srcdir='$srcdir'
34823 INSTALL='$INSTALL'
34824 MKDIR_P='$MKDIR_P'
34825 AWK='$AWK'
34826 test -n "\$AWK" || AWK=awk
34827 _ACEOF
34828
34829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34830 # The default lists apply if the user does not specify any file.
34831 ac_need_defaults=:
34832 while test $# != 0
34833 do
34834 case $1 in
34835 --*=?*)
34836 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34837 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34838 ac_shift=:
34839 ;;
34840 --*=)
34841 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34842 ac_optarg=
34843 ac_shift=:
34844 ;;
34845 *)
34846 ac_option=$1
34847 ac_optarg=$2
34848 ac_shift=shift
34849 ;;
34850 esac
34851
34852 case $ac_option in
34853 # Handling of the options.
34854 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34855 ac_cs_recheck=: ;;
34856 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34857 printf "%s\n" "$ac_cs_version"; exit ;;
34858 --config | --confi | --conf | --con | --co | --c )
34859 printf "%s\n" "$ac_cs_config"; exit ;;
34860 --debug | --debu | --deb | --de | --d | -d )
34861 debug=: ;;
34862 --file | --fil | --fi | --f )
34863 $ac_shift
34864 case $ac_optarg in
34865 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34866 '') as_fn_error $? "missing file argument" ;;
34867 esac
34868 as_fn_append CONFIG_FILES " '$ac_optarg'"
34869 ac_need_defaults=false;;
34870 --header | --heade | --head | --hea )
34871 $ac_shift
34872 case $ac_optarg in
34873 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34874 esac
34875 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
34876 ac_need_defaults=false;;
34877 --he | --h)
34878 # Conflict between --help and --header
34879 as_fn_error $? "ambiguous option: \`$1'
34880 Try \`$0 --help' for more information.";;
34881 --help | --hel | -h )
34882 printf "%s\n" "$ac_cs_usage"; exit ;;
34883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34884 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34885 ac_cs_silent=: ;;
34886
34887 # This is an error.
34888 -*) as_fn_error $? "unrecognized option: \`$1'
34889 Try \`$0 --help' for more information." ;;
34890
34891 *) as_fn_append ac_config_targets " $1"
34892 ac_need_defaults=false ;;
34893
34894 esac
34895 shift
34896 done
34897
34898 ac_configure_extra_args=
34899
34900 if $ac_cs_silent; then
34901 exec 6>/dev/null
34902 ac_configure_extra_args="$ac_configure_extra_args --silent"
34903 fi
34904
34905 _ACEOF
34906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34907 if \$ac_cs_recheck; then
34908 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34909 shift
34910 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
34911 CONFIG_SHELL='$SHELL'
34912 export CONFIG_SHELL
34913 exec "\$@"
34914 fi
34915
34916 _ACEOF
34917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34918 exec 5>>config.log
34919 {
34920 echo
34921 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34922 ## Running $as_me. ##
34923 _ASBOX
34924 printf "%s\n" "$ac_log"
34925 } >&5
34926
34927 _ACEOF
34928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34929 #
34930 # INIT-COMMANDS
34931 #
34932 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
34933
34934
34935 # The HP-UX ksh and POSIX shell print the target directory to stdout
34936 # if CDPATH is set.
34937 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34938
34939 sed_quote_subst='$sed_quote_subst'
34940 double_quote_subst='$double_quote_subst'
34941 delay_variable_subst='$delay_variable_subst'
34942 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34943 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34944 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34945 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34946 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34947 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34948 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
34949 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34950 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34951 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
34952 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34953 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34954 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34955 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34956 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34957 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34958 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34959 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34960 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34961 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34962 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34963 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34964 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34965 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34966 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34967 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34968 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34969 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34970 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34971 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34972 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34973 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
34974 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34975 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34976 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
34977 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34978 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34979 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34980 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34981 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34982 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34983 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
34984 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34985 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
34986 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34987 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
34988 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34989 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34990 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34991 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34992 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34993 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34994 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34995 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34996 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34997 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34998 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34999 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35000 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
35001 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35002 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"`'
35003 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
35004 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35005 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
35006 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
35007 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35008 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35009 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
35010 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
35011 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
35012 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35013 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35014 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
35015 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
35016 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35017 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35018 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35019 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35020 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35021 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35022 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35023 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35024 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35025 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35026 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35027 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35028 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35029 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35030 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35031 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35032 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35033 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35034 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35035 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35036 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35037 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35038 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35039 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35040 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35041 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35042 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35043 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35044 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35045 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35046 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
35047 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35048 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35049 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35050 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35051 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
35052 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
35053 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35054 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35055 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35056 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35057 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35058 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35059 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35060 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35061 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35062 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35063 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35064 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35065 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35066 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35067 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35068 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35069 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35070 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35071 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
35072 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
35073 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35074 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35075 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35076 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35077 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35078 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35079
35080 LTCC='$LTCC'
35081 LTCFLAGS='$LTCFLAGS'
35082 compiler='$compiler_DEFAULT'
35083
35084 # A function that is used when there is no print builtin or printf.
35085 func_fallback_echo ()
35086 {
35087 eval 'cat <<_LTECHO_EOF
35088 \$1
35089 _LTECHO_EOF'
35090 }
35091
35092 # Quote evaled strings.
35093 for var in SHELL \
35094 ECHO \
35095 PATH_SEPARATOR \
35096 SED \
35097 GREP \
35098 EGREP \
35099 FGREP \
35100 LD \
35101 NM \
35102 LN_S \
35103 lt_SP2NL \
35104 lt_NL2SP \
35105 reload_flag \
35106 FILECMD \
35107 OBJDUMP \
35108 deplibs_check_method \
35109 file_magic_cmd \
35110 file_magic_glob \
35111 want_nocaseglob \
35112 DLLTOOL \
35113 sharedlib_from_linklib_cmd \
35114 AR \
35115 archiver_list_spec \
35116 STRIP \
35117 RANLIB \
35118 CC \
35119 CFLAGS \
35120 compiler \
35121 lt_cv_sys_global_symbol_pipe \
35122 lt_cv_sys_global_symbol_to_cdecl \
35123 lt_cv_sys_global_symbol_to_import \
35124 lt_cv_sys_global_symbol_to_c_name_address \
35125 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
35126 lt_cv_nm_interface \
35127 nm_file_list_spec \
35128 lt_cv_truncate_bin \
35129 lt_prog_compiler_no_builtin_flag \
35130 lt_prog_compiler_pic \
35131 lt_prog_compiler_wl \
35132 lt_prog_compiler_static \
35133 lt_cv_prog_compiler_c_o \
35134 need_locks \
35135 MANIFEST_TOOL \
35136 DSYMUTIL \
35137 NMEDIT \
35138 LIPO \
35139 OTOOL \
35140 OTOOL64 \
35141 shrext_cmds \
35142 export_dynamic_flag_spec \
35143 whole_archive_flag_spec \
35144 compiler_needs_object \
35145 with_gnu_ld \
35146 allow_undefined_flag \
35147 no_undefined_flag \
35148 hardcode_libdir_flag_spec \
35149 hardcode_libdir_separator \
35150 exclude_expsyms \
35151 include_expsyms \
35152 file_list_spec \
35153 variables_saved_for_relink \
35154 libname_spec \
35155 library_names_spec \
35156 soname_spec \
35157 install_override_mode \
35158 finish_eval \
35159 old_striplib \
35160 striplib; do
35161 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35162 *[\\\\\\\`\\"\\\$]*)
35163 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
35164 ;;
35165 *)
35166 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35167 ;;
35168 esac
35169 done
35170
35171 # Double-quote double-evaled strings.
35172 for var in reload_cmds \
35173 old_postinstall_cmds \
35174 old_postuninstall_cmds \
35175 old_archive_cmds \
35176 extract_expsyms_cmds \
35177 old_archive_from_new_cmds \
35178 old_archive_from_expsyms_cmds \
35179 archive_cmds \
35180 archive_expsym_cmds \
35181 module_cmds \
35182 module_expsym_cmds \
35183 export_symbols_cmds \
35184 prelink_cmds \
35185 postlink_cmds \
35186 postinstall_cmds \
35187 postuninstall_cmds \
35188 finish_cmds \
35189 sys_lib_search_path_spec \
35190 configure_time_dlsearch_path \
35191 configure_time_lt_sys_library_path; do
35192 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35193 *[\\\\\\\`\\"\\\$]*)
35194 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
35195 ;;
35196 *)
35197 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35198 ;;
35199 esac
35200 done
35201
35202 ac_aux_dir='$ac_aux_dir'
35203
35204 # See if we are running on zsh, and set the options that allow our
35205 # commands through without removal of \ escapes INIT.
35206 if test -n "\${ZSH_VERSION+set}"; then
35207 setopt NO_GLOB_SUBST
35208 fi
35209
35210
35211 PACKAGE='$PACKAGE'
35212 VERSION='$VERSION'
35213 RM='$RM'
35214 ofile='$ofile'
35215
35216
35217
35218
35219 _ACEOF
35220
35221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35222
35223 # Handling of arguments.
35224 for ac_config_target in $ac_config_targets
35225 do
35226 case $ac_config_target in
35227 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35228 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
35229 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
35230 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35231 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
35232 "lib/libpaper.c.in") CONFIG_FILES="$CONFIG_FILES lib/libpaper.c.in" ;;
35233 "lib/libpaper.rc") CONFIG_FILES="$CONFIG_FILES lib/libpaper.rc" ;;
35234 "libgnu/Makefile") CONFIG_FILES="$CONFIG_FILES libgnu/Makefile" ;;
35235 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
35236 "src/libgnu/Makefile") CONFIG_FILES="$CONFIG_FILES src/libgnu/Makefile" ;;
35237 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
35238 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
35239 "build-aux/x-to-1") CONFIG_FILES="$CONFIG_FILES build-aux/x-to-1" ;;
35240
35241 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35242 esac
35243 done
35244
35245
35246 # If the user did not use the arguments to specify the items to instantiate,
35247 # then the envvar interface is used. Set only those that are not.
35248 # We use the long form for the default assignment because of an extremely
35249 # bizarre bug on SunOS 4.1.3.
35250 if $ac_need_defaults; then
35251 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
35252 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
35253 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
35254 fi
35255
35256 # Have a temporary directory for convenience. Make it in the build tree
35257 # simply because there is no reason against having it here, and in addition,
35258 # creating and moving files from /tmp can sometimes cause problems.
35259 # Hook for its removal unless debugging.
35260 # Note that there is a small window in which the directory will not be cleaned:
35261 # after its creation but before its name has been assigned to `$tmp'.
35262 $debug ||
35263 {
35264 tmp= ac_tmp=
35265 trap 'exit_status=$?
35266 : "${ac_tmp:=$tmp}"
35267 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35268 ' 0
35269 trap 'as_fn_exit 1' 1 2 13 15
35270 }
35271 # Create a (secure) tmp directory for tmp files.
35272
35273 {
35274 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35275 test -d "$tmp"
35276 } ||
35277 {
35278 tmp=./conf$$-$RANDOM
35279 (umask 077 && mkdir "$tmp")
35280 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35281 ac_tmp=$tmp
35282
35283 # Set up the scripts for CONFIG_FILES section.
35284 # No need to generate them if there are no CONFIG_FILES.
35285 # This happens for instance with `./config.status config.h'.
35286 if test -n "$CONFIG_FILES"; then
35287
35288
35289 ac_cr=`echo X | tr X '\015'`
35290 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35291 # But we know of no other shell where ac_cr would be empty at this
35292 # point, so we can use a bashism as a fallback.
35293 if test "x$ac_cr" = x; then
35294 eval ac_cr=\$\'\\r\'
35295 fi
35296 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35297 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35298 ac_cs_awk_cr='\\r'
35299 else
35300 ac_cs_awk_cr=$ac_cr
35301 fi
35302
35303 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35304 _ACEOF
35305
35306
35307 {
35308 echo "cat >conf$$subs.awk <<_ACEOF" &&
35309 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35310 echo "_ACEOF"
35311 } >conf$$subs.sh ||
35312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35313 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35314 ac_delim='%!_!# '
35315 for ac_last_try in false false false false false :; do
35316 . ./conf$$subs.sh ||
35317 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35318
35319 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35320 if test $ac_delim_n = $ac_delim_num; then
35321 break
35322 elif $ac_last_try; then
35323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35324 else
35325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35326 fi
35327 done
35328 rm -f conf$$subs.sh
35329
35330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35331 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35332 _ACEOF
35333 sed -n '
35334 h
35335 s/^/S["/; s/!.*/"]=/
35336 p
35337 g
35338 s/^[^!]*!//
35339 :repl
35340 t repl
35341 s/'"$ac_delim"'$//
35342 t delim
35343 :nl
35344 h
35345 s/\(.\{148\}\)..*/\1/
35346 t more1
35347 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35348 p
35349 n
35350 b repl
35351 :more1
35352 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35353 p
35354 g
35355 s/.\{148\}//
35356 t nl
35357 :delim
35358 h
35359 s/\(.\{148\}\)..*/\1/
35360 t more2
35361 s/["\\]/\\&/g; s/^/"/; s/$/"/
35362 p
35363 b
35364 :more2
35365 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35366 p
35367 g
35368 s/.\{148\}//
35369 t delim
35370 ' <conf$$subs.awk | sed '
35371 /^[^""]/{
35372 N
35373 s/\n//
35374 }
35375 ' >>$CONFIG_STATUS || ac_write_fail=1
35376 rm -f conf$$subs.awk
35377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35378 _ACAWK
35379 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35380 for (key in S) S_is_set[key] = 1
35381 FS = ""
35382
35383 }
35384 {
35385 line = $ 0
35386 nfields = split(line, field, "@")
35387 substed = 0
35388 len = length(field[1])
35389 for (i = 2; i < nfields; i++) {
35390 key = field[i]
35391 keylen = length(key)
35392 if (S_is_set[key]) {
35393 value = S[key]
35394 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35395 len += length(value) + length(field[++i])
35396 substed = 1
35397 } else
35398 len += 1 + keylen
35399 }
35400
35401 print line
35402 }
35403
35404 _ACAWK
35405 _ACEOF
35406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35407 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35408 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35409 else
35410 cat
35411 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35412 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35413 _ACEOF
35414
35415 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35416 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35417 # trailing colons and then remove the whole line if VPATH becomes empty
35418 # (actually we leave an empty line to preserve line numbers).
35419 if test "x$srcdir" = x.; then
35420 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35421 h
35422 s///
35423 s/^/:/
35424 s/[ ]*$/:/
35425 s/:\$(srcdir):/:/g
35426 s/:\${srcdir}:/:/g
35427 s/:@srcdir@:/:/g
35428 s/^:*//
35429 s/:*$//
35430 x
35431 s/\(=[ ]*\).*/\1/
35432 G
35433 s/\n//
35434 s/^[^=]*=[ ]*$//
35435 }'
35436 fi
35437
35438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35439 fi # test -n "$CONFIG_FILES"
35440
35441 # Set up the scripts for CONFIG_HEADERS section.
35442 # No need to generate them if there are no CONFIG_HEADERS.
35443 # This happens for instance with `./config.status Makefile'.
35444 if test -n "$CONFIG_HEADERS"; then
35445 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35446 BEGIN {
35447 _ACEOF
35448
35449 # Transform confdefs.h into an awk script `defines.awk', embedded as
35450 # here-document in config.status, that substitutes the proper values into
35451 # config.h.in to produce config.h.
35452
35453 # Create a delimiter string that does not exist in confdefs.h, to ease
35454 # handling of long lines.
35455 ac_delim='%!_!# '
35456 for ac_last_try in false false :; do
35457 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35458 if test -z "$ac_tt"; then
35459 break
35460 elif $ac_last_try; then
35461 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35462 else
35463 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35464 fi
35465 done
35466
35467 # For the awk script, D is an array of macro values keyed by name,
35468 # likewise P contains macro parameters if any. Preserve backslash
35469 # newline sequences.
35470
35471 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35472 sed -n '
35473 s/.\{148\}/&'"$ac_delim"'/g
35474 t rset
35475 :rset
35476 s/^[ ]*#[ ]*define[ ][ ]*/ /
35477 t def
35478 d
35479 :def
35480 s/\\$//
35481 t bsnl
35482 s/["\\]/\\&/g
35483 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35484 D["\1"]=" \3"/p
35485 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35486 d
35487 :bsnl
35488 s/["\\]/\\&/g
35489 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35490 D["\1"]=" \3\\\\\\n"\\/p
35491 t cont
35492 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35493 t cont
35494 d
35495 :cont
35496 n
35497 s/.\{148\}/&'"$ac_delim"'/g
35498 t clear
35499 :clear
35500 s/\\$//
35501 t bsnlc
35502 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35503 d
35504 :bsnlc
35505 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35506 b cont
35507 ' <confdefs.h | sed '
35508 s/'"$ac_delim"'/"\\\
35509 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35510
35511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35512 for (key in D) D_is_set[key] = 1
35513 FS = ""
35514 }
35515 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35516 line = \$ 0
35517 split(line, arg, " ")
35518 if (arg[1] == "#") {
35519 defundef = arg[2]
35520 mac1 = arg[3]
35521 } else {
35522 defundef = substr(arg[1], 2)
35523 mac1 = arg[2]
35524 }
35525 split(mac1, mac2, "(") #)
35526 macro = mac2[1]
35527 prefix = substr(line, 1, index(line, defundef) - 1)
35528 if (D_is_set[macro]) {
35529 # Preserve the white space surrounding the "#".
35530 print prefix "define", macro P[macro] D[macro]
35531 next
35532 } else {
35533 # Replace #undef with comments. This is necessary, for example,
35534 # in the case of _POSIX_SOURCE, which is predefined and required
35535 # on some systems where configure will not decide to define it.
35536 if (defundef == "undef") {
35537 print "/*", prefix defundef, macro, "*/"
35538 next
35539 }
35540 }
35541 }
35542 { print }
35543 _ACAWK
35544 _ACEOF
35545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35546 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35547 fi # test -n "$CONFIG_HEADERS"
35548
35549
35550 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35551 shift
35552 for ac_tag
35553 do
35554 case $ac_tag in
35555 :[FHLC]) ac_mode=$ac_tag; continue;;
35556 esac
35557 case $ac_mode$ac_tag in
35558 :[FHL]*:*);;
35559 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35560 :[FH]-) ac_tag=-:-;;
35561 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35562 esac
35563 ac_save_IFS=$IFS
35564 IFS=:
35565 set x $ac_tag
35566 IFS=$ac_save_IFS
35567 shift
35568 ac_file=$1
35569 shift
35570
35571 case $ac_mode in
35572 :L) ac_source=$1;;
35573 :[FH])
35574 ac_file_inputs=
35575 for ac_f
35576 do
35577 case $ac_f in
35578 -) ac_f="$ac_tmp/stdin";;
35579 *) # Look for the file first in the build tree, then in the source tree
35580 # (if the path is not absolute). The absolute path cannot be DOS-style,
35581 # because $ac_f cannot contain `:'.
35582 test -f "$ac_f" ||
35583 case $ac_f in
35584 [\\/$]*) false;;
35585 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35586 esac ||
35587 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35588 esac
35589 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35590 as_fn_append ac_file_inputs " '$ac_f'"
35591 done
35592
35593 # Let's still pretend it is `configure' which instantiates (i.e., don't
35594 # use $as_me), people would be surprised to read:
35595 # /* config.h. Generated by config.status. */
35596 configure_input='Generated from '`
35597 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35598 `' by configure.'
35599 if test x"$ac_file" != x-; then
35600 configure_input="$ac_file. $configure_input"
35601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35602 printf "%s\n" "$as_me: creating $ac_file" >&6;}
35603 fi
35604 # Neutralize special characters interpreted by sed in replacement strings.
35605 case $configure_input in #(
35606 *\&* | *\|* | *\\* )
35607 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
35608 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35609 *) ac_sed_conf_input=$configure_input;;
35610 esac
35611
35612 case $ac_tag in
35613 *:-:* | *:-) cat >"$ac_tmp/stdin" \
35614 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
35615 esac
35616 ;;
35617 esac
35618
35619 ac_dir=`$as_dirname -- "$ac_file" ||
35620 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35621 X"$ac_file" : 'X\(//\)[^/]' \| \
35622 X"$ac_file" : 'X\(//\)$' \| \
35623 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35624 printf "%s\n" X"$ac_file" |
35625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35626 s//\1/
35627 q
35628 }
35629 /^X\(\/\/\)[^/].*/{
35630 s//\1/
35631 q
35632 }
35633 /^X\(\/\/\)$/{
35634 s//\1/
35635 q
35636 }
35637 /^X\(\/\).*/{
35638 s//\1/
35639 q
35640 }
35641 s/.*/./; q'`
35642 as_dir="$ac_dir"; as_fn_mkdir_p
35643 ac_builddir=.
35644
35645 case "$ac_dir" in
35646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35647 *)
35648 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
35649 # A ".." for each directory in $ac_dir_suffix.
35650 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35651 case $ac_top_builddir_sub in
35652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35654 esac ;;
35655 esac
35656 ac_abs_top_builddir=$ac_pwd
35657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35658 # for backward compatibility:
35659 ac_top_builddir=$ac_top_build_prefix
35660
35661 case $srcdir in
35662 .) # We are building in place.
35663 ac_srcdir=.
35664 ac_top_srcdir=$ac_top_builddir_sub
35665 ac_abs_top_srcdir=$ac_pwd ;;
35666 [\\/]* | ?:[\\/]* ) # Absolute name.
35667 ac_srcdir=$srcdir$ac_dir_suffix;
35668 ac_top_srcdir=$srcdir
35669 ac_abs_top_srcdir=$srcdir ;;
35670 *) # Relative name.
35671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35672 ac_top_srcdir=$ac_top_build_prefix$srcdir
35673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35674 esac
35675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35676
35677
35678 case $ac_mode in
35679 :F)
35680 #
35681 # CONFIG_FILE
35682 #
35683
35684 case $INSTALL in
35685 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35686 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35687 esac
35688 ac_MKDIR_P=$MKDIR_P
35689 case $MKDIR_P in
35690 [\\/$]* | ?:[\\/]* ) ;;
35691 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35692 esac
35693 _ACEOF
35694
35695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35696 # If the template does not know about datarootdir, expand it.
35697 # FIXME: This hack should be removed a few years after 2.60.
35698 ac_datarootdir_hack=; ac_datarootdir_seen=
35699 ac_sed_dataroot='
35700 /datarootdir/ {
35701 p
35702 q
35703 }
35704 /@datadir@/p
35705 /@docdir@/p
35706 /@infodir@/p
35707 /@localedir@/p
35708 /@mandir@/p'
35709 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35710 *datarootdir*) ac_datarootdir_seen=yes;;
35711 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35713 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35714 _ACEOF
35715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35716 ac_datarootdir_hack='
35717 s&@datadir@&$datadir&g
35718 s&@docdir@&$docdir&g
35719 s&@infodir@&$infodir&g
35720 s&@localedir@&$localedir&g
35721 s&@mandir@&$mandir&g
35722 s&\\\${datarootdir}&$datarootdir&g' ;;
35723 esac
35724 _ACEOF
35725
35726 # Neutralize VPATH when `$srcdir' = `.'.
35727 # Shell code in configure.ac might set extrasub.
35728 # FIXME: do we really want to maintain this feature?
35729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35730 ac_sed_extra="$ac_vpsub
35731 $extrasub
35732 _ACEOF
35733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35734 :t
35735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35736 s|@configure_input@|$ac_sed_conf_input|;t t
35737 s&@top_builddir@&$ac_top_builddir_sub&;t t
35738 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35739 s&@srcdir@&$ac_srcdir&;t t
35740 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35741 s&@top_srcdir@&$ac_top_srcdir&;t t
35742 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35743 s&@builddir@&$ac_builddir&;t t
35744 s&@abs_builddir@&$ac_abs_builddir&;t t
35745 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35746 s&@INSTALL@&$ac_INSTALL&;t t
35747 s&@MKDIR_P@&$ac_MKDIR_P&;t t
35748 $ac_datarootdir_hack
35749 "
35750 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35751 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35752
35753 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35754 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35755 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35756 "$ac_tmp/out"`; test -z "$ac_out"; } &&
35757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35758 which seems to be undefined. Please make sure it is defined" >&5
35759 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35760 which seems to be undefined. Please make sure it is defined" >&2;}
35761
35762 rm -f "$ac_tmp/stdin"
35763 case $ac_file in
35764 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35765 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35766 esac \
35767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35768 ;;
35769 :H)
35770 #
35771 # CONFIG_HEADER
35772 #
35773 if test x"$ac_file" != x-; then
35774 {
35775 printf "%s\n" "/* $configure_input */" >&1 \
35776 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35777 } >"$ac_tmp/config.h" \
35778 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35779 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35781 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
35782 else
35783 rm -f "$ac_file"
35784 mv "$ac_tmp/config.h" "$ac_file" \
35785 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35786 fi
35787 else
35788 printf "%s\n" "/* $configure_input */" >&1 \
35789 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35790 || as_fn_error $? "could not create -" "$LINENO" 5
35791 fi
35792 # Compute "$ac_file"'s index in $config_headers.
35793 _am_arg="$ac_file"
35794 _am_stamp_count=1
35795 for _am_header in $config_headers :; do
35796 case $_am_header in
35797 $_am_arg | $_am_arg:* )
35798 break ;;
35799 * )
35800 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35801 esac
35802 done
35803 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35804 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35805 X"$_am_arg" : 'X\(//\)[^/]' \| \
35806 X"$_am_arg" : 'X\(//\)$' \| \
35807 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35808 printf "%s\n" X"$_am_arg" |
35809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35810 s//\1/
35811 q
35812 }
35813 /^X\(\/\/\)[^/].*/{
35814 s//\1/
35815 q
35816 }
35817 /^X\(\/\/\)$/{
35818 s//\1/
35819 q
35820 }
35821 /^X\(\/\).*/{
35822 s//\1/
35823 q
35824 }
35825 s/.*/./; q'`/stamp-h$_am_stamp_count
35826 ;;
35827
35828 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35829 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
35830 ;;
35831 esac
35832
35833
35834 case $ac_file$ac_mode in
35835 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35836 # Older Autoconf quotes --file arguments for eval, but not when files
35837 # are listed without --file. Let's play safe and only enable the eval
35838 # if we detect the quoting.
35839 # TODO: see whether this extra hack can be removed once we start
35840 # requiring Autoconf 2.70 or later.
35841 case $CONFIG_FILES in #(
35842 *\'*) :
35843 eval set x "$CONFIG_FILES" ;; #(
35844 *) :
35845 set x $CONFIG_FILES ;; #(
35846 *) :
35847 ;;
35848 esac
35849 shift
35850 # Used to flag and report bootstrapping failures.
35851 am_rc=0
35852 for am_mf
35853 do
35854 # Strip MF so we end up with the name of the file.
35855 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
35856 # Check whether this is an Automake generated Makefile which includes
35857 # dependency-tracking related rules and includes.
35858 # Grep'ing the whole file directly is not great: AIX grep has a line
35859 # limit of 2048, but all sed's we know have understand at least 4000.
35860 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
35861 || continue
35862 am_dirpart=`$as_dirname -- "$am_mf" ||
35863 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35864 X"$am_mf" : 'X\(//\)[^/]' \| \
35865 X"$am_mf" : 'X\(//\)$' \| \
35866 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
35867 printf "%s\n" X"$am_mf" |
35868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35869 s//\1/
35870 q
35871 }
35872 /^X\(\/\/\)[^/].*/{
35873 s//\1/
35874 q
35875 }
35876 /^X\(\/\/\)$/{
35877 s//\1/
35878 q
35879 }
35880 /^X\(\/\).*/{
35881 s//\1/
35882 q
35883 }
35884 s/.*/./; q'`
35885 am_filepart=`$as_basename -- "$am_mf" ||
35886 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
35887 X"$am_mf" : 'X\(//\)$' \| \
35888 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
35889 printf "%s\n" X/"$am_mf" |
35890 sed '/^.*\/\([^/][^/]*\)\/*$/{
35891 s//\1/
35892 q
35893 }
35894 /^X\/\(\/\/\)$/{
35895 s//\1/
35896 q
35897 }
35898 /^X\/\(\/\).*/{
35899 s//\1/
35900 q
35901 }
35902 s/.*/./; q'`
35903 { echo "$as_me:$LINENO: cd "$am_dirpart" \
35904 && sed -e '/# am--include-marker/d' "$am_filepart" \
35905 | $MAKE -f - am--depfiles" >&5
35906 (cd "$am_dirpart" \
35907 && sed -e '/# am--include-marker/d' "$am_filepart" \
35908 | $MAKE -f - am--depfiles) >&5 2>&5
35909 ac_status=$?
35910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35911 (exit $ac_status); } || am_rc=$?
35912 done
35913 if test $am_rc -ne 0; then
35914 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35915 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
35916 as_fn_error $? "Something went wrong bootstrapping makefile fragments
35917 for automatic dependency tracking. If GNU make was not used, consider
35918 re-running the configure script with MAKE=\"gmake\" (or whatever is
35919 necessary). You can also try re-running configure with the
35920 '--disable-dependency-tracking' option to at least be able to build
35921 the package (albeit without support for automatic dependency tracking).
35922 See \`config.log' for more details" "$LINENO" 5; }
35923 fi
35924 { am_dirpart=; unset am_dirpart;}
35925 { am_filepart=; unset am_filepart;}
35926 { am_mf=; unset am_mf;}
35927 { am_rc=; unset am_rc;}
35928 rm -f conftest-deps.mk
35929 }
35930 ;;
35931 "libtool":C)
35932
35933 # See if we are running on zsh, and set the options that allow our
35934 # commands through without removal of \ escapes.
35935 if test -n "${ZSH_VERSION+set}"; then
35936 setopt NO_GLOB_SUBST
35937 fi
35938
35939 cfgfile=${ofile}T
35940 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35941 $RM "$cfgfile"
35942
35943 cat <<_LT_EOF >> "$cfgfile"
35944 #! $SHELL
35945 # Generated automatically by $as_me ($PACKAGE) $VERSION
35946 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35947
35948 # Provide generalized library-building support services.
35949 # Written by Gordon Matzigkeit, 1996
35950
35951 # Copyright (C) 2014 Free Software Foundation, Inc.
35952 # This is free software; see the source for copying conditions. There is NO
35953 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35954
35955 # GNU Libtool is free software; you can redistribute it and/or modify
35956 # it under the terms of the GNU General Public License as published by
35957 # the Free Software Foundation; either version 2 of of the License, or
35958 # (at your option) any later version.
35959 #
35960 # As a special exception to the GNU General Public License, if you
35961 # distribute this file as part of a program or library that is built
35962 # using GNU Libtool, you may include this file under the same
35963 # distribution terms that you use for the rest of that program.
35964 #
35965 # GNU Libtool is distributed in the hope that it will be useful, but
35966 # WITHOUT ANY WARRANTY; without even the implied warranty of
35967 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35968 # GNU General Public License for more details.
35969 #
35970 # You should have received a copy of the GNU General Public License
35971 # along with this program. If not, see <http://www.gnu.org/licenses/>.
35972
35973
35974 # The names of the tagged configurations supported by this script.
35975 available_tags=''
35976
35977 # Configured defaults for sys_lib_dlsearch_path munging.
35978 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35979
35980 # ### BEGIN LIBTOOL CONFIG
35981
35982 # Which release of libtool.m4 was used?
35983 macro_version=$macro_version
35984 macro_revision=$macro_revision
35985
35986 # Whether or not to build shared libraries.
35987 build_libtool_libs=$enable_shared
35988
35989 # Whether or not to build static libraries.
35990 build_old_libs=$enable_static
35991
35992 # What type of objects to build.
35993 pic_mode=$pic_mode
35994
35995 # Whether or not to optimize for fast installation.
35996 fast_install=$enable_fast_install
35997
35998 # Shared archive member basename,for filename based shared library versioning on AIX.
35999 shared_archive_member_spec=$shared_archive_member_spec
36000
36001 # Shell to use when invoking shell scripts.
36002 SHELL=$lt_SHELL
36003
36004 # An echo program that protects backslashes.
36005 ECHO=$lt_ECHO
36006
36007 # The PATH separator for the build system.
36008 PATH_SEPARATOR=$lt_PATH_SEPARATOR
36009
36010 # The host system.
36011 host_alias=$host_alias
36012 host=$host
36013 host_os=$host_os
36014
36015 # The build system.
36016 build_alias=$build_alias
36017 build=$build
36018 build_os=$build_os
36019
36020 # A sed program that does not truncate output.
36021 SED=$lt_SED
36022
36023 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
36024 Xsed="\$SED -e 1s/^X//"
36025
36026 # A grep program that handles long lines.
36027 GREP=$lt_GREP
36028
36029 # An ERE matcher.
36030 EGREP=$lt_EGREP
36031
36032 # A literal string matcher.
36033 FGREP=$lt_FGREP
36034
36035 # A BSD- or MS-compatible name lister.
36036 NM=$lt_NM
36037
36038 # Whether we need soft or hard links.
36039 LN_S=$lt_LN_S
36040
36041 # What is the maximum length of a command?
36042 max_cmd_len=$max_cmd_len
36043
36044 # Object file suffix (normally "o").
36045 objext=$ac_objext
36046
36047 # Executable file suffix (normally "").
36048 exeext=$exeext
36049
36050 # whether the shell understands "unset".
36051 lt_unset=$lt_unset
36052
36053 # turn spaces into newlines.
36054 SP2NL=$lt_lt_SP2NL
36055
36056 # turn newlines into spaces.
36057 NL2SP=$lt_lt_NL2SP
36058
36059 # convert \$build file names to \$host format.
36060 to_host_file_cmd=$lt_cv_to_host_file_cmd
36061
36062 # convert \$build files to toolchain format.
36063 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36064
36065 # A file(cmd) program that detects file types.
36066 FILECMD=$lt_FILECMD
36067
36068 # An object symbol dumper.
36069 OBJDUMP=$lt_OBJDUMP
36070
36071 # Method to check whether dependent libraries are shared objects.
36072 deplibs_check_method=$lt_deplibs_check_method
36073
36074 # Command to use when deplibs_check_method = "file_magic".
36075 file_magic_cmd=$lt_file_magic_cmd
36076
36077 # How to find potential files when deplibs_check_method = "file_magic".
36078 file_magic_glob=$lt_file_magic_glob
36079
36080 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36081 want_nocaseglob=$lt_want_nocaseglob
36082
36083 # DLL creation program.
36084 DLLTOOL=$lt_DLLTOOL
36085
36086 # Command to associate shared and link libraries.
36087 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36088
36089 # The archiver.
36090 AR=$lt_AR
36091
36092 # Flags to create an archive (by configure).
36093 lt_ar_flags=$lt_ar_flags
36094
36095 # Flags to create an archive.
36096 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
36097
36098 # How to feed a file listing to the archiver.
36099 archiver_list_spec=$lt_archiver_list_spec
36100
36101 # A symbol stripping program.
36102 STRIP=$lt_STRIP
36103
36104 # Commands used to install an old-style archive.
36105 RANLIB=$lt_RANLIB
36106 old_postinstall_cmds=$lt_old_postinstall_cmds
36107 old_postuninstall_cmds=$lt_old_postuninstall_cmds
36108
36109 # Whether to use a lock for old archive extraction.
36110 lock_old_archive_extraction=$lock_old_archive_extraction
36111
36112 # A C compiler.
36113 LTCC=$lt_CC
36114
36115 # LTCC compiler flags.
36116 LTCFLAGS=$lt_CFLAGS
36117
36118 # Take the output of nm and produce a listing of raw symbols and C names.
36119 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36120
36121 # Transform the output of nm in a proper C declaration.
36122 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36123
36124 # Transform the output of nm into a list of symbols to manually relocate.
36125 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
36126
36127 # Transform the output of nm in a C name address pair.
36128 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36129
36130 # Transform the output of nm in a C name address pair when lib prefix is needed.
36131 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36132
36133 # The name lister interface.
36134 nm_interface=$lt_lt_cv_nm_interface
36135
36136 # Specify filename containing input files for \$NM.
36137 nm_file_list_spec=$lt_nm_file_list_spec
36138
36139 # The root where to search for dependent libraries,and where our libraries should be installed.
36140 lt_sysroot=$lt_sysroot
36141
36142 # Command to truncate a binary pipe.
36143 lt_truncate_bin=$lt_lt_cv_truncate_bin
36144
36145 # The name of the directory that contains temporary libtool files.
36146 objdir=$objdir
36147
36148 # Used to examine libraries when file_magic_cmd begins with "file".
36149 MAGIC_CMD=$MAGIC_CMD
36150
36151 # Must we lock files when doing compilation?
36152 need_locks=$lt_need_locks
36153
36154 # Manifest tool.
36155 MANIFEST_TOOL=$lt_MANIFEST_TOOL
36156
36157 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36158 DSYMUTIL=$lt_DSYMUTIL
36159
36160 # Tool to change global to local symbols on Mac OS X.
36161 NMEDIT=$lt_NMEDIT
36162
36163 # Tool to manipulate fat objects and archives on Mac OS X.
36164 LIPO=$lt_LIPO
36165
36166 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
36167 OTOOL=$lt_OTOOL
36168
36169 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36170 OTOOL64=$lt_OTOOL64
36171
36172 # Old archive suffix (normally "a").
36173 libext=$libext
36174
36175 # Shared library suffix (normally ".so").
36176 shrext_cmds=$lt_shrext_cmds
36177
36178 # The commands to extract the exported symbol list from a shared archive.
36179 extract_expsyms_cmds=$lt_extract_expsyms_cmds
36180
36181 # Variables whose values should be saved in libtool wrapper scripts and
36182 # restored at link time.
36183 variables_saved_for_relink=$lt_variables_saved_for_relink
36184
36185 # Do we need the "lib" prefix for modules?
36186 need_lib_prefix=$need_lib_prefix
36187
36188 # Do we need a version for libraries?
36189 need_version=$need_version
36190
36191 # Library versioning type.
36192 version_type=$version_type
36193
36194 # Shared library runtime path variable.
36195 runpath_var=$runpath_var
36196
36197 # Shared library path variable.
36198 shlibpath_var=$shlibpath_var
36199
36200 # Is shlibpath searched before the hard-coded library search path?
36201 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36202
36203 # Format of library name prefix.
36204 libname_spec=$lt_libname_spec
36205
36206 # List of archive names. First name is the real one, the rest are links.
36207 # The last name is the one that the linker finds with -lNAME
36208 library_names_spec=$lt_library_names_spec
36209
36210 # The coded name of the library, if different from the real name.
36211 soname_spec=$lt_soname_spec
36212
36213 # Permission mode override for installation of shared libraries.
36214 install_override_mode=$lt_install_override_mode
36215
36216 # Command to use after installation of a shared archive.
36217 postinstall_cmds=$lt_postinstall_cmds
36218
36219 # Command to use after uninstallation of a shared archive.
36220 postuninstall_cmds=$lt_postuninstall_cmds
36221
36222 # Commands used to finish a libtool library installation in a directory.
36223 finish_cmds=$lt_finish_cmds
36224
36225 # As "finish_cmds", except a single script fragment to be evaled but
36226 # not shown.
36227 finish_eval=$lt_finish_eval
36228
36229 # Whether we should hardcode library paths into libraries.
36230 hardcode_into_libs=$hardcode_into_libs
36231
36232 # Compile-time system search path for libraries.
36233 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36234
36235 # Detected run-time system search path for libraries.
36236 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
36237
36238 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
36239 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
36240
36241 # Whether dlopen is supported.
36242 dlopen_support=$enable_dlopen
36243
36244 # Whether dlopen of programs is supported.
36245 dlopen_self=$enable_dlopen_self
36246
36247 # Whether dlopen of statically linked programs is supported.
36248 dlopen_self_static=$enable_dlopen_self_static
36249
36250 # Commands to strip libraries.
36251 old_striplib=$lt_old_striplib
36252 striplib=$lt_striplib
36253
36254
36255 # The linker used to build libraries.
36256 LD=$lt_LD
36257
36258 # How to create reloadable object files.
36259 reload_flag=$lt_reload_flag
36260 reload_cmds=$lt_reload_cmds
36261
36262 # Commands used to build an old-style archive.
36263 old_archive_cmds=$lt_old_archive_cmds
36264
36265 # A language specific compiler.
36266 CC=$lt_compiler
36267
36268 # Is the compiler the GNU compiler?
36269 with_gcc=$GCC
36270
36271 # Compiler flag to turn off builtin functions.
36272 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36273
36274 # Additional compiler flags for building library objects.
36275 pic_flag=$lt_lt_prog_compiler_pic
36276
36277 # How to pass a linker flag through the compiler.
36278 wl=$lt_lt_prog_compiler_wl
36279
36280 # Compiler flag to prevent dynamic linking.
36281 link_static_flag=$lt_lt_prog_compiler_static
36282
36283 # Does compiler simultaneously support -c and -o options?
36284 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36285
36286 # Whether or not to add -lc for building shared libraries.
36287 build_libtool_need_lc=$archive_cmds_need_lc
36288
36289 # Whether or not to disallow shared libs when runtime libs are static.
36290 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36291
36292 # Compiler flag to allow reflexive dlopens.
36293 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36294
36295 # Compiler flag to generate shared objects directly from archives.
36296 whole_archive_flag_spec=$lt_whole_archive_flag_spec
36297
36298 # Whether the compiler copes with passing no objects directly.
36299 compiler_needs_object=$lt_compiler_needs_object
36300
36301 # Create an old-style archive from a shared archive.
36302 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36303
36304 # Create a temporary old-style archive to link instead of a shared archive.
36305 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36306
36307 # Commands used to build a shared archive.
36308 archive_cmds=$lt_archive_cmds
36309 archive_expsym_cmds=$lt_archive_expsym_cmds
36310
36311 # Commands used to build a loadable module if different from building
36312 # a shared archive.
36313 module_cmds=$lt_module_cmds
36314 module_expsym_cmds=$lt_module_expsym_cmds
36315
36316 # Whether we are building with GNU ld or not.
36317 with_gnu_ld=$lt_with_gnu_ld
36318
36319 # Flag that allows shared libraries with undefined symbols to be built.
36320 allow_undefined_flag=$lt_allow_undefined_flag
36321
36322 # Flag that enforces no undefined symbols.
36323 no_undefined_flag=$lt_no_undefined_flag
36324
36325 # Flag to hardcode \$libdir into a binary during linking.
36326 # This must work even if \$libdir does not exist
36327 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36328
36329 # Whether we need a single "-rpath" flag with a separated argument.
36330 hardcode_libdir_separator=$lt_hardcode_libdir_separator
36331
36332 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
36333 # DIR into the resulting binary.
36334 hardcode_direct=$hardcode_direct
36335
36336 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
36337 # DIR into the resulting binary and the resulting library dependency is
36338 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
36339 # library is relocated.
36340 hardcode_direct_absolute=$hardcode_direct_absolute
36341
36342 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36343 # into the resulting binary.
36344 hardcode_minus_L=$hardcode_minus_L
36345
36346 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36347 # into the resulting binary.
36348 hardcode_shlibpath_var=$hardcode_shlibpath_var
36349
36350 # Set to "yes" if building a shared library automatically hardcodes DIR
36351 # into the library and all subsequent libraries and executables linked
36352 # against it.
36353 hardcode_automatic=$hardcode_automatic
36354
36355 # Set to yes if linker adds runtime paths of dependent libraries
36356 # to runtime path list.
36357 inherit_rpath=$inherit_rpath
36358
36359 # Whether libtool must link a program against all its dependency libraries.
36360 link_all_deplibs=$link_all_deplibs
36361
36362 # Set to "yes" if exported symbols are required.
36363 always_export_symbols=$always_export_symbols
36364
36365 # The commands to list exported symbols.
36366 export_symbols_cmds=$lt_export_symbols_cmds
36367
36368 # Symbols that should not be listed in the preloaded symbols.
36369 exclude_expsyms=$lt_exclude_expsyms
36370
36371 # Symbols that must always be exported.
36372 include_expsyms=$lt_include_expsyms
36373
36374 # Commands necessary for linking programs (against libraries) with templates.
36375 prelink_cmds=$lt_prelink_cmds
36376
36377 # Commands necessary for finishing linking programs.
36378 postlink_cmds=$lt_postlink_cmds
36379
36380 # Specify filename containing input files.
36381 file_list_spec=$lt_file_list_spec
36382
36383 # How to hardcode a shared library path into an executable.
36384 hardcode_action=$hardcode_action
36385
36386 # ### END LIBTOOL CONFIG
36387
36388 _LT_EOF
36389
36390 cat <<'_LT_EOF' >> "$cfgfile"
36391
36392 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
36393
36394 # func_munge_path_list VARIABLE PATH
36395 # -----------------------------------
36396 # VARIABLE is name of variable containing _space_ separated list of
36397 # directories to be munged by the contents of PATH, which is string
36398 # having a format:
36399 # "DIR[:DIR]:"
36400 # string "DIR[ DIR]" will be prepended to VARIABLE
36401 # ":DIR[:DIR]"
36402 # string "DIR[ DIR]" will be appended to VARIABLE
36403 # "DIRP[:DIRP]::[DIRA:]DIRA"
36404 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
36405 # "DIRA[ DIRA]" will be appended to VARIABLE
36406 # "DIR[:DIR]"
36407 # VARIABLE will be replaced by "DIR[ DIR]"
36408 func_munge_path_list ()
36409 {
36410 case x$2 in
36411 x)
36412 ;;
36413 *:)
36414 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
36415 ;;
36416 x:*)
36417 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
36418 ;;
36419 *::*)
36420 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
36421 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
36422 ;;
36423 *)
36424 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
36425 ;;
36426 esac
36427 }
36428
36429
36430 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
36431 func_cc_basename ()
36432 {
36433 for cc_temp in $*""; do
36434 case $cc_temp in
36435 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
36436 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
36437 \-*) ;;
36438 *) break;;
36439 esac
36440 done
36441 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
36442 }
36443
36444
36445 # ### END FUNCTIONS SHARED WITH CONFIGURE
36446
36447 _LT_EOF
36448
36449 case $host_os in
36450 aix3*)
36451 cat <<\_LT_EOF >> "$cfgfile"
36452 # AIX sometimes has problems with the GCC collect2 program. For some
36453 # reason, if we set the COLLECT_NAMES environment variable, the problems
36454 # vanish in a puff of smoke.
36455 if test set != "${COLLECT_NAMES+set}"; then
36456 COLLECT_NAMES=
36457 export COLLECT_NAMES
36458 fi
36459 _LT_EOF
36460 ;;
36461 esac
36462
36463
36464
36465 ltmain=$ac_aux_dir/ltmain.sh
36466
36467
36468 # We use sed instead of cat because bash on DJGPP gets confused if
36469 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36470 # text mode, it properly converts lines to CR/LF. This bash problem
36471 # is reportedly fixed, but why not run on old versions too?
36472 $SED '$q' "$ltmain" >> "$cfgfile" \
36473 || (rm -f "$cfgfile"; exit 1)
36474
36475 mv -f "$cfgfile" "$ofile" ||
36476 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36477 chmod +x "$ofile"
36478
36479 ;;
36480 "build-aux/x-to-1":F) chmod +x build-aux/x-to-1 ;;
36481
36482 esac
36483 done # for ac_tag
36484
36485
36486 as_fn_exit 0
36487 _ACEOF
36488 ac_clean_files=$ac_clean_files_save
36489
36490 test $ac_write_fail = 0 ||
36491 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36492
36493
36494 # configure is writing to config.log, and then calls config.status.
36495 # config.status does its own redirection, appending to config.log.
36496 # Unfortunately, on DOS this fails, as config.log is still kept open
36497 # by configure, so config.status won't be able to write to it; its
36498 # output is simply discarded. So we exec the FD to /dev/null,
36499 # effectively closing config.log, so it can be properly (re)opened and
36500 # appended to by config.status. When coming back to configure, we
36501 # need to make the FD available again.
36502 if test "$no_create" != yes; then
36503 ac_cs_success=:
36504 ac_config_status_args=
36505 test "$silent" = yes &&
36506 ac_config_status_args="$ac_config_status_args --quiet"
36507 exec 5>/dev/null
36508 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36509 exec 5>>config.log
36510 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36511 # would make configure fail if this is the last instruction.
36512 $ac_cs_success || as_fn_exit 1
36513 fi
36514 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36516 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36517 fi
36518
36519
36520 if test $RELOCATABLE != yes; then
36521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building without --enable-relocatable: the tests will not work!" >&5
36522 printf "%s\n" "$as_me: WARNING: Building without --enable-relocatable: the tests will not work!" >&2;}
36523 fi
36524