2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libpipeline 1.5.4.
5 # Report bugs to <cjwatson@debian.org>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
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 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
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+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
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.
56 # Ensure predictable behavior from utilities with locale-dependent output.
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 || :
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
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
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
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
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
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
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+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
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; }
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\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || 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
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
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 *) as_dir=$as_dir/ ;;
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
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
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242 CONFIG_SHELL=$SHELL as_have_required=yes
247 if test "x$CONFIG_SHELL" != x
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.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
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
270 if test x$as_have_required = xno
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."
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: cjwatson@debian.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Do nothing but, unlike ":", preserve the value of $?.
335 # Create "$as_dir" as a directory, including parents if necessary.
340 -*) as_dir=./$as_dir;;
342 test -d "$as_dir" || eval $as_mkdir_p || {
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
373 test -d "$as_dir" && break
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 eval 'as_fn_append ()
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
421 as_val=`expr "$@" || test $? -eq 1`
427 # Do nothing but, unlike ":", preserve the value of $?.
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
441 as_status=$1; test $as_status -eq 0 && as_status=1
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
527 # Exit status is that of the last command.
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
560 mkdir conf$$.dir 2>/dev/null
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 elif ln conf$$.file conf$$ 2>/dev/null; then
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
585 test -d ./-p && rmdir ./-p
590 as_executable_p=as_fn_executable_p
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598 SHELL=${CONFIG_SHELL-/bin/sh}
601 test -n "$DJDIR" || exec 7<&0 </dev/null
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
612 ac_default_prefix=/usr/local
614 ac_config_libobj_dir=.
621 # Identity of this package.
622 PACKAGE_NAME='libpipeline'
623 PACKAGE_TARNAME='libpipeline'
624 PACKAGE_VERSION='1.5.4'
625 PACKAGE_STRING='libpipeline 1.5.4'
626 PACKAGE_BUGREPORT='cjwatson@debian.org'
629 ac_unique_file="lib/pipeline.c"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
662 gl_use_threads_default=
663 gl_use_winpthreads_default=
665 ac_subst_vars='gltests_LTLIBOBJS
676 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
777 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
779 UNISTD_H_DEFINES_STRUCT_TIMESPEC
780 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
781 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
782 TIME_H_DEFINES_STRUCT_TIMESPEC
783 NEXT_AS_FIRST_DIRECTIVE_TIME_H
798 HAVE_DECL_LOCALTIME_R
809 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
814 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
816 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
818 REPLACE_STRUCT_TIMEVAL
825 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
833 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
835 NEXT_AS_FIRST_DIRECTIVE_STRING_H
837 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
839 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
841 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
843 GL_GENERATE_STDDEF_H_FALSE
844 GL_GENERATE_STDDEF_H_TRUE
850 GL_GENERATE_STDBOOL_H_FALSE
851 GL_GENERATE_STDBOOL_H_TRUE
853 GL_GENERATE_STDARG_H_FALSE
854 GL_GENERATE_STDARG_H_TRUE
856 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
858 GL_GENERATE_STDALIGN_H_FALSE
859 GL_GENERATE_STDALIGN_H_TRUE
868 REPLACE_STDIO_WRITE_FUNCS
869 REPLACE_STDIO_READ_FUNCS
878 REPLACE_OBSTACK_PRINTF
903 HAVE_DECL_OBSTACK_PRINTF
909 GNULIB_VSPRINTF_POSIX
913 GNULIB_VFPRINTF_POSIX
920 GNULIB_STDIO_H_SIGPIPE
921 GNULIB_STDIO_H_NONBLOCKING
936 GNULIB_OBSTACK_PRINTF_POSIX
937 GNULIB_OBSTACK_PRINTF
962 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
965 REPLACE_PTHREAD_SIGMASK
967 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
968 HAVE_STRUCT_SIGACTION_SA_SIGACTION
974 HAVE_POSIX_SIGNALBLOCKING
977 GNULIB_SIGNAL_H_SIGPIPE
979 GNULIB_PTHREAD_SIGMASK
982 REPLACE_STRERRORNAME_NP
1000 HAVE_STRERRORNAME_NP
1001 HAVE_DECL_STRERROR_R
1024 GNULIB_STRERRORNAME_NP
1060 GNULIB_EXPLICIT_BZERO
1075 REPLACE_POSIX_MEMALIGN
1080 REPLACE_CANONICALIZE_FILE_NAME
1082 REPLACE_ALIGNED_ALLOC
1086 HAVE_STRUCT_RANDOM_DATA
1117 HAVE_DECL_GETLOADAVG
1118 HAVE_CANONICALIZE_FILE_NAME
1131 GNULIB_SECURE_GETENV
1134 GNULIB_REALLOC_POSIX
1143 GNULIB_POSIX_MEMALIGN
1154 GNULIB_CANONICALIZE_FILE_NAME
1157 GNULIB_ALIGNED_ALLOC
1167 IGNORE_UNUSED_LIBRARIES_CFLAGS
1168 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1170 UINT64_MAX_EQ_ULONG_MAX
1171 UINT32_MAX_LT_UINTMAX_MAX
1173 INT64_MAX_EQ_LONG_MAX
1174 INT32_MAX_LT_INTMAX_MAX
1186 GL_GENERATE_STDINT_H_FALSE
1187 GL_GENERATE_STDINT_H_TRUE
1199 HAVE_SIGNED_SIG_ATOMIC_T
1202 BITSIZEOF_SIG_ATOMIC_T
1205 APPLE_UNIVERSAL_BUILD
1207 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1212 GNULIB_OVERRIDES_WINT_T
1213 GL_GENERATE_LIMITS_H_FALSE
1214 GL_GENERATE_LIMITS_H_TRUE
1216 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1224 WINDOWS_64_BIT_ST_SIZE
1225 WINDOWS_STAT_TIMESPEC
1226 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1250 GNULIB_OVERRIDES_STRUCT_STAT
1266 GL_GENERATE_FLOAT_H_FALSE
1267 GL_GENERATE_FLOAT_H_TRUE
1269 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1271 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1290 GL_GENERATE_ERRNO_H_FALSE
1291 GL_GENERATE_ERRNO_H_TRUE
1293 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1296 PRAGMA_SYSTEM_HEADER
1297 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1300 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1301 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1302 UNISTD_H_HAVE_WINSOCK2_H
1303 UNISTD_H_HAVE_SYS_RANDOM_H
1328 REPLACE_GETDTABLESIZE
1329 REPLACE_GETDOMAINNAME
1343 HAVE_DECL_SETHOSTNAME
1344 HAVE_DECL_GETUSERSHELL
1345 HAVE_DECL_GETPAGESIZE
1346 HAVE_DECL_GETLOGIN_R
1348 HAVE_DECL_GETDOMAINNAME
1383 HAVE_COPY_FILE_RANGE
1389 GNULIB_UNISTD_H_SIGPIPE
1390 GNULIB_UNISTD_H_NONBLOCKING
1420 GNULIB_GETDTABLESIZE
1421 GNULIB_GETDOMAINNAME
1434 GNULIB_COPY_FILE_RANGE
1441 GL_GENERATE_ALLOCA_H_FALSE
1442 GL_GENERATE_ALLOCA_H_TRUE
1445 GL_COND_LIBTOOL_FALSE
1446 GL_COND_LIBTOOL_TRUE
1504 MAINTAINER_MODE_FALSE
1505 MAINTAINER_MODE_TRUE
1507 AM_DEFAULT_VERBOSITY
1521 INSTALL_STRIP_PROGRAM
1564 program_transform_name
1578 enable_option_checking
1580 enable_maintainer_mode
1581 enable_dependency_tracking
1592 enable_cross_guesses
1593 enable_socketpair_pipe
1595 ac_precious_vars='build_alias
1612 # Initialize some variables set by options.
1614 ac_init_version=false
1615 ac_unrecognized_opts=
1616 ac_unrecognized_sep=
1617 # The variables have the same names as the options, with
1618 # dashes changed to underlines.
1619 cache_file=/dev/null
1626 program_transform_name=s,x,x,
1634 # Installation directory options.
1635 # These are left unexpanded so users can "make install exec_prefix=/foo"
1636 # and all the variables that are supposed to be based on exec_prefix
1637 # by default will actually change.
1638 # Use braces instead of parens because sh, perl, etc. also accept them.
1639 # (The list follows the same order as the GNU Coding Standards.)
1640 bindir='${exec_prefix}/bin'
1641 sbindir='${exec_prefix}/sbin'
1642 libexecdir='${exec_prefix}/libexec'
1643 datarootdir='${prefix}/share'
1644 datadir='${datarootdir}'
1645 sysconfdir='${prefix}/etc'
1646 sharedstatedir='${prefix}/com'
1647 localstatedir='${prefix}/var'
1648 runstatedir='${localstatedir}/run'
1649 includedir='${prefix}/include'
1650 oldincludedir='/usr/include'
1651 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1652 infodir='${datarootdir}/info'
1657 libdir='${exec_prefix}/lib'
1658 localedir='${datarootdir}/locale'
1659 mandir='${datarootdir}/man'
1665 # If the previous option needs an argument, assign it.
1666 if test -n "$ac_prev"; then
1667 eval $ac_prev=\$ac_option
1673 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1678 case $ac_dashdash$ac_option in
1682 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1684 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1685 bindir=$ac_optarg ;;
1687 -build | --build | --buil | --bui | --bu)
1688 ac_prev=build_alias ;;
1689 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1690 build_alias=$ac_optarg ;;
1692 -cache-file | --cache-file | --cache-fil | --cache-fi \
1693 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1694 ac_prev=cache_file ;;
1695 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1696 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1697 cache_file=$ac_optarg ;;
1699 --config-cache | -C)
1700 cache_file=config.cache ;;
1702 -datadir | --datadir | --datadi | --datad)
1704 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1705 datadir=$ac_optarg ;;
1707 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1708 | --dataroo | --dataro | --datar)
1709 ac_prev=datarootdir ;;
1710 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1711 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1712 datarootdir=$ac_optarg ;;
1714 -disable-* | --disable-*)
1715 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1716 # Reject names that are not valid shell variable names.
1717 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1718 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1719 ac_useropt_orig=$ac_useropt
1720 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1721 case $ac_user_opts in
1723 "enable_$ac_useropt"
1725 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1726 ac_unrecognized_sep=', ';;
1728 eval enable_$ac_useropt=no ;;
1730 -docdir | --docdir | --docdi | --doc | --do)
1732 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1733 docdir=$ac_optarg ;;
1735 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1737 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1738 dvidir=$ac_optarg ;;
1740 -enable-* | --enable-*)
1741 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1742 # Reject names that are not valid shell variable names.
1743 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1744 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1745 ac_useropt_orig=$ac_useropt
1746 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1747 case $ac_user_opts in
1749 "enable_$ac_useropt"
1751 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1752 ac_unrecognized_sep=', ';;
1754 eval enable_$ac_useropt=\$ac_optarg ;;
1756 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1757 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1758 | --exec | --exe | --ex)
1759 ac_prev=exec_prefix ;;
1760 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1761 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1762 | --exec=* | --exe=* | --ex=*)
1763 exec_prefix=$ac_optarg ;;
1765 -gas | --gas | --ga | --g)
1766 # Obsolete; use --with-gas.
1769 -help | --help | --hel | --he | -h)
1770 ac_init_help=long ;;
1771 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1772 ac_init_help=recursive ;;
1773 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1774 ac_init_help=short ;;
1776 -host | --host | --hos | --ho)
1777 ac_prev=host_alias ;;
1778 -host=* | --host=* | --hos=* | --ho=*)
1779 host_alias=$ac_optarg ;;
1781 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1783 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1785 htmldir=$ac_optarg ;;
1787 -includedir | --includedir | --includedi | --included | --include \
1788 | --includ | --inclu | --incl | --inc)
1789 ac_prev=includedir ;;
1790 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1791 | --includ=* | --inclu=* | --incl=* | --inc=*)
1792 includedir=$ac_optarg ;;
1794 -infodir | --infodir | --infodi | --infod | --info | --inf)
1796 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1797 infodir=$ac_optarg ;;
1799 -libdir | --libdir | --libdi | --libd)
1801 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1802 libdir=$ac_optarg ;;
1804 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1805 | --libexe | --libex | --libe)
1806 ac_prev=libexecdir ;;
1807 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1808 | --libexe=* | --libex=* | --libe=*)
1809 libexecdir=$ac_optarg ;;
1811 -localedir | --localedir | --localedi | --localed | --locale)
1812 ac_prev=localedir ;;
1813 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1814 localedir=$ac_optarg ;;
1816 -localstatedir | --localstatedir | --localstatedi | --localstated \
1817 | --localstate | --localstat | --localsta | --localst | --locals)
1818 ac_prev=localstatedir ;;
1819 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1820 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1821 localstatedir=$ac_optarg ;;
1823 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1825 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1826 mandir=$ac_optarg ;;
1828 -nfp | --nfp | --nf)
1829 # Obsolete; use --without-fp.
1832 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1833 | --no-cr | --no-c | -n)
1836 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1837 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1840 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1841 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1842 | --oldin | --oldi | --old | --ol | --o)
1843 ac_prev=oldincludedir ;;
1844 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1845 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1846 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1847 oldincludedir=$ac_optarg ;;
1849 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1851 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1852 prefix=$ac_optarg ;;
1854 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1855 | --program-pre | --program-pr | --program-p)
1856 ac_prev=program_prefix ;;
1857 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1858 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1859 program_prefix=$ac_optarg ;;
1861 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1862 | --program-suf | --program-su | --program-s)
1863 ac_prev=program_suffix ;;
1864 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1865 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1866 program_suffix=$ac_optarg ;;
1868 -program-transform-name | --program-transform-name \
1869 | --program-transform-nam | --program-transform-na \
1870 | --program-transform-n | --program-transform- \
1871 | --program-transform | --program-transfor \
1872 | --program-transfo | --program-transf \
1873 | --program-trans | --program-tran \
1874 | --progr-tra | --program-tr | --program-t)
1875 ac_prev=program_transform_name ;;
1876 -program-transform-name=* | --program-transform-name=* \
1877 | --program-transform-nam=* | --program-transform-na=* \
1878 | --program-transform-n=* | --program-transform-=* \
1879 | --program-transform=* | --program-transfor=* \
1880 | --program-transfo=* | --program-transf=* \
1881 | --program-trans=* | --program-tran=* \
1882 | --progr-tra=* | --program-tr=* | --program-t=*)
1883 program_transform_name=$ac_optarg ;;
1885 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1887 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1888 pdfdir=$ac_optarg ;;
1890 -psdir | --psdir | --psdi | --psd | --ps)
1892 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896 | -silent | --silent | --silen | --sile | --sil)
1899 -runstatedir | --runstatedir | --runstatedi | --runstated \
1900 | --runstate | --runstat | --runsta | --runst | --runs \
1901 | --run | --ru | --r)
1902 ac_prev=runstatedir ;;
1903 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1904 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1905 | --run=* | --ru=* | --r=*)
1906 runstatedir=$ac_optarg ;;
1908 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1910 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1912 sbindir=$ac_optarg ;;
1914 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1915 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1916 | --sharedst | --shareds | --shared | --share | --shar \
1918 ac_prev=sharedstatedir ;;
1919 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1920 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1921 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1923 sharedstatedir=$ac_optarg ;;
1925 -site | --site | --sit)
1927 -site=* | --site=* | --sit=*)
1930 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1932 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1933 srcdir=$ac_optarg ;;
1935 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1936 | --syscon | --sysco | --sysc | --sys | --sy)
1937 ac_prev=sysconfdir ;;
1938 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1939 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1940 sysconfdir=$ac_optarg ;;
1942 -target | --target | --targe | --targ | --tar | --ta | --t)
1943 ac_prev=target_alias ;;
1944 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1945 target_alias=$ac_optarg ;;
1947 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1950 -version | --version | --versio | --versi | --vers | -V)
1951 ac_init_version=: ;;
1954 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1955 # Reject names that are not valid shell variable names.
1956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1957 as_fn_error $? "invalid package name: \`$ac_useropt'"
1958 ac_useropt_orig=$ac_useropt
1959 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1960 case $ac_user_opts in
1964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1965 ac_unrecognized_sep=', ';;
1967 eval with_$ac_useropt=\$ac_optarg ;;
1969 -without-* | --without-*)
1970 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1971 # Reject names that are not valid shell variable names.
1972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1973 as_fn_error $? "invalid package name: \`$ac_useropt'"
1974 ac_useropt_orig=$ac_useropt
1975 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1976 case $ac_user_opts in
1980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1981 ac_unrecognized_sep=', ';;
1983 eval with_$ac_useropt=no ;;
1986 # Obsolete; use --with-x.
1989 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1990 | --x-incl | --x-inc | --x-in | --x-i)
1991 ac_prev=x_includes ;;
1992 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1993 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1994 x_includes=$ac_optarg ;;
1996 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1997 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1998 ac_prev=x_libraries ;;
1999 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2000 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2001 x_libraries=$ac_optarg ;;
2003 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2004 Try \`$0 --help' for more information"
2008 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2009 # Reject names that are not valid shell variable names.
2010 case $ac_envvar in #(
2011 '' | [0-9]* | *[!_$as_cr_alnum]* )
2012 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2014 eval $ac_envvar=\$ac_optarg
2015 export $ac_envvar ;;
2018 # FIXME: should be removed in autoconf 3.0.
2019 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
2020 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2021 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
2022 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2028 if test -n "$ac_prev"; then
2029 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2030 as_fn_error $? "missing argument to $ac_option"
2033 if test -n "$ac_unrecognized_opts"; then
2034 case $enable_option_checking in
2036 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2037 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2041 # Check all directory arguments for consistency.
2042 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2043 datadir sysconfdir sharedstatedir localstatedir includedir \
2044 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2045 libdir localedir mandir runstatedir
2047 eval ac_val=\$$ac_var
2048 # Remove trailing slashes.
2051 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2052 eval $ac_var=\$ac_val;;
2054 # Be sure to have absolute directory names.
2056 [\\/$]* | ?:[\\/]* ) continue;;
2057 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2059 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2062 # There might be people who depend on the old broken behavior: `$host'
2063 # used to hold the argument of --host etc.
2064 # FIXME: To remove some day.
2067 target=$target_alias
2069 # FIXME: To remove some day.
2070 if test "x$host_alias" != x; then
2071 if test "x$build_alias" = x; then
2072 cross_compiling=maybe
2073 elif test "x$build_alias" != "x$host_alias"; then
2079 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2081 test "$silent" = yes && exec 6>/dev/null
2084 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2085 ac_ls_di=`ls -di .` &&
2086 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2087 as_fn_error $? "working directory cannot be determined"
2088 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2089 as_fn_error $? "pwd does not report name of working directory"
2092 # Find the source files, if location was not specified.
2093 if test -z "$srcdir"; then
2094 ac_srcdir_defaulted=yes
2095 # Try the directory containing this script, then the parent directory.
2096 ac_confdir=`$as_dirname -- "$as_myself" ||
2097 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2098 X"$as_myself" : 'X\(//\)[^/]' \| \
2099 X"$as_myself" : 'X\(//\)$' \| \
2100 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2101 printf "%s\n" X"$as_myself" |
2102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2120 if test ! -r "$srcdir/$ac_unique_file"; then
2124 ac_srcdir_defaulted=no
2126 if test ! -r "$srcdir/$ac_unique_file"; then
2127 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2128 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2130 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2132 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2134 # When building in place, set srcdir=.
2135 if test "$ac_abs_confdir" = "$ac_pwd"; then
2138 # Remove unnecessary trailing slashes from srcdir.
2139 # Double slashes in file names in object file debugging info
2140 # mess up M-x gdb in Emacs.
2142 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2144 for ac_var in $ac_precious_vars; do
2145 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2146 eval ac_env_${ac_var}_value=\$${ac_var}
2147 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2148 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2152 # Report the --help message.
2154 if test "$ac_init_help" = "long"; then
2155 # Omit some internal or obsolete options to make the list less imposing.
2156 # This message is too long to be a string in the A/UX 3.1 sh.
2158 \`configure' configures libpipeline 1.5.4 to adapt to many kinds of systems.
2160 Usage: $0 [OPTION]... [VAR=VALUE]...
2162 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2163 VAR=VALUE. See below for descriptions of some of the useful variables.
2165 Defaults for the options are specified in brackets.
2168 -h, --help display this help and exit
2169 --help=short display options specific to this package
2170 --help=recursive display the short help of all the included packages
2171 -V, --version display version information and exit
2172 -q, --quiet, --silent do not print \`checking ...' messages
2173 --cache-file=FILE cache test results in FILE [disabled]
2174 -C, --config-cache alias for \`--cache-file=config.cache'
2175 -n, --no-create do not create output files
2176 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2178 Installation directories:
2179 --prefix=PREFIX install architecture-independent files in PREFIX
2180 [$ac_default_prefix]
2181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2184 By default, \`make install' will install all the files in
2185 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2186 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2187 for instance \`--prefix=\$HOME'.
2189 For better control, use the options below.
2191 Fine tuning of the installation directories:
2192 --bindir=DIR user executables [EPREFIX/bin]
2193 --sbindir=DIR system admin executables [EPREFIX/sbin]
2194 --libexecdir=DIR program executables [EPREFIX/libexec]
2195 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2196 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2197 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2198 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2199 --libdir=DIR object code libraries [EPREFIX/lib]
2200 --includedir=DIR C header files [PREFIX/include]
2201 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2202 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2203 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2204 --infodir=DIR info documentation [DATAROOTDIR/info]
2205 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2206 --mandir=DIR man documentation [DATAROOTDIR/man]
2207 --docdir=DIR documentation root [DATAROOTDIR/doc/libpipeline]
2208 --htmldir=DIR html documentation [DOCDIR]
2209 --dvidir=DIR dvi documentation [DOCDIR]
2210 --pdfdir=DIR pdf documentation [DOCDIR]
2211 --psdir=DIR ps documentation [DOCDIR]
2217 --program-prefix=PREFIX prepend PREFIX to installed program names
2218 --program-suffix=SUFFIX append SUFFIX to installed program names
2219 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2222 --build=BUILD configure for building on BUILD [guessed]
2223 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2227 if test -n "$ac_init_help"; then
2228 case $ac_init_help in
2229 short | recursive ) echo "Configuration of libpipeline 1.5.4:";;
2234 --disable-option-checking ignore unrecognized --enable/--with options
2235 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2236 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2237 --enable-silent-rules less verbose build output (undo: "make V=1")
2238 --disable-silent-rules verbose build output (undo: "make V=0")
2239 --enable-maintainer-mode
2240 enable make rules and dependencies not useful (and
2241 sometimes confusing) to the casual installer
2242 --enable-dependency-tracking
2243 do not reject slow dependency extractors
2244 --disable-dependency-tracking
2245 speeds up one-time build
2246 --disable-largefile omit support for large files
2247 --enable-threads={isoc|posix|isoc+posix|windows}
2248 specify multithreading API
2249 --disable-threads build without multithread safety
2250 --enable-static[=PKGS] build static libraries [default=no]
2251 --enable-shared[=PKGS] build shared libraries [default=yes]
2252 --enable-fast-install[=PKGS]
2253 optimize for fast installation [default=yes]
2254 --disable-libtool-lock avoid locking (might break parallel builds)
2255 --enable-cross-guesses={conservative|risky}
2256 specify policy for cross-compilation guesses
2257 --enable-socketpair-pipe
2258 Use socketpair(2) as fast replacement for pipe(2)
2261 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2262 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2263 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2265 --with-aix-soname=aix|svr4|both
2266 shared library versioning (aka "SONAME") variant to
2267 provide on AIX, [default=aix].
2268 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2269 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2270 compiler's sysroot if not specified).
2272 Some influential environment variables:
2273 CC C compiler command
2274 CFLAGS C compiler flags
2275 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2276 nonstandard directory <lib dir>
2277 LIBS libraries to pass to the linker, e.g. -l<library>
2278 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2279 you have headers in a nonstandard directory <include dir>
2282 User-defined run-time library search path.
2283 PKG_CONFIG path to pkg-config utility
2285 directories to add to pkg-config's search path
2287 path overriding pkg-config's built-in search path
2289 C compiler flags for CHECK, overriding pkg-config
2290 CHECK_LIBS linker flags for CHECK, overriding pkg-config
2292 Use these variables to override the choices made by `configure' or to help
2293 it to find libraries and programs with nonstandard names/locations.
2295 Report bugs to <cjwatson@debian.org>.
2300 if test "$ac_init_help" = "recursive"; then
2301 # If there are subdirs, report their specific --help.
2302 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2303 test -d "$ac_dir" ||
2304 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2309 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2311 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2312 # A ".." for each directory in $ac_dir_suffix.
2313 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2314 case $ac_top_builddir_sub in
2315 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2316 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2319 ac_abs_top_builddir=$ac_pwd
2320 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2321 # for backward compatibility:
2322 ac_top_builddir=$ac_top_build_prefix
2325 .) # We are building in place.
2327 ac_top_srcdir=$ac_top_builddir_sub
2328 ac_abs_top_srcdir=$ac_pwd ;;
2329 [\\/]* | ?:[\\/]* ) # Absolute name.
2330 ac_srcdir=$srcdir$ac_dir_suffix;
2331 ac_top_srcdir=$srcdir
2332 ac_abs_top_srcdir=$srcdir ;;
2334 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2335 ac_top_srcdir=$ac_top_build_prefix$srcdir
2336 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2338 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2340 cd "$ac_dir" || { ac_status=$?; continue; }
2341 # Check for configure.gnu first; this name is used for a wrapper for
2342 # Metaconfig's "Configure" on case-insensitive file systems.
2343 if test -f "$ac_srcdir/configure.gnu"; then
2345 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2346 elif test -f "$ac_srcdir/configure"; then
2348 $SHELL "$ac_srcdir/configure" --help=recursive
2350 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2352 cd "$ac_pwd" || { ac_status=$?; break; }
2356 test -n "$ac_init_help" && exit $ac_status
2357 if $ac_init_version; then
2359 libpipeline configure 1.5.4
2360 generated by GNU Autoconf 2.71
2362 Copyright (C) 2021 Free Software Foundation, Inc.
2363 This configure script is free software; the Free Software Foundation
2364 gives unlimited permission to copy, distribute and modify it.
2369 ## ------------------------ ##
2370 ## Autoconf initialization. ##
2371 ## ------------------------ ##
2373 # ac_fn_c_try_compile LINENO
2374 # --------------------------
2375 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2376 ac_fn_c_try_compile ()
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 rm -f conftest.$ac_objext conftest.beam
2380 if { { ac_try="$ac_compile"
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2386 printf "%s\n" "$ac_try_echo"; } >&5
2387 (eval "$ac_compile") 2>conftest.err
2389 if test -s conftest.err; then
2390 grep -v '^ *+' conftest.err >conftest.er1
2391 cat conftest.er1 >&5
2392 mv -f conftest.er1 conftest.err
2394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2395 test $ac_status = 0; } && {
2396 test -z "$ac_c_werror_flag" ||
2397 test ! -s conftest.err
2398 } && test -s conftest.$ac_objext
2402 printf "%s\n" "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2408 as_fn_set_status $ac_retval
2410 } # ac_fn_c_try_compile
2412 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2413 # -------------------------------------------------------
2414 # Tests whether HEADER exists and can be compiled using the include files in
2415 # INCLUDES, setting the cache variable VAR accordingly.
2416 ac_fn_c_check_header_compile ()
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2420 printf %s "checking for $2... " >&6; }
2421 if eval test \${$3+y}
2423 printf %s "(cached) " >&6
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2430 if ac_fn_c_try_compile "$LINENO"
2436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 printf "%s\n" "$ac_res" >&6; }
2441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2443 } # ac_fn_c_check_header_compile
2445 # ac_fn_c_try_cpp LINENO
2446 # ----------------------
2447 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451 if { { ac_try="$ac_cpp conftest.$ac_ext"
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457 printf "%s\n" "$ac_try_echo"; } >&5
2458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2460 if test -s conftest.err; then
2461 grep -v '^ *+' conftest.err >conftest.er1
2462 cat conftest.er1 >&5
2463 mv -f conftest.er1 conftest.err
2465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466 test $ac_status = 0; } > conftest.i && {
2467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2468 test ! -s conftest.err
2473 printf "%s\n" "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2478 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2479 as_fn_set_status $ac_retval
2483 # ac_fn_c_try_link LINENO
2484 # -----------------------
2485 # Try to link conftest.$ac_ext, and return whether this succeeded.
2488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2490 if { { ac_try="$ac_link"
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2496 printf "%s\n" "$ac_try_echo"; } >&5
2497 (eval "$ac_link") 2>conftest.err
2499 if test -s conftest.err; then
2500 grep -v '^ *+' conftest.err >conftest.er1
2501 cat conftest.er1 >&5
2502 mv -f conftest.er1 conftest.err
2504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2505 test $ac_status = 0; } && {
2506 test -z "$ac_c_werror_flag" ||
2507 test ! -s conftest.err
2508 } && test -s conftest$ac_exeext && {
2509 test "$cross_compiling" = yes ||
2510 test -x conftest$ac_exeext
2515 printf "%s\n" "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2520 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2521 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2522 # interfere with the next link command; also delete a directory that is
2523 # left behind by Apple's compiler. We do this before executing the actions.
2524 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2526 as_fn_set_status $ac_retval
2528 } # ac_fn_c_try_link
2530 # ac_fn_c_check_func LINENO FUNC VAR
2531 # ----------------------------------
2532 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2533 ac_fn_c_check_func ()
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2537 printf %s "checking for $2... " >&6; }
2538 if eval test \${$3+y}
2540 printf %s "(cached) " >&6
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h. */
2544 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2546 #define $2 innocuous_$2
2548 /* System header to define __stub macros and hopefully few prototypes,
2549 which can conflict with char $2 (); below. */
2554 /* Override any GCC internal prototype to avoid an error.
2555 Use char because int might match the return type of a GCC
2556 builtin and then its argument prototype would still apply. */
2561 /* The GNU C library defines this for functions which it implements
2562 to always fail with ENOSYS. Some functions are actually named
2563 something starting with __ and the normal name is an alias. */
2564 #if defined __stub_$2 || defined __stub___$2
2576 if ac_fn_c_try_link "$LINENO"
2582 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2583 conftest$ac_exeext conftest.$ac_ext
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2587 printf "%s\n" "$ac_res" >&6; }
2588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2590 } # ac_fn_c_check_func
2592 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2593 # -------------------------------------------
2594 # Tests whether TYPE exists after having included INCLUDES, setting cache
2595 # variable VAR accordingly.
2596 ac_fn_c_check_type ()
2598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2600 printf %s "checking for $2... " >&6; }
2601 if eval test \${$3+y}
2603 printf %s "(cached) " >&6
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2618 if ac_fn_c_try_compile "$LINENO"
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h. */
2632 if ac_fn_c_try_compile "$LINENO"
2638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2644 printf "%s\n" "$ac_res" >&6; }
2645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2647 } # ac_fn_c_check_type
2649 # ac_fn_c_try_run LINENO
2650 # ----------------------
2651 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2652 # executables *can* be run.
2655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2656 if { { ac_try="$ac_link"
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2662 printf "%s\n" "$ac_try_echo"; } >&5
2663 (eval "$ac_link") 2>&5
2665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2666 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2667 { { case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672 printf "%s\n" "$ac_try_echo"; } >&5
2673 (eval "$ac_try") 2>&5
2675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2676 test $ac_status = 0; }; }
2680 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2681 printf "%s\n" "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2684 ac_retval=$ac_status
2686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2688 as_fn_set_status $ac_retval
2692 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2693 # --------------------------------------------
2694 # Tries to find the compile-time value of EXPR in a program that includes
2695 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2697 ac_fn_c_compute_int ()
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 if test "$cross_compiling" = yes; then
2701 # Depending upon the size, compute the lo and hi bounds.
2702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703 /* end confdefs.h. */
2708 static int test_array [1 - 2 * !(($2) >= 0)];
2710 return test_array [0];
2716 if ac_fn_c_try_compile "$LINENO"
2720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721 /* end confdefs.h. */
2726 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2728 return test_array [0];
2734 if ac_fn_c_try_compile "$LINENO"
2736 ac_hi=$ac_mid; break
2738 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2739 if test $ac_lo -le $ac_mid; then
2743 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2754 static int test_array [1 - 2 * !(($2) < 0)];
2756 return test_array [0];
2762 if ac_fn_c_try_compile "$LINENO"
2766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767 /* end confdefs.h. */
2772 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2774 return test_array [0];
2780 if ac_fn_c_try_compile "$LINENO"
2782 ac_lo=$ac_mid; break
2784 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2785 if test $ac_mid -le $ac_hi; then
2789 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2799 # Binary search between lo and hi bounds.
2800 while test "x$ac_lo" != "x$ac_hi"; do
2801 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h. */
2808 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2810 return test_array [0];
2816 if ac_fn_c_try_compile "$LINENO"
2820 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2825 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830 /* end confdefs.h. */
2832 static long int longval (void) { return $2; }
2833 static unsigned long int ulongval (void) { return $2; }
2840 FILE *f = fopen ("conftest.val", "w");
2845 long int i = longval ();
2848 fprintf (f, "%ld", i);
2852 unsigned long int i = ulongval ();
2855 fprintf (f, "%lu", i);
2857 /* Do not output a trailing newline, as this causes \r\n confusion
2858 on some platforms. */
2859 return ferror (f) || fclose (f) != 0;
2865 if ac_fn_c_try_run "$LINENO"
2867 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2872 conftest.$ac_objext conftest.beam conftest.$ac_ext
2876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2877 as_fn_set_status $ac_retval
2879 } # ac_fn_c_compute_int
2881 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2882 # ------------------------------------------------------------------
2883 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2884 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2887 ac_save_ac_compile="$ac_compile"
2888 if test -n "$ac_compile_for_check_decl"; then
2889 ac_compile="$ac_compile_for_check_decl"
2891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2892 as_decl_name=`echo $2|sed 's/ *(.*//'`
2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2894 printf %s "checking whether $as_decl_name is declared... " >&6; }
2895 if eval test \${$3+y}
2897 printf %s "(cached) " >&6
2899 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2900 eval ac_save_FLAGS=\$$6
2901 as_fn_append $6 " $5"
2902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903 /* end confdefs.h. */
2908 #ifndef $as_decl_name
2910 (void) $as_decl_use;
2912 (void) $as_decl_name;
2920 if ac_fn_c_try_compile "$LINENO"
2926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2927 eval $6=\$ac_save_FLAGS
2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2932 printf "%s\n" "$ac_res" >&6; }
2933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2934 ac_compile="$ac_save_ac_compile"
2936 } # ac_fn_check_decl
2938 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2939 # ----------------------------------------------------
2940 # Tries to find if the field MEMBER exists in type AGGR, after including
2941 # INCLUDES, setting cache variable VAR accordingly.
2942 ac_fn_c_check_member ()
2944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2946 printf %s "checking for $2.$3... " >&6; }
2947 if eval test \${$4+y}
2949 printf %s "(cached) " >&6
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2964 if ac_fn_c_try_compile "$LINENO"
2968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969 /* end confdefs.h. */
2975 if (sizeof ac_aggr.$3)
2981 if ac_fn_c_try_compile "$LINENO"
2987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2993 printf "%s\n" "$ac_res" >&6; }
2994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2996 } # ac_fn_c_check_member
2997 ac_configure_args_raw=
3002 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3004 as_fn_append ac_configure_args_raw " '$ac_arg'"
3007 case $ac_configure_args_raw in
3011 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
3012 ac_unsafe_a="$ac_unsafe_z#~"
3013 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3014 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3017 cat >config.log <<_ACEOF
3018 This file contains any messages produced by compilers while
3019 running configure, to aid debugging if configure makes a mistake.
3021 It was created by libpipeline $as_me 1.5.4, which was
3022 generated by GNU Autoconf 2.71. Invocation command line was
3024 $ $0$ac_configure_args_raw
3034 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3035 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3036 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3037 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3038 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3040 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3041 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3043 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3044 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3045 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3046 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3047 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3048 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3049 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 case $as_dir in #(((
3060 *) as_dir=$as_dir/ ;;
3062 printf "%s\n" "PATH: $as_dir"
3078 # Keep a trace of the command line.
3079 # Strip out --no-create and --no-recursion so they do not pile up.
3080 # Strip out --silent because we don't want to record it for future runs.
3081 # Also quote any args containing shell meta-characters.
3082 # Make two passes to allow for proper duplicate-argument suppression.
3086 ac_must_keep_next=false
3092 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3094 | -silent | --silent | --silen | --sile | --sil)
3097 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3100 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3102 as_fn_append ac_configure_args1 " '$ac_arg'"
3103 if test $ac_must_keep_next = true; then
3104 ac_must_keep_next=false # Got value, back to normal.
3107 *=* | --config-cache | -C | -disable-* | --disable-* \
3108 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3109 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3110 | -with-* | --with-* | -without-* | --without-* | --x)
3111 case "$ac_configure_args0 " in
3112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3115 -* ) ac_must_keep_next=true ;;
3118 as_fn_append ac_configure_args " '$ac_arg'"
3123 { ac_configure_args0=; unset ac_configure_args0;}
3124 { ac_configure_args1=; unset ac_configure_args1;}
3126 # When interrupted or exit'd, cleanup temporary files, and complete
3127 # config.log. We remove comments because anyway the quotes in there
3128 # would cause problems or look ugly.
3129 # WARNING: Use '\'' to represent an apostrophe within the trap.
3130 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3131 trap 'exit_status=$?
3134 # Save into config.log some information that might help in debugging.
3138 printf "%s\n" "## ---------------- ##
3139 ## Cache variables. ##
3140 ## ---------------- ##"
3142 # The following way of writing the cache mishandles newlines in values,
3144 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3145 eval ac_val=\$$ac_var
3149 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3150 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3153 _ | IFS | as_nl) ;; #(
3154 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3155 *) { eval $ac_var=; unset $ac_var;} ;;
3160 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3161 *${as_nl}ac_space=\ *)
3163 "s/'\''/'\''\\\\'\'''\''/g;
3164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3174 printf "%s\n" "## ----------------- ##
3175 ## Output variables. ##
3176 ## ----------------- ##"
3178 for ac_var in $ac_subst_vars
3180 eval ac_val=\$$ac_var
3182 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3184 printf "%s\n" "$ac_var='\''$ac_val'\''"
3188 if test -n "$ac_subst_files"; then
3189 printf "%s\n" "## ------------------- ##
3190 ## File substitutions. ##
3191 ## ------------------- ##"
3193 for ac_var in $ac_subst_files
3195 eval ac_val=\$$ac_var
3197 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3199 printf "%s\n" "$ac_var='\''$ac_val'\''"
3204 if test -s confdefs.h; then
3205 printf "%s\n" "## ----------- ##
3212 test "$ac_signal" != 0 &&
3213 printf "%s\n" "$as_me: caught signal $ac_signal"
3214 printf "%s\n" "$as_me: exit $exit_status"
3216 rm -f core *.core core.conftest.* &&
3217 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3220 for ac_signal in 1 2 13 15; do
3221 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3225 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3226 rm -f -r conftest* confdefs.h
3228 printf "%s\n" "/* confdefs.h */" > confdefs.h
3230 # Predefined preprocessor variables.
3232 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3234 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3236 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3238 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3240 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3242 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3245 # Let the site file select an alternate cache file if it wants to.
3246 # Prefer an explicitly selected file to automatically selected ones.
3247 if test -n "$CONFIG_SITE"; then
3248 ac_site_files="$CONFIG_SITE"
3249 elif test "x$prefix" != xNONE; then
3250 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3252 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3255 for ac_site_file in $ac_site_files
3257 case $ac_site_file in #(
3261 ac_site_file=./$ac_site_file ;;
3263 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3265 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3266 sed 's/^/| /' "$ac_site_file" >&5
3268 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3270 as_fn_error $? "failed to load site script $ac_site_file
3271 See \`config.log' for more details" "$LINENO" 5; }
3275 if test -r "$cache_file"; then
3276 # Some versions of bash will fail to source /dev/null (special files
3277 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3278 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3280 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3282 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3283 *) . "./$cache_file";;
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3288 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3292 # Test code for whether the C compiler supports C89 (global declarations)
3293 ac_c_conftest_c89_globals='
3294 /* Does the compiler advertise C89 conformance?
3295 Do not test the value of __STDC__, because some compilers set it to 0
3296 while being otherwise adequately conformant. */
3297 #if !defined __STDC__
3298 # error "Compiler does not advertise C89 conformance"
3304 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3305 struct buf { int x; };
3306 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3307 static char *e (p, i)
3313 static char *f (char * (*g) (char **, int), char **p, ...)
3318 s = g (p, va_arg (v,int));
3323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3324 function prototypes and stuff, but not \xHH hex character constants.
3325 These do not provoke an error unfortunately, instead are silently treated
3326 as an "x". The following induces an error, until -std is added to get
3327 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3328 array size at least. It is necessary to write \x00 == 0 to get something
3329 that is true only with -std. */
3330 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3332 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3333 inside strings and character constants. */
3334 #define FOO(x) '\''x'\''
3335 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3337 int test (int i, double x);
3338 struct s1 {int (*f) (int a);};
3339 struct s2 {int (*f) (double a);};
3340 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3343 # Test code for whether the C compiler supports C89 (body of main).
3344 ac_c_conftest_c89_main='
3345 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3348 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3349 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3350 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3351 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3352 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3353 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3354 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3355 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3356 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3357 as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER"
3358 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
3359 as_fn_append ac_func_c_list " fcntl HAVE_FCNTL"
3360 as_fn_append ac_func_c_list " symlink HAVE_SYMLINK"
3361 as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE"
3362 as_fn_append ac_func_c_list " getprogname HAVE_GETPROGNAME"
3363 as_fn_append ac_func_c_list " getexecname HAVE_GETEXECNAME"
3364 as_fn_append ac_func_c_list " getrandom HAVE_GETRANDOM"
3365 as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
3366 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3367 as_fn_append ac_header_c_list " threads.h threads_h HAVE_THREADS_H"
3368 as_fn_append ac_func_c_list " lstat HAVE_LSTAT"
3369 as_fn_append ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H"
3370 as_fn_append ac_func_c_list " mprotect HAVE_MPROTECT"
3371 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3372 as_fn_append ac_func_c_list " setenv HAVE_SETENV"
3373 as_fn_append ac_func_c_list " sigaction HAVE_SIGACTION"
3374 as_fn_append ac_func_c_list " sigaltstack HAVE_SIGALTSTACK"
3375 as_fn_append ac_func_c_list " siginterrupt HAVE_SIGINTERRUPT"
3376 as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF"
3377 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3378 as_fn_append ac_func_c_list " strndup HAVE_STRNDUP"
3379 as_fn_append ac_header_c_list " sys/random.h sys_random_h HAVE_SYS_RANDOM_H"
3380 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
3381 as_fn_append ac_header_c_list " sys/wait.h sys_wait_h HAVE_SYS_WAIT_H"
3382 as_fn_append ac_func_c_list " vasnprintf HAVE_VASNPRINTF"
3383 as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H"
3384 as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H"
3385 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
3386 as_fn_append ac_func_c_list " fork HAVE_FORK"
3387 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
3389 # Auxiliary files required by this configure script.
3390 ac_aux_files="ltmain.sh ar-lib config.guess config.sub missing install-sh"
3392 # Locations in which to look for auxiliary files.
3393 ac_aux_dir_candidates="${srcdir}/build-aux"
3395 # Search for a directory containing all of the required auxiliary files,
3396 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3397 # If we don't find one directory that contains all the files we need,
3398 # we report the set of missing files from the *first* directory in
3399 # $ac_aux_dir_candidates and give up.
3400 ac_missing_aux_files=""
3401 ac_first_candidate=:
3402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $ac_aux_dir_candidates
3408 case $as_dir in #(((
3411 *) as_dir=$as_dir/ ;;
3415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3416 ac_aux_dir_found=yes
3418 for ac_aux in $ac_aux_files
3420 # As a special case, if "install-sh" is required, that requirement
3421 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3422 # and $ac_install_sh is set appropriately for whichever one is found.
3423 if test x"$ac_aux" = x"install-sh"
3425 if test -f "${as_dir}install-sh"; then
3426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3427 ac_install_sh="${as_dir}install-sh -c"
3428 elif test -f "${as_dir}install.sh"; then
3429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3430 ac_install_sh="${as_dir}install.sh -c"
3431 elif test -f "${as_dir}shtool"; then
3432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3433 ac_install_sh="${as_dir}shtool install -c"
3436 if $ac_first_candidate; then
3437 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3443 if test -f "${as_dir}${ac_aux}"; then
3444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3447 if $ac_first_candidate; then
3448 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3455 if test "$ac_aux_dir_found" = yes; then
3456 ac_aux_dir="$as_dir"
3459 ac_first_candidate=false
3468 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3472 # These three variables are undocumented and unsupported,
3473 # and are intended to be withdrawn in a future Autoconf release.
3474 # They can cause serious problems if a builder's source tree is in a directory
3475 # whose full name contains unusual characters.
3476 if test -f "${ac_aux_dir}config.guess"; then
3477 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3479 if test -f "${ac_aux_dir}config.sub"; then
3480 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3482 if test -f "$ac_aux_dir/configure"; then
3483 ac_configure="$SHELL ${ac_aux_dir}configure"
3486 # Check that the precious variables saved in the cache have kept the same
3488 ac_cache_corrupted=false
3489 for ac_var in $ac_precious_vars; do
3490 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3491 eval ac_new_set=\$ac_env_${ac_var}_set
3492 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3493 eval ac_new_val=\$ac_env_${ac_var}_value
3494 case $ac_old_set,$ac_new_set in
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3497 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3498 ac_cache_corrupted=: ;;
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3501 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3502 ac_cache_corrupted=: ;;
3505 if test "x$ac_old_val" != "x$ac_new_val"; then
3506 # differences in whitespace do not lead to failure.
3507 ac_old_val_w=`echo x $ac_old_val`
3508 ac_new_val_w=`echo x $ac_new_val`
3509 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3511 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3512 ac_cache_corrupted=:
3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3515 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3516 eval $ac_var=\$ac_old_val
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3519 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3521 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3524 # Pass precious variables to config.status.
3525 if test "$ac_new_set" = set; then
3527 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3528 *) ac_arg=$ac_var=$ac_new_val ;;
3530 case " $ac_configure_args " in
3531 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3532 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3536 if $ac_cache_corrupted; then
3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3540 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3541 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3542 and start over" "$LINENO" 5
3544 ## -------------------- ##
3545 ## Main body of script. ##
3546 ## -------------------- ##
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3556 am__api_version='1.16'
3560 # Find a good install program. We prefer a C program (faster),
3561 # so one script is as good as another. But avoid the broken or
3562 # incompatible versions:
3563 # SysV /etc/install, /usr/sbin/install
3564 # SunOS /usr/etc/install
3565 # IRIX /sbin/install
3567 # AmigaOS /C/install, which installs bootblocks on floppy discs
3568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3571 # OS/2's system install, which has a completely different semantic
3572 # ./install, which can be erroneously created by make from ./install.sh.
3573 # Reject install programs that cannot install multiple files.
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3575 printf %s "checking for a BSD-compatible install... " >&6; }
3576 if test -z "$INSTALL"; then
3577 if test ${ac_cv_path_install+y}
3579 printf %s "(cached) " >&6
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 case $as_dir in #(((
3588 *) as_dir=$as_dir/ ;;
3590 # Account for fact that we put trailing slashes in our PATH walk.
3593 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3594 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3597 # OSF1 and SCO ODT 3.0 have their own names for install.
3598 # Don't use installbsd from OSF since it installs stuff as root
3600 for ac_prog in ginstall scoinst install; do
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3603 if test $ac_prog = install &&
3604 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3605 # AIX install. It has an incompatible calling convention.
3607 elif test $ac_prog = install &&
3608 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3609 # program-specific install script used by HP pwplus--don't use.
3612 rm -rf conftest.one conftest.two conftest.dir
3613 echo one > conftest.one
3614 echo two > conftest.two
3616 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3617 test -s conftest.one && test -s conftest.two &&
3618 test -s conftest.dir/conftest.one &&
3619 test -s conftest.dir/conftest.two
3621 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3634 rm -rf conftest.one conftest.two conftest.dir
3637 if test ${ac_cv_path_install+y}; then
3638 INSTALL=$ac_cv_path_install
3640 # As a last resort, use the slow shell script. Don't cache a
3641 # value for INSTALL within a source directory, because that will
3642 # break other packages using the cache if that directory is
3643 # removed, or if the value is a relative name.
3644 INSTALL=$ac_install_sh
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3648 printf "%s\n" "$INSTALL" >&6; }
3650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3651 # It thinks the first close brace ends the variable substitution.
3652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3659 printf %s "checking whether build environment is sane... " >&6; }
3660 # Reject unsafe characters in $srcdir or the absolute working directory
3661 # name. Accept space and tab only in the latter.
3665 *[\\\"\#\$\&\'\`$am_lf]*)
3666 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3669 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3670 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3673 # Do 'set' in a subshell so we don't clobber the current shell's
3674 # arguments. Must try -L first in case configure is actually a
3675 # symlink; some systems play weird games with the mod time of symlinks
3676 # (eg FreeBSD returns the mod time of the symlink's containing
3680 for am_try in 1 2; do
3681 echo "timestamp, slept: $am_has_slept" > conftest.file
3682 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3683 if test "$*" = "X"; then
3685 set X `ls -t "$srcdir/configure" conftest.file`
3687 if test "$*" != "X $srcdir/configure conftest.file" \
3688 && test "$*" != "X conftest.file $srcdir/configure"; then
3690 # If neither matched, then we have a broken ls. This can happen
3691 # if, for instance, CONFIG_SHELL is bash and it inherits a
3692 # broken ls alias from the environment. This has actually
3693 # happened. Such a system could not be considered "sane".
3694 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3695 alias in your environment" "$LINENO" 5
3697 if test "$2" = conftest.file || test $am_try -eq 2; then
3704 test "$2" = conftest.file
3710 as_fn_error $? "newly created file is older than distributed files!
3711 Check your system clock" "$LINENO" 5
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3714 printf "%s\n" "yes" >&6; }
3715 # If we didn't sleep, we still need to ensure time stamps of config.status and
3716 # generated files are strictly newer.
3718 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3725 test "$program_prefix" != NONE &&
3726 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3727 # Use a double $ so make ignores it.
3728 test "$program_suffix" != NONE &&
3729 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3730 # Double any \ or $.
3731 # By default was `s,x,x', remove it if useless.
3732 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3733 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3736 # Expand $ac_aux_dir to an absolute path.
3737 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3740 if test x"${MISSING+set}" != xset; then
3741 MISSING="\${SHELL} '$am_aux_dir/missing'"
3743 # Use eval to expand $SHELL
3744 if eval "$MISSING --is-lightweight"; then
3745 am_missing_run="$MISSING "
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3749 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3752 if test x"${install_sh+set}" != xset; then
3755 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3757 install_sh="\${SHELL} $am_aux_dir/install-sh"
3761 # Installed binaries are usually stripped using 'strip' when the user
3762 # run "make install-strip". However 'strip' might not be the right
3763 # tool to use in cross-compilation environments, therefore Automake
3764 # will honor the 'STRIP' environment variable to overrule this program.
3765 if test "$cross_compiling" != no; then
3766 if test -n "$ac_tool_prefix"; then
3767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3768 set dummy ${ac_tool_prefix}strip; ac_word=$2
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 printf %s "checking for $ac_word... " >&6; }
3771 if test ${ac_cv_prog_STRIP+y}
3773 printf %s "(cached) " >&6
3775 if test -n "$STRIP"; then
3776 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 case $as_dir in #(((
3785 *) as_dir=$as_dir/ ;;
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3789 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3799 STRIP=$ac_cv_prog_STRIP
3800 if test -n "$STRIP"; then
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3802 printf "%s\n" "$STRIP" >&6; }
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 printf "%s\n" "no" >&6; }
3810 if test -z "$ac_cv_prog_STRIP"; then
3812 # Extract the first word of "strip", so it can be a program name with args.
3813 set dummy strip; ac_word=$2
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 printf %s "checking for $ac_word... " >&6; }
3816 if test ${ac_cv_prog_ac_ct_STRIP+y}
3818 printf %s "(cached) " >&6
3820 if test -n "$ac_ct_STRIP"; then
3821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 case $as_dir in #(((
3830 *) as_dir=$as_dir/ ;;
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_ac_ct_STRIP="strip"
3835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3844 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3845 if test -n "$ac_ct_STRIP"; then
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3847 printf "%s\n" "$ac_ct_STRIP" >&6; }
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 printf "%s\n" "no" >&6; }
3853 if test "x$ac_ct_STRIP" = x; then
3856 case $cross_compiling:$ac_tool_warned in
3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3859 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3860 ac_tool_warned=yes ;;
3865 STRIP="$ac_cv_prog_STRIP"
3869 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3873 printf %s "checking for a race-free mkdir -p... " >&6; }
3874 if test -z "$MKDIR_P"; then
3875 if test ${ac_cv_path_mkdir+y}
3877 printf %s "(cached) " >&6
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3883 case $as_dir in #(((
3886 *) as_dir=$as_dir/ ;;
3888 for ac_prog in mkdir gmkdir; do
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3891 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3892 'mkdir ('*'coreutils) '* | \
3894 'mkdir (fileutils) '4.1*)
3895 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3905 test -d ./--version && rmdir ./--version
3906 if test ${ac_cv_path_mkdir+y}; then
3907 MKDIR_P="$ac_cv_path_mkdir -p"
3909 # As a last resort, use the slow shell script. Don't cache a
3910 # value for MKDIR_P within a source directory, because that will
3911 # break other packages using the cache if that directory is
3912 # removed, or if the value is a relative name.
3913 MKDIR_P="$ac_install_sh -d"
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3917 printf "%s\n" "$MKDIR_P" >&6; }
3919 for ac_prog in gawk mawk nawk awk
3921 # Extract the first word of "$ac_prog", so it can be a program name with args.
3922 set dummy $ac_prog; ac_word=$2
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 printf %s "checking for $ac_word... " >&6; }
3925 if test ${ac_cv_prog_AWK+y}
3927 printf %s "(cached) " >&6
3929 if test -n "$AWK"; then
3930 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 case $as_dir in #(((
3939 *) as_dir=$as_dir/ ;;
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_AWK="$ac_prog"
3944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3954 if test -n "$AWK"; then
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3956 printf "%s\n" "$AWK" >&6; }
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 printf "%s\n" "no" >&6; }
3963 test -n "$AWK" && break
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3967 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3969 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3970 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3972 printf %s "(cached) " >&6
3974 cat >conftest.make <<\_ACEOF
3977 @echo '@@@%%%=$(MAKE)=@@@%%%'
3979 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3980 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3982 eval ac_cv_prog_make_${ac_make}_set=yes;;
3984 eval ac_cv_prog_make_${ac_make}_set=no;;
3988 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3990 printf "%s\n" "yes" >&6; }
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 printf "%s\n" "no" >&6; }
3995 SET_MAKE="MAKE=${MAKE-make}"
3998 rm -rf .tst 2>/dev/null
3999 mkdir .tst 2>/dev/null
4000 if test -d .tst; then
4005 rmdir .tst 2>/dev/null
4007 # Check whether --enable-silent-rules was given.
4008 if test ${enable_silent_rules+y}
4010 enableval=$enable_silent_rules;
4013 case $enable_silent_rules in # (((
4014 yes) AM_DEFAULT_VERBOSITY=0;;
4015 no) AM_DEFAULT_VERBOSITY=1;;
4016 *) AM_DEFAULT_VERBOSITY=1;;
4018 am_make=${MAKE-make}
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4020 printf %s "checking whether $am_make supports nested variables... " >&6; }
4021 if test ${am_cv_make_support_nested_variables+y}
4023 printf %s "(cached) " >&6
4025 if printf "%s\n" 'TRUE=$(BAR$(V))
4031 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4032 am_cv_make_support_nested_variables=yes
4034 am_cv_make_support_nested_variables=no
4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4038 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4039 if test $am_cv_make_support_nested_variables = yes; then
4041 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4043 AM_V=$AM_DEFAULT_VERBOSITY
4044 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4048 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4049 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4050 # is not polluted with repeated "-I."
4051 am__isrc=' -I$(srcdir)'
4052 # test to see if srcdir already configured
4053 if test -f $srcdir/config.status; then
4054 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4058 # test whether we have cygpath
4059 if test -z "$CYGPATH_W"; then
4060 if (cygpath --version) >/dev/null 2>/dev/null; then
4061 CYGPATH_W='cygpath -w'
4068 # Define the identity of the package.
4069 PACKAGE='libpipeline'
4073 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4076 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4078 # Some tools Automake needs.
4080 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4083 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4086 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4089 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4092 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4094 # For better backward compatibility. To be removed once Automake 1.9.x
4095 # dies out for good. For more background, see:
4096 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4097 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4098 mkdir_p='$(MKDIR_P)'
4100 # We need awk for the "check" target (and possibly the TAP driver). The
4101 # system "awk" is bad on some platforms.
4102 # Always define AMTAR for backward compatibility. Yes, it's still used
4103 # in the wild :-( We should find a proper way to deprecate it ...
4107 # We'll loop over all known methods to create a tar archive until one works.
4108 _am_tools='gnutar pax cpio none'
4110 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4116 # Variables for tags utilities; see am/tags.am
4117 if test -z "$CTAGS"; then
4121 if test -z "$ETAGS"; then
4125 if test -z "$CSCOPE"; then
4131 # POSIX will say in a future version that running "rm -f" with no argument
4132 # is OK; and we want to be able to make that assumption in our Makefile
4133 # recipes. So use an aggressive probe to check that the usage we want is
4134 # actually supported "in the wild" to an acceptable degree.
4135 # See automake bug#10828.
4136 # To make any issue more visible, cause the running configure to be aborted
4137 # by default if the 'rm' program in use doesn't match our expectations; the
4138 # user can still override this though.
4139 if rm -f && rm -fr && rm -rf; then : OK; else
4143 Your 'rm' program seems unable to run without file operands specified
4144 on the command line, even when the '-f' option is present. This is contrary
4145 to the behaviour of most rm programs out there, and not conforming with
4146 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4148 Please tell bug-automake@gnu.org about your system, including the value
4149 of your $PATH and any error possibly output before this message. This
4150 can help us improve future automake versions.
4153 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4154 echo 'Configuration will proceed anyway, since you have set the' >&2
4155 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4159 Aborting the configuration process, to ensure you take notice of the issue.
4161 You can download and install GNU coreutils to get an 'rm' implementation
4162 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4164 If you want to complete the configuration process using your problematic
4165 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4166 to "yes", and re-run configure.
4169 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4175 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4176 # Check whether --enable-maintainer-mode was given.
4177 if test ${enable_maintainer_mode+y}
4179 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4181 USE_MAINTAINER_MODE=no
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4185 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
4186 if test $USE_MAINTAINER_MODE = yes; then
4187 MAINTAINER_MODE_TRUE=
4188 MAINTAINER_MODE_FALSE='#'
4190 MAINTAINER_MODE_TRUE='#'
4191 MAINTAINER_MODE_FALSE=
4194 MAINT=$MAINTAINER_MODE_TRUE
4197 # Check whether --enable-silent-rules was given.
4198 if test ${enable_silent_rules+y}
4200 enableval=$enable_silent_rules;
4203 case $enable_silent_rules in # (((
4204 yes) AM_DEFAULT_VERBOSITY=0;;
4205 no) AM_DEFAULT_VERBOSITY=1;;
4206 *) AM_DEFAULT_VERBOSITY=0;;
4208 am_make=${MAKE-make}
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4210 printf %s "checking whether $am_make supports nested variables... " >&6; }
4211 if test ${am_cv_make_support_nested_variables+y}
4213 printf %s "(cached) " >&6
4215 if printf "%s\n" 'TRUE=$(BAR$(V))
4221 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4222 am_cv_make_support_nested_variables=yes
4224 am_cv_make_support_nested_variables=no
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4228 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4229 if test $am_cv_make_support_nested_variables = yes; then
4231 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4233 AM_V=$AM_DEFAULT_VERBOSITY
4234 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4242 DEPDIR="${am__leading_dot}deps"
4244 ac_config_commands="$ac_config_commands depfiles"
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4247 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4248 cat > confinc.mk << 'END'
4250 @echo this is the am__doit target >confinc.out
4255 # BSD make does it like this.
4256 echo '.include "confinc.mk" # ignored' > confmf.BSD
4257 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4258 echo 'include confinc.mk # ignored' > confmf.GNU
4260 for s in GNU BSD; do
4261 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4262 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }
4266 case $?:`cat confinc.out 2>/dev/null` in #(
4267 '0:this is the am__doit target') :
4270 am__include='.include' am__quote='"' ;; #(
4272 am__include='include' am__quote='' ;;
4277 if test "$am__include" != "#"; then
4278 _am_result="yes ($s style)"
4282 rm -f confinc.* confmf.*
4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4284 printf "%s\n" "${_am_result}" >&6; }
4286 # Check whether --enable-dependency-tracking was given.
4287 if test ${enable_dependency_tracking+y}
4289 enableval=$enable_dependency_tracking;
4292 if test "x$enable_dependency_tracking" != xno; then
4293 am_depcomp="$ac_aux_dir/depcomp"
4297 if test "x$enable_dependency_tracking" != xno; then
4307 ac_cpp='$CPP $CPPFLAGS'
4308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4311 if test -n "$ac_tool_prefix"; then
4312 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4313 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 printf %s "checking for $ac_word... " >&6; }
4316 if test ${ac_cv_prog_CC+y}
4318 printf %s "(cached) " >&6
4320 if test -n "$CC"; then
4321 ac_cv_prog_CC="$CC" # Let the user override the test.
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 case $as_dir in #(((
4330 *) as_dir=$as_dir/ ;;
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4334 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4345 if test -n "$CC"; then
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4347 printf "%s\n" "$CC" >&6; }
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 printf "%s\n" "no" >&6; }
4355 if test -z "$ac_cv_prog_CC"; then
4357 # Extract the first word of "gcc", so it can be a program name with args.
4358 set dummy gcc; ac_word=$2
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 printf %s "checking for $ac_word... " >&6; }
4361 if test ${ac_cv_prog_ac_ct_CC+y}
4363 printf %s "(cached) " >&6
4365 if test -n "$ac_ct_CC"; then
4366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 case $as_dir in #(((
4375 *) as_dir=$as_dir/ ;;
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4379 ac_cv_prog_ac_ct_CC="gcc"
4380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4390 if test -n "$ac_ct_CC"; then
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4392 printf "%s\n" "$ac_ct_CC" >&6; }
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 printf "%s\n" "no" >&6; }
4398 if test "x$ac_ct_CC" = x; then
4401 case $cross_compiling:$ac_tool_warned in
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4413 if test -z "$CC"; then
4414 if test -n "$ac_tool_prefix"; then
4415 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4416 set dummy ${ac_tool_prefix}cc; ac_word=$2
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 printf %s "checking for $ac_word... " >&6; }
4419 if test ${ac_cv_prog_CC+y}
4421 printf %s "(cached) " >&6
4423 if test -n "$CC"; then
4424 ac_cv_prog_CC="$CC" # Let the user override the test.
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 case $as_dir in #(((
4433 *) as_dir=$as_dir/ ;;
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_CC="${ac_tool_prefix}cc"
4438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4448 if test -n "$CC"; then
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4450 printf "%s\n" "$CC" >&6; }
4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 printf "%s\n" "no" >&6; }
4459 if test -z "$CC"; then
4460 # Extract the first word of "cc", so it can be a program name with args.
4461 set dummy cc; ac_word=$2
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 printf %s "checking for $ac_word... " >&6; }
4464 if test ${ac_cv_prog_CC+y}
4466 printf %s "(cached) " >&6
4468 if test -n "$CC"; then
4469 ac_cv_prog_CC="$CC" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 case $as_dir in #(((
4479 *) as_dir=$as_dir/ ;;
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4483 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4484 ac_prog_rejected=yes
4488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4495 if test $ac_prog_rejected = yes; then
4496 # We found a bogon in the path, so make sure we never use it.
4497 set dummy $ac_cv_prog_CC
4499 if test $# != 0; then
4500 # We chose a different compiler from the bogus one.
4501 # However, it has the same basename, so the bogon will be chosen
4502 # first if we set CC to just the basename; use the full file name.
4504 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4510 if test -n "$CC"; then
4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4512 printf "%s\n" "$CC" >&6; }
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 printf "%s\n" "no" >&6; }
4520 if test -z "$CC"; then
4521 if test -n "$ac_tool_prefix"; then
4522 for ac_prog in cl.exe
4524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527 printf %s "checking for $ac_word... " >&6; }
4528 if test ${ac_cv_prog_CC+y}
4530 printf %s "(cached) " >&6
4532 if test -n "$CC"; then
4533 ac_cv_prog_CC="$CC" # Let the user override the test.
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 case $as_dir in #(((
4542 *) as_dir=$as_dir/ ;;
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4557 if test -n "$CC"; then
4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4559 printf "%s\n" "$CC" >&6; }
4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 printf "%s\n" "no" >&6; }
4566 test -n "$CC" && break
4569 if test -z "$CC"; then
4571 for ac_prog in cl.exe
4573 # Extract the first word of "$ac_prog", so it can be a program name with args.
4574 set dummy $ac_prog; ac_word=$2
4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 printf %s "checking for $ac_word... " >&6; }
4577 if test ${ac_cv_prog_ac_ct_CC+y}
4579 printf %s "(cached) " >&6
4581 if test -n "$ac_ct_CC"; then
4582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 case $as_dir in #(((
4591 *) as_dir=$as_dir/ ;;
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4595 ac_cv_prog_ac_ct_CC="$ac_prog"
4596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4606 if test -n "$ac_ct_CC"; then
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4608 printf "%s\n" "$ac_ct_CC" >&6; }
4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 printf "%s\n" "no" >&6; }
4615 test -n "$ac_ct_CC" && break
4618 if test "x$ac_ct_CC" = x; then
4621 case $cross_compiling:$ac_tool_warned in
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4625 ac_tool_warned=yes ;;
4632 if test -z "$CC"; then
4633 if test -n "$ac_tool_prefix"; then
4634 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4635 set dummy ${ac_tool_prefix}clang; ac_word=$2
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 printf %s "checking for $ac_word... " >&6; }
4638 if test ${ac_cv_prog_CC+y}
4640 printf %s "(cached) " >&6
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 case $as_dir in #(((
4652 *) as_dir=$as_dir/ ;;
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4656 ac_cv_prog_CC="${ac_tool_prefix}clang"
4657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4667 if test -n "$CC"; then
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4669 printf "%s\n" "$CC" >&6; }
4671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 printf "%s\n" "no" >&6; }
4677 if test -z "$ac_cv_prog_CC"; then
4679 # Extract the first word of "clang", so it can be a program name with args.
4680 set dummy clang; ac_word=$2
4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 printf %s "checking for $ac_word... " >&6; }
4683 if test ${ac_cv_prog_ac_ct_CC+y}
4685 printf %s "(cached) " >&6
4687 if test -n "$ac_ct_CC"; then
4688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 case $as_dir in #(((
4697 *) as_dir=$as_dir/ ;;
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4701 ac_cv_prog_ac_ct_CC="clang"
4702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4712 if test -n "$ac_ct_CC"; then
4713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4714 printf "%s\n" "$ac_ct_CC" >&6; }
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 printf "%s\n" "no" >&6; }
4720 if test "x$ac_ct_CC" = x; then
4723 case $cross_compiling:$ac_tool_warned in
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4738 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4739 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4740 as_fn_error $? "no acceptable C compiler found in \$PATH
4741 See \`config.log' for more details" "$LINENO" 5; }
4743 # Provide some information about the compiler.
4744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4747 for ac_option in --version -v -V -qversion -version; do
4748 { { ac_try="$ac_compiler $ac_option >&5"
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4754 printf "%s\n" "$ac_try_echo"; } >&5
4755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4757 if test -s conftest.err; then
4759 ... rest of stderr output deleted ...
4760 10q' conftest.err >conftest.er1
4761 cat conftest.er1 >&5
4763 rm -f conftest.er1 conftest.err
4764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4765 test $ac_status = 0; }
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4779 ac_clean_files_save=$ac_clean_files
4780 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4781 # Try to create an executable without -o first, disregard a.out.
4782 # It will help us diagnose broken compilers, and finding out an intuition
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4785 printf %s "checking whether the C compiler works... " >&6; }
4786 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4788 # The possible output files:
4789 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4792 for ac_file in $ac_files
4795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4796 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4801 if { { ac_try="$ac_link_default"
4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4807 printf "%s\n" "$ac_try_echo"; } >&5
4808 (eval "$ac_link_default") 2>&5
4810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4811 test $ac_status = 0; }
4813 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4814 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4815 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4816 # so that the user can short-circuit this test for compilers unknown to
4818 for ac_file in $ac_files ''
4820 test -f "$ac_file" || continue
4822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4825 # We found the default executable, but exeext='' is most
4829 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4831 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4833 # We set ac_cv_exeext here because the later test for it is not
4834 # safe: cross compilers may not add the suffix if given an `-o'
4835 # argument, so we may need to know it at that point already.
4836 # Even if this section looks crufty: it has the advantage of
4843 test "$ac_cv_exeext" = no && ac_cv_exeext=
4848 if test -z "$ac_file"
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 printf "%s\n" "no" >&6; }
4852 printf "%s\n" "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4855 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4856 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4857 as_fn_error 77 "C compiler cannot create executables
4858 See \`config.log' for more details" "$LINENO" 5; }
4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4861 printf "%s\n" "yes" >&6; }
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4864 printf %s "checking for C compiler default output file name... " >&6; }
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4866 printf "%s\n" "$ac_file" >&6; }
4867 ac_exeext=$ac_cv_exeext
4869 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4870 ac_clean_files=$ac_clean_files_save
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4872 printf %s "checking for suffix of executables... " >&6; }
4873 if { { ac_try="$ac_link"
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4879 printf "%s\n" "$ac_try_echo"; } >&5
4880 (eval "$ac_link") 2>&5
4882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4883 test $ac_status = 0; }
4885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4886 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4887 # work properly (i.e., refer to `conftest.exe'), while it won't with
4889 for ac_file in conftest.exe conftest conftest.*; do
4890 test -f "$ac_file" || continue
4892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4899 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4900 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4901 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4902 See \`config.log' for more details" "$LINENO" 5; }
4904 rm -f conftest conftest$ac_cv_exeext
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4906 printf "%s\n" "$ac_cv_exeext" >&6; }
4908 rm -f conftest.$ac_ext
4909 EXEEXT=$ac_cv_exeext
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4917 FILE *f = fopen ("conftest.out", "w");
4918 return ferror (f) || fclose (f) != 0;
4924 ac_clean_files="$ac_clean_files conftest.out"
4925 # Check that the compiler produces executables we can run. If not, either
4926 # the compiler is broken, or we cross compile.
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4928 printf %s "checking whether we are cross compiling... " >&6; }
4929 if test "$cross_compiling" != yes; then
4930 { { ac_try="$ac_link"
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4936 printf "%s\n" "$ac_try_echo"; } >&5
4937 (eval "$ac_link") 2>&5
4939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4940 test $ac_status = 0; }
4941 if { ac_try='./conftest$ac_cv_exeext'
4942 { { case "(($ac_try" in
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4947 printf "%s\n" "$ac_try_echo"; } >&5
4948 (eval "$ac_try") 2>&5
4950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4951 test $ac_status = 0; }; }; then
4954 if test "$cross_compiling" = maybe; then
4957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4958 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4959 as_fn_error 77 "cannot run C compiled programs.
4960 If you meant to cross compile, use \`--host'.
4961 See \`config.log' for more details" "$LINENO" 5; }
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4966 printf "%s\n" "$cross_compiling" >&6; }
4968 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4969 ac_clean_files=$ac_clean_files_save
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4971 printf %s "checking for suffix of object files... " >&6; }
4972 if test ${ac_cv_objext+y}
4974 printf %s "(cached) " >&6
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4987 rm -f conftest.o conftest.obj
4988 if { { ac_try="$ac_compile"
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4994 printf "%s\n" "$ac_try_echo"; } >&5
4995 (eval "$ac_compile") 2>&5
4997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4998 test $ac_status = 0; }
5000 for ac_file in conftest.o conftest.obj conftest.*; do
5001 test -f "$ac_file" || continue;
5003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5004 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5009 printf "%s\n" "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5012 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5013 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5014 as_fn_error $? "cannot compute suffix of object files: cannot compile
5015 See \`config.log' for more details" "$LINENO" 5; }
5017 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5020 printf "%s\n" "$ac_cv_objext" >&6; }
5021 OBJEXT=$ac_cv_objext
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5024 printf %s "checking whether the compiler supports GNU C... " >&6; }
5025 if test ${ac_cv_c_compiler_gnu+y}
5027 printf %s "(cached) " >&6
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5043 if ac_fn_c_try_compile "$LINENO"
5049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5054 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5057 if test $ac_compiler_gnu = yes; then
5062 ac_test_CFLAGS=${CFLAGS+y}
5063 ac_save_CFLAGS=$CFLAGS
5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5065 printf %s "checking whether $CC accepts -g... " >&6; }
5066 if test ${ac_cv_prog_cc_g+y}
5068 printf %s "(cached) " >&6
5070 ac_save_c_werror_flag=$ac_c_werror_flag
5071 ac_c_werror_flag=yes
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5085 if ac_fn_c_try_compile "$LINENO"
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5101 if ac_fn_c_try_compile "$LINENO"
5105 ac_c_werror_flag=$ac_save_c_werror_flag
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h. */
5118 if ac_fn_c_try_compile "$LINENO"
5122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5127 ac_c_werror_flag=$ac_save_c_werror_flag
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5130 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5131 if test $ac_test_CFLAGS; then
5132 CFLAGS=$ac_save_CFLAGS
5133 elif test $ac_cv_prog_cc_g = yes; then
5134 if test "$GCC" = yes; then
5140 if test "$GCC" = yes; then
5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5147 printf %s "checking for $CC option to enable C11 features... " >&6; }
5148 if test ${ac_cv_prog_cc_c11+y}
5150 printf %s "(cached) " >&6
5152 ac_cv_prog_cc_c11=no
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5157 #include <stdbool.h>
5163 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5164 #define debug(...) fprintf (stderr, __VA_ARGS__)
5165 #define showlist(...) puts (#__VA_ARGS__)
5166 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5168 test_varargs_macros (void)
5173 debug ("X = %d\n", x);
5174 showlist (The first, second, and third items.);
5175 report (x>y, "x is %d but y is %d", x, y);
5178 // Check long long types.
5179 #define BIG64 18446744073709551615ull
5180 #define BIG32 4294967295ul
5181 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5183 your preprocessor is broken;
5187 your preprocessor is broken;
5189 static long long int bignum = -9223372036854775807LL;
5190 static unsigned long long int ubignum = BIG64;
5192 struct incomplete_array
5200 const wchar_t *name;
5204 typedef const char *ccp;
5207 test_restrict (ccp restrict text)
5209 // See if C++-style comments work.
5210 // Iterate through items via the restricted pointer.
5211 // Also check for declarations in for loops.
5212 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5217 // Check varargs and va_copy.
5219 test_varargs (const char *format, ...)
5222 va_start (args, format);
5224 va_copy (args_copy, args);
5226 const char *str = "";
5235 str = va_arg (args_copy, const char *);
5238 number = va_arg (args_copy, int);
5241 fnumber = va_arg (args_copy, double);
5250 return *str && number && fnumber;
5253 char _Alignas (double) aligned_as_double;
5254 char _Alignas (0) no_special_alignment;
5255 extern char aligned_as_int;
5256 char _Alignas (0) _Alignas (int) aligned_as_int;
5261 int_alignment = _Alignof (int),
5262 int_array_alignment = _Alignof (int[100]),
5263 char_alignment = _Alignof (char)
5265 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
5268 int _Noreturn does_not_return (void) { for (;;) continue; }
5270 // Check _Static_assert.
5271 struct test_static_assert
5274 _Static_assert (sizeof (int) <= sizeof (long int),
5275 "_Static_assert does not work in struct");
5279 // Check UTF-8 literals.
5280 #define u8 syntax error!
5281 char const utf8_literal[] = u8"happens to be ASCII" "another string";
5283 // Check duplicate typedefs.
5284 typedef long *long_ptr;
5285 typedef long int *long_ptr;
5286 typedef long_ptr long_ptr;
5288 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
5292 struct { int i; int j; };
5293 struct { int k; long int l; } w;
5303 _Bool success = false;
5306 if (test_restrict ("String literal") == 0)
5308 char *restrict newvar = "Another string";
5311 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5312 test_varargs_macros ();
5314 // Check flexible array members.
5315 struct incomplete_array *ia =
5316 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5318 for (int i = 0; i < ia->datasize; ++i)
5319 ia->data[i] = i * 1.234;
5321 // Check named initializers.
5322 struct named_init ni = {
5324 .name = L"Test wide string",
5325 .average = 543.34343,
5330 int dynamic_array[ni.number];
5331 dynamic_array[ni.number - 1] = 543;
5333 // work around unused variable warnings
5334 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5335 || dynamic_array[ni.number - 1] != 543);
5339 _Static_assert ((offsetof (struct anonymous, i)
5340 == offsetof (struct anonymous, w.k)),
5341 "Anonymous union alignment botch");
5347 for ac_arg in '' -std=gnu11
5349 CC="$ac_save_CC $ac_arg"
5350 if ac_fn_c_try_compile "$LINENO"
5352 ac_cv_prog_cc_c11=$ac_arg
5354 rm -f core conftest.err conftest.$ac_objext conftest.beam
5355 test "x$ac_cv_prog_cc_c11" != "xno" && break
5357 rm -f conftest.$ac_ext
5362 ac_prog_cc_stdc_options=
5363 case "x$ac_cv_prog_cc_c11" in
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5366 printf "%s\n" "none needed" >&6; } ;;
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5369 printf "%s\n" "unsupported" >&6; } ;;
5371 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
5372 CC=$CC$ac_prog_cc_stdc_options
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5374 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } ;;
5376 if test "x$ac_cv_prog_cc_c11" != xno
5379 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5382 printf %s "checking for $CC option to enable C99 features... " >&6; }
5383 if test ${ac_cv_prog_cc_c99+y}
5385 printf %s "(cached) " >&6
5387 ac_cv_prog_cc_c99=no
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5392 #include <stdbool.h>
5398 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5399 #define debug(...) fprintf (stderr, __VA_ARGS__)
5400 #define showlist(...) puts (#__VA_ARGS__)
5401 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5403 test_varargs_macros (void)
5408 debug ("X = %d\n", x);
5409 showlist (The first, second, and third items.);
5410 report (x>y, "x is %d but y is %d", x, y);
5413 // Check long long types.
5414 #define BIG64 18446744073709551615ull
5415 #define BIG32 4294967295ul
5416 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5418 your preprocessor is broken;
5422 your preprocessor is broken;
5424 static long long int bignum = -9223372036854775807LL;
5425 static unsigned long long int ubignum = BIG64;
5427 struct incomplete_array
5435 const wchar_t *name;
5439 typedef const char *ccp;
5442 test_restrict (ccp restrict text)
5444 // See if C++-style comments work.
5445 // Iterate through items via the restricted pointer.
5446 // Also check for declarations in for loops.
5447 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5452 // Check varargs and va_copy.
5454 test_varargs (const char *format, ...)
5457 va_start (args, format);
5459 va_copy (args_copy, args);
5461 const char *str = "";
5470 str = va_arg (args_copy, const char *);
5473 number = va_arg (args_copy, int);
5476 fnumber = va_arg (args_copy, double);
5485 return *str && number && fnumber;
5492 _Bool success = false;
5495 if (test_restrict ("String literal") == 0)
5497 char *restrict newvar = "Another string";
5500 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5501 test_varargs_macros ();
5503 // Check flexible array members.
5504 struct incomplete_array *ia =
5505 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5507 for (int i = 0; i < ia->datasize; ++i)
5508 ia->data[i] = i * 1.234;
5510 // Check named initializers.
5511 struct named_init ni = {
5513 .name = L"Test wide string",
5514 .average = 543.34343,
5519 int dynamic_array[ni.number];
5520 dynamic_array[ni.number - 1] = 543;
5522 // work around unused variable warnings
5523 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5524 || dynamic_array[ni.number - 1] != 543);
5530 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
5532 CC="$ac_save_CC $ac_arg"
5533 if ac_fn_c_try_compile "$LINENO"
5535 ac_cv_prog_cc_c99=$ac_arg
5537 rm -f core conftest.err conftest.$ac_objext conftest.beam
5538 test "x$ac_cv_prog_cc_c99" != "xno" && break
5540 rm -f conftest.$ac_ext
5545 ac_prog_cc_stdc_options=
5546 case "x$ac_cv_prog_cc_c99" in
5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5549 printf "%s\n" "none needed" >&6; } ;;
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5552 printf "%s\n" "unsupported" >&6; } ;;
5554 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
5555 CC=$CC$ac_prog_cc_stdc_options
5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5557 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;;
5559 if test "x$ac_cv_prog_cc_c99" != xno
5562 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5565 printf %s "checking for $CC option to enable C89 features... " >&6; }
5566 if test ${ac_cv_prog_cc_c89+y}
5568 printf %s "(cached) " >&6
5570 ac_cv_prog_cc_c89=no
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 $ac_c_conftest_c89_globals
5578 $ac_c_conftest_c89_main
5583 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5585 CC="$ac_save_CC $ac_arg"
5586 if ac_fn_c_try_compile "$LINENO"
5588 ac_cv_prog_cc_c89=$ac_arg
5590 rm -f core conftest.err conftest.$ac_objext conftest.beam
5591 test "x$ac_cv_prog_cc_c89" != "xno" && break
5593 rm -f conftest.$ac_ext
5598 ac_prog_cc_stdc_options=
5599 case "x$ac_cv_prog_cc_c89" in
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5602 printf "%s\n" "none needed" >&6; } ;;
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5605 printf "%s\n" "unsupported" >&6; } ;;
5607 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5608 CC=$CC$ac_prog_cc_stdc_options
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5610 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } ;;
5612 if test "x$ac_cv_prog_cc_c89" != xno
5615 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5618 ac_cv_prog_cc_stdc=no
5626 ac_cpp='$CPP $CPPFLAGS'
5627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5633 printf %s "checking whether the compiler is clang... " >&6; }
5634 if test ${gl_cv_compiler_clang+y}
5636 printf %s "(cached) " >&6
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5654 if ac_fn_c_try_compile "$LINENO"
5656 gl_cv_compiler_clang=no
5658 gl_cv_compiler_clang=yes
5660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5664 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5668 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
5669 if test ${gl_cv_compiler_check_decl_option+y}
5671 printf %s "(cached) " >&6
5673 if test $gl_cv_compiler_clang = yes; then
5674 save_ac_compile="$ac_compile"
5675 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5687 if ac_fn_c_try_compile "$LINENO"
5689 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5691 gl_cv_compiler_check_decl_option=none
5693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5694 ac_compile="$save_ac_compile"
5696 gl_cv_compiler_check_decl_option=none
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5701 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
5702 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5703 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5705 ac_compile_for_check_decl="$ac_compile"
5709 depcc="$CC" am_compiler_list=
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5712 printf %s "checking dependency style of $depcc... " >&6; }
5713 if test ${am_cv_CC_dependencies_compiler_type+y}
5715 printf %s "(cached) " >&6
5717 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5718 # We make a subdir and do the tests there. Otherwise we can end up
5719 # making bogus files that we don't know about and never remove. For
5720 # instance it was reported that on HP-UX the gcc test will end up
5721 # making a dummy file named 'D' -- because '-MD' means "put the output
5725 # Copy depcomp to subdir because otherwise we won't find it if we're
5726 # using a relative directory.
5727 cp "$am_depcomp" conftest.dir
5729 # We will build objects and dependencies in a subdirectory because
5730 # it helps to detect inapplicable dependency modes. For instance
5731 # both Tru64's cc and ICC support -MD to output dependencies as a
5732 # side effect of compilation, but ICC will put the dependencies in
5733 # the current directory while Tru64 will put them in the object
5737 am_cv_CC_dependencies_compiler_type=none
5738 if test "$am_compiler_list" = ""; then
5739 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5742 case " $depcc " in #(
5743 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5746 for depmode in $am_compiler_list; do
5747 # Setup a source with many dependencies, because some compilers
5748 # like to wrap large dependency lists on column 80 (with \), and
5749 # we should not choose a depcomp mode which is confused by this.
5751 # We need to recreate these files for each test, as the compiler may
5752 # overwrite some of them when testing with obscure command lines.
5753 # This happens at least with the AIX C compiler.
5755 for i in 1 2 3 4 5 6; do
5756 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5757 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5758 # Solaris 10 /bin/sh.
5759 echo '/* dummy */' > sub/conftst$i.h
5761 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5763 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5764 # mode. It turns out that the SunPro C++ compiler does not properly
5765 # handle '-M -o', and we need to detect this. Also, some Intel
5766 # versions had trouble with output in subdirs.
5767 am__obj=sub/conftest.${OBJEXT-o}
5768 am__minus_obj="-o $am__obj"
5771 # This depmode causes a compiler race in universal mode.
5772 test "$am__universal" = false || continue
5775 # After this tag, mechanisms are not by side-effect, so they'll
5776 # only be used when explicitly requested.
5777 if test "x$enable_dependency_tracking" = xyes; then
5783 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5784 # This compiler won't grok '-c -o', but also, the minuso test has
5785 # not run yet. These depmodes are late enough in the game, and
5786 # so weak that their functioning should not be impacted.
5787 am__obj=conftest.${OBJEXT-o}
5792 if depmode=$depmode \
5793 source=sub/conftest.c object=$am__obj \
5794 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5795 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5796 >/dev/null 2>conftest.err &&
5797 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5798 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5799 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5800 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5801 # icc doesn't choke on unknown options, it will just issue warnings
5802 # or remarks (even with -Werror). So we grep stderr for any message
5803 # that says an option was ignored or not supported.
5804 # When given -MP, icc 7.0 and 7.1 complain thusly:
5805 # icc: Command line warning: ignoring option '-M'; no argument required
5806 # The diagnosis changed in icc 8.0:
5807 # icc: Command line remark: option '-MP' not supported
5808 if (grep 'ignoring option' conftest.err ||
5809 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5810 am_cv_CC_dependencies_compiler_type=$depmode
5819 am_cv_CC_dependencies_compiler_type=none
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5824 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5825 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5828 test "x$enable_dependency_tracking" != xno \
5829 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5831 am__fastdepCC_FALSE='#'
5833 am__fastdepCC_TRUE='#'
5834 am__fastdepCC_FALSE=
5839 ac_header= ac_cache=
5840 for ac_item in $ac_header_c_list
5842 if test $ac_cache; then
5843 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5844 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5845 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5847 ac_header= ac_cache=
5848 elif test $ac_header; then
5862 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5865 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5869 ac_fn_c_check_header_compile "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5870 if test "x$ac_cv_header_minix_config_h" = xyes
5877 if test "$MINIX" = yes; then
5879 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5882 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5885 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5888 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5894 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5895 if test ${ac_cv_safe_to_define___extensions__+y}
5897 printf %s "(cached) " >&6
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5902 # define __EXTENSIONS__ 1
5903 $ac_includes_default
5912 if ac_fn_c_try_compile "$LINENO"
5914 ac_cv_safe_to_define___extensions__=yes
5916 ac_cv_safe_to_define___extensions__=no
5918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5921 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5922 test $ac_cv_safe_to_define___extensions__ = yes &&
5923 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5925 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5927 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5929 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5931 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5933 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5935 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5937 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5939 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5941 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5943 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5945 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5947 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5949 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5951 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5954 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5955 if test ${ac_cv_should_define__xopen_source+y}
5957 printf %s "(cached) " >&6
5959 ac_cv_should_define__xopen_source=no
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5973 if ac_fn_c_try_compile "$LINENO"
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5980 #define _XOPEN_SOURCE 500
5991 if ac_fn_c_try_compile "$LINENO"
5993 ac_cv_should_define__xopen_source=yes
5995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6000 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6001 test $ac_cv_should_define__xopen_source = yes &&
6002 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6004 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if tar --sort=name works" >&5
6010 printf %s "checking if tar --sort=name works... " >&6; }
6013 echo GrepMe > conftest.dir/file
6014 { echo "$as_me:$LINENO: ${TAR-tar} chof - conftest.dir --sort=name >conftest.tar" >&5
6015 (${TAR-tar} chof - conftest.dir --sort=name >conftest.tar) >&5 2>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }
6019 if test -s conftest.tar; then
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6021 printf "%s\n" "yes" >&6; }
6022 am__tar="$am__tar --sort=name"
6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 printf "%s\n" "no" >&6; }
6030 ac_config_headers="$ac_config_headers config.h"
6034 # Make sure we can run config.sub.
6035 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6036 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6039 printf %s "checking build system type... " >&6; }
6040 if test ${ac_cv_build+y}
6042 printf %s "(cached) " >&6
6044 ac_build_alias=$build_alias
6045 test "x$ac_build_alias" = x &&
6046 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6047 test "x$ac_build_alias" = x &&
6048 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6049 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6050 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6054 printf "%s\n" "$ac_cv_build" >&6; }
6055 case $ac_cv_build in
6057 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6060 ac_save_IFS=$IFS; IFS='-'
6066 # Remember, the first character of IFS is used to create $*,
6067 # except with old shells:
6070 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6074 printf %s "checking host system type... " >&6; }
6075 if test ${ac_cv_host+y}
6077 printf %s "(cached) " >&6
6079 if test "x$host_alias" = x; then
6080 ac_cv_host=$ac_cv_build
6082 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6083 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6088 printf "%s\n" "$ac_cv_host" >&6; }
6091 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6094 ac_save_IFS=$IFS; IFS='-'
6100 # Remember, the first character of IFS is used to create $*,
6101 # except with old shells:
6104 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6108 # Check $PATH for the following programs and append suitable options.
6114 ac_cpp='$CPP $CPPFLAGS'
6115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6119 printf %s "checking how to run the C preprocessor... " >&6; }
6120 # On Suns, sometimes $CPP names a directory.
6121 if test -n "$CPP" && test -d "$CPP"; then
6124 if test -z "$CPP"; then
6125 if test ${ac_cv_prog_CPP+y}
6127 printf %s "(cached) " >&6
6129 # Double quotes because $CC needs to be expanded
6130 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6133 for ac_c_preproc_warn_flag in '' yes
6135 # Use a header file that comes with gcc, so configuring glibc
6136 # with a fresh cross-compiler works.
6137 # On the NeXT, cc -E runs the code through the compiler's parser,
6138 # not just through cpp. "Syntax error" is here to catch this case.
6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140 /* end confdefs.h. */
6144 if ac_fn_c_try_cpp "$LINENO"
6148 # Broken: fails on valid input.
6151 rm -f conftest.err conftest.i conftest.$ac_ext
6153 # OK, works on sane cases. Now check whether nonexistent headers
6154 # can be detected and how.
6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6157 #include <ac_nonexistent.h>
6159 if ac_fn_c_try_cpp "$LINENO"
6161 # Broken: success on invalid input.
6164 # Passes both tests.
6168 rm -f conftest.err conftest.i conftest.$ac_ext
6171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6172 rm -f conftest.i conftest.err conftest.$ac_ext
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6187 printf "%s\n" "$CPP" >&6; }
6189 for ac_c_preproc_warn_flag in '' yes
6191 # Use a header file that comes with gcc, so configuring glibc
6192 # with a fresh cross-compiler works.
6193 # On the NeXT, cc -E runs the code through the compiler's parser,
6194 # not just through cpp. "Syntax error" is here to catch this case.
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6200 if ac_fn_c_try_cpp "$LINENO"
6204 # Broken: fails on valid input.
6207 rm -f conftest.err conftest.i conftest.$ac_ext
6209 # OK, works on sane cases. Now check whether nonexistent headers
6210 # can be detected and how.
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 #include <ac_nonexistent.h>
6215 if ac_fn_c_try_cpp "$LINENO"
6217 # Broken: success on invalid input.
6220 # Passes both tests.
6224 rm -f conftest.err conftest.i conftest.$ac_ext
6227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6228 rm -f conftest.i conftest.err conftest.$ac_ext
6233 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6234 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6235 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6236 See \`config.log' for more details" "$LINENO" 5; }
6240 ac_cpp='$CPP $CPPFLAGS'
6241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6247 printf %s "checking for grep that handles long lines and -e... " >&6; }
6248 if test ${ac_cv_path_GREP+y}
6250 printf %s "(cached) " >&6
6252 if test -z "$GREP"; then
6253 ac_path_GREP_found=false
6254 # Loop through the user's path and test for each of PROGNAME-LIST
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6259 case $as_dir in #(((
6262 *) as_dir=$as_dir/ ;;
6264 for ac_prog in grep ggrep
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6268 as_fn_executable_p "$ac_path_GREP" || continue
6269 # Check for GNU ac_path_GREP and select it if it is found.
6270 # Check for GNU $ac_path_GREP
6271 case `"$ac_path_GREP" --version 2>&1` in
6273 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6276 printf %s 0123456789 >"conftest.in"
6279 cat "conftest.in" "conftest.in" >"conftest.tmp"
6280 mv "conftest.tmp" "conftest.in"
6281 cp "conftest.in" "conftest.nl"
6282 printf "%s\n" 'GREP' >> "conftest.nl"
6283 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6285 as_fn_arith $ac_count + 1 && ac_count=$as_val
6286 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6287 # Best one so far, save it but keep looking for a better one
6288 ac_cv_path_GREP="$ac_path_GREP"
6289 ac_path_GREP_max=$ac_count
6291 # 10*(2^10) chars as input seems more than enough
6292 test $ac_count -gt 10 && break
6294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6297 $ac_path_GREP_found && break 3
6302 if test -z "$ac_cv_path_GREP"; then
6303 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6306 ac_cv_path_GREP=$GREP
6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6311 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6312 GREP="$ac_cv_path_GREP"
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6316 printf %s "checking for egrep... " >&6; }
6317 if test ${ac_cv_path_EGREP+y}
6319 printf %s "(cached) " >&6
6321 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6322 then ac_cv_path_EGREP="$GREP -E"
6324 if test -z "$EGREP"; then
6325 ac_path_EGREP_found=false
6326 # Loop through the user's path and test for each of PROGNAME-LIST
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6331 case $as_dir in #(((
6334 *) as_dir=$as_dir/ ;;
6336 for ac_prog in egrep
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6340 as_fn_executable_p "$ac_path_EGREP" || continue
6341 # Check for GNU ac_path_EGREP and select it if it is found.
6342 # Check for GNU $ac_path_EGREP
6343 case `"$ac_path_EGREP" --version 2>&1` in
6345 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6348 printf %s 0123456789 >"conftest.in"
6351 cat "conftest.in" "conftest.in" >"conftest.tmp"
6352 mv "conftest.tmp" "conftest.in"
6353 cp "conftest.in" "conftest.nl"
6354 printf "%s\n" 'EGREP' >> "conftest.nl"
6355 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6357 as_fn_arith $ac_count + 1 && ac_count=$as_val
6358 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6359 # Best one so far, save it but keep looking for a better one
6360 ac_cv_path_EGREP="$ac_path_EGREP"
6361 ac_path_EGREP_max=$ac_count
6363 # 10*(2^10) chars as input seems more than enough
6364 test $ac_count -gt 10 && break
6366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6369 $ac_path_EGREP_found && break 3
6374 if test -z "$ac_cv_path_EGREP"; then
6375 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6378 ac_cv_path_EGREP=$EGREP
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6384 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6385 EGREP="$ac_cv_path_EGREP"
6391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6392 printf %s "checking for Minix Amsterdam compiler... " >&6; }
6393 if test ${gl_cv_c_amsterdam_compiler+y}
6395 printf %s "(cached) " >&6
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6407 $EGREP "Amsterdam" >/dev/null 2>&1
6409 gl_cv_c_amsterdam_compiler=yes
6411 gl_cv_c_amsterdam_compiler=no
6417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6418 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
6420 if test $gl_cv_c_amsterdam_compiler = yes; then
6421 if test -z "$AR"; then
6424 if test -z "$ARFLAGS"; then
6429 if test -n "$ac_tool_prefix"; then
6430 for ac_prog in ar lib "link -lib"
6432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 printf %s "checking for $ac_word... " >&6; }
6436 if test ${ac_cv_prog_AR+y}
6438 printf %s "(cached) " >&6
6440 if test -n "$AR"; then
6441 ac_cv_prog_AR="$AR" # Let the user override the test.
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 case $as_dir in #(((
6450 *) as_dir=$as_dir/ ;;
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6454 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6465 if test -n "$AR"; then
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6467 printf "%s\n" "$AR" >&6; }
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 printf "%s\n" "no" >&6; }
6474 test -n "$AR" && break
6477 if test -z "$AR"; then
6479 for ac_prog in ar lib "link -lib"
6481 # Extract the first word of "$ac_prog", so it can be a program name with args.
6482 set dummy $ac_prog; ac_word=$2
6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 printf %s "checking for $ac_word... " >&6; }
6485 if test ${ac_cv_prog_ac_ct_AR+y}
6487 printf %s "(cached) " >&6
6489 if test -n "$ac_ct_AR"; then
6490 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 case $as_dir in #(((
6499 *) as_dir=$as_dir/ ;;
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6503 ac_cv_prog_ac_ct_AR="$ac_prog"
6504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6513 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6514 if test -n "$ac_ct_AR"; then
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6516 printf "%s\n" "$ac_ct_AR" >&6; }
6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 printf "%s\n" "no" >&6; }
6523 test -n "$ac_ct_AR" && break
6526 if test "x$ac_ct_AR" = x; then
6529 case $cross_compiling:$ac_tool_warned in
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6533 ac_tool_warned=yes ;;
6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6542 printf %s "checking the archiver ($AR) interface... " >&6; }
6543 if test ${am_cv_ar_interface+y}
6545 printf %s "(cached) " >&6
6548 ac_cpp='$CPP $CPPFLAGS'
6549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6553 am_cv_ar_interface=ar
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 int some_variable = 0;
6558 if ac_fn_c_try_compile "$LINENO"
6560 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6562 (eval $am_ar_try) 2>&5
6564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6565 test $ac_status = 0; }
6566 if test "$ac_status" -eq 0; then
6567 am_cv_ar_interface=ar
6569 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6571 (eval $am_ar_try) 2>&5
6573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6574 test $ac_status = 0; }
6575 if test "$ac_status" -eq 0; then
6576 am_cv_ar_interface=lib
6578 am_cv_ar_interface=unknown
6581 rm -f conftest.lib libconftest.a
6584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6586 ac_cpp='$CPP $CPPFLAGS'
6587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6593 printf "%s\n" "$am_cv_ar_interface" >&6; }
6595 case $am_cv_ar_interface in
6599 # Microsoft lib, so override with the ar-lib wrapper script.
6600 # FIXME: It is wrong to rewrite AR.
6601 # But if we don't then we get into trouble of one sort or another.
6602 # A longer-term fix would be to have automake use am__AR in this case,
6603 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6605 AR="$am_aux_dir/ar-lib $AR"
6608 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6614 if test -n "$ac_tool_prefix"; then
6615 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6616 set dummy ${ac_tool_prefix}ar; ac_word=$2
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 printf %s "checking for $ac_word... " >&6; }
6619 if test ${ac_cv_prog_AR+y}
6621 printf %s "(cached) " >&6
6623 if test -n "$AR"; then
6624 ac_cv_prog_AR="$AR" # Let the user override the test.
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 case $as_dir in #(((
6633 *) as_dir=$as_dir/ ;;
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6637 ac_cv_prog_AR="${ac_tool_prefix}ar"
6638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6648 if test -n "$AR"; then
6649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6650 printf "%s\n" "$AR" >&6; }
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 printf "%s\n" "no" >&6; }
6658 if test -z "$ac_cv_prog_AR"; then
6660 # Extract the first word of "ar", so it can be a program name with args.
6661 set dummy ar; ac_word=$2
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 printf %s "checking for $ac_word... " >&6; }
6664 if test ${ac_cv_prog_ac_ct_AR+y}
6666 printf %s "(cached) " >&6
6668 if test -n "$ac_ct_AR"; then
6669 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 case $as_dir in #(((
6678 *) as_dir=$as_dir/ ;;
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6682 ac_cv_prog_ac_ct_AR="ar"
6683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6692 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6693 if test -n "$ac_ct_AR"; then
6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6695 printf "%s\n" "$ac_ct_AR" >&6; }
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 printf "%s\n" "no" >&6; }
6701 if test "x$ac_ct_AR" = x; then
6704 case $cross_compiling:$ac_tool_warned in
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned=yes ;;
6716 if test -z "$ARFLAGS"; then
6722 if test -z "$RANLIB"; then
6723 if test $gl_cv_c_amsterdam_compiler = yes; then
6726 if test -n "$ac_tool_prefix"; then
6727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 printf %s "checking for $ac_word... " >&6; }
6731 if test ${ac_cv_prog_RANLIB+y}
6733 printf %s "(cached) " >&6
6735 if test -n "$RANLIB"; then
6736 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 case $as_dir in #(((
6745 *) as_dir=$as_dir/ ;;
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6759 RANLIB=$ac_cv_prog_RANLIB
6760 if test -n "$RANLIB"; then
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6762 printf "%s\n" "$RANLIB" >&6; }
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 printf "%s\n" "no" >&6; }
6770 if test -z "$ac_cv_prog_RANLIB"; then
6771 ac_ct_RANLIB=$RANLIB
6772 # Extract the first word of "ranlib", so it can be a program name with args.
6773 set dummy ranlib; ac_word=$2
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 printf %s "checking for $ac_word... " >&6; }
6776 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6778 printf %s "(cached) " >&6
6780 if test -n "$ac_ct_RANLIB"; then
6781 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 case $as_dir in #(((
6790 *) as_dir=$as_dir/ ;;
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6794 ac_cv_prog_ac_ct_RANLIB="ranlib"
6795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6804 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6805 if test -n "$ac_ct_RANLIB"; then
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6807 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 printf "%s\n" "no" >&6; }
6813 if test "x$ac_ct_RANLIB" = x; then
6816 case $cross_compiling:$ac_tool_warned in
6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6819 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6820 ac_tool_warned=yes ;;
6822 RANLIB=$ac_ct_RANLIB
6825 RANLIB="$ac_cv_prog_RANLIB"
6833 # Check whether --enable-largefile was given.
6834 if test ${enable_largefile+y}
6836 enableval=$enable_largefile;
6839 if test "$enable_largefile" != no; then
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6842 printf %s "checking for special C compiler options needed for large files... " >&6; }
6843 if test ${ac_cv_sys_largefile_CC+y}
6845 printf %s "(cached) " >&6
6847 ac_cv_sys_largefile_CC=no
6848 if test "$GCC" != yes; then
6851 # IRIX 6.2 and later do not support large files by default,
6852 # so use the C compiler's -n32 option if that helps.
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855 #include <sys/types.h>
6856 /* Check that off_t can represent 2**63 - 1 correctly.
6857 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6858 since some C++ compilers masquerading as C compilers
6859 incorrectly reject 9223372036854775807. */
6860 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6861 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6862 && LARGE_OFF_T % 2147483647 == 1)
6872 if ac_fn_c_try_compile "$LINENO"
6876 rm -f core conftest.err conftest.$ac_objext conftest.beam
6878 if ac_fn_c_try_compile "$LINENO"
6880 ac_cv_sys_largefile_CC=' -n32'; break
6882 rm -f core conftest.err conftest.$ac_objext conftest.beam
6886 rm -f conftest.$ac_ext
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6890 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
6891 if test "$ac_cv_sys_largefile_CC" != no; then
6892 CC=$CC$ac_cv_sys_largefile_CC
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6896 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6897 if test ${ac_cv_sys_file_offset_bits+y}
6899 printf %s "(cached) " >&6
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 #include <sys/types.h>
6905 /* Check that off_t can represent 2**63 - 1 correctly.
6906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6907 since some C++ compilers masquerading as C compilers
6908 incorrectly reject 9223372036854775807. */
6909 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6911 && LARGE_OFF_T % 2147483647 == 1)
6921 if ac_fn_c_try_compile "$LINENO"
6923 ac_cv_sys_file_offset_bits=no; break
6925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928 #define _FILE_OFFSET_BITS 64
6929 #include <sys/types.h>
6930 /* Check that off_t can represent 2**63 - 1 correctly.
6931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6932 since some C++ compilers masquerading as C compilers
6933 incorrectly reject 9223372036854775807. */
6934 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6936 && LARGE_OFF_T % 2147483647 == 1)
6946 if ac_fn_c_try_compile "$LINENO"
6948 ac_cv_sys_file_offset_bits=64; break
6950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6951 ac_cv_sys_file_offset_bits=unknown
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6956 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
6957 case $ac_cv_sys_file_offset_bits in #(
6960 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
6964 if test $ac_cv_sys_file_offset_bits = unknown; then
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6966 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
6967 if test ${ac_cv_sys_large_files+y}
6969 printf %s "(cached) " >&6
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 #include <sys/types.h>
6975 /* Check that off_t can represent 2**63 - 1 correctly.
6976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6977 since some C++ compilers masquerading as C compilers
6978 incorrectly reject 9223372036854775807. */
6979 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6981 && LARGE_OFF_T % 2147483647 == 1)
6991 if ac_fn_c_try_compile "$LINENO"
6993 ac_cv_sys_large_files=no; break
6995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
6998 #define _LARGE_FILES 1
6999 #include <sys/types.h>
7000 /* Check that off_t can represent 2**63 - 1 correctly.
7001 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7002 since some C++ compilers masquerading as C compilers
7003 incorrectly reject 9223372036854775807. */
7004 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7005 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7006 && LARGE_OFF_T % 2147483647 == 1)
7016 if ac_fn_c_try_compile "$LINENO"
7018 ac_cv_sys_large_files=1; break
7020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7021 ac_cv_sys_large_files=unknown
7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7026 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
7027 case $ac_cv_sys_large_files in #(
7030 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
7043 # Check whether --enable-threads was given.
7044 if test ${enable_threads+y}
7046 enableval=$enable_threads; gl_use_threads=$enableval
7048 if test -n "$gl_use_threads_default"; then
7049 gl_use_threads="$gl_use_threads_default"
7052 osf*) gl_use_threads=no ;;
7055 1.[0-5].*) gl_use_threads=no ;;
7056 *) gl_use_threads=yes ;;
7060 case "$gl_use_winpthreads_default" in
7061 yes) gl_use_threads=posix ;;
7062 no) gl_use_threads=windows ;;
7063 *) gl_use_threads=yes ;;
7066 *) gl_use_threads=yes ;;
7072 if test "$gl_use_threads" = yes \
7073 || test "$gl_use_threads" = isoc \
7074 || test "$gl_use_threads" = posix \
7075 || test "$gl_use_threads" = isoc+posix; then
7076 # For using <threads.h> or <pthread.h>:
7079 if test -z "$gl_anythreadlib_early_done"; then
7082 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7083 # groks <pthread.h>. cc also understands the flag -pthread, but
7084 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7085 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7086 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7087 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7088 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7091 # Some systems optimize for single-threaded programs by default, and
7092 # need special flags to disable these optimizations. For example, the
7093 # definition of 'errno' in <errno.h>.
7095 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7096 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7098 gl_anythreadlib_early_done=done
7105 # Pre-early section.
7110 # Code from module absolute-header:
7111 # Code from module alloca-opt:
7112 # Code from module attribute:
7113 # Code from module basename-lgpl:
7114 # Code from module c99:
7115 # Code from module clock-time:
7116 # Code from module cloexec:
7117 # Code from module close:
7118 # Code from module dirname:
7119 # Code from module dirname-lgpl:
7120 # Code from module double-slash-root:
7121 # Code from module dup2:
7122 # Code from module environ:
7123 # Code from module errno:
7124 # Code from module error:
7125 # Code from module exitfail:
7126 # Code from module extensions:
7127 # Code from module extern-inline:
7128 # Code from module fcntl:
7129 # Code from module fcntl-h:
7130 # Code from module fd-hook:
7131 # Code from module filename:
7132 # Code from module float:
7133 # Code from module fstat:
7134 # Code from module full-write:
7135 # Code from module getdtablesize:
7136 # Code from module getprogname:
7137 # Code from module getrandom:
7138 # Code from module gettext-h:
7139 # Code from module gitlog-to-changelog:
7140 # Code from module gnupload:
7141 # Code from module include_next:
7142 # Code from module intprops:
7143 # Code from module inttypes-incomplete:
7144 # Code from module largefile:
7146 # Code from module lib-ignore:
7147 # Code from module libc-config:
7148 # Code from module limits-h:
7149 # Code from module lock:
7150 # Code from module lstat:
7151 # Code from module malloc-posix:
7152 # Code from module malloca:
7153 # Code from module manywarnings:
7154 # Code from module memchr:
7155 # Code from module minmax:
7156 # Code from module mkdir:
7157 # Code from module mkdtemp:
7158 # Code from module msvc-inval:
7159 # Code from module msvc-nothrow:
7160 # Code from module multiarch:
7161 # Code from module open:
7162 # Code from module pathmax:
7163 # Code from module raise:
7164 # Code from module read:
7165 # Code from module safe-read:
7166 # Code from module safe-write:
7167 # Code from module setenv:
7168 # Code from module sigaction:
7169 # Code from module signal:
7170 # Code from module signal-h:
7171 # Code from module sigprocmask:
7172 # Code from module size_max:
7173 # Code from module snippet/_Noreturn:
7174 # Code from module snippet/arg-nonnull:
7175 # Code from module snippet/c++defs:
7176 # Code from module snippet/warn-on-use:
7177 # Code from module snprintf:
7178 # Code from module ssize_t:
7179 # Code from module stat:
7180 # Code from module stat-time:
7181 # Code from module std-gnu11:
7182 # Code from module stdalign:
7183 # Code from module stdarg:
7187 # Code from module stdbool:
7188 # Code from module stddef:
7189 # Code from module stdint:
7190 # Code from module stdio:
7191 # Code from module stdlib:
7192 # Code from module strerror:
7193 # Code from module strerror-override:
7194 # Code from module string:
7195 # Code from module strndup:
7196 # Code from module strnlen:
7197 # Code from module strsignal:
7198 # Code from module sys_random:
7199 # Code from module sys_select:
7200 # Code from module sys_stat:
7201 # Code from module sys_time:
7202 # Code from module sys_types:
7203 # Code from module sys_wait:
7204 # Code from module tempname:
7205 # Code from module threadlib:
7209 # Code from module time:
7210 # Code from module tls:
7211 # Code from module unistd:
7212 # Code from module unsetenv:
7213 # Code from module vasnprintf:
7214 # Code from module vasprintf:
7215 # Code from module verify:
7216 # Code from module waitpid:
7217 # Code from module warnings:
7218 # Code from module wchar:
7219 # Code from module windows-mutex:
7220 # Code from module windows-once:
7221 # Code from module windows-recmutex:
7222 # Code from module windows-rwlock:
7223 # Code from module windows-tls:
7224 # Code from module write:
7225 # Code from module xalloc:
7226 # Code from module xalloc-die:
7227 # Code from module xalloc-oversized:
7228 # Code from module xsize:
7229 # Code from module xstrndup:
7230 # Code from module xvasprintf:
7233 ac_cpp='$CPP $CPPFLAGS'
7234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7238 printf %s "checking how to run the C preprocessor... " >&6; }
7239 # On Suns, sometimes $CPP names a directory.
7240 if test -n "$CPP" && test -d "$CPP"; then
7243 if test -z "$CPP"; then
7244 if test ${ac_cv_prog_CPP+y}
7246 printf %s "(cached) " >&6
7248 # Double quotes because $CC needs to be expanded
7249 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
7252 for ac_c_preproc_warn_flag in '' yes
7254 # Use a header file that comes with gcc, so configuring glibc
7255 # with a fresh cross-compiler works.
7256 # On the NeXT, cc -E runs the code through the compiler's parser,
7257 # not just through cpp. "Syntax error" is here to catch this case.
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7263 if ac_fn_c_try_cpp "$LINENO"
7267 # Broken: fails on valid input.
7270 rm -f conftest.err conftest.i conftest.$ac_ext
7272 # OK, works on sane cases. Now check whether nonexistent headers
7273 # can be detected and how.
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 #include <ac_nonexistent.h>
7278 if ac_fn_c_try_cpp "$LINENO"
7280 # Broken: success on invalid input.
7283 # Passes both tests.
7287 rm -f conftest.err conftest.i conftest.$ac_ext
7290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7291 rm -f conftest.i conftest.err conftest.$ac_ext
7305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7306 printf "%s\n" "$CPP" >&6; }
7308 for ac_c_preproc_warn_flag in '' yes
7310 # Use a header file that comes with gcc, so configuring glibc
7311 # with a fresh cross-compiler works.
7312 # On the NeXT, cc -E runs the code through the compiler's parser,
7313 # not just through cpp. "Syntax error" is here to catch this case.
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7319 if ac_fn_c_try_cpp "$LINENO"
7323 # Broken: fails on valid input.
7326 rm -f conftest.err conftest.i conftest.$ac_ext
7328 # OK, works on sane cases. Now check whether nonexistent headers
7329 # can be detected and how.
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7332 #include <ac_nonexistent.h>
7334 if ac_fn_c_try_cpp "$LINENO"
7336 # Broken: success on invalid input.
7339 # Passes both tests.
7343 rm -f conftest.err conftest.i conftest.$ac_ext
7346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7347 rm -f conftest.i conftest.err conftest.$ac_ext
7352 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7353 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7354 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7355 See \`config.log' for more details" "$LINENO" 5; }
7359 ac_cpp='$CPP $CPPFLAGS'
7360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7364 CFLAGS="$CFLAGS -Wall"
7365 # Enable all reasonable GCC warnings.
7368 ac_cpp='$CPP $CPPFLAGS'
7369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7375 if test -n "$GCC"; then
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7378 printf %s "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7379 if test ${gl_cv_cc_nomfi_supported+y}
7381 printf %s "(cached) " >&6
7383 gl_save_CFLAGS="$CFLAGS"
7384 CFLAGS="$CFLAGS -Wextra -Werror -Wno-missing-field-initializers"
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7396 if ac_fn_c_try_compile "$LINENO"
7398 gl_cv_cc_nomfi_supported=yes
7400 gl_cv_cc_nomfi_supported=no
7402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7403 CFLAGS="$gl_save_CFLAGS"
7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7407 printf "%s\n" "$gl_cv_cc_nomfi_supported" >&6; }
7409 if test "$gl_cv_cc_nomfi_supported" = yes; then
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7411 printf %s "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7412 if test ${gl_cv_cc_nomfi_needed+y}
7414 printf %s "(cached) " >&6
7416 gl_save_CFLAGS="$CFLAGS"
7417 CFLAGS="$CFLAGS -Wextra -Werror"
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7422 typedef struct { int a; int b; } s_t;
7435 if ac_fn_c_try_compile "$LINENO"
7437 gl_cv_cc_nomfi_needed=no
7439 gl_cv_cc_nomfi_needed=yes
7441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7442 CFLAGS="$gl_save_CFLAGS"
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7446 printf "%s\n" "$gl_cv_cc_nomfi_needed" >&6; }
7449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7450 printf %s "checking whether -Wuninitialized is supported... " >&6; }
7451 if test ${gl_cv_cc_uninitialized_supported+y}
7453 printf %s "(cached) " >&6
7455 gl_save_CFLAGS="$CFLAGS"
7456 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7468 if ac_fn_c_try_compile "$LINENO"
7470 gl_cv_cc_uninitialized_supported=yes
7472 gl_cv_cc_uninitialized_supported=no
7474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7475 CFLAGS="$gl_save_CFLAGS"
7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7479 printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; }
7483 # List all gcc warning categories.
7484 # To compare this list to your installed GCC's, run this Bash command:
7487 # <((sed -n 's/^ *\(-[^ 0-9][^ ]*\).*/\1/p' manywarnings.m4; \
7488 # awk '/^[^#]/ {print warnings}' ../build-aux/gcc-warning.spec) | sort) \
7489 # <(LC_ALL=C gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort)
7492 for gl_manywarn_item in -fanalyzer -fno-common \
7494 -Warith-conversion \
7495 -Wbad-function-cast \
7496 -Wcast-align=strict \
7498 -Wdisabled-optimization \
7499 -Wdouble-promotion \
7500 -Wduplicated-branches \
7503 -Wformat-signedness \
7508 -Wmissing-declarations \
7509 -Wmissing-include-dirs \
7510 -Wmissing-prototypes \
7512 -Wnull-dereference \
7513 -Wold-style-definition \
7515 -Woverlength-strings \
7521 -Wstrict-prototypes \
7522 -Wsuggest-attribute=cold \
7523 -Wsuggest-attribute=const \
7524 -Wsuggest-attribute=format \
7525 -Wsuggest-attribute=malloc \
7526 -Wsuggest-attribute=noreturn \
7527 -Wsuggest-attribute=pure \
7528 -Wsuggest-final-methods \
7529 -Wsuggest-final-types \
7535 -Wunsafe-loop-optimizations \
7538 -Wvector-operation-performance \
7543 as_fn_append warnings " $gl_manywarn_item"
7546 # gcc --help=warnings outputs an unusual form for these options; list
7547 # them here so that the above 'comm' command doesn't report a false match.
7548 as_fn_append warnings ' -Warray-bounds=2'
7549 as_fn_append warnings ' -Wattribute-alias=2'
7550 as_fn_append warnings ' -Wformat-overflow=2'
7551 as_fn_append warnings ' -Wformat=2'
7552 as_fn_append warnings ' -Wformat-truncation=2'
7553 as_fn_append warnings ' -Wimplicit-fallthrough=5'
7554 as_fn_append warnings ' -Wshift-overflow=2'
7555 as_fn_append warnings ' -Wunused-const-variable=2'
7556 as_fn_append warnings ' -Wvla-larger-than=4031'
7558 # These are needed for older GCC versions.
7559 if test -n "$GCC"; then
7560 case `($CC --version) 2>/dev/null` in
7561 'gcc (GCC) '[0-3].* | \
7562 'gcc (GCC) '4.[0-7].*)
7563 as_fn_append warnings ' -fdiagnostics-show-option'
7564 as_fn_append warnings ' -funit-at-a-time'
7569 # Disable specific options as needed.
7570 if test "$gl_cv_cc_nomfi_needed" = yes; then
7571 as_fn_append warnings ' -Wno-missing-field-initializers'
7574 if test "$gl_cv_cc_uninitialized_supported" = no; then
7575 as_fn_append warnings ' -Wno-uninitialized'
7578 # Some warnings have too many false alarms in GCC 10.1.
7579 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93695
7580 as_fn_append warnings ' -Wno-analyzer-double-free'
7581 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94458
7582 as_fn_append warnings ' -Wno-analyzer-malloc-leak'
7583 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94851
7584 as_fn_append warnings ' -Wno-analyzer-null-dereference'
7585 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95758
7586 as_fn_append warnings ' -Wno-analyzer-use-after-free'
7589 ac_cpp='$CPP $CPPFLAGS'
7590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7596 nw="$nw -Wsystem-headers"
7597 nw="$nw -Wmissing-field-initializers"
7601 set x $warnings; shift
7605 *" $gl_warn_item "*)
7608 as_fn_append gl_warn_set " $gl_warn_item"
7612 warnings=$gl_warn_set
7614 for w in $warnings; do
7617 ac_cpp='$CPP $CPPFLAGS'
7618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7624 printf %s "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7625 if test ${gl_cv_warn_c__Werror__Wunknown_warning_option+y}
7627 printf %s "(cached) " >&6
7630 gl_save_compiler_FLAGS="$CFLAGS"
7631 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7643 if ac_fn_c_try_link "$LINENO"
7645 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
7647 gl_cv_warn_c__Werror__Wunknown_warning_option=no
7649 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7650 conftest$ac_exeext conftest.$ac_ext
7651 CFLAGS="$gl_save_compiler_FLAGS"
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7655 printf "%s\n" "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7656 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes
7658 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
7660 gl_unknown_warnings_are_errors=
7664 ac_cpp='$CPP $CPPFLAGS'
7665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7672 as_gl_Warn=`printf "%s\n" "gl_cv_warn_c_$w" | $as_tr_sh`
7674 case $gl_positive in
7675 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7678 printf %s "checking whether C compiler handles $w... " >&6; }
7679 if eval test \${$as_gl_Warn+y}
7681 printf %s "(cached) " >&6
7684 gl_save_compiler_FLAGS="$CFLAGS"
7685 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7697 if ac_fn_c_try_link "$LINENO"
7699 eval "$as_gl_Warn=yes"
7701 eval "$as_gl_Warn=no"
7703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7704 conftest$ac_exeext conftest.$ac_ext
7705 CFLAGS="$gl_save_compiler_FLAGS"
7708 eval ac_res=\$$as_gl_Warn
7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7710 printf "%s\n" "$ac_res" >&6; }
7711 if eval test \"x\$"$as_gl_Warn"\" = x"yes"
7713 as_fn_append WARN_CFLAGS " $w"
7720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7721 printf %s "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7722 if test ${gl_cv_warn_c__Wno_missing_field_initializers+y}
7724 printf %s "(cached) " >&6
7727 gl_save_compiler_FLAGS="$CFLAGS"
7728 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7740 if ac_fn_c_try_link "$LINENO"
7742 gl_cv_warn_c__Wno_missing_field_initializers=yes
7744 gl_cv_warn_c__Wno_missing_field_initializers=no
7746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7747 conftest$ac_exeext conftest.$ac_ext
7748 CFLAGS="$gl_save_compiler_FLAGS"
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7752 printf "%s\n" "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7753 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes
7755 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7760 printf %s "checking whether ln -s works... " >&6; }
7762 if test "$LN_S" = "ln -s"; then
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7764 printf "%s\n" "yes" >&6; }
7766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7767 printf "%s\n" "no, using $LN_S" >&6; }
7771 if test -n "$ac_tool_prefix"; then
7772 for ac_prog in ar lib "link -lib"
7774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 printf %s "checking for $ac_word... " >&6; }
7778 if test ${ac_cv_prog_AR+y}
7780 printf %s "(cached) " >&6
7782 if test -n "$AR"; then
7783 ac_cv_prog_AR="$AR" # Let the user override the test.
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 case $as_dir in #(((
7792 *) as_dir=$as_dir/ ;;
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7796 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7807 if test -n "$AR"; then
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7809 printf "%s\n" "$AR" >&6; }
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 printf "%s\n" "no" >&6; }
7816 test -n "$AR" && break
7819 if test -z "$AR"; then
7821 for ac_prog in ar lib "link -lib"
7823 # Extract the first word of "$ac_prog", so it can be a program name with args.
7824 set dummy $ac_prog; ac_word=$2
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 printf %s "checking for $ac_word... " >&6; }
7827 if test ${ac_cv_prog_ac_ct_AR+y}
7829 printf %s "(cached) " >&6
7831 if test -n "$ac_ct_AR"; then
7832 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 case $as_dir in #(((
7841 *) as_dir=$as_dir/ ;;
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7845 ac_cv_prog_ac_ct_AR="$ac_prog"
7846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7855 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7856 if test -n "$ac_ct_AR"; then
7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7858 printf "%s\n" "$ac_ct_AR" >&6; }
7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 printf "%s\n" "no" >&6; }
7865 test -n "$ac_ct_AR" && break
7868 if test "x$ac_ct_AR" = x; then
7871 case $cross_compiling:$ac_tool_warned in
7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7874 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7875 ac_tool_warned=yes ;;
7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7884 printf %s "checking the archiver ($AR) interface... " >&6; }
7885 if test ${am_cv_ar_interface+y}
7887 printf %s "(cached) " >&6
7890 ac_cpp='$CPP $CPPFLAGS'
7891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895 am_cv_ar_interface=ar
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 int some_variable = 0;
7900 if ac_fn_c_try_compile "$LINENO"
7902 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7904 (eval $am_ar_try) 2>&5
7906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7907 test $ac_status = 0; }
7908 if test "$ac_status" -eq 0; then
7909 am_cv_ar_interface=ar
7911 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7913 (eval $am_ar_try) 2>&5
7915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7916 test $ac_status = 0; }
7917 if test "$ac_status" -eq 0; then
7918 am_cv_ar_interface=lib
7920 am_cv_ar_interface=unknown
7923 rm -f conftest.lib libconftest.a
7926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7928 ac_cpp='$CPP $CPPFLAGS'
7929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7935 printf "%s\n" "$am_cv_ar_interface" >&6; }
7937 case $am_cv_ar_interface in
7941 # Microsoft lib, so override with the ar-lib wrapper script.
7942 # FIXME: It is wrong to rewrite AR.
7943 # But if we don't then we get into trouble of one sort or another.
7944 # A longer-term fix would be to have automake use am__AR in this case,
7945 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7947 AR="$am_aux_dir/ar-lib $AR"
7950 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7957 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7962 macro_version='2.4.6'
7963 macro_revision='2.4.6'
7978 ltmain=$ac_aux_dir/ltmain.sh
7980 # Backslashify metacharacters that are still active within
7981 # double-quoted strings.
7982 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7984 # Same as above, but do not quote variable references.
7985 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7987 # Sed substitution to delay expansion of an escaped shell variable in a
7988 # double_quote_subst'ed string.
7989 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7991 # Sed substitution to delay expansion of an escaped single quote.
7992 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7994 # Sed substitution to avoid accidental globbing in evaled expressions
7995 no_glob_subst='s/\*/\\\*/g'
7997 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7998 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7999 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8002 printf %s "checking how to print strings... " >&6; }
8003 # Test print first, because it will be a builtin if present.
8004 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8005 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8007 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8010 # Use this function as a fallback that always works.
8011 func_fallback_echo ()
8013 eval 'cat <<_LTECHO_EOF
8017 ECHO='func_fallback_echo'
8020 # func_echo_all arg...
8021 # Invoke $ECHO with all args, space-separated.
8028 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8029 printf "%s\n" "printf" >&6; } ;;
8030 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8031 printf "%s\n" "print -r" >&6; } ;;
8032 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8033 printf "%s\n" "cat" >&6; } ;;
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8050 printf %s "checking for a sed that does not truncate output... " >&6; }
8051 if test ${ac_cv_path_SED+y}
8053 printf %s "(cached) " >&6
8055 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8056 for ac_i in 1 2 3 4 5 6 7; do
8057 ac_script="$ac_script$as_nl$ac_script"
8059 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8060 { ac_script=; unset ac_script;}
8061 if test -z "$SED"; then
8062 ac_path_SED_found=false
8063 # Loop through the user's path and test for each of PROGNAME-LIST
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 case $as_dir in #(((
8071 *) as_dir=$as_dir/ ;;
8073 for ac_prog in sed gsed
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8077 as_fn_executable_p "$ac_path_SED" || continue
8078 # Check for GNU ac_path_SED and select it if it is found.
8079 # Check for GNU $ac_path_SED
8080 case `"$ac_path_SED" --version 2>&1` in
8082 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8085 printf %s 0123456789 >"conftest.in"
8088 cat "conftest.in" "conftest.in" >"conftest.tmp"
8089 mv "conftest.tmp" "conftest.in"
8090 cp "conftest.in" "conftest.nl"
8091 printf "%s\n" '' >> "conftest.nl"
8092 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8094 as_fn_arith $ac_count + 1 && ac_count=$as_val
8095 if test $ac_count -gt ${ac_path_SED_max-0}; then
8096 # Best one so far, save it but keep looking for a better one
8097 ac_cv_path_SED="$ac_path_SED"
8098 ac_path_SED_max=$ac_count
8100 # 10*(2^10) chars as input seems more than enough
8101 test $ac_count -gt 10 && break
8103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8106 $ac_path_SED_found && break 3
8111 if test -z "$ac_cv_path_SED"; then
8112 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8120 printf "%s\n" "$ac_cv_path_SED" >&6; }
8121 SED="$ac_cv_path_SED"
8124 test -z "$SED" && SED=sed
8125 Xsed="$SED -e 1s/^X//"
8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8138 printf %s "checking for fgrep... " >&6; }
8139 if test ${ac_cv_path_FGREP+y}
8141 printf %s "(cached) " >&6
8143 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8144 then ac_cv_path_FGREP="$GREP -F"
8146 if test -z "$FGREP"; then
8147 ac_path_FGREP_found=false
8148 # Loop through the user's path and test for each of PROGNAME-LIST
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8153 case $as_dir in #(((
8156 *) as_dir=$as_dir/ ;;
8158 for ac_prog in fgrep
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8162 as_fn_executable_p "$ac_path_FGREP" || continue
8163 # Check for GNU ac_path_FGREP and select it if it is found.
8164 # Check for GNU $ac_path_FGREP
8165 case `"$ac_path_FGREP" --version 2>&1` in
8167 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8170 printf %s 0123456789 >"conftest.in"
8173 cat "conftest.in" "conftest.in" >"conftest.tmp"
8174 mv "conftest.tmp" "conftest.in"
8175 cp "conftest.in" "conftest.nl"
8176 printf "%s\n" 'FGREP' >> "conftest.nl"
8177 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8179 as_fn_arith $ac_count + 1 && ac_count=$as_val
8180 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8181 # Best one so far, save it but keep looking for a better one
8182 ac_cv_path_FGREP="$ac_path_FGREP"
8183 ac_path_FGREP_max=$ac_count
8185 # 10*(2^10) chars as input seems more than enough
8186 test $ac_count -gt 10 && break
8188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8191 $ac_path_FGREP_found && break 3
8196 if test -z "$ac_cv_path_FGREP"; then
8197 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8200 ac_cv_path_FGREP=$FGREP
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8206 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8207 FGREP="$ac_cv_path_FGREP"
8210 test -z "$GREP" && GREP=grep
8230 # Check whether --with-gnu-ld was given.
8231 if test ${with_gnu_ld+y}
8233 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8239 if test yes = "$GCC"; then
8240 # Check if gcc -print-prog-name=ld gives a path.
8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8242 printf %s "checking for ld used by $CC... " >&6; }
8245 # gcc leaves a trailing carriage return, which upsets mingw
8246 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8248 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8251 # Accept absolute paths.
8253 re_direlt='/[^/][^/]*/\.\./'
8254 # Canonicalize the pathname of ld
8255 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8256 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8257 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8259 test -z "$LD" && LD=$ac_prog
8262 # If it fails, then pretend we aren't using GCC.
8266 # If it is relative, then search for the first ld in PATH.
8270 elif test yes = "$with_gnu_ld"; then
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8272 printf %s "checking for GNU ld... " >&6; }
8274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8275 printf %s "checking for non-GNU ld... " >&6; }
8277 if test ${lt_cv_path_LD+y}
8279 printf %s "(cached) " >&6
8281 if test -z "$LD"; then
8282 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8283 for ac_dir in $PATH; do
8285 test -z "$ac_dir" && ac_dir=.
8286 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8287 lt_cv_path_LD=$ac_dir/$ac_prog
8288 # Check to see if the program is GNU ld. I'd rather use --version,
8289 # but apparently some variants of GNU ld only accept -v.
8290 # Break only if it was the GNU/non-GNU ld that we prefer.
8291 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8292 *GNU* | *'with BFD'*)
8293 test no != "$with_gnu_ld" && break
8296 test yes != "$with_gnu_ld" && break
8303 lt_cv_path_LD=$LD # Let the user override the test with a path.
8308 if test -n "$LD"; then
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8310 printf "%s\n" "$LD" >&6; }
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 printf "%s\n" "no" >&6; }
8315 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8317 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8318 if test ${lt_cv_prog_gnu_ld+y}
8320 printf %s "(cached) " >&6
8322 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8323 case `$LD -v 2>&1 </dev/null` in
8324 *GNU* | *'with BFD'*)
8325 lt_cv_prog_gnu_ld=yes
8328 lt_cv_prog_gnu_ld=no
8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8333 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8334 with_gnu_ld=$lt_cv_prog_gnu_ld
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8345 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8346 if test ${lt_cv_path_NM+y}
8348 printf %s "(cached) " >&6
8350 if test -n "$NM"; then
8351 # Let the user override the test.
8354 lt_nm_to_check=${ac_tool_prefix}nm
8355 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8356 lt_nm_to_check="$lt_nm_to_check nm"
8358 for lt_tmp_nm in $lt_nm_to_check; do
8359 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8360 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8362 test -z "$ac_dir" && ac_dir=.
8363 tmp_nm=$ac_dir/$lt_tmp_nm
8364 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8365 # Check to see if the nm accepts a BSD-compat flag.
8366 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8367 # nm: unknown option "B" ignored
8368 # Tru64's nm complains that /dev/null is an invalid object file
8369 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8371 mingw*) lt_bad_file=conftest.nm/nofile ;;
8372 *) lt_bad_file=/dev/null ;;
8374 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8375 *$lt_bad_file* | *'Invalid file or object type'*)
8376 lt_cv_path_NM="$tmp_nm -B"
8380 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8382 lt_cv_path_NM="$tmp_nm -p"
8386 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8387 continue # so that we can try to find one that supports BSD flags
8396 : ${lt_cv_path_NM=no}
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8400 printf "%s\n" "$lt_cv_path_NM" >&6; }
8401 if test no != "$lt_cv_path_NM"; then
8404 # Didn't find any BSD compatible name lister, look for dumpbin.
8405 if test -n "$DUMPBIN"; then :
8406 # Let the user override the test.
8408 if test -n "$ac_tool_prefix"; then
8409 for ac_prog in dumpbin "link -dump"
8411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414 printf %s "checking for $ac_word... " >&6; }
8415 if test ${ac_cv_prog_DUMPBIN+y}
8417 printf %s "(cached) " >&6
8419 if test -n "$DUMPBIN"; then
8420 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 case $as_dir in #(((
8429 *) as_dir=$as_dir/ ;;
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8433 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8443 DUMPBIN=$ac_cv_prog_DUMPBIN
8444 if test -n "$DUMPBIN"; then
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8446 printf "%s\n" "$DUMPBIN" >&6; }
8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 printf "%s\n" "no" >&6; }
8453 test -n "$DUMPBIN" && break
8456 if test -z "$DUMPBIN"; then
8457 ac_ct_DUMPBIN=$DUMPBIN
8458 for ac_prog in dumpbin "link -dump"
8460 # Extract the first word of "$ac_prog", so it can be a program name with args.
8461 set dummy $ac_prog; ac_word=$2
8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 printf %s "checking for $ac_word... " >&6; }
8464 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8466 printf %s "(cached) " >&6
8468 if test -n "$ac_ct_DUMPBIN"; then
8469 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 case $as_dir in #(((
8478 *) as_dir=$as_dir/ ;;
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8482 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8492 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8493 if test -n "$ac_ct_DUMPBIN"; then
8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8495 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 printf "%s\n" "no" >&6; }
8502 test -n "$ac_ct_DUMPBIN" && break
8505 if test "x$ac_ct_DUMPBIN" = x; then
8508 case $cross_compiling:$ac_tool_warned in
8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8511 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8512 ac_tool_warned=yes ;;
8514 DUMPBIN=$ac_ct_DUMPBIN
8518 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8520 DUMPBIN="$DUMPBIN -symbols -headers"
8528 if test : != "$DUMPBIN"; then
8532 test -z "$NM" && NM=nm
8539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8540 printf %s "checking the name lister ($NM) interface... " >&6; }
8541 if test ${lt_cv_nm_interface+y}
8543 printf %s "(cached) " >&6
8545 lt_cv_nm_interface="BSD nm"
8546 echo "int some_variable = 0;" > conftest.$ac_ext
8547 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8548 (eval "$ac_compile" 2>conftest.err)
8549 cat conftest.err >&5
8550 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8551 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8552 cat conftest.err >&5
8553 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8554 cat conftest.out >&5
8555 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8556 lt_cv_nm_interface="MS dumpbin"
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8561 printf "%s\n" "$lt_cv_nm_interface" >&6; }
8563 # find the maximum length of command line arguments
8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8565 printf %s "checking the maximum length of command line arguments... " >&6; }
8566 if test ${lt_cv_sys_max_cmd_len+y}
8568 printf %s "(cached) " >&6
8575 # On DJGPP, this test can blow up pretty badly due to problems in libc
8576 # (any single argument exceeding 2000 bytes causes a buffer overrun
8577 # during glob expansion). Even if it were fixed, the result of this
8578 # check would be larger than it should be.
8579 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8583 # Under GNU Hurd, this test is not required because there is
8584 # no limit to the length of command line arguments.
8585 # Libtool will interpret -1 as no limit whatsoever
8586 lt_cv_sys_max_cmd_len=-1;
8589 cygwin* | mingw* | cegcc*)
8590 # On Win9x/ME, this test blows up -- it succeeds, but takes
8591 # about 5 minutes as the teststring grows exponentially.
8592 # Worse, since 9x/ME are not pre-emptively multitasking,
8593 # you end up with a "frozen" computer, even though with patience
8594 # the test eventually succeeds (with a max line length of 256k).
8595 # Instead, let's just punt: use the minimum linelength reported by
8596 # all of the supported platforms: 8192 (on NT/2K/XP).
8597 lt_cv_sys_max_cmd_len=8192;
8601 # On MiNT this can take a long time and run out of memory.
8602 lt_cv_sys_max_cmd_len=8192;
8606 # On AmigaOS with pdksh, this test takes hours, literally.
8607 # So we just punt and use a minimum line length of 8192.
8608 lt_cv_sys_max_cmd_len=8192;
8611 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8612 # This has been around since 386BSD, at least. Likely further.
8613 if test -x /sbin/sysctl; then
8614 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8615 elif test -x /usr/sbin/sysctl; then
8616 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8618 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8620 # And add a safety zone
8621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8626 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8627 lt_cv_sys_max_cmd_len=196608
8631 # The test takes a long time on OS/2.
8632 lt_cv_sys_max_cmd_len=8192
8636 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8637 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8638 # nice to cause kernel panics so lets avoid the loop below.
8639 # First set a reasonable default.
8640 lt_cv_sys_max_cmd_len=16384
8642 if test -x /sbin/sysconfig; then
8643 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8644 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8649 lt_cv_sys_max_cmd_len=102400
8651 sysv5* | sco5v6* | sysv4.2uw2*)
8652 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8653 if test -n "$kargmax"; then
8654 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8656 lt_cv_sys_max_cmd_len=32768
8660 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8661 if test -n "$lt_cv_sys_max_cmd_len" && \
8662 test undefined != "$lt_cv_sys_max_cmd_len"; then
8663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8666 # Make teststring a little bigger before we do anything with it.
8667 # a 1K string should be a reasonable start.
8668 for i in 1 2 3 4 5 6 7 8; do
8669 teststring=$teststring$teststring
8671 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8672 # If test is not a shell built-in, we'll probably end up computing a
8673 # maximum length that is only half of the actual maximum length, but
8675 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8676 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8677 test 17 != "$i" # 1/2 MB should be enough
8680 teststring=$teststring$teststring
8682 # Only check the string length outside the loop.
8683 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8685 # Add a significant safety factor because C++ compilers can tack on
8686 # massive amounts of additional arguments before passing them to the
8687 # linker. It appears as though 1/2 is a usable value.
8688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8695 if test -n "$lt_cv_sys_max_cmd_len"; then
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8697 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8700 printf "%s\n" "none" >&6; }
8702 max_cmd_len=$lt_cv_sys_max_cmd_len
8713 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8723 # test EBCDIC or ASCII
8724 case `echo X|tr X '\101'` in
8725 A) # ASCII based system
8726 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8727 lt_SP2NL='tr \040 \012'
8728 lt_NL2SP='tr \015\012 \040\040'
8730 *) # EBCDIC based system
8731 lt_SP2NL='tr \100 \n'
8732 lt_NL2SP='tr \r\n \100\100'
8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8745 printf %s "checking how to convert $build file names to $host format... " >&6; }
8746 if test ${lt_cv_to_host_file_cmd+y}
8748 printf %s "(cached) " >&6
8753 *-*-mingw* ) # actually msys
8754 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8757 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8759 * ) # otherwise, assume *nix
8760 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8766 *-*-mingw* ) # actually msys
8767 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8770 lt_cv_to_host_file_cmd=func_convert_file_noop
8772 * ) # otherwise, assume *nix
8773 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8777 * ) # unhandled hosts (and "normal" native builds)
8778 lt_cv_to_host_file_cmd=func_convert_file_noop
8784 to_host_file_cmd=$lt_cv_to_host_file_cmd
8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8786 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8793 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8794 if test ${lt_cv_to_tool_file_cmd+y}
8796 printf %s "(cached) " >&6
8798 #assume ordinary cross tools, or native build.
8799 lt_cv_to_tool_file_cmd=func_convert_file_noop
8803 *-*-mingw* ) # actually msys
8804 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8812 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8814 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8821 printf %s "checking for $LD option to reload object files... " >&6; }
8822 if test ${lt_cv_ld_reload_flag+y}
8824 printf %s "(cached) " >&6
8826 lt_cv_ld_reload_flag='-r'
8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8829 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8830 reload_flag=$lt_cv_ld_reload_flag
8831 case $reload_flag in
8833 *) reload_flag=" $reload_flag" ;;
8835 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8837 cygwin* | mingw* | pw32* | cegcc*)
8838 if test yes != "$GCC"; then
8843 if test yes = "$GCC"; then
8844 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8846 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8859 if test -n "$ac_tool_prefix"; then
8860 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8861 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 printf %s "checking for $ac_word... " >&6; }
8864 if test ${ac_cv_prog_OBJDUMP+y}
8866 printf %s "(cached) " >&6
8868 if test -n "$OBJDUMP"; then
8869 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875 case $as_dir in #(((
8878 *) as_dir=$as_dir/ ;;
8880 for ac_exec_ext in '' $ac_executable_extensions; do
8881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8882 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8892 OBJDUMP=$ac_cv_prog_OBJDUMP
8893 if test -n "$OBJDUMP"; then
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8895 printf "%s\n" "$OBJDUMP" >&6; }
8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898 printf "%s\n" "no" >&6; }
8903 if test -z "$ac_cv_prog_OBJDUMP"; then
8904 ac_ct_OBJDUMP=$OBJDUMP
8905 # Extract the first word of "objdump", so it can be a program name with args.
8906 set dummy objdump; ac_word=$2
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908 printf %s "checking for $ac_word... " >&6; }
8909 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8911 printf %s "(cached) " >&6
8913 if test -n "$ac_ct_OBJDUMP"; then
8914 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 case $as_dir in #(((
8923 *) as_dir=$as_dir/ ;;
8925 for ac_exec_ext in '' $ac_executable_extensions; do
8926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8927 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8937 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8938 if test -n "$ac_ct_OBJDUMP"; then
8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8940 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 printf "%s\n" "no" >&6; }
8946 if test "x$ac_ct_OBJDUMP" = x; then
8949 case $cross_compiling:$ac_tool_warned in
8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8952 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8953 ac_tool_warned=yes ;;
8955 OBJDUMP=$ac_ct_OBJDUMP
8958 OBJDUMP="$ac_cv_prog_OBJDUMP"
8961 test -z "$OBJDUMP" && OBJDUMP=objdump
8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8972 printf %s "checking how to recognize dependent libraries... " >&6; }
8973 if test ${lt_cv_deplibs_check_method+y}
8975 printf %s "(cached) " >&6
8977 lt_cv_file_magic_cmd='$MAGIC_CMD'
8978 lt_cv_file_magic_test_file=
8979 lt_cv_deplibs_check_method='unknown'
8980 # Need to set the preceding variable on all platforms that support
8981 # interlibrary dependencies.
8982 # 'none' -- dependencies not supported.
8983 # 'unknown' -- same as none, but documents that we really don't know.
8984 # 'pass_all' -- all dependencies passed with no checks.
8985 # 'test_compile' -- check by making test program.
8986 # 'file_magic [[regex]]' -- check by looking for files in library path
8987 # that responds to the $file_magic_cmd with a given extended regex.
8988 # If you have 'file' or equivalent on your system and you're not sure
8989 # whether 'pass_all' will *always* work, you probably want this one.
8993 lt_cv_deplibs_check_method=pass_all
8997 lt_cv_deplibs_check_method=pass_all
9001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9002 lt_cv_file_magic_cmd='/usr/bin/file -L'
9003 lt_cv_file_magic_test_file=/shlib/libc.so
9007 # func_win32_libid is a shell function defined in ltmain.sh
9008 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9009 lt_cv_file_magic_cmd='func_win32_libid'
9013 # Base MSYS/MinGW do not provide the 'file' command needed by
9014 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9015 # unless we find 'file', for example because we are cross-compiling.
9016 if ( file / ) >/dev/null 2>&1; then
9017 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9018 lt_cv_file_magic_cmd='func_win32_libid'
9020 # Keep this pattern in sync with the one in func_win32_libid.
9021 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9022 lt_cv_file_magic_cmd='$OBJDUMP -f'
9027 # use the weaker test based on 'objdump'. See mingw*.
9028 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9029 lt_cv_file_magic_cmd='$OBJDUMP -f'
9032 darwin* | rhapsody*)
9033 lt_cv_deplibs_check_method=pass_all
9036 freebsd* | dragonfly*)
9037 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9040 # Not sure whether the presence of OpenBSD here was a mistake.
9041 # Let's accept both of them until this is cleared up.
9042 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9043 lt_cv_file_magic_cmd=/usr/bin/file
9044 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9048 lt_cv_deplibs_check_method=pass_all
9053 lt_cv_deplibs_check_method=pass_all
9056 hpux10.20* | hpux11*)
9057 lt_cv_file_magic_cmd=/usr/bin/file
9060 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9061 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9064 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]'
9065 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9068 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9069 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9075 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9079 irix5* | irix6* | nonstopux*)
9081 *-32|*"-32 ") libmagic=32-bit;;
9082 *-n32|*"-n32 ") libmagic=N32;;
9083 *-64|*"-64 ") libmagic=64-bit;;
9084 *) libmagic=never-match;;
9086 lt_cv_deplibs_check_method=pass_all
9089 # This must be glibc/ELF.
9090 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9091 lt_cv_deplibs_check_method=pass_all
9094 netbsd* | netbsdelf*-gnu)
9095 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9104 lt_cv_file_magic_cmd=/usr/bin/file
9105 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9109 lt_cv_deplibs_check_method=pass_all
9113 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9120 osf3* | osf4* | osf5*)
9121 lt_cv_deplibs_check_method=pass_all
9125 lt_cv_deplibs_check_method=pass_all
9129 lt_cv_deplibs_check_method=pass_all
9132 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9133 lt_cv_deplibs_check_method=pass_all
9137 case $host_vendor in
9139 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]'
9140 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9143 lt_cv_deplibs_check_method=pass_all
9146 lt_cv_file_magic_cmd='/bin/file'
9147 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9150 lt_cv_file_magic_cmd='/bin/file'
9151 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9152 lt_cv_file_magic_test_file=/lib/libc.so
9155 lt_cv_deplibs_check_method=pass_all
9158 lt_cv_deplibs_check_method=pass_all
9164 lt_cv_deplibs_check_method=pass_all
9167 lt_cv_deplibs_check_method=pass_all
9172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9173 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9177 if test "$build" = "$host"; then
9180 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9183 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9189 file_magic_cmd=$lt_cv_file_magic_cmd
9190 deplibs_check_method=$lt_cv_deplibs_check_method
9191 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9214 if test -n "$ac_tool_prefix"; then
9215 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9216 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218 printf %s "checking for $ac_word... " >&6; }
9219 if test ${ac_cv_prog_DLLTOOL+y}
9221 printf %s "(cached) " >&6
9223 if test -n "$DLLTOOL"; then
9224 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9230 case $as_dir in #(((
9233 *) as_dir=$as_dir/ ;;
9235 for ac_exec_ext in '' $ac_executable_extensions; do
9236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9237 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9247 DLLTOOL=$ac_cv_prog_DLLTOOL
9248 if test -n "$DLLTOOL"; then
9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9250 printf "%s\n" "$DLLTOOL" >&6; }
9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 printf "%s\n" "no" >&6; }
9258 if test -z "$ac_cv_prog_DLLTOOL"; then
9259 ac_ct_DLLTOOL=$DLLTOOL
9260 # Extract the first word of "dlltool", so it can be a program name with args.
9261 set dummy dlltool; ac_word=$2
9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9263 printf %s "checking for $ac_word... " >&6; }
9264 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9266 printf %s "(cached) " >&6
9268 if test -n "$ac_ct_DLLTOOL"; then
9269 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9275 case $as_dir in #(((
9278 *) as_dir=$as_dir/ ;;
9280 for ac_exec_ext in '' $ac_executable_extensions; do
9281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9282 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9292 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9293 if test -n "$ac_ct_DLLTOOL"; then
9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9295 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298 printf "%s\n" "no" >&6; }
9301 if test "x$ac_ct_DLLTOOL" = x; then
9304 case $cross_compiling:$ac_tool_warned in
9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9308 ac_tool_warned=yes ;;
9310 DLLTOOL=$ac_ct_DLLTOOL
9313 DLLTOOL="$ac_cv_prog_DLLTOOL"
9316 test -z "$DLLTOOL" && DLLTOOL=dlltool
9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9328 printf %s "checking how to associate runtime and link libraries... " >&6; }
9329 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9331 printf %s "(cached) " >&6
9333 lt_cv_sharedlib_from_linklib_cmd='unknown'
9336 cygwin* | mingw* | pw32* | cegcc*)
9337 # two different shell functions defined in ltmain.sh;
9338 # decide which one to use based on capabilities of $DLLTOOL
9339 case `$DLLTOOL --help 2>&1` in
9340 *--identify-strict*)
9341 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9344 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9349 # fallback: assume linklib IS sharedlib
9350 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9356 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9357 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9358 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9366 if test -n "$ac_tool_prefix"; then
9369 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9372 printf %s "checking for $ac_word... " >&6; }
9373 if test ${ac_cv_prog_AR+y}
9375 printf %s "(cached) " >&6
9377 if test -n "$AR"; then
9378 ac_cv_prog_AR="$AR" # Let the user override the test.
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 case $as_dir in #(((
9387 *) as_dir=$as_dir/ ;;
9389 for ac_exec_ext in '' $ac_executable_extensions; do
9390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9391 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9402 if test -n "$AR"; then
9403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9404 printf "%s\n" "$AR" >&6; }
9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 printf "%s\n" "no" >&6; }
9411 test -n "$AR" && break
9414 if test -z "$AR"; then
9418 # Extract the first word of "$ac_prog", so it can be a program name with args.
9419 set dummy $ac_prog; ac_word=$2
9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 printf %s "checking for $ac_word... " >&6; }
9422 if test ${ac_cv_prog_ac_ct_AR+y}
9424 printf %s "(cached) " >&6
9426 if test -n "$ac_ct_AR"; then
9427 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433 case $as_dir in #(((
9436 *) as_dir=$as_dir/ ;;
9438 for ac_exec_ext in '' $ac_executable_extensions; do
9439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9440 ac_cv_prog_ac_ct_AR="$ac_prog"
9441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9450 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9451 if test -n "$ac_ct_AR"; then
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9453 printf "%s\n" "$ac_ct_AR" >&6; }
9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456 printf "%s\n" "no" >&6; }
9460 test -n "$ac_ct_AR" && break
9463 if test "x$ac_ct_AR" = x; then
9466 case $cross_compiling:$ac_tool_warned in
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9469 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9470 ac_tool_warned=yes ;;
9489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9490 printf %s "checking for archiver @FILE support... " >&6; }
9491 if test ${lt_cv_ar_at_file+y}
9493 printf %s "(cached) " >&6
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9507 if ac_fn_c_try_compile "$LINENO"
9509 echo conftest.$ac_objext > conftest.lst
9510 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9512 (eval $lt_ar_try) 2>&5
9514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9515 test $ac_status = 0; }
9516 if test 0 -eq "$ac_status"; then
9517 # Ensure the archiver fails upon bogus file names.
9518 rm -f conftest.$ac_objext libconftest.a
9519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9520 (eval $lt_ar_try) 2>&5
9522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9523 test $ac_status = 0; }
9524 if test 0 -ne "$ac_status"; then
9528 rm -f conftest.* libconftest.a
9531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9535 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9537 if test no = "$lt_cv_ar_at_file"; then
9540 archiver_list_spec=$lt_cv_ar_at_file
9549 if test -n "$ac_tool_prefix"; then
9550 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9551 set dummy ${ac_tool_prefix}strip; ac_word=$2
9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9553 printf %s "checking for $ac_word... " >&6; }
9554 if test ${ac_cv_prog_STRIP+y}
9556 printf %s "(cached) " >&6
9558 if test -n "$STRIP"; then
9559 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 case $as_dir in #(((
9568 *) as_dir=$as_dir/ ;;
9570 for ac_exec_ext in '' $ac_executable_extensions; do
9571 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9572 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9582 STRIP=$ac_cv_prog_STRIP
9583 if test -n "$STRIP"; then
9584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9585 printf "%s\n" "$STRIP" >&6; }
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 printf "%s\n" "no" >&6; }
9593 if test -z "$ac_cv_prog_STRIP"; then
9595 # Extract the first word of "strip", so it can be a program name with args.
9596 set dummy strip; ac_word=$2
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 printf %s "checking for $ac_word... " >&6; }
9599 if test ${ac_cv_prog_ac_ct_STRIP+y}
9601 printf %s "(cached) " >&6
9603 if test -n "$ac_ct_STRIP"; then
9604 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 case $as_dir in #(((
9613 *) as_dir=$as_dir/ ;;
9615 for ac_exec_ext in '' $ac_executable_extensions; do
9616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9617 ac_cv_prog_ac_ct_STRIP="strip"
9618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9627 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9628 if test -n "$ac_ct_STRIP"; then
9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9630 printf "%s\n" "$ac_ct_STRIP" >&6; }
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 printf "%s\n" "no" >&6; }
9636 if test "x$ac_ct_STRIP" = x; then
9639 case $cross_compiling:$ac_tool_warned in
9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9642 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9643 ac_tool_warned=yes ;;
9648 STRIP="$ac_cv_prog_STRIP"
9651 test -z "$STRIP" && STRIP=:
9658 if test -n "$ac_tool_prefix"; then
9659 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9660 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 printf %s "checking for $ac_word... " >&6; }
9663 if test ${ac_cv_prog_RANLIB+y}
9665 printf %s "(cached) " >&6
9667 if test -n "$RANLIB"; then
9668 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674 case $as_dir in #(((
9677 *) as_dir=$as_dir/ ;;
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9681 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9691 RANLIB=$ac_cv_prog_RANLIB
9692 if test -n "$RANLIB"; then
9693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9694 printf "%s\n" "$RANLIB" >&6; }
9696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697 printf "%s\n" "no" >&6; }
9702 if test -z "$ac_cv_prog_RANLIB"; then
9703 ac_ct_RANLIB=$RANLIB
9704 # Extract the first word of "ranlib", so it can be a program name with args.
9705 set dummy ranlib; ac_word=$2
9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9707 printf %s "checking for $ac_word... " >&6; }
9708 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9710 printf %s "(cached) " >&6
9712 if test -n "$ac_ct_RANLIB"; then
9713 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719 case $as_dir in #(((
9722 *) as_dir=$as_dir/ ;;
9724 for ac_exec_ext in '' $ac_executable_extensions; do
9725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9726 ac_cv_prog_ac_ct_RANLIB="ranlib"
9727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9736 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9737 if test -n "$ac_ct_RANLIB"; then
9738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9739 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9742 printf "%s\n" "no" >&6; }
9745 if test "x$ac_ct_RANLIB" = x; then
9748 case $cross_compiling:$ac_tool_warned in
9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9751 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9752 ac_tool_warned=yes ;;
9754 RANLIB=$ac_ct_RANLIB
9757 RANLIB="$ac_cv_prog_RANLIB"
9760 test -z "$RANLIB" && RANLIB=:
9767 # Determine commands to create old-style static archives.
9768 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9769 old_postinstall_cmds='chmod 644 $oldlib'
9770 old_postuninstall_cmds=
9772 if test -n "$RANLIB"; then
9775 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9778 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9781 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9786 lock_old_archive_extraction=yes ;;
9788 lock_old_archive_extraction=no ;;
9829 # If no C compiler was specified, use CC.
9832 # If no C compiler flags were specified, use CFLAGS.
9833 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9835 # Allow CC to be a program name with arguments.
9839 # Check for command to grab the raw symbol name followed by C symbol from nm.
9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9841 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9842 if test ${lt_cv_sys_global_symbol_pipe+y}
9844 printf %s "(cached) " >&6
9847 # These are sane defaults that work on at least a few old systems.
9848 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9850 # Character class describing NM global symbol codes.
9851 symcode='[BCDEGRST]'
9853 # Regexp to match symbols that can be accessed directly from C.
9854 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9856 # Define system-specific variables.
9861 cygwin* | mingw* | pw32* | cegcc*)
9862 symcode='[ABCDGISTW]'
9865 if test ia64 = "$host_cpu"; then
9866 symcode='[ABCDEGRST]'
9870 symcode='[BCDEGRST]'
9873 symcode='[BCDEGQRST]'
9884 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9892 # If we're using GNU nm, then use its standard symbol codes.
9893 case `$NM -V 2>&1` in
9894 *GNU* | *'with BFD'*)
9895 symcode='[ABCDGIRSTW]' ;;
9898 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9899 # Gets list of data symbols to import.
9900 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9901 # Adjust the below global symbol transforms to fixup imported variables.
9902 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9903 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9904 lt_c_name_lib_hook="\
9905 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9906 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9908 # Disable hooks by default.
9909 lt_cv_sys_global_symbol_to_import=
9915 # Transform an extracted symbol line into a proper C declaration.
9916 # Some systems (esp. on ia64) link data and code symbols differently,
9917 # so use this general approach.
9918 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9920 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9921 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9923 # Transform an extracted symbol line into symbol name and symbol address
9924 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9926 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9927 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9929 # Transform an extracted symbol line into symbol name with lib prefix and
9931 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9932 $lt_c_name_lib_hook\
9933 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9934 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9935 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9937 # Handle CRLF in mingw tool chain
9941 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9945 # Try without a prefix underscore, then with it.
9946 for ac_symprfx in "" "_"; do
9948 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9949 symxfrm="\\1 $ac_symprfx\\2 \\2"
9951 # Write the raw and C identifiers.
9952 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9953 # Fake it for dumpbin and say T for any non-static function,
9954 # D for any global variable and I for any imported variable.
9955 # Also find C++ and __fastcall symbols from MSVC++,
9956 # which start with @ or ?.
9957 lt_cv_sys_global_symbol_pipe="$AWK '"\
9958 " {last_section=section; section=\$ 3};"\
9959 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9960 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9961 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9962 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9963 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9964 " \$ 0!~/External *\|/{next};"\
9965 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9966 " {if(hide[section]) next};"\
9967 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9968 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9969 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9970 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9971 " ' prfx=^$ac_symprfx"
9973 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9975 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9977 # Check to see that the pipe works correctly.
9981 cat > conftest.$ac_ext <<_LT_EOF
9986 void nm_test_func(void);
9987 void nm_test_func(void){}
9991 int main(){nm_test_var='a';nm_test_func();return(0);}
9994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9995 (eval $ac_compile) 2>&5
9997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9998 test $ac_status = 0; }; then
9999 # Now try to grab the symbols.
10001 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10002 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10003 # Try sorting and uniquifying the output.
10004 if sort "$nlist" | uniq > "$nlist"T; then
10005 mv -f "$nlist"T "$nlist"
10010 # Make sure that we snagged all the symbols we need.
10011 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10012 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10013 cat <<_LT_EOF > conftest.$ac_ext
10014 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10015 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10016 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10017 relocations are performed -- see ld's documentation on pseudo-relocs. */
10018 # define LT_DLSYM_CONST
10019 #elif defined __osf__
10020 /* This system does not cope well with relocations in const data. */
10021 # define LT_DLSYM_CONST
10023 # define LT_DLSYM_CONST const
10031 # Now generate the symbol file.
10032 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10034 cat <<_LT_EOF >> conftest.$ac_ext
10036 /* The mapping between symbol names and symbols. */
10037 LT_DLSYM_CONST struct {
10041 lt__PROGRAM__LTX_preloaded_symbols[] =
10043 { "@PROGRAM@", (void *) 0 },
10045 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10046 cat <<\_LT_EOF >> conftest.$ac_ext
10050 /* This works around a problem in FreeBSD linker */
10051 #ifdef FREEBSD_WORKAROUND
10052 static const void *lt_preloaded_setup() {
10053 return lt__PROGRAM__LTX_preloaded_symbols;
10061 # Now try linking the two files.
10062 mv conftest.$ac_objext conftstm.$ac_objext
10063 lt_globsym_save_LIBS=$LIBS
10064 lt_globsym_save_CFLAGS=$CFLAGS
10065 LIBS=conftstm.$ac_objext
10066 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10068 (eval $ac_link) 2>&5
10070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10071 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10074 LIBS=$lt_globsym_save_LIBS
10075 CFLAGS=$lt_globsym_save_CFLAGS
10077 echo "cannot find nm_test_func in $nlist" >&5
10080 echo "cannot find nm_test_var in $nlist" >&5
10083 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10086 echo "$progname: failed program was:" >&5
10087 cat conftest.$ac_ext >&5
10089 rm -rf conftest* conftst*
10091 # Do not use the global_symbol_pipe unless it works.
10092 if test yes = "$pipe_works"; then
10095 lt_cv_sys_global_symbol_pipe=
10101 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10102 lt_cv_sys_global_symbol_to_cdecl=
10104 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10106 printf "%s\n" "failed" >&6; }
10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10109 printf "%s\n" "ok" >&6; }
10112 # Response file support.
10113 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10114 nm_file_list_spec='@'
10115 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10116 nm_file_list_spec='@'
10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10156 printf %s "checking for sysroot... " >&6; }
10158 # Check whether --with-sysroot was given.
10159 if test ${with_sysroot+y}
10161 withval=$with_sysroot;
10168 case $with_sysroot in #(
10170 if test yes = "$GCC"; then
10171 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10175 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10181 printf "%s\n" "$with_sysroot" >&6; }
10182 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10187 printf "%s\n" "${lt_sysroot:-no}" >&6; }
10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10194 printf %s "checking for a working dd... " >&6; }
10195 if test ${ac_cv_path_lt_DD+y}
10197 printf %s "(cached) " >&6
10199 printf 0123456789abcdef0123456789abcdef >conftest.i
10200 cat conftest.i conftest.i >conftest2.i
10202 if test -z "$lt_DD"; then
10203 ac_path_lt_DD_found=false
10204 # Loop through the user's path and test for each of PROGNAME-LIST
10205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206 for as_dir in $PATH
10209 case $as_dir in #(((
10212 *) as_dir=$as_dir/ ;;
10216 for ac_exec_ext in '' $ac_executable_extensions; do
10217 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10218 as_fn_executable_p "$ac_path_lt_DD" || continue
10219 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10220 cmp -s conftest.i conftest.out \
10221 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10223 $ac_path_lt_DD_found && break 3
10228 if test -z "$ac_cv_path_lt_DD"; then
10232 ac_cv_path_lt_DD=$lt_DD
10235 rm -f conftest.i conftest2.i conftest.out
10237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10238 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10242 printf %s "checking how to truncate binary pipes... " >&6; }
10243 if test ${lt_cv_truncate_bin+y}
10245 printf %s "(cached) " >&6
10247 printf 0123456789abcdef0123456789abcdef >conftest.i
10248 cat conftest.i conftest.i >conftest2.i
10249 lt_cv_truncate_bin=
10250 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10251 cmp -s conftest.i conftest.out \
10252 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10254 rm -f conftest.i conftest2.i conftest.out
10255 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10258 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10266 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10267 func_cc_basename ()
10269 for cc_temp in $*""; do
10271 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10272 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10277 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10280 # Check whether --enable-libtool-lock was given.
10281 if test ${enable_libtool_lock+y}
10283 enableval=$enable_libtool_lock;
10286 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10288 # Some flags need to be propagated to the compiler or linker for good
10292 # Find out what ABI is being produced by ac_compile, and set mode
10293 # options accordingly.
10294 echo 'int i;' > conftest.$ac_ext
10295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10296 (eval $ac_compile) 2>&5
10298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10299 test $ac_status = 0; }; then
10300 case `/usr/bin/file conftest.$ac_objext` in
10312 # Find out what ABI is being produced by ac_compile, and set linker
10313 # options accordingly.
10314 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10316 (eval $ac_compile) 2>&5
10318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10319 test $ac_status = 0; }; then
10320 if test yes = "$lt_cv_prog_gnu_ld"; then
10321 case `/usr/bin/file conftest.$ac_objext` in
10323 LD="${LD-ld} -melf32bsmip"
10326 LD="${LD-ld} -melf32bmipn32"
10329 LD="${LD-ld} -melf64bmip"
10333 case `/usr/bin/file conftest.$ac_objext` in
10350 # Find out what ABI is being produced by ac_compile, and set linker
10351 # options accordingly.
10352 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10354 (eval $ac_compile) 2>&5
10356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10357 test $ac_status = 0; }; then
10359 case `/usr/bin/file conftest.$ac_objext` in
10367 case `/usr/bin/file conftest.$ac_objext` in
10369 emul="${emul}btsmip"
10372 emul="${emul}ltsmip"
10375 case `/usr/bin/file conftest.$ac_objext` in
10380 LD="${LD-ld} -m $emul"
10385 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10386 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10387 # Find out what ABI is being produced by ac_compile, and set linker
10388 # options accordingly. Note that the listed cases only cover the
10389 # situations where additional linker options are needed (such as when
10390 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10391 # vice versa); the common cases where no linker options are needed do
10392 # not appear in the list.
10393 echo 'int i;' > conftest.$ac_ext
10394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10395 (eval $ac_compile) 2>&5
10397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10398 test $ac_status = 0; }; then
10399 case `/usr/bin/file conftest.o` in
10402 x86_64-*kfreebsd*-gnu)
10403 LD="${LD-ld} -m elf_i386_fbsd"
10406 case `/usr/bin/file conftest.o` in
10408 LD="${LD-ld} -m elf32_x86_64"
10411 LD="${LD-ld} -m elf_i386"
10415 powerpc64le-*linux*)
10416 LD="${LD-ld} -m elf32lppclinux"
10419 LD="${LD-ld} -m elf32ppclinux"
10422 LD="${LD-ld} -m elf_s390"
10425 LD="${LD-ld} -m elf32_sparc"
10431 x86_64-*kfreebsd*-gnu)
10432 LD="${LD-ld} -m elf_x86_64_fbsd"
10435 LD="${LD-ld} -m elf_x86_64"
10438 LD="${LD-ld} -m elf64lppc"
10441 LD="${LD-ld} -m elf64ppc"
10443 s390*-*linux*|s390*-*tpf*)
10444 LD="${LD-ld} -m elf64_s390"
10447 LD="${LD-ld} -m elf64_sparc"
10457 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10458 SAVE_CFLAGS=$CFLAGS
10459 CFLAGS="$CFLAGS -belf"
10460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10461 printf %s "checking whether the C compiler needs -belf... " >&6; }
10462 if test ${lt_cv_cc_needs_belf+y}
10464 printf %s "(cached) " >&6
10467 ac_cpp='$CPP $CPPFLAGS'
10468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473 /* end confdefs.h. */
10483 if ac_fn_c_try_link "$LINENO"
10485 lt_cv_cc_needs_belf=yes
10487 lt_cv_cc_needs_belf=no
10489 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10490 conftest$ac_exeext conftest.$ac_ext
10492 ac_cpp='$CPP $CPPFLAGS'
10493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10499 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10500 if test yes != "$lt_cv_cc_needs_belf"; then
10501 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10502 CFLAGS=$SAVE_CFLAGS
10506 # Find out what ABI is being produced by ac_compile, and set linker
10507 # options accordingly.
10508 echo 'int i;' > conftest.$ac_ext
10509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10510 (eval $ac_compile) 2>&5
10512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513 test $ac_status = 0; }; then
10514 case `/usr/bin/file conftest.o` in
10516 case $lt_cv_prog_gnu_ld in
10519 i?86-*-solaris*|x86_64-*-solaris*)
10520 LD="${LD-ld} -m elf_x86_64"
10523 LD="${LD-ld} -m elf64_sparc"
10526 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10527 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10532 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10544 need_locks=$enable_libtool_lock
10546 if test -n "$ac_tool_prefix"; then
10547 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10548 set dummy ${ac_tool_prefix}mt; ac_word=$2
10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550 printf %s "checking for $ac_word... " >&6; }
10551 if test ${ac_cv_prog_MANIFEST_TOOL+y}
10553 printf %s "(cached) " >&6
10555 if test -n "$MANIFEST_TOOL"; then
10556 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10562 case $as_dir in #(((
10565 *) as_dir=$as_dir/ ;;
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10569 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10579 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10580 if test -n "$MANIFEST_TOOL"; then
10581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10582 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 printf "%s\n" "no" >&6; }
10590 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10591 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10592 # Extract the first word of "mt", so it can be a program name with args.
10593 set dummy mt; ac_word=$2
10594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595 printf %s "checking for $ac_word... " >&6; }
10596 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10598 printf %s "(cached) " >&6
10600 if test -n "$ac_ct_MANIFEST_TOOL"; then
10601 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10604 for as_dir in $PATH
10607 case $as_dir in #(((
10610 *) as_dir=$as_dir/ ;;
10612 for ac_exec_ext in '' $ac_executable_extensions; do
10613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10614 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10624 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10625 if test -n "$ac_ct_MANIFEST_TOOL"; then
10626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10627 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 printf "%s\n" "no" >&6; }
10633 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10636 case $cross_compiling:$ac_tool_warned in
10638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10639 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10640 ac_tool_warned=yes ;;
10642 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10645 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10648 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10650 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10651 if test ${lt_cv_path_mainfest_tool+y}
10653 printf %s "(cached) " >&6
10655 lt_cv_path_mainfest_tool=no
10656 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10657 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10658 cat conftest.err >&5
10659 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10660 lt_cv_path_mainfest_tool=yes
10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10665 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10666 if test yes != "$lt_cv_path_mainfest_tool"; then
10676 rhapsody* | darwin*)
10677 if test -n "$ac_tool_prefix"; then
10678 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10679 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10681 printf %s "checking for $ac_word... " >&6; }
10682 if test ${ac_cv_prog_DSYMUTIL+y}
10684 printf %s "(cached) " >&6
10686 if test -n "$DSYMUTIL"; then
10687 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10690 for as_dir in $PATH
10693 case $as_dir in #(((
10696 *) as_dir=$as_dir/ ;;
10698 for ac_exec_ext in '' $ac_executable_extensions; do
10699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10700 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10710 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10711 if test -n "$DSYMUTIL"; then
10712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10713 printf "%s\n" "$DSYMUTIL" >&6; }
10715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716 printf "%s\n" "no" >&6; }
10721 if test -z "$ac_cv_prog_DSYMUTIL"; then
10722 ac_ct_DSYMUTIL=$DSYMUTIL
10723 # Extract the first word of "dsymutil", so it can be a program name with args.
10724 set dummy dsymutil; ac_word=$2
10725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10726 printf %s "checking for $ac_word... " >&6; }
10727 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10729 printf %s "(cached) " >&6
10731 if test -n "$ac_ct_DSYMUTIL"; then
10732 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10735 for as_dir in $PATH
10738 case $as_dir in #(((
10741 *) as_dir=$as_dir/ ;;
10743 for ac_exec_ext in '' $ac_executable_extensions; do
10744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10745 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10755 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10756 if test -n "$ac_ct_DSYMUTIL"; then
10757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10758 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761 printf "%s\n" "no" >&6; }
10764 if test "x$ac_ct_DSYMUTIL" = x; then
10767 case $cross_compiling:$ac_tool_warned in
10769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10770 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10771 ac_tool_warned=yes ;;
10773 DSYMUTIL=$ac_ct_DSYMUTIL
10776 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10779 if test -n "$ac_tool_prefix"; then
10780 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10781 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783 printf %s "checking for $ac_word... " >&6; }
10784 if test ${ac_cv_prog_NMEDIT+y}
10786 printf %s "(cached) " >&6
10788 if test -n "$NMEDIT"; then
10789 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792 for as_dir in $PATH
10795 case $as_dir in #(((
10798 *) as_dir=$as_dir/ ;;
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10802 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10812 NMEDIT=$ac_cv_prog_NMEDIT
10813 if test -n "$NMEDIT"; then
10814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10815 printf "%s\n" "$NMEDIT" >&6; }
10817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818 printf "%s\n" "no" >&6; }
10823 if test -z "$ac_cv_prog_NMEDIT"; then
10824 ac_ct_NMEDIT=$NMEDIT
10825 # Extract the first word of "nmedit", so it can be a program name with args.
10826 set dummy nmedit; ac_word=$2
10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10828 printf %s "checking for $ac_word... " >&6; }
10829 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10831 printf %s "(cached) " >&6
10833 if test -n "$ac_ct_NMEDIT"; then
10834 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10840 case $as_dir in #(((
10843 *) as_dir=$as_dir/ ;;
10845 for ac_exec_ext in '' $ac_executable_extensions; do
10846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10847 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10857 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10858 if test -n "$ac_ct_NMEDIT"; then
10859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10860 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863 printf "%s\n" "no" >&6; }
10866 if test "x$ac_ct_NMEDIT" = x; then
10869 case $cross_compiling:$ac_tool_warned in
10871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10872 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10873 ac_tool_warned=yes ;;
10875 NMEDIT=$ac_ct_NMEDIT
10878 NMEDIT="$ac_cv_prog_NMEDIT"
10881 if test -n "$ac_tool_prefix"; then
10882 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10883 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885 printf %s "checking for $ac_word... " >&6; }
10886 if test ${ac_cv_prog_LIPO+y}
10888 printf %s "(cached) " >&6
10890 if test -n "$LIPO"; then
10891 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $PATH
10897 case $as_dir in #(((
10900 *) as_dir=$as_dir/ ;;
10902 for ac_exec_ext in '' $ac_executable_extensions; do
10903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10904 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10914 LIPO=$ac_cv_prog_LIPO
10915 if test -n "$LIPO"; then
10916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10917 printf "%s\n" "$LIPO" >&6; }
10919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920 printf "%s\n" "no" >&6; }
10925 if test -z "$ac_cv_prog_LIPO"; then
10927 # Extract the first word of "lipo", so it can be a program name with args.
10928 set dummy lipo; ac_word=$2
10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10930 printf %s "checking for $ac_word... " >&6; }
10931 if test ${ac_cv_prog_ac_ct_LIPO+y}
10933 printf %s "(cached) " >&6
10935 if test -n "$ac_ct_LIPO"; then
10936 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939 for as_dir in $PATH
10942 case $as_dir in #(((
10945 *) as_dir=$as_dir/ ;;
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10949 ac_cv_prog_ac_ct_LIPO="lipo"
10950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10959 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10960 if test -n "$ac_ct_LIPO"; then
10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10962 printf "%s\n" "$ac_ct_LIPO" >&6; }
10964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965 printf "%s\n" "no" >&6; }
10968 if test "x$ac_ct_LIPO" = x; then
10971 case $cross_compiling:$ac_tool_warned in
10973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10974 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10975 ac_tool_warned=yes ;;
10980 LIPO="$ac_cv_prog_LIPO"
10983 if test -n "$ac_tool_prefix"; then
10984 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10985 set dummy ${ac_tool_prefix}otool; ac_word=$2
10986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10987 printf %s "checking for $ac_word... " >&6; }
10988 if test ${ac_cv_prog_OTOOL+y}
10990 printf %s "(cached) " >&6
10992 if test -n "$OTOOL"; then
10993 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10999 case $as_dir in #(((
11002 *) as_dir=$as_dir/ ;;
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11006 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11016 OTOOL=$ac_cv_prog_OTOOL
11017 if test -n "$OTOOL"; then
11018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11019 printf "%s\n" "$OTOOL" >&6; }
11021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 printf "%s\n" "no" >&6; }
11027 if test -z "$ac_cv_prog_OTOOL"; then
11029 # Extract the first word of "otool", so it can be a program name with args.
11030 set dummy otool; ac_word=$2
11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032 printf %s "checking for $ac_word... " >&6; }
11033 if test ${ac_cv_prog_ac_ct_OTOOL+y}
11035 printf %s "(cached) " >&6
11037 if test -n "$ac_ct_OTOOL"; then
11038 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11044 case $as_dir in #(((
11047 *) as_dir=$as_dir/ ;;
11049 for ac_exec_ext in '' $ac_executable_extensions; do
11050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11051 ac_cv_prog_ac_ct_OTOOL="otool"
11052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11061 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11062 if test -n "$ac_ct_OTOOL"; then
11063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11064 printf "%s\n" "$ac_ct_OTOOL" >&6; }
11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067 printf "%s\n" "no" >&6; }
11070 if test "x$ac_ct_OTOOL" = x; then
11073 case $cross_compiling:$ac_tool_warned in
11075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11076 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11077 ac_tool_warned=yes ;;
11082 OTOOL="$ac_cv_prog_OTOOL"
11085 if test -n "$ac_tool_prefix"; then
11086 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11087 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11089 printf %s "checking for $ac_word... " >&6; }
11090 if test ${ac_cv_prog_OTOOL64+y}
11092 printf %s "(cached) " >&6
11094 if test -n "$OTOOL64"; then
11095 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098 for as_dir in $PATH
11101 case $as_dir in #(((
11104 *) as_dir=$as_dir/ ;;
11106 for ac_exec_ext in '' $ac_executable_extensions; do
11107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11108 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11118 OTOOL64=$ac_cv_prog_OTOOL64
11119 if test -n "$OTOOL64"; then
11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11121 printf "%s\n" "$OTOOL64" >&6; }
11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124 printf "%s\n" "no" >&6; }
11129 if test -z "$ac_cv_prog_OTOOL64"; then
11130 ac_ct_OTOOL64=$OTOOL64
11131 # Extract the first word of "otool64", so it can be a program name with args.
11132 set dummy otool64; ac_word=$2
11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134 printf %s "checking for $ac_word... " >&6; }
11135 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11137 printf %s "(cached) " >&6
11139 if test -n "$ac_ct_OTOOL64"; then
11140 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11143 for as_dir in $PATH
11146 case $as_dir in #(((
11149 *) as_dir=$as_dir/ ;;
11151 for ac_exec_ext in '' $ac_executable_extensions; do
11152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11153 ac_cv_prog_ac_ct_OTOOL64="otool64"
11154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11163 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11164 if test -n "$ac_ct_OTOOL64"; then
11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11166 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 printf "%s\n" "no" >&6; }
11172 if test "x$ac_ct_OTOOL64" = x; then
11175 case $cross_compiling:$ac_tool_warned in
11177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11178 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11179 ac_tool_warned=yes ;;
11181 OTOOL64=$ac_ct_OTOOL64
11184 OTOOL64="$ac_cv_prog_OTOOL64"
11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11214 printf %s "checking for -single_module linker flag... " >&6; }
11215 if test ${lt_cv_apple_cc_single_mod+y}
11217 printf %s "(cached) " >&6
11219 lt_cv_apple_cc_single_mod=no
11220 if test -z "$LT_MULTI_MODULE"; then
11221 # By default we will add the -single_module flag. You can override
11222 # by either setting the environment variable LT_MULTI_MODULE
11223 # non-empty at configure time, or by adding -multi_module to the
11225 rm -rf libconftest.dylib*
11226 echo "int foo(void){return 1;}" > conftest.c
11227 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11228 -dynamiclib -Wl,-single_module conftest.c" >&5
11229 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11230 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11232 # If there is a non-empty error log, and "single_module"
11233 # appears in it, assume the flag caused a linker warning
11234 if test -s conftest.err && $GREP single_module conftest.err; then
11235 cat conftest.err >&5
11236 # Otherwise, if the output was created with a 0 exit code from
11237 # the compiler, it worked.
11238 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11239 lt_cv_apple_cc_single_mod=yes
11241 cat conftest.err >&5
11243 rm -rf libconftest.dylib*
11247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11248 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11251 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11252 if test ${lt_cv_ld_exported_symbols_list+y}
11254 printf %s "(cached) " >&6
11256 lt_cv_ld_exported_symbols_list=no
11257 save_LDFLAGS=$LDFLAGS
11258 echo "_main" > conftest.sym
11259 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11271 if ac_fn_c_try_link "$LINENO"
11273 lt_cv_ld_exported_symbols_list=yes
11275 lt_cv_ld_exported_symbols_list=no
11277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11278 conftest$ac_exeext conftest.$ac_ext
11279 LDFLAGS=$save_LDFLAGS
11282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11283 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11286 printf %s "checking for -force_load linker flag... " >&6; }
11287 if test ${lt_cv_ld_force_load+y}
11289 printf %s "(cached) " >&6
11291 lt_cv_ld_force_load=no
11292 cat > conftest.c << _LT_EOF
11293 int forced_loaded() { return 2;}
11295 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11296 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11297 echo "$AR cr libconftest.a conftest.o" >&5
11298 $AR cr libconftest.a conftest.o 2>&5
11299 echo "$RANLIB libconftest.a" >&5
11300 $RANLIB libconftest.a 2>&5
11301 cat > conftest.c << _LT_EOF
11302 int main() { return 0;}
11304 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11305 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11307 if test -s conftest.err && $GREP force_load conftest.err; then
11308 cat conftest.err >&5
11309 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11310 lt_cv_ld_force_load=yes
11312 cat conftest.err >&5
11314 rm -f conftest.err libconftest.a conftest conftest.c
11315 rm -rf conftest.dSYM
11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11319 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11321 rhapsody* | darwin1.[012])
11322 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11324 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11325 darwin*) # darwin 5.x on
11326 # if running on 10.5 or later, the deployment target defaults
11327 # to the OS version, if on x86, and 10.4, the deployment
11328 # target defaults to 10.4. Don't you love it?
11329 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11330 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
11331 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11333 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11335 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11339 if test yes = "$lt_cv_apple_cc_single_mod"; then
11340 _lt_dar_single_mod='$single_module'
11342 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11343 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11345 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11347 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11348 _lt_dsymutil='~$DSYMUTIL $lib || :'
11355 # func_munge_path_list VARIABLE PATH
11356 # -----------------------------------
11357 # VARIABLE is name of variable containing _space_ separated list of
11358 # directories to be munged by the contents of PATH, which is string
11361 # string "DIR[ DIR]" will be prepended to VARIABLE
11363 # string "DIR[ DIR]" will be appended to VARIABLE
11364 # "DIRP[:DIRP]::[DIRA:]DIRA"
11365 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11366 # "DIRA[ DIRA]" will be appended to VARIABLE
11368 # VARIABLE will be replaced by "DIR[ DIR]"
11369 func_munge_path_list ()
11375 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11378 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11381 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11382 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11385 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11390 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11392 if test "x$ac_cv_header_dlfcn_h" = xyes
11394 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11403 # Check whether --enable-static was given.
11404 if test ${enable_static+y}
11406 enableval=$enable_static; p=${PACKAGE-default}
11408 yes) enable_static=yes ;;
11409 no) enable_static=no ;;
11412 # Look at the argument we got. We use all the common list separators.
11413 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11414 for pkg in $enableval; do
11416 if test "X$pkg" = "X$p"; then
11439 enable_win32_dll=no
11442 # Check whether --enable-shared was given.
11443 if test ${enable_shared+y}
11445 enableval=$enable_shared; p=${PACKAGE-default}
11447 yes) enable_shared=yes ;;
11448 no) enable_shared=no ;;
11451 # Look at the argument we got. We use all the common list separators.
11452 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11453 for pkg in $enableval; do
11455 if test "X$pkg" = "X$p"; then
11476 # Check whether --with-pic was given.
11477 if test ${with_pic+y}
11479 withval=$with_pic; lt_p=${PACKAGE-default}
11481 yes|no) pic_mode=$withval ;;
11484 # Look at the argument we got. We use all the common list separators.
11485 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11486 for lt_pkg in $withval; do
11488 if test "X$lt_pkg" = "X$lt_p"; then
11506 # Check whether --enable-fast-install was given.
11507 if test ${enable_fast_install+y}
11509 enableval=$enable_fast_install; p=${PACKAGE-default}
11511 yes) enable_fast_install=yes ;;
11512 no) enable_fast_install=no ;;
11514 enable_fast_install=no
11515 # Look at the argument we got. We use all the common list separators.
11516 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11517 for pkg in $enableval; do
11519 if test "X$pkg" = "X$p"; then
11520 enable_fast_install=yes
11527 enable_fast_install=yes
11537 shared_archive_member_spec=
11538 case $host,$enable_shared in
11539 power*-*-aix[5-9]*,yes)
11540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11541 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11543 # Check whether --with-aix-soname was given.
11544 if test ${with_aix_soname+y}
11546 withval=$with_aix_soname; case $withval in
11550 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11553 lt_cv_with_aix_soname=$with_aix_soname
11555 if test ${lt_cv_with_aix_soname+y}
11557 printf %s "(cached) " >&6
11559 lt_cv_with_aix_soname=aix
11562 with_aix_soname=$lt_cv_with_aix_soname
11565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11566 printf "%s\n" "$with_aix_soname" >&6; }
11567 if test aix != "$with_aix_soname"; then
11568 # For the AIX way of multilib, we name the shared archive member
11569 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11570 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11571 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11572 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11573 if test 64 = "${OBJECT_MODE-32}"; then
11574 shared_archive_member_spec=shr_64
11576 shared_archive_member_spec=shr
11581 with_aix_soname=aix
11594 # This can be used to rebuild libtool when needed
11595 LIBTOOL_DEPS=$ltmain
11597 # Always use our own libtool.
11598 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11629 test -z "$LN_S" && LN_S="ln -s"
11644 if test -n "${ZSH_VERSION+set}"; then
11645 setopt NO_GLOB_SUBST
11648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11649 printf %s "checking for objdir... " >&6; }
11650 if test ${lt_cv_objdir+y}
11652 printf %s "(cached) " >&6
11654 rm -f .libs 2>/dev/null
11655 mkdir .libs 2>/dev/null
11656 if test -d .libs; then
11659 # MS-DOS does not allow filenames that begin with a dot.
11662 rmdir .libs 2>/dev/null
11664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11665 printf "%s\n" "$lt_cv_objdir" >&6; }
11666 objdir=$lt_cv_objdir
11672 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11679 # AIX sometimes has problems with the GCC collect2 program. For some
11680 # reason, if we set the COLLECT_NAMES environment variable, the problems
11681 # vanish in a puff of smoke.
11682 if test set != "${COLLECT_NAMES+set}"; then
11684 export COLLECT_NAMES
11689 # Global variables:
11691 can_build_shared=yes
11693 # All known linkers require a '.a' archive for static linking (except MSVC,
11694 # which needs '.lib').
11697 with_gnu_ld=$lt_cv_prog_gnu_ld
11702 # Set sane defaults for various variables
11703 test -z "$CC" && CC=cc
11704 test -z "$LTCC" && LTCC=$CC
11705 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11706 test -z "$LD" && LD=ld
11707 test -z "$ac_objext" && ac_objext=o
11709 func_cc_basename $compiler
11710 cc_basename=$func_cc_basename_result
11713 # Only perform the check for file, if the check method requires it
11714 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11715 case $deplibs_check_method in
11717 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11719 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11720 if test ${lt_cv_path_MAGIC_CMD+y}
11722 printf %s "(cached) " >&6
11726 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11729 lt_save_MAGIC_CMD=$MAGIC_CMD
11730 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11731 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11732 for ac_dir in $ac_dummy; do
11734 test -z "$ac_dir" && ac_dir=.
11735 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11736 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11737 if test -n "$file_magic_test_file"; then
11738 case $deplibs_check_method in
11740 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11741 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11742 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11743 $EGREP "$file_magic_regex" > /dev/null; then
11748 *** Warning: the command libtool uses to detect shared libraries,
11749 *** $file_magic_cmd, produces output that libtool cannot recognize.
11750 *** The result is that libtool may fail to recognize shared libraries
11751 *** as such. This will affect the creation of libtool libraries that
11752 *** depend on shared libraries, but programs linked with such libtool
11753 *** libraries will work regardless of this problem. Nevertheless, you
11754 *** may want to report the problem to your system manager and/or to
11755 *** bug-libtool@gnu.org
11765 MAGIC_CMD=$lt_save_MAGIC_CMD
11770 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11771 if test -n "$MAGIC_CMD"; then
11772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11773 printf "%s\n" "$MAGIC_CMD" >&6; }
11775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776 printf "%s\n" "no" >&6; }
11783 if test -z "$lt_cv_path_MAGIC_CMD"; then
11784 if test -n "$ac_tool_prefix"; then
11785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11786 printf %s "checking for file... " >&6; }
11787 if test ${lt_cv_path_MAGIC_CMD+y}
11789 printf %s "(cached) " >&6
11793 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11796 lt_save_MAGIC_CMD=$MAGIC_CMD
11797 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11798 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11799 for ac_dir in $ac_dummy; do
11801 test -z "$ac_dir" && ac_dir=.
11802 if test -f "$ac_dir/file"; then
11803 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11804 if test -n "$file_magic_test_file"; then
11805 case $deplibs_check_method in
11807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11808 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11810 $EGREP "$file_magic_regex" > /dev/null; then
11815 *** Warning: the command libtool uses to detect shared libraries,
11816 *** $file_magic_cmd, produces output that libtool cannot recognize.
11817 *** The result is that libtool may fail to recognize shared libraries
11818 *** as such. This will affect the creation of libtool libraries that
11819 *** depend on shared libraries, but programs linked with such libtool
11820 *** libraries will work regardless of this problem. Nevertheless, you
11821 *** may want to report the problem to your system manager and/or to
11822 *** bug-libtool@gnu.org
11832 MAGIC_CMD=$lt_save_MAGIC_CMD
11837 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11838 if test -n "$MAGIC_CMD"; then
11839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11840 printf "%s\n" "$MAGIC_CMD" >&6; }
11842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 printf "%s\n" "no" >&6; }
11856 # Use C for the default configuration in the libtool script
11860 ac_cpp='$CPP $CPPFLAGS'
11861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11866 # Source file extension for C test sources.
11869 # Object file extension for compiled C test sources.
11873 # Code to be used in simple compile tests
11874 lt_simple_compile_test_code="int some_variable = 0;"
11876 # Code to be used in simple link tests
11877 lt_simple_link_test_code='int main(){return(0);}'
11885 # If no C compiler was specified, use CC.
11888 # If no C compiler flags were specified, use CFLAGS.
11889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11891 # Allow CC to be a program name with arguments.
11894 # Save the default compiler, since it gets overwritten when the other
11895 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11896 compiler_DEFAULT=$CC
11898 # save warnings/boilerplate of simple test code
11899 ac_outfile=conftest.$ac_objext
11900 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11901 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11902 _lt_compiler_boilerplate=`cat conftest.err`
11905 ac_outfile=conftest.$ac_objext
11906 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11907 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11908 _lt_linker_boilerplate=`cat conftest.err`
11913 ## There is no encapsulation within the following macros, do not change
11914 ## the running order or otherwise move them around unless you know exactly
11915 ## what you are doing...
11916 if test -n "$compiler"; then
11918 lt_prog_compiler_no_builtin_flag=
11920 if test yes = "$GCC"; then
11921 case $cc_basename in
11923 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11925 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11929 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11930 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11932 printf %s "(cached) " >&6
11934 lt_cv_prog_compiler_rtti_exceptions=no
11935 ac_outfile=conftest.$ac_objext
11936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11937 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11938 # Insert the option either (1) after the last *FLAGS variable, or
11939 # (2) before a word containing "conftest.", or (3) at the end.
11940 # Note that $ac_compile itself does not contain backslashes and begins
11941 # with a dollar sign (not a hyphen), so the echo should work correctly.
11942 # The option is referenced via a variable to avoid confusing sed.
11943 lt_compile=`echo "$ac_compile" | $SED \
11944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11946 -e 's:$: $lt_compiler_flag:'`
11947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11948 (eval "$lt_compile" 2>conftest.err)
11950 cat conftest.err >&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 if (exit $ac_status) && test -s "$ac_outfile"; then
11953 # The compiler can only warn and ignore the option if not recognized
11954 # So say no if there are warnings other than the usual output.
11955 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11957 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11958 lt_cv_prog_compiler_rtti_exceptions=yes
11964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11965 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11967 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11968 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11980 lt_prog_compiler_wl=
11981 lt_prog_compiler_pic=
11982 lt_prog_compiler_static=
11985 if test yes = "$GCC"; then
11986 lt_prog_compiler_wl='-Wl,'
11987 lt_prog_compiler_static='-static'
11991 # All AIX code is PIC.
11992 if test ia64 = "$host_cpu"; then
11993 # AIX 5 now supports IA64 processor
11994 lt_prog_compiler_static='-Bstatic'
11996 lt_prog_compiler_pic='-fPIC'
12002 # see comment about AmigaOS4 .so support
12003 lt_prog_compiler_pic='-fPIC'
12006 # FIXME: we need at least 68020 code to build shared libraries, but
12007 # adding the '-m68020' flag to GCC prevents building anything better,
12009 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12014 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12015 # PIC is the default for these OSes.
12018 mingw* | cygwin* | pw32* | os2* | cegcc*)
12019 # This hack is so that the source file can tell whether it is being
12020 # built for inclusion in a dll (and should export symbols for example).
12021 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12022 # (--disable-auto-import) libraries
12023 lt_prog_compiler_pic='-DDLL_EXPORT'
12026 lt_prog_compiler_static='$wl-static'
12031 darwin* | rhapsody*)
12032 # PIC is the default on this platform
12033 # Common symbols not allowed in MH_DYLIB files
12034 lt_prog_compiler_pic='-fno-common'
12038 # PIC is the default for Haiku.
12039 # The "-static" flag exists, but is broken.
12040 lt_prog_compiler_static=
12044 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12045 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12046 # sets the default TLS model and affects inlining.
12052 lt_prog_compiler_pic='-fPIC'
12058 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12059 # Instead, we relocate shared libraries at runtime.
12063 # Just because we use GCC doesn't mean we suddenly get shared libraries
12064 # on systems that don't support them.
12065 lt_prog_compiler_can_build_shared=no
12070 # QNX uses GNU C++, but need to define -shared option too, otherwise
12071 # it will coredump.
12072 lt_prog_compiler_pic='-fPIC -shared'
12076 if test -d /usr/nec; then
12077 lt_prog_compiler_pic=-Kconform_pic
12082 lt_prog_compiler_pic='-fPIC'
12086 case $cc_basename in
12087 nvcc*) # Cuda Compiler Driver 2.2
12088 lt_prog_compiler_wl='-Xlinker '
12089 if test -n "$lt_prog_compiler_pic"; then
12090 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12095 # PORTME Check for flag to pass linker flags through the system compiler.
12098 lt_prog_compiler_wl='-Wl,'
12099 if test ia64 = "$host_cpu"; then
12100 # AIX 5 now supports IA64 processor
12101 lt_prog_compiler_static='-Bstatic'
12103 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12107 darwin* | rhapsody*)
12108 # PIC is the default on this platform
12109 # Common symbols not allowed in MH_DYLIB files
12110 lt_prog_compiler_pic='-fno-common'
12111 case $cc_basename in
12113 # NAG Fortran compiler
12114 lt_prog_compiler_wl='-Wl,-Wl,,'
12115 lt_prog_compiler_pic='-PIC'
12116 lt_prog_compiler_static='-Bstatic'
12121 mingw* | cygwin* | pw32* | os2* | cegcc*)
12122 # This hack is so that the source file can tell whether it is being
12123 # built for inclusion in a dll (and should export symbols for example).
12124 lt_prog_compiler_pic='-DDLL_EXPORT'
12127 lt_prog_compiler_static='$wl-static'
12132 hpux9* | hpux10* | hpux11*)
12133 lt_prog_compiler_wl='-Wl,'
12134 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12135 # not for PA HP-UX.
12141 lt_prog_compiler_pic='+Z'
12144 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12145 lt_prog_compiler_static='$wl-a ${wl}archive'
12148 irix5* | irix6* | nonstopux*)
12149 lt_prog_compiler_wl='-Wl,'
12150 # PIC (with -KPIC) is the default.
12151 lt_prog_compiler_static='-non_shared'
12154 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12155 case $cc_basename in
12156 # old Intel for x86_64, which still supported -KPIC.
12158 lt_prog_compiler_wl='-Wl,'
12159 lt_prog_compiler_pic='-KPIC'
12160 lt_prog_compiler_static='-static'
12162 # flang / f18. f95 an alias for gfortran or flang on Debian
12163 flang* | f18* | f95*)
12164 lt_prog_compiler_wl='-Wl,'
12165 lt_prog_compiler_pic='-fPIC'
12166 lt_prog_compiler_static='-static'
12168 # icc used to be incompatible with GCC.
12169 # ICC 10 doesn't accept -KPIC any more.
12171 lt_prog_compiler_wl='-Wl,'
12172 lt_prog_compiler_pic='-fPIC'
12173 lt_prog_compiler_static='-static'
12175 # Lahey Fortran 8.1.
12177 lt_prog_compiler_wl='-Wl,'
12178 lt_prog_compiler_pic='--shared'
12179 lt_prog_compiler_static='--static'
12182 # NAG Fortran compiler
12183 lt_prog_compiler_wl='-Wl,-Wl,,'
12184 lt_prog_compiler_pic='-PIC'
12185 lt_prog_compiler_static='-Bstatic'
12188 # Fabrice Bellard et al's Tiny C Compiler
12189 lt_prog_compiler_wl='-Wl,'
12190 lt_prog_compiler_pic='-fPIC'
12191 lt_prog_compiler_static='-static'
12193 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12194 # Portland Group compilers (*not* the Pentium gcc compiler,
12195 # which looks to be a dead project)
12196 lt_prog_compiler_wl='-Wl,'
12197 lt_prog_compiler_pic='-fpic'
12198 lt_prog_compiler_static='-Bstatic'
12201 lt_prog_compiler_wl='-Wl,'
12202 # All Alpha code is PIC.
12203 lt_prog_compiler_static='-non_shared'
12205 xl* | bgxl* | bgf* | mpixl*)
12206 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12207 lt_prog_compiler_wl='-Wl,'
12208 lt_prog_compiler_pic='-qpic'
12209 lt_prog_compiler_static='-qstaticlink'
12212 case `$CC -V 2>&1 | sed 5q` in
12213 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12214 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12215 lt_prog_compiler_pic='-KPIC'
12216 lt_prog_compiler_static='-Bstatic'
12217 lt_prog_compiler_wl=''
12219 *Sun\ F* | *Sun*Fortran*)
12220 lt_prog_compiler_pic='-KPIC'
12221 lt_prog_compiler_static='-Bstatic'
12222 lt_prog_compiler_wl='-Qoption ld '
12226 lt_prog_compiler_pic='-KPIC'
12227 lt_prog_compiler_static='-Bstatic'
12228 lt_prog_compiler_wl='-Wl,'
12230 *Intel*\ [CF]*Compiler*)
12231 lt_prog_compiler_wl='-Wl,'
12232 lt_prog_compiler_pic='-fPIC'
12233 lt_prog_compiler_static='-static'
12236 lt_prog_compiler_wl='-Wl,'
12237 lt_prog_compiler_pic='-fpic'
12238 lt_prog_compiler_static='-Bstatic'
12246 lt_prog_compiler_pic='-KPIC'
12247 lt_prog_compiler_static='-Bstatic'
12251 # QNX uses GNU C++, but need to define -shared option too, otherwise
12252 # it will coredump.
12253 lt_prog_compiler_pic='-fPIC -shared'
12256 osf3* | osf4* | osf5*)
12257 lt_prog_compiler_wl='-Wl,'
12258 # All OSF/1 code is PIC.
12259 lt_prog_compiler_static='-non_shared'
12263 lt_prog_compiler_static='-non_shared'
12267 lt_prog_compiler_pic='-KPIC'
12268 lt_prog_compiler_static='-Bstatic'
12269 case $cc_basename in
12270 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12271 lt_prog_compiler_wl='-Qoption ld ';;
12273 lt_prog_compiler_wl='-Wl,';;
12278 lt_prog_compiler_wl='-Qoption ld '
12279 lt_prog_compiler_pic='-PIC'
12280 lt_prog_compiler_static='-Bstatic'
12283 sysv4 | sysv4.2uw2* | sysv4.3*)
12284 lt_prog_compiler_wl='-Wl,'
12285 lt_prog_compiler_pic='-KPIC'
12286 lt_prog_compiler_static='-Bstatic'
12290 if test -d /usr/nec; then
12291 lt_prog_compiler_pic='-Kconform_pic'
12292 lt_prog_compiler_static='-Bstatic'
12296 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12297 lt_prog_compiler_wl='-Wl,'
12298 lt_prog_compiler_pic='-KPIC'
12299 lt_prog_compiler_static='-Bstatic'
12303 lt_prog_compiler_wl='-Wl,'
12304 lt_prog_compiler_can_build_shared=no
12308 lt_prog_compiler_pic='-pic'
12309 lt_prog_compiler_static='-Bstatic'
12313 lt_prog_compiler_can_build_shared=no
12319 # For platforms that do not support PIC, -DPIC is meaningless:
12321 lt_prog_compiler_pic=
12324 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12329 printf %s "checking for $compiler option to produce PIC... " >&6; }
12330 if test ${lt_cv_prog_compiler_pic+y}
12332 printf %s "(cached) " >&6
12334 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12337 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12338 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12341 # Check to make sure the PIC flag actually works.
12343 if test -n "$lt_prog_compiler_pic"; then
12344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12345 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12346 if test ${lt_cv_prog_compiler_pic_works+y}
12348 printf %s "(cached) " >&6
12350 lt_cv_prog_compiler_pic_works=no
12351 ac_outfile=conftest.$ac_objext
12352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12353 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12354 # Insert the option either (1) after the last *FLAGS variable, or
12355 # (2) before a word containing "conftest.", or (3) at the end.
12356 # Note that $ac_compile itself does not contain backslashes and begins
12357 # with a dollar sign (not a hyphen), so the echo should work correctly.
12358 # The option is referenced via a variable to avoid confusing sed.
12359 lt_compile=`echo "$ac_compile" | $SED \
12360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12362 -e 's:$: $lt_compiler_flag:'`
12363 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12364 (eval "$lt_compile" 2>conftest.err)
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 if (exit $ac_status) && test -s "$ac_outfile"; then
12369 # The compiler can only warn and ignore the option if not recognized
12370 # So say no if there are warnings other than the usual output.
12371 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12373 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12374 lt_cv_prog_compiler_pic_works=yes
12380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12381 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12383 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12384 case $lt_prog_compiler_pic in
12386 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12389 lt_prog_compiler_pic=
12390 lt_prog_compiler_can_build_shared=no
12406 # Check to make sure the static flag actually works.
12408 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12410 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12411 if test ${lt_cv_prog_compiler_static_works+y}
12413 printf %s "(cached) " >&6
12415 lt_cv_prog_compiler_static_works=no
12416 save_LDFLAGS=$LDFLAGS
12417 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12418 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12419 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12420 # The linker can only warn and ignore the option if not recognized
12421 # So say no if there are warnings
12422 if test -s conftest.err; then
12423 # Append any errors to the config.log.
12424 cat conftest.err 1>&5
12425 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12427 if diff conftest.exp conftest.er2 >/dev/null; then
12428 lt_cv_prog_compiler_static_works=yes
12431 lt_cv_prog_compiler_static_works=yes
12435 LDFLAGS=$save_LDFLAGS
12438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12439 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12441 if test yes = "$lt_cv_prog_compiler_static_works"; then
12444 lt_prog_compiler_static=
12453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12454 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12455 if test ${lt_cv_prog_compiler_c_o+y}
12457 printf %s "(cached) " >&6
12459 lt_cv_prog_compiler_c_o=no
12460 $RM -r conftest 2>/dev/null
12464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12466 lt_compiler_flag="-o out/conftest2.$ac_objext"
12467 # Insert the option either (1) after the last *FLAGS variable, or
12468 # (2) before a word containing "conftest.", or (3) at the end.
12469 # Note that $ac_compile itself does not contain backslashes and begins
12470 # with a dollar sign (not a hyphen), so the echo should work correctly.
12471 lt_compile=`echo "$ac_compile" | $SED \
12472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12474 -e 's:$: $lt_compiler_flag:'`
12475 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12476 (eval "$lt_compile" 2>out/conftest.err)
12478 cat out/conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12482 # The compiler can only warn and ignore the option if not recognized
12483 # So say no if there are warnings
12484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12485 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12486 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12487 lt_cv_prog_compiler_c_o=yes
12492 # SGI C++ compiler will create directory out/ii_files/ for
12493 # template instantiation
12494 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12495 $RM out/* && rmdir out
12501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12502 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12510 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12511 if test ${lt_cv_prog_compiler_c_o+y}
12513 printf %s "(cached) " >&6
12515 lt_cv_prog_compiler_c_o=no
12516 $RM -r conftest 2>/dev/null
12520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12522 lt_compiler_flag="-o out/conftest2.$ac_objext"
12523 # Insert the option either (1) after the last *FLAGS variable, or
12524 # (2) before a word containing "conftest.", or (3) at the end.
12525 # Note that $ac_compile itself does not contain backslashes and begins
12526 # with a dollar sign (not a hyphen), so the echo should work correctly.
12527 lt_compile=`echo "$ac_compile" | $SED \
12528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12530 -e 's:$: $lt_compiler_flag:'`
12531 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12532 (eval "$lt_compile" 2>out/conftest.err)
12534 cat out/conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12538 # The compiler can only warn and ignore the option if not recognized
12539 # So say no if there are warnings
12540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12541 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12542 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12543 lt_cv_prog_compiler_c_o=yes
12548 # SGI C++ compiler will create directory out/ii_files/ for
12549 # template instantiation
12550 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12551 $RM out/* && rmdir out
12557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12558 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12563 hard_links=nottested
12564 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12565 # do not overwrite the value of need_locks provided by the user
12566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12567 printf %s "checking if we can lock with hard links... " >&6; }
12570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12572 ln conftest.a conftest.b 2>&5 || hard_links=no
12573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12575 printf "%s\n" "$hard_links" >&6; }
12576 if test no = "$hard_links"; then
12577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12578 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12591 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12594 allow_undefined_flag=
12595 always_export_symbols=no
12597 archive_expsym_cmds=
12598 compiler_needs_object=no
12599 enable_shared_with_static_runtimes=no
12600 export_dynamic_flag_spec=
12601 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12602 hardcode_automatic=no
12604 hardcode_direct_absolute=no
12605 hardcode_libdir_flag_spec=
12606 hardcode_libdir_separator=
12607 hardcode_minus_L=no
12608 hardcode_shlibpath_var=unsupported
12610 link_all_deplibs=unknown
12612 module_expsym_cmds=
12613 old_archive_from_new_cmds=
12614 old_archive_from_expsyms_cmds=
12615 thread_safe_flag_spec=
12616 whole_archive_flag_spec=
12617 # include_expsyms should be a list of space-separated symbols to be *always*
12618 # included in the symbol list
12620 # exclude_expsyms can be an extended regexp of symbols to exclude
12621 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12622 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12623 # as well as any symbol that contains 'd'.
12624 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12625 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12626 # platforms (ab)use it in PIC code, but their linkers get confused if
12627 # the symbol is explicitly referenced. Since portable code cannot
12628 # rely on this symbol name, it's probably fine to never include it in
12629 # preloaded symbol tables.
12630 # Exclude shared library initialization/finalization symbols.
12631 extract_expsyms_cmds=
12634 cygwin* | mingw* | pw32* | cegcc*)
12635 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12636 # When not using gcc, we currently assume that we are using
12637 # Microsoft Visual C++.
12638 if test yes != "$GCC"; then
12643 # we just hope/assume this is gcc and not c89 (= MSVC++)
12646 openbsd* | bitrig*)
12649 linux* | k*bsd*-gnu | gnu*)
12650 link_all_deplibs=no
12656 # On some targets, GNU ld is compatible enough with the native linker
12657 # that we're better off using the native interface for both.
12658 lt_use_gnu_ld_interface=no
12659 if test yes = "$with_gnu_ld"; then
12662 # The AIX port of GNU ld has always aspired to compatibility
12663 # with the native linker. However, as the warning in the GNU ld
12664 # block says, versions before 2.19.5* couldn't really create working
12665 # shared libraries, regardless of the interface used.
12666 case `$LD -v 2>&1` in
12667 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12668 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12669 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12671 lt_use_gnu_ld_interface=yes
12676 lt_use_gnu_ld_interface=yes
12681 if test yes = "$lt_use_gnu_ld_interface"; then
12682 # If archive_cmds runs LD, not CC, wlarc should be empty
12685 # Set some defaults for GNU ld with shared library support. These
12686 # are reset later if shared libraries are not supported. Putting them
12687 # here allows them to be overridden if necessary.
12688 runpath_var=LD_RUN_PATH
12689 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12690 export_dynamic_flag_spec='$wl--export-dynamic'
12691 # ancient GNU ld didn't support --whole-archive et. al.
12692 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12693 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12695 whole_archive_flag_spec=
12697 supports_anon_versioning=no
12698 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12699 *GNU\ gold*) supports_anon_versioning=yes ;;
12700 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12701 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12702 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12703 *\ 2.11.*) ;; # other 2.11 versions
12704 *) supports_anon_versioning=yes ;;
12707 # See if GNU ld supports shared libraries.
12710 # On AIX/PPC, the GNU linker is very broken
12711 if test ia64 != "$host_cpu"; then
12715 *** Warning: the GNU linker, at least up to release 2.19, is reported
12716 *** to be unable to reliably create shared libraries on AIX.
12717 *** Therefore, libtool is disabling shared libraries support. If you
12718 *** really care for shared libraries, you may want to install binutils
12719 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12720 *** You will then need to restart the configuration process.
12729 # see comment about AmigaOS4 .so support
12730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12731 archive_expsym_cmds=''
12734 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)'
12735 hardcode_libdir_flag_spec='-L$libdir'
12736 hardcode_minus_L=yes
12742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12743 allow_undefined_flag=unsupported
12744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12745 # support --undefined. This deserves some investigation. FIXME
12746 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12752 cygwin* | mingw* | pw32* | cegcc*)
12753 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12754 # as there is no search path for DLLs.
12755 hardcode_libdir_flag_spec='-L$libdir'
12756 export_dynamic_flag_spec='$wl--export-all-symbols'
12757 allow_undefined_flag=unsupported
12758 always_export_symbols=no
12759 enable_shared_with_static_runtimes=yes
12760 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'
12761 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12763 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12765 # If the export-symbols file already is a .def file, use it as
12766 # is; otherwise, prepend EXPORTS...
12767 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12768 cp $export_symbols $output_objdir/$soname.def;
12770 echo EXPORTS > $output_objdir/$soname.def;
12771 cat $export_symbols >> $output_objdir/$soname.def;
12773 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12781 link_all_deplibs=yes
12785 hardcode_libdir_flag_spec='-L$libdir'
12786 hardcode_minus_L=yes
12787 allow_undefined_flag=unsupported
12789 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12790 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12791 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12792 $ECHO EXPORTS >> $output_objdir/$libname.def~
12793 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12794 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12795 emximp -o $lib $output_objdir/$libname.def'
12796 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12797 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12798 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12799 $ECHO EXPORTS >> $output_objdir/$libname.def~
12800 prefix_cmds="$SED"~
12801 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12802 prefix_cmds="$prefix_cmds -e 1d";
12804 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12805 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12806 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12807 emximp -o $lib $output_objdir/$libname.def'
12808 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12809 enable_shared_with_static_runtimes=yes
12814 hardcode_shlibpath_var=no
12815 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12816 export_dynamic_flag_spec='$wl-E'
12817 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12818 # Instead, shared libraries are loaded at an image base (0x10000000 by
12819 # default) and relocated if they conflict, which is a slow very memory
12820 # consuming and fragmenting process. To avoid this, we pick a random,
12821 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12822 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12823 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12824 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'
12827 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12829 if test linux-dietlibc = "$host_os"; then
12830 case $cc_basename in
12831 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12834 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12835 && test no = "$tmp_diet"
12837 tmp_addflag=' $pic_flag'
12838 tmp_sharedflag='-shared'
12839 case $cc_basename,$host_cpu in
12840 pgcc*) # Portland Group C compiler
12841 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'
12842 tmp_addflag=' $pic_flag'
12844 pgf77* | pgf90* | pgf95* | pgfortran*)
12845 # Portland Group f77 and f90 compilers
12846 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'
12847 tmp_addflag=' $pic_flag -Mnomain' ;;
12848 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12849 tmp_addflag=' -i_dynamic' ;;
12850 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12851 tmp_addflag=' -i_dynamic -nofor_main' ;;
12852 ifc* | ifort*) # Intel Fortran compiler
12853 tmp_addflag=' -nofor_main' ;;
12854 lf95*) # Lahey Fortran 8.1
12855 whole_archive_flag_spec=
12856 tmp_sharedflag='--shared' ;;
12857 nagfor*) # NAGFOR 5.3
12858 tmp_sharedflag='-Wl,-shared' ;;
12859 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12860 tmp_sharedflag='-qmkshrobj'
12862 nvcc*) # Cuda Compiler Driver 2.2
12863 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'
12864 compiler_needs_object=yes
12867 case `$CC -V 2>&1 | sed 5q` in
12868 *Sun\ C*) # Sun C 5.9
12869 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'
12870 compiler_needs_object=yes
12871 tmp_sharedflag='-G' ;;
12872 *Sun\ F*) # Sun Fortran 8.3
12873 tmp_sharedflag='-G' ;;
12875 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12877 if test yes = "$supports_anon_versioning"; then
12878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12880 echo "local: *; };" >> $output_objdir/$libname.ver~
12881 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12884 case $cc_basename in
12886 export_dynamic_flag_spec='-rdynamic'
12888 xlf* | bgf* | bgxlf* | mpixlf*)
12889 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12890 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12891 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12892 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12893 if test yes = "$supports_anon_versioning"; then
12894 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12895 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12896 echo "local: *; };" >> $output_objdir/$libname.ver~
12897 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12906 netbsd* | netbsdelf*-gnu)
12907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12908 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12911 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12912 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12917 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12921 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12922 *** create shared libraries on Solaris systems. Therefore, libtool
12923 *** is disabling shared libraries support. We urge you to upgrade GNU
12924 *** binutils to release 2.9.1 or newer. Another option is to modify
12925 *** your PATH or compiler configuration so that the native linker is
12926 *** used, and then restart.
12929 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12930 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12931 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12937 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12938 case `$LD -v 2>&1` in
12939 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12943 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12944 *** reliably create shared libraries on SCO systems. Therefore, libtool
12945 *** is disabling shared libraries support. We urge you to upgrade GNU
12946 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12947 *** your PATH or compiler configuration so that the native linker is
12948 *** used, and then restart.
12953 # For security reasons, it is highly recommended that you always
12954 # use absolute paths for naming shared libraries, and exclude the
12955 # DT_RUNPATH tag from executables and libraries. But doing so
12956 # requires that you compile everything twice, which is a pain.
12957 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12958 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12960 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12969 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12971 hardcode_direct=yes
12972 hardcode_shlibpath_var=no
12976 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12977 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12978 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12985 if test no = "$ld_shlibs"; then
12987 hardcode_libdir_flag_spec=
12988 export_dynamic_flag_spec=
12989 whole_archive_flag_spec=
12992 # PORTME fill in a description of your system's linker (not GNU ld)
12995 allow_undefined_flag=unsupported
12996 always_export_symbols=yes
12997 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'
12998 # Note: this linker hardcodes the directories in LIBPATH if there
12999 # are no directories specified by -L.
13000 hardcode_minus_L=yes
13001 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13002 # Neither direct hardcoding nor static linking is supported with a
13004 hardcode_direct=unsupported
13009 if test ia64 = "$host_cpu"; then
13010 # On IA64, the linker does run time linking by default, so we don't
13011 # have to do anything special.
13012 aix_use_runtimelinking=no
13013 exp_sym_flag='-Bexport'
13016 # If we're using GNU nm, then we don't want the "-C" option.
13017 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13018 # Without the "-l" option, or with the "-B" option, AIX nm treats
13019 # weak defined symbols like other global defined symbols, whereas
13020 # GNU nm marks them as "W".
13021 # While the 'weak' keyword is ignored in the Export File, we need
13022 # it in the Import File for the 'aix-soname' feature, so we have
13023 # to replace the "-B" option with "-P" for AIX nm.
13024 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13025 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'
13027 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 == "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'
13029 aix_use_runtimelinking=no
13031 # Test if we are trying to use run time linking or normal
13032 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13033 # have runtime linking enabled, and use it for executables.
13034 # For shared libraries, we enable/disable runtime linking
13035 # depending on the kind of the shared library created -
13036 # when "with_aix_soname,aix_use_runtimelinking" is:
13037 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13038 # "aix,yes" lib.so shared, rtl:yes, for executables
13039 # lib.a static archive
13040 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13041 # lib.a(lib.so.V) shared, rtl:no, for executables
13042 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13043 # lib.a(lib.so.V) shared, rtl:no
13044 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13045 # lib.a static archive
13046 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13047 for ld_flag in $LDFLAGS; do
13048 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13049 aix_use_runtimelinking=yes
13053 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13054 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13055 # so we don't have lib.a shared libs to link our executables.
13056 # We have to force runtime linking in this case.
13057 aix_use_runtimelinking=yes
13058 LDFLAGS="$LDFLAGS -Wl,-brtl"
13063 exp_sym_flag='-bexport'
13064 no_entry_flag='-bnoentry'
13067 # When large executables or shared objects are built, AIX ld can
13068 # have problems creating the table of contents. If linking a library
13069 # or program results in "error TOC overflow" add -mminimal-toc to
13070 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13071 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13074 hardcode_direct=yes
13075 hardcode_direct_absolute=yes
13076 hardcode_libdir_separator=':'
13077 link_all_deplibs=yes
13078 file_list_spec='$wl-f,'
13079 case $with_aix_soname,$aix_use_runtimelinking in
13080 aix,*) ;; # traditional, no import file
13081 svr4,* | *,yes) # use import file
13082 # The Import File defines what to hardcode.
13084 hardcode_direct_absolute=no
13088 if test yes = "$GCC"; then
13089 case $host_os in aix4.[012]|aix4.[012].*)
13090 # We only want to do this on AIX 4.2 and lower, the check
13091 # below for broken collect2 doesn't work under 4.3+
13092 collect2name=`$CC -print-prog-name=collect2`
13093 if test -f "$collect2name" &&
13094 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13096 # We have reworked collect2
13099 # We have old collect2
13100 hardcode_direct=unsupported
13101 # It fails to find uninstalled libraries when the uninstalled
13102 # path is not listed in the libpath. Setting hardcode_minus_L
13103 # to unsupported forces relinking
13104 hardcode_minus_L=yes
13105 hardcode_libdir_flag_spec='-L$libdir'
13106 hardcode_libdir_separator=
13110 shared_flag='-shared'
13111 if test yes = "$aix_use_runtimelinking"; then
13112 shared_flag="$shared_flag "'$wl-G'
13114 # Need to ensure runtime linking is disabled for the traditional
13115 # shared library, or the linker may eventually find shared libraries
13116 # /with/ Import File - we do not want to mix them.
13117 shared_flag_aix='-shared'
13118 shared_flag_svr4='-shared $wl-G'
13121 if test ia64 = "$host_cpu"; then
13122 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13123 # chokes on -Wl,-G. The following line is correct:
13126 if test yes = "$aix_use_runtimelinking"; then
13127 shared_flag='$wl-G'
13129 shared_flag='$wl-bM:SRE'
13131 shared_flag_aix='$wl-bM:SRE'
13132 shared_flag_svr4='$wl-G'
13136 export_dynamic_flag_spec='$wl-bexpall'
13137 # It seems that -bexpall does not export symbols beginning with
13138 # underscore (_), so it is better to generate a list of symbols to export.
13139 always_export_symbols=yes
13140 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13141 # Warning - without using the other runtime loading flags (-brtl),
13142 # -berok will link without error, but may produce a broken library.
13143 allow_undefined_flag='-berok'
13144 # Determine the default libpath from the value encoded in an
13145 # empty executable.
13146 if test set = "${lt_cv_aix_libpath+set}"; then
13147 aix_libpath=$lt_cv_aix_libpath
13149 if test ${lt_cv_aix_libpath_+y}
13151 printf %s "(cached) " >&6
13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13164 if ac_fn_c_try_link "$LINENO"
13167 lt_aix_libpath_sed='
13168 /Import File Strings/,/^$/ {
13170 s/^0 *\([^ ]*\) *$/\1/
13174 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13175 # Check for a 64-bit object if we didn't find anything.
13176 if test -z "$lt_cv_aix_libpath_"; then
13177 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13181 conftest$ac_exeext conftest.$ac_ext
13182 if test -z "$lt_cv_aix_libpath_"; then
13183 lt_cv_aix_libpath_=/usr/lib:/lib
13188 aix_libpath=$lt_cv_aix_libpath_
13191 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13192 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
13194 if test ia64 = "$host_cpu"; then
13195 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13196 allow_undefined_flag="-z nodefs"
13197 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"
13199 # Determine the default libpath from the value encoded in an
13200 # empty executable.
13201 if test set = "${lt_cv_aix_libpath+set}"; then
13202 aix_libpath=$lt_cv_aix_libpath
13204 if test ${lt_cv_aix_libpath_+y}
13206 printf %s "(cached) " >&6
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13219 if ac_fn_c_try_link "$LINENO"
13222 lt_aix_libpath_sed='
13223 /Import File Strings/,/^$/ {
13225 s/^0 *\([^ ]*\) *$/\1/
13229 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13230 # Check for a 64-bit object if we didn't find anything.
13231 if test -z "$lt_cv_aix_libpath_"; then
13232 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13236 conftest$ac_exeext conftest.$ac_ext
13237 if test -z "$lt_cv_aix_libpath_"; then
13238 lt_cv_aix_libpath_=/usr/lib:/lib
13243 aix_libpath=$lt_cv_aix_libpath_
13246 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13247 # Warning - without using the other run time loading flags,
13248 # -berok will link without error, but may produce a broken library.
13249 no_undefined_flag=' $wl-bernotok'
13250 allow_undefined_flag=' $wl-berok'
13251 if test yes = "$with_gnu_ld"; then
13252 # We only use this code for GNU lds that support --whole-archive.
13253 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13255 # Exported symbols can be pulled into shared objects from archives
13256 whole_archive_flag_spec='$convenience'
13258 archive_cmds_need_lc=yes
13259 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13260 # -brtl affects multiple linker settings, -berok does not and is overridden later
13261 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13262 if test svr4 != "$with_aix_soname"; then
13263 # This is similar to how AIX traditionally builds its shared libraries.
13264 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'
13266 if test aix != "$with_aix_soname"; then
13267 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'
13269 # used by -dlpreopen to get the symbols
13270 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13272 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13280 # see comment about AmigaOS4 .so support
13281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13282 archive_expsym_cmds=''
13285 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)'
13286 hardcode_libdir_flag_spec='-L$libdir'
13287 hardcode_minus_L=yes
13293 export_dynamic_flag_spec=-rdynamic
13296 cygwin* | mingw* | pw32* | cegcc*)
13297 # When not using gcc, we currently assume that we are using
13298 # Microsoft Visual C++.
13299 # hardcode_libdir_flag_spec is actually meaningless, as there is
13300 # no search path for DLLs.
13301 case $cc_basename in
13304 hardcode_libdir_flag_spec=' '
13305 allow_undefined_flag=unsupported
13306 always_export_symbols=yes
13308 # Tell ltmain to make .lib files, not .a files.
13310 # Tell ltmain to make .dll files, not .so files.
13312 # FIXME: Setting linknames here is a bad hack.
13313 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13314 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13315 cp "$export_symbols" "$output_objdir/$soname.def";
13316 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13318 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13320 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13322 # The linker will not automatically build a static lib if we build a DLL.
13323 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13324 enable_shared_with_static_runtimes=yes
13325 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13326 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13328 old_postinstall_cmds='chmod 644 $oldlib'
13329 postlink_cmds='lt_outputfile="@OUTPUT@"~
13330 lt_tool_outputfile="@TOOL_OUTPUT@"~
13331 case $lt_outputfile in
13334 lt_outputfile=$lt_outputfile.exe
13335 lt_tool_outputfile=$lt_tool_outputfile.exe
13338 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13339 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13340 $RM "$lt_outputfile.manifest";
13344 # Assume MSVC wrapper
13345 hardcode_libdir_flag_spec=' '
13346 allow_undefined_flag=unsupported
13347 # Tell ltmain to make .lib files, not .a files.
13349 # Tell ltmain to make .dll files, not .so files.
13351 # FIXME: Setting linknames here is a bad hack.
13352 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13353 # The linker will automatically build a .lib file if we build a DLL.
13354 old_archive_from_new_cmds='true'
13355 # FIXME: Should let the user specify the lib program.
13356 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13357 enable_shared_with_static_runtimes=yes
13362 darwin* | rhapsody*)
13365 archive_cmds_need_lc=no
13367 hardcode_automatic=yes
13368 hardcode_shlibpath_var=unsupported
13369 if test yes = "$lt_cv_ld_force_load"; then
13370 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\"`'
13373 whole_archive_flag_spec=''
13375 link_all_deplibs=yes
13376 allow_undefined_flag=$_lt_dar_allow_undefined
13377 case $cc_basename in
13378 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13379 *) _lt_dar_can_shared=$GCC ;;
13381 if test yes = "$_lt_dar_can_shared"; then
13382 output_verbose_link_cmd=func_echo_all
13383 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13384 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13385 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"
13386 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"
13395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13396 hardcode_libdir_flag_spec='-L$libdir'
13397 hardcode_shlibpath_var=no
13400 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13401 # support. Future versions do this automatically, but an explicit c++rt0.o
13402 # does not break anything, and helps significantly (at the cost of a little
13405 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13406 hardcode_libdir_flag_spec='-R$libdir'
13407 hardcode_direct=yes
13408 hardcode_shlibpath_var=no
13411 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13414 hardcode_direct=yes
13415 hardcode_minus_L=yes
13416 hardcode_shlibpath_var=no
13419 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13420 freebsd* | dragonfly*)
13421 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13422 hardcode_libdir_flag_spec='-R$libdir'
13423 hardcode_direct=yes
13424 hardcode_shlibpath_var=no
13428 if test yes = "$GCC"; then
13429 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'
13431 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'
13433 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13434 hardcode_libdir_separator=:
13435 hardcode_direct=yes
13437 # hardcode_minus_L: Not really in the search PATH,
13438 # but as the default location of the library.
13439 hardcode_minus_L=yes
13440 export_dynamic_flag_spec='$wl-E'
13444 if test yes,no = "$GCC,$with_gnu_ld"; then
13445 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13447 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13449 if test no = "$with_gnu_ld"; then
13450 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13451 hardcode_libdir_separator=:
13452 hardcode_direct=yes
13453 hardcode_direct_absolute=yes
13454 export_dynamic_flag_spec='$wl-E'
13455 # hardcode_minus_L: Not really in the search PATH,
13456 # but as the default location of the library.
13457 hardcode_minus_L=yes
13462 if test yes,no = "$GCC,$with_gnu_ld"; then
13465 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13468 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13471 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13477 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13480 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13484 # Older versions of the 11.00 compiler do not understand -b yet
13485 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13487 printf %s "checking if $CC understands -b... " >&6; }
13488 if test ${lt_cv_prog_compiler__b+y}
13490 printf %s "(cached) " >&6
13492 lt_cv_prog_compiler__b=no
13493 save_LDFLAGS=$LDFLAGS
13494 LDFLAGS="$LDFLAGS -b"
13495 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13496 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13497 # The linker can only warn and ignore the option if not recognized
13498 # So say no if there are warnings
13499 if test -s conftest.err; then
13500 # Append any errors to the config.log.
13501 cat conftest.err 1>&5
13502 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13504 if diff conftest.exp conftest.er2 >/dev/null; then
13505 lt_cv_prog_compiler__b=yes
13508 lt_cv_prog_compiler__b=yes
13512 LDFLAGS=$save_LDFLAGS
13515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13516 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13518 if test yes = "$lt_cv_prog_compiler__b"; then
13519 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13521 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13527 if test no = "$with_gnu_ld"; then
13528 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13529 hardcode_libdir_separator=:
13534 hardcode_shlibpath_var=no
13537 hardcode_direct=yes
13538 hardcode_direct_absolute=yes
13539 export_dynamic_flag_spec='$wl-E'
13541 # hardcode_minus_L: Not really in the search PATH,
13542 # but as the default location of the library.
13543 hardcode_minus_L=yes
13549 irix5* | irix6* | nonstopux*)
13550 if test yes = "$GCC"; then
13551 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'
13552 # Try to use the -exported_symbol ld option, if it does not
13553 # work, assume that -exports_file does not work either and
13554 # implicitly export all symbols.
13555 # This should be the same for all languages, so no per-tag cache variable.
13556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13557 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13558 if test ${lt_cv_irix_exported_symbol+y}
13560 printf %s "(cached) " >&6
13562 save_LDFLAGS=$LDFLAGS
13563 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13566 int foo (void) { return 0; }
13568 if ac_fn_c_try_link "$LINENO"
13570 lt_cv_irix_exported_symbol=yes
13572 lt_cv_irix_exported_symbol=no
13574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13575 conftest$ac_exeext conftest.$ac_ext
13576 LDFLAGS=$save_LDFLAGS
13578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13579 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13580 if test yes = "$lt_cv_irix_exported_symbol"; then
13581 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'
13583 link_all_deplibs=no
13585 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'
13586 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'
13588 archive_cmds_need_lc='no'
13589 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13590 hardcode_libdir_separator=:
13592 link_all_deplibs=yes
13596 case $cc_basename in
13598 # Fabrice Bellard et al's Tiny C Compiler
13600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13605 netbsd* | netbsdelf*-gnu)
13606 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13609 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13611 hardcode_libdir_flag_spec='-R$libdir'
13612 hardcode_direct=yes
13613 hardcode_shlibpath_var=no
13617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13618 hardcode_direct=yes
13619 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13620 hardcode_libdir_separator=:
13621 hardcode_shlibpath_var=no
13627 openbsd* | bitrig*)
13628 if test -f /usr/libexec/ld.so; then
13629 hardcode_direct=yes
13630 hardcode_shlibpath_var=no
13631 hardcode_direct_absolute=yes
13632 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13633 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13634 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13635 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13636 export_dynamic_flag_spec='$wl-E'
13638 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13639 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13647 hardcode_libdir_flag_spec='-L$libdir'
13648 hardcode_minus_L=yes
13649 allow_undefined_flag=unsupported
13651 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13652 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13653 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13654 $ECHO EXPORTS >> $output_objdir/$libname.def~
13655 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13656 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13657 emximp -o $lib $output_objdir/$libname.def'
13658 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13659 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13660 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13661 $ECHO EXPORTS >> $output_objdir/$libname.def~
13662 prefix_cmds="$SED"~
13663 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13664 prefix_cmds="$prefix_cmds -e 1d";
13666 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13667 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13668 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13669 emximp -o $lib $output_objdir/$libname.def'
13670 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13671 enable_shared_with_static_runtimes=yes
13675 if test yes = "$GCC"; then
13676 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13677 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'
13679 allow_undefined_flag=' -expect_unresolved \*'
13680 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'
13682 archive_cmds_need_lc='no'
13683 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13684 hardcode_libdir_separator=:
13687 osf4* | osf5*) # as osf3* with the addition of -msym flag
13688 if test yes = "$GCC"; then
13689 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13690 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'
13691 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13693 allow_undefined_flag=' -expect_unresolved \*'
13694 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'
13695 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~
13696 $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'
13698 # Both c and cxx compiler support -rpath directly
13699 hardcode_libdir_flag_spec='-rpath $libdir'
13701 archive_cmds_need_lc='no'
13702 hardcode_libdir_separator=:
13706 no_undefined_flag=' -z defs'
13707 if test yes = "$GCC"; then
13709 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13710 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13711 $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'
13713 case `$CC -V 2>&1` in
13716 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13717 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13718 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13722 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13723 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13724 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13728 hardcode_libdir_flag_spec='-R$libdir'
13729 hardcode_shlibpath_var=no
13731 solaris2.[0-5] | solaris2.[0-5].*) ;;
13733 # The compiler driver will combine and reorder linker options,
13734 # but understands '-z linker_flag'. GCC discards it without '$wl',
13735 # but is careful enough not to reorder.
13736 # Supported since Solaris 2.6 (maybe 2.5.1?)
13737 if test yes = "$GCC"; then
13738 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13740 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13744 link_all_deplibs=yes
13748 if test sequent = "$host_vendor"; then
13749 # Use $CC to link under sequent, because it throws in some extra .o
13750 # files that make .init and .fini sections work.
13751 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13753 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13755 hardcode_libdir_flag_spec='-L$libdir'
13756 hardcode_direct=yes
13757 hardcode_minus_L=yes
13758 hardcode_shlibpath_var=no
13762 case $host_vendor in
13764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13765 hardcode_direct=yes # is this really true???
13768 ## LD is ld it makes a PLAMLIB
13769 ## CC just makes a GrossModule.
13770 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13771 reload_cmds='$CC -r -o $output$reload_objs'
13775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13776 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13779 runpath_var='LD_RUN_PATH'
13780 hardcode_shlibpath_var=no
13784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13785 hardcode_shlibpath_var=no
13786 export_dynamic_flag_spec='-Bexport'
13790 if test -d /usr/nec; then
13791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13792 hardcode_shlibpath_var=no
13793 runpath_var=LD_RUN_PATH
13794 hardcode_runpath_var=yes
13799 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13800 no_undefined_flag='$wl-z,text'
13801 archive_cmds_need_lc=no
13802 hardcode_shlibpath_var=no
13803 runpath_var='LD_RUN_PATH'
13805 if test yes = "$GCC"; then
13806 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13807 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13809 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13810 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13814 sysv5* | sco3.2v5* | sco5v6*)
13815 # Note: We CANNOT use -z defs as we might desire, because we do not
13816 # link with -lc, and that would cause any symbols used from libc to
13817 # always be unresolved, which means just about no library would
13818 # ever link correctly. If we're not using GNU ld we use -z text
13819 # though, which does catch some bad symbols but isn't as heavy-handed
13821 no_undefined_flag='$wl-z,text'
13822 allow_undefined_flag='$wl-z,nodefs'
13823 archive_cmds_need_lc=no
13824 hardcode_shlibpath_var=no
13825 hardcode_libdir_flag_spec='$wl-R,$libdir'
13826 hardcode_libdir_separator=':'
13827 link_all_deplibs=yes
13828 export_dynamic_flag_spec='$wl-Bexport'
13829 runpath_var='LD_RUN_PATH'
13831 if test yes = "$GCC"; then
13832 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13835 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13836 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13842 hardcode_libdir_flag_spec='-L$libdir'
13843 hardcode_shlibpath_var=no
13851 if test sni = "$host_vendor"; then
13853 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13854 export_dynamic_flag_spec='$wl-Blargedynsym'
13860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13861 printf "%s\n" "$ld_shlibs" >&6; }
13862 test no = "$ld_shlibs" && can_build_shared=no
13864 with_gnu_ld=$with_gnu_ld
13881 # Do we need to explicitly link libc?
13883 case "x$archive_cmds_need_lc" in
13885 # Assume -lc should be added
13886 archive_cmds_need_lc=yes
13888 if test yes,yes = "$GCC,$enable_shared"; then
13889 case $archive_cmds in
13891 # FIXME: we may have to deal with multi-command sequences.
13894 # Test whether the compiler implicitly links with -lc since on some
13895 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13896 # to ld, don't add -lc before -lgcc.
13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13898 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13899 if test ${lt_cv_archive_cmds_need_lc+y}
13901 printf %s "(cached) " >&6
13904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13907 (eval $ac_compile) 2>&5
13909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13910 test $ac_status = 0; } 2>conftest.err; then
13913 libobjs=conftest.$ac_objext
13915 wl=$lt_prog_compiler_wl
13916 pic_flag=$lt_prog_compiler_pic
13922 lt_save_allow_undefined_flag=$allow_undefined_flag
13923 allow_undefined_flag=
13924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13925 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13928 test $ac_status = 0; }
13930 lt_cv_archive_cmds_need_lc=no
13932 lt_cv_archive_cmds_need_lc=yes
13934 allow_undefined_flag=$lt_save_allow_undefined_flag
13936 cat conftest.err 1>&5
13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13942 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13943 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14102 printf %s "checking dynamic linker characteristics... " >&6; }
14104 if test yes = "$GCC"; then
14106 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14107 *) lt_awk_arg='/^libraries:/' ;;
14110 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14111 *) lt_sed_strip_eq='s|=/|/|g' ;;
14113 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14114 case $lt_search_path_spec in
14116 # if the path contains ";" then we assume it to be the separator
14117 # otherwise default to the standard path separator (i.e. ":") - it is
14118 # assumed that no part of a normal pathname contains ";" but that should
14119 # okay in the real world where ";" in dirpaths is itself problematic.
14120 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14123 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14126 # Ok, now we have the path, separated by spaces, we can step through it
14127 # and add multilib dir if necessary...
14128 lt_tmp_lt_search_path_spec=
14129 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14130 # ...but if some path component already ends with the multilib dir we assume
14131 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14132 case "$lt_multi_os_dir; $lt_search_path_spec " in
14133 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14137 for lt_sys_path in $lt_search_path_spec; do
14138 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14139 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14140 elif test -n "$lt_multi_os_dir"; then
14141 test -d "$lt_sys_path" && \
14142 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14145 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14146 BEGIN {RS = " "; FS = "/|\n";} {
14149 for (lt_i = NF; lt_i > 0; lt_i--) {
14150 if ($lt_i != "" && $lt_i != ".") {
14151 if ($lt_i == "..") {
14154 if (lt_count == 0) {
14155 lt_foo = "/" $lt_i lt_foo;
14162 if (lt_foo != "") { lt_freq[lt_foo]++; }
14163 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14165 # AWK program above erroneously prepends '/' to C:/dos/paths
14168 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14169 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14171 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14173 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14175 library_names_spec=
14176 libname_spec='lib$name'
14180 postuninstall_cmds=
14184 shlibpath_overrides_runpath=unknown
14186 dynamic_linker="$host_os ld.so"
14187 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14188 need_lib_prefix=unknown
14189 hardcode_into_libs=no
14191 # when you set need_version to no, make sure it does not cause -set_version
14192 # flags to be left without arguments
14193 need_version=unknown
14199 version_type=linux # correct to gnu/linux during the next big refactor
14200 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14201 shlibpath_var=LIBPATH
14203 # AIX 3 has no versioning support, so we append a major version to the name.
14204 soname_spec='$libname$release$shared_ext$major'
14208 version_type=linux # correct to gnu/linux during the next big refactor
14211 hardcode_into_libs=yes
14212 if test ia64 = "$host_cpu"; then
14213 # AIX 5 supports IA64
14214 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14215 shlibpath_var=LD_LIBRARY_PATH
14217 # With GCC up to 2.95.x, collect2 would create an import file
14218 # for dependence libraries. The import file would start with
14219 # the line '#! .'. This would cause the generated library to
14220 # depend on '.', always an invalid library. This was fixed in
14221 # development snapshots of GCC prior to 3.0.
14223 aix4 | aix4.[01] | aix4.[01].*)
14224 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14226 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14229 can_build_shared=no
14233 # Using Import Files as archive members, it is possible to support
14234 # filename-based versioning of shared library archives on AIX. While
14235 # this would work for both with and without runtime linking, it will
14236 # prevent static linking of such archives. So we do filename-based
14237 # shared library versioning with .so extension only, which is used
14238 # when both runtime linking and shared linking is enabled.
14239 # Unfortunately, runtime linking may impact performance, so we do
14240 # not want this to be the default eventually. Also, we use the
14241 # versioned .so libs for executables only if there is the -brtl
14242 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14243 # To allow for filename-based versioning support, we need to create
14244 # libNAME.so.V as an archive file, containing:
14245 # *) an Import File, referring to the versioned filename of the
14246 # archive as well as the shared archive member, telling the
14247 # bitwidth (32 or 64) of that shared object, and providing the
14248 # list of exported symbols of that shared object, eventually
14249 # decorated with the 'weak' keyword
14250 # *) the shared object with the F_LOADONLY flag set, to really avoid
14251 # it being seen by the linker.
14252 # At run time we better use the real file rather than another symlink,
14253 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14255 case $with_aix_soname,$aix_use_runtimelinking in
14256 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14257 # soname into executable. Probably we can add versioning support to
14258 # collect2, so additional links can be useful in future.
14259 aix,yes) # traditional libtool
14260 dynamic_linker='AIX unversionable lib.so'
14261 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14262 # instead of lib<name>.a to let people know that these are not
14263 # typical AIX shared libraries.
14264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14266 aix,no) # traditional AIX only
14267 dynamic_linker='AIX lib.a(lib.so.V)'
14268 # We preserve .a as extension for shared libraries through AIX4.2
14269 # and later when we are not doing run time linking.
14270 library_names_spec='$libname$release.a $libname.a'
14271 soname_spec='$libname$release$shared_ext$major'
14273 svr4,*) # full svr4 only
14274 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14275 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14276 # We do not specify a path in Import Files, so LIBPATH fires.
14277 shlibpath_overrides_runpath=yes
14279 *,yes) # both, prefer svr4
14280 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14281 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14282 # unpreferred sharedlib libNAME.a needs extra handling
14283 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"'
14284 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"'
14285 # We do not specify a path in Import Files, so LIBPATH fires.
14286 shlibpath_overrides_runpath=yes
14288 *,no) # both, prefer aix
14289 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14290 library_names_spec='$libname$release.a $libname.a'
14291 soname_spec='$libname$release$shared_ext$major'
14292 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14293 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)'
14294 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"'
14297 shlibpath_var=LIBPATH
14304 # Since July 2007 AmigaOS4 officially supports .so libraries.
14305 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14309 library_names_spec='$libname.ixlibrary $libname.a'
14310 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14311 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'
14317 library_names_spec='$libname$shared_ext'
14318 dynamic_linker="$host_os ld.so"
14319 shlibpath_var=LIBRARY_PATH
14323 version_type=linux # correct to gnu/linux during the next big refactor
14325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14326 soname_spec='$libname$release$shared_ext$major'
14327 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14328 shlibpath_var=LD_LIBRARY_PATH
14329 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14330 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14331 # the default ld.so.conf also contains /usr/contrib/lib and
14332 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14333 # libtool to hard-code these into programs
14336 cygwin* | mingw* | pw32* | cegcc*)
14337 version_type=windows
14342 case $GCC,$cc_basename in
14345 library_names_spec='$libname.dll.a'
14346 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14347 postinstall_cmds='base_file=`basename \$file`~
14348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14349 dldir=$destdir/`dirname \$dlpath`~
14350 test -d \$dldir || mkdir -p \$dldir~
14351 $install_prog $dir/$dlname \$dldir/$dlname~
14352 chmod a+x \$dldir/$dlname~
14353 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14354 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14356 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14357 dlpath=$dir/\$dldll~
14359 shlibpath_overrides_runpath=yes
14363 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14364 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14366 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14369 # MinGW DLLs use traditional 'lib' prefix
14370 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14373 # pw32 DLLs use 'pw' prefix rather than 'lib'
14374 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14377 dynamic_linker='Win32 ld.exe'
14382 libname_spec='$name'
14383 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14384 library_names_spec='$libname.dll.lib'
14388 sys_lib_search_path_spec=
14391 for lt_path in $LIB
14394 # Let DOS variable expansion print the short 8.3 style file name.
14395 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14396 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14399 # Convert to MSYS style.
14400 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14403 # Convert to unix form, then to dos form, then back to unix form
14404 # but this time dos style (no spaces!) so that the unix form looks
14405 # like /cygdrive/c/PROGRA~1:/cygdr...
14406 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14407 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14408 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14411 sys_lib_search_path_spec=$LIB
14412 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14413 # It is most probably a Windows format PATH.
14414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14416 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14418 # FIXME: find the short name or the path components, as spaces are
14419 # common. (e.g. "Program Files" -> "PROGRA~1")
14423 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14424 postinstall_cmds='base_file=`basename \$file`~
14425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14426 dldir=$destdir/`dirname \$dlpath`~
14427 test -d \$dldir || mkdir -p \$dldir~
14428 $install_prog $dir/$dlname \$dldir/$dlname'
14429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14430 dlpath=$dir/\$dldll~
14432 shlibpath_overrides_runpath=yes
14433 dynamic_linker='Win32 link.exe'
14437 # Assume MSVC wrapper
14438 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14439 dynamic_linker='Win32 ld.exe'
14442 # FIXME: first we should search . and the directory the executable is in
14446 darwin* | rhapsody*)
14447 dynamic_linker="$host_os dyld"
14448 version_type=darwin
14451 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14452 soname_spec='$libname$release$major$shared_ext'
14453 shlibpath_overrides_runpath=yes
14454 shlibpath_var=DYLD_LIBRARY_PATH
14455 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14457 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14458 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14462 version_type=linux # correct to gnu/linux during the next big refactor
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
14470 freebsd* | dragonfly*)
14471 # DragonFly does not have aout. When/if they implement a new
14472 # versioning mechanism, adjust this.
14473 if test -x /usr/bin/objformat; then
14474 objformat=`/usr/bin/objformat`
14477 freebsd[23].*) objformat=aout ;;
14478 *) objformat=elf ;;
14481 version_type=freebsd-$objformat
14482 case $version_type in
14484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14485 soname_spec='$libname$release$shared_ext$major'
14490 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14494 shlibpath_var=LD_LIBRARY_PATH
14497 shlibpath_overrides_runpath=yes
14499 freebsd3.[01]* | freebsdelf3.[01]*)
14500 shlibpath_overrides_runpath=yes
14501 hardcode_into_libs=yes
14503 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14504 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14505 shlibpath_overrides_runpath=no
14506 hardcode_into_libs=yes
14508 *) # from 4.6 on, and DragonFly
14509 shlibpath_overrides_runpath=yes
14510 hardcode_into_libs=yes
14516 version_type=linux # correct to gnu/linux during the next big refactor
14519 dynamic_linker="$host_os runtime_loader"
14520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14521 soname_spec='$libname$release$shared_ext$major'
14522 shlibpath_var=LIBRARY_PATH
14523 shlibpath_overrides_runpath=no
14524 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14525 hardcode_into_libs=yes
14528 hpux9* | hpux10* | hpux11*)
14529 # Give a soname corresponding to the major version so that dld.sl refuses to
14530 # link against other versions.
14537 hardcode_into_libs=yes
14538 dynamic_linker="$host_os dld.so"
14539 shlibpath_var=LD_LIBRARY_PATH
14540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14542 soname_spec='$libname$release$shared_ext$major'
14543 if test 32 = "$HPUX_IA64_MODE"; then
14544 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14545 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14547 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14548 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14553 hardcode_into_libs=yes
14554 dynamic_linker="$host_os dld.sl"
14555 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14558 soname_spec='$libname$release$shared_ext$major'
14559 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14564 dynamic_linker="$host_os dld.sl"
14565 shlibpath_var=SHLIB_PATH
14566 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14568 soname_spec='$libname$release$shared_ext$major'
14571 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14572 postinstall_cmds='chmod 555 $lib'
14573 # or fails outright, so override atomically:
14574 install_override_mode=555
14578 version_type=linux # correct to gnu/linux during the next big refactor
14581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14582 soname_spec='$libname$release$shared_ext$major'
14583 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14584 shlibpath_var=LD_LIBRARY_PATH
14585 shlibpath_overrides_runpath=no
14586 hardcode_into_libs=yes
14589 irix5* | irix6* | nonstopux*)
14591 nonstopux*) version_type=nonstopux ;;
14593 if test yes = "$lt_cv_prog_gnu_ld"; then
14594 version_type=linux # correct to gnu/linux during the next big refactor
14601 soname_spec='$libname$release$shared_ext$major'
14602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14604 irix5* | nonstopux*)
14605 libsuff= shlibsuff=
14608 case $LD in # libtool.m4 will add one of these switches to LD
14609 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14610 libsuff= shlibsuff= libmagic=32-bit;;
14611 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14612 libsuff=32 shlibsuff=N32 libmagic=N32;;
14613 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14614 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14615 *) libsuff= shlibsuff= libmagic=never-match;;
14619 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14620 shlibpath_overrides_runpath=no
14621 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14622 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14623 hardcode_into_libs=yes
14626 # No shared lib support for Linux oldld, aout, or coff.
14627 linux*oldld* | linux*aout* | linux*coff*)
14632 version_type=none # Android doesn't support versioned libraries.
14635 library_names_spec='$libname$release$shared_ext'
14636 soname_spec='$libname$release$shared_ext'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 shlibpath_overrides_runpath=yes
14641 # This implies no fast_install, which is unacceptable.
14642 # Some rework will be needed to allow for fast_install
14643 # before this can be enabled.
14644 hardcode_into_libs=yes
14646 dynamic_linker='Android linker'
14647 # Don't embed -rpath directories since the linker doesn't support them.
14648 hardcode_libdir_flag_spec='-L$libdir'
14651 # This must be glibc/ELF.
14652 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14653 version_type=linux # correct to gnu/linux during the next big refactor
14656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14657 soname_spec='$libname$release$shared_ext$major'
14658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14659 shlibpath_var=LD_LIBRARY_PATH
14660 shlibpath_overrides_runpath=no
14662 # Some binutils ld are patched to set DT_RUNPATH
14663 if test ${lt_cv_shlibpath_overrides_runpath+y}
14665 printf %s "(cached) " >&6
14667 lt_cv_shlibpath_overrides_runpath=no
14668 save_LDFLAGS=$LDFLAGS
14669 save_libdir=$libdir
14670 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14671 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14683 if ac_fn_c_try_link "$LINENO"
14685 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14687 lt_cv_shlibpath_overrides_runpath=yes
14690 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14691 conftest$ac_exeext conftest.$ac_ext
14692 LDFLAGS=$save_LDFLAGS
14693 libdir=$save_libdir
14697 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14699 # This implies no fast_install, which is unacceptable.
14700 # Some rework will be needed to allow for fast_install
14701 # before this can be enabled.
14702 hardcode_into_libs=yes
14704 # Ideally, we could use ldconfig to report *all* directores which are
14705 # searched for libraries, however this is still not possible. Aside from not
14706 # being certain /sbin/ldconfig is available, command
14707 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14708 # even though it is searched at run-time. Try to do the best guess by
14709 # appending ld.so.conf contents (and includes) to the search path.
14710 if test -f /etc/ld.so.conf; then
14711 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' ' '`
14712 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14715 # We used to test for /lib/ld.so.1 and disable shared libraries on
14716 # powerpc, because MkLinux only supported shared libraries with the
14717 # GNU dynamic linker. Since this was broken with cross compilers,
14718 # most powerpc-linux boxes support dynamic linking these days and
14719 # people can always --disable-shared, the test was removed, and we
14720 # assume the GNU/Linux dynamic linker is in use.
14721 dynamic_linker='GNU/Linux ld.so'
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14729 soname_spec='${libname}${release}${shared_ext}$major'
14730 shlibpath_var=LD_LIBRARY_PATH
14731 shlibpath_overrides_runpath=no
14732 hardcode_into_libs=yes
14733 dynamic_linker='NetBSD ld.elf_so'
14740 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14741 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14743 dynamic_linker='NetBSD (a.out) ld.so'
14745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14746 soname_spec='$libname$release$shared_ext$major'
14747 dynamic_linker='NetBSD ld.elf_so'
14749 shlibpath_var=LD_LIBRARY_PATH
14750 shlibpath_overrides_runpath=yes
14751 hardcode_into_libs=yes
14755 version_type=linux # correct to gnu/linux during the next big refactor
14756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14757 shlibpath_var=LD_LIBRARY_PATH
14758 shlibpath_overrides_runpath=yes
14765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14766 soname_spec='$libname$release$shared_ext$major'
14767 shlibpath_var=LD_LIBRARY_PATH
14768 shlibpath_overrides_runpath=no
14769 hardcode_into_libs=yes
14770 dynamic_linker='ldqnx.so'
14773 openbsd* | bitrig*)
14775 sys_lib_dlsearch_path_spec=/usr/lib
14777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14782 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14784 shlibpath_var=LD_LIBRARY_PATH
14785 shlibpath_overrides_runpath=yes
14789 libname_spec='$name'
14790 version_type=windows
14794 # OS/2 can only load a DLL with a base name of 8 characters or less.
14795 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14796 v=$($ECHO $release$versuffix | tr -d .-);
14797 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14798 $ECHO $n$v`$shared_ext'
14799 library_names_spec='${libname}_dll.$libext'
14800 dynamic_linker='OS/2 ld.exe'
14801 shlibpath_var=BEGINLIBPATH
14802 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14804 postinstall_cmds='base_file=`basename \$file`~
14805 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14806 dldir=$destdir/`dirname \$dlpath`~
14807 test -d \$dldir || mkdir -p \$dldir~
14808 $install_prog $dir/$dlname \$dldir/$dlname~
14809 chmod a+x \$dldir/$dlname~
14810 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14811 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14813 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14814 dlpath=$dir/\$dldll~
14818 osf3* | osf4* | osf5*)
14822 soname_spec='$libname$release$shared_ext$major'
14823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14824 shlibpath_var=LD_LIBRARY_PATH
14825 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14834 version_type=linux # correct to gnu/linux during the next big refactor
14837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14838 soname_spec='$libname$release$shared_ext$major'
14839 shlibpath_var=LD_LIBRARY_PATH
14840 shlibpath_overrides_runpath=yes
14841 hardcode_into_libs=yes
14842 # ldd complains unless libraries are executable
14843 postinstall_cmds='chmod +x $lib'
14848 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14849 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14850 shlibpath_var=LD_LIBRARY_PATH
14851 shlibpath_overrides_runpath=yes
14852 if test yes = "$with_gnu_ld"; then
14859 version_type=linux # correct to gnu/linux during the next big refactor
14860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14861 soname_spec='$libname$release$shared_ext$major'
14862 shlibpath_var=LD_LIBRARY_PATH
14863 case $host_vendor in
14865 shlibpath_overrides_runpath=no
14867 runpath_var=LD_RUN_PATH
14875 shlibpath_overrides_runpath=no
14876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14882 if test -d /usr/nec; then
14883 version_type=linux # correct to gnu/linux during the next big refactor
14884 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14885 soname_spec='$libname$shared_ext.$major'
14886 shlibpath_var=LD_LIBRARY_PATH
14890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14895 soname_spec='$libname$release$shared_ext$major'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 shlibpath_overrides_runpath=yes
14898 hardcode_into_libs=yes
14899 if test yes = "$with_gnu_ld"; then
14900 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14902 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14905 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14909 sys_lib_dlsearch_path_spec='/usr/lib'
14913 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14914 version_type=linux # correct to gnu/linux during the next big refactor
14917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14918 shlibpath_var=LD_LIBRARY_PATH
14919 shlibpath_overrides_runpath=no
14920 hardcode_into_libs=yes
14924 version_type=linux # correct to gnu/linux during the next big refactor
14925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14926 soname_spec='$libname$release$shared_ext$major'
14927 shlibpath_var=LD_LIBRARY_PATH
14934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14935 printf "%s\n" "$dynamic_linker" >&6; }
14936 test no = "$dynamic_linker" && can_build_shared=no
14938 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14939 if test yes = "$GCC"; then
14940 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14943 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14944 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14947 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14948 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14951 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14952 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14954 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14955 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14957 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14958 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15057 printf %s "checking how to hardcode library paths into programs... " >&6; }
15059 if test -n "$hardcode_libdir_flag_spec" ||
15060 test -n "$runpath_var" ||
15061 test yes = "$hardcode_automatic"; then
15063 # We can hardcode non-existent directories.
15064 if test no != "$hardcode_direct" &&
15065 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15066 # have to relink, otherwise we might link with an installed library
15067 # when we should be linking with a yet-to-be-installed one
15068 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15069 test no != "$hardcode_minus_L"; then
15070 # Linking always hardcodes the temporary library directory.
15071 hardcode_action=relink
15073 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15074 hardcode_action=immediate
15077 # We cannot hardcode anything, or else we can only hardcode existing
15079 hardcode_action=unsupported
15081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15082 printf "%s\n" "$hardcode_action" >&6; }
15084 if test relink = "$hardcode_action" ||
15085 test yes = "$inherit_rpath"; then
15086 # Fast installation is not supported
15087 enable_fast_install=no
15088 elif test yes = "$shlibpath_overrides_runpath" ||
15089 test no = "$enable_shared"; then
15090 # Fast installation is not necessary
15091 enable_fast_install=needless
15099 if test yes != "$enable_dlopen"; then
15100 enable_dlopen=unknown
15101 enable_dlopen_self=unknown
15102 enable_dlopen_self_static=unknown
15109 lt_cv_dlopen=load_add_on
15111 lt_cv_dlopen_self=yes
15114 mingw* | pw32* | cegcc*)
15115 lt_cv_dlopen=LoadLibrary
15120 lt_cv_dlopen=dlopen
15125 # if libdl is installed we need to link against it
15126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15127 printf %s "checking for dlopen in -ldl... " >&6; }
15128 if test ${ac_cv_lib_dl_dlopen+y}
15130 printf %s "(cached) " >&6
15132 ac_check_lib_save_LIBS=$LIBS
15134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15135 /* end confdefs.h. */
15137 /* Override any GCC internal prototype to avoid an error.
15138 Use char because int might match the return type of a GCC
15139 builtin and then its argument prototype would still apply. */
15149 if ac_fn_c_try_link "$LINENO"
15151 ac_cv_lib_dl_dlopen=yes
15153 ac_cv_lib_dl_dlopen=no
15155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15156 conftest$ac_exeext conftest.$ac_ext
15157 LIBS=$ac_check_lib_save_LIBS
15159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15160 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15161 if test "x$ac_cv_lib_dl_dlopen" = xyes
15163 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15168 lt_cv_dlopen_self=yes
15175 # Don't try to run any link tests for TPF. We know it's impossible
15176 # because TPF is a cross-compiler, and we know how we open DSOs.
15177 lt_cv_dlopen=dlopen
15179 lt_cv_dlopen_self=no
15183 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15184 if test "x$ac_cv_func_shl_load" = xyes
15186 lt_cv_dlopen=shl_load
15188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15189 printf %s "checking for shl_load in -ldld... " >&6; }
15190 if test ${ac_cv_lib_dld_shl_load+y}
15192 printf %s "(cached) " >&6
15194 ac_check_lib_save_LIBS=$LIBS
15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15199 /* Override any GCC internal prototype to avoid an error.
15200 Use char because int might match the return type of a GCC
15201 builtin and then its argument prototype would still apply. */
15206 return shl_load ();
15211 if ac_fn_c_try_link "$LINENO"
15213 ac_cv_lib_dld_shl_load=yes
15215 ac_cv_lib_dld_shl_load=no
15217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15218 conftest$ac_exeext conftest.$ac_ext
15219 LIBS=$ac_check_lib_save_LIBS
15221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15222 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15223 if test "x$ac_cv_lib_dld_shl_load" = xyes
15225 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15227 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15228 if test "x$ac_cv_func_dlopen" = xyes
15230 lt_cv_dlopen=dlopen
15232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15233 printf %s "checking for dlopen in -ldl... " >&6; }
15234 if test ${ac_cv_lib_dl_dlopen+y}
15236 printf %s "(cached) " >&6
15238 ac_check_lib_save_LIBS=$LIBS
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15243 /* Override any GCC internal prototype to avoid an error.
15244 Use char because int might match the return type of a GCC
15245 builtin and then its argument prototype would still apply. */
15255 if ac_fn_c_try_link "$LINENO"
15257 ac_cv_lib_dl_dlopen=yes
15259 ac_cv_lib_dl_dlopen=no
15261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15262 conftest$ac_exeext conftest.$ac_ext
15263 LIBS=$ac_check_lib_save_LIBS
15265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15266 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15267 if test "x$ac_cv_lib_dl_dlopen" = xyes
15269 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15272 printf %s "checking for dlopen in -lsvld... " >&6; }
15273 if test ${ac_cv_lib_svld_dlopen+y}
15275 printf %s "(cached) " >&6
15277 ac_check_lib_save_LIBS=$LIBS
15278 LIBS="-lsvld $LIBS"
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15282 /* Override any GCC internal prototype to avoid an error.
15283 Use char because int might match the return type of a GCC
15284 builtin and then its argument prototype would still apply. */
15294 if ac_fn_c_try_link "$LINENO"
15296 ac_cv_lib_svld_dlopen=yes
15298 ac_cv_lib_svld_dlopen=no
15300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15301 conftest$ac_exeext conftest.$ac_ext
15302 LIBS=$ac_check_lib_save_LIBS
15304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15305 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15306 if test "x$ac_cv_lib_svld_dlopen" = xyes
15308 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15311 printf %s "checking for dld_link in -ldld... " >&6; }
15312 if test ${ac_cv_lib_dld_dld_link+y}
15314 printf %s "(cached) " >&6
15316 ac_check_lib_save_LIBS=$LIBS
15318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319 /* end confdefs.h. */
15321 /* Override any GCC internal prototype to avoid an error.
15322 Use char because int might match the return type of a GCC
15323 builtin and then its argument prototype would still apply. */
15328 return dld_link ();
15333 if ac_fn_c_try_link "$LINENO"
15335 ac_cv_lib_dld_dld_link=yes
15337 ac_cv_lib_dld_dld_link=no
15339 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15340 conftest$ac_exeext conftest.$ac_ext
15341 LIBS=$ac_check_lib_save_LIBS
15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15344 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15345 if test "x$ac_cv_lib_dld_dld_link" = xyes
15347 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15368 if test no = "$lt_cv_dlopen"; then
15374 case $lt_cv_dlopen in
15376 save_CPPFLAGS=$CPPFLAGS
15377 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15379 save_LDFLAGS=$LDFLAGS
15380 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15383 LIBS="$lt_cv_dlopen_libs $LIBS"
15385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15386 printf %s "checking whether a program can dlopen itself... " >&6; }
15387 if test ${lt_cv_dlopen_self+y}
15389 printf %s "(cached) " >&6
15391 if test yes = "$cross_compiling"; then :
15392 lt_cv_dlopen_self=cross
15394 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15395 lt_status=$lt_dlunknown
15396 cat > conftest.$ac_ext <<_LT_EOF
15397 #line $LINENO "configure"
15398 #include "confdefs.h"
15407 # define LT_DLGLOBAL RTLD_GLOBAL
15410 # define LT_DLGLOBAL DL_GLOBAL
15412 # define LT_DLGLOBAL 0
15416 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15417 find out it does not work in some platform. */
15418 #ifndef LT_DLLAZY_OR_NOW
15420 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15423 # define LT_DLLAZY_OR_NOW DL_LAZY
15426 # define LT_DLLAZY_OR_NOW RTLD_NOW
15429 # define LT_DLLAZY_OR_NOW DL_NOW
15431 # define LT_DLLAZY_OR_NOW 0
15438 /* When -fvisibility=hidden is used, assume the code has been annotated
15439 correspondingly for the symbols needed. */
15440 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15441 int fnord () __attribute__((visibility("default")));
15444 int fnord () { return 42; }
15447 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15448 int status = $lt_dlunknown;
15452 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15455 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15456 else puts (dlerror ());
15458 /* dlclose (self); */
15466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15467 (eval $ac_link) 2>&5
15469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15470 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15471 (./conftest; exit; ) >&5 2>/dev/null
15473 case x$lt_status in
15474 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15475 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15476 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15479 # compilation failed
15480 lt_cv_dlopen_self=no
15487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15488 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15490 if test yes = "$lt_cv_dlopen_self"; then
15491 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15493 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15494 if test ${lt_cv_dlopen_self_static+y}
15496 printf %s "(cached) " >&6
15498 if test yes = "$cross_compiling"; then :
15499 lt_cv_dlopen_self_static=cross
15501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15502 lt_status=$lt_dlunknown
15503 cat > conftest.$ac_ext <<_LT_EOF
15504 #line $LINENO "configure"
15505 #include "confdefs.h"
15514 # define LT_DLGLOBAL RTLD_GLOBAL
15517 # define LT_DLGLOBAL DL_GLOBAL
15519 # define LT_DLGLOBAL 0
15523 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15524 find out it does not work in some platform. */
15525 #ifndef LT_DLLAZY_OR_NOW
15527 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15530 # define LT_DLLAZY_OR_NOW DL_LAZY
15533 # define LT_DLLAZY_OR_NOW RTLD_NOW
15536 # define LT_DLLAZY_OR_NOW DL_NOW
15538 # define LT_DLLAZY_OR_NOW 0
15545 /* When -fvisibility=hidden is used, assume the code has been annotated
15546 correspondingly for the symbols needed. */
15547 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15548 int fnord () __attribute__((visibility("default")));
15551 int fnord () { return 42; }
15554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15555 int status = $lt_dlunknown;
15559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15562 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15563 else puts (dlerror ());
15565 /* dlclose (self); */
15573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15574 (eval $ac_link) 2>&5
15576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15577 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15578 (./conftest; exit; ) >&5 2>/dev/null
15580 case x$lt_status in
15581 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15582 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15583 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15586 # compilation failed
15587 lt_cv_dlopen_self_static=no
15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15595 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15598 CPPFLAGS=$save_CPPFLAGS
15599 LDFLAGS=$save_LDFLAGS
15604 case $lt_cv_dlopen_self in
15605 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15606 *) enable_dlopen_self=unknown ;;
15609 case $lt_cv_dlopen_self_static in
15610 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15611 *) enable_dlopen_self_static=unknown ;;
15633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15634 printf %s "checking whether stripping libraries is possible... " >&6; }
15635 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15636 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15637 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15639 printf "%s\n" "yes" >&6; }
15641 # FIXME - insert some real tests, host_os isn't really good enough
15644 if test -n "$STRIP"; then
15645 striplib="$STRIP -x"
15646 old_striplib="$STRIP -S"
15647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15648 printf "%s\n" "yes" >&6; }
15650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15651 printf "%s\n" "no" >&6; }
15655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15656 printf "%s\n" "no" >&6; }
15672 # Report what library types will actually be built
15673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15674 printf %s "checking if libtool supports shared libraries... " >&6; }
15675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15676 printf "%s\n" "$can_build_shared" >&6; }
15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15679 printf %s "checking whether to build shared libraries... " >&6; }
15680 test no = "$can_build_shared" && enable_shared=no
15682 # On AIX, shared libraries and static libraries use the same namespace, and
15683 # are all built from PIC.
15686 test yes = "$enable_shared" && enable_static=no
15687 if test -n "$RANLIB"; then
15688 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15689 postinstall_cmds='$RANLIB $lib'
15694 if test ia64 != "$host_cpu"; then
15695 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15696 yes,aix,yes) ;; # shared object as lib.so file only
15697 yes,svr4,*) ;; # shared object as lib.so archive member only
15698 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15704 printf "%s\n" "$enable_shared" >&6; }
15706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15707 printf %s "checking whether to build static libraries... " >&6; }
15708 # Make sure either enable_shared or enable_static is yes.
15709 test yes = "$enable_shared" || enable_static=yes
15710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15711 printf "%s\n" "$enable_static" >&6; }
15718 ac_cpp='$CPP $CPPFLAGS'
15719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15739 ac_config_commands="$ac_config_commands libtool"
15744 # Only expand once:
15748 printf "%s\n" "#define SHELL \"$SHELL\"" >>confdefs.h
15757 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15758 if test -n "$ac_tool_prefix"; then
15759 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15760 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15762 printf %s "checking for $ac_word... " >&6; }
15763 if test ${ac_cv_path_PKG_CONFIG+y}
15765 printf %s "(cached) " >&6
15767 case $PKG_CONFIG in
15769 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15773 for as_dir in $PATH
15776 case $as_dir in #(((
15779 *) as_dir=$as_dir/ ;;
15781 for ac_exec_ext in '' $ac_executable_extensions; do
15782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15783 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15794 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15795 if test -n "$PKG_CONFIG"; then
15796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15797 printf "%s\n" "$PKG_CONFIG" >&6; }
15799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15800 printf "%s\n" "no" >&6; }
15805 if test -z "$ac_cv_path_PKG_CONFIG"; then
15806 ac_pt_PKG_CONFIG=$PKG_CONFIG
15807 # Extract the first word of "pkg-config", so it can be a program name with args.
15808 set dummy pkg-config; ac_word=$2
15809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15810 printf %s "checking for $ac_word... " >&6; }
15811 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
15813 printf %s "(cached) " >&6
15815 case $ac_pt_PKG_CONFIG in
15817 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15821 for as_dir in $PATH
15824 case $as_dir in #(((
15827 *) as_dir=$as_dir/ ;;
15829 for ac_exec_ext in '' $ac_executable_extensions; do
15830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15831 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15842 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15843 if test -n "$ac_pt_PKG_CONFIG"; then
15844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15845 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
15847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15848 printf "%s\n" "no" >&6; }
15851 if test "x$ac_pt_PKG_CONFIG" = x; then
15854 case $cross_compiling:$ac_tool_warned in
15856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15857 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15858 ac_tool_warned=yes ;;
15860 PKG_CONFIG=$ac_pt_PKG_CONFIG
15863 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15867 if test -n "$PKG_CONFIG"; then
15868 _pkg_min_version=0.9.0
15869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15870 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15871 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15873 printf "%s\n" "yes" >&6; }
15875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15876 printf "%s\n" "no" >&6; }
15882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for check >= 0.9.10" >&5
15883 printf %s "checking for check >= 0.9.10... " >&6; }
15885 if test -n "$CHECK_CFLAGS"; then
15886 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
15887 elif test -n "$PKG_CONFIG"; then
15888 if test -n "$PKG_CONFIG" && \
15889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.10\""; } >&5
15890 ($PKG_CONFIG --exists --print-errors "check >= 0.9.10") 2>&5
15892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15893 test $ac_status = 0; }; then
15894 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.10" 2>/dev/null`
15895 test "x$?" != "x0" && pkg_failed=yes
15902 if test -n "$CHECK_LIBS"; then
15903 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
15904 elif test -n "$PKG_CONFIG"; then
15905 if test -n "$PKG_CONFIG" && \
15906 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.10\""; } >&5
15907 ($PKG_CONFIG --exists --print-errors "check >= 0.9.10") 2>&5
15909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15910 test $ac_status = 0; }; then
15911 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.10" 2>/dev/null`
15912 test "x$?" != "x0" && pkg_failed=yes
15922 if test $pkg_failed = yes; then
15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924 printf "%s\n" "no" >&6; }
15926 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15927 _pkg_short_errors_supported=yes
15929 _pkg_short_errors_supported=no
15931 if test $_pkg_short_errors_supported = yes; then
15932 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.10" 2>&1`
15934 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.10" 2>&1`
15936 # Put the nasty error message in config.log where it belongs
15937 echo "$CHECK_PKG_ERRORS" >&5
15940 elif test $pkg_failed = untried; then
15941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15942 printf "%s\n" "no" >&6; }
15945 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
15946 CHECK_LIBS=$pkg_cv_CHECK_LIBS
15947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15948 printf "%s\n" "yes" >&6; }
15951 if test "x$run_tests" = xyes; then
15953 RUN_TESTS_FALSE='#'
15960 # Check for various header files and associated libraries.
15969 # Check whether --enable-cross-guesses was given.
15970 if test ${enable_cross_guesses+y}
15972 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
15974 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
15975 enableval=conservative
15977 gl_cross_guesses="$enableval"
15979 gl_cross_guesses=conservative
15982 if test $gl_cross_guesses = risky; then
15983 gl_cross_guess_normal="guessing yes"
15984 gl_cross_guess_inverted="guessing no"
15986 gl_cross_guess_normal="guessing no"
15987 gl_cross_guess_inverted="guessing yes"
15989 LIBC_FATAL_STDERR_=1
15990 export LIBC_FATAL_STDERR_
15993 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15994 if test "x$ac_cv_type_size_t" = xyes
15999 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
16003 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16004 # for constant arguments. Useless!
16005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16006 printf %s "checking for working alloca.h... " >&6; }
16007 if test ${ac_cv_working_alloca_h+y}
16009 printf %s "(cached) " >&6
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16013 #include <alloca.h>
16017 char *p = (char *) alloca (2 * sizeof (int));
16023 if ac_fn_c_try_link "$LINENO"
16025 ac_cv_working_alloca_h=yes
16027 ac_cv_working_alloca_h=no
16029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16030 conftest$ac_exeext conftest.$ac_ext
16032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16033 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
16034 if test $ac_cv_working_alloca_h = yes; then
16036 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
16040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16041 printf %s "checking for alloca... " >&6; }
16042 if test ${ac_cv_func_alloca_works+y}
16044 printf %s "(cached) " >&6
16046 if test $ac_cv_working_alloca_h = yes; then
16047 ac_cv_func_alloca_works=yes
16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h. */
16051 #include <stdlib.h>
16052 #include <stddef.h>
16055 # define alloca __builtin_alloca
16056 # elif defined _MSC_VER
16057 # include <malloc.h>
16058 # define alloca _alloca
16060 # ifdef __cplusplus
16063 void *alloca (size_t);
16070 char *p = (char *) alloca (1);
16076 if ac_fn_c_try_link "$LINENO"
16078 ac_cv_func_alloca_works=yes
16080 ac_cv_func_alloca_works=no
16082 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16083 conftest$ac_exeext conftest.$ac_ext
16085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16086 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
16089 if test $ac_cv_func_alloca_works = yes; then
16091 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
16094 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16095 # that cause trouble. Some versions do not even contain alloca or
16096 # contain a buggy version. If you still want to use their alloca,
16097 # use ar to extract alloca.o from them instead of compiling alloca.c.
16103 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16105 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
16108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16109 printf %s "checking stack direction for C alloca... " >&6; }
16110 if test ${ac_cv_c_stack_direction+y}
16112 printf %s "(cached) " >&6
16114 if test "$cross_compiling" = yes
16116 ac_cv_c_stack_direction=0
16118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16119 /* end confdefs.h. */
16120 $ac_includes_default
16122 find_stack_direction (int *addr, int depth)
16124 int dir, dummy = 0;
16127 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16128 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16129 return dir + dummy;
16133 main (int argc, char **argv)
16135 return find_stack_direction (0, argc + !argv + 20) < 0;
16138 if ac_fn_c_try_run "$LINENO"
16140 ac_cv_c_stack_direction=1
16142 ac_cv_c_stack_direction=-1
16144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16145 conftest.$ac_objext conftest.beam conftest.$ac_ext
16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16150 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
16151 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
16161 GNULIB_COPY_FILE_RANGE=0;
16166 GNULIB_EUIDACCESS=0;
16167 GNULIB_FACCESSAT=0;
16170 GNULIB_FDATASYNC=0;
16172 GNULIB_FTRUNCATE=0;
16174 GNULIB_GETDOMAINNAME=0;
16175 GNULIB_GETDTABLESIZE=0;
16176 GNULIB_GETENTROPY=0;
16177 GNULIB_GETGROUPS=0;
16178 GNULIB_GETHOSTNAME=0;
16180 GNULIB_GETLOGIN_R=0;
16181 GNULIB_GETOPT_POSIX=0;
16182 GNULIB_GETPAGESIZE=0;
16184 GNULIB_GETUSERSHELL=0;
16185 GNULIB_GROUP_MEMBER=0;
16197 GNULIB_READLINKAT=0;
16199 GNULIB_SETHOSTNAME=0;
16202 GNULIB_SYMLINKAT=0;
16204 GNULIB_TTYNAME_R=0;
16205 GNULIB_UNISTD_H_NONBLOCKING=0;
16206 GNULIB_UNISTD_H_SIGPIPE=0;
16212 HAVE_COPY_FILE_RANGE=1;
16221 HAVE_GETDTABLESIZE=1;
16224 HAVE_GETHOSTNAME=1;
16226 HAVE_GETPAGESIZE=1;
16228 HAVE_GROUP_MEMBER=1;
16238 HAVE_SETHOSTNAME=1;
16244 HAVE_DECL_ENVIRON=1;
16245 HAVE_DECL_FCHDIR=1;
16246 HAVE_DECL_FDATASYNC=1;
16247 HAVE_DECL_GETDOMAINNAME=1;
16248 HAVE_DECL_GETLOGIN=1;
16249 HAVE_DECL_GETLOGIN_R=1;
16250 HAVE_DECL_GETPAGESIZE=1;
16251 HAVE_DECL_GETUSERSHELL=1;
16252 HAVE_DECL_SETHOSTNAME=1;
16253 HAVE_DECL_TRUNCATE=1;
16254 HAVE_DECL_TTYNAME_R=1;
16256 HAVE_SYS_PARAM_H=0;
16262 REPLACE_FACCESSAT=0;
16263 REPLACE_FCHOWNAT=0;
16264 REPLACE_FTRUNCATE=0;
16266 REPLACE_GETDOMAINNAME=0;
16267 REPLACE_GETDTABLESIZE=0;
16268 REPLACE_GETLOGIN_R=0;
16269 REPLACE_GETGROUPS=0;
16270 REPLACE_GETPAGESIZE=0;
16280 REPLACE_READLINK=0;
16281 REPLACE_READLINKAT=0;
16285 REPLACE_SYMLINKAT=0;
16286 REPLACE_TRUNCATE=0;
16287 REPLACE_TTYNAME_R=0;
16289 REPLACE_UNLINKAT=0;
16292 UNISTD_H_HAVE_SYS_RANDOM_H=0;
16293 UNISTD_H_HAVE_WINSOCK2_H=0;
16294 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16298 for ac_item in $ac_func_c_list
16300 if test $ac_func; then
16301 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
16302 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
16303 echo "#define $ac_item 1" >> confdefs.h
16312 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
16313 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
16315 printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
16318 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
16324 #if defined _WIN32 && !defined __CYGWIN__
16325 #define access _access
16326 #define chdir _chdir
16327 #define chmod _chmod
16328 #define close _close
16329 #define creat _creat
16333 #define execl _execl
16334 #define execle _execle
16335 #define execlp _execlp
16336 #define execv _execv
16337 #define execve _execve
16338 #define execvp _execvp
16339 #define execvpe _execvpe
16340 #define fcloseall _fcloseall
16342 #define fdopen _fdopen
16343 #define fileno _fileno
16345 #define getcwd _getcwd
16346 #define getpid _getpid
16348 #define isatty _isatty
16352 #define lfind _lfind
16353 #define lsearch _lsearch
16354 #define lseek _lseek
16355 #define memccpy _memccpy
16356 #define mkdir _mkdir
16357 #define mktemp _mktemp
16359 #define putenv _putenv
16362 #define rmdir _rmdir
16363 #define strdup _strdup
16365 #define tempnam _tempnam
16366 #define tzset _tzset
16367 #define umask _umask
16368 #define unlink _unlink
16369 #define utime _utime
16370 #define wcsdup _wcsdup
16371 #define write _write
16385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16386 printf %s "checking if environ is properly declared... " >&6; }
16387 if test ${gt_cv_var_environ_declaration+y}
16389 printf %s "(cached) " >&6
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16394 #include <unistd.h>
16396 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16397 #include <stdlib.h>
16399 extern struct { int foo; } environ;
16408 if ac_fn_c_try_compile "$LINENO"
16410 gt_cv_var_environ_declaration=no
16412 gt_cv_var_environ_declaration=yes
16414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16417 printf "%s\n" "$gt_cv_var_environ_declaration" >&6; }
16418 if test $gt_cv_var_environ_declaration = yes; then
16420 printf "%s\n" "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16425 if test $gt_cv_var_environ_declaration != yes; then
16426 HAVE_DECL_ENVIRON=0
16431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16432 printf %s "checking whether the preprocessor supports include_next... " >&6; }
16433 if test ${gl_cv_have_include_next+y}
16435 printf %s "(cached) " >&6
16437 rm -rf conftestd1a conftestd1b conftestd2
16438 mkdir conftestd1a conftestd1b conftestd2
16439 cat <<EOF > conftestd1a/conftest.h
16440 #define DEFINED_IN_CONFTESTD1
16441 #include_next <conftest.h>
16442 #ifdef DEFINED_IN_CONFTESTD2
16445 #error "include_next doesn't work"
16448 cat <<EOF > conftestd1b/conftest.h
16449 #define DEFINED_IN_CONFTESTD1
16451 #include_next <conftest.h>
16452 #ifdef DEFINED_IN_CONFTESTD2
16455 #error "include_next doesn't work"
16458 cat <<EOF > conftestd2/conftest.h
16459 #ifndef DEFINED_IN_CONFTESTD1
16460 #error "include_next test doesn't work"
16462 #define DEFINED_IN_CONFTESTD2
16464 gl_save_CPPFLAGS="$CPPFLAGS"
16465 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467 /* end confdefs.h. */
16468 #include <conftest.h>
16470 if ac_fn_c_try_compile "$LINENO"
16472 gl_cv_have_include_next=yes
16474 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16477 #include <conftest.h>
16479 if ac_fn_c_try_compile "$LINENO"
16481 gl_cv_have_include_next=buggy
16483 gl_cv_have_include_next=no
16485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16489 CPPFLAGS="$gl_save_CPPFLAGS"
16490 rm -rf conftestd1a conftestd1b conftestd2
16493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16494 printf "%s\n" "$gl_cv_have_include_next" >&6; }
16495 PRAGMA_SYSTEM_HEADER=
16496 if test $gl_cv_have_include_next = yes; then
16497 INCLUDE_NEXT=include_next
16498 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16499 if test -n "$GCC"; then
16500 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16503 if test $gl_cv_have_include_next = buggy; then
16504 INCLUDE_NEXT=include
16505 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16507 INCLUDE_NEXT=include
16508 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
16516 printf %s "checking whether source code line length is unlimited... " >&6; }
16517 if test ${gl_cv_source_line_length_unlimited+y}
16519 printf %s "(cached) " >&6
16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16530 $EGREP "choke me" >/dev/null 2>&1
16532 gl_cv_source_line_length_unlimited=no
16534 gl_cv_source_line_length_unlimited=yes
16540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
16541 printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; }
16542 if test $gl_cv_source_line_length_unlimited = no; then
16543 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
16552 printf %s "checking for complete errno.h... " >&6; }
16553 if test ${gl_cv_header_errno_h_complete+y}
16555 printf %s "(cached) " >&6
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16562 #if !defined ETXTBSY
16565 #if !defined ENOMSG
16571 #if !defined ENOLINK
16574 #if !defined EPROTO
16577 #if !defined EMULTIHOP
16580 #if !defined EBADMSG
16583 #if !defined EOVERFLOW
16586 #if !defined ENOTSUP
16589 #if !defined ENETRESET
16592 #if !defined ECONNABORTED
16595 #if !defined ESTALE
16598 #if !defined EDQUOT
16601 #if !defined ECANCELED
16604 #if !defined EOWNERDEAD
16607 #if !defined ENOTRECOVERABLE
16610 #if !defined EILSEQ
16615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16616 $EGREP "booboo" >/dev/null 2>&1
16618 gl_cv_header_errno_h_complete=no
16620 gl_cv_header_errno_h_complete=yes
16626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
16627 printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; }
16628 if test $gl_cv_header_errno_h_complete = yes; then
16639 if test $gl_cv_have_include_next = yes; then
16640 gl_cv_next_errno_h='<'errno.h'>'
16642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
16643 printf %s "checking absolute name of <errno.h>... " >&6; }
16644 if test ${gl_cv_next_errno_h+y}
16646 printf %s "(cached) " >&6
16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16656 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16657 *) gl_absname_cpp="$ac_cpp" ;;
16662 gl_dirsep_regex='[/\\]'
16665 gl_dirsep_regex='\/'
16668 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16669 gl_header_literal_regex=`echo 'errno.h' \
16670 | sed -e "$gl_make_literal_regex_sed"`
16671 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16672 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16678 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16679 sed -n "$gl_absolute_header_sed"`
16681 gl_header=$gl_cv_absolute_errno_h
16682 gl_cv_next_errno_h='"'$gl_header'"'
16686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
16687 printf "%s\n" "$gl_cv_next_errno_h" >&6; }
16689 NEXT_ERRNO_H=$gl_cv_next_errno_h
16691 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16692 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16693 gl_next_as_first_directive='<'errno.h'>'
16695 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16696 gl_next_as_first_directive=$gl_cv_next_errno_h
16698 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
16706 if test -n "$ERRNO_H"; then
16707 GL_GENERATE_ERRNO_H_TRUE=
16708 GL_GENERATE_ERRNO_H_FALSE='#'
16710 GL_GENERATE_ERRNO_H_TRUE='#'
16711 GL_GENERATE_ERRNO_H_FALSE=
16715 if test -n "$ERRNO_H"; then
16716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
16717 printf %s "checking for EMULTIHOP value... " >&6; }
16718 if test ${gl_cv_header_errno_h_EMULTIHOP+y}
16720 printf %s "(cached) " >&6
16723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724 /* end confdefs.h. */
16732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16733 $EGREP "yes" >/dev/null 2>&1
16735 gl_cv_header_errno_h_EMULTIHOP=yes
16737 gl_cv_header_errno_h_EMULTIHOP=no
16741 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
16742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743 /* end confdefs.h. */
16745 #define _XOPEN_SOURCE_EXTENDED 1
16752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16753 $EGREP "yes" >/dev/null 2>&1
16755 gl_cv_header_errno_h_EMULTIHOP=hidden
16759 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
16760 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
16761 #define _XOPEN_SOURCE_EXTENDED 1
16763 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16765 #include <stdlib.h>
16775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
16776 printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
16777 case $gl_cv_header_errno_h_EMULTIHOP in
16779 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
16782 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
16790 if test -n "$ERRNO_H"; then
16791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
16792 printf %s "checking for ENOLINK value... " >&6; }
16793 if test ${gl_cv_header_errno_h_ENOLINK+y}
16795 printf %s "(cached) " >&6
16798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799 /* end confdefs.h. */
16807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16808 $EGREP "yes" >/dev/null 2>&1
16810 gl_cv_header_errno_h_ENOLINK=yes
16812 gl_cv_header_errno_h_ENOLINK=no
16816 if test $gl_cv_header_errno_h_ENOLINK = no; then
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16820 #define _XOPEN_SOURCE_EXTENDED 1
16827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16828 $EGREP "yes" >/dev/null 2>&1
16830 gl_cv_header_errno_h_ENOLINK=hidden
16834 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
16835 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
16836 #define _XOPEN_SOURCE_EXTENDED 1
16838 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16840 #include <stdlib.h>
16850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
16851 printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; }
16852 case $gl_cv_header_errno_h_ENOLINK in
16854 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
16857 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
16865 if test -n "$ERRNO_H"; then
16866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
16867 printf %s "checking for EOVERFLOW value... " >&6; }
16868 if test ${gl_cv_header_errno_h_EOVERFLOW+y}
16870 printf %s "(cached) " >&6
16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h. */
16882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16883 $EGREP "yes" >/dev/null 2>&1
16885 gl_cv_header_errno_h_EOVERFLOW=yes
16887 gl_cv_header_errno_h_EOVERFLOW=no
16891 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
16892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893 /* end confdefs.h. */
16895 #define _XOPEN_SOURCE_EXTENDED 1
16902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16903 $EGREP "yes" >/dev/null 2>&1
16905 gl_cv_header_errno_h_EOVERFLOW=hidden
16909 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
16910 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
16911 #define _XOPEN_SOURCE_EXTENDED 1
16913 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16915 #include <stdlib.h>
16925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
16926 printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
16927 case $gl_cv_header_errno_h_EOVERFLOW in
16929 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
16932 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
16940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
16941 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
16942 if test ${ac_cv_c_undeclared_builtin_options+y}
16944 printf %s "(cached) " >&6
16946 ac_save_CFLAGS=$CFLAGS
16947 ac_cv_c_undeclared_builtin_options='cannot detect'
16948 for ac_arg in '' -fno-builtin; do
16949 CFLAGS="$ac_save_CFLAGS $ac_arg"
16950 # This test program should *not* compile successfully.
16951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16952 /* end confdefs.h. */
16962 if ac_fn_c_try_compile "$LINENO"
16966 # This test program should compile successfully.
16967 # No library function is consistently available on
16968 # freestanding implementations, so test against a dummy
16969 # declaration. Include always-available headers on the
16970 # off chance that they somehow elicit warnings.
16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h. */
16974 #include <limits.h>
16975 #include <stdarg.h>
16976 #include <stddef.h>
16977 extern void ac_decl (int, char *);
16982 (void) ac_decl (0, (char *) 0);
16989 if ac_fn_c_try_compile "$LINENO"
16991 if test x"$ac_arg" = x
16993 ac_cv_c_undeclared_builtin_options='none needed'
16995 ac_cv_c_undeclared_builtin_options=$ac_arg
16999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17003 CFLAGS=$ac_save_CFLAGS
17006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
17007 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
17008 case $ac_cv_c_undeclared_builtin_options in #(
17010 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17011 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17012 as_fn_error $? "cannot make $CC report undeclared builtins
17013 See \`config.log' for more details" "$LINENO" 5; } ;; #(
17015 ac_c_undeclared_builtin_options='' ;; #(
17017 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
17020 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
17021 if test "x$ac_cv_have_decl_strerror_r" = xyes
17027 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
17030 if test $ac_cv_have_decl_strerror_r = yes; then
17031 # For backward compatibility's sake, define HAVE_STRERROR_R.
17032 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
17033 # as AC_CHECK_DECLS_ONCE.)
17035 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
17039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
17040 printf %s "checking whether strerror_r returns char *... " >&6; }
17041 if test ${ac_cv_func_strerror_r_char_p+y}
17043 printf %s "(cached) " >&6
17046 ac_cv_func_strerror_r_char_p=no
17047 if test $ac_cv_have_decl_strerror_r = yes; then
17048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049 /* end confdefs.h. */
17050 #include <string.h>
17056 char x = *strerror_r (0, buf, sizeof buf);
17057 char *p = strerror_r (0, buf, sizeof buf);
17064 if ac_fn_c_try_compile "$LINENO"
17066 ac_cv_func_strerror_r_char_p=yes
17068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
17074 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
17075 if test $ac_cv_func_strerror_r_char_p = yes; then
17077 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
17082 XGETTEXT_EXTRA_OPTIONS=
17090 GNULIB_NONBLOCKING=0;
17107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
17108 printf %s "checking for working fcntl.h... " >&6; }
17109 if test ${gl_cv_header_working_fcntl_h+y}
17111 printf %s "(cached) " >&6
17113 if test "$cross_compiling" = yes
17116 # Guess 'no' on native Windows.
17117 mingw*) gl_cv_header_working_fcntl_h='no' ;;
17118 *) gl_cv_header_working_fcntl_h=cross-compiling ;;
17122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123 /* end confdefs.h. */
17124 #include <sys/types.h>
17125 #include <sys/stat.h>
17127 # include <unistd.h>
17128 #else /* on Windows with MSVC */
17130 # include <stdlib.h>
17131 # defined sleep(n) _sleep ((n) * 1000)
17139 #define O_NOATIME 0
17142 #define O_NOFOLLOW 0
17144 static int const constants[] =
17146 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
17147 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
17154 int result = !constants;
17157 static char const sym[] = "conftest.sym";
17158 if (symlink ("/dev/null", sym) != 0)
17162 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
17169 if (unlink (sym) != 0 || symlink (".", sym) != 0)
17173 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
17184 static char const file[] = "confdefs.h";
17185 int fd = open (file, O_RDONLY | O_NOATIME);
17191 if (fstat (fd, &st0) != 0)
17197 if (read (fd, &c, 1) != 1)
17201 if (close (fd) != 0)
17206 if (stat (file, &st1) != 0)
17209 if (st0.st_atime != st1.st_atime)
17221 if ac_fn_c_try_run "$LINENO"
17223 gl_cv_header_working_fcntl_h=yes
17226 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
17227 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
17228 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
17229 *) gl_cv_header_working_fcntl_h='no';;
17232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17233 conftest.$ac_objext conftest.beam conftest.$ac_ext
17238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
17239 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; }
17241 case $gl_cv_header_working_fcntl_h in #(
17242 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
17246 printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h
17249 case $gl_cv_header_working_fcntl_h in #(
17250 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
17254 printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h
17258 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
17260 if test "x$ac_cv_type_pid_t" = xyes
17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h. */
17267 #if defined _WIN64 && !defined __CYGWIN__
17280 if ac_fn_c_try_compile "$LINENO"
17284 ac_pid_type='__int64'
17286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17288 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
17294 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17295 if test "x$ac_cv_type_mode_t" = xyes
17300 printf "%s\n" "#define mode_t int" >>confdefs.h
17318 GNULIB_UTIMENSAT=0;
17319 GNULIB_OVERRIDES_STRUCT_STAT=0;
17332 REPLACE_FCHMODAT=0;
17335 REPLACE_FUTIMENS=0;
17341 REPLACE_UTIMENSAT=0;
17343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
17344 printf %s "checking whether stat file-mode macros are broken... " >&6; }
17345 if test ${ac_cv_header_stat_broken+y}
17347 printf %s "(cached) " >&6
17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350 /* end confdefs.h. */
17351 #include <sys/types.h>
17352 #include <sys/stat.h>
17354 #if defined S_ISBLK && defined S_IFDIR
17355 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
17358 #if defined S_ISBLK && defined S_IFCHR
17359 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
17362 #if defined S_ISLNK && defined S_IFREG
17363 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
17366 #if defined S_ISSOCK && defined S_IFREG
17367 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
17371 if ac_fn_c_try_compile "$LINENO"
17373 ac_cv_header_stat_broken=no
17375 ac_cv_header_stat_broken=yes
17377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
17380 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
17381 if test $ac_cv_header_stat_broken = yes; then
17383 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
17391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17392 printf %s "checking for 64-bit off_t... " >&6; }
17393 if test ${gl_cv_type_off_t_64+y}
17395 printf %s "(cached) " >&6
17397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398 /* end confdefs.h. */
17399 #include <sys/types.h>
17400 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17410 if ac_fn_c_try_compile "$LINENO"
17412 gl_cv_type_off_t_64=yes
17414 gl_cv_type_off_t_64=no
17416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17420 printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
17421 if test $gl_cv_type_off_t_64 = no; then
17422 WINDOWS_64_BIT_OFF_T=1
17424 WINDOWS_64_BIT_OFF_T=0
17426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
17427 printf %s "checking for 64-bit st_size... " >&6; }
17428 if test ${gl_cv_member_st_size_64+y}
17430 printf %s "(cached) " >&6
17432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17433 /* end confdefs.h. */
17434 #include <sys/types.h>
17436 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
17446 if ac_fn_c_try_compile "$LINENO"
17448 gl_cv_member_st_size_64=yes
17450 gl_cv_member_st_size_64=no
17452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
17456 printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
17457 if test $gl_cv_member_st_size_64 = no; then
17458 WINDOWS_64_BIT_ST_SIZE=1
17460 WINDOWS_64_BIT_ST_SIZE=0
17464 WINDOWS_64_BIT_OFF_T=0
17465 WINDOWS_64_BIT_ST_SIZE=0
17469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17470 printf %s "checking for C/C++ restrict keyword... " >&6; }
17471 if test ${ac_cv_c_restrict+y}
17473 printf %s "(cached) " >&6
17475 ac_cv_c_restrict=no
17476 # The order here caters to the fact that C++ does not require restrict.
17477 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17480 typedef int *int_ptr;
17481 int foo (int_ptr $ac_kw ip) { return ip[0]; }
17482 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
17483 int bar (int ip[$ac_kw]) { return ip[0]; }
17491 return foo (t) + bar (t);
17497 if ac_fn_c_try_compile "$LINENO"
17499 ac_cv_c_restrict=$ac_kw
17501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17502 test "$ac_cv_c_restrict" != no && break
17506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17507 printf "%s\n" "$ac_cv_c_restrict" >&6; }
17509 case $ac_cv_c_restrict in
17511 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
17513 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
17531 if test $gl_cv_have_include_next = yes; then
17532 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17535 printf %s "checking absolute name of <sys/stat.h>... " >&6; }
17536 if test ${gl_cv_next_sys_stat_h+y}
17538 printf %s "(cached) " >&6
17541 if test $ac_cv_header_sys_stat_h = yes; then
17546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547 /* end confdefs.h. */
17548 #include <sys/stat.h>
17551 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17552 *) gl_absname_cpp="$ac_cpp" ;;
17557 gl_dirsep_regex='[/\\]'
17560 gl_dirsep_regex='\/'
17563 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17564 gl_header_literal_regex=`echo 'sys/stat.h' \
17565 | sed -e "$gl_make_literal_regex_sed"`
17566 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17567 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17573 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17574 sed -n "$gl_absolute_header_sed"`
17576 gl_header=$gl_cv_absolute_sys_stat_h
17577 gl_cv_next_sys_stat_h='"'$gl_header'"'
17579 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17585 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
17587 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17589 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17590 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17591 gl_next_as_first_directive='<'sys/stat.h'>'
17593 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17594 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17596 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17605 WINDOWS_STAT_TIMESPEC=0
17614 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17615 #include <sys/stat.h>
17617 if test "x$ac_cv_type_nlink_t" = xyes
17622 printf "%s\n" "#define nlink_t int" >>confdefs.h
17637 ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
17638 if test "x$ac_cv_header_sdkddkver_h" = xyes
17640 printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h
17648 ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
17649 if test "x$ac_cv_have_decl_getdtablesize" = xyes
17655 printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h
17660 GNULIB_GETRANDOM=0;
17662 REPLACE_GETRANDOM=0;
17676 if test $gl_cv_have_include_next = yes; then
17677 gl_cv_next_limits_h='<'limits.h'>'
17679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
17680 printf %s "checking absolute name of <limits.h>... " >&6; }
17681 if test ${gl_cv_next_limits_h+y}
17683 printf %s "(cached) " >&6
17686 if test $ac_cv_header_limits_h = yes; then
17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692 /* end confdefs.h. */
17693 #include <limits.h>
17696 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17697 *) gl_absname_cpp="$ac_cpp" ;;
17702 gl_dirsep_regex='[/\\]'
17705 gl_dirsep_regex='\/'
17708 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17709 gl_header_literal_regex=`echo 'limits.h' \
17710 | sed -e "$gl_make_literal_regex_sed"`
17711 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17712 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17718 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17719 sed -n "$gl_absolute_header_sed"`
17721 gl_header=$gl_cv_absolute_limits_h
17722 gl_cv_next_limits_h='"'$gl_header'"'
17724 gl_cv_next_limits_h='<'limits.h'>'
17729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
17730 printf "%s\n" "$gl_cv_next_limits_h" >&6; }
17732 NEXT_LIMITS_H=$gl_cv_next_limits_h
17734 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17735 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17736 gl_next_as_first_directive='<'limits.h'>'
17738 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17739 gl_next_as_first_directive=$gl_cv_next_limits_h
17741 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
17747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
17748 printf %s "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
17749 if test ${gl_cv_header_limits_width+y}
17751 printf %s "(cached) " >&6
17753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h. */
17755 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
17756 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
17758 #include <limits.h>
17759 long long llm = LLONG_MAX;
17761 int ullw = ULLONG_WIDTH;
17771 if ac_fn_c_try_compile "$LINENO"
17773 gl_cv_header_limits_width=yes
17775 gl_cv_header_limits_width=no
17777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
17780 printf "%s\n" "$gl_cv_header_limits_width" >&6; }
17781 if test "$gl_cv_header_limits_width" = yes; then
17787 if test -n "$LIMITS_H"; then
17788 GL_GENERATE_LIMITS_H_TRUE=
17789 GL_GENERATE_LIMITS_H_FALSE='#'
17791 GL_GENERATE_LIMITS_H_TRUE='#'
17792 GL_GENERATE_LIMITS_H_FALSE=
17797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
17798 printf %s "checking for wint_t... " >&6; }
17799 if test ${gt_cv_c_wint_t+y}
17801 printf %s "(cached) " >&6
17803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17804 /* end confdefs.h. */
17806 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17808 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
17809 before <wchar.h>. */
17810 #include <stddef.h>
17814 wint_t foo = (wchar_t)'\0';
17823 if ac_fn_c_try_compile "$LINENO"
17829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
17832 printf "%s\n" "$gt_cv_c_wint_t" >&6; }
17833 if test $gt_cv_c_wint_t = yes; then
17835 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
17838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
17839 printf %s "checking whether wint_t is large enough... " >&6; }
17840 if test ${gl_cv_type_wint_t_large_enough+y}
17842 printf %s "(cached) " >&6
17844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h. */
17847 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17849 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17850 included before <wchar.h>. */
17851 #if !(defined __GLIBC__ && !defined __UCLIBC__)
17852 # include <stddef.h>
17853 # include <stdio.h>
17857 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
17867 if ac_fn_c_try_compile "$LINENO"
17869 gl_cv_type_wint_t_large_enough=yes
17871 gl_cv_type_wint_t_large_enough=no
17873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
17876 printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; }
17877 if test $gl_cv_type_wint_t_large_enough = no; then
17878 GNULIB_OVERRIDES_WINT_T=1
17880 GNULIB_OVERRIDES_WINT_T=0
17883 GNULIB_OVERRIDES_WINT_T=0
17889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
17890 printf %s "checking whether the compiler produces multi-arch binaries... " >&6; }
17891 if test ${gl_cv_c_multiarch+y}
17893 printf %s "(cached) " >&6
17895 gl_cv_c_multiarch=no
17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17898 #ifndef __APPLE_CC__
17899 not a universal capable compiler
17904 if ac_fn_c_try_compile "$LINENO"
17909 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17910 if test -n "$prev"; then
17912 i?86 | x86_64 | ppc | ppc64 | arm | arm64)
17913 if test -z "$arch" || test "$arch" = "$word"; then
17916 gl_cv_c_multiarch=yes
17922 if test "x$word" = "x-arch"; then
17929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
17933 printf "%s\n" "$gl_cv_c_multiarch" >&6; }
17934 if test $gl_cv_c_multiarch = yes; then
17935 APPLE_UNIVERSAL_BUILD=1
17937 APPLE_UNIVERSAL_BUILD=0
17947 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17950 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17954 if test $ac_cv_header_wchar_h = yes; then
17961 if test $ac_cv_header_inttypes_h = yes; then
17968 if test $ac_cv_header_sys_types_h = yes; then
17984 if test $gl_cv_have_include_next = yes; then
17985 gl_cv_next_stdint_h='<'stdint.h'>'
17987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17988 printf %s "checking absolute name of <stdint.h>... " >&6; }
17989 if test ${gl_cv_next_stdint_h+y}
17991 printf %s "(cached) " >&6
17994 if test $ac_cv_header_stdint_h = yes; then
17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18001 #include <stdint.h>
18004 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18005 *) gl_absname_cpp="$ac_cpp" ;;
18010 gl_dirsep_regex='[/\\]'
18013 gl_dirsep_regex='\/'
18016 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18017 gl_header_literal_regex=`echo 'stdint.h' \
18018 | sed -e "$gl_make_literal_regex_sed"`
18019 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18020 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18026 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18027 sed -n "$gl_absolute_header_sed"`
18029 gl_header=$gl_cv_absolute_stdint_h
18030 gl_cv_next_stdint_h='"'$gl_header'"'
18032 gl_cv_next_stdint_h='<'stdint.h'>'
18037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18038 printf "%s\n" "$gl_cv_next_stdint_h" >&6; }
18040 NEXT_STDINT_H=$gl_cv_next_stdint_h
18042 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18043 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18044 gl_next_as_first_directive='<'stdint.h'>'
18046 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18047 gl_next_as_first_directive=$gl_cv_next_stdint_h
18049 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18054 if test $ac_cv_header_stdint_h = yes; then
18061 if test $ac_cv_header_stdint_h = yes; then
18062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18063 printf %s "checking whether stdint.h conforms to C99... " >&6; }
18064 if test ${gl_cv_header_working_stdint_h+y}
18066 printf %s "(cached) " >&6
18068 gl_cv_header_working_stdint_h=no
18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18070 /* end confdefs.h. */
18073 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18074 #define __STDC_CONSTANT_MACROS 1
18075 #define __STDC_LIMIT_MACROS 1
18076 #include <stdint.h>
18077 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18078 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18079 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18083 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18084 included before <wchar.h>. */
18085 #include <stddef.h>
18086 #include <signal.h>
18088 # include <stdio.h>
18090 # include <wchar.h>
18095 int8_t a1 = INT8_MAX;
18096 int8_t a1min = INT8_MIN;
18099 int16_t a2 = INT16_MAX;
18100 int16_t a2min = INT16_MIN;
18103 int32_t a3 = INT32_MAX;
18104 int32_t a3min = INT32_MIN;
18107 int64_t a4 = INT64_MAX;
18108 int64_t a4min = INT64_MIN;
18111 uint8_t b1 = UINT8_MAX;
18113 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18116 uint16_t b2 = UINT16_MAX;
18119 uint32_t b3 = UINT32_MAX;
18122 uint64_t b4 = UINT64_MAX;
18124 int_least8_t c1 = INT8_C (0x7f);
18125 int_least8_t c1max = INT_LEAST8_MAX;
18126 int_least8_t c1min = INT_LEAST8_MIN;
18127 int_least16_t c2 = INT16_C (0x7fff);
18128 int_least16_t c2max = INT_LEAST16_MAX;
18129 int_least16_t c2min = INT_LEAST16_MIN;
18130 int_least32_t c3 = INT32_C (0x7fffffff);
18131 int_least32_t c3max = INT_LEAST32_MAX;
18132 int_least32_t c3min = INT_LEAST32_MIN;
18133 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18134 int_least64_t c4max = INT_LEAST64_MAX;
18135 int_least64_t c4min = INT_LEAST64_MIN;
18136 uint_least8_t d1 = UINT8_C (0xff);
18137 uint_least8_t d1max = UINT_LEAST8_MAX;
18138 uint_least16_t d2 = UINT16_C (0xffff);
18139 uint_least16_t d2max = UINT_LEAST16_MAX;
18140 uint_least32_t d3 = UINT32_C (0xffffffff);
18141 uint_least32_t d3max = UINT_LEAST32_MAX;
18142 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18143 uint_least64_t d4max = UINT_LEAST64_MAX;
18144 int_fast8_t e1 = INT_FAST8_MAX;
18145 int_fast8_t e1min = INT_FAST8_MIN;
18146 int_fast16_t e2 = INT_FAST16_MAX;
18147 int_fast16_t e2min = INT_FAST16_MIN;
18148 int_fast32_t e3 = INT_FAST32_MAX;
18149 int_fast32_t e3min = INT_FAST32_MIN;
18150 int_fast64_t e4 = INT_FAST64_MAX;
18151 int_fast64_t e4min = INT_FAST64_MIN;
18152 uint_fast8_t f1 = UINT_FAST8_MAX;
18153 uint_fast16_t f2 = UINT_FAST16_MAX;
18154 uint_fast32_t f3 = UINT_FAST32_MAX;
18155 uint_fast64_t f4 = UINT_FAST64_MAX;
18157 intptr_t g = INTPTR_MAX;
18158 intptr_t gmin = INTPTR_MIN;
18161 uintptr_t h = UINTPTR_MAX;
18163 intmax_t i = INTMAX_MAX;
18164 uintmax_t j = UINTMAX_MAX;
18166 /* Check that SIZE_MAX has the correct type, if possible. */
18167 #if 201112 <= __STDC_VERSION__
18168 int k = _Generic (SIZE_MAX, size_t: 0);
18169 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
18170 || (0x5110 <= __SUNPRO_C && !__STDC__))
18172 extern __typeof__ (SIZE_MAX) k;
18175 #include <limits.h> /* for CHAR_BIT */
18176 #define TYPE_MINIMUM(t) \
18177 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18178 #define TYPE_MAXIMUM(t) \
18179 ((t) ((t) 0 < (t) -1 \
18181 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18184 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18185 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18187 /* Detect bug in FreeBSD 6.0 / ia64. */
18188 int check_SIG_ATOMIC:
18189 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18190 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18192 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18194 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18195 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18197 /* Detect bug in mingw. */
18199 WINT_MIN == TYPE_MINIMUM (wint_t)
18200 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18203 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18205 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18206 int check_UINT16_C:
18207 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18209 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18211 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18214 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18217 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18220 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18222 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18223 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18224 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18225 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18226 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18227 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18228 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18229 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18230 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18231 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18232 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18243 if ac_fn_c_try_compile "$LINENO"
18245 if test "$cross_compiling" = yes
18248 # Guess yes on native Windows.
18249 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
18250 # In general, assume it works.
18251 *) gl_cv_header_working_stdint_h="guessing yes" ;;
18255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18259 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18260 #define __STDC_CONSTANT_MACROS 1
18261 #define __STDC_LIMIT_MACROS 1
18262 #include <stdint.h>
18265 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18266 included before <wchar.h>. */
18267 #include <stddef.h>
18268 #include <signal.h>
18270 # include <stdio.h>
18272 # include <wchar.h>
18277 #include <string.h>
18278 #define MVAL(macro) MVAL1(macro)
18279 #define MVAL1(expression) #expression
18280 static const char *macro_values[] =
18314 for (mv = macro_values; *mv != NULL; mv++)
18316 const char *value = *mv;
18317 /* Test whether it looks like a cast expression. */
18318 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18319 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18320 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18321 || strncmp (value, "((int)"/*)*/, 6) == 0
18322 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18323 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18324 return mv - macro_values + 1;
18332 if ac_fn_c_try_run "$LINENO"
18334 gl_cv_header_working_stdint_h=yes
18336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18337 conftest.$ac_objext conftest.beam conftest.$ac_ext
18342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18346 printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; }
18349 HAVE_C99_STDINT_H=0
18350 HAVE_SYS_BITYPES_H=0
18351 HAVE_SYS_INTTYPES_H=0
18353 case "$gl_cv_header_working_stdint_h" in
18355 HAVE_C99_STDINT_H=1
18356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
18357 printf %s "checking whether stdint.h works without ISO C predefines... " >&6; }
18358 if test ${gl_cv_header_stdint_without_STDC_macros+y}
18360 printf %s "(cached) " >&6
18362 gl_cv_header_stdint_without_STDC_macros=no
18363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h. */
18367 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18368 #include <stdint.h>
18371 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18372 included before <wchar.h>. */
18373 #include <stddef.h>
18374 #include <signal.h>
18376 # include <stdio.h>
18378 # include <wchar.h>
18382 intmax_t im = INTMAX_MAX;
18383 int32_t i32 = INT32_C (0x7fffffff);
18393 if ac_fn_c_try_compile "$LINENO"
18395 gl_cv_header_stdint_without_STDC_macros=yes
18397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
18401 printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; }
18403 if test $gl_cv_header_stdint_without_STDC_macros = no; then
18405 printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
18408 printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
18411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
18412 printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
18413 if test ${gl_cv_header_stdint_width+y}
18415 printf %s "(cached) " >&6
18417 gl_cv_header_stdint_width=no
18418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h. */
18421 /* Work if build is not clean. */
18422 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
18423 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
18424 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
18426 #include <stdint.h>
18428 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18429 included before <wchar.h>. */
18430 #include <stddef.h>
18431 #include <signal.h>
18433 # include <stdio.h>
18435 # include <wchar.h>
18438 int iw = UINTMAX_WIDTH;
18448 if ac_fn_c_try_compile "$LINENO"
18450 gl_cv_header_stdint_width=yes
18452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
18455 printf "%s\n" "$gl_cv_header_stdint_width" >&6; }
18456 if test "$gl_cv_header_stdint_width" = yes; then
18461 ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
18462 if test "x$ac_cv_header_sys_inttypes_h" = xyes
18464 printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h
18467 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
18468 if test "x$ac_cv_header_sys_bitypes_h" = xyes
18470 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
18474 if test $ac_cv_header_sys_inttypes_h = yes; then
18475 HAVE_SYS_INTTYPES_H=1
18477 if test $ac_cv_header_sys_bitypes_h = yes; then
18478 HAVE_SYS_BITYPES_H=1
18482 if test $APPLE_UNIVERSAL_BUILD = 0; then
18485 for gltype in ptrdiff_t size_t ; do
18486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18487 printf %s "checking for bit size of $gltype... " >&6; }
18488 if eval test \${gl_cv_bitsizeof_${gltype}+y}
18490 printf %s "(cached) " >&6
18492 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18493 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18494 included before <wchar.h>. */
18495 #include <stddef.h>
18496 #include <signal.h>
18498 # include <stdio.h>
18500 # include <wchar.h>
18503 #include <limits.h>"
18510 eval gl_cv_bitsizeof_${gltype}=\$result
18513 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18515 printf "%s\n" "$ac_res" >&6; }
18516 eval result=\$gl_cv_bitsizeof_${gltype}
18517 if test $result = unknown; then
18520 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18521 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
18523 eval BITSIZEOF_${GLTYPE}=\$result
18530 for gltype in sig_atomic_t wchar_t wint_t ; do
18531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18532 printf %s "checking for bit size of $gltype... " >&6; }
18533 if eval test \${gl_cv_bitsizeof_${gltype}+y}
18535 printf %s "(cached) " >&6
18537 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18538 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18539 included before <wchar.h>. */
18540 #include <stddef.h>
18541 #include <signal.h>
18543 # include <stdio.h>
18545 # include <wchar.h>
18548 #include <limits.h>"
18555 eval gl_cv_bitsizeof_${gltype}=\$result
18558 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18560 printf "%s\n" "$ac_res" >&6; }
18561 eval result=\$gl_cv_bitsizeof_${gltype}
18562 if test $result = unknown; then
18565 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18566 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
18568 eval BITSIZEOF_${GLTYPE}=\$result
18574 for gltype in sig_atomic_t wchar_t wint_t ; do
18575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18576 printf %s "checking whether $gltype is signed... " >&6; }
18577 if eval test \${gl_cv_type_${gltype}_signed+y}
18579 printf %s "(cached) " >&6
18581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18582 /* end confdefs.h. */
18584 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18585 included before <wchar.h>. */
18586 #include <stddef.h>
18587 #include <signal.h>
18589 # include <stdio.h>
18591 # include <wchar.h>
18594 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18603 if ac_fn_c_try_compile "$LINENO"
18609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18610 eval gl_cv_type_${gltype}_signed=\$result
18613 eval ac_res=\$gl_cv_type_${gltype}_signed
18614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18615 printf "%s\n" "$ac_res" >&6; }
18616 eval result=\$gl_cv_type_${gltype}_signed
18617 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18618 if test "$result" = yes; then
18619 printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h
18621 eval HAVE_SIGNED_${GLTYPE}=1
18623 eval HAVE_SIGNED_${GLTYPE}=0
18628 gl_cv_type_ptrdiff_t_signed=yes
18629 gl_cv_type_size_t_signed=no
18630 if test $APPLE_UNIVERSAL_BUILD = 0; then
18633 for gltype in ptrdiff_t size_t ; do
18634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18635 printf %s "checking for $gltype integer literal suffix... " >&6; }
18636 if eval test \${gl_cv_type_${gltype}_suffix+y}
18638 printf %s "(cached) " >&6
18640 eval gl_cv_type_${gltype}_suffix=no
18641 eval result=\$gl_cv_type_${gltype}_signed
18642 if test "$result" = yes; then
18647 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18649 '') gltype1='int';;
18650 l) gltype1='long int';;
18651 ll) gltype1='long long int';;
18652 i64) gltype1='__int64';;
18653 u) gltype1='unsigned int';;
18654 ul) gltype1='unsigned long int';;
18655 ull) gltype1='unsigned long long int';;
18656 ui64)gltype1='unsigned __int64';;
18658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18659 /* end confdefs.h. */
18661 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18662 included before <wchar.h>. */
18663 #include <stddef.h>
18664 #include <signal.h>
18666 # include <stdio.h>
18668 # include <wchar.h>
18671 extern $gltype foo;
18672 extern $gltype1 foo;
18681 if ac_fn_c_try_compile "$LINENO"
18683 eval gl_cv_type_${gltype}_suffix=\$glsuf
18685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18686 eval result=\$gl_cv_type_${gltype}_suffix
18687 test "$result" != no && break
18690 eval ac_res=\$gl_cv_type_${gltype}_suffix
18691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18692 printf "%s\n" "$ac_res" >&6; }
18693 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18694 eval result=\$gl_cv_type_${gltype}_suffix
18695 test "$result" = no && result=
18696 eval ${GLTYPE}_SUFFIX=\$result
18697 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
18705 for gltype in sig_atomic_t wchar_t wint_t ; do
18706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18707 printf %s "checking for $gltype integer literal suffix... " >&6; }
18708 if eval test \${gl_cv_type_${gltype}_suffix+y}
18710 printf %s "(cached) " >&6
18712 eval gl_cv_type_${gltype}_suffix=no
18713 eval result=\$gl_cv_type_${gltype}_signed
18714 if test "$result" = yes; then
18719 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18721 '') gltype1='int';;
18722 l) gltype1='long int';;
18723 ll) gltype1='long long int';;
18724 i64) gltype1='__int64';;
18725 u) gltype1='unsigned int';;
18726 ul) gltype1='unsigned long int';;
18727 ull) gltype1='unsigned long long int';;
18728 ui64)gltype1='unsigned __int64';;
18730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18731 /* end confdefs.h. */
18733 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18734 included before <wchar.h>. */
18735 #include <stddef.h>
18736 #include <signal.h>
18738 # include <stdio.h>
18740 # include <wchar.h>
18743 extern $gltype foo;
18744 extern $gltype1 foo;
18753 if ac_fn_c_try_compile "$LINENO"
18755 eval gl_cv_type_${gltype}_suffix=\$glsuf
18757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18758 eval result=\$gl_cv_type_${gltype}_suffix
18759 test "$result" != no && break
18762 eval ac_res=\$gl_cv_type_${gltype}_suffix
18763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18764 printf "%s\n" "$ac_res" >&6; }
18765 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18766 eval result=\$gl_cv_type_${gltype}_suffix
18767 test "$result" = no && result=
18768 eval ${GLTYPE}_SUFFIX=\$result
18769 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
18775 if test $GNULIB_OVERRIDES_WINT_T = 1; then
18776 BITSIZEOF_WINT_T=32
18784 LIMITS_H='limits.h'
18785 if test -n "$LIMITS_H"; then
18786 GL_GENERATE_LIMITS_H_TRUE=
18787 GL_GENERATE_LIMITS_H_FALSE='#'
18789 GL_GENERATE_LIMITS_H_TRUE='#'
18790 GL_GENERATE_LIMITS_H_FALSE=
18799 if test -n "$STDINT_H"; then
18800 GL_GENERATE_STDINT_H_TRUE=
18801 GL_GENERATE_STDINT_H_FALSE='#'
18803 GL_GENERATE_STDINT_H_TRUE='#'
18804 GL_GENERATE_STDINT_H_FALSE=
18811 GNULIB_STRTOIMAX=0;
18812 GNULIB_STRTOUMAX=0;
18813 HAVE_DECL_IMAXABS=1;
18814 HAVE_DECL_IMAXDIV=1;
18815 HAVE_DECL_STRTOIMAX=1;
18816 HAVE_DECL_STRTOUMAX=1;
18818 REPLACE_STRTOIMAX=0;
18819 REPLACE_STRTOUMAX=0;
18820 INT32_MAX_LT_INTMAX_MAX=1;
18821 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18822 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18823 UINT32_MAX_LT_UINTMAX_MAX=1;
18824 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18840 if test $gl_cv_have_include_next = yes; then
18841 gl_cv_next_inttypes_h='<'inttypes.h'>'
18843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18844 printf %s "checking absolute name of <inttypes.h>... " >&6; }
18845 if test ${gl_cv_next_inttypes_h+y}
18847 printf %s "(cached) " >&6
18850 if test $ac_cv_header_inttypes_h = yes; then
18855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h. */
18857 #include <inttypes.h>
18860 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18861 *) gl_absname_cpp="$ac_cpp" ;;
18866 gl_dirsep_regex='[/\\]'
18869 gl_dirsep_regex='\/'
18872 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18873 gl_header_literal_regex=`echo 'inttypes.h' \
18874 | sed -e "$gl_make_literal_regex_sed"`
18875 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18876 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18882 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18883 sed -n "$gl_absolute_header_sed"`
18885 gl_header=$gl_cv_absolute_inttypes_h
18886 gl_cv_next_inttypes_h='"'$gl_header'"'
18888 gl_cv_next_inttypes_h='<'inttypes.h'>'
18893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18894 printf "%s\n" "$gl_cv_next_inttypes_h" >&6; }
18896 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18898 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18899 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18900 gl_next_as_first_directive='<'inttypes.h'>'
18902 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18903 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18905 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18922 gl_threads_api=none
18927 if test "$gl_use_threads" != no; then
18930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
18931 printf %s "checking whether imported symbols can be declared weak... " >&6; }
18932 if test ${gl_cv_have_weak+y}
18934 printf %s "(cached) " >&6
18937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938 /* end confdefs.h. */
18939 extern void xyzzy ();
18949 if ac_fn_c_try_link "$LINENO"
18951 gl_cv_have_weak=maybe
18953 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18954 conftest$ac_exeext conftest.$ac_ext
18955 if test $gl_cv_have_weak = maybe; then
18956 if test "$cross_compiling" = yes
18958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18959 /* end confdefs.h. */
18961 Extensible Linking Format
18965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18966 $EGREP "Extensible Linking Format" >/dev/null 2>&1
18968 gl_cv_have_weak="guessing yes"
18970 gl_cv_have_weak="guessing no"
18976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18977 /* end confdefs.h. */
18983 return (fputs == NULL);
18986 if ac_fn_c_try_run "$LINENO"
18988 gl_cv_have_weak=yes
18992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18993 conftest.$ac_objext conftest.beam conftest.$ac_ext
18997 case " $LDFLAGS " in
18998 *" -static "*) gl_cv_have_weak=no ;;
19000 case "$gl_cv_have_weak" in
19003 freebsd* | dragonfly*)
19005 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
19006 cat <<EOF > conftest2.c
19007 #include <pthread.h>
19008 #pragma weak pthread_mutexattr_gettype
19011 return (pthread_mutexattr_gettype != NULL);
19014 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
19015 || gl_cv_have_weak=no
19016 rm -f conftest1.c libempty.so conftest2.c conftest
19023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
19024 printf "%s\n" "$gl_cv_have_weak" >&6; }
19025 case "$gl_cv_have_weak" in
19028 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
19033 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
19037 if test "$gl_use_threads" = isoc || test "$gl_use_threads" = isoc+posix; then
19039 gl_have_isoc_threads="$ac_cv_header_threads_h"
19041 if test "$gl_use_threads" = yes \
19042 || test "$gl_use_threads" = posix \
19043 || test "$gl_use_threads" = isoc+posix; then
19046 if test -z "$gl_pthreadlib_body_done"; then
19050 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
19051 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
19052 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19053 if test "x$ac_cv_header_pthread_h" = xyes
19055 gl_have_pthread_h=yes
19057 gl_have_pthread_h=no
19060 if test "$gl_have_pthread_h" = yes; then
19061 # Other possible tests:
19062 # -lpthreads (FSU threads, PCthreads)
19064 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
19065 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
19066 # the second one only in libpthread, and lock.c needs it.
19068 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
19069 # needs -pthread for some reason. See:
19070 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
19072 for gl_pthread in '' '-pthread'; do
19073 LIBS="$LIBS $gl_pthread"
19074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h. */
19076 #include <pthread.h>
19078 pthread_mutexattr_t ma;
19083 pthread_mutex_lock (&m);
19084 pthread_mutexattr_init (&ma);
19089 if ac_fn_c_try_link "$LINENO"
19092 LIBPTHREAD=$gl_pthread
19093 LIBPMULTITHREAD=$gl_pthread
19095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19096 conftest$ac_exeext conftest.$ac_ext
19098 test $gl_pthread_api = yes && break
19101 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
19102 # since it is defined as a macro on OSF/1.)
19103 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
19104 # The program links fine without libpthread. But it may actually
19105 # need to link with libpthread in order to create multiple threads.
19106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
19107 printf %s "checking for pthread_kill in -lpthread... " >&6; }
19108 if test ${ac_cv_lib_pthread_pthread_kill+y}
19110 printf %s "(cached) " >&6
19112 ac_check_lib_save_LIBS=$LIBS
19113 LIBS="-lpthread $LIBS"
19114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19115 /* end confdefs.h. */
19117 /* Override any GCC internal prototype to avoid an error.
19118 Use char because int might match the return type of a GCC
19119 builtin and then its argument prototype would still apply. */
19120 char pthread_kill ();
19124 return pthread_kill ();
19129 if ac_fn_c_try_link "$LINENO"
19131 ac_cv_lib_pthread_pthread_kill=yes
19133 ac_cv_lib_pthread_pthread_kill=no
19135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19136 conftest$ac_exeext conftest.$ac_ext
19137 LIBS=$ac_check_lib_save_LIBS
19139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
19140 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
19141 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
19143 LIBPMULTITHREAD=-lpthread
19144 # On Solaris and HP-UX, most pthread functions exist also in libc.
19145 # Therefore pthread_in_use() needs to actually try to create a
19146 # thread: pthread_create from libc will fail, whereas
19147 # pthread_create will actually create a thread.
19148 # On Solaris 10 or newer, this test is no longer needed, because
19149 # libc contains the fully functional pthread functions.
19151 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
19153 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
19159 elif test $gl_pthread_api != yes; then
19160 # Some library is needed. Try libpthread and libc_r.
19161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
19162 printf %s "checking for pthread_kill in -lpthread... " >&6; }
19163 if test ${ac_cv_lib_pthread_pthread_kill+y}
19165 printf %s "(cached) " >&6
19167 ac_check_lib_save_LIBS=$LIBS
19168 LIBS="-lpthread $LIBS"
19169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19170 /* end confdefs.h. */
19172 /* Override any GCC internal prototype to avoid an error.
19173 Use char because int might match the return type of a GCC
19174 builtin and then its argument prototype would still apply. */
19175 char pthread_kill ();
19179 return pthread_kill ();
19184 if ac_fn_c_try_link "$LINENO"
19186 ac_cv_lib_pthread_pthread_kill=yes
19188 ac_cv_lib_pthread_pthread_kill=no
19190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19191 conftest$ac_exeext conftest.$ac_ext
19192 LIBS=$ac_check_lib_save_LIBS
19194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
19195 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
19196 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
19199 LIBPTHREAD=-lpthread
19200 LIBPMULTITHREAD=-lpthread
19203 if test $gl_pthread_api != yes; then
19205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
19206 printf %s "checking for pthread_kill in -lc_r... " >&6; }
19207 if test ${ac_cv_lib_c_r_pthread_kill+y}
19209 printf %s "(cached) " >&6
19211 ac_check_lib_save_LIBS=$LIBS
19213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19214 /* end confdefs.h. */
19216 /* Override any GCC internal prototype to avoid an error.
19217 Use char because int might match the return type of a GCC
19218 builtin and then its argument prototype would still apply. */
19219 char pthread_kill ();
19223 return pthread_kill ();
19228 if ac_fn_c_try_link "$LINENO"
19230 ac_cv_lib_c_r_pthread_kill=yes
19232 ac_cv_lib_c_r_pthread_kill=no
19234 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19235 conftest$ac_exeext conftest.$ac_ext
19236 LIBS=$ac_check_lib_save_LIBS
19238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
19239 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
19240 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
19244 LIBPMULTITHREAD=-lc_r
19250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
19251 printf %s "checking whether POSIX threads API is available... " >&6; }
19252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
19253 printf "%s\n" "$gl_pthread_api" >&6; }
19256 if test $gl_pthread_api = yes; then
19258 printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h
19262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19263 /* end confdefs.h. */
19273 if ac_fn_c_try_link "$LINENO"
19278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
19279 printf %s "checking for sched_yield in -lrt... " >&6; }
19280 if test ${ac_cv_lib_rt_sched_yield+y}
19282 printf %s "(cached) " >&6
19284 ac_check_lib_save_LIBS=$LIBS
19286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19287 /* end confdefs.h. */
19289 /* Override any GCC internal prototype to avoid an error.
19290 Use char because int might match the return type of a GCC
19291 builtin and then its argument prototype would still apply. */
19292 char sched_yield ();
19296 return sched_yield ();
19301 if ac_fn_c_try_link "$LINENO"
19303 ac_cv_lib_rt_sched_yield=yes
19305 ac_cv_lib_rt_sched_yield=no
19307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19308 conftest$ac_exeext conftest.$ac_ext
19309 LIBS=$ac_check_lib_save_LIBS
19311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
19312 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
19313 if test "x$ac_cv_lib_rt_sched_yield" = xyes
19315 LIB_SCHED_YIELD=-lrt
19317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
19318 printf %s "checking for sched_yield in -lposix4... " >&6; }
19319 if test ${ac_cv_lib_posix4_sched_yield+y}
19321 printf %s "(cached) " >&6
19323 ac_check_lib_save_LIBS=$LIBS
19324 LIBS="-lposix4 $LIBS"
19325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19326 /* end confdefs.h. */
19328 /* Override any GCC internal prototype to avoid an error.
19329 Use char because int might match the return type of a GCC
19330 builtin and then its argument prototype would still apply. */
19331 char sched_yield ();
19335 return sched_yield ();
19340 if ac_fn_c_try_link "$LINENO"
19342 ac_cv_lib_posix4_sched_yield=yes
19344 ac_cv_lib_posix4_sched_yield=no
19346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19347 conftest$ac_exeext conftest.$ac_ext
19348 LIBS=$ac_check_lib_save_LIBS
19350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
19351 printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; }
19352 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
19354 LIB_SCHED_YIELD=-lposix4
19361 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19362 conftest$ac_exeext conftest.$ac_ext
19365 gl_pthreadlib_body_done=done
19368 LIBTHREAD=$LIBPTHREAD LTLIBTHREAD=$LIBPTHREAD
19369 LIBMULTITHREAD=$LIBPMULTITHREAD LTLIBMULTITHREAD=$LIBPMULTITHREAD
19370 if test $gl_pthread_api = yes; then
19371 if test "$gl_use_threads" = isoc+posix && test "$gl_have_isoc_threads" = yes; then
19372 gl_threads_api='isoc+posix'
19374 printf "%s\n" "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
19376 LIBTHREAD= LTLIBTHREAD=
19378 gl_threads_api=posix
19380 printf "%s\n" "#define USE_POSIX_THREADS 1" >>confdefs.h
19382 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
19383 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
19385 printf "%s\n" "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
19387 LIBTHREAD= LTLIBTHREAD=
19393 if test $gl_threads_api = none; then
19394 if test "$gl_use_threads" = isoc && test "$gl_have_isoc_threads" = yes; then
19398 if test -z "$gl_stdthreadlib_body_done"; then
19408 if test -z "$gl_pthreadlib_body_done"; then
19412 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
19413 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
19414 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19415 if test "x$ac_cv_header_pthread_h" = xyes
19417 gl_have_pthread_h=yes
19419 gl_have_pthread_h=no
19422 if test "$gl_have_pthread_h" = yes; then
19423 # Other possible tests:
19424 # -lpthreads (FSU threads, PCthreads)
19426 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
19427 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
19428 # the second one only in libpthread, and lock.c needs it.
19430 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
19431 # needs -pthread for some reason. See:
19432 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
19434 for gl_pthread in '' '-pthread'; do
19435 LIBS="$LIBS $gl_pthread"
19436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h. */
19438 #include <pthread.h>
19440 pthread_mutexattr_t ma;
19445 pthread_mutex_lock (&m);
19446 pthread_mutexattr_init (&ma);
19451 if ac_fn_c_try_link "$LINENO"
19454 LIBPTHREAD=$gl_pthread
19455 LIBPMULTITHREAD=$gl_pthread
19457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19458 conftest$ac_exeext conftest.$ac_ext
19460 test $gl_pthread_api = yes && break
19463 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
19464 # since it is defined as a macro on OSF/1.)
19465 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
19466 # The program links fine without libpthread. But it may actually
19467 # need to link with libpthread in order to create multiple threads.
19468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
19469 printf %s "checking for pthread_kill in -lpthread... " >&6; }
19470 if test ${ac_cv_lib_pthread_pthread_kill+y}
19472 printf %s "(cached) " >&6
19474 ac_check_lib_save_LIBS=$LIBS
19475 LIBS="-lpthread $LIBS"
19476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19477 /* end confdefs.h. */
19479 /* Override any GCC internal prototype to avoid an error.
19480 Use char because int might match the return type of a GCC
19481 builtin and then its argument prototype would still apply. */
19482 char pthread_kill ();
19486 return pthread_kill ();
19491 if ac_fn_c_try_link "$LINENO"
19493 ac_cv_lib_pthread_pthread_kill=yes
19495 ac_cv_lib_pthread_pthread_kill=no
19497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19498 conftest$ac_exeext conftest.$ac_ext
19499 LIBS=$ac_check_lib_save_LIBS
19501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
19502 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
19503 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
19505 LIBPMULTITHREAD=-lpthread
19506 # On Solaris and HP-UX, most pthread functions exist also in libc.
19507 # Therefore pthread_in_use() needs to actually try to create a
19508 # thread: pthread_create from libc will fail, whereas
19509 # pthread_create will actually create a thread.
19510 # On Solaris 10 or newer, this test is no longer needed, because
19511 # libc contains the fully functional pthread functions.
19513 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
19515 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
19521 elif test $gl_pthread_api != yes; then
19522 # Some library is needed. Try libpthread and libc_r.
19523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
19524 printf %s "checking for pthread_kill in -lpthread... " >&6; }
19525 if test ${ac_cv_lib_pthread_pthread_kill+y}
19527 printf %s "(cached) " >&6
19529 ac_check_lib_save_LIBS=$LIBS
19530 LIBS="-lpthread $LIBS"
19531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19532 /* end confdefs.h. */
19534 /* Override any GCC internal prototype to avoid an error.
19535 Use char because int might match the return type of a GCC
19536 builtin and then its argument prototype would still apply. */
19537 char pthread_kill ();
19541 return pthread_kill ();
19546 if ac_fn_c_try_link "$LINENO"
19548 ac_cv_lib_pthread_pthread_kill=yes
19550 ac_cv_lib_pthread_pthread_kill=no
19552 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19553 conftest$ac_exeext conftest.$ac_ext
19554 LIBS=$ac_check_lib_save_LIBS
19556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
19557 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
19558 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
19561 LIBPTHREAD=-lpthread
19562 LIBPMULTITHREAD=-lpthread
19565 if test $gl_pthread_api != yes; then
19567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
19568 printf %s "checking for pthread_kill in -lc_r... " >&6; }
19569 if test ${ac_cv_lib_c_r_pthread_kill+y}
19571 printf %s "(cached) " >&6
19573 ac_check_lib_save_LIBS=$LIBS
19575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19576 /* end confdefs.h. */
19578 /* Override any GCC internal prototype to avoid an error.
19579 Use char because int might match the return type of a GCC
19580 builtin and then its argument prototype would still apply. */
19581 char pthread_kill ();
19585 return pthread_kill ();
19590 if ac_fn_c_try_link "$LINENO"
19592 ac_cv_lib_c_r_pthread_kill=yes
19594 ac_cv_lib_c_r_pthread_kill=no
19596 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19597 conftest$ac_exeext conftest.$ac_ext
19598 LIBS=$ac_check_lib_save_LIBS
19600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
19601 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
19602 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
19606 LIBPMULTITHREAD=-lc_r
19612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
19613 printf %s "checking whether POSIX threads API is available... " >&6; }
19614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
19615 printf "%s\n" "$gl_pthread_api" >&6; }
19618 if test $gl_pthread_api = yes; then
19620 printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h
19624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625 /* end confdefs.h. */
19635 if ac_fn_c_try_link "$LINENO"
19640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
19641 printf %s "checking for sched_yield in -lrt... " >&6; }
19642 if test ${ac_cv_lib_rt_sched_yield+y}
19644 printf %s "(cached) " >&6
19646 ac_check_lib_save_LIBS=$LIBS
19648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h. */
19651 /* Override any GCC internal prototype to avoid an error.
19652 Use char because int might match the return type of a GCC
19653 builtin and then its argument prototype would still apply. */
19654 char sched_yield ();
19658 return sched_yield ();
19663 if ac_fn_c_try_link "$LINENO"
19665 ac_cv_lib_rt_sched_yield=yes
19667 ac_cv_lib_rt_sched_yield=no
19669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19670 conftest$ac_exeext conftest.$ac_ext
19671 LIBS=$ac_check_lib_save_LIBS
19673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
19674 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
19675 if test "x$ac_cv_lib_rt_sched_yield" = xyes
19677 LIB_SCHED_YIELD=-lrt
19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
19680 printf %s "checking for sched_yield in -lposix4... " >&6; }
19681 if test ${ac_cv_lib_posix4_sched_yield+y}
19683 printf %s "(cached) " >&6
19685 ac_check_lib_save_LIBS=$LIBS
19686 LIBS="-lposix4 $LIBS"
19687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19688 /* end confdefs.h. */
19690 /* Override any GCC internal prototype to avoid an error.
19691 Use char because int might match the return type of a GCC
19692 builtin and then its argument prototype would still apply. */
19693 char sched_yield ();
19697 return sched_yield ();
19702 if ac_fn_c_try_link "$LINENO"
19704 ac_cv_lib_posix4_sched_yield=yes
19706 ac_cv_lib_posix4_sched_yield=no
19708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19709 conftest$ac_exeext conftest.$ac_ext
19710 LIBS=$ac_check_lib_save_LIBS
19712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
19713 printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; }
19714 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
19716 LIB_SCHED_YIELD=-lposix4
19723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19724 conftest$ac_exeext conftest.$ac_ext
19727 gl_pthreadlib_body_done=done
19730 if test $ac_cv_header_threads_h = yes; then
19731 ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create"
19732 if test "x$ac_cv_func_thrd_create" = xyes
19734 printf "%s\n" "#define HAVE_THRD_CREATE 1" >>confdefs.h
19738 if test $ac_cv_func_thrd_create = yes; then
19741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
19742 printf %s "checking for thrd_create in -lstdthreads... " >&6; }
19743 if test ${ac_cv_lib_stdthreads_thrd_create+y}
19745 printf %s "(cached) " >&6
19747 ac_check_lib_save_LIBS=$LIBS
19748 LIBS="-lstdthreads $LIBS"
19749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19750 /* end confdefs.h. */
19752 /* Override any GCC internal prototype to avoid an error.
19753 Use char because int might match the return type of a GCC
19754 builtin and then its argument prototype would still apply. */
19755 char thrd_create ();
19759 return thrd_create ();
19764 if ac_fn_c_try_link "$LINENO"
19766 ac_cv_lib_stdthreads_thrd_create=yes
19768 ac_cv_lib_stdthreads_thrd_create=no
19770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19771 conftest$ac_exeext conftest.$ac_ext
19772 LIBS=$ac_check_lib_save_LIBS
19774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
19775 printf "%s\n" "$ac_cv_lib_stdthreads_thrd_create" >&6; }
19776 if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes
19779 LIBSTDTHREAD='-lstdthreads -lpthread'
19783 LIBSTDTHREAD="$LIBPMULTITHREAD"
19789 LIBSTDTHREAD="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
19795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
19796 printf %s "checking whether ISO C threads API is available... " >&6; }
19797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
19798 printf "%s\n" "$ac_cv_header_threads_h" >&6; }
19799 gl_stdthreadlib_body_done=done
19802 LIBTHREAD=$LIBSTDTHREAD LTLIBTHREAD=$LIBSTDTHREAD
19803 LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD
19804 gl_threads_api=isoc
19806 printf "%s\n" "#define USE_ISOC_THREADS 1" >>confdefs.h
19810 if test $gl_threads_api = none; then
19811 case "$gl_use_threads" in
19812 yes | windows | win32) # The 'win32' is for backward compatibility.
19813 if { case "$host_os" in
19818 gl_threads_api=windows
19820 printf "%s\n" "#define USE_WINDOWS_THREADS 1" >>confdefs.h
19827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
19828 printf %s "checking for multithread API to use... " >&6; }
19829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
19830 printf "%s\n" "$gl_threads_api" >&6; }
19842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19843 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
19844 if test ${gl_cv_func_lstat_dereferences_slashed_symlink+y}
19846 printf %s "(cached) " >&6
19848 rm -f conftest.sym conftest.file
19849 echo >conftest.file
19850 if test "$cross_compiling" = yes
19854 # Guess yes on Linux systems.
19855 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19857 # Guess yes on glibc systems.
19858 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19860 # Guess no on native Windows.
19861 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19863 # If we don't know, obey --enable-cross-guesses.
19864 gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;;
19868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19869 /* end confdefs.h. */
19870 $ac_includes_default
19875 if (symlink ("conftest.file", "conftest.sym") != 0)
19877 /* Linux will dereference the symlink and fail, as required by
19878 POSIX. That is better in the sense that it means we will not
19879 have to compile and use the lstat wrapper. */
19880 return lstat ("conftest.sym/", &sbuf) == 0;
19886 if ac_fn_c_try_run "$LINENO"
19888 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19890 gl_cv_func_lstat_dereferences_slashed_symlink=no
19892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19893 conftest.$ac_objext conftest.beam conftest.$ac_ext
19896 rm -f conftest.sym conftest.file
19899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19900 printf "%s\n" "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19901 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19904 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
19911 GNULIB_ALIGNED_ALLOC=0;
19913 GNULIB_CALLOC_POSIX=0;
19914 GNULIB_CANONICALIZE_FILE_NAME=0;
19915 GNULIB_GETLOADAVG=0;
19916 GNULIB_GETSUBOPT=0;
19918 GNULIB_MALLOC_POSIX=0;
19922 GNULIB_MKOSTEMPS=0;
19925 GNULIB_POSIX_MEMALIGN=0;
19926 GNULIB_POSIX_OPENPT=0;
19928 GNULIB_PTSNAME_R=0;
19933 GNULIB_REALLOCARRAY=0;
19934 GNULIB_REALLOC_POSIX=0;
19937 GNULIB_SECURE_GETENV=0;
19943 GNULIB_SYSTEM_POSIX=0;
19948 HAVE_ALIGNED_ALLOC=1;
19950 HAVE_CANONICALIZE_FILE_NAME=1;
19951 HAVE_DECL_GETLOADAVG=1;
19955 HAVE_DECL_INITSTATE=1;
19962 HAVE_POSIX_MEMALIGN=1;
19963 HAVE_POSIX_OPENPT=1;
19970 HAVE_REALLOCARRAY=1;
19973 HAVE_SECURE_GETENV=1;
19975 HAVE_DECL_SETENV=1;
19977 HAVE_DECL_SETSTATE=1;
19982 HAVE_STRUCT_RANDOM_DATA=1;
19983 HAVE_SYS_LOADAVG_H=0;
19985 HAVE_DECL_UNSETENV=1;
19986 REPLACE_ALIGNED_ALLOC=0;
19988 REPLACE_CANONICALIZE_FILE_NAME=0;
19989 REPLACE_INITSTATE=0;
19993 REPLACE_POSIX_MEMALIGN=0;
19995 REPLACE_PTSNAME_R=0;
19999 REPLACE_RANDOM_R=0;
20001 REPLACE_REALPATH=0;
20003 REPLACE_SETSTATE=0;
20006 REPLACE_UNSETENV=0;
20010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
20011 printf %s "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
20012 if test ${gl_cv_func_malloc_posix+y}
20014 printf %s "(cached) " >&6
20017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20018 /* end confdefs.h. */
20023 #if defined _WIN32 && ! defined __CYGWIN__
20031 if ac_fn_c_try_compile "$LINENO"
20033 gl_cv_func_malloc_posix=yes
20035 gl_cv_func_malloc_posix=no
20037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
20041 printf "%s\n" "$gl_cv_func_malloc_posix" >&6; }
20045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
20046 printf %s "checking for GNU libc compatible malloc... " >&6; }
20047 if test ${ac_cv_func_malloc_0_nonnull+y}
20049 printf %s "(cached) " >&6
20051 if test "$cross_compiling" = yes
20054 # Guess yes on platforms where we know the result.
20055 *-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \
20056 | hpux* | solaris* | cygwin* | mingw*)
20057 ac_cv_func_malloc_0_nonnull="guessing yes" ;;
20058 # If we don't know, obey --enable-cross-guesses.
20059 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
20063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20064 /* end confdefs.h. */
20065 #include <stdlib.h>
20070 char *p = malloc (0);
20079 if ac_fn_c_try_run "$LINENO"
20081 ac_cv_func_malloc_0_nonnull=yes
20083 ac_cv_func_malloc_0_nonnull=no
20085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20086 conftest.$ac_objext conftest.beam conftest.$ac_ext
20091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
20092 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
20093 case "$ac_cv_func_malloc_0_nonnull" in
20095 gl_cv_func_malloc_0_nonnull=1
20098 gl_cv_func_malloc_0_nonnull=0
20103 printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h
20109 GNULIB_EXPLICIT_BZERO=0;
20116 GNULIB_RAWMEMCHR=0;
20119 GNULIB_STRCHRNUL=0;
20127 GNULIB_STRCASESTR=0;
20134 GNULIB_MBSCASECMP=0;
20135 GNULIB_MBSNCASECMP=0;
20136 GNULIB_MBSPCASECMP=0;
20137 GNULIB_MBSCASESTR=0;
20144 GNULIB_STRERROR_R=0;
20145 GNULIB_STRERRORNAME_NP=0;
20146 GNULIB_SIGABBREV_NP=0;
20147 GNULIB_SIGDESCR_NP=0;
20148 GNULIB_STRSIGNAL=0;
20149 GNULIB_STRVERSCMP=0;
20151 HAVE_EXPLICIT_BZERO=1;
20154 HAVE_DECL_MEMMEM=1;
20156 HAVE_DECL_MEMRCHR=1;
20161 HAVE_DECL_STRDUP=1;
20162 HAVE_DECL_STRNDUP=1;
20163 HAVE_DECL_STRNLEN=1;
20167 HAVE_DECL_STRTOK_R=1;
20168 HAVE_DECL_STRERROR_R=1;
20169 HAVE_STRERRORNAME_NP=1;
20170 HAVE_SIGABBREV_NP=1;
20171 HAVE_SIGDESCR_NP=1;
20172 HAVE_DECL_STRSIGNAL=1;
20177 REPLACE_STRCHRNUL=0;
20183 REPLACE_STRCASESTR=0;
20184 REPLACE_STRTOK_R=0;
20185 REPLACE_STRERROR=0;
20186 REPLACE_STRERROR_R=0;
20187 REPLACE_STRERRORNAME_NP=0;
20188 REPLACE_STRSIGNAL=0;
20189 UNDEFINE_STRTOK_R=0;
20196 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
20197 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
20198 # irrelevant for anonymous mappings.
20199 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
20200 if test "x$ac_cv_func_mmap" = xyes
20208 # Try to allow MAP_ANONYMOUS.
20209 gl_have_mmap_anonymous=no
20210 if test $gl_have_mmap = yes; then
20211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
20212 printf %s "checking for MAP_ANONYMOUS... " >&6; }
20213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20214 /* end confdefs.h. */
20216 #include <sys/mman.h>
20217 #ifdef MAP_ANONYMOUS
20218 I cannot identify this map
20222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20223 $EGREP "I cannot identify this map" >/dev/null 2>&1
20225 gl_have_mmap_anonymous=yes
20229 if test $gl_have_mmap_anonymous != yes; then
20230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20231 /* end confdefs.h. */
20233 #include <sys/mman.h>
20235 I cannot identify this map
20239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20240 $EGREP "I cannot identify this map" >/dev/null 2>&1
20243 printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
20245 gl_have_mmap_anonymous=yes
20250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
20251 printf "%s\n" "$gl_have_mmap_anonymous" >&6; }
20252 if test $gl_have_mmap_anonymous = yes; then
20254 printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
20263 # Detect platform-specific bugs in some versions of glibc:
20264 # memchr should not dereference anything with length 0
20265 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
20266 # memchr should not dereference overestimated length after a match
20267 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
20268 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
20269 # memchr should cast the second argument to 'unsigned char'.
20270 # This bug exists in Android 4.3.
20271 # Assume that memchr works on platforms that lack mprotect.
20272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
20273 printf %s "checking whether memchr works... " >&6; }
20274 if test ${gl_cv_func_memchr_works+y}
20276 printf %s "(cached) " >&6
20278 if test "$cross_compiling" = yes
20281 # Guess no on Android.
20282 linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
20283 # Guess yes on native Windows.
20284 mingw*) gl_cv_func_memchr_works="guessing yes" ;;
20285 # If we don't know, obey --enable-cross-guesses.
20286 *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
20290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h. */
20293 #include <string.h>
20294 #if HAVE_SYS_MMAN_H
20295 # include <fcntl.h>
20296 # include <unistd.h>
20297 # include <sys/types.h>
20298 # include <sys/mman.h>
20300 # define MAP_FILE 0
20309 char *fence = NULL;
20310 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
20311 # if HAVE_MAP_ANONYMOUS
20312 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
20314 # else /* !HAVE_MAP_ANONYMOUS */
20315 const int flags = MAP_FILE | MAP_PRIVATE;
20316 int fd = open ("/dev/zero", O_RDONLY, 0666);
20320 int pagesize = getpagesize ();
20322 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
20324 if (two_pages != (char *)(-1)
20325 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
20326 fence = two_pages + pagesize;
20331 if (memchr (fence, 0, 0))
20333 strcpy (fence - 9, "12345678");
20334 if (memchr (fence - 9, 0, 79) != fence - 1)
20336 if (memchr (fence - 1, 0, 3) != fence - 1)
20339 /* Test against bug on Android 4.3. */
20345 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
20354 if ac_fn_c_try_run "$LINENO"
20356 gl_cv_func_memchr_works=yes
20358 gl_cv_func_memchr_works=no
20360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20361 conftest.$ac_objext conftest.beam conftest.$ac_ext
20366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
20367 printf "%s\n" "$gl_cv_func_memchr_works" >&6; }
20368 case "$gl_cv_func_memchr_works" in
20370 *) REPLACE_MEMCHR=1 ;;
20377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
20378 printf %s "checking whether <limits.h> defines MIN and MAX... " >&6; }
20379 if test ${gl_cv_minmax_in_limits_h+y}
20381 printf %s "(cached) " >&6
20383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20384 /* end confdefs.h. */
20385 #include <limits.h>
20386 int x = MIN (42, 17);
20395 if ac_fn_c_try_compile "$LINENO"
20397 gl_cv_minmax_in_limits_h=yes
20399 gl_cv_minmax_in_limits_h=no
20401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
20404 printf "%s\n" "$gl_cv_minmax_in_limits_h" >&6; }
20405 if test $gl_cv_minmax_in_limits_h = yes; then
20407 printf "%s\n" "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
20416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
20417 printf %s "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
20418 if test ${gl_cv_minmax_in_sys_param_h+y}
20420 printf %s "(cached) " >&6
20422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20423 /* end confdefs.h. */
20424 #include <sys/param.h>
20425 int x = MIN (42, 17);
20434 if ac_fn_c_try_compile "$LINENO"
20436 gl_cv_minmax_in_sys_param_h=yes
20438 gl_cv_minmax_in_sys_param_h=no
20440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
20443 printf "%s\n" "$gl_cv_minmax_in_sys_param_h" >&6; }
20444 if test $gl_cv_minmax_in_sys_param_h = yes; then
20446 printf "%s\n" "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
20457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
20458 printf %s "checking for O_CLOEXEC... " >&6; }
20459 if test ${gl_cv_macro_O_CLOEXEC+y}
20461 printf %s "(cached) " >&6
20463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20464 /* end confdefs.h. */
20478 if ac_fn_c_try_compile "$LINENO"
20480 gl_cv_macro_O_CLOEXEC=yes
20482 gl_cv_macro_O_CLOEXEC=no
20484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
20487 printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; }
20491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
20492 printf %s "checking for promoted mode_t type... " >&6; }
20493 if test ${gl_cv_promoted_mode_t+y}
20495 printf %s "(cached) " >&6
20498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20499 /* end confdefs.h. */
20500 #include <sys/types.h>
20504 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
20509 if ac_fn_c_try_compile "$LINENO"
20511 gl_cv_promoted_mode_t='int'
20513 gl_cv_promoted_mode_t='mode_t'
20515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
20519 printf "%s\n" "$gl_cv_promoted_mode_t" >&6; }
20521 printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h
20526 GNULIB_PTHREAD_SIGMASK=0;
20528 GNULIB_SIGNAL_H_SIGPIPE=0;
20529 GNULIB_SIGPROCMASK=0;
20530 GNULIB_SIGACTION=0;
20531 HAVE_POSIX_SIGNALBLOCKING=1;
20532 HAVE_PTHREAD_SIGMASK=1;
20537 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
20539 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
20541 HAVE_SIGHANDLER_T=1;
20542 REPLACE_PTHREAD_SIGMASK=0;
20546 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
20547 #include <signal.h>
20548 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
20549 #include <sys/types.h>
20552 if test "x$ac_cv_type_sigset_t" = xyes
20555 printf "%s\n" "#define HAVE_SIGSET_T 1" >>confdefs.h
20557 gl_cv_type_sigset_t=yes
20559 gl_cv_type_sigset_t=no
20562 if test $gl_cv_type_sigset_t != yes; then
20567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20568 printf %s "checking for ssize_t... " >&6; }
20569 if test ${gt_cv_ssize_t+y}
20571 printf %s "(cached) " >&6
20573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20574 /* end confdefs.h. */
20575 #include <sys/types.h>
20579 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20585 if ac_fn_c_try_compile "$LINENO"
20591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20594 printf "%s\n" "$gt_cv_ssize_t" >&6; }
20595 if test $gt_cv_ssize_t = no; then
20597 printf "%s\n" "#define ssize_t int" >>confdefs.h
20601 ac_fn_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
20602 if test "x$ac_cv_have_decl_setenv" = xyes
20608 printf "%s\n" "#define HAVE_DECL_SETENV $ac_have_decl" >>confdefs.h
20614 if test $ac_cv_have_decl_setenv = no; then
20622 ac_fn_c_check_header_compile "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
20623 if test "x$ac_cv_header_search_h" = xyes
20625 printf "%s\n" "#define HAVE_SEARCH_H 1" >>confdefs.h
20629 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
20630 if test "x$ac_cv_func_tsearch" = xyes
20632 printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h
20639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20640 printf %s "checking for uid_t in sys/types.h... " >&6; }
20641 if test ${ac_cv_type_uid_t+y}
20643 printf %s "(cached) " >&6
20645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20646 /* end confdefs.h. */
20647 #include <sys/types.h>
20650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20651 $EGREP "uid_t" >/dev/null 2>&1
20653 ac_cv_type_uid_t=yes
20655 ac_cv_type_uid_t=no
20660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20661 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
20662 if test $ac_cv_type_uid_t = no; then
20664 printf "%s\n" "#define uid_t int" >>confdefs.h
20667 printf "%s\n" "#define gid_t int" >>confdefs.h
20683 GNULIB_FPRINTF_POSIX=0;
20699 GNULIB_OBSTACK_PRINTF=0;
20700 GNULIB_OBSTACK_PRINTF_POSIX=0;
20705 GNULIB_PRINTF_POSIX=0;
20714 GNULIB_SPRINTF_POSIX=0;
20715 GNULIB_STDIO_H_NONBLOCKING=0;
20716 GNULIB_STDIO_H_SIGPIPE=0;
20718 GNULIB_VASPRINTF=0;
20723 GNULIB_VFPRINTF_POSIX=0;
20725 GNULIB_VPRINTF_POSIX=0;
20726 GNULIB_VSNPRINTF=0;
20727 GNULIB_VSPRINTF_POSIX=0;
20728 HAVE_DECL_FPURGE=1;
20729 HAVE_DECL_FSEEKO=1;
20730 HAVE_DECL_FTELLO=1;
20731 HAVE_DECL_GETDELIM=1;
20732 HAVE_DECL_GETLINE=1;
20733 HAVE_DECL_OBSTACK_PRINTF=1;
20734 HAVE_DECL_SNPRINTF=1;
20735 HAVE_DECL_VSNPRINTF=1;
20756 REPLACE_GETDELIM=0;
20758 REPLACE_OBSTACK_PRINTF=0;
20764 REPLACE_RENAMEAT=0;
20765 REPLACE_SNPRINTF=0;
20767 REPLACE_STDIO_READ_FUNCS=0;
20768 REPLACE_STDIO_WRITE_FUNCS=0;
20770 REPLACE_VASPRINTF=0;
20771 REPLACE_VDPRINTF=0;
20772 REPLACE_VFPRINTF=0;
20774 REPLACE_VSNPRINTF=0;
20775 REPLACE_VSPRINTF=0;
20784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
20785 printf %s "checking whether snprintf returns a byte count as in C99... " >&6; }
20786 if test ${gl_cv_func_snprintf_retval_c99+y}
20788 printf %s "(cached) " >&6
20791 if test "$cross_compiling" = yes
20794 # Guess yes on glibc systems.
20795 *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20796 # Guess yes on musl systems.
20797 *-musl*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20798 # Guess yes on FreeBSD >= 5.
20799 freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";;
20800 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20801 # Guess yes on Mac OS X >= 10.3.
20802 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
20803 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20804 # Guess yes on OpenBSD >= 3.9.
20805 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
20806 gl_cv_func_snprintf_retval_c99="guessing no";;
20807 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20808 # Guess yes on Solaris >= 2.10.
20809 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
20810 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
20811 # Guess yes on AIX >= 4.
20812 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
20813 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20814 # Guess yes on NetBSD >= 3.
20815 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
20816 gl_cv_func_snprintf_retval_c99="guessing no";;
20817 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20818 # Guess yes on BeOS.
20819 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20820 # Guess yes on Android.
20821 linux*-android*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20822 # Guess yes on MSVC, no on mingw.
20823 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20824 /* end confdefs.h. */
20831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20832 $EGREP "Known" >/dev/null 2>&1
20834 gl_cv_func_snprintf_retval_c99="guessing yes"
20836 gl_cv_func_snprintf_retval_c99="guessing no"
20841 # If we don't know, obey --enable-cross-guesses.
20842 *) gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";;
20846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20847 /* end confdefs.h. */
20850 #include <string.h>
20852 # define my_snprintf snprintf
20854 # include <stdarg.h>
20855 static int my_snprintf (char *buf, int size, const char *format, ...)
20859 va_start (args, format);
20860 ret = vsnprintf (buf, size, format, args);
20865 static char buf[100];
20868 strcpy (buf, "ABCDEF");
20869 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
20871 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
20873 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
20878 if ac_fn_c_try_run "$LINENO"
20880 gl_cv_func_snprintf_retval_c99=yes
20882 gl_cv_func_snprintf_retval_c99=no
20884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20885 conftest.$ac_objext conftest.beam conftest.$ac_ext
20890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
20891 printf "%s\n" "$gl_cv_func_snprintf_retval_c99" >&6; }
20893 ac_fn_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
20894 if test "x$ac_cv_have_decl_snprintf" = xyes
20900 printf "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h
20903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20904 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
20905 if test ${ac_cv_header_stdbool_h+y}
20907 printf %s "(cached) " >&6
20909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20910 /* end confdefs.h. */
20912 #include <stdbool.h>
20917 typedef _Bool Bool;
20919 "error: bool is not defined"
20922 "error: false is not defined"
20925 "error: false is not 0"
20928 "error: true is not defined"
20931 "error: true is not 1"
20935 #ifndef __bool_true_false_are_defined
20936 "error: __bool_true_false_are_defined is not defined"
20939 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
20941 char a[true == 1 ? 1 : -1];
20942 char b[false == 0 ? 1 : -1];
20943 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20944 char d[(bool) 0.5 == true ? 1 : -1];
20945 /* See body of main program for 'e'. */
20946 char f[(Bool) 0.0 == false ? 1 : -1];
20948 char h[sizeof (Bool)];
20949 char i[sizeof s.t];
20950 enum { j = false, k = true, l = false * true, m = true * 256 };
20951 /* The following fails for
20952 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20954 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20955 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20956 /* Catch a bug in an HP-UX C compiler. See
20957 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20958 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
20969 *pq |= q; *pq |= ! q;
20970 *qq |= q; *qq |= ! q;
20971 /* Refer to every declared value, to avoid compiler optimizations. */
20972 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20973 + !m + !n + !o + !p + !q + !pq + !qq);
20979 if ac_fn_c_try_compile "$LINENO"
20981 ac_cv_header_stdbool_h=yes
20983 ac_cv_header_stdbool_h=no
20985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20988 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
20989 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20990 if test "x$ac_cv_type__Bool" = xyes
20993 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
21001 HAVE_MAX_ALIGN_T=1;
21005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21006 printf %s "checking for wchar_t... " >&6; }
21007 if test ${gt_cv_c_wchar_t+y}
21009 printf %s "(cached) " >&6
21011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21012 /* end confdefs.h. */
21013 #include <stddef.h>
21014 wchar_t foo = (wchar_t)'\0';
21023 if ac_fn_c_try_compile "$LINENO"
21025 gt_cv_c_wchar_t=yes
21029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21032 printf "%s\n" "$gt_cv_c_wchar_t" >&6; }
21033 if test $gt_cv_c_wchar_t = yes; then
21035 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
21040 REPLACE_STRERROR_0=0
21041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
21042 printf %s "checking whether strerror(0) succeeds... " >&6; }
21043 if test ${gl_cv_func_strerror_0_works+y}
21045 printf %s "(cached) " >&6
21047 if test "$cross_compiling" = yes
21050 # Guess yes on glibc systems.
21051 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
21052 # Guess yes on musl systems.
21053 *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;;
21054 # Guess yes on native Windows.
21055 mingw*) gl_cv_func_strerror_0_works="guessing yes" ;;
21056 # If we don't know, obey --enable-cross-guesses.
21057 *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
21061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21062 /* end confdefs.h. */
21063 #include <string.h>
21072 str = strerror (0);
21073 if (!*str) result |= 1;
21074 if (errno) result |= 2;
21075 if (strstr (str, "nknown") || strstr (str, "ndefined"))
21082 if ac_fn_c_try_run "$LINENO"
21084 gl_cv_func_strerror_0_works=yes
21086 gl_cv_func_strerror_0_works=no
21088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21089 conftest.$ac_objext conftest.beam conftest.$ac_ext
21094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
21095 printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; }
21096 case "$gl_cv_func_strerror_0_works" in
21099 REPLACE_STRERROR_0=1
21101 printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h
21116 if test $gl_cv_have_include_next = yes; then
21117 gl_cv_next_string_h='<'string.h'>'
21119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21120 printf %s "checking absolute name of <string.h>... " >&6; }
21121 if test ${gl_cv_next_string_h+y}
21123 printf %s "(cached) " >&6
21128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21129 /* end confdefs.h. */
21130 #include <string.h>
21133 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21134 *) gl_absname_cpp="$ac_cpp" ;;
21139 gl_dirsep_regex='[/\\]'
21142 gl_dirsep_regex='\/'
21145 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21146 gl_header_literal_regex=`echo 'string.h' \
21147 | sed -e "$gl_make_literal_regex_sed"`
21148 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21149 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21155 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21156 sed -n "$gl_absolute_header_sed"`
21158 gl_header=$gl_cv_absolute_string_h
21159 gl_cv_next_string_h='"'$gl_header'"'
21163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21164 printf "%s\n" "$gl_cv_next_string_h" >&6; }
21166 NEXT_STRING_H=$gl_cv_next_string_h
21168 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21169 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21170 gl_next_as_first_directive='<'string.h'>'
21172 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21173 gl_next_as_first_directive=$gl_cv_next_string_h
21175 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21187 ac_fn_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
21188 if test "x$ac_cv_have_decl_strndup" = xyes
21194 printf "%s\n" "#define HAVE_DECL_STRNDUP $ac_have_decl" >>confdefs.h
21197 ac_fn_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
21198 if test "x$ac_cv_have_decl_strnlen" = xyes
21204 printf "%s\n" "#define HAVE_DECL_STRNLEN $ac_have_decl" >>confdefs.h
21206 ac_fn_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
21207 if test "x$ac_cv_have_decl_strsignal" = xyes
21213 printf "%s\n" "#define HAVE_DECL_STRSIGNAL $ac_have_decl" >>confdefs.h
21227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
21228 printf %s "checking whether <sys/select.h> is self-contained... " >&6; }
21229 if test ${gl_cv_header_sys_select_h_selfcontained+y}
21231 printf %s "(cached) " >&6
21234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21235 /* end confdefs.h. */
21236 #include <sys/select.h>
21245 if ac_fn_c_try_compile "$LINENO"
21247 gl_cv_header_sys_select_h_selfcontained=yes
21249 gl_cv_header_sys_select_h_selfcontained=no
21251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21252 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
21253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21254 /* end confdefs.h. */
21255 #include <sys/select.h>
21259 int memset; int bzero;
21265 if ac_fn_c_try_compile "$LINENO"
21267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21268 /* end confdefs.h. */
21269 #include <sys/select.h>
21275 #define memset nonexistent_memset
21280 void *memset (void *, int, unsigned long);
21282 #define bzero nonexistent_bzero
21287 void bzero (void *, unsigned long);
21296 if ac_fn_c_try_link "$LINENO"
21300 gl_cv_header_sys_select_h_selfcontained=no
21302 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21303 conftest$ac_exeext conftest.$ac_ext
21306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
21311 printf "%s\n" "$gl_cv_header_sys_select_h_selfcontained" >&6; }
21321 if test $gl_cv_have_include_next = yes; then
21322 gl_cv_next_sys_select_h='<'sys/select.h'>'
21324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
21325 printf %s "checking absolute name of <sys/select.h>... " >&6; }
21326 if test ${gl_cv_next_sys_select_h+y}
21328 printf %s "(cached) " >&6
21331 if test $ac_cv_header_sys_select_h = yes; then
21336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21337 /* end confdefs.h. */
21338 #include <sys/select.h>
21341 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21342 *) gl_absname_cpp="$ac_cpp" ;;
21347 gl_dirsep_regex='[/\\]'
21350 gl_dirsep_regex='\/'
21353 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21354 gl_header_literal_regex=`echo 'sys/select.h' \
21355 | sed -e "$gl_make_literal_regex_sed"`
21356 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21357 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21363 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21364 sed -n "$gl_absolute_header_sed"`
21366 gl_header=$gl_cv_absolute_sys_select_h
21367 gl_cv_next_sys_select_h='"'$gl_header'"'
21369 gl_cv_next_sys_select_h='<'sys/select.h'>'
21374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
21375 printf "%s\n" "$gl_cv_next_sys_select_h" >&6; }
21377 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
21379 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21380 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21381 gl_next_as_first_directive='<'sys/select.h'>'
21383 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21384 gl_next_as_first_directive=$gl_cv_next_sys_select_h
21386 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
21391 if test $ac_cv_header_sys_select_h = yes; then
21392 HAVE_SYS_SELECT_H=1
21394 HAVE_SYS_SELECT_H=0
21401 if test $ac_cv_header_sys_socket_h != yes; then
21402 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21403 if test "x$ac_cv_header_winsock2_h" = xyes
21405 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
21410 if test "$ac_cv_header_winsock2_h" = yes; then
21412 UNISTD_H_HAVE_WINSOCK2_H=1
21413 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21425 GNULIB_GETTIMEOFDAY=0;
21426 HAVE_GETTIMEOFDAY=1;
21427 HAVE_STRUCT_TIMEVAL=1;
21429 REPLACE_GETTIMEOFDAY=0;
21430 REPLACE_STRUCT_TIMEVAL=0;
21445 if test $gl_cv_have_include_next = yes; then
21446 gl_cv_next_sys_time_h='<'sys/time.h'>'
21448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
21449 printf %s "checking absolute name of <sys/time.h>... " >&6; }
21450 if test ${gl_cv_next_sys_time_h+y}
21452 printf %s "(cached) " >&6
21455 if test $ac_cv_header_sys_time_h = yes; then
21460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21461 /* end confdefs.h. */
21462 #include <sys/time.h>
21465 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21466 *) gl_absname_cpp="$ac_cpp" ;;
21471 gl_dirsep_regex='[/\\]'
21474 gl_dirsep_regex='\/'
21477 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21478 gl_header_literal_regex=`echo 'sys/time.h' \
21479 | sed -e "$gl_make_literal_regex_sed"`
21480 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21481 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21487 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21488 sed -n "$gl_absolute_header_sed"`
21490 gl_header=$gl_cv_absolute_sys_time_h
21491 gl_cv_next_sys_time_h='"'$gl_header'"'
21493 gl_cv_next_sys_time_h='<'sys/time.h'>'
21498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
21499 printf "%s\n" "$gl_cv_next_sys_time_h" >&6; }
21501 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
21503 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21504 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21505 gl_next_as_first_directive='<'sys/time.h'>'
21507 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21508 gl_next_as_first_directive=$gl_cv_next_sys_time_h
21510 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
21516 if test $ac_cv_header_sys_time_h != yes; then
21524 if test $ac_cv_header_sys_socket_h != yes; then
21525 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21526 if test "x$ac_cv_header_winsock2_h" = xyes
21528 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
21533 if test "$ac_cv_header_winsock2_h" = yes; then
21535 UNISTD_H_HAVE_WINSOCK2_H=1
21536 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
21543 printf %s "checking for struct timeval... " >&6; }
21544 if test ${gl_cv_sys_struct_timeval+y}
21546 printf %s "(cached) " >&6
21548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21549 /* end confdefs.h. */
21550 #if HAVE_SYS_TIME_H
21551 #include <sys/time.h>
21554 #if HAVE_WINSOCK2_H
21555 # include <winsock2.h>
21561 static struct timeval x; x.tv_sec = x.tv_usec;
21566 if ac_fn_c_try_compile "$LINENO"
21568 gl_cv_sys_struct_timeval=yes
21570 gl_cv_sys_struct_timeval=no
21572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
21576 printf "%s\n" "$gl_cv_sys_struct_timeval" >&6; }
21577 if test $gl_cv_sys_struct_timeval != yes; then
21578 HAVE_STRUCT_TIMEVAL=0
21580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
21581 printf %s "checking for wide-enough struct timeval.tv_sec member... " >&6; }
21582 if test ${gl_cv_sys_struct_timeval_tv_sec+y}
21584 printf %s "(cached) " >&6
21586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21587 /* end confdefs.h. */
21588 #if HAVE_SYS_TIME_H
21589 #include <sys/time.h>
21592 #if HAVE_WINSOCK2_H
21593 # include <winsock2.h>
21599 static struct timeval x;
21600 typedef int verify_tv_sec_type[
21601 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
21608 if ac_fn_c_try_compile "$LINENO"
21610 gl_cv_sys_struct_timeval_tv_sec=yes
21612 gl_cv_sys_struct_timeval_tv_sec=no
21614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
21618 printf "%s\n" "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
21619 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
21620 REPLACE_STRUCT_TIMEVAL=1
21638 printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h
21650 if test $gl_cv_have_include_next = yes; then
21651 gl_cv_next_sys_types_h='<'sys/types.h'>'
21653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
21654 printf %s "checking absolute name of <sys/types.h>... " >&6; }
21655 if test ${gl_cv_next_sys_types_h+y}
21657 printf %s "(cached) " >&6
21662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21663 /* end confdefs.h. */
21664 #include <sys/types.h>
21667 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21668 *) gl_absname_cpp="$ac_cpp" ;;
21673 gl_dirsep_regex='[/\\]'
21676 gl_dirsep_regex='\/'
21679 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21680 gl_header_literal_regex=`echo 'sys/types.h' \
21681 | sed -e "$gl_make_literal_regex_sed"`
21682 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21683 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21689 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21690 sed -n "$gl_absolute_header_sed"`
21692 gl_header=$gl_cv_absolute_sys_types_h
21693 gl_cv_next_sys_types_h='"'$gl_header'"'
21697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
21698 printf "%s\n" "$gl_cv_next_sys_types_h" >&6; }
21700 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
21702 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21703 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21704 gl_next_as_first_directive='<'sys/types.h'>'
21706 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21707 gl_next_as_first_directive=$gl_cv_next_sys_types_h
21709 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
21722 WINDOWS_STAT_INODES=0
21733 GNULIB_LOCALTIME=0;
21734 GNULIB_NANOSLEEP=0;
21741 HAVE_DECL_LOCALTIME_R=1;
21746 REPLACE_CTIME=GNULIB_PORTCHECK;
21747 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
21748 REPLACE_MKTIME=GNULIB_PORTCHECK;
21749 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
21750 REPLACE_STRFTIME=GNULIB_PORTCHECK;
21751 REPLACE_TIMEGM=GNULIB_PORTCHECK;
21752 REPLACE_TZSET=GNULIB_PORTCHECK;
21754 : ${GNULIB_GETTIMEOFDAY=0};
21756 REPLACE_LOCALTIME=0;
21760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21761 printf %s "checking for struct timespec in <time.h>... " >&6; }
21762 if test ${gl_cv_sys_struct_timespec_in_time_h+y}
21764 printf %s "(cached) " >&6
21766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21767 /* end confdefs.h. */
21773 static struct timespec x; x.tv_sec = x.tv_nsec;
21778 if ac_fn_c_try_compile "$LINENO"
21780 gl_cv_sys_struct_timespec_in_time_h=yes
21782 gl_cv_sys_struct_timespec_in_time_h=no
21784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21787 printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21789 TIME_H_DEFINES_STRUCT_TIMESPEC=0
21790 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
21791 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
21792 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
21793 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21794 TIME_H_DEFINES_STRUCT_TIMESPEC=1
21796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21797 printf %s "checking for struct timespec in <sys/time.h>... " >&6; }
21798 if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y}
21800 printf %s "(cached) " >&6
21802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21803 /* end confdefs.h. */
21804 #include <sys/time.h>
21809 static struct timespec x; x.tv_sec = x.tv_nsec;
21814 if ac_fn_c_try_compile "$LINENO"
21816 gl_cv_sys_struct_timespec_in_sys_time_h=yes
21818 gl_cv_sys_struct_timespec_in_sys_time_h=no
21820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21823 printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21824 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21825 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
21827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
21828 printf %s "checking for struct timespec in <pthread.h>... " >&6; }
21829 if test ${gl_cv_sys_struct_timespec_in_pthread_h+y}
21831 printf %s "(cached) " >&6
21833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21834 /* end confdefs.h. */
21835 #include <pthread.h>
21840 static struct timespec x; x.tv_sec = x.tv_nsec;
21845 if ac_fn_c_try_compile "$LINENO"
21847 gl_cv_sys_struct_timespec_in_pthread_h=yes
21849 gl_cv_sys_struct_timespec_in_pthread_h=no
21851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21854 printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21855 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21856 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
21858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
21859 printf %s "checking for struct timespec in <unistd.h>... " >&6; }
21860 if test ${gl_cv_sys_struct_timespec_in_unistd_h+y}
21862 printf %s "(cached) " >&6
21864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21865 /* end confdefs.h. */
21866 #include <unistd.h>
21871 static struct timespec x; x.tv_sec = x.tv_nsec;
21876 if ac_fn_c_try_compile "$LINENO"
21878 gl_cv_sys_struct_timespec_in_unistd_h=yes
21880 gl_cv_sys_struct_timespec_in_unistd_h=no
21882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
21885 printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
21886 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
21887 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
21908 if test $gl_cv_have_include_next = yes; then
21909 gl_cv_next_time_h='<'time.h'>'
21911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
21912 printf %s "checking absolute name of <time.h>... " >&6; }
21913 if test ${gl_cv_next_time_h+y}
21915 printf %s "(cached) " >&6
21920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21921 /* end confdefs.h. */
21925 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21926 *) gl_absname_cpp="$ac_cpp" ;;
21931 gl_dirsep_regex='[/\\]'
21934 gl_dirsep_regex='\/'
21937 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21938 gl_header_literal_regex=`echo 'time.h' \
21939 | sed -e "$gl_make_literal_regex_sed"`
21940 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21941 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21947 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21948 sed -n "$gl_absolute_header_sed"`
21950 gl_header=$gl_cv_absolute_time_h
21951 gl_cv_next_time_h='"'$gl_header'"'
21955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21956 printf "%s\n" "$gl_cv_next_time_h" >&6; }
21958 NEXT_TIME_H=$gl_cv_next_time_h
21960 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21961 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21962 gl_next_as_first_directive='<'time.h'>'
21964 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21965 gl_next_as_first_directive=$gl_cv_next_time_h
21967 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
21976 ac_fn_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
21977 if test "x$ac_cv_have_decl_unsetenv" = xyes
21983 printf "%s\n" "#define HAVE_DECL_UNSETENV $ac_have_decl" >>confdefs.h
21989 if test $ac_cv_header_features_h = yes; then
21997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
21998 printf %s "checking for inttypes.h... " >&6; }
21999 if test ${gl_cv_header_inttypes_h+y}
22001 printf %s "(cached) " >&6
22003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22004 /* end confdefs.h. */
22006 #include <sys/types.h>
22007 #include <inttypes.h>
22012 uintmax_t i = (uintmax_t) -1; return !i;
22017 if ac_fn_c_try_compile "$LINENO"
22019 gl_cv_header_inttypes_h=yes
22021 gl_cv_header_inttypes_h=no
22023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
22026 printf "%s\n" "$gl_cv_header_inttypes_h" >&6; }
22027 if test $gl_cv_header_inttypes_h = yes; then
22029 printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h
22034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
22035 printf %s "checking for stdint.h... " >&6; }
22036 if test ${gl_cv_header_stdint_h+y}
22038 printf %s "(cached) " >&6
22040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22041 /* end confdefs.h. */
22042 #include <sys/types.h>
22043 #include <stdint.h>
22047 uintmax_t i = (uintmax_t) -1; return !i;
22052 if ac_fn_c_try_compile "$LINENO"
22054 gl_cv_header_stdint_h=yes
22056 gl_cv_header_stdint_h=no
22058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
22061 printf "%s\n" "$gl_cv_header_stdint_h" >&6; }
22062 if test $gl_cv_header_stdint_h = yes; then
22064 printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h
22071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
22072 printf %s "checking for intmax_t... " >&6; }
22073 if test ${gt_cv_c_intmax_t+y}
22075 printf %s "(cached) " >&6
22077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h. */
22080 #include <stddef.h>
22081 #include <stdlib.h>
22082 #if HAVE_STDINT_H_WITH_UINTMAX
22083 #include <stdint.h>
22085 #if HAVE_INTTYPES_H_WITH_UINTMAX
22086 #include <inttypes.h>
22092 intmax_t x = -1; return !x;
22097 if ac_fn_c_try_compile "$LINENO"
22099 gt_cv_c_intmax_t=yes
22101 gt_cv_c_intmax_t=no
22103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
22106 printf "%s\n" "$gt_cv_c_intmax_t" >&6; }
22107 if test $gt_cv_c_intmax_t = yes; then
22109 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
22113 printf "%s\n" "#define intmax_t long long" >>confdefs.h
22118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
22119 printf %s "checking where to find the exponent in a 'double'... " >&6; }
22120 if test ${gl_cv_cc_double_expbit0+y}
22122 printf %s "(cached) " >&6
22125 if test "$cross_compiling" = yes
22128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22129 /* end confdefs.h. */
22131 #if defined arm || defined __arm || defined __arm__
22136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22137 $EGREP "mixed_endianness" >/dev/null 2>&1
22139 gl_cv_cc_double_expbit0="unknown"
22143 if test ${ac_cv_c_bigendian+y}
22145 printf %s "(cached) " >&6
22147 ac_cv_c_bigendian=unknown
22148 # See if we're dealing with a universal compiler.
22149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22150 /* end confdefs.h. */
22151 #ifndef __APPLE_CC__
22152 not a universal capable compiler
22157 if ac_fn_c_try_compile "$LINENO"
22160 # Check for potential -arch flags. It is not universal unless
22161 # there are at least two -arch flags with different values.
22164 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22165 if test -n "$ac_prev"; then
22167 i?86 | x86_64 | ppc | ppc64)
22168 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22171 ac_cv_c_bigendian=universal
22177 elif test "x$ac_word" = "x-arch"; then
22182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22183 if test $ac_cv_c_bigendian = unknown; then
22184 # See if sys/param.h defines the BYTE_ORDER macro.
22185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22186 /* end confdefs.h. */
22187 #include <sys/types.h>
22188 #include <sys/param.h>
22193 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22194 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22196 bogus endian macros
22203 if ac_fn_c_try_compile "$LINENO"
22205 # It does; now see whether it defined to BIG_ENDIAN or not.
22206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22207 /* end confdefs.h. */
22208 #include <sys/types.h>
22209 #include <sys/param.h>
22214 #if BYTE_ORDER != BIG_ENDIAN
22222 if ac_fn_c_try_compile "$LINENO"
22224 ac_cv_c_bigendian=yes
22226 ac_cv_c_bigendian=no
22228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22232 if test $ac_cv_c_bigendian = unknown; then
22233 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22235 /* end confdefs.h. */
22236 #include <limits.h>
22241 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22242 bogus endian macros
22249 if ac_fn_c_try_compile "$LINENO"
22251 # It does; now see whether it defined to _BIG_ENDIAN or not.
22252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22253 /* end confdefs.h. */
22254 #include <limits.h>
22259 #ifndef _BIG_ENDIAN
22267 if ac_fn_c_try_compile "$LINENO"
22269 ac_cv_c_bigendian=yes
22271 ac_cv_c_bigendian=no
22273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22277 if test $ac_cv_c_bigendian = unknown; then
22278 # Compile a test program.
22279 if test "$cross_compiling" = yes
22281 # Try to guess by grepping values from an object file.
22282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22283 /* end confdefs.h. */
22284 unsigned short int ascii_mm[] =
22285 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22286 unsigned short int ascii_ii[] =
22287 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22288 int use_ascii (int i) {
22289 return ascii_mm[i] + ascii_ii[i];
22291 unsigned short int ebcdic_ii[] =
22292 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22293 unsigned short int ebcdic_mm[] =
22294 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22295 int use_ebcdic (int i) {
22296 return ebcdic_mm[i] + ebcdic_ii[i];
22303 return use_ascii (foo) == use_ebcdic (foo);
22308 if ac_fn_c_try_compile "$LINENO"
22310 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22311 ac_cv_c_bigendian=yes
22313 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22314 if test "$ac_cv_c_bigendian" = unknown; then
22315 ac_cv_c_bigendian=no
22317 # finding both strings is unlikely to happen, but who knows?
22318 ac_cv_c_bigendian=unknown
22322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22325 /* end confdefs.h. */
22326 $ac_includes_default
22331 /* Are we little or big endian? From Harbison&Steele. */
22335 char c[sizeof (long int)];
22338 return u.c[sizeof (long int) - 1] == 1;
22344 if ac_fn_c_try_run "$LINENO"
22346 ac_cv_c_bigendian=no
22348 ac_cv_c_bigendian=yes
22350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22351 conftest.$ac_objext conftest.beam conftest.$ac_ext
22357 case $ac_cv_c_bigendian in #(
22359 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
22361 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
22364 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22368 gl_cv_cc_double_expbit0="unknown" ;;
22377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22378 /* end confdefs.h. */
22381 #include <stddef.h>
22383 #include <string.h>
22385 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22386 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
22387 static unsigned int ored_words[NWORDS];
22388 static unsigned int anded_words[NWORDS];
22389 static void add_to_ored_words (double x)
22393 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
22394 memset (&m, 0, sizeof (memory_double));
22396 for (i = 0; i < NWORDS; i++)
22398 ored_words[i] |= m.word[i];
22399 anded_words[i] &= m.word[i];
22405 FILE *fp = fopen ("conftest.out", "w");
22408 for (j = 0; j < NWORDS; j++)
22409 anded_words[j] = ~ (unsigned int) 0;
22410 add_to_ored_words (0.25);
22411 add_to_ored_words (0.5);
22412 add_to_ored_words (1.0);
22413 add_to_ored_words (2.0);
22414 add_to_ored_words (4.0);
22415 /* Remove bits that are common (e.g. if representation of the first mantissa
22416 bit is explicit). */
22417 for (j = 0; j < NWORDS; j++)
22418 ored_words[j] &= ~anded_words[j];
22419 /* Now find the nonzero word. */
22420 for (j = 0; j < NWORDS; j++)
22421 if (ored_words[j] != 0)
22426 for (i = j + 1; i < NWORDS; i++)
22427 if (ored_words[i] != 0)
22429 fprintf (fp, "unknown");
22430 return (fclose (fp) != 0);
22433 if ((ored_words[j] >> i) & 1)
22435 fprintf (fp, "word %d bit %d", (int) j, (int) i);
22436 return (fclose (fp) != 0);
22439 fprintf (fp, "unknown");
22440 return (fclose (fp) != 0);
22444 if ac_fn_c_try_run "$LINENO"
22446 gl_cv_cc_double_expbit0=`cat conftest.out`
22448 gl_cv_cc_double_expbit0="unknown"
22450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22451 conftest.$ac_objext conftest.beam conftest.$ac_ext
22457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
22458 printf "%s\n" "$gl_cv_cc_double_expbit0" >&6; }
22459 case "$gl_cv_cc_double_expbit0" in
22461 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
22462 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
22464 printf "%s\n" "#define DBL_EXPBIT0_WORD $word" >>confdefs.h
22467 printf "%s\n" "#define DBL_EXPBIT0_BIT $bit" >>confdefs.h
22475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5
22476 printf %s "checking whether snprintf truncates the result as in C99... " >&6; }
22477 if test ${gl_cv_func_snprintf_truncation_c99+y}
22479 printf %s "(cached) " >&6
22482 if test "$cross_compiling" = yes
22486 # Guess yes on glibc systems.
22487 *-gnu* | gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
22488 # Guess yes on musl systems.
22489 *-musl*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
22490 # Guess yes on FreeBSD >= 5.
22491 freebsd[1-4].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
22492 freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
22493 # Guess yes on Mac OS X >= 10.3.
22494 darwin[1-6].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
22495 darwin*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
22496 # Guess yes on OpenBSD >= 3.9.
22497 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
22498 gl_cv_func_snprintf_truncation_c99="guessing no";;
22499 openbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
22500 # Guess yes on Solaris >= 2.6.
22501 solaris2.[0-5] | solaris2.[0-5].*)
22502 gl_cv_func_snprintf_truncation_c99="guessing no";;
22503 solaris*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
22504 # Guess yes on AIX >= 4.
22505 aix[1-3]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
22506 aix*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
22507 # Guess yes on HP-UX >= 11.
22508 hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";;
22509 hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
22510 # Guess yes on IRIX >= 6.5.
22511 irix6.5) gl_cv_func_snprintf_truncation_c99="guessing yes";;
22512 # Guess yes on OSF/1 >= 5.
22513 osf[3-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
22514 osf*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
22515 # Guess yes on NetBSD >= 3.
22516 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
22517 gl_cv_func_snprintf_truncation_c99="guessing no";;
22518 netbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
22519 # Guess yes on BeOS.
22520 beos*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
22521 # Guess yes on Android.
22522 linux*-android*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
22523 # Guess no on native Windows.
22524 mingw*) gl_cv_func_snprintf_truncation_c99="guessing no";;
22525 # If we don't know, obey --enable-cross-guesses.
22526 *) gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";;
22530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22531 /* end confdefs.h. */
22534 #include <string.h>
22536 # define my_snprintf snprintf
22538 # include <stdarg.h>
22539 static int my_snprintf (char *buf, int size, const char *format, ...)
22543 va_start (args, format);
22544 ret = vsnprintf (buf, size, format, args);
22549 static char buf[100];
22552 strcpy (buf, "ABCDEF");
22553 my_snprintf (buf, 3, "%d %d", 4567, 89);
22554 if (memcmp (buf, "45\0DEF", 6) != 0)
22559 if ac_fn_c_try_run "$LINENO"
22561 gl_cv_func_snprintf_truncation_c99=yes
22563 gl_cv_func_snprintf_truncation_c99=no
22565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22566 conftest.$ac_objext conftest.beam conftest.$ac_ext
22571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5
22572 printf "%s\n" "$gl_cv_func_snprintf_truncation_c99" >&6; }
22578 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22579 if test "x$ac_cv_func_snprintf" = xyes
22581 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
22584 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
22585 if test "x$ac_cv_func_strnlen" = xyes
22587 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
22590 ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
22591 if test "x$ac_cv_func_wcslen" = xyes
22593 printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
22596 ac_fn_c_check_func "$LINENO" "wcsnlen" "ac_cv_func_wcsnlen"
22597 if test "x$ac_cv_func_wcsnlen" = xyes
22599 printf "%s\n" "#define HAVE_WCSNLEN 1" >>confdefs.h
22602 ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
22603 if test "x$ac_cv_func_mbrtowc" = xyes
22605 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
22608 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
22609 if test "x$ac_cv_func_wcrtomb" = xyes
22611 printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
22615 ac_fn_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
22616 " "$ac_c_undeclared_builtin_options" "CFLAGS"
22617 if test "x$ac_cv_have_decl__snprintf" = xyes
22623 printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h
22627 case "$gl_cv_func_snprintf_retval_c99" in
22630 printf "%s\n" "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
22635 case "$gl_cv_func_snprintf_truncation_c99" in
22638 printf "%s\n" "#define HAVE_SNPRINTF_TRUNCATION_C99 1" >>confdefs.h
22649 GNULIB_MBSRTOWCS=0;
22650 GNULIB_MBSNRTOWCS=0;
22652 GNULIB_WCSRTOMBS=0;
22653 GNULIB_WCSNRTOMBS=0;
22671 GNULIB_WCSCASECMP=0;
22672 GNULIB_WCSNCASECMP=0;
22711 HAVE_WCSNCASECMP=1;
22725 HAVE_DECL_WCWIDTH=1;
22726 REPLACE_MBSTATE_T=0;
22732 REPLACE_MBSRTOWCS=0;
22733 REPLACE_MBSNRTOWCS=0;
22735 REPLACE_WCSRTOMBS=0;
22736 REPLACE_WCSNRTOMBS=0;
22738 REPLACE_WCSWIDTH=0;
22739 REPLACE_WCSFTIME=0;
22744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
22745 printf %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
22746 if test ${gl_cv_header_wchar_h_correct_inline+y}
22748 printf %s "(cached) " >&6
22750 gl_cv_header_wchar_h_correct_inline=yes
22753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22754 /* end confdefs.h. */
22756 #define wcstod renamed_wcstod
22757 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22759 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22760 included before <wchar.h>. */
22761 #include <stddef.h>
22765 extern int zero (void);
22766 int main () { return zero(); }
22769 save_ac_compile="$ac_compile"
22770 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
22771 if echo '#include "conftest.c"' >conftest1.c \
22772 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22773 (eval $ac_compile) 2>&5
22775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22776 test $ac_status = 0; }; then
22777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22778 /* end confdefs.h. */
22780 #define wcstod renamed_wcstod
22781 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22783 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22784 included before <wchar.h>. */
22785 #include <stddef.h>
22789 int zero (void) { return 0; }
22792 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
22793 if echo '#include "conftest.c"' >conftest2.c \
22794 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22795 (eval $ac_compile) 2>&5
22797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22798 test $ac_status = 0; }; then
22799 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
22802 gl_cv_header_wchar_h_correct_inline=no
22806 ac_compile="$save_ac_compile"
22807 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
22812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
22813 printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; }
22814 if test $gl_cv_header_wchar_h_correct_inline = no; then
22815 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
22816 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
22817 C99 mode. You have four options:
22818 - Add the flag -fgnu89-inline to CC and reconfigure, or
22819 - Fix your include files, using parts of
22820 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
22821 - Use a gcc version older than 4.3, or
22822 - Don't use the flags -std=c99 or -std=gnu99.
22823 Configuration aborted." "$LINENO" 5
22829 if test $ac_cv_header_crtdefs_h = yes; then
22838 GL_COND_LIBTOOL_TRUE=
22839 GL_COND_LIBTOOL_FALSE='#'
22841 GL_COND_LIBTOOL_TRUE='#'
22842 GL_COND_LIBTOOL_FALSE=
22845 gl_cond_libtool=true
22857 gl_source_base='gl/lib'
22860 if test $ac_cv_func_alloca_works = no; then
22864 # Define an additional variable used in the Makefile substitution.
22865 if test $ac_cv_working_alloca_h = yes; then
22866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22867 printf %s "checking for alloca as a compiler built-in... " >&6; }
22868 if test ${gl_cv_rpl_alloca+y}
22870 printf %s "(cached) " >&6
22873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22874 /* end confdefs.h. */
22876 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22882 $EGREP "Need own alloca" >/dev/null 2>&1
22884 gl_cv_rpl_alloca=yes
22886 gl_cv_rpl_alloca=no
22892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22893 printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
22894 if test $gl_cv_rpl_alloca = yes; then
22896 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
22906 if test -n "$ALLOCA_H"; then
22907 GL_GENERATE_ALLOCA_H_TRUE=
22908 GL_GENERATE_ALLOCA_H_FALSE='#'
22910 GL_GENERATE_ALLOCA_H_TRUE='#'
22911 GL_GENERATE_ALLOCA_H_FALSE=
22915 if test $ac_cv_working_alloca_h = yes; then
22925 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22926 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22928 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22929 # programs in the package would end up linked with that potentially-shared
22930 # library, inducing unnecessary run-time overhead.
22933 gl_saved_libs=$LIBS
22934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22935 printf %s "checking for library containing clock_gettime... " >&6; }
22936 if test ${ac_cv_search_clock_gettime+y}
22938 printf %s "(cached) " >&6
22940 ac_func_search_save_LIBS=$LIBS
22941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22942 /* end confdefs.h. */
22944 /* Override any GCC internal prototype to avoid an error.
22945 Use char because int might match the return type of a GCC
22946 builtin and then its argument prototype would still apply. */
22947 char clock_gettime ();
22951 return clock_gettime ();
22956 for ac_lib in '' rt posix4
22958 if test -z "$ac_lib"; then
22959 ac_res="none required"
22962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22964 if ac_fn_c_try_link "$LINENO"
22966 ac_cv_search_clock_gettime=$ac_res
22968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22970 if test ${ac_cv_search_clock_gettime+y}
22975 if test ${ac_cv_search_clock_gettime+y}
22979 ac_cv_search_clock_gettime=no
22981 rm conftest.$ac_ext
22982 LIBS=$ac_func_search_save_LIBS
22984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22985 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
22986 ac_res=$ac_cv_search_clock_gettime
22987 if test "$ac_res" != no
22989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22990 test "$ac_cv_search_clock_gettime" = "none required" ||
22991 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
22994 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
22995 if test "x$ac_cv_func_clock_gettime" = xyes
22997 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23000 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
23001 if test "x$ac_cv_func_clock_settime" = xyes
23003 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
23007 LIBS=$gl_saved_libs
23011 printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
23018 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
23027 if test $ac_cv_header_sys_socket_h != yes; then
23028 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23029 if test "x$ac_cv_header_winsock2_h" = xyes
23031 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
23036 if test "$ac_cv_header_winsock2_h" = yes; then
23038 UNISTD_H_HAVE_WINSOCK2_H=1
23039 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23045 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
23051 if test $REPLACE_CLOSE = 1; then
23060 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
23074 printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
23080 printf "%s\n" "#define GNULIB_DIRNAME 1" >>confdefs.h
23085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
23086 printf %s "checking whether // is distinct from /... " >&6; }
23087 if test ${gl_cv_double_slash_root+y}
23089 printf %s "(cached) " >&6
23091 if test x"$cross_compiling" = xyes ; then
23092 # When cross-compiling, there is no way to tell whether // is special
23093 # short of a list of hosts. However, the only known hosts to date
23094 # that have a distinct // are Apollo DomainOS (too old to port to),
23095 # Cygwin, and z/OS. If anyone knows of another system for which // has
23096 # special semantics and is distinct from /, please report it to
23097 # <bug-gnulib@gnu.org>.
23099 *-cygwin | i370-ibm-openedition)
23100 gl_cv_double_slash_root=yes ;;
23102 # Be optimistic and assume that / and // are the same when we
23104 gl_cv_double_slash_root='unknown, assuming no' ;;
23107 set x `ls -di / // 2>/dev/null`
23108 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
23109 gl_cv_double_slash_root=no
23111 gl_cv_double_slash_root=yes
23115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
23116 printf "%s\n" "$gl_cv_double_slash_root" >&6; }
23117 if test "$gl_cv_double_slash_root" = yes; then
23119 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
23126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
23127 printf %s "checking whether dup2 works... " >&6; }
23128 if test ${gl_cv_func_dup2_works+y}
23130 printf %s "(cached) " >&6
23132 if test "$cross_compiling" = yes
23135 mingw*) # on this platform, dup2 always returns 0 for success
23136 gl_cv_func_dup2_works="guessing no" ;;
23137 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
23138 gl_cv_func_dup2_works="guessing no" ;;
23140 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
23142 gl_cv_func_dup2_works="guessing no" ;;
23143 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
23144 gl_cv_func_dup2_works="guessing no" ;;
23145 *-android*) # implemented using dup3(), which fails if oldfd == newfd
23146 gl_cv_func_dup2_works="guessing no" ;;
23147 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
23148 gl_cv_func_dup2_works="guessing no" ;;
23149 *) gl_cv_func_dup2_works="guessing yes" ;;
23152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23153 /* end confdefs.h. */
23157 #include <limits.h>
23158 #include <sys/resource.h>
23159 #include <unistd.h>
23164 #ifndef RLIM_SAVED_CUR
23165 # define RLIM_SAVED_CUR RLIM_INFINITY
23167 #ifndef RLIM_SAVED_MAX
23168 # define RLIM_SAVED_MAX RLIM_INFINITY
23175 int bad_fd = INT_MAX;
23176 struct rlimit rlim;
23177 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
23178 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
23179 && rlim.rlim_cur != RLIM_INFINITY
23180 && rlim.rlim_cur != RLIM_SAVED_MAX
23181 && rlim.rlim_cur != RLIM_SAVED_CUR)
23182 bad_fd = rlim.rlim_cur;
23184 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
23187 if (dup2 (1, 1) != 1)
23190 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
23194 if (dup2 (0, 0) != -1)
23196 /* Many gnulib modules require POSIX conformance of EBADF. */
23197 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
23199 /* Flush out some cygwin core dumps. */
23200 if (dup2 (2, -1) != -1 || errno != EBADF)
23204 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
23206 int fd = open (".", O_RDONLY);
23209 else if (dup2 (fd, fd + 1) == -1)
23219 if ac_fn_c_try_run "$LINENO"
23221 gl_cv_func_dup2_works=yes
23223 gl_cv_func_dup2_works=no
23225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23226 conftest.$ac_objext conftest.beam conftest.$ac_ext
23231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
23232 printf "%s\n" "$gl_cv_func_dup2_works" >&6; }
23233 case "$gl_cv_func_dup2_works" in
23237 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
23238 if test "x$ac_cv_func_setdtablesize" = xyes
23240 printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h
23248 if test $REPLACE_DUP2 = 1; then
23257 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
23272 printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h
23288 printf "%s\n" "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
23294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
23295 printf %s "checking for error_at_line... " >&6; }
23296 if test ${ac_cv_lib_error_at_line+y}
23298 printf %s "(cached) " >&6
23300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23301 /* end confdefs.h. */
23306 error_at_line (0, 0, "", 0, "an error occurred");
23311 if ac_fn_c_try_link "$LINENO"
23313 ac_cv_lib_error_at_line=yes
23315 ac_cv_lib_error_at_line=no
23317 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23318 conftest$ac_exeext conftest.$ac_ext
23320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
23321 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
23323 if test $ac_cv_lib_error_at_line = no; then
23332 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
23341 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
23345 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
23353 if test $ac_cv_func_fcntl = no; then
23357 if test $ac_cv_func_fcntl = no; then
23364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
23365 printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; }
23366 if test ${gl_cv_func_fcntl_f_dupfd_works+y}
23368 printf %s "(cached) " >&6
23370 if test "$cross_compiling" = yes
23373 aix* | cygwin* | haiku*)
23374 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
23375 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
23378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23379 /* end confdefs.h. */
23382 #include <limits.h>
23383 #include <sys/resource.h>
23384 #include <unistd.h>
23389 #ifndef RLIM_SAVED_CUR
23390 # define RLIM_SAVED_CUR RLIM_INFINITY
23392 #ifndef RLIM_SAVED_MAX
23393 # define RLIM_SAVED_MAX RLIM_INFINITY
23400 int bad_fd = INT_MAX;
23401 struct rlimit rlim;
23402 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
23403 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
23404 && rlim.rlim_cur != RLIM_INFINITY
23405 && rlim.rlim_cur != RLIM_SAVED_MAX
23406 && rlim.rlim_cur != RLIM_SAVED_CUR)
23407 bad_fd = rlim.rlim_cur;
23408 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
23409 if (errno != EINVAL) result |= 2;
23410 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
23411 if (errno != EINVAL) result |= 8;
23412 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
23415 fd = open (".", O_RDONLY);
23418 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
23428 if ac_fn_c_try_run "$LINENO"
23430 gl_cv_func_fcntl_f_dupfd_works=yes
23432 gl_cv_func_fcntl_f_dupfd_works=no
23434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23435 conftest.$ac_objext conftest.beam conftest.$ac_ext
23439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
23440 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
23441 case $gl_cv_func_fcntl_f_dupfd_works in
23446 if test $ac_cv_func_fcntl = no; then
23453 printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
23457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
23458 printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
23459 if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y}
23461 printf %s "(cached) " >&6
23463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23464 /* end confdefs.h. */
23467 #ifndef F_DUPFD_CLOEXEC
23479 if ac_fn_c_try_compile "$LINENO"
23481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23482 /* end confdefs.h. */
23485 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
23486 it to support the semantics on older kernels that failed with EINVAL. */
23498 if ac_fn_c_try_compile "$LINENO"
23500 gl_cv_func_fcntl_f_dupfd_cloexec=yes
23502 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
23504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23506 gl_cv_func_fcntl_f_dupfd_cloexec=no
23508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
23511 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
23512 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
23516 if test $ac_cv_func_fcntl = no; then
23526 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
23535 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
23549 printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
23564 if test $gl_cv_have_include_next = yes; then
23565 gl_cv_next_fcntl_h='<'fcntl.h'>'
23567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
23568 printf %s "checking absolute name of <fcntl.h>... " >&6; }
23569 if test ${gl_cv_next_fcntl_h+y}
23571 printf %s "(cached) " >&6
23576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23577 /* end confdefs.h. */
23581 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23582 *) gl_absname_cpp="$ac_cpp" ;;
23587 gl_dirsep_regex='[/\\]'
23590 gl_dirsep_regex='\/'
23593 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23594 gl_header_literal_regex=`echo 'fcntl.h' \
23595 | sed -e "$gl_make_literal_regex_sed"`
23596 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23597 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23603 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23604 sed -n "$gl_absolute_header_sed"`
23606 gl_header=$gl_cv_absolute_fcntl_h
23607 gl_cv_next_fcntl_h='"'$gl_header'"'
23611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
23612 printf "%s\n" "$gl_cv_next_fcntl_h" >&6; }
23614 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
23616 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23617 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23618 gl_next_as_first_directive='<'fcntl.h'>'
23620 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23621 gl_next_as_first_directive=$gl_cv_next_fcntl_h
23623 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
23641 REPLACE_FLOAT_LDBL=0
23643 aix* | beos* | openbsd* | mirbsd* | irix*)
23646 freebsd* | dragonfly*)
23647 case "$host_cpu" in
23652 # On x86_64 systems, the C compiler may still be generating
23654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23655 /* end confdefs.h. */
23656 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
23663 if ac_fn_c_try_compile "$LINENO"
23669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23674 case "$host_cpu" in
23682 aix* | freebsd* | dragonfly* | linux*)
23683 if test -n "$FLOAT_H"; then
23684 REPLACE_FLOAT_LDBL=1
23690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
23691 printf %s "checking whether conversion from 'int' to 'long double' works... " >&6; }
23692 if test ${gl_cv_func_itold_works+y}
23694 printf %s "(cached) " >&6
23697 if test "$cross_compiling" = yes
23701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23702 /* end confdefs.h. */
23703 #if defined __LP64__ || defined __arch64__
23710 if ac_fn_c_try_compile "$LINENO"
23712 gl_cv_func_itold_works="guessing no"
23714 gl_cv_func_itold_works="guessing yes"
23716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23718 # Guess yes on native Windows.
23719 mingw*) gl_cv_func_itold_works="guessing yes" ;;
23720 *) gl_cv_func_itold_works="guessing yes" ;;
23724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23725 /* end confdefs.h. */
23728 volatile long double ld;
23737 if ac_fn_c_try_run "$LINENO"
23739 gl_cv_func_itold_works=yes
23741 gl_cv_func_itold_works=no
23743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23744 conftest.$ac_objext conftest.beam conftest.$ac_ext
23749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
23750 printf "%s\n" "$gl_cv_func_itold_works" >&6; }
23751 case "$gl_cv_func_itold_works" in
23758 if test -n "$FLOAT_H"; then
23767 if test $gl_cv_have_include_next = yes; then
23768 gl_cv_next_float_h='<'float.h'>'
23770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
23771 printf %s "checking absolute name of <float.h>... " >&6; }
23772 if test ${gl_cv_next_float_h+y}
23774 printf %s "(cached) " >&6
23779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23780 /* end confdefs.h. */
23784 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23785 *) gl_absname_cpp="$ac_cpp" ;;
23790 gl_dirsep_regex='[/\\]'
23793 gl_dirsep_regex='\/'
23796 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23797 gl_header_literal_regex=`echo 'float.h' \
23798 | sed -e "$gl_make_literal_regex_sed"`
23799 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23800 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23806 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23807 sed -n "$gl_absolute_header_sed"`
23809 gl_header=$gl_cv_absolute_float_h
23810 gl_cv_next_float_h='"'$gl_header'"'
23814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
23815 printf "%s\n" "$gl_cv_next_float_h" >&6; }
23817 NEXT_FLOAT_H=$gl_cv_next_float_h
23819 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23821 gl_next_as_first_directive='<'float.h'>'
23823 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23824 gl_next_as_first_directive=$gl_cv_next_float_h
23826 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
23833 if test -n "$FLOAT_H"; then
23834 GL_GENERATE_FLOAT_H_TRUE=
23835 GL_GENERATE_FLOAT_H_FALSE='#'
23837 GL_GENERATE_FLOAT_H_TRUE='#'
23838 GL_GENERATE_FLOAT_H_FALSE=
23843 if test $REPLACE_FLOAT_LDBL = 1; then
23852 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
23855 if test $REPLACE_ITOLD = 1; then
23864 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
23879 if test $REPLACE_FSTAT = 1; then
23888 gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
23900 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
23921 printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
23930 if test $ac_cv_func_getdtablesize = yes &&
23931 test $ac_cv_have_decl_getdtablesize = yes; then
23932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
23933 printf %s "checking whether getdtablesize works... " >&6; }
23934 if test ${gl_cv_func_getdtablesize_works+y}
23936 printf %s "(cached) " >&6
23939 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
23941 if test "$cross_compiling" = yes
23944 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
23945 gl_cv_func_getdtablesize_works="guessing no" ;;
23946 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
23950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23951 /* end confdefs.h. */
23953 #include <unistd.h>
23962 int size = getdtablesize();
23963 if (dup2 (0, getdtablesize()) != -1)
23965 if (size != getdtablesize())
23972 if ac_fn_c_try_run "$LINENO"
23974 gl_cv_func_getdtablesize_works=yes
23976 gl_cv_func_getdtablesize_works=no
23978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23979 conftest.$ac_objext conftest.beam conftest.$ac_ext
23986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
23987 printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; }
23988 case "$gl_cv_func_getdtablesize_works" in
23989 *yes | "no (limitation)") ;;
23990 *) REPLACE_GETDTABLESIZE=1 ;;
23993 HAVE_GETDTABLESIZE=0
23996 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
24005 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
24014 GNULIB_GETDTABLESIZE=1
24020 printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
24028 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
24029 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24030 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
24036 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
24037 if test $ac_have_decl = 1
24042 ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
24043 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24044 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
24050 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
24051 if test $ac_have_decl = 1
24056 ac_fn_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
24057 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24058 if test "x$ac_cv_have_decl___argv" = xyes
24064 printf "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h
24065 if test $ac_have_decl = 1
24071 # Incur the cost of this test only if none of the above worked.
24072 if test $ac_found = 0; then
24073 # On OpenBSD 5.1, using the global __progname variable appears to be
24074 # the only way to implement getprogname.
24075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
24076 printf %s "checking whether __progname is defined in default libraries... " >&6; }
24077 if test ${gl_cv_var___progname+y}
24079 printf %s "(cached) " >&6
24082 gl_cv_var___progname=
24083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24084 /* end confdefs.h. */
24085 extern char *__progname;
24089 return *__progname;
24095 if ac_fn_c_try_link "$LINENO"
24097 gl_cv_var___progname=yes
24100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24101 conftest$ac_exeext conftest.$ac_ext
24105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
24106 printf "%s\n" "$gl_cv_var___progname" >&6; }
24107 if test "$gl_cv_var___progname" = yes; then
24109 printf "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
24118 if test "$ac_cv_func_getrandom" != yes; then
24121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5
24122 printf %s "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; }
24123 if test ${gl_cv_func_getrandom_ok+y}
24125 printf %s "(cached) " >&6
24127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24128 /* end confdefs.h. */
24129 /* Additional includes are needed before <sys/random.h> on uClibc
24131 #include <sys/types.h>
24132 #include <stdlib.h>
24133 #include <sys/random.h>
24134 ssize_t getrandom (void *, size_t, unsigned int);
24145 if ac_fn_c_try_compile "$LINENO"
24147 gl_cv_func_getrandom_ok=yes
24149 gl_cv_func_getrandom_ok=no
24151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5
24155 printf "%s\n" "$gl_cv_func_getrandom_ok" >&6; }
24156 if test $gl_cv_func_getrandom_ok = no; then
24157 REPLACE_GETRANDOM=1
24163 ac_fn_c_check_header_compile "$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#include <windows.h>
24166 if test "x$ac_cv_header_bcrypt_h" = xyes
24168 printf "%s\n" "#define HAVE_BCRYPT_H 1" >>confdefs.h
24172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5
24173 printf %s "checking whether the bcrypt library is guaranteed to be present... " >&6; }
24174 if test ${gl_cv_lib_assume_bcrypt+y}
24176 printf %s "(cached) " >&6
24178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24179 /* end confdefs.h. */
24180 #include <windows.h>
24184 #if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7)
24193 if ac_fn_c_try_compile "$LINENO"
24195 gl_cv_lib_assume_bcrypt=yes
24197 gl_cv_lib_assume_bcrypt=no
24199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5
24203 printf "%s\n" "$gl_cv_lib_assume_bcrypt" >&6; }
24204 if test $gl_cv_lib_assume_bcrypt = yes; then
24206 printf "%s\n" "#define HAVE_LIB_BCRYPT 1" >>confdefs.h
24208 LIB_GETRANDOM='-lbcrypt'
24210 LIB_GETRANDOM='-ladvapi32'
24218 if test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1; then
24227 gl_LIBOBJS="$gl_LIBOBJS getrandom.$ac_objext"
24241 printf "%s\n" "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h
24250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
24251 printf %s "checking for C compiler flag to ignore unused libraries... " >&6; }
24252 if test ${gl_cv_prog_c_ignore_unused_libraries+y}
24254 printf %s "(cached) " >&6
24256 gl_cv_prog_c_ignore_unused_libraries=none
24257 gl_saved_ldflags=$LDFLAGS
24258 gl_saved_libs=$LIBS
24259 # Link with -lm to detect binutils 2.16 bug with --as-needed; see
24260 # <https://lists.gnu.org/r/bug-gnulib/2006-06/msg00131.html>.
24262 # Use long option sequences like '-z ignore' to test for the feature,
24263 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
24264 # GCC + binutils likes '-Wl,--as-needed'.
24265 # GCC + Solaris ld likes '-Wl,-z,ignore'.
24266 # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
24267 # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
24268 # native cc issues annoying warnings and then ignores it,
24269 # which would cause us to incorrectly conclude that it worked.
24270 for gl_flags in '-Wl,--as-needed' \
24275 LDFLAGS="$gl_flags $LDFLAGS"
24276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24277 /* end confdefs.h. */
24287 if ac_fn_c_try_link "$LINENO"
24289 gl_cv_prog_c_ignore_unused_libraries=$gl_flags
24291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24292 conftest$ac_exeext conftest.$ac_ext
24293 LDFLAGS=$gl_saved_ldflags
24294 test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
24297 LIBS=$gl_saved_libs
24300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
24301 printf "%s\n" "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
24302 IGNORE_UNUSED_LIBRARIES_CFLAGS=
24303 if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
24304 IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
24309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
24310 printf %s "checking whether the compiler supports the __inline keyword... " >&6; }
24311 if test ${gl_cv_c___inline+y}
24313 printf %s "(cached) " >&6
24315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24316 /* end confdefs.h. */
24318 static __inline foo_t foo (void) { return 0; }
24327 if ac_fn_c_try_compile "$LINENO"
24329 gl_cv_c___inline=yes
24331 gl_cv_c___inline=no
24333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
24336 printf "%s\n" "$gl_cv_c___inline" >&6; }
24337 if test $gl_cv_c___inline = yes; then
24339 printf "%s\n" "#define HAVE___INLINE 1" >>confdefs.h
24346 if test "$gl_threads_api" = posix; then
24347 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
24348 # pthread_rwlock_* functions.
24350 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
24352 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
24356 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
24360 if $has_rwlock; then
24363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
24364 printf %s "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
24365 if test ${gl_cv_pthread_rwlock_rdlock_prefer_writer+y}
24367 printf %s "(cached) " >&6
24370 LIBS="$LIBS $LIBMULTITHREAD"
24371 if test "$cross_compiling" = yes
24374 # Guess no on glibc systems.
24375 *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
24376 # Guess no on musl systems.
24377 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
24378 # Guess no on bionic systems.
24379 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
24380 # Guess yes on native Windows with the mingw-w64 winpthreads library.
24381 # Guess no on native Windows with the gnulib windows-rwlock module.
24382 mingw*) if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
24383 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
24385 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no"
24388 # If we don't know, obey --enable-cross-guesses.
24389 *) gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;;
24393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24394 /* end confdefs.h. */
24397 #include <pthread.h>
24398 #include <stdlib.h>
24399 #include <unistd.h>
24401 #define SUCCEED() exit (0)
24402 #define FAILURE() exit (1)
24403 #define UNEXPECTED(n) (exit (10 + (n)))
24405 /* The main thread creates the waiting writer and the requesting reader threads
24406 in the default way; this guarantees that they have the same priority.
24407 We can reuse the main thread as first reader thread. */
24409 static pthread_rwlock_t lock;
24410 static pthread_t reader1;
24411 static pthread_t writer;
24412 static pthread_t reader2;
24413 static pthread_t timer;
24414 /* Used to pass control from writer to reader2 and from reader2 to timer,
24415 as in a relay race.
24416 Passing control from one running thread to another running thread
24417 is most likely faster than to create the second thread. */
24418 static pthread_mutex_t baton;
24421 timer_func (void *ignored)
24423 /* Step 13 (can be before or after step 12):
24424 The timer thread takes the baton, then waits a moment to make sure
24425 it can tell whether the second reader thread is blocked at step 12. */
24426 if (pthread_mutex_lock (&baton))
24429 /* By the time we get here, it's clear that the second reader thread is
24430 blocked at step 12. This is the desired behaviour. */
24435 reader2_func (void *ignored)
24439 /* Step 8 (can be before or after step 7):
24440 The second reader thread takes the baton, then waits a moment to make sure
24441 the writer thread has reached step 7. */
24442 if (pthread_mutex_lock (&baton))
24445 /* Step 9: The second reader thread requests the lock. */
24446 err = pthread_rwlock_tryrdlock (&lock);
24449 else if (err != EBUSY)
24451 /* Step 10: Launch a timer, to test whether the next call blocks. */
24452 if (pthread_create (&timer, NULL, timer_func, NULL))
24454 /* Step 11: Release the baton. */
24455 if (pthread_mutex_unlock (&baton))
24457 /* Step 12: The second reader thread requests the lock. */
24458 err = pthread_rwlock_rdlock (&lock);
24466 writer_func (void *ignored)
24468 /* Step 4: Take the baton, so that the second reader thread does not go ahead
24470 if (pthread_mutex_lock (&baton))
24472 /* Step 5: Create the second reader thread. */
24473 if (pthread_create (&reader2, NULL, reader2_func, NULL))
24475 /* Step 6: Release the baton. */
24476 if (pthread_mutex_unlock (&baton))
24478 /* Step 7: The writer thread requests the lock. */
24479 if (pthread_rwlock_wrlock (&lock))
24487 reader1 = pthread_self ();
24489 /* Step 1: The main thread initializes the lock and the baton. */
24490 if (pthread_rwlock_init (&lock, NULL))
24492 if (pthread_mutex_init (&baton, NULL))
24494 /* Step 2: The main thread acquires the lock as a reader. */
24495 if (pthread_rwlock_rdlock (&lock))
24497 /* Step 3: Create the writer thread. */
24498 if (pthread_create (&writer, NULL, writer_func, NULL))
24500 /* Job done. Go to sleep. */
24508 if ac_fn_c_try_run "$LINENO"
24510 gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
24512 gl_cv_pthread_rwlock_rdlock_prefer_writer=no
24514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24515 conftest.$ac_objext conftest.beam conftest.$ac_ext
24521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
24522 printf "%s\n" "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
24523 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
24526 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
24532 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
24533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24534 /* end confdefs.h. */
24536 #include <pthread.h>
24541 #if __FreeBSD__ == 4
24542 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
24543 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
24544 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
24545 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
24547 int x = (int)PTHREAD_MUTEX_RECURSIVE;
24555 if ac_fn_c_try_compile "$LINENO"
24558 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
24561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24567 printf "%s\n" "#define GNULIB_LOCK 1" >>confdefs.h
24574 if test $ac_cv_func_lstat = yes; then
24576 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
24585 if test $REPLACE_LSTAT = 1; then
24594 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24609 printf "%s\n" "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
24616 if test $gl_cv_func_malloc_posix = yes; then
24618 printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
24624 if test $REPLACE_MALLOC = 1; then
24633 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
24641 GNULIB_MALLOC_POSIX=1
24647 printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
24655 if test $REPLACE_MEMCHR = 1; then
24664 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
24667 ac_fn_c_check_header_compile "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
24668 if test "x$ac_cv_header_bp_sym_h" = xyes
24670 printf "%s\n" "#define HAVE_BP_SYM_H 1" >>confdefs.h
24687 printf "%s\n" "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
24696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
24697 printf %s "checking whether mkdir handles trailing slash... " >&6; }
24698 if test ${gl_cv_func_mkdir_trailing_slash_works+y}
24700 printf %s "(cached) " >&6
24702 rm -rf conftest.dir
24703 if test "$cross_compiling" = yes
24706 # Guess yes on Linux systems.
24707 linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
24708 # Guess yes on glibc systems.
24709 *-gnu* | gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
24710 # Guess yes on MSVC, no on mingw.
24711 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24712 /* end confdefs.h. */
24719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24720 $EGREP "Known" >/dev/null 2>&1
24722 gl_cv_func_mkdir_trailing_slash_works="guessing yes"
24724 gl_cv_func_mkdir_trailing_slash_works="guessing no"
24729 # If we don't know, obey --enable-cross-guesses.
24730 *) gl_cv_func_mkdir_trailing_slash_works="$gl_cross_guess_normal" ;;
24734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24735 /* end confdefs.h. */
24737 #include <sys/types.h>
24738 #include <sys/stat.h>
24746 return mkdir ("conftest.dir/", 0700);
24751 if ac_fn_c_try_run "$LINENO"
24753 gl_cv_func_mkdir_trailing_slash_works=yes
24755 gl_cv_func_mkdir_trailing_slash_works=no
24757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24758 conftest.$ac_objext conftest.beam conftest.$ac_ext
24761 rm -rf conftest.dir
24764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
24765 printf "%s\n" "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
24766 case "$gl_cv_func_mkdir_trailing_slash_works" in
24773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
24774 printf %s "checking whether mkdir handles trailing dot... " >&6; }
24775 if test ${gl_cv_func_mkdir_trailing_dot_works+y}
24777 printf %s "(cached) " >&6
24779 rm -rf conftest.dir
24780 if test "$cross_compiling" = yes
24783 # Guess yes on glibc systems.
24784 *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
24785 # Guess yes on musl systems.
24786 *-musl*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
24787 # Guess no on native Windows.
24788 mingw*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
24789 # If we don't know, obey --enable-cross-guesses.
24790 *) gl_cv_func_mkdir_trailing_dot_works="$gl_cross_guess_normal" ;;
24794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24795 /* end confdefs.h. */
24797 #include <sys/types.h>
24798 #include <sys/stat.h>
24806 return !mkdir ("conftest.dir/./", 0700);
24811 if ac_fn_c_try_run "$LINENO"
24813 gl_cv_func_mkdir_trailing_dot_works=yes
24815 gl_cv_func_mkdir_trailing_dot_works=no
24817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24818 conftest.$ac_objext conftest.beam conftest.$ac_ext
24821 rm -rf conftest.dir
24825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
24826 printf "%s\n" "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
24827 case "$gl_cv_func_mkdir_trailing_dot_works" in
24832 printf "%s\n" "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
24837 if test $REPLACE_MKDIR = 1; then
24846 gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
24851 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
24852 if test "x$ac_cv_func_mkdtemp" = xyes
24854 printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
24858 if test $ac_cv_func_mkdtemp = no; then
24862 if test $HAVE_MKDTEMP = 0; then
24871 gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
24887 printf "%s\n" "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
24892 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24901 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
24905 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24914 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
24919 printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h
24932 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
24937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
24938 printf %s "checking whether open recognizes a trailing slash... " >&6; }
24939 if test ${gl_cv_func_open_slash+y}
24941 printf %s "(cached) " >&6
24943 # Assume that if we have lstat, we can also check symlinks.
24944 if test $ac_cv_func_lstat = yes; then
24946 ln -s conftest.tmp conftest.lnk
24948 if test "$cross_compiling" = yes
24952 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
24953 gl_cv_func_open_slash="guessing no" ;;
24955 gl_cv_func_open_slash="guessing yes" ;;
24959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24960 /* end confdefs.h. */
24964 # include <unistd.h>
24974 if (open ("conftest.lnk/", O_RDONLY) != -1)
24977 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
24982 if ac_fn_c_try_run "$LINENO"
24984 gl_cv_func_open_slash=yes
24986 gl_cv_func_open_slash=no
24988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24989 conftest.$ac_objext conftest.beam conftest.$ac_ext
24992 rm -f conftest.sl conftest.tmp conftest.lnk
24995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
24996 printf "%s\n" "$gl_cv_func_open_slash" >&6; }
24997 case "$gl_cv_func_open_slash" in
25000 printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
25005 case "$gl_cv_func_open_slash" in
25015 if test $REPLACE_OPEN = 1; then
25024 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
25042 printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h
25052 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
25053 if test "x$ac_cv_func_raise" = xyes
25055 printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h
25059 if test $ac_cv_func_raise = no; then
25064 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25072 HAVE_POSIX_SIGNALBLOCKING=0
25073 if test "$gl_cv_type_sigset_t" = yes; then
25074 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
25075 if test "x$ac_cv_func_sigprocmask" = xyes
25077 HAVE_POSIX_SIGNALBLOCKING=1
25082 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
25088 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
25097 gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
25112 printf "%s\n" "#define GNULIB_TEST_RAISE 1" >>confdefs.h
25120 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25126 if test $REPLACE_READ = 1; then
25135 gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
25150 printf "%s\n" "#define GNULIB_TEST_READ 1" >>confdefs.h
25164 if test $ac_cv_func_setenv = no; then
25167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
25168 printf %s "checking whether setenv validates arguments... " >&6; }
25169 if test ${gl_cv_func_setenv_works+y}
25171 printf %s "(cached) " >&6
25173 if test "$cross_compiling" = yes
25176 # Guess yes on glibc systems.
25177 *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
25178 # Guess yes on musl systems.
25179 *-musl*) gl_cv_func_setenv_works="guessing yes" ;;
25180 # If we don't know, obey --enable-cross-guesses.
25181 *) gl_cv_func_setenv_works="$gl_cross_guess_normal" ;;
25185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25186 /* end confdefs.h. */
25188 #include <stdlib.h>
25190 #include <string.h>
25198 if (setenv ("", "", 0) != -1)
25200 else if (errno != EINVAL)
25204 if (setenv ("a", "=", 1) != 0)
25206 else if (strcmp (getenv ("a"), "=") != 0)
25215 if ac_fn_c_try_run "$LINENO"
25217 gl_cv_func_setenv_works=yes
25219 gl_cv_func_setenv_works=no
25221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25222 conftest.$ac_objext conftest.beam conftest.$ac_ext
25226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
25227 printf "%s\n" "$gl_cv_func_setenv_works" >&6; }
25228 case "$gl_cv_func_setenv_works" in
25236 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
25245 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
25259 printf "%s\n" "#define GNULIB_TEST_SETENV 1" >>confdefs.h
25266 if test $ac_cv_func_sigaction = yes; then
25267 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
25269 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
25272 printf "%s\n" "#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1" >>confdefs.h
25277 if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
25278 HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
25284 if test $HAVE_SIGACTION = 0; then
25293 gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
25301 ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
25302 #include <signal.h>
25305 if test "x$ac_cv_type_siginfo_t" = xyes
25308 printf "%s\n" "#define HAVE_SIGINFO_T 1" >>confdefs.h
25313 if test $ac_cv_type_siginfo_t = no; then
25329 printf "%s\n" "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
25344 if test $gl_cv_have_include_next = yes; then
25345 gl_cv_next_signal_h='<'signal.h'>'
25347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25348 printf %s "checking absolute name of <signal.h>... " >&6; }
25349 if test ${gl_cv_next_signal_h+y}
25351 printf %s "(cached) " >&6
25356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25357 /* end confdefs.h. */
25358 #include <signal.h>
25361 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25362 *) gl_absname_cpp="$ac_cpp" ;;
25367 gl_dirsep_regex='[/\\]'
25370 gl_dirsep_regex='\/'
25373 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25374 gl_header_literal_regex=`echo 'signal.h' \
25375 | sed -e "$gl_make_literal_regex_sed"`
25376 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25377 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25383 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25384 sed -n "$gl_absolute_header_sed"`
25386 gl_header=$gl_cv_absolute_signal_h
25387 gl_cv_next_signal_h='"'$gl_header'"'
25391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25392 printf "%s\n" "$gl_cv_next_signal_h" >&6; }
25394 NEXT_SIGNAL_H=$gl_cv_next_signal_h
25396 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25397 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25398 gl_next_as_first_directive='<'signal.h'>'
25400 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25401 gl_next_as_first_directive=$gl_cv_next_signal_h
25403 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
25409 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25410 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
25411 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25412 #include <signal.h>
25415 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
25419 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
25428 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25429 #include <signal.h>
25432 if test "x$ac_cv_type_sighandler_t" = xyes
25436 HAVE_SIGHANDLER_T=0
25449 HAVE_POSIX_SIGNALBLOCKING=0
25450 if test "$gl_cv_type_sigset_t" = yes; then
25451 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
25452 if test "x$ac_cv_func_sigprocmask" = xyes
25454 HAVE_POSIX_SIGNALBLOCKING=1
25459 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
25468 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
25477 GNULIB_SIGPROCMASK=1
25483 printf "%s\n" "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
25488 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
25489 if test "x$ac_cv_header_stdint_h" = xyes
25491 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
25495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
25496 printf %s "checking for SIZE_MAX... " >&6; }
25497 if test ${gl_cv_size_max+y}
25499 printf %s "(cached) " >&6
25503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25504 /* end confdefs.h. */
25506 #include <limits.h>
25508 #include <stdint.h>
25515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25516 $EGREP "Found it" >/dev/null 2>&1
25522 if test $gl_cv_size_max != yes; then
25523 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
25524 #include <limits.h>"
25528 size_t_bits_minus_1=
25531 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"
25538 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
25539 if test $fits_in_uint = 1; then
25540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25541 /* end confdefs.h. */
25542 #include <stddef.h>
25544 extern unsigned long foo;
25554 if ac_fn_c_try_compile "$LINENO"
25558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25560 if test $fits_in_uint = 1; then
25561 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
25563 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
25566 gl_cv_size_max='((size_t)~(size_t)0)'
25571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
25572 printf "%s\n" "$gl_cv_size_max" >&6; }
25573 if test "$gl_cv_size_max" != yes; then
25575 printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h
25582 gl_cv_func_snprintf_usable=no
25583 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
25584 if test "x$ac_cv_func_snprintf" = xyes
25586 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
25590 if test $ac_cv_func_snprintf = yes; then
25594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
25595 printf %s "checking whether snprintf respects a size of 1... " >&6; }
25596 if test ${gl_cv_func_snprintf_size1+y}
25598 printf %s "(cached) " >&6
25601 if test "$cross_compiling" = yes
25604 # Guess yes on Android.
25605 linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
25606 # Guess yes on native Windows.
25607 mingw*) gl_cv_func_snprintf_size1="guessing yes" ;;
25608 *) gl_cv_func_snprintf_size1="guessing yes" ;;
25612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25613 /* end confdefs.h. */
25617 # define my_snprintf snprintf
25619 # include <stdarg.h>
25620 static int my_snprintf (char *buf, int size, const char *format, ...)
25624 va_start (args, format);
25625 ret = vsnprintf (buf, size, format, args);
25632 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
25633 my_snprintf (buf, 1, "%d", 12345);
25634 return buf[1] != 'E';
25637 if ac_fn_c_try_run "$LINENO"
25639 gl_cv_func_snprintf_size1=yes
25641 gl_cv_func_snprintf_size1=no
25643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25644 conftest.$ac_objext conftest.beam conftest.$ac_ext
25649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
25650 printf "%s\n" "$gl_cv_func_snprintf_size1" >&6; }
25652 case "$gl_cv_func_snprintf_size1" in
25655 case "$gl_cv_func_snprintf_retval_c99" in
25659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
25660 printf %s "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
25661 if test ${gl_cv_func_printf_positions+y}
25663 printf %s "(cached) " >&6
25666 if test "$cross_compiling" = yes
25670 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
25671 gl_cv_func_printf_positions="guessing no";;
25672 beos*) gl_cv_func_printf_positions="guessing no";;
25673 # Guess yes on Android.
25674 linux*-android*) gl_cv_func_printf_positions="guessing yes";;
25675 # Guess no on native Windows.
25676 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
25677 *) gl_cv_func_printf_positions="guessing yes";;
25681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25682 /* end confdefs.h. */
25685 #include <string.h>
25686 /* The string "%2$d %1$d", with dollar characters protected from the shell's
25687 dollar expansion (possibly an autoconf bug). */
25688 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
25689 static char buf[100];
25692 sprintf (buf, format, 33, 55);
25693 return (strcmp (buf, "55 33") != 0);
25696 if ac_fn_c_try_run "$LINENO"
25698 gl_cv_func_printf_positions=yes
25700 gl_cv_func_printf_positions=no
25702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25703 conftest.$ac_objext conftest.beam conftest.$ac_ext
25708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
25709 printf "%s\n" "$gl_cv_func_printf_positions" >&6; }
25711 case "$gl_cv_func_printf_positions" in
25713 gl_cv_func_snprintf_usable=yes
25721 if test $gl_cv_func_snprintf_usable = no; then
25732 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
25734 if test $ac_cv_func_snprintf = yes; then
25738 if test $ac_cv_have_decl_snprintf = yes; then
25746 if test $ac_cv_have_decl_snprintf = no; then
25747 HAVE_DECL_SNPRINTF=0
25761 printf "%s\n" "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
25767 printf "%s\n" "#define GNULIB_SNPRINTF 1" >>confdefs.h
25771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25772 printf %s "checking for ssize_t... " >&6; }
25773 if test ${gt_cv_ssize_t+y}
25775 printf %s "(cached) " >&6
25777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25778 /* end confdefs.h. */
25779 #include <sys/types.h>
25783 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25789 if ac_fn_c_try_compile "$LINENO"
25795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25798 printf "%s\n" "$gt_cv_ssize_t" >&6; }
25799 if test $gt_cv_ssize_t = no; then
25801 printf "%s\n" "#define ssize_t int" >>confdefs.h
25814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
25815 printf %s "checking whether stat handles trailing slashes on files... " >&6; }
25816 if test ${gl_cv_func_stat_file_slash+y}
25818 printf %s "(cached) " >&6
25821 # Assume that if we have lstat, we can also check symlinks.
25822 if test $ac_cv_func_lstat = yes; then
25823 ln -s conftest.tmp conftest.lnk
25825 if test "$cross_compiling" = yes
25828 # Guess yes on Linux systems.
25829 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
25830 # Guess yes on glibc systems.
25831 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
25832 # If we don't know, obey --enable-cross-guesses.
25833 *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
25837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25838 /* end confdefs.h. */
25839 #include <sys/stat.h>
25846 if (!stat ("conftest.tmp/", &st))
25849 if (!stat ("conftest.lnk/", &st))
25858 if ac_fn_c_try_run "$LINENO"
25860 gl_cv_func_stat_file_slash=yes
25862 gl_cv_func_stat_file_slash=no
25864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25865 conftest.$ac_objext conftest.beam conftest.$ac_ext
25868 rm -f conftest.tmp conftest.lnk
25870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25871 printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; }
25872 case $gl_cv_func_stat_file_slash in
25876 printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25886 if test $REPLACE_STAT = 1; then
25895 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
25907 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
25928 printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h
25936 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>
25937 #include <sys/stat.h>
25939 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
25942 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
25944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25945 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25946 if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y}
25948 printf %s "(cached) " >&6
25950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25951 /* end confdefs.h. */
25953 #include <sys/types.h>
25954 #include <sys/stat.h>
25955 #if HAVE_SYS_TIME_H
25956 # include <sys/time.h>
25959 struct timespec ts;
25972 if ac_fn_c_try_compile "$LINENO"
25974 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
25976 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
25978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25981 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25982 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25984 printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25988 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>
25989 #include <sys/stat.h>
25991 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
25994 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
25998 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25999 #include <sys/stat.h>
26001 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
26004 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
26008 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>
26009 #include <sys/stat.h>
26011 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
26014 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h
26029 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>
26030 #include <sys/stat.h>
26032 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
26035 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
26039 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
26040 #include <sys/stat.h>
26042 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
26045 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
26049 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>
26050 #include <sys/stat.h>
26052 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
26055 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h
26066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
26067 printf %s "checking for working stdalign.h... " >&6; }
26068 if test ${gl_cv_header_working_stdalign_h+y}
26070 printf %s "(cached) " >&6
26072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26073 /* end confdefs.h. */
26074 #include <stdalign.h>
26075 #include <stddef.h>
26077 /* Test that alignof yields a result consistent with offsetof.
26078 This catches GCC bug 52023
26079 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26081 template <class t> struct alignof_helper { char a; t b; };
26082 # define ao(type) offsetof (alignof_helper<type>, b)
26084 # define ao(type) offsetof (struct { char a; type b; }, b)
26086 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26087 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26088 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26090 /* Test _Alignas only on platforms where gnulib can help. */
26092 ((defined __cplusplus && 201103 <= __cplusplus) \
26093 || (defined __APPLE__ && defined __MACH__ \
26094 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
26096 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
26097 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
26098 || 1300 <= _MSC_VER)
26099 struct alignas_test { char c; char alignas (8) alignas_8; };
26100 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26112 if ac_fn_c_try_compile "$LINENO"
26114 gl_cv_header_working_stdalign_h=yes
26116 gl_cv_header_working_stdalign_h=no
26118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26121 printf "%s\n" "$gl_cv_header_working_stdalign_h" >&6; }
26123 if test $gl_cv_header_working_stdalign_h = yes; then
26126 STDALIGN_H='stdalign.h'
26130 if test -n "$STDALIGN_H"; then
26131 GL_GENERATE_STDALIGN_H_TRUE=
26132 GL_GENERATE_STDALIGN_H_FALSE='#'
26134 GL_GENERATE_STDALIGN_H_TRUE='#'
26135 GL_GENERATE_STDALIGN_H_FALSE=
26141 NEXT_STDARG_H='<stdarg.h>'
26142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
26143 printf %s "checking for va_copy... " >&6; }
26144 if test ${gl_cv_func_va_copy+y}
26146 printf %s "(cached) " >&6
26148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26149 /* end confdefs.h. */
26150 #include <stdarg.h>
26156 void (*func) (va_list, va_list) = va_copy;
26163 if ac_fn_c_try_compile "$LINENO"
26165 gl_cv_func_va_copy=yes
26167 gl_cv_func_va_copy=no
26169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
26173 printf "%s\n" "$gl_cv_func_va_copy" >&6; }
26174 if test $gl_cv_func_va_copy = no; then
26175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26176 /* end confdefs.h. */
26177 #if defined _AIX && !defined __GNUC__
26182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26183 $EGREP "vaccine" >/dev/null 2>&1
26191 if test $gl_aixcc = yes; then
26201 if test $gl_cv_have_include_next = yes; then
26202 gl_cv_next_stdarg_h='<'stdarg.h'>'
26204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26205 printf %s "checking absolute name of <stdarg.h>... " >&6; }
26206 if test ${gl_cv_next_stdarg_h+y}
26208 printf %s "(cached) " >&6
26213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26214 /* end confdefs.h. */
26215 #include <stdarg.h>
26218 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26219 *) gl_absname_cpp="$ac_cpp" ;;
26224 gl_dirsep_regex='[/\\]'
26227 gl_dirsep_regex='\/'
26230 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26231 gl_header_literal_regex=`echo 'stdarg.h' \
26232 | sed -e "$gl_make_literal_regex_sed"`
26233 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26234 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26240 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26241 sed -n "$gl_absolute_header_sed"`
26243 gl_header=$gl_cv_absolute_stdarg_h
26244 gl_cv_next_stdarg_h='"'$gl_header'"'
26248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26249 printf "%s\n" "$gl_cv_next_stdarg_h" >&6; }
26251 NEXT_STDARG_H=$gl_cv_next_stdarg_h
26253 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26254 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26255 gl_next_as_first_directive='<'stdarg.h'>'
26257 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26258 gl_next_as_first_directive=$gl_cv_next_stdarg_h
26260 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
26265 if test "$gl_cv_next_stdarg_h" = '""'; then
26266 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
26267 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
26272 exec 9>&6 6>/dev/null
26274 if test ${gl_cv_func___va_copy+y}
26276 printf %s "(cached) " >&6
26279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26280 /* end confdefs.h. */
26281 #include <stdarg.h>
26294 if ac_fn_c_try_compile "$LINENO"
26296 gl_cv_func___va_copy=yes
26298 gl_cv_func___va_copy=no
26300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26307 if test $gl_cv_func___va_copy = yes; then
26309 printf "%s\n" "#define va_copy __va_copy" >>confdefs.h
26314 printf "%s\n" "#define va_copy gl_va_copy" >>confdefs.h
26320 if test -n "$STDARG_H"; then
26321 GL_GENERATE_STDARG_H_TRUE=
26322 GL_GENERATE_STDARG_H_FALSE='#'
26324 GL_GENERATE_STDARG_H_TRUE='#'
26325 GL_GENERATE_STDARG_H_FALSE=
26334 if test "$ac_cv_header_stdbool_h" = yes; then
26337 if test -z "$GCC"; then
26338 STDBOOL_H='stdbool.h'
26348 STDBOOL_H='stdbool.h'
26351 if test -n "$STDBOOL_H"; then
26352 GL_GENERATE_STDBOOL_H_TRUE=
26353 GL_GENERATE_STDBOOL_H_FALSE='#'
26355 GL_GENERATE_STDBOOL_H_TRUE='#'
26356 GL_GENERATE_STDBOOL_H_FALSE=
26360 if test "$ac_cv_type__Bool" = yes; then
26372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
26373 printf %s "checking for good max_align_t... " >&6; }
26374 if test ${gl_cv_type_max_align_t+y}
26376 printf %s "(cached) " >&6
26378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26379 /* end confdefs.h. */
26380 #include <stddef.h>
26381 unsigned int s = sizeof (max_align_t);
26382 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
26383 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
26384 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
26395 if ac_fn_c_try_compile "$LINENO"
26397 gl_cv_type_max_align_t=yes
26399 gl_cv_type_max_align_t=no
26401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
26405 printf "%s\n" "$gl_cv_type_max_align_t" >&6; }
26406 if test $gl_cv_type_max_align_t = no; then
26411 if test $gt_cv_c_wchar_t = no; then
26416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26417 printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; }
26418 if test ${gl_cv_decl_null_works+y}
26420 printf %s "(cached) " >&6
26422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26423 /* end confdefs.h. */
26424 #include <stddef.h>
26425 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26435 if ac_fn_c_try_compile "$LINENO"
26437 gl_cv_decl_null_works=yes
26439 gl_cv_decl_null_works=no
26441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26444 printf "%s\n" "$gl_cv_decl_null_works" >&6; }
26445 if test $gl_cv_decl_null_works = no; then
26451 if test -n "$STDDEF_H"; then
26452 GL_GENERATE_STDDEF_H_TRUE=
26453 GL_GENERATE_STDDEF_H_FALSE='#'
26455 GL_GENERATE_STDDEF_H_TRUE='#'
26456 GL_GENERATE_STDDEF_H_FALSE=
26459 if test -n "$STDDEF_H"; then
26468 if test $gl_cv_have_include_next = yes; then
26469 gl_cv_next_stddef_h='<'stddef.h'>'
26471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26472 printf %s "checking absolute name of <stddef.h>... " >&6; }
26473 if test ${gl_cv_next_stddef_h+y}
26475 printf %s "(cached) " >&6
26480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26481 /* end confdefs.h. */
26482 #include <stddef.h>
26485 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26486 *) gl_absname_cpp="$ac_cpp" ;;
26491 gl_dirsep_regex='[/\\]'
26494 gl_dirsep_regex='\/'
26497 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26498 gl_header_literal_regex=`echo 'stddef.h' \
26499 | sed -e "$gl_make_literal_regex_sed"`
26500 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26501 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26507 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26508 sed -n "$gl_absolute_header_sed"`
26510 gl_header=$gl_cv_absolute_stddef_h
26511 gl_cv_next_stddef_h='"'$gl_header'"'
26515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26516 printf "%s\n" "$gl_cv_next_stddef_h" >&6; }
26518 NEXT_STDDEF_H=$gl_cv_next_stddef_h
26520 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26521 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26522 gl_next_as_first_directive='<'stddef.h'>'
26524 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26525 gl_next_as_first_directive=$gl_cv_next_stddef_h
26527 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
26537 printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
26548 if test $gl_cv_have_include_next = yes; then
26549 gl_cv_next_stdio_h='<'stdio.h'>'
26551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26552 printf %s "checking absolute name of <stdio.h>... " >&6; }
26553 if test ${gl_cv_next_stdio_h+y}
26555 printf %s "(cached) " >&6
26560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26561 /* end confdefs.h. */
26565 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26566 *) gl_absname_cpp="$ac_cpp" ;;
26571 gl_dirsep_regex='[/\\]'
26574 gl_dirsep_regex='\/'
26577 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26578 gl_header_literal_regex=`echo 'stdio.h' \
26579 | sed -e "$gl_make_literal_regex_sed"`
26580 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26581 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26587 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26588 sed -n "$gl_absolute_header_sed"`
26590 gl_header=$gl_cv_absolute_stdio_h
26591 gl_cv_next_stdio_h='"'$gl_header'"'
26595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26596 printf "%s\n" "$gl_cv_next_stdio_h" >&6; }
26598 NEXT_STDIO_H=$gl_cv_next_stdio_h
26600 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26601 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26602 gl_next_as_first_directive='<'stdio.h'>'
26604 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26605 gl_next_as_first_directive=$gl_cv_next_stdio_h
26607 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
26613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
26614 printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; }
26615 if test ${gl_cv_func_printf_attribute_flavor+y}
26617 printf %s "(cached) " >&6
26619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26620 /* end confdefs.h. */
26622 #define __STDC_FORMAT_MACROS 1
26624 #include <inttypes.h>
26625 /* For non-mingw systems, compilation will trivially succeed.
26626 For mingw, compilation will succeed for older mingw (system
26627 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
26628 #if (defined _WIN32 && ! defined __CYGWIN__) && \
26629 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
26630 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
26641 if ac_fn_c_try_compile "$LINENO"
26643 gl_cv_func_printf_attribute_flavor=system
26645 gl_cv_func_printf_attribute_flavor=gnu
26647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
26650 printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; }
26651 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
26653 printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
26660 printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h
26666 printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h
26705 if test $gl_cv_have_include_next = yes; then
26706 gl_cv_next_stdlib_h='<'stdlib.h'>'
26708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26709 printf %s "checking absolute name of <stdlib.h>... " >&6; }
26710 if test ${gl_cv_next_stdlib_h+y}
26712 printf %s "(cached) " >&6
26717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26718 /* end confdefs.h. */
26719 #include <stdlib.h>
26722 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26723 *) gl_absname_cpp="$ac_cpp" ;;
26728 gl_dirsep_regex='[/\\]'
26731 gl_dirsep_regex='\/'
26734 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26735 gl_header_literal_regex=`echo 'stdlib.h' \
26736 | sed -e "$gl_make_literal_regex_sed"`
26737 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26738 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26744 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26745 sed -n "$gl_absolute_header_sed"`
26747 gl_header=$gl_cv_absolute_stdlib_h
26748 gl_cv_next_stdlib_h='"'$gl_header'"'
26752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26753 printf "%s\n" "$gl_cv_next_stdlib_h" >&6; }
26755 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
26757 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26758 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26759 gl_next_as_first_directive='<'stdlib.h'>'
26761 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26762 gl_next_as_first_directive=$gl_cv_next_stdlib_h
26764 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
26781 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
26783 printf %s "checking for working strerror function... " >&6; }
26784 if test ${gl_cv_func_working_strerror+y}
26786 printf %s "(cached) " >&6
26788 if test "$cross_compiling" = yes
26791 # Guess yes on glibc systems.
26792 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
26793 # Guess yes on musl systems.
26794 *-musl*) gl_cv_func_working_strerror="guessing yes" ;;
26795 # If we don't know, obey --enable-cross-guesses.
26796 *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
26800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26801 /* end confdefs.h. */
26802 #include <string.h>
26807 if (!*strerror (-2)) return 1;
26812 if ac_fn_c_try_run "$LINENO"
26814 gl_cv_func_working_strerror=yes
26816 gl_cv_func_working_strerror=no
26818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26819 conftest.$ac_objext conftest.beam conftest.$ac_ext
26824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
26825 printf "%s\n" "$gl_cv_func_working_strerror" >&6; }
26826 case "$gl_cv_func_working_strerror" in
26837 if test $REPLACE_STRERROR = 1; then
26846 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
26851 printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h
26865 printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
26871 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
26880 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
26886 if test $ac_cv_header_sys_socket_h != yes; then
26887 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26888 if test "x$ac_cv_header_winsock2_h" = xyes
26890 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
26895 if test "$ac_cv_header_winsock2_h" = yes; then
26897 UNISTD_H_HAVE_WINSOCK2_H=1
26898 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
26914 if test $ac_cv_have_decl_strndup = no; then
26915 HAVE_DECL_STRNDUP=0
26918 if test $ac_cv_func_strndup = yes; then
26920 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
26921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
26922 printf %s "checking for working strndup... " >&6; }
26923 if test ${gl_cv_func_strndup_works+y}
26925 printf %s "(cached) " >&6
26927 if test "$cross_compiling" = yes
26931 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
26932 *) gl_cv_func_strndup_works="guessing yes";;
26936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26937 /* end confdefs.h. */
26939 #include <string.h>
26940 #include <stdlib.h>
26945 #if !HAVE_DECL_STRNDUP
26950 char *strndup (const char *, size_t);
26954 s = strndup ("some longer string", 15);
26956 s = strndup ("shorter string", 13);
26957 result = s[13] != '\0';
26964 if ac_fn_c_try_run "$LINENO"
26966 gl_cv_func_strndup_works=yes
26968 gl_cv_func_strndup_works=no
26970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26971 conftest.$ac_objext conftest.beam conftest.$ac_ext
26975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
26976 printf "%s\n" "$gl_cv_func_strndup_works" >&6; }
26977 case $gl_cv_func_strndup_works in
26978 *no) REPLACE_STRNDUP=1 ;;
26984 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
26993 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
27007 printf "%s\n" "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
27017 if test $ac_cv_have_decl_strnlen = no; then
27018 HAVE_DECL_STRNLEN=0
27021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
27022 printf %s "checking for working strnlen... " >&6; }
27023 if test ${ac_cv_func_strnlen_working+y}
27025 printf %s "(cached) " >&6
27027 if test "$cross_compiling" = yes
27029 # Guess no on AIX systems, yes otherwise.
27031 aix*) ac_cv_func_strnlen_working=no;;
27032 *) ac_cv_func_strnlen_working=yes;;
27035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27036 /* end confdefs.h. */
27037 $ac_includes_default
27043 #define S_LEN (sizeof S - 1)
27045 /* At least one implementation is buggy: that of AIX 4.3 would
27046 give strnlen (S, 1) == 3. */
27049 for (i = 0; i < S_LEN + 1; ++i)
27051 int expected = i <= S_LEN ? i : S_LEN;
27052 if (strnlen (S, i) != expected)
27061 if ac_fn_c_try_run "$LINENO"
27063 ac_cv_func_strnlen_working=yes
27065 ac_cv_func_strnlen_working=no
27067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27068 conftest.$ac_objext conftest.beam conftest.$ac_ext
27072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
27073 printf "%s\n" "$ac_cv_func_strnlen_working" >&6; }
27074 test $ac_cv_func_strnlen_working = no && :
27077 if test $ac_cv_func_strnlen_working = no; then
27082 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
27091 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
27106 printf "%s\n" "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
27116 if test $ac_cv_have_decl_strsignal = no; then
27117 HAVE_DECL_STRSIGNAL=0
27120 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
27121 if test "x$ac_cv_func_strsignal" = xyes
27123 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
27127 if test $ac_cv_func_strsignal = yes; then
27129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
27130 printf %s "checking whether strsignal always returns a string... " >&6; }
27131 if test ${gl_cv_func_working_strsignal+y}
27133 printf %s "(cached) " >&6
27135 if test "$cross_compiling" = yes
27138 solaris* | aix*) gl_cv_func_working_strsignal=no;;
27139 *) gl_cv_func_working_strsignal="guessing yes";;
27142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27143 /* end confdefs.h. */
27144 #include <string.h>
27145 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
27151 char *s = strsignal (-1);
27152 if (s == (char *) 0)
27154 if (s == (char *) -1)
27162 if ac_fn_c_try_run "$LINENO"
27164 gl_cv_func_working_strsignal=yes
27166 gl_cv_func_working_strsignal=no
27168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27169 conftest.$ac_objext conftest.beam conftest.$ac_ext
27173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
27174 printf "%s\n" "$gl_cv_func_working_strsignal" >&6; }
27175 if test "$gl_cv_func_working_strsignal" = no; then
27176 REPLACE_STRSIGNAL=1
27182 if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
27191 gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
27195 ac_fn_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
27196 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27197 if test "x$ac_cv_have_decl_sys_siglist" = xyes
27203 printf "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h
27205 ac_fn_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
27206 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27207 if test "x$ac_cv_have_decl__sys_siglist" = xyes
27213 printf "%s\n" "#define HAVE_DECL__SYS_SIGLIST $ac_have_decl" >>confdefs.h
27228 printf "%s\n" "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
27243 if test $gl_cv_have_include_next = yes; then
27244 gl_cv_next_sys_random_h='<'sys/random.h'>'
27246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/random.h>" >&5
27247 printf %s "checking absolute name of <sys/random.h>... " >&6; }
27248 if test ${gl_cv_next_sys_random_h+y}
27250 printf %s "(cached) " >&6
27253 if test $ac_cv_header_sys_random_h = yes; then
27258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27259 /* end confdefs.h. */
27260 #include <sys/random.h>
27263 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27264 *) gl_absname_cpp="$ac_cpp" ;;
27269 gl_dirsep_regex='[/\\]'
27272 gl_dirsep_regex='\/'
27275 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27276 gl_header_literal_regex=`echo 'sys/random.h' \
27277 | sed -e "$gl_make_literal_regex_sed"`
27278 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27279 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27285 gl_cv_absolute_sys_random_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27286 sed -n "$gl_absolute_header_sed"`
27288 gl_header=$gl_cv_absolute_sys_random_h
27289 gl_cv_next_sys_random_h='"'$gl_header'"'
27291 gl_cv_next_sys_random_h='<'sys/random.h'>'
27296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5
27297 printf "%s\n" "$gl_cv_next_sys_random_h" >&6; }
27299 NEXT_SYS_RANDOM_H=$gl_cv_next_sys_random_h
27301 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27302 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27303 gl_next_as_first_directive='<'sys/random.h'>'
27305 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27306 gl_next_as_first_directive=$gl_cv_next_sys_random_h
27308 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H=$gl_next_as_first_directive
27313 if test $ac_cv_header_sys_random_h = yes; then
27314 HAVE_SYS_RANDOM_H=1
27316 HAVE_SYS_RANDOM_H=0
27321 if test $ac_cv_header_sys_random_h = yes; then
27322 UNISTD_H_HAVE_SYS_RANDOM_H=1
27346 if test $gl_cv_have_include_next = yes; then
27347 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27350 printf %s "checking absolute name of <sys/stat.h>... " >&6; }
27351 if test ${gl_cv_next_sys_stat_h+y}
27353 printf %s "(cached) " >&6
27356 if test $ac_cv_header_sys_stat_h = yes; then
27361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27362 /* end confdefs.h. */
27363 #include <sys/stat.h>
27366 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27367 *) gl_absname_cpp="$ac_cpp" ;;
27372 gl_dirsep_regex='[/\\]'
27375 gl_dirsep_regex='\/'
27378 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27379 gl_header_literal_regex=`echo 'sys/stat.h' \
27380 | sed -e "$gl_make_literal_regex_sed"`
27381 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27382 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27388 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27389 sed -n "$gl_absolute_header_sed"`
27391 gl_header=$gl_cv_absolute_sys_stat_h
27392 gl_cv_next_sys_stat_h='"'$gl_header'"'
27394 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
27400 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
27402 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
27404 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27405 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27406 gl_next_as_first_directive='<'sys/stat.h'>'
27408 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27409 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
27411 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
27420 WINDOWS_STAT_TIMESPEC=0
27429 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27430 #include <sys/stat.h>
27432 if test "x$ac_cv_type_nlink_t" = xyes
27437 printf "%s\n" "#define nlink_t int" >>confdefs.h
27467 if test $gl_cv_have_include_next = yes; then
27468 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
27470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
27471 printf %s "checking absolute name of <sys/wait.h>... " >&6; }
27472 if test ${gl_cv_next_sys_wait_h+y}
27474 printf %s "(cached) " >&6
27477 if test $ac_cv_header_sys_wait_h = yes; then
27482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27483 /* end confdefs.h. */
27484 #include <sys/wait.h>
27487 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27488 *) gl_absname_cpp="$ac_cpp" ;;
27493 gl_dirsep_regex='[/\\]'
27496 gl_dirsep_regex='\/'
27499 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27500 gl_header_literal_regex=`echo 'sys/wait.h' \
27501 | sed -e "$gl_make_literal_regex_sed"`
27502 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27503 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27509 gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27510 sed -n "$gl_absolute_header_sed"`
27512 gl_header=$gl_cv_absolute_sys_wait_h
27513 gl_cv_next_sys_wait_h='"'$gl_header'"'
27515 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
27520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
27521 printf "%s\n" "$gl_cv_next_sys_wait_h" >&6; }
27523 NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
27525 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27526 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27527 gl_next_as_first_directive='<'sys/wait.h'>'
27529 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27530 gl_next_as_first_directive=$gl_cv_next_sys_wait_h
27532 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
27552 printf "%s\n" "#define GNULIB_TEMPNAME 1" >>confdefs.h
27574 if test $gl_cv_have_include_next = yes; then
27575 gl_cv_next_unistd_h='<'unistd.h'>'
27577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27578 printf %s "checking absolute name of <unistd.h>... " >&6; }
27579 if test ${gl_cv_next_unistd_h+y}
27581 printf %s "(cached) " >&6
27584 if test $ac_cv_header_unistd_h = yes; then
27589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27590 /* end confdefs.h. */
27591 #include <unistd.h>
27594 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27595 *) gl_absname_cpp="$ac_cpp" ;;
27600 gl_dirsep_regex='[/\\]'
27603 gl_dirsep_regex='\/'
27606 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27607 gl_header_literal_regex=`echo 'unistd.h' \
27608 | sed -e "$gl_make_literal_regex_sed"`
27609 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27610 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27616 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27617 sed -n "$gl_absolute_header_sed"`
27619 gl_header=$gl_cv_absolute_unistd_h
27620 gl_cv_next_unistd_h='"'$gl_header'"'
27622 gl_cv_next_unistd_h='<'unistd.h'>'
27627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27628 printf "%s\n" "$gl_cv_next_unistd_h" >&6; }
27630 NEXT_UNISTD_H=$gl_cv_next_unistd_h
27632 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27633 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27634 gl_next_as_first_directive='<'unistd.h'>'
27636 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27637 gl_next_as_first_directive=$gl_cv_next_unistd_h
27639 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
27644 if test $ac_cv_header_unistd_h = yes; then
27664 if test $ac_cv_have_decl_unsetenv = no; then
27665 HAVE_DECL_UNSETENV=0
27667 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27668 if test "x$ac_cv_func_unsetenv" = xyes
27670 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
27674 if test $ac_cv_func_unsetenv = no; then
27678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27679 printf %s "checking for unsetenv() return type... " >&6; }
27680 if test ${gt_cv_func_unsetenv_ret+y}
27682 printf %s "(cached) " >&6
27684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27685 /* end confdefs.h. */
27688 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27689 #include <stdlib.h>
27694 int unsetenv (const char *name);
27704 if ac_fn_c_try_compile "$LINENO"
27706 gt_cv_func_unsetenv_ret='int'
27708 gt_cv_func_unsetenv_ret='void'
27710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27713 printf "%s\n" "$gt_cv_func_unsetenv_ret" >&6; }
27714 if test $gt_cv_func_unsetenv_ret = 'void'; then
27716 printf "%s\n" "#define VOID_UNSETENV 1" >>confdefs.h
27721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27722 printf %s "checking whether unsetenv obeys POSIX... " >&6; }
27723 if test ${gl_cv_func_unsetenv_works+y}
27725 printf %s "(cached) " >&6
27727 if test "$cross_compiling" = yes
27730 # Guess yes on glibc systems.
27731 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
27732 # If we don't know, obey --enable-cross-guesses.
27733 *) gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;;
27737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27738 /* end confdefs.h. */
27740 #include <stdlib.h>
27742 extern char **environ;
27751 char entry1[] = "a=1";
27752 char entry2[] = "b=2";
27753 char *env[] = { entry1, entry2, NULL };
27754 if (putenv ((char *) "a=1")) return 1;
27755 if (putenv (entry2)) return 2;
27758 if (getenv ("a")) return 3;
27759 if (!unsetenv ("") || errno != EINVAL) return 4;
27762 if (!getenv ("a")) return 5;
27765 if (getenv ("a")) return 6;
27771 if ac_fn_c_try_run "$LINENO"
27773 gl_cv_func_unsetenv_works=yes
27775 gl_cv_func_unsetenv_works=no
27777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27778 conftest.$ac_objext conftest.beam conftest.$ac_ext
27783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27784 printf "%s\n" "$gl_cv_func_unsetenv_works" >&6; }
27785 case "$gl_cv_func_unsetenv_works" in
27793 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
27802 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
27820 printf "%s\n" "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
27827 if test $ac_cv_func_vasnprintf = no; then
27838 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
27848 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
27858 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
27868 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
27870 if test $ac_cv_func_vasnprintf = yes; then
27872 printf "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h
27884 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
27885 if test "x$ac_cv_type_ptrdiff_t" = xyes
27890 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
27904 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
27905 if test "x$ac_cv_func_vasprintf" = xyes
27907 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
27911 if test $ac_cv_func_vasprintf = no; then
27921 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
27931 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
27934 if test $ac_cv_func_vasprintf = yes; then
27935 REPLACE_VASPRINTF=1
27960 printf "%s\n" "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
27966 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
27970 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
27976 mingw*) HAVE_WAITPID=0 ;;
27979 if test $HAVE_WAITPID = 0; then
27988 gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
28002 printf "%s\n" "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
28018 if test $gl_cv_have_include_next = yes; then
28019 gl_cv_next_wchar_h='<'wchar.h'>'
28021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
28022 printf %s "checking absolute name of <wchar.h>... " >&6; }
28023 if test ${gl_cv_next_wchar_h+y}
28025 printf %s "(cached) " >&6
28028 if test $ac_cv_header_wchar_h = yes; then
28033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28034 /* end confdefs.h. */
28038 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28039 *) gl_absname_cpp="$ac_cpp" ;;
28044 gl_dirsep_regex='[/\\]'
28047 gl_dirsep_regex='\/'
28050 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28051 gl_header_literal_regex=`echo 'wchar.h' \
28052 | sed -e "$gl_make_literal_regex_sed"`
28053 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28054 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28060 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28061 sed -n "$gl_absolute_header_sed"`
28063 gl_header=$gl_cv_absolute_wchar_h
28064 gl_cv_next_wchar_h='"'$gl_header'"'
28066 gl_cv_next_wchar_h='<'wchar.h'>'
28071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
28072 printf "%s\n" "$gl_cv_next_wchar_h" >&6; }
28074 NEXT_WCHAR_H=$gl_cv_next_wchar_h
28076 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28077 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28078 gl_next_as_first_directive='<'wchar.h'>'
28080 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28081 gl_next_as_first_directive=$gl_cv_next_wchar_h
28083 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
28088 if test $ac_cv_header_wchar_h = yes; then
28098 if test $gt_cv_c_wint_t = yes; then
28124 gl_LIBOBJS="$gl_LIBOBJS windows-mutex.$ac_objext"
28139 gl_LIBOBJS="$gl_LIBOBJS windows-once.$ac_objext"
28154 gl_LIBOBJS="$gl_LIBOBJS windows-recmutex.$ac_objext"
28169 gl_LIBOBJS="$gl_LIBOBJS windows-rwlock.$ac_objext"
28184 gl_LIBOBJS="$gl_LIBOBJS windows-tls.$ac_objext"
28192 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
28199 if test $REPLACE_WRITE = 1; then
28208 gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
28223 printf "%s\n" "#define GNULIB_TEST_WRITE 1" >>confdefs.h
28230 printf "%s\n" "#define GNULIB_XALLOC 1" >>confdefs.h
28235 printf "%s\n" "#define GNULIB_XALLOC_DIE 1" >>confdefs.h
28240 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
28241 if test "x$ac_cv_header_stdint_h" = xyes
28243 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
28256 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
28258 # End of code from modules
28280 gl_source_base='tests'
28281 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
28283 gl_module_indicator_condition=$gltests_WITNESS
28294 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
28295 if test "x$ac_cv_header_fcntl_h" = xyes
28297 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
28301 ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
28302 if test "x$ac_cv_func_clearenv" = xyes
28304 printf "%s\n" "#define HAVE_CLEARENV 1" >>confdefs.h
28309 # Checks for structures and compiler characteristics.
28310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28311 printf %s "checking for an ANSI C-conforming const... " >&6; }
28312 if test ${ac_cv_c_const+y}
28314 printf %s "(cached) " >&6
28316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28317 /* end confdefs.h. */
28323 #ifndef __cplusplus
28324 /* Ultrix mips cc rejects this sort of thing. */
28325 typedef int charset[2];
28326 const charset cs = { 0, 0 };
28327 /* SunOS 4.1.1 cc rejects this. */
28328 char const *const *pcpcc;
28330 /* NEC SVR4.0.2 mips cc rejects this. */
28331 struct point {int x, y;};
28332 static struct point const zero = {0,0};
28333 /* IBM XL C 1.02.0.0 rejects this.
28334 It does not let you subtract one const X* pointer from another in
28335 an arm of an if-expression whose if-part is not a constant
28337 const char *g = "string";
28338 pcpcc = &g + (g ? g-g : 0);
28339 /* HPUX 7.0 cc rejects these. */
28341 ppc = (char**) pcpcc;
28342 pcpcc = (char const *const *) ppc;
28343 { /* SCO 3.2v4 cc rejects this sort of thing. */
28346 char const *s = 0 ? (char *) 0 : (char const *) 0;
28351 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28352 int x[] = {25, 17};
28353 const int *foo = &x[0];
28356 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28357 typedef const int *iptr;
28361 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
28362 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28363 struct s { int j; const int *ap[3]; } bx;
28364 struct s *b = &bx; b->j = 5;
28366 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28367 const int foo = 10;
28368 if (!foo) return 0;
28370 return !cs[0] && !zero.x;
28377 if ac_fn_c_try_compile "$LINENO"
28383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28386 printf "%s\n" "$ac_cv_c_const" >&6; }
28387 if test $ac_cv_c_const = no; then
28389 printf "%s\n" "#define const /**/" >>confdefs.h
28394 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
28396 if test "x$ac_cv_type_pid_t" = xyes
28400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28401 /* end confdefs.h. */
28403 #if defined _WIN64 && !defined __CYGWIN__
28416 if ac_fn_c_try_compile "$LINENO"
28420 ac_pid_type='__int64'
28422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28424 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
28430 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28431 if test "x$ac_cv_type_size_t" = xyes
28436 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
28441 # We must have fork(2) support.
28447 if test "x$ac_cv_func_fork" = xyes; then
28448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
28449 printf %s "checking for working fork... " >&6; }
28450 if test ${ac_cv_func_fork_works+y}
28452 printf %s "(cached) " >&6
28454 if test "$cross_compiling" = yes
28456 ac_cv_func_fork_works=cross
28458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28459 /* end confdefs.h. */
28460 $ac_includes_default
28465 /* By Ruediger Kuhlmann. */
28466 return fork () < 0;
28472 if ac_fn_c_try_run "$LINENO"
28474 ac_cv_func_fork_works=yes
28476 ac_cv_func_fork_works=no
28478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28479 conftest.$ac_objext conftest.beam conftest.$ac_ext
28483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
28484 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
28487 ac_cv_func_fork_works=$ac_cv_func_fork
28489 if test "x$ac_cv_func_fork_works" = xcross; then
28491 *-*-amigaos* | *-*-msdosdjgpp*)
28492 # Override, as these systems have only a dummy fork() stub
28493 ac_cv_func_fork_works=no
28496 ac_cv_func_fork_works=yes
28499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
28500 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
28502 ac_cv_func_vfork_works=$ac_cv_func_vfork
28503 if test "x$ac_cv_func_vfork" = xyes; then
28504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
28505 printf %s "checking for working vfork... " >&6; }
28506 if test ${ac_cv_func_vfork_works+y}
28508 printf %s "(cached) " >&6
28510 if test "$cross_compiling" = yes
28512 ac_cv_func_vfork_works=cross
28514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28515 /* end confdefs.h. */
28516 /* Thanks to Paul Eggert for this test. */
28517 $ac_includes_default
28518 #include <signal.h>
28519 #include <sys/wait.h>
28520 #ifdef HAVE_VFORK_H
28521 # include <vfork.h>
28525 do_nothing (int sig)
28530 /* On some sparc systems, changes by the child to local and incoming
28531 argument registers are propagated back to the parent. The compiler
28532 is told about this with #include <vfork.h>, but some compilers
28533 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
28534 static variable whose address is put into a register that is
28535 clobbered by the vfork. */
28537 sparc_address_test (int arg)
28539 static pid_t child;
28557 pid_t parent = getpid ();
28560 sparc_address_test (0);
28562 /* On Solaris 2.4, changes by the child to the signal handler
28563 also munge signal handlers in the parent. To detect this,
28564 start by putting the parent's handler in a known state. */
28565 signal (SIGTERM, SIG_DFL);
28570 /* Here is another test for sparc vfork register problems. This
28571 test uses lots of local variables, at least as many local
28572 variables as main has allocated so far including compiler
28573 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
28574 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
28575 reuse the register of parent for one of the local variables,
28576 since it will think that parent can't possibly be used any more
28577 in this routine. Assigning to the local variable will thus
28578 munge parent in the parent process. */
28580 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
28581 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
28582 /* Convince the compiler that p..p7 are live; otherwise, it might
28583 use the same hardware register for all 8 local variables. */
28584 if (p != p1 || p != p2 || p != p3 || p != p4
28585 || p != p5 || p != p6 || p != p7)
28588 /* Alter the child's signal handler. */
28589 if (signal (SIGTERM, do_nothing) != SIG_DFL)
28592 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
28593 from child file descriptors. If the child closes a descriptor
28594 before it execs or exits, this munges the parent's descriptor
28595 as well. Test for this by closing stdout in the child. */
28596 _exit(close(fileno(stdout)) != 0);
28601 while (wait(&status) != child)
28604 /* Was there some problem with vforking? */
28607 /* Did the child munge the parent's signal handler? */
28608 || signal (SIGTERM, SIG_DFL) != SIG_DFL
28610 /* Did the child fail? (This shouldn't happen.) */
28613 /* Did the vfork/compiler bug occur? */
28614 || parent != getpid()
28616 /* Did the file descriptor bug occur? */
28617 || fstat(fileno(stdout), &st) != 0
28622 if ac_fn_c_try_run "$LINENO"
28624 ac_cv_func_vfork_works=yes
28626 ac_cv_func_vfork_works=no
28628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28629 conftest.$ac_objext conftest.beam conftest.$ac_ext
28633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
28634 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
28637 if test "x$ac_cv_func_fork_works" = xcross; then
28638 ac_cv_func_vfork_works=$ac_cv_func_vfork
28639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
28640 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
28643 if test "x$ac_cv_func_vfork_works" = xyes; then
28645 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
28649 printf "%s\n" "#define vfork fork" >>confdefs.h
28652 if test "x$ac_cv_func_fork_works" = xyes; then
28654 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
28658 if test "x$ac_cv_func_fork_works" != xyes; then
28659 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28660 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28661 as_fn_error $? "cannot use libpipeline on systems without fork
28662 See \`config.log' for more details" "$LINENO" 5; }
28665 # Check for socketpair(2) as fast replacement for pipe(2).
28666 # Check whether --enable-socketpair-pipe was given.
28667 if test ${enable_socketpair_pipe+y}
28669 enableval=$enable_socketpair_pipe; if test "$enableval" = "yes"
28671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
28672 printf %s "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
28673 if test ${pipeline_cv_socketpair_pipe+y}
28675 printf %s "(cached) " >&6
28678 if test "$cross_compiling" = yes
28680 pipeline_cv_socketpair_pipe=no
28682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28683 /* end confdefs.h. */
28686 #include <netinet/in.h>
28687 #include <signal.h>
28688 #include <sys/socket.h>
28689 #include <sys/types.h>
28690 #include <sys/wait.h>
28691 #include <unistd.h>
28699 static void sigpipe(int sig)
28706 const char test[] = "May use socketpair(2) instead of pipe(2)\n";
28710 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
28712 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
28714 if ((pid = fork()) < 0)
28719 if (read(sfd[0],buf,sizeof(buf)) < 0)
28723 write(sfd[1],test,sizeof(test) - 1);
28727 signal(SIGPIPE, sigpipe);
28728 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
28730 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
28733 write(sfd[1],test,sizeof(test) - 1);
28737 if ac_fn_c_try_run "$LINENO"
28739 pipeline_cv_socketpair_pipe=yes
28741 pipeline_cv_socketpair_pipe=no
28743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28744 conftest.$ac_objext conftest.beam conftest.$ac_ext
28750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
28751 printf "%s\n" "$pipeline_cv_socketpair_pipe" >&6; }
28752 if test "$pipeline_cv_socketpair_pipe" = yes; then
28754 printf "%s\n" "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
28758 if test "$pipeline_cv_socketpair_pipe" = yes; then
28759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
28760 printf %s "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
28761 if test ${pipeline_cv_socketpair_mode+y}
28763 printf %s "(cached) " >&6
28766 if test "$cross_compiling" = yes
28768 pipeline_cv_socketpair_mode=no
28770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28771 /* end confdefs.h. */
28774 #include <netinet/in.h>
28775 #include <sys/stat.h>
28776 #include <sys/socket.h>
28777 #include <sys/types.h>
28778 #include <unistd.h>
28790 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
28792 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
28794 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
28796 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
28798 if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
28800 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
28802 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
28807 if ac_fn_c_try_run "$LINENO"
28809 pipeline_cv_socketpair_mode=yes
28811 pipeline_cv_socketpair_mode=no
28813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28814 conftest.$ac_objext conftest.beam conftest.$ac_ext
28820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
28821 printf "%s\n" "$pipeline_cv_socketpair_mode" >&6; }
28822 if test "$pipeline_cv_socketpair_mode" = yes; then
28824 printf "%s\n" "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
28834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
28835 printf "%s\n" "$as_me: default CC = \"$CC\"" >&6;}
28836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
28837 printf "%s\n" "$as_me: default CPP = \"$CPP\"" >&6;}
28838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
28839 printf "%s\n" "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
28840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
28841 printf "%s\n" "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
28842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
28843 printf "%s\n" "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
28844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
28845 printf "%s\n" "$as_me: default LIBS = \"$LIBS\"" >&6;}
28847 ac_config_files="$ac_config_files Makefile gl/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
28849 cat >confcache <<\_ACEOF
28850 # This file is a shell script that caches the results of configure
28851 # tests run on this system so they can be shared between configure
28852 # scripts and configure runs, see configure's option --config-cache.
28853 # It is not useful on other systems. If it contains results you don't
28854 # want to keep, you may remove or edit it.
28856 # config.status only pays attention to the cache file if you give it
28857 # the --recheck option to rerun configure.
28859 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28860 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28861 # following values.
28865 # The following way of writing the cache mishandles newlines in values,
28866 # but we know of no workaround that is simple, portable, and efficient.
28867 # So, we kill variables containing newlines.
28868 # Ultrix sh set writes to stderr and can't be redirected directly,
28869 # and sets the high bit in the cache file unless we assign to the vars.
28871 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28872 eval ac_val=\$$ac_var
28876 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28877 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28880 _ | IFS | as_nl) ;; #(
28881 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28882 *) { eval $ac_var=; unset $ac_var;} ;;
28888 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28889 *${as_nl}ac_space=\ *)
28890 # `set' does not quote correctly, so add quotes: double-quote
28891 # substitution turns \\\\ into \\, and sed turns \\ into \.
28894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28897 # `set' quotes correctly as required by POSIX, so do not add quotes.
28898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28907 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
28909 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28911 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28912 if test -w "$cache_file"; then
28913 if test "x$cache_file" != "x/dev/null"; then
28914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28915 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
28916 if test ! -f "$cache_file" || test -h "$cache_file"; then
28917 cat confcache >"$cache_file"
28919 case $cache_file in #(
28921 mv -f confcache "$cache_file"$$ &&
28922 mv -f "$cache_file"$$ "$cache_file" ;; #(
28924 mv -f confcache "$cache_file" ;;
28929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28930 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
28935 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28936 # Let make expand exec_prefix.
28937 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28939 DEFS=-DHAVE_CONFIG_H
28944 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28945 # 1. Remove the extension, and $U if already installed.
28946 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28947 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
28948 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28949 # will be set to the directory where LIBOBJS objects are built.
28950 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28951 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28953 LIBOBJS=$ac_libobjs
28955 LTLIBOBJS=$ac_ltlibobjs
28958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28959 printf %s "checking that generated files are newer than configure... " >&6; }
28960 if test -n "$am_sleep_pid"; then
28961 # Hide warnings about reused PIDs.
28962 wait $am_sleep_pid 2>/dev/null
28964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
28965 printf "%s\n" "done" >&6; }
28966 if test -n "$EXEEXT"; then
28968 am__EXEEXT_FALSE='#'
28970 am__EXEEXT_TRUE='#'
28974 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28975 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28978 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28979 as_fn_error $? "conditional \"AMDEP\" was never defined.
28980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28982 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28983 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28986 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
28987 as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
28988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28990 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28991 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
28992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28994 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28995 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28998 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28999 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29002 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
29003 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
29004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29006 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
29007 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
29008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29010 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
29011 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
29012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29014 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29015 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
29016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29018 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29019 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29022 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29023 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
29024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29026 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29027 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29030 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29031 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29038 if test -n "$gl_LIBOBJS"; then
29039 # Remove the extension.
29040 sed_drop_objext='s/\.o$//;s/\.obj$//'
29041 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29042 gl_libobjs="$gl_libobjs $i.$ac_objext"
29043 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
29046 gl_LIBOBJS=$gl_libobjs
29048 gl_LTLIBOBJS=$gl_ltlibobjs
29054 if test -n "$gltests_LIBOBJS"; then
29055 # Remove the extension.
29056 sed_drop_objext='s/\.o$//;s/\.obj$//'
29057 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29058 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
29059 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
29062 gltests_LIBOBJS=$gltests_libobjs
29064 gltests_LTLIBOBJS=$gltests_ltlibobjs
29068 : "${CONFIG_STATUS=./config.status}"
29070 ac_clean_files_save=$ac_clean_files
29071 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29073 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
29075 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29077 # Generated by $as_me.
29078 # Run this file to recreate the current configuration.
29079 # Compiler output produced by configure, useful for debugging
29080 # configure, is in config.log if it exists.
29083 ac_cs_recheck=false
29086 SHELL=\${CONFIG_SHELL-$SHELL}
29089 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29090 ## -------------------- ##
29091 ## M4sh Initialization. ##
29092 ## -------------------- ##
29094 # Be more Bourne compatible
29095 DUALCASE=1; export DUALCASE # for MKS sh
29097 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
29101 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29102 # is contrary to our usage. Disable this feature.
29103 alias -g '${1+"$@"}'='"$@"'
29104 setopt NO_GLOB_SUBST
29106 case `(set -o) 2>/dev/null` in #(
29116 # Reset variables that may have inherited troublesome values from
29119 # IFS needs to be set, to space, tab, and newline, in precisely that order.
29120 # (If _AS_PATH_WALK were called with IFS unset, it would have the
29121 # side effect of setting IFS to empty, thus disabling word splitting.)
29122 # Quoting is to prevent editors from complaining about space-tab.
29132 # Ensure predictable behavior from utilities with locale-dependent output.
29138 # We cannot yet rely on "unset" to work, but we need these variables
29139 # to be unset--not just set to an empty or harmless value--now, to
29140 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
29141 # also avoids known problems related to "unset" and subshell syntax
29142 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
29143 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
29144 do eval test \${$as_var+y} \
29145 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29148 # Ensure that fds 0, 1, and 2 are open.
29149 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
29150 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
29151 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
29153 # The user is always right.
29154 if ${PATH_SEPARATOR+false} :; then
29156 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29157 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29163 # Find who we are. Look in the path if we contain no directory separator.
29166 *[\\/]* ) as_myself=$0 ;;
29167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29168 for as_dir in $PATH
29171 case $as_dir in #(((
29174 *) as_dir=$as_dir/ ;;
29176 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
29182 # We did not find ourselves, most probably we were run as `sh COMMAND'
29183 # in which case we are not to be found in the path.
29184 if test "x$as_myself" = x; then
29187 if test ! -f "$as_myself"; then
29188 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29194 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29195 # ----------------------------------------
29196 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29197 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29198 # script with STATUS, using 1 if that was 0.
29201 as_status=$1; test $as_status -eq 0 && as_status=1
29203 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29206 printf "%s\n" "$as_me: error: $2" >&2
29207 as_fn_exit $as_status
29212 # as_fn_set_status STATUS
29213 # -----------------------
29214 # Set $? to STATUS, without forking.
29215 as_fn_set_status ()
29218 } # as_fn_set_status
29220 # as_fn_exit STATUS
29221 # -----------------
29222 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29226 as_fn_set_status $1
29232 # Portably unset VAR.
29235 { eval $1=; unset $1;}
29237 as_unset=as_fn_unset
29239 # as_fn_append VAR VALUE
29240 # ----------------------
29241 # Append the text in VALUE to the end of the definition contained in VAR. Take
29242 # advantage of any shell optimizations that allow amortized linear growth over
29243 # repeated appends, instead of the typical quadratic growth present in naive
29245 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
29247 eval 'as_fn_append ()
29258 # as_fn_arith ARG...
29259 # ------------------
29260 # Perform arithmetic evaluation on the ARGs, and store the result in the
29261 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29262 # must be portable across $(()) and expr.
29263 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
29265 eval 'as_fn_arith ()
29272 as_val=`expr "$@" || test $? -eq 1`
29277 if expr a : '\(a\)' >/dev/null 2>&1 &&
29278 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29284 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29285 as_basename=basename
29290 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29296 as_me=`$as_basename -- "$0" ||
29297 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29298 X"$0" : 'X\(//\)$' \| \
29299 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29300 printf "%s\n" X/"$0" |
29301 sed '/^.*\/\([^/][^/]*\)\/*$/{
29315 # Avoid depending upon Character Ranges.
29316 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29317 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29318 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29319 as_cr_digits='0123456789'
29320 as_cr_alnum=$as_cr_Letters$as_cr_digits
29323 # Determine whether it's possible to make 'echo' print without a newline.
29324 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
29325 # for compatibility with existing Makefiles.
29326 ECHO_C= ECHO_N= ECHO_T=
29327 case `echo -n x` in #(((((
29329 case `echo 'xy\c'` in
29330 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29332 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29339 # For backward compatibility with old third-party macros, we provide
29340 # the shell variables $as_echo and $as_echo_n. New code should use
29341 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
29342 as_echo='printf %s\n'
29343 as_echo_n='printf %s'
29345 rm -f conf$$ conf$$.exe conf$$.file
29346 if test -d conf$$.dir; then
29347 rm -f conf$$.dir/conf$$.file
29350 mkdir conf$$.dir 2>/dev/null
29352 if (echo >conf$$.file) 2>/dev/null; then
29353 if ln -s conf$$.file conf$$ 2>/dev/null; then
29355 # ... but there are two gotchas:
29356 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29357 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29358 # In both cases, we have to default to `cp -pR'.
29359 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29361 elif ln conf$$.file conf$$ 2>/dev/null; then
29369 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29370 rmdir conf$$.dir 2>/dev/null
29375 # Create "$as_dir" as a directory, including parents if necessary.
29380 -*) as_dir=./$as_dir;;
29382 test -d "$as_dir" || eval $as_mkdir_p || {
29386 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29387 *) as_qdir=$as_dir;;
29389 as_dirs="'$as_qdir' $as_dirs"
29390 as_dir=`$as_dirname -- "$as_dir" ||
29391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29392 X"$as_dir" : 'X\(//\)[^/]' \| \
29393 X"$as_dir" : 'X\(//\)$' \| \
29394 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29395 printf "%s\n" X"$as_dir" |
29396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29400 /^X\(\/\/\)[^/].*/{
29413 test -d "$as_dir" && break
29415 test -z "$as_dirs" || eval "mkdir $as_dirs"
29416 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29420 if mkdir -p . 2>/dev/null; then
29421 as_mkdir_p='mkdir -p "$as_dir"'
29423 test -d ./-p && rmdir ./-p
29428 # as_fn_executable_p FILE
29429 # -----------------------
29430 # Test if FILE is an executable regular file.
29431 as_fn_executable_p ()
29433 test -f "$1" && test -x "$1"
29434 } # as_fn_executable_p
29435 as_test_x='test -x'
29436 as_executable_p=as_fn_executable_p
29438 # Sed expression to map a string onto a valid CPP name.
29439 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29441 # Sed expression to map a string onto a valid variable name.
29442 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29446 ## ----------------------------------- ##
29447 ## Main body of $CONFIG_STATUS script. ##
29448 ## ----------------------------------- ##
29450 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29453 # Save the log message, to keep $0 and so on meaningful, and to
29454 # report actual input values of CONFIG_FILES etc. instead of their
29455 # values after options handling.
29457 This file was extended by libpipeline $as_me 1.5.4, which was
29458 generated by GNU Autoconf 2.71. Invocation command line was
29460 CONFIG_FILES = $CONFIG_FILES
29461 CONFIG_HEADERS = $CONFIG_HEADERS
29462 CONFIG_LINKS = $CONFIG_LINKS
29463 CONFIG_COMMANDS = $CONFIG_COMMANDS
29466 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29471 case $ac_config_files in *"
29472 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29475 case $ac_config_headers in *"
29476 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29481 # Files that config.status was made for.
29482 config_files="$ac_config_files"
29483 config_headers="$ac_config_headers"
29484 config_commands="$ac_config_commands"
29488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29490 \`$as_me' instantiates files and other configuration actions
29491 from templates according to the current configuration. Unless the files
29492 and actions are specified as TAGs, all are instantiated by default.
29494 Usage: $0 [OPTION]... [TAG]...
29496 -h, --help print this help, then exit
29497 -V, --version print version number and configuration settings, then exit
29498 --config print configuration, then exit
29499 -q, --quiet, --silent
29500 do not print progress messages
29501 -d, --debug don't remove temporary files
29502 --recheck update $as_me by reconfiguring in the same conditions
29503 --file=FILE[:TEMPLATE]
29504 instantiate the configuration file FILE
29505 --header=FILE[:TEMPLATE]
29506 instantiate the configuration header FILE
29508 Configuration files:
29511 Configuration headers:
29514 Configuration commands:
29517 Report bugs to <cjwatson@debian.org>."
29520 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
29521 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
29522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29523 ac_cs_config='$ac_cs_config_escaped'
29525 libpipeline config.status 1.5.4
29526 configured by $0, generated by GNU Autoconf 2.71,
29527 with options \\"\$ac_cs_config\\"
29529 Copyright (C) 2021 Free Software Foundation, Inc.
29530 This config.status script is free software; the Free Software Foundation
29531 gives unlimited permission to copy, distribute and modify it."
29538 test -n "\$AWK" || AWK=awk
29541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29542 # The default lists apply if the user does not specify any file.
29548 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29549 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29553 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29565 # Handling of the options.
29566 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29568 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29569 printf "%s\n" "$ac_cs_version"; exit ;;
29570 --config | --confi | --conf | --con | --co | --c )
29571 printf "%s\n" "$ac_cs_config"; exit ;;
29572 --debug | --debu | --deb | --de | --d | -d )
29574 --file | --fil | --fi | --f )
29577 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29578 '') as_fn_error $? "missing file argument" ;;
29580 as_fn_append CONFIG_FILES " '$ac_optarg'"
29581 ac_need_defaults=false;;
29582 --header | --heade | --head | --hea )
29585 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29587 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29588 ac_need_defaults=false;;
29590 # Conflict between --help and --header
29591 as_fn_error $? "ambiguous option: \`$1'
29592 Try \`$0 --help' for more information.";;
29593 --help | --hel | -h )
29594 printf "%s\n" "$ac_cs_usage"; exit ;;
29595 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29596 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29599 # This is an error.
29600 -*) as_fn_error $? "unrecognized option: \`$1'
29601 Try \`$0 --help' for more information." ;;
29603 *) as_fn_append ac_config_targets " $1"
29604 ac_need_defaults=false ;;
29610 ac_configure_extra_args=
29612 if $ac_cs_silent; then
29614 ac_configure_extra_args="$ac_configure_extra_args --silent"
29618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29619 if \$ac_cs_recheck; then
29620 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29622 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
29623 CONFIG_SHELL='$SHELL'
29624 export CONFIG_SHELL
29629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29633 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29634 ## Running $as_me. ##
29636 printf "%s\n" "$ac_log"
29640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29644 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
29647 # The HP-UX ksh and POSIX shell print the target directory to stdout
29648 # if CDPATH is set.
29649 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29651 sed_quote_subst='$sed_quote_subst'
29652 double_quote_subst='$double_quote_subst'
29653 delay_variable_subst='$delay_variable_subst'
29654 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29655 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29656 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29657 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29658 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29659 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29660 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
29661 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29662 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29663 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29664 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29665 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29666 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29667 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29668 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29669 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29670 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29671 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29672 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29673 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29674 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29675 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29676 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29677 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29678 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29679 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29680 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29681 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29682 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29683 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29684 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29685 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29686 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29687 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29688 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29689 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29690 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29691 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29692 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29693 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29694 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29695 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29696 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29697 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29698 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29699 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29700 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29701 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29702 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29703 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29704 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29705 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29706 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29707 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29708 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29709 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29710 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
29711 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29712 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"`'
29713 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
29714 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29715 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29716 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
29717 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29718 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29719 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29720 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29721 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29722 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29723 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29724 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29725 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29726 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29727 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29728 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29729 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29730 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29731 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29732 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29733 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29734 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29735 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29736 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29737 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29738 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29739 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29740 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29741 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29742 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29743 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29744 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29745 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29746 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29747 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29748 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29749 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29750 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29751 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29752 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29753 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29754 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29755 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29756 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29757 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29758 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29759 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29760 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29761 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29762 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29763 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29764 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29765 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29766 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29767 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29768 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29769 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29770 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29771 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29772 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29773 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29774 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29775 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29776 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29777 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29778 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29779 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29780 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29781 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
29782 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
29783 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29784 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29785 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29786 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29787 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29788 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29791 LTCFLAGS='$LTCFLAGS'
29792 compiler='$compiler_DEFAULT'
29794 # A function that is used when there is no print builtin or printf.
29795 func_fallback_echo ()
29797 eval 'cat <<_LTECHO_EOF
29802 # Quote evaled strings.
29817 deplibs_check_method \
29822 sharedlib_from_linklib_cmd \
29825 archiver_list_spec \
29831 lt_cv_sys_global_symbol_pipe \
29832 lt_cv_sys_global_symbol_to_cdecl \
29833 lt_cv_sys_global_symbol_to_import \
29834 lt_cv_sys_global_symbol_to_c_name_address \
29835 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29836 lt_cv_nm_interface \
29837 nm_file_list_spec \
29838 lt_cv_truncate_bin \
29839 lt_prog_compiler_no_builtin_flag \
29840 lt_prog_compiler_pic \
29841 lt_prog_compiler_wl \
29842 lt_prog_compiler_static \
29843 lt_cv_prog_compiler_c_o \
29852 export_dynamic_flag_spec \
29853 whole_archive_flag_spec \
29854 compiler_needs_object \
29856 allow_undefined_flag \
29857 no_undefined_flag \
29858 hardcode_libdir_flag_spec \
29859 hardcode_libdir_separator \
29863 variables_saved_for_relink \
29865 library_names_spec \
29867 install_override_mode \
29871 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29872 *[\\\\\\\`\\"\\\$]*)
29873 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29876 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29881 # Double-quote double-evaled strings.
29882 for var in reload_cmds \
29883 old_postinstall_cmds \
29884 old_postuninstall_cmds \
29886 extract_expsyms_cmds \
29887 old_archive_from_new_cmds \
29888 old_archive_from_expsyms_cmds \
29890 archive_expsym_cmds \
29892 module_expsym_cmds \
29893 export_symbols_cmds \
29897 postuninstall_cmds \
29899 sys_lib_search_path_spec \
29900 configure_time_dlsearch_path \
29901 configure_time_lt_sys_library_path; do
29902 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29903 *[\\\\\\\`\\"\\\$]*)
29904 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29907 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29912 ac_aux_dir='$ac_aux_dir'
29914 # See if we are running on zsh, and set the options that allow our
29915 # commands through without removal of \ escapes INIT.
29916 if test -n "\${ZSH_VERSION+set}"; then
29917 setopt NO_GLOB_SUBST
29931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29933 # Handling of arguments.
29934 for ac_config_target in $ac_config_targets
29936 case $ac_config_target in
29937 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29938 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29939 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29940 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29941 "gl/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gl/lib/Makefile" ;;
29942 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29943 "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
29944 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
29945 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29947 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29952 # If the user did not use the arguments to specify the items to instantiate,
29953 # then the envvar interface is used. Set only those that are not.
29954 # We use the long form for the default assignment because of an extremely
29955 # bizarre bug on SunOS 4.1.3.
29956 if $ac_need_defaults; then
29957 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
29958 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
29959 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
29962 # Have a temporary directory for convenience. Make it in the build tree
29963 # simply because there is no reason against having it here, and in addition,
29964 # creating and moving files from /tmp can sometimes cause problems.
29965 # Hook for its removal unless debugging.
29966 # Note that there is a small window in which the directory will not be cleaned:
29967 # after its creation but before its name has been assigned to `$tmp'.
29971 trap 'exit_status=$?
29972 : "${ac_tmp:=$tmp}"
29973 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29975 trap 'as_fn_exit 1' 1 2 13 15
29977 # Create a (secure) tmp directory for tmp files.
29980 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29984 tmp=./conf$$-$RANDOM
29985 (umask 077 && mkdir "$tmp")
29986 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29989 # Set up the scripts for CONFIG_FILES section.
29990 # No need to generate them if there are no CONFIG_FILES.
29991 # This happens for instance with `./config.status config.h'.
29992 if test -n "$CONFIG_FILES"; then
29995 ac_cr=`echo X | tr X '\015'`
29996 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29997 # But we know of no other shell where ac_cr would be empty at this
29998 # point, so we can use a bashism as a fallback.
29999 if test "x$ac_cr" = x; then
30000 eval ac_cr=\$\'\\r\'
30002 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30003 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30006 ac_cs_awk_cr=$ac_cr
30009 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30014 echo "cat >conf$$subs.awk <<_ACEOF" &&
30015 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30017 } >conf$$subs.sh ||
30018 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30019 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30021 for ac_last_try in false false false false false :; do
30022 . ./conf$$subs.sh ||
30023 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30025 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30026 if test $ac_delim_n = $ac_delim_num; then
30028 elif $ac_last_try; then
30029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30034 rm -f conf$$subs.sh
30036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30037 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30041 s/^/S["/; s/!.*/"]=/
30051 s/\(.\{148\}\)..*/\1/
30053 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30058 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30065 s/\(.\{148\}\)..*/\1/
30067 s/["\\]/\\&/g; s/^/"/; s/$/"/
30071 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30076 ' <conf$$subs.awk | sed '
30081 ' >>$CONFIG_STATUS || ac_write_fail=1
30082 rm -f conf$$subs.awk
30083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30085 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30086 for (key in S) S_is_set[key] = 1
30092 nfields = split(line, field, "@")
30094 len = length(field[1])
30095 for (i = 2; i < nfields; i++) {
30097 keylen = length(key)
30098 if (S_is_set[key]) {
30100 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30101 len += length(value) + length(field[++i])
30112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30113 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30114 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30117 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30118 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30121 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30122 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30123 # trailing colons and then remove the whole line if VPATH becomes empty
30124 # (actually we leave an empty line to preserve line numbers).
30125 if test "x$srcdir" = x.; then
30126 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30145 fi # test -n "$CONFIG_FILES"
30147 # Set up the scripts for CONFIG_HEADERS section.
30148 # No need to generate them if there are no CONFIG_HEADERS.
30149 # This happens for instance with `./config.status Makefile'.
30150 if test -n "$CONFIG_HEADERS"; then
30151 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
30155 # Transform confdefs.h into an awk script `defines.awk', embedded as
30156 # here-document in config.status, that substitutes the proper values into
30157 # config.h.in to produce config.h.
30159 # Create a delimiter string that does not exist in confdefs.h, to ease
30160 # handling of long lines.
30162 for ac_last_try in false false :; do
30163 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
30164 if test -z "$ac_tt"; then
30166 elif $ac_last_try; then
30167 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30173 # For the awk script, D is an array of macro values keyed by name,
30174 # likewise P contains macro parameters if any. Preserve backslash
30175 # newline sequences.
30177 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30179 s/.\{148\}/&'"$ac_delim"'/g
30182 s/^[ ]*#[ ]*define[ ][ ]*/ /
30189 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30191 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30195 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30196 D["\1"]=" \3\\\\\\n"\\/p
30198 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30203 s/.\{148\}/&'"$ac_delim"'/g
30208 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30211 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30213 ' <confdefs.h | sed '
30214 s/'"$ac_delim"'/"\\\
30215 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30218 for (key in D) D_is_set[key] = 1
30221 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30223 split(line, arg, " ")
30224 if (arg[1] == "#") {
30228 defundef = substr(arg[1], 2)
30231 split(mac1, mac2, "(") #)
30233 prefix = substr(line, 1, index(line, defundef) - 1)
30234 if (D_is_set[macro]) {
30235 # Preserve the white space surrounding the "#".
30236 print prefix "define", macro P[macro] D[macro]
30239 # Replace #undef with comments. This is necessary, for example,
30240 # in the case of _POSIX_SOURCE, which is predefined and required
30241 # on some systems where configure will not decide to define it.
30242 if (defundef == "undef") {
30243 print "/*", prefix defundef, macro, "*/"
30251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30252 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
30253 fi # test -n "$CONFIG_HEADERS"
30256 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30261 :[FHLC]) ac_mode=$ac_tag; continue;;
30263 case $ac_mode$ac_tag in
30265 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
30266 :[FH]-) ac_tag=-:-;;
30267 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30284 -) ac_f="$ac_tmp/stdin";;
30285 *) # Look for the file first in the build tree, then in the source tree
30286 # (if the path is not absolute). The absolute path cannot be DOS-style,
30287 # because $ac_f cannot contain `:'.
30291 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30293 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30295 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30296 as_fn_append ac_file_inputs " '$ac_f'"
30299 # Let's still pretend it is `configure' which instantiates (i.e., don't
30300 # use $as_me), people would be surprised to read:
30301 # /* config.h. Generated by config.status. */
30302 configure_input='Generated from '`
30303 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30305 if test x"$ac_file" != x-; then
30306 configure_input="$ac_file. $configure_input"
30307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30308 printf "%s\n" "$as_me: creating $ac_file" >&6;}
30310 # Neutralize special characters interpreted by sed in replacement strings.
30311 case $configure_input in #(
30312 *\&* | *\|* | *\\* )
30313 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
30314 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30315 *) ac_sed_conf_input=$configure_input;;
30319 *:-:* | *:-) cat >"$ac_tmp/stdin" \
30320 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
30325 ac_dir=`$as_dirname -- "$ac_file" ||
30326 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30327 X"$ac_file" : 'X\(//\)[^/]' \| \
30328 X"$ac_file" : 'X\(//\)$' \| \
30329 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30330 printf "%s\n" X"$ac_file" |
30331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30335 /^X\(\/\/\)[^/].*/{
30348 as_dir="$ac_dir"; as_fn_mkdir_p
30352 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30354 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
30355 # A ".." for each directory in $ac_dir_suffix.
30356 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30357 case $ac_top_builddir_sub in
30358 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30359 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30362 ac_abs_top_builddir=$ac_pwd
30363 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30364 # for backward compatibility:
30365 ac_top_builddir=$ac_top_build_prefix
30368 .) # We are building in place.
30370 ac_top_srcdir=$ac_top_builddir_sub
30371 ac_abs_top_srcdir=$ac_pwd ;;
30372 [\\/]* | ?:[\\/]* ) # Absolute name.
30373 ac_srcdir=$srcdir$ac_dir_suffix;
30374 ac_top_srcdir=$srcdir
30375 ac_abs_top_srcdir=$srcdir ;;
30376 *) # Relative name.
30377 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30378 ac_top_srcdir=$ac_top_build_prefix$srcdir
30379 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30381 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30391 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30392 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30394 ac_MKDIR_P=$MKDIR_P
30396 [\\/$]* | ?:[\\/]* ) ;;
30397 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30402 # If the template does not know about datarootdir, expand it.
30403 # FIXME: This hack should be removed a few years after 2.60.
30404 ac_datarootdir_hack=; ac_datarootdir_seen=
30415 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30416 *datarootdir*) ac_datarootdir_seen=yes;;
30417 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30419 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30422 ac_datarootdir_hack='
30423 s&@datadir@&$datadir&g
30424 s&@docdir@&$docdir&g
30425 s&@infodir@&$infodir&g
30426 s&@localedir@&$localedir&g
30427 s&@mandir@&$mandir&g
30428 s&\\\${datarootdir}&$datarootdir&g' ;;
30432 # Neutralize VPATH when `$srcdir' = `.'.
30433 # Shell code in configure.ac might set extrasub.
30434 # FIXME: do we really want to maintain this feature?
30435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30436 ac_sed_extra="$ac_vpsub
30439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30442 s|@configure_input@|$ac_sed_conf_input|;t t
30443 s&@top_builddir@&$ac_top_builddir_sub&;t t
30444 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30445 s&@srcdir@&$ac_srcdir&;t t
30446 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30447 s&@top_srcdir@&$ac_top_srcdir&;t t
30448 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30449 s&@builddir@&$ac_builddir&;t t
30450 s&@abs_builddir@&$ac_abs_builddir&;t t
30451 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30452 s&@INSTALL@&$ac_INSTALL&;t t
30453 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30454 $ac_datarootdir_hack
30456 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
30457 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30459 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30460 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
30461 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30462 "$ac_tmp/out"`; test -z "$ac_out"; } &&
30463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30464 which seems to be undefined. Please make sure it is defined" >&5
30465 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30466 which seems to be undefined. Please make sure it is defined" >&2;}
30468 rm -f "$ac_tmp/stdin"
30470 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30471 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30479 if test x"$ac_file" != x-; then
30481 printf "%s\n" "/* $configure_input */" >&1 \
30482 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30483 } >"$ac_tmp/config.h" \
30484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30485 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30487 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
30490 mv "$ac_tmp/config.h" "$ac_file" \
30491 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30494 printf "%s\n" "/* $configure_input */" >&1 \
30495 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30496 || as_fn_error $? "could not create -" "$LINENO" 5
30498 # Compute "$ac_file"'s index in $config_headers.
30501 for _am_header in $config_headers :; do
30502 case $_am_header in
30503 $_am_arg | $_am_arg:* )
30506 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30509 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30510 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30511 X"$_am_arg" : 'X\(//\)[^/]' \| \
30512 X"$_am_arg" : 'X\(//\)$' \| \
30513 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30514 printf "%s\n" X"$_am_arg" |
30515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30519 /^X\(\/\/\)[^/].*/{
30531 s/.*/./; q'`/stamp-h$_am_stamp_count
30534 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30535 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
30540 case $ac_file$ac_mode in
30541 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30542 # Older Autoconf quotes --file arguments for eval, but not when files
30543 # are listed without --file. Let's play safe and only enable the eval
30544 # if we detect the quoting.
30545 # TODO: see whether this extra hack can be removed once we start
30546 # requiring Autoconf 2.70 or later.
30547 case $CONFIG_FILES in #(
30549 eval set x "$CONFIG_FILES" ;; #(
30551 set x $CONFIG_FILES ;; #(
30556 # Used to flag and report bootstrapping failures.
30560 # Strip MF so we end up with the name of the file.
30561 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
30562 # Check whether this is an Automake generated Makefile which includes
30563 # dependency-tracking related rules and includes.
30564 # Grep'ing the whole file directly is not great: AIX grep has a line
30565 # limit of 2048, but all sed's we know have understand at least 4000.
30566 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
30568 am_dirpart=`$as_dirname -- "$am_mf" ||
30569 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30570 X"$am_mf" : 'X\(//\)[^/]' \| \
30571 X"$am_mf" : 'X\(//\)$' \| \
30572 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
30573 printf "%s\n" X"$am_mf" |
30574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30578 /^X\(\/\/\)[^/].*/{
30591 am_filepart=`$as_basename -- "$am_mf" ||
30592 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
30593 X"$am_mf" : 'X\(//\)$' \| \
30594 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
30595 printf "%s\n" X/"$am_mf" |
30596 sed '/^.*\/\([^/][^/]*\)\/*$/{
30609 { echo "$as_me:$LINENO: cd "$am_dirpart" \
30610 && sed -e '/# am--include-marker/d' "$am_filepart" \
30611 | $MAKE -f - am--depfiles" >&5
30612 (cd "$am_dirpart" \
30613 && sed -e '/# am--include-marker/d' "$am_filepart" \
30614 | $MAKE -f - am--depfiles) >&5 2>&5
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); } || am_rc=$?
30619 if test $am_rc -ne 0; then
30620 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30621 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
30622 as_fn_error $? "Something went wrong bootstrapping makefile fragments
30623 for automatic dependency tracking. If GNU make was not used, consider
30624 re-running the configure script with MAKE=\"gmake\" (or whatever is
30625 necessary). You can also try re-running configure with the
30626 '--disable-dependency-tracking' option to at least be able to build
30627 the package (albeit without support for automatic dependency tracking).
30628 See \`config.log' for more details" "$LINENO" 5; }
30630 { am_dirpart=; unset am_dirpart;}
30631 { am_filepart=; unset am_filepart;}
30632 { am_mf=; unset am_mf;}
30633 { am_rc=; unset am_rc;}
30634 rm -f conftest-deps.mk
30639 # See if we are running on zsh, and set the options that allow our
30640 # commands through without removal of \ escapes.
30641 if test -n "${ZSH_VERSION+set}"; then
30642 setopt NO_GLOB_SUBST
30646 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30649 cat <<_LT_EOF >> "$cfgfile"
30651 # Generated automatically by $as_me ($PACKAGE) $VERSION
30652 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30654 # Provide generalized library-building support services.
30655 # Written by Gordon Matzigkeit, 1996
30657 # Copyright (C) 2014 Free Software Foundation, Inc.
30658 # This is free software; see the source for copying conditions. There is NO
30659 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
30661 # GNU Libtool is free software; you can redistribute it and/or modify
30662 # it under the terms of the GNU General Public License as published by
30663 # the Free Software Foundation; either version 2 of of the License, or
30664 # (at your option) any later version.
30666 # As a special exception to the GNU General Public License, if you
30667 # distribute this file as part of a program or library that is built
30668 # using GNU Libtool, you may include this file under the same
30669 # distribution terms that you use for the rest of that program.
30671 # GNU Libtool is distributed in the hope that it will be useful, but
30672 # WITHOUT ANY WARRANTY; without even the implied warranty of
30673 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30674 # GNU General Public License for more details.
30676 # You should have received a copy of the GNU General Public License
30677 # along with this program. If not, see <http://www.gnu.org/licenses/>.
30680 # The names of the tagged configurations supported by this script.
30683 # Configured defaults for sys_lib_dlsearch_path munging.
30684 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
30686 # ### BEGIN LIBTOOL CONFIG
30688 # Which release of libtool.m4 was used?
30689 macro_version=$macro_version
30690 macro_revision=$macro_revision
30692 # Whether or not to build static libraries.
30693 build_old_libs=$enable_static
30695 # Whether or not to build shared libraries.
30696 build_libtool_libs=$enable_shared
30698 # What type of objects to build.
30701 # Whether or not to optimize for fast installation.
30702 fast_install=$enable_fast_install
30704 # Shared archive member basename,for filename based shared library versioning on AIX.
30705 shared_archive_member_spec=$shared_archive_member_spec
30707 # Shell to use when invoking shell scripts.
30710 # An echo program that protects backslashes.
30713 # The PATH separator for the build system.
30714 PATH_SEPARATOR=$lt_PATH_SEPARATOR
30717 host_alias=$host_alias
30721 # The build system.
30722 build_alias=$build_alias
30726 # A sed program that does not truncate output.
30729 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30730 Xsed="\$SED -e 1s/^X//"
30732 # A grep program that handles long lines.
30738 # A literal string matcher.
30741 # A BSD- or MS-compatible name lister.
30744 # Whether we need soft or hard links.
30747 # What is the maximum length of a command?
30748 max_cmd_len=$max_cmd_len
30750 # Object file suffix (normally "o").
30753 # Executable file suffix (normally "").
30756 # whether the shell understands "unset".
30759 # turn spaces into newlines.
30762 # turn newlines into spaces.
30765 # convert \$build file names to \$host format.
30766 to_host_file_cmd=$lt_cv_to_host_file_cmd
30768 # convert \$build files to toolchain format.
30769 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30771 # An object symbol dumper.
30772 OBJDUMP=$lt_OBJDUMP
30774 # Method to check whether dependent libraries are shared objects.
30775 deplibs_check_method=$lt_deplibs_check_method
30777 # Command to use when deplibs_check_method = "file_magic".
30778 file_magic_cmd=$lt_file_magic_cmd
30780 # How to find potential files when deplibs_check_method = "file_magic".
30781 file_magic_glob=$lt_file_magic_glob
30783 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30784 want_nocaseglob=$lt_want_nocaseglob
30786 # DLL creation program.
30787 DLLTOOL=$lt_DLLTOOL
30789 # Command to associate shared and link libraries.
30790 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30795 # Flags to create an archive.
30796 AR_FLAGS=$lt_AR_FLAGS
30798 # How to feed a file listing to the archiver.
30799 archiver_list_spec=$lt_archiver_list_spec
30801 # A symbol stripping program.
30804 # Commands used to install an old-style archive.
30806 old_postinstall_cmds=$lt_old_postinstall_cmds
30807 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30809 # Whether to use a lock for old archive extraction.
30810 lock_old_archive_extraction=$lock_old_archive_extraction
30815 # LTCC compiler flags.
30816 LTCFLAGS=$lt_CFLAGS
30818 # Take the output of nm and produce a listing of raw symbols and C names.
30819 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30821 # Transform the output of nm in a proper C declaration.
30822 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30824 # Transform the output of nm into a list of symbols to manually relocate.
30825 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
30827 # Transform the output of nm in a C name address pair.
30828 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30830 # Transform the output of nm in a C name address pair when lib prefix is needed.
30831 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30833 # The name lister interface.
30834 nm_interface=$lt_lt_cv_nm_interface
30836 # Specify filename containing input files for \$NM.
30837 nm_file_list_spec=$lt_nm_file_list_spec
30839 # The root where to search for dependent libraries,and where our libraries should be installed.
30840 lt_sysroot=$lt_sysroot
30842 # Command to truncate a binary pipe.
30843 lt_truncate_bin=$lt_lt_cv_truncate_bin
30845 # The name of the directory that contains temporary libtool files.
30848 # Used to examine libraries when file_magic_cmd begins with "file".
30849 MAGIC_CMD=$MAGIC_CMD
30851 # Must we lock files when doing compilation?
30852 need_locks=$lt_need_locks
30855 MANIFEST_TOOL=$lt_MANIFEST_TOOL
30857 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30858 DSYMUTIL=$lt_DSYMUTIL
30860 # Tool to change global to local symbols on Mac OS X.
30863 # Tool to manipulate fat objects and archives on Mac OS X.
30866 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30869 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30870 OTOOL64=$lt_OTOOL64
30872 # Old archive suffix (normally "a").
30875 # Shared library suffix (normally ".so").
30876 shrext_cmds=$lt_shrext_cmds
30878 # The commands to extract the exported symbol list from a shared archive.
30879 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30881 # Variables whose values should be saved in libtool wrapper scripts and
30882 # restored at link time.
30883 variables_saved_for_relink=$lt_variables_saved_for_relink
30885 # Do we need the "lib" prefix for modules?
30886 need_lib_prefix=$need_lib_prefix
30888 # Do we need a version for libraries?
30889 need_version=$need_version
30891 # Library versioning type.
30892 version_type=$version_type
30894 # Shared library runtime path variable.
30895 runpath_var=$runpath_var
30897 # Shared library path variable.
30898 shlibpath_var=$shlibpath_var
30900 # Is shlibpath searched before the hard-coded library search path?
30901 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30903 # Format of library name prefix.
30904 libname_spec=$lt_libname_spec
30906 # List of archive names. First name is the real one, the rest are links.
30907 # The last name is the one that the linker finds with -lNAME
30908 library_names_spec=$lt_library_names_spec
30910 # The coded name of the library, if different from the real name.
30911 soname_spec=$lt_soname_spec
30913 # Permission mode override for installation of shared libraries.
30914 install_override_mode=$lt_install_override_mode
30916 # Command to use after installation of a shared archive.
30917 postinstall_cmds=$lt_postinstall_cmds
30919 # Command to use after uninstallation of a shared archive.
30920 postuninstall_cmds=$lt_postuninstall_cmds
30922 # Commands used to finish a libtool library installation in a directory.
30923 finish_cmds=$lt_finish_cmds
30925 # As "finish_cmds", except a single script fragment to be evaled but
30927 finish_eval=$lt_finish_eval
30929 # Whether we should hardcode library paths into libraries.
30930 hardcode_into_libs=$hardcode_into_libs
30932 # Compile-time system search path for libraries.
30933 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30935 # Detected run-time system search path for libraries.
30936 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
30938 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
30939 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
30941 # Whether dlopen is supported.
30942 dlopen_support=$enable_dlopen
30944 # Whether dlopen of programs is supported.
30945 dlopen_self=$enable_dlopen_self
30947 # Whether dlopen of statically linked programs is supported.
30948 dlopen_self_static=$enable_dlopen_self_static
30950 # Commands to strip libraries.
30951 old_striplib=$lt_old_striplib
30952 striplib=$lt_striplib
30955 # The linker used to build libraries.
30958 # How to create reloadable object files.
30959 reload_flag=$lt_reload_flag
30960 reload_cmds=$lt_reload_cmds
30962 # Commands used to build an old-style archive.
30963 old_archive_cmds=$lt_old_archive_cmds
30965 # A language specific compiler.
30968 # Is the compiler the GNU compiler?
30971 # Compiler flag to turn off builtin functions.
30972 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30974 # Additional compiler flags for building library objects.
30975 pic_flag=$lt_lt_prog_compiler_pic
30977 # How to pass a linker flag through the compiler.
30978 wl=$lt_lt_prog_compiler_wl
30980 # Compiler flag to prevent dynamic linking.
30981 link_static_flag=$lt_lt_prog_compiler_static
30983 # Does compiler simultaneously support -c and -o options?
30984 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30986 # Whether or not to add -lc for building shared libraries.
30987 build_libtool_need_lc=$archive_cmds_need_lc
30989 # Whether or not to disallow shared libs when runtime libs are static.
30990 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30992 # Compiler flag to allow reflexive dlopens.
30993 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30995 # Compiler flag to generate shared objects directly from archives.
30996 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30998 # Whether the compiler copes with passing no objects directly.
30999 compiler_needs_object=$lt_compiler_needs_object
31001 # Create an old-style archive from a shared archive.
31002 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31004 # Create a temporary old-style archive to link instead of a shared archive.
31005 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31007 # Commands used to build a shared archive.
31008 archive_cmds=$lt_archive_cmds
31009 archive_expsym_cmds=$lt_archive_expsym_cmds
31011 # Commands used to build a loadable module if different from building
31012 # a shared archive.
31013 module_cmds=$lt_module_cmds
31014 module_expsym_cmds=$lt_module_expsym_cmds
31016 # Whether we are building with GNU ld or not.
31017 with_gnu_ld=$lt_with_gnu_ld
31019 # Flag that allows shared libraries with undefined symbols to be built.
31020 allow_undefined_flag=$lt_allow_undefined_flag
31022 # Flag that enforces no undefined symbols.
31023 no_undefined_flag=$lt_no_undefined_flag
31025 # Flag to hardcode \$libdir into a binary during linking.
31026 # This must work even if \$libdir does not exist
31027 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31029 # Whether we need a single "-rpath" flag with a separated argument.
31030 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31032 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
31033 # DIR into the resulting binary.
31034 hardcode_direct=$hardcode_direct
31036 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
31037 # DIR into the resulting binary and the resulting library dependency is
31038 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
31039 # library is relocated.
31040 hardcode_direct_absolute=$hardcode_direct_absolute
31042 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31043 # into the resulting binary.
31044 hardcode_minus_L=$hardcode_minus_L
31046 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31047 # into the resulting binary.
31048 hardcode_shlibpath_var=$hardcode_shlibpath_var
31050 # Set to "yes" if building a shared library automatically hardcodes DIR
31051 # into the library and all subsequent libraries and executables linked
31053 hardcode_automatic=$hardcode_automatic
31055 # Set to yes if linker adds runtime paths of dependent libraries
31056 # to runtime path list.
31057 inherit_rpath=$inherit_rpath
31059 # Whether libtool must link a program against all its dependency libraries.
31060 link_all_deplibs=$link_all_deplibs
31062 # Set to "yes" if exported symbols are required.
31063 always_export_symbols=$always_export_symbols
31065 # The commands to list exported symbols.
31066 export_symbols_cmds=$lt_export_symbols_cmds
31068 # Symbols that should not be listed in the preloaded symbols.
31069 exclude_expsyms=$lt_exclude_expsyms
31071 # Symbols that must always be exported.
31072 include_expsyms=$lt_include_expsyms
31074 # Commands necessary for linking programs (against libraries) with templates.
31075 prelink_cmds=$lt_prelink_cmds
31077 # Commands necessary for finishing linking programs.
31078 postlink_cmds=$lt_postlink_cmds
31080 # Specify filename containing input files.
31081 file_list_spec=$lt_file_list_spec
31083 # How to hardcode a shared library path into an executable.
31084 hardcode_action=$hardcode_action
31086 # ### END LIBTOOL CONFIG
31090 cat <<'_LT_EOF' >> "$cfgfile"
31092 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
31094 # func_munge_path_list VARIABLE PATH
31095 # -----------------------------------
31096 # VARIABLE is name of variable containing _space_ separated list of
31097 # directories to be munged by the contents of PATH, which is string
31100 # string "DIR[ DIR]" will be prepended to VARIABLE
31102 # string "DIR[ DIR]" will be appended to VARIABLE
31103 # "DIRP[:DIRP]::[DIRA:]DIRA"
31104 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
31105 # "DIRA[ DIRA]" will be appended to VARIABLE
31107 # VARIABLE will be replaced by "DIR[ DIR]"
31108 func_munge_path_list ()
31114 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
31117 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
31120 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
31121 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
31124 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
31130 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
31131 func_cc_basename ()
31133 for cc_temp in $*""; do
31135 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
31136 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
31141 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
31145 # ### END FUNCTIONS SHARED WITH CONFIGURE
31151 cat <<\_LT_EOF >> "$cfgfile"
31152 # AIX sometimes has problems with the GCC collect2 program. For some
31153 # reason, if we set the COLLECT_NAMES environment variable, the problems
31154 # vanish in a puff of smoke.
31155 if test set != "${COLLECT_NAMES+set}"; then
31157 export COLLECT_NAMES
31165 ltmain=$ac_aux_dir/ltmain.sh
31168 # We use sed instead of cat because bash on DJGPP gets confused if
31169 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31170 # text mode, it properly converts lines to CR/LF. This bash problem
31171 # is reportedly fixed, but why not run on old versions too?
31172 sed '$q' "$ltmain" >> "$cfgfile" \
31173 || (rm -f "$cfgfile"; exit 1)
31175 mv -f "$cfgfile" "$ofile" ||
31176 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31187 ac_clean_files=$ac_clean_files_save
31189 test $ac_write_fail = 0 ||
31190 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31193 # configure is writing to config.log, and then calls config.status.
31194 # config.status does its own redirection, appending to config.log.
31195 # Unfortunately, on DOS this fails, as config.log is still kept open
31196 # by configure, so config.status won't be able to write to it; its
31197 # output is simply discarded. So we exec the FD to /dev/null,
31198 # effectively closing config.log, so it can be properly (re)opened and
31199 # appended to by config.status. When coming back to configure, we
31200 # need to make the FD available again.
31201 if test "$no_create" != yes; then
31203 ac_config_status_args=
31204 test "$silent" = yes &&
31205 ac_config_status_args="$ac_config_status_args --quiet"
31207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31210 # would make configure fail if this is the last instruction.
31211 $ac_cs_success || as_fn_exit 1
31213 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31215 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}