2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpipeline 1.5.1.
5 # Report bugs to <cjwatson@debian.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: cjwatson@debian.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='libpipeline'
592 PACKAGE_TARNAME='libpipeline'
593 PACKAGE_VERSION='1.5.1'
594 PACKAGE_STRING='libpipeline 1.5.1'
595 PACKAGE_BUGREPORT='cjwatson@debian.org'
598 ac_unique_file="lib/pipeline.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 gl_use_threads_default=
638 ac_subst_vars='gltests_LTLIBOBJS
649 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
747 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
749 UNISTD_H_DEFINES_STRUCT_TIMESPEC
750 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
751 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
752 TIME_H_DEFINES_STRUCT_TIMESPEC
753 NEXT_AS_FIRST_DIRECTIVE_TIME_H
755 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
760 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
763 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
770 NEXT_AS_FIRST_DIRECTIVE_STRING_H
772 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
774 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
776 GL_GENERATE_STDINT_H_FALSE
777 GL_GENERATE_STDINT_H_TRUE
789 HAVE_SIGNED_SIG_ATOMIC_T
792 BITSIZEOF_SIG_ATOMIC_T
796 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
801 HAVE_UNSIGNED_LONG_LONG_INT
803 GNULIB_OVERRIDES_WINT_T
804 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
806 GL_GENERATE_STDDEF_H_FALSE
807 GL_GENERATE_STDDEF_H_TRUE
813 GL_GENERATE_STDBOOL_H_FALSE
814 GL_GENERATE_STDBOOL_H_TRUE
816 GL_GENERATE_STDARG_H_FALSE
817 GL_GENERATE_STDARG_H_TRUE
819 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
821 WINDOWS_64_BIT_ST_SIZE
822 WINDOWS_STAT_TIMESPEC
823 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
832 REPLACE_STDIO_WRITE_FUNCS
833 REPLACE_STDIO_READ_FUNCS
842 REPLACE_OBSTACK_PRINTF
867 HAVE_DECL_OBSTACK_PRINTF
873 GNULIB_VSPRINTF_POSIX
877 GNULIB_VFPRINTF_POSIX
884 GNULIB_STDIO_H_SIGPIPE
885 GNULIB_STDIO_H_NONBLOCKING
900 GNULIB_OBSTACK_PRINTF_POSIX
901 GNULIB_OBSTACK_PRINTF
926 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
929 REPLACE_PTHREAD_SIGMASK
931 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
932 HAVE_STRUCT_SIGACTION_SA_SIGACTION
938 HAVE_POSIX_SIGNALBLOCKING
941 GNULIB_SIGNAL_H_SIGPIPE
943 GNULIB_PTHREAD_SIGMASK
944 APPLE_UNIVERSAL_BUILD
945 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1020 GNULIB_EXPLICIT_BZERO
1035 REPLACE_CANONICALIZE_FILE_NAME
1040 HAVE_STRUCT_RANDOM_DATA
1066 HAVE_DECL_GETLOADAVG
1067 HAVE_CANONICALIZE_FILE_NAME
1078 GNULIB_SECURE_GETENV
1081 GNULIB_REALLOC_POSIX
1100 GNULIB_CANONICALIZE_FILE_NAME
1124 GNULIB_OVERRIDES_STRUCT_STAT
1145 GL_GENERATE_LIMITS_H_FALSE
1146 GL_GENERATE_LIMITS_H_TRUE
1148 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1150 IGNORE_UNUSED_LIBRARIES_CFLAGS
1165 HAVE_DECL_LOCALTIME_R
1177 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1179 REPLACE_STRUCT_TIMEVAL
1180 REPLACE_GETTIMEOFDAY
1188 GL_GENERATE_FLOAT_H_FALSE
1189 GL_GENERATE_FLOAT_H_TRUE
1191 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1193 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1210 GL_GENERATE_ERRNO_H_FALSE
1211 GL_GENERATE_ERRNO_H_TRUE
1213 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1216 PRAGMA_SYSTEM_HEADER
1217 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1219 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1220 UNISTD_H_HAVE_WINSOCK2_H
1245 REPLACE_GETDTABLESIZE
1246 REPLACE_GETDOMAINNAME
1259 HAVE_DECL_SETHOSTNAME
1260 HAVE_DECL_GETUSERSHELL
1261 HAVE_DECL_GETPAGESIZE
1262 HAVE_DECL_GETLOGIN_R
1264 HAVE_DECL_GETDOMAINNAME
1304 GNULIB_UNISTD_H_SIGPIPE
1305 GNULIB_UNISTD_H_NONBLOCKING
1333 GNULIB_GETDTABLESIZE
1334 GNULIB_GETDOMAINNAME
1350 GL_GENERATE_ALLOCA_H_FALSE
1351 GL_GENERATE_ALLOCA_H_TRUE
1354 GL_COND_LIBTOOL_FALSE
1355 GL_COND_LIBTOOL_TRUE
1413 MAINTAINER_MODE_FALSE
1414 MAINTAINER_MODE_TRUE
1416 AM_DEFAULT_VERBOSITY
1427 INSTALL_STRIP_PROGRAM
1470 program_transform_name
1484 enable_option_checking
1486 enable_maintainer_mode
1487 enable_dependency_tracking
1500 enable_socketpair_pipe
1502 ac_precious_vars='build_alias
1519 # Initialize some variables set by options.
1521 ac_init_version=false
1522 ac_unrecognized_opts=
1523 ac_unrecognized_sep=
1524 # The variables have the same names as the options, with
1525 # dashes changed to underlines.
1526 cache_file=/dev/null
1533 program_transform_name=s,x,x,
1541 # Installation directory options.
1542 # These are left unexpanded so users can "make install exec_prefix=/foo"
1543 # and all the variables that are supposed to be based on exec_prefix
1544 # by default will actually change.
1545 # Use braces instead of parens because sh, perl, etc. also accept them.
1546 # (The list follows the same order as the GNU Coding Standards.)
1547 bindir='${exec_prefix}/bin'
1548 sbindir='${exec_prefix}/sbin'
1549 libexecdir='${exec_prefix}/libexec'
1550 datarootdir='${prefix}/share'
1551 datadir='${datarootdir}'
1552 sysconfdir='${prefix}/etc'
1553 sharedstatedir='${prefix}/com'
1554 localstatedir='${prefix}/var'
1555 runstatedir='${localstatedir}/run'
1556 includedir='${prefix}/include'
1557 oldincludedir='/usr/include'
1558 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1559 infodir='${datarootdir}/info'
1564 libdir='${exec_prefix}/lib'
1565 localedir='${datarootdir}/locale'
1566 mandir='${datarootdir}/man'
1572 # If the previous option needs an argument, assign it.
1573 if test -n "$ac_prev"; then
1574 eval $ac_prev=\$ac_option
1580 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1585 # Accept the important Cygnus configure options, so we can diagnose typos.
1587 case $ac_dashdash$ac_option in
1591 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1593 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1594 bindir=$ac_optarg ;;
1596 -build | --build | --buil | --bui | --bu)
1597 ac_prev=build_alias ;;
1598 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1599 build_alias=$ac_optarg ;;
1601 -cache-file | --cache-file | --cache-fil | --cache-fi \
1602 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1603 ac_prev=cache_file ;;
1604 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1605 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1606 cache_file=$ac_optarg ;;
1608 --config-cache | -C)
1609 cache_file=config.cache ;;
1611 -datadir | --datadir | --datadi | --datad)
1613 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1614 datadir=$ac_optarg ;;
1616 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1617 | --dataroo | --dataro | --datar)
1618 ac_prev=datarootdir ;;
1619 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1620 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1621 datarootdir=$ac_optarg ;;
1623 -disable-* | --disable-*)
1624 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1625 # Reject names that are not valid shell variable names.
1626 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1627 as_fn_error $? "invalid feature name: $ac_useropt"
1628 ac_useropt_orig=$ac_useropt
1629 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1630 case $ac_user_opts in
1632 "enable_$ac_useropt"
1634 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1635 ac_unrecognized_sep=', ';;
1637 eval enable_$ac_useropt=no ;;
1639 -docdir | --docdir | --docdi | --doc | --do)
1641 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1642 docdir=$ac_optarg ;;
1644 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1646 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1647 dvidir=$ac_optarg ;;
1649 -enable-* | --enable-*)
1650 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1651 # Reject names that are not valid shell variable names.
1652 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1653 as_fn_error $? "invalid feature name: $ac_useropt"
1654 ac_useropt_orig=$ac_useropt
1655 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1656 case $ac_user_opts in
1658 "enable_$ac_useropt"
1660 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1661 ac_unrecognized_sep=', ';;
1663 eval enable_$ac_useropt=\$ac_optarg ;;
1665 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1666 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1667 | --exec | --exe | --ex)
1668 ac_prev=exec_prefix ;;
1669 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1670 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1671 | --exec=* | --exe=* | --ex=*)
1672 exec_prefix=$ac_optarg ;;
1674 -gas | --gas | --ga | --g)
1675 # Obsolete; use --with-gas.
1678 -help | --help | --hel | --he | -h)
1679 ac_init_help=long ;;
1680 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1681 ac_init_help=recursive ;;
1682 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1683 ac_init_help=short ;;
1685 -host | --host | --hos | --ho)
1686 ac_prev=host_alias ;;
1687 -host=* | --host=* | --hos=* | --ho=*)
1688 host_alias=$ac_optarg ;;
1690 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1692 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1694 htmldir=$ac_optarg ;;
1696 -includedir | --includedir | --includedi | --included | --include \
1697 | --includ | --inclu | --incl | --inc)
1698 ac_prev=includedir ;;
1699 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1700 | --includ=* | --inclu=* | --incl=* | --inc=*)
1701 includedir=$ac_optarg ;;
1703 -infodir | --infodir | --infodi | --infod | --info | --inf)
1705 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1706 infodir=$ac_optarg ;;
1708 -libdir | --libdir | --libdi | --libd)
1710 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1711 libdir=$ac_optarg ;;
1713 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1714 | --libexe | --libex | --libe)
1715 ac_prev=libexecdir ;;
1716 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1717 | --libexe=* | --libex=* | --libe=*)
1718 libexecdir=$ac_optarg ;;
1720 -localedir | --localedir | --localedi | --localed | --locale)
1721 ac_prev=localedir ;;
1722 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1723 localedir=$ac_optarg ;;
1725 -localstatedir | --localstatedir | --localstatedi | --localstated \
1726 | --localstate | --localstat | --localsta | --localst | --locals)
1727 ac_prev=localstatedir ;;
1728 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1729 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1730 localstatedir=$ac_optarg ;;
1732 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1734 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1735 mandir=$ac_optarg ;;
1737 -nfp | --nfp | --nf)
1738 # Obsolete; use --without-fp.
1741 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1742 | --no-cr | --no-c | -n)
1745 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1746 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1749 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1750 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1751 | --oldin | --oldi | --old | --ol | --o)
1752 ac_prev=oldincludedir ;;
1753 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1754 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1755 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1756 oldincludedir=$ac_optarg ;;
1758 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1760 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1761 prefix=$ac_optarg ;;
1763 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1764 | --program-pre | --program-pr | --program-p)
1765 ac_prev=program_prefix ;;
1766 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1767 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1768 program_prefix=$ac_optarg ;;
1770 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1771 | --program-suf | --program-su | --program-s)
1772 ac_prev=program_suffix ;;
1773 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1774 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1775 program_suffix=$ac_optarg ;;
1777 -program-transform-name | --program-transform-name \
1778 | --program-transform-nam | --program-transform-na \
1779 | --program-transform-n | --program-transform- \
1780 | --program-transform | --program-transfor \
1781 | --program-transfo | --program-transf \
1782 | --program-trans | --program-tran \
1783 | --progr-tra | --program-tr | --program-t)
1784 ac_prev=program_transform_name ;;
1785 -program-transform-name=* | --program-transform-name=* \
1786 | --program-transform-nam=* | --program-transform-na=* \
1787 | --program-transform-n=* | --program-transform-=* \
1788 | --program-transform=* | --program-transfor=* \
1789 | --program-transfo=* | --program-transf=* \
1790 | --program-trans=* | --program-tran=* \
1791 | --progr-tra=* | --program-tr=* | --program-t=*)
1792 program_transform_name=$ac_optarg ;;
1794 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1796 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1797 pdfdir=$ac_optarg ;;
1799 -psdir | --psdir | --psdi | --psd | --ps)
1801 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1805 | -silent | --silent | --silen | --sile | --sil)
1808 -runstatedir | --runstatedir | --runstatedi | --runstated \
1809 | --runstate | --runstat | --runsta | --runst | --runs \
1810 | --run | --ru | --r)
1811 ac_prev=runstatedir ;;
1812 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1813 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1814 | --run=* | --ru=* | --r=*)
1815 runstatedir=$ac_optarg ;;
1817 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1819 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1821 sbindir=$ac_optarg ;;
1823 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1824 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1825 | --sharedst | --shareds | --shared | --share | --shar \
1827 ac_prev=sharedstatedir ;;
1828 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1829 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1830 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1832 sharedstatedir=$ac_optarg ;;
1834 -site | --site | --sit)
1836 -site=* | --site=* | --sit=*)
1839 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1841 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1842 srcdir=$ac_optarg ;;
1844 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1845 | --syscon | --sysco | --sysc | --sys | --sy)
1846 ac_prev=sysconfdir ;;
1847 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1848 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1849 sysconfdir=$ac_optarg ;;
1851 -target | --target | --targe | --targ | --tar | --ta | --t)
1852 ac_prev=target_alias ;;
1853 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1854 target_alias=$ac_optarg ;;
1856 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1859 -version | --version | --versio | --versi | --vers | -V)
1860 ac_init_version=: ;;
1863 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1864 # Reject names that are not valid shell variable names.
1865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1866 as_fn_error $? "invalid package name: $ac_useropt"
1867 ac_useropt_orig=$ac_useropt
1868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1869 case $ac_user_opts in
1873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1874 ac_unrecognized_sep=', ';;
1876 eval with_$ac_useropt=\$ac_optarg ;;
1878 -without-* | --without-*)
1879 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1880 # Reject names that are not valid shell variable names.
1881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1882 as_fn_error $? "invalid package name: $ac_useropt"
1883 ac_useropt_orig=$ac_useropt
1884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1885 case $ac_user_opts in
1889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1890 ac_unrecognized_sep=', ';;
1892 eval with_$ac_useropt=no ;;
1895 # Obsolete; use --with-x.
1898 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1899 | --x-incl | --x-inc | --x-in | --x-i)
1900 ac_prev=x_includes ;;
1901 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1902 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1903 x_includes=$ac_optarg ;;
1905 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1906 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1907 ac_prev=x_libraries ;;
1908 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1909 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1910 x_libraries=$ac_optarg ;;
1912 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1913 Try \`$0 --help' for more information"
1917 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1918 # Reject names that are not valid shell variable names.
1919 case $ac_envvar in #(
1920 '' | [0-9]* | *[!_$as_cr_alnum]* )
1921 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1923 eval $ac_envvar=\$ac_optarg
1924 export $ac_envvar ;;
1927 # FIXME: should be removed in autoconf 3.0.
1928 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1929 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1930 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1931 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1937 if test -n "$ac_prev"; then
1938 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1939 as_fn_error $? "missing argument to $ac_option"
1942 if test -n "$ac_unrecognized_opts"; then
1943 case $enable_option_checking in
1945 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1946 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1950 # Check all directory arguments for consistency.
1951 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1952 datadir sysconfdir sharedstatedir localstatedir includedir \
1953 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1954 libdir localedir mandir runstatedir
1956 eval ac_val=\$$ac_var
1957 # Remove trailing slashes.
1960 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1961 eval $ac_var=\$ac_val;;
1963 # Be sure to have absolute directory names.
1965 [\\/$]* | ?:[\\/]* ) continue;;
1966 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1968 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1971 # There might be people who depend on the old broken behavior: `$host'
1972 # used to hold the argument of --host etc.
1973 # FIXME: To remove some day.
1976 target=$target_alias
1978 # FIXME: To remove some day.
1979 if test "x$host_alias" != x; then
1980 if test "x$build_alias" = x; then
1981 cross_compiling=maybe
1982 elif test "x$build_alias" != "x$host_alias"; then
1988 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1990 test "$silent" = yes && exec 6>/dev/null
1993 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1994 ac_ls_di=`ls -di .` &&
1995 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1996 as_fn_error $? "working directory cannot be determined"
1997 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1998 as_fn_error $? "pwd does not report name of working directory"
2001 # Find the source files, if location was not specified.
2002 if test -z "$srcdir"; then
2003 ac_srcdir_defaulted=yes
2004 # Try the directory containing this script, then the parent directory.
2005 ac_confdir=`$as_dirname -- "$as_myself" ||
2006 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2007 X"$as_myself" : 'X\(//\)[^/]' \| \
2008 X"$as_myself" : 'X\(//\)$' \| \
2009 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2010 $as_echo X"$as_myself" |
2011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2029 if test ! -r "$srcdir/$ac_unique_file"; then
2033 ac_srcdir_defaulted=no
2035 if test ! -r "$srcdir/$ac_unique_file"; then
2036 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2037 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2039 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2041 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2043 # When building in place, set srcdir=.
2044 if test "$ac_abs_confdir" = "$ac_pwd"; then
2047 # Remove unnecessary trailing slashes from srcdir.
2048 # Double slashes in file names in object file debugging info
2049 # mess up M-x gdb in Emacs.
2051 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2053 for ac_var in $ac_precious_vars; do
2054 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2055 eval ac_env_${ac_var}_value=\$${ac_var}
2056 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2057 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2061 # Report the --help message.
2063 if test "$ac_init_help" = "long"; then
2064 # Omit some internal or obsolete options to make the list less imposing.
2065 # This message is too long to be a string in the A/UX 3.1 sh.
2067 \`configure' configures libpipeline 1.5.1 to adapt to many kinds of systems.
2069 Usage: $0 [OPTION]... [VAR=VALUE]...
2071 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2072 VAR=VALUE. See below for descriptions of some of the useful variables.
2074 Defaults for the options are specified in brackets.
2077 -h, --help display this help and exit
2078 --help=short display options specific to this package
2079 --help=recursive display the short help of all the included packages
2080 -V, --version display version information and exit
2081 -q, --quiet, --silent do not print \`checking ...' messages
2082 --cache-file=FILE cache test results in FILE [disabled]
2083 -C, --config-cache alias for \`--cache-file=config.cache'
2084 -n, --no-create do not create output files
2085 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2087 Installation directories:
2088 --prefix=PREFIX install architecture-independent files in PREFIX
2089 [$ac_default_prefix]
2090 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2093 By default, \`make install' will install all the files in
2094 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2095 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2096 for instance \`--prefix=\$HOME'.
2098 For better control, use the options below.
2100 Fine tuning of the installation directories:
2101 --bindir=DIR user executables [EPREFIX/bin]
2102 --sbindir=DIR system admin executables [EPREFIX/sbin]
2103 --libexecdir=DIR program executables [EPREFIX/libexec]
2104 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2105 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2106 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2107 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2108 --libdir=DIR object code libraries [EPREFIX/lib]
2109 --includedir=DIR C header files [PREFIX/include]
2110 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2111 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2112 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2113 --infodir=DIR info documentation [DATAROOTDIR/info]
2114 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2115 --mandir=DIR man documentation [DATAROOTDIR/man]
2116 --docdir=DIR documentation root [DATAROOTDIR/doc/libpipeline]
2117 --htmldir=DIR html documentation [DOCDIR]
2118 --dvidir=DIR dvi documentation [DOCDIR]
2119 --pdfdir=DIR pdf documentation [DOCDIR]
2120 --psdir=DIR ps documentation [DOCDIR]
2126 --program-prefix=PREFIX prepend PREFIX to installed program names
2127 --program-suffix=SUFFIX append SUFFIX to installed program names
2128 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2131 --build=BUILD configure for building on BUILD [guessed]
2132 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2136 if test -n "$ac_init_help"; then
2137 case $ac_init_help in
2138 short | recursive ) echo "Configuration of libpipeline 1.5.1:";;
2143 --disable-option-checking ignore unrecognized --enable/--with options
2144 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2145 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2146 --enable-silent-rules less verbose build output (undo: "make V=1")
2147 --disable-silent-rules verbose build output (undo: "make V=0")
2148 --enable-maintainer-mode
2149 enable make rules and dependencies not useful (and
2150 sometimes confusing) to the casual installer
2151 --enable-dependency-tracking
2152 do not reject slow dependency extractors
2153 --disable-dependency-tracking
2154 speeds up one-time build
2155 --disable-largefile omit support for large files
2156 --enable-threads={posix|solaris|pth|windows}
2157 specify multithreading API
2158 --disable-threads build without multithread safety
2159 --enable-static[=PKGS] build static libraries [default=no]
2160 --enable-shared[=PKGS] build shared libraries [default=yes]
2161 --enable-fast-install[=PKGS]
2162 optimize for fast installation [default=yes]
2163 --disable-libtool-lock avoid locking (might break parallel builds)
2164 --disable-rpath do not hardcode runtime library paths
2165 --enable-socketpair-pipe
2166 Use socketpair(2) as fast replacement for pipe(2)
2169 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2170 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2171 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2173 --with-aix-soname=aix|svr4|both
2174 shared library versioning (aka "SONAME") variant to
2175 provide on AIX, [default=aix].
2176 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2177 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2178 compiler's sysroot if not specified).
2179 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2180 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2181 --without-libpth-prefix don't search for libpth in includedir and libdir
2183 Some influential environment variables:
2184 CC C compiler command
2185 CFLAGS C compiler flags
2186 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2187 nonstandard directory <lib dir>
2188 LIBS libraries to pass to the linker, e.g. -l<library>
2189 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2190 you have headers in a nonstandard directory <include dir>
2193 User-defined run-time library search path.
2194 PKG_CONFIG path to pkg-config utility
2196 directories to add to pkg-config's search path
2198 path overriding pkg-config's built-in search path
2200 C compiler flags for CHECK, overriding pkg-config
2201 CHECK_LIBS linker flags for CHECK, overriding pkg-config
2203 Use these variables to override the choices made by `configure' or to help
2204 it to find libraries and programs with nonstandard names/locations.
2206 Report bugs to <cjwatson@debian.org>.
2211 if test "$ac_init_help" = "recursive"; then
2212 # If there are subdirs, report their specific --help.
2213 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2214 test -d "$ac_dir" ||
2215 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2220 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2222 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2223 # A ".." for each directory in $ac_dir_suffix.
2224 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2225 case $ac_top_builddir_sub in
2226 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2227 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2230 ac_abs_top_builddir=$ac_pwd
2231 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2232 # for backward compatibility:
2233 ac_top_builddir=$ac_top_build_prefix
2236 .) # We are building in place.
2238 ac_top_srcdir=$ac_top_builddir_sub
2239 ac_abs_top_srcdir=$ac_pwd ;;
2240 [\\/]* | ?:[\\/]* ) # Absolute name.
2241 ac_srcdir=$srcdir$ac_dir_suffix;
2242 ac_top_srcdir=$srcdir
2243 ac_abs_top_srcdir=$srcdir ;;
2245 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2246 ac_top_srcdir=$ac_top_build_prefix$srcdir
2247 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2249 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2251 cd "$ac_dir" || { ac_status=$?; continue; }
2252 # Check for guested configure.
2253 if test -f "$ac_srcdir/configure.gnu"; then
2255 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2256 elif test -f "$ac_srcdir/configure"; then
2258 $SHELL "$ac_srcdir/configure" --help=recursive
2260 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2262 cd "$ac_pwd" || { ac_status=$?; break; }
2266 test -n "$ac_init_help" && exit $ac_status
2267 if $ac_init_version; then
2269 libpipeline configure 1.5.1
2270 generated by GNU Autoconf 2.69
2272 Copyright (C) 2012 Free Software Foundation, Inc.
2273 This configure script is free software; the Free Software Foundation
2274 gives unlimited permission to copy, distribute and modify it.
2279 ## ------------------------ ##
2280 ## Autoconf initialization. ##
2281 ## ------------------------ ##
2283 # ac_fn_c_try_compile LINENO
2284 # --------------------------
2285 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2286 ac_fn_c_try_compile ()
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 rm -f conftest.$ac_objext
2290 if { { ac_try="$ac_compile"
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296 $as_echo "$ac_try_echo"; } >&5
2297 (eval "$ac_compile") 2>conftest.err
2299 if test -s conftest.err; then
2300 grep -v '^ *+' conftest.err >conftest.er1
2301 cat conftest.er1 >&5
2302 mv -f conftest.er1 conftest.err
2304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2305 test $ac_status = 0; } && {
2306 test -z "$ac_c_werror_flag" ||
2307 test ! -s conftest.err
2308 } && test -s conftest.$ac_objext; then :
2311 $as_echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 as_fn_set_status $ac_retval
2319 } # ac_fn_c_try_compile
2321 # ac_fn_c_try_cpp LINENO
2322 # ----------------------
2323 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 if { { ac_try="$ac_cpp conftest.$ac_ext"
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2333 $as_echo "$ac_try_echo"; } >&5
2334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2336 if test -s conftest.err; then
2337 grep -v '^ *+' conftest.err >conftest.er1
2338 cat conftest.er1 >&5
2339 mv -f conftest.er1 conftest.err
2341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2342 test $ac_status = 0; } > conftest.i && {
2343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2344 test ! -s conftest.err
2348 $as_echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354 as_fn_set_status $ac_retval
2358 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2359 # -------------------------------------------------------
2360 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2361 # the include files in INCLUDES and setting the cache variable VAR
2363 ac_fn_c_check_header_mongrel ()
2365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366 if eval \${$3+:} false; then :
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2368 $as_echo_n "checking for $2... " >&6; }
2369 if eval \${$3+:} false; then :
2370 $as_echo_n "(cached) " >&6
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2374 $as_echo "$ac_res" >&6; }
2376 # Is the header compilable?
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2378 $as_echo_n "checking $2 usability... " >&6; }
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385 ac_header_compiler=yes
2387 ac_header_compiler=no
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2391 $as_echo "$ac_header_compiler" >&6; }
2393 # Is the header present?
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2395 $as_echo_n "checking $2 presence... " >&6; }
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2400 if ac_fn_c_try_cpp "$LINENO"; then :
2401 ac_header_preproc=yes
2403 ac_header_preproc=no
2405 rm -f conftest.err conftest.i conftest.$ac_ext
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2407 $as_echo "$ac_header_preproc" >&6; }
2409 # So? What about this header?
2410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2413 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2415 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2419 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2421 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2423 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2425 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2427 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2428 ( $as_echo "## ---------------------------------- ##
2429 ## Report this to cjwatson@debian.org ##
2430 ## ---------------------------------- ##"
2431 ) | sed "s/^/$as_me: WARNING: /" >&2
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2435 $as_echo_n "checking for $2... " >&6; }
2436 if eval \${$3+:} false; then :
2437 $as_echo_n "(cached) " >&6
2439 eval "$3=\$ac_header_compiler"
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2445 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2447 } # ac_fn_c_check_header_mongrel
2449 # ac_fn_c_try_run LINENO
2450 # ----------------------
2451 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2452 # that executables *can* be run.
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 if { { ac_try="$ac_link"
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463 (eval "$ac_link") 2>&5
2465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2467 { { case "(($ac_try" in
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2472 $as_echo "$ac_try_echo"; } >&5
2473 (eval "$ac_try") 2>&5
2475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2476 test $ac_status = 0; }; }; then :
2479 $as_echo "$as_me: program exited with status $ac_status" >&5
2480 $as_echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2483 ac_retval=$ac_status
2485 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2486 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2487 as_fn_set_status $ac_retval
2491 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2492 # -------------------------------------------------------
2493 # Tests whether HEADER exists and can be compiled using the include files in
2494 # INCLUDES, setting the cache variable VAR accordingly.
2495 ac_fn_c_check_header_compile ()
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2499 $as_echo_n "checking for $2... " >&6; }
2500 if eval \${$3+:} false; then :
2501 $as_echo_n "(cached) " >&6
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2508 if ac_fn_c_try_compile "$LINENO"; then :
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517 $as_echo "$ac_res" >&6; }
2518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520 } # ac_fn_c_check_header_compile
2522 # ac_fn_c_try_link LINENO
2523 # -----------------------
2524 # Try to link conftest.$ac_ext, and return whether this succeeded.
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 rm -f conftest.$ac_objext conftest$ac_exeext
2529 if { { ac_try="$ac_link"
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2535 $as_echo "$ac_try_echo"; } >&5
2536 (eval "$ac_link") 2>conftest.err
2538 if test -s conftest.err; then
2539 grep -v '^ *+' conftest.err >conftest.er1
2540 cat conftest.er1 >&5
2541 mv -f conftest.er1 conftest.err
2543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2544 test $ac_status = 0; } && {
2545 test -z "$ac_c_werror_flag" ||
2546 test ! -s conftest.err
2547 } && test -s conftest$ac_exeext && {
2548 test "$cross_compiling" = yes ||
2549 test -x conftest$ac_exeext
2553 $as_echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2558 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2559 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2560 # interfere with the next link command; also delete a directory that is
2561 # left behind by Apple's compiler. We do this before executing the actions.
2562 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2564 as_fn_set_status $ac_retval
2566 } # ac_fn_c_try_link
2568 # ac_fn_c_check_func LINENO FUNC VAR
2569 # ----------------------------------
2570 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2571 ac_fn_c_check_func ()
2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2575 $as_echo_n "checking for $2... " >&6; }
2576 if eval \${$3+:} false; then :
2577 $as_echo_n "(cached) " >&6
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2581 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2583 #define $2 innocuous_$2
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $2 (); below.
2587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2588 <limits.h> exists even on freestanding compilers. */
2591 # include <limits.h>
2593 # include <assert.h>
2598 /* Override any GCC internal prototype to avoid an error.
2599 Use char because int might match the return type of a GCC
2600 builtin and then its argument prototype would still apply. */
2605 /* The GNU C library defines this for functions which it implements
2606 to always fail with ENOSYS. Some functions are actually named
2607 something starting with __ and the normal name is an alias. */
2608 #if defined __stub_$2 || defined __stub___$2
2620 if ac_fn_c_try_link "$LINENO"; then :
2625 rm -f core conftest.err conftest.$ac_objext \
2626 conftest$ac_exeext conftest.$ac_ext
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633 } # ac_fn_c_check_func
2635 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2636 # -------------------------------------------
2637 # Tests whether TYPE exists after having included INCLUDES, setting cache
2638 # variable VAR accordingly.
2639 ac_fn_c_check_type ()
2641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2643 $as_echo_n "checking for $2... " >&6; }
2644 if eval \${$3+:} false; then :
2645 $as_echo_n "(cached) " >&6
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2660 if ac_fn_c_try_compile "$LINENO"; then :
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h. */
2673 if ac_fn_c_try_compile "$LINENO"; then :
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684 $as_echo "$ac_res" >&6; }
2685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2687 } # ac_fn_c_check_type
2689 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2690 # --------------------------------------------
2691 # Tries to find the compile-time value of EXPR in a program that includes
2692 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2694 ac_fn_c_compute_int ()
2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697 if test "$cross_compiling" = yes; then
2698 # Depending upon the size, compute the lo and hi bounds.
2699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h. */
2705 static int test_array [1 - 2 * !(($2) >= 0)];
2707 return test_array [0];
2713 if ac_fn_c_try_compile "$LINENO"; then :
2716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2717 /* end confdefs.h. */
2722 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2724 return test_array [0];
2730 if ac_fn_c_try_compile "$LINENO"; then :
2731 ac_hi=$ac_mid; break
2733 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2734 if test $ac_lo -le $ac_mid; then
2738 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744 /* end confdefs.h. */
2749 static int test_array [1 - 2 * !(($2) < 0)];
2751 return test_array [0];
2757 if ac_fn_c_try_compile "$LINENO"; then :
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2766 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2768 return test_array [0];
2774 if ac_fn_c_try_compile "$LINENO"; then :
2775 ac_lo=$ac_mid; break
2777 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2778 if test $ac_mid -le $ac_hi; then
2782 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2792 # Binary search between lo and hi bounds.
2793 while test "x$ac_lo" != "x$ac_hi"; do
2794 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796 /* end confdefs.h. */
2801 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2803 return test_array [0];
2809 if ac_fn_c_try_compile "$LINENO"; then :
2812 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2824 static long int longval () { return $2; }
2825 static unsigned long int ulongval () { return $2; }
2832 FILE *f = fopen ("conftest.val", "w");
2837 long int i = longval ();
2840 fprintf (f, "%ld", i);
2844 unsigned long int i = ulongval ();
2847 fprintf (f, "%lu", i);
2849 /* Do not output a trailing newline, as this causes \r\n confusion
2850 on some platforms. */
2851 return ferror (f) || fclose (f) != 0;
2857 if ac_fn_c_try_run "$LINENO"; then :
2858 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2863 conftest.$ac_objext conftest.beam conftest.$ac_ext
2867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2868 as_fn_set_status $ac_retval
2870 } # ac_fn_c_compute_int
2872 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2873 # ---------------------------------------------
2874 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2876 ac_fn_c_check_decl ()
2878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2879 as_decl_name=`echo $2|sed 's/ *(.*//'`
2880 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2882 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2883 if eval \${$3+:} false; then :
2884 $as_echo_n "(cached) " >&6
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h. */
2892 #ifndef $as_decl_name
2894 (void) $as_decl_use;
2896 (void) $as_decl_name;
2904 if ac_fn_c_try_compile "$LINENO"; then :
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2913 $as_echo "$ac_res" >&6; }
2914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2916 } # ac_fn_c_check_decl
2918 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2919 # ----------------------------------------------------
2920 # Tries to find if the field MEMBER exists in type AGGR, after including
2921 # INCLUDES, setting cache variable VAR accordingly.
2922 ac_fn_c_check_member ()
2924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2926 $as_echo_n "checking for $2.$3... " >&6; }
2927 if eval \${$4+:} false; then :
2928 $as_echo_n "(cached) " >&6
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h. */
2943 if ac_fn_c_try_compile "$LINENO"; then :
2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947 /* end confdefs.h. */
2953 if (sizeof ac_aggr.$3)
2959 if ac_fn_c_try_compile "$LINENO"; then :
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2970 $as_echo "$ac_res" >&6; }
2971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2973 } # ac_fn_c_check_member
2974 cat >config.log <<_ACEOF
2975 This file contains any messages produced by compilers while
2976 running configure, to aid debugging if configure makes a mistake.
2978 It was created by libpipeline $as_me 1.5.1, which was
2979 generated by GNU Autoconf 2.69. Invocation command line was
2991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2998 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3000 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3001 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3003 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3004 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3005 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3006 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir=.
3015 $as_echo "PATH: $as_dir"
3031 # Keep a trace of the command line.
3032 # Strip out --no-create and --no-recursion so they do not pile up.
3033 # Strip out --silent because we don't want to record it for future runs.
3034 # Also quote any args containing shell meta-characters.
3035 # Make two passes to allow for proper duplicate-argument suppression.
3039 ac_must_keep_next=false
3045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3047 | -silent | --silent | --silen | --sile | --sil)
3050 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3053 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3055 as_fn_append ac_configure_args1 " '$ac_arg'"
3056 if test $ac_must_keep_next = true; then
3057 ac_must_keep_next=false # Got value, back to normal.
3060 *=* | --config-cache | -C | -disable-* | --disable-* \
3061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3063 | -with-* | --with-* | -without-* | --without-* | --x)
3064 case "$ac_configure_args0 " in
3065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3068 -* ) ac_must_keep_next=true ;;
3071 as_fn_append ac_configure_args " '$ac_arg'"
3076 { ac_configure_args0=; unset ac_configure_args0;}
3077 { ac_configure_args1=; unset ac_configure_args1;}
3079 # When interrupted or exit'd, cleanup temporary files, and complete
3080 # config.log. We remove comments because anyway the quotes in there
3081 # would cause problems or look ugly.
3082 # WARNING: Use '\'' to represent an apostrophe within the trap.
3083 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3084 trap 'exit_status=$?
3085 # Save into config.log some information that might help in debugging.
3089 $as_echo "## ---------------- ##
3090 ## Cache variables. ##
3091 ## ---------------- ##"
3093 # The following way of writing the cache mishandles newlines in values,
3095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3096 eval ac_val=\$$ac_var
3100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3104 _ | IFS | as_nl) ;; #(
3105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3106 *) { eval $ac_var=; unset $ac_var;} ;;
3111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3112 *${as_nl}ac_space=\ *)
3114 "s/'\''/'\''\\\\'\'''\''/g;
3115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3125 $as_echo "## ----------------- ##
3126 ## Output variables. ##
3127 ## ----------------- ##"
3129 for ac_var in $ac_subst_vars
3131 eval ac_val=\$$ac_var
3133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3135 $as_echo "$ac_var='\''$ac_val'\''"
3139 if test -n "$ac_subst_files"; then
3140 $as_echo "## ------------------- ##
3141 ## File substitutions. ##
3142 ## ------------------- ##"
3144 for ac_var in $ac_subst_files
3146 eval ac_val=\$$ac_var
3148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3150 $as_echo "$ac_var='\''$ac_val'\''"
3155 if test -s confdefs.h; then
3156 $as_echo "## ----------- ##
3163 test "$ac_signal" != 0 &&
3164 $as_echo "$as_me: caught signal $ac_signal"
3165 $as_echo "$as_me: exit $exit_status"
3167 rm -f core *.core core.conftest.* &&
3168 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3171 for ac_signal in 1 2 13 15; do
3172 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3177 rm -f -r conftest* confdefs.h
3179 $as_echo "/* confdefs.h */" > confdefs.h
3181 # Predefined preprocessor variables.
3183 cat >>confdefs.h <<_ACEOF
3184 #define PACKAGE_NAME "$PACKAGE_NAME"
3187 cat >>confdefs.h <<_ACEOF
3188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3191 cat >>confdefs.h <<_ACEOF
3192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3195 cat >>confdefs.h <<_ACEOF
3196 #define PACKAGE_STRING "$PACKAGE_STRING"
3199 cat >>confdefs.h <<_ACEOF
3200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3203 cat >>confdefs.h <<_ACEOF
3204 #define PACKAGE_URL "$PACKAGE_URL"
3208 # Let the site file select an alternate cache file if it wants to.
3209 # Prefer an explicitly selected file to automatically selected ones.
3212 if test -n "$CONFIG_SITE"; then
3213 # We do not want a PATH search for config.site.
3214 case $CONFIG_SITE in #((
3215 -*) ac_site_file1=./$CONFIG_SITE;;
3216 */*) ac_site_file1=$CONFIG_SITE;;
3217 *) ac_site_file1=./$CONFIG_SITE;;
3219 elif test "x$prefix" != xNONE; then
3220 ac_site_file1=$prefix/share/config.site
3221 ac_site_file2=$prefix/etc/config.site
3223 ac_site_file1=$ac_default_prefix/share/config.site
3224 ac_site_file2=$ac_default_prefix/etc/config.site
3226 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3228 test "x$ac_site_file" = xNONE && continue
3229 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3231 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3232 sed 's/^/| /' "$ac_site_file" >&5
3234 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error $? "failed to load site script $ac_site_file
3237 See \`config.log' for more details" "$LINENO" 5; }
3241 if test -r "$cache_file"; then
3242 # Some versions of bash will fail to source /dev/null (special files
3243 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3244 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3246 $as_echo "$as_me: loading cache $cache_file" >&6;}
3248 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3249 *) . "./$cache_file";;
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3254 $as_echo "$as_me: creating cache $cache_file" >&6;}
3258 as_fn_append ac_header_list " unistd.h"
3259 as_fn_append ac_func_list " symlink"
3260 as_fn_append ac_func_list " getprogname"
3261 as_fn_append ac_func_list " getexecname"
3262 as_fn_append ac_header_list " sys/time.h"
3263 as_fn_append ac_header_list " sys/socket.h"
3264 as_fn_append ac_func_list " gettimeofday"
3265 as_fn_append ac_header_list " limits.h"
3266 as_fn_append ac_func_list " lstat"
3267 as_fn_append ac_header_list " sys/mman.h"
3268 as_fn_append ac_func_list " mprotect"
3269 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3270 as_fn_append ac_header_list " sys/param.h"
3271 as_fn_append ac_func_list " setenv"
3272 as_fn_append ac_func_list " sigaction"
3273 as_fn_append ac_func_list " sigaltstack"
3274 as_fn_append ac_func_list " siginterrupt"
3275 as_fn_append ac_func_list " snprintf"
3276 as_fn_append ac_header_list " sys/stat.h"
3277 as_fn_append ac_header_list " wchar.h"
3278 as_fn_append ac_header_list " stdint.h"
3279 as_fn_append ac_func_list " strndup"
3280 as_fn_append ac_header_list " sys/select.h"
3281 as_fn_append ac_header_list " sys/wait.h"
3282 as_fn_append ac_func_list " vasnprintf"
3283 as_fn_append ac_header_list " features.h"
3284 as_fn_append ac_header_list " crtdefs.h"
3285 # Check that the precious variables saved in the cache have kept the same
3287 ac_cache_corrupted=false
3288 for ac_var in $ac_precious_vars; do
3289 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3290 eval ac_new_set=\$ac_env_${ac_var}_set
3291 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3292 eval ac_new_val=\$ac_env_${ac_var}_value
3293 case $ac_old_set,$ac_new_set in
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3296 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3297 ac_cache_corrupted=: ;;
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3300 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3301 ac_cache_corrupted=: ;;
3304 if test "x$ac_old_val" != "x$ac_new_val"; then
3305 # differences in whitespace do not lead to failure.
3306 ac_old_val_w=`echo x $ac_old_val`
3307 ac_new_val_w=`echo x $ac_new_val`
3308 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3310 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3311 ac_cache_corrupted=:
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3314 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3315 eval $ac_var=\$ac_old_val
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3318 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3320 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3323 # Pass precious variables to config.status.
3324 if test "$ac_new_set" = set; then
3326 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3327 *) ac_arg=$ac_var=$ac_new_val ;;
3329 case " $ac_configure_args " in
3330 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3331 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3335 if $ac_cache_corrupted; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3339 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3340 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3342 ## -------------------- ##
3343 ## Main body of script. ##
3344 ## -------------------- ##
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354 for ac_dir in build-aux "$srcdir"/build-aux; do
3355 if test -f "$ac_dir/install-sh"; then
3357 ac_install_sh="$ac_aux_dir/install-sh -c"
3359 elif test -f "$ac_dir/install.sh"; then
3361 ac_install_sh="$ac_aux_dir/install.sh -c"
3363 elif test -f "$ac_dir/shtool"; then
3365 ac_install_sh="$ac_aux_dir/shtool install -c"
3369 if test -z "$ac_aux_dir"; then
3370 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3373 # These three variables are undocumented and unsupported,
3374 # and are intended to be withdrawn in a future Autoconf release.
3375 # They can cause serious problems if a builder's source tree is in a directory
3376 # whose full name contains unusual characters.
3377 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3378 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3379 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3382 am__api_version='1.16'
3384 # Find a good install program. We prefer a C program (faster),
3385 # so one script is as good as another. But avoid the broken or
3386 # incompatible versions:
3387 # SysV /etc/install, /usr/sbin/install
3388 # SunOS /usr/etc/install
3389 # IRIX /sbin/install
3391 # AmigaOS /C/install, which installs bootblocks on floppy discs
3392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3395 # OS/2's system install, which has a completely different semantic
3396 # ./install, which can be erroneously created by make from ./install.sh.
3397 # Reject install programs that cannot install multiple files.
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3399 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3400 if test -z "$INSTALL"; then
3401 if ${ac_cv_path_install+:} false; then :
3402 $as_echo_n "(cached) " >&6
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 test -z "$as_dir" && as_dir=.
3409 # Account for people who put trailing slashes in PATH elements.
3410 case $as_dir/ in #((
3411 ./ | .// | /[cC]/* | \
3412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3413 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3416 # OSF1 and SCO ODT 3.0 have their own names for install.
3417 # Don't use installbsd from OSF since it installs stuff as root
3419 for ac_prog in ginstall scoinst install; do
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3422 if test $ac_prog = install &&
3423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3424 # AIX install. It has an incompatible calling convention.
3426 elif test $ac_prog = install &&
3427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3428 # program-specific install script used by HP pwplus--don't use.
3431 rm -rf conftest.one conftest.two conftest.dir
3432 echo one > conftest.one
3433 echo two > conftest.two
3435 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3436 test -s conftest.one && test -s conftest.two &&
3437 test -s conftest.dir/conftest.one &&
3438 test -s conftest.dir/conftest.two
3440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3453 rm -rf conftest.one conftest.two conftest.dir
3456 if test "${ac_cv_path_install+set}" = set; then
3457 INSTALL=$ac_cv_path_install
3459 # As a last resort, use the slow shell script. Don't cache a
3460 # value for INSTALL within a source directory, because that will
3461 # break other packages using the cache if that directory is
3462 # removed, or if the value is a relative name.
3463 INSTALL=$ac_install_sh
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3467 $as_echo "$INSTALL" >&6; }
3469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3470 # It thinks the first close brace ends the variable substitution.
3471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3478 $as_echo_n "checking whether build environment is sane... " >&6; }
3479 # Reject unsafe characters in $srcdir or the absolute working directory
3480 # name. Accept space and tab only in the latter.
3484 *[\\\"\#\$\&\'\`$am_lf]*)
3485 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3488 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3489 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3492 # Do 'set' in a subshell so we don't clobber the current shell's
3493 # arguments. Must try -L first in case configure is actually a
3494 # symlink; some systems play weird games with the mod time of symlinks
3495 # (eg FreeBSD returns the mod time of the symlink's containing
3499 for am_try in 1 2; do
3500 echo "timestamp, slept: $am_has_slept" > conftest.file
3501 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3502 if test "$*" = "X"; then
3504 set X `ls -t "$srcdir/configure" conftest.file`
3506 if test "$*" != "X $srcdir/configure conftest.file" \
3507 && test "$*" != "X conftest.file $srcdir/configure"; then
3509 # If neither matched, then we have a broken ls. This can happen
3510 # if, for instance, CONFIG_SHELL is bash and it inherits a
3511 # broken ls alias from the environment. This has actually
3512 # happened. Such a system could not be considered "sane".
3513 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3514 alias in your environment" "$LINENO" 5
3516 if test "$2" = conftest.file || test $am_try -eq 2; then
3523 test "$2" = conftest.file
3529 as_fn_error $? "newly created file is older than distributed files!
3530 Check your system clock" "$LINENO" 5
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3533 $as_echo "yes" >&6; }
3534 # If we didn't sleep, we still need to ensure time stamps of config.status and
3535 # generated files are strictly newer.
3537 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3544 test "$program_prefix" != NONE &&
3545 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3546 # Use a double $ so make ignores it.
3547 test "$program_suffix" != NONE &&
3548 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3549 # Double any \ or $.
3550 # By default was `s,x,x', remove it if useless.
3551 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3552 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3554 # Expand $ac_aux_dir to an absolute path.
3555 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3557 if test x"${MISSING+set}" != xset; then
3560 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3562 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3565 # Use eval to expand $SHELL
3566 if eval "$MISSING --is-lightweight"; then
3567 am_missing_run="$MISSING "
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3571 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3574 if test x"${install_sh+set}" != xset; then
3577 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3579 install_sh="\${SHELL} $am_aux_dir/install-sh"
3583 # Installed binaries are usually stripped using 'strip' when the user
3584 # run "make install-strip". However 'strip' might not be the right
3585 # tool to use in cross-compilation environments, therefore Automake
3586 # will honor the 'STRIP' environment variable to overrule this program.
3587 if test "$cross_compiling" != no; then
3588 if test -n "$ac_tool_prefix"; then
3589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3590 set dummy ${ac_tool_prefix}strip; ac_word=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if ${ac_cv_prog_STRIP+:} false; then :
3594 $as_echo_n "(cached) " >&6
3596 if test -n "$STRIP"; then
3597 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 STRIP=$ac_cv_prog_STRIP
3617 if test -n "$STRIP"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3619 $as_echo "$STRIP" >&6; }
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3627 if test -z "$ac_cv_prog_STRIP"; then
3629 # Extract the first word of "strip", so it can be a program name with args.
3630 set dummy strip; ac_word=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3634 $as_echo_n "(cached) " >&6
3636 if test -n "$ac_ct_STRIP"; then
3637 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_ac_ct_STRIP="strip"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3657 if test -n "$ac_ct_STRIP"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3659 $as_echo "$ac_ct_STRIP" >&6; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3665 if test "x$ac_ct_STRIP" = x; then
3668 case $cross_compiling:$ac_tool_warned in
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3672 ac_tool_warned=yes ;;
3677 STRIP="$ac_cv_prog_STRIP"
3681 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3685 if test -z "$MKDIR_P"; then
3686 if ${ac_cv_path_mkdir+:} false; then :
3687 $as_echo_n "(cached) " >&6
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3693 test -z "$as_dir" && as_dir=.
3694 for ac_prog in mkdir gmkdir; do
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3697 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3698 'mkdir (GNU coreutils) '* | \
3699 'mkdir (coreutils) '* | \
3700 'mkdir (fileutils) '4.1*)
3701 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3711 test -d ./--version && rmdir ./--version
3712 if test "${ac_cv_path_mkdir+set}" = set; then
3713 MKDIR_P="$ac_cv_path_mkdir -p"
3715 # As a last resort, use the slow shell script. Don't cache a
3716 # value for MKDIR_P within a source directory, because that will
3717 # break other packages using the cache if that directory is
3718 # removed, or if the value is a relative name.
3719 MKDIR_P="$ac_install_sh -d"
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3723 $as_echo "$MKDIR_P" >&6; }
3725 for ac_prog in gawk mawk nawk awk
3727 # Extract the first word of "$ac_prog", so it can be a program name with args.
3728 set dummy $ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if ${ac_cv_prog_AWK+:} false; then :
3732 $as_echo_n "(cached) " >&6
3734 if test -n "$AWK"; then
3735 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_AWK="$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 if test -n "$AWK"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3757 $as_echo "$AWK" >&6; }
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3764 test -n "$AWK" && break
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3768 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3770 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3771 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3772 $as_echo_n "(cached) " >&6
3774 cat >conftest.make <<\_ACEOF
3777 @echo '@@@%%%=$(MAKE)=@@@%%%'
3779 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3780 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3782 eval ac_cv_prog_make_${ac_make}_set=yes;;
3784 eval ac_cv_prog_make_${ac_make}_set=no;;
3788 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3790 $as_echo "yes" >&6; }
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 SET_MAKE="MAKE=${MAKE-make}"
3798 rm -rf .tst 2>/dev/null
3799 mkdir .tst 2>/dev/null
3800 if test -d .tst; then
3805 rmdir .tst 2>/dev/null
3807 # Check whether --enable-silent-rules was given.
3808 if test "${enable_silent_rules+set}" = set; then :
3809 enableval=$enable_silent_rules;
3812 case $enable_silent_rules in # (((
3813 yes) AM_DEFAULT_VERBOSITY=0;;
3814 no) AM_DEFAULT_VERBOSITY=1;;
3815 *) AM_DEFAULT_VERBOSITY=1;;
3817 am_make=${MAKE-make}
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3819 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3820 if ${am_cv_make_support_nested_variables+:} false; then :
3821 $as_echo_n "(cached) " >&6
3823 if $as_echo 'TRUE=$(BAR$(V))
3829 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3830 am_cv_make_support_nested_variables=yes
3832 am_cv_make_support_nested_variables=no
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3836 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3837 if test $am_cv_make_support_nested_variables = yes; then
3839 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3841 AM_V=$AM_DEFAULT_VERBOSITY
3842 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3846 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3847 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3848 # is not polluted with repeated "-I."
3849 am__isrc=' -I$(srcdir)'
3850 # test to see if srcdir already configured
3851 if test -f $srcdir/config.status; then
3852 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3856 # test whether we have cygpath
3857 if test -z "$CYGPATH_W"; then
3858 if (cygpath --version) >/dev/null 2>/dev/null; then
3859 CYGPATH_W='cygpath -w'
3866 # Define the identity of the package.
3867 PACKAGE='libpipeline'
3871 cat >>confdefs.h <<_ACEOF
3872 #define PACKAGE "$PACKAGE"
3876 cat >>confdefs.h <<_ACEOF
3877 #define VERSION "$VERSION"
3880 # Some tools Automake needs.
3882 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3885 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3888 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3891 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3894 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3896 # For better backward compatibility. To be removed once Automake 1.9.x
3897 # dies out for good. For more background, see:
3898 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3899 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3900 mkdir_p='$(MKDIR_P)'
3902 # We need awk for the "check" target (and possibly the TAP driver). The
3903 # system "awk" is bad on some platforms.
3904 # Always define AMTAR for backward compatibility. Yes, it's still used
3905 # in the wild :-( We should find a proper way to deprecate it ...
3909 # We'll loop over all known methods to create a tar archive until one works.
3910 _am_tools='gnutar pax cpio none'
3912 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3919 # POSIX will say in a future version that running "rm -f" with no argument
3920 # is OK; and we want to be able to make that assumption in our Makefile
3921 # recipes. So use an aggressive probe to check that the usage we want is
3922 # actually supported "in the wild" to an acceptable degree.
3923 # See automake bug#10828.
3924 # To make any issue more visible, cause the running configure to be aborted
3925 # by default if the 'rm' program in use doesn't match our expectations; the
3926 # user can still override this though.
3927 if rm -f && rm -fr && rm -rf; then : OK; else
3931 Your 'rm' program seems unable to run without file operands specified
3932 on the command line, even when the '-f' option is present. This is contrary
3933 to the behaviour of most rm programs out there, and not conforming with
3934 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3936 Please tell bug-automake@gnu.org about your system, including the value
3937 of your $PATH and any error possibly output before this message. This
3938 can help us improve future automake versions.
3941 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3942 echo 'Configuration will proceed anyway, since you have set the' >&2
3943 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3947 Aborting the configuration process, to ensure you take notice of the issue.
3949 You can download and install GNU coreutils to get an 'rm' implementation
3950 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3952 If you want to complete the configuration process using your problematic
3953 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3954 to "yes", and re-run configure.
3957 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3963 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3964 # Check whether --enable-maintainer-mode was given.
3965 if test "${enable_maintainer_mode+set}" = set; then :
3966 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3968 USE_MAINTAINER_MODE=no
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3972 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3973 if test $USE_MAINTAINER_MODE = yes; then
3974 MAINTAINER_MODE_TRUE=
3975 MAINTAINER_MODE_FALSE='#'
3977 MAINTAINER_MODE_TRUE='#'
3978 MAINTAINER_MODE_FALSE=
3981 MAINT=$MAINTAINER_MODE_TRUE
3984 # Check whether --enable-silent-rules was given.
3985 if test "${enable_silent_rules+set}" = set; then :
3986 enableval=$enable_silent_rules;
3989 case $enable_silent_rules in # (((
3990 yes) AM_DEFAULT_VERBOSITY=0;;
3991 no) AM_DEFAULT_VERBOSITY=1;;
3992 *) AM_DEFAULT_VERBOSITY=0;;
3994 am_make=${MAKE-make}
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3996 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3997 if ${am_cv_make_support_nested_variables+:} false; then :
3998 $as_echo_n "(cached) " >&6
4000 if $as_echo 'TRUE=$(BAR$(V))
4006 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4007 am_cv_make_support_nested_variables=yes
4009 am_cv_make_support_nested_variables=no
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4013 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4014 if test $am_cv_make_support_nested_variables = yes; then
4016 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4018 AM_V=$AM_DEFAULT_VERBOSITY
4019 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4025 DEPDIR="${am__leading_dot}deps"
4027 ac_config_commands="$ac_config_commands depfiles"
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4030 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4031 cat > confinc.mk << 'END'
4033 @echo this is the am__doit target >confinc.out
4038 # BSD make does it like this.
4039 echo '.include "confinc.mk" # ignored' > confmf.BSD
4040 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4041 echo 'include confinc.mk # ignored' > confmf.GNU
4043 for s in GNU BSD; do
4044 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4045 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }
4049 case $?:`cat confinc.out 2>/dev/null` in #(
4050 '0:this is the am__doit target') :
4053 am__include='.include' am__quote='"' ;; #(
4055 am__include='include' am__quote='' ;;
4060 if test "$am__include" != "#"; then
4061 _am_result="yes ($s style)"
4065 rm -f confinc.* confmf.*
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4067 $as_echo "${_am_result}" >&6; }
4069 # Check whether --enable-dependency-tracking was given.
4070 if test "${enable_dependency_tracking+set}" = set; then :
4071 enableval=$enable_dependency_tracking;
4074 if test "x$enable_dependency_tracking" != xno; then
4075 am_depcomp="$ac_aux_dir/depcomp"
4079 if test "x$enable_dependency_tracking" != xno; then
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 if test -n "$ac_tool_prefix"; then
4094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_CC+:} false; then :
4099 $as_echo_n "(cached) " >&6
4101 if test -n "$CC"; then
4102 ac_cv_prog_CC="$CC" # Let the user override the test.
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 if test -n "$CC"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4124 $as_echo "$CC" >&6; }
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4132 if test -z "$ac_cv_prog_CC"; then
4134 # Extract the first word of "gcc", so it can be a program name with args.
4135 set dummy gcc; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4139 $as_echo_n "(cached) " >&6
4141 if test -n "$ac_ct_CC"; then
4142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_ac_ct_CC="gcc"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4162 if test -n "$ac_ct_CC"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4164 $as_echo "$ac_ct_CC" >&6; }
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4170 if test "x$ac_ct_CC" = x; then
4173 case $cross_compiling:$ac_tool_warned in
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4177 ac_tool_warned=yes ;;
4185 if test -z "$CC"; then
4186 if test -n "$ac_tool_prefix"; then
4187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4188 set dummy ${ac_tool_prefix}cc; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_CC+:} false; then :
4192 $as_echo_n "(cached) " >&6
4194 if test -n "$CC"; then
4195 ac_cv_prog_CC="$CC" # Let the user override the test.
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_prog_CC="${ac_tool_prefix}cc"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 if test -n "$CC"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4217 $as_echo "$CC" >&6; }
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4226 if test -z "$CC"; then
4227 # Extract the first word of "cc", so it can be a program name with args.
4228 set dummy cc; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_CC+:} false; then :
4232 $as_echo_n "(cached) " >&6
4234 if test -n "$CC"; then
4235 ac_cv_prog_CC="$CC" # Let the user override the test.
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4246 ac_prog_rejected=yes
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 if test $ac_prog_rejected = yes; then
4258 # We found a bogon in the path, so make sure we never use it.
4259 set dummy $ac_cv_prog_CC
4261 if test $# != 0; then
4262 # We chose a different compiler from the bogus one.
4263 # However, it has the same basename, so the bogon will be chosen
4264 # first if we set CC to just the basename; use the full file name.
4266 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4272 if test -n "$CC"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274 $as_echo "$CC" >&6; }
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4282 if test -z "$CC"; then
4283 if test -n "$ac_tool_prefix"; then
4284 for ac_prog in cl.exe
4286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if ${ac_cv_prog_CC+:} false; then :
4291 $as_echo_n "(cached) " >&6
4293 if test -n "$CC"; then
4294 ac_cv_prog_CC="$CC" # Let the user override the test.
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4303 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 if test -n "$CC"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4316 $as_echo "$CC" >&6; }
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4323 test -n "$CC" && break
4326 if test -z "$CC"; then
4328 for ac_prog in cl.exe
4330 # Extract the first word of "$ac_prog", so it can be a program name with args.
4331 set dummy $ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4335 $as_echo_n "(cached) " >&6
4337 if test -n "$ac_ct_CC"; then
4338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_ac_ct_CC="$ac_prog"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4358 if test -n "$ac_ct_CC"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4360 $as_echo "$ac_ct_CC" >&6; }
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4367 test -n "$ac_ct_CC" && break
4370 if test "x$ac_ct_CC" = x; then
4373 case $cross_compiling:$ac_tool_warned in
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned=yes ;;
4386 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4388 as_fn_error $? "no acceptable C compiler found in \$PATH
4389 See \`config.log' for more details" "$LINENO" 5; }
4391 # Provide some information about the compiler.
4392 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4395 for ac_option in --version -v -V -qversion; do
4396 { { ac_try="$ac_compiler $ac_option >&5"
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4405 if test -s conftest.err; then
4407 ... rest of stderr output deleted ...
4408 10q' conftest.err >conftest.er1
4409 cat conftest.er1 >&5
4411 rm -f conftest.er1 conftest.err
4412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413 test $ac_status = 0; }
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4427 ac_clean_files_save=$ac_clean_files
4428 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4429 # Try to create an executable without -o first, disregard a.out.
4430 # It will help us diagnose broken compilers, and finding out an intuition
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4433 $as_echo_n "checking whether the C compiler works... " >&6; }
4434 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4436 # The possible output files:
4437 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4440 for ac_file in $ac_files
4443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4444 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4449 if { { ac_try="$ac_link_default"
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_link_default") 2>&5
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }; then :
4460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4461 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4462 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4463 # so that the user can short-circuit this test for compilers unknown to
4465 for ac_file in $ac_files ''
4467 test -f "$ac_file" || continue
4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4472 # We found the default executable, but exeext='' is most
4476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4480 # We set ac_cv_exeext here because the later test for it is not
4481 # safe: cross compilers may not add the suffix if given an `-o'
4482 # argument, so we may need to know it at that point already.
4483 # Even if this section looks crufty: it has the advantage of
4490 test "$ac_cv_exeext" = no && ac_cv_exeext=
4495 if test -z "$ac_file"; then :
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4498 $as_echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4503 as_fn_error 77 "C compiler cannot create executables
4504 See \`config.log' for more details" "$LINENO" 5; }
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4507 $as_echo "yes" >&6; }
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4510 $as_echo_n "checking for C compiler default output file name... " >&6; }
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4512 $as_echo "$ac_file" >&6; }
4513 ac_exeext=$ac_cv_exeext
4515 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4516 ac_clean_files=$ac_clean_files_save
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4518 $as_echo_n "checking for suffix of executables... " >&6; }
4519 if { { ac_try="$ac_link"
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525 $as_echo "$ac_try_echo"; } >&5
4526 (eval "$ac_link") 2>&5
4528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529 test $ac_status = 0; }; then :
4530 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4531 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4532 # work properly (i.e., refer to `conftest.exe'), while it won't with
4534 for ac_file in conftest.exe conftest conftest.*; do
4535 test -f "$ac_file" || continue
4537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4538 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4546 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4547 See \`config.log' for more details" "$LINENO" 5; }
4549 rm -f conftest conftest$ac_cv_exeext
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4551 $as_echo "$ac_cv_exeext" >&6; }
4553 rm -f conftest.$ac_ext
4554 EXEEXT=$ac_cv_exeext
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4562 FILE *f = fopen ("conftest.out", "w");
4563 return ferror (f) || fclose (f) != 0;
4569 ac_clean_files="$ac_clean_files conftest.out"
4570 # Check that the compiler produces executables we can run. If not, either
4571 # the compiler is broken, or we cross compile.
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4573 $as_echo_n "checking whether we are cross compiling... " >&6; }
4574 if test "$cross_compiling" != yes; then
4575 { { ac_try="$ac_link"
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 $as_echo "$ac_try_echo"; } >&5
4582 (eval "$ac_link") 2>&5
4584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585 test $ac_status = 0; }
4586 if { ac_try='./conftest$ac_cv_exeext'
4587 { { case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592 $as_echo "$ac_try_echo"; } >&5
4593 (eval "$ac_try") 2>&5
4595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596 test $ac_status = 0; }; }; then
4599 if test "$cross_compiling" = maybe; then
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error $? "cannot run C compiled programs.
4605 If you meant to cross compile, use \`--host'.
4606 See \`config.log' for more details" "$LINENO" 5; }
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4611 $as_echo "$cross_compiling" >&6; }
4613 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4614 ac_clean_files=$ac_clean_files_save
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4616 $as_echo_n "checking for suffix of object files... " >&6; }
4617 if ${ac_cv_objext+:} false; then :
4618 $as_echo_n "(cached) " >&6
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4631 rm -f conftest.o conftest.obj
4632 if { { ac_try="$ac_compile"
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638 $as_echo "$ac_try_echo"; } >&5
4639 (eval "$ac_compile") 2>&5
4641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }; then :
4643 for ac_file in conftest.o conftest.obj conftest.*; do
4644 test -f "$ac_file" || continue;
4646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4647 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4652 $as_echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4657 as_fn_error $? "cannot compute suffix of object files: cannot compile
4658 See \`config.log' for more details" "$LINENO" 5; }
4660 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4663 $as_echo "$ac_cv_objext" >&6; }
4664 OBJEXT=$ac_cv_objext
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4668 if ${ac_cv_c_compiler_gnu+:} false; then :
4669 $as_echo_n "(cached) " >&6
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4685 if ac_fn_c_try_compile "$LINENO"; then :
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4696 if test $ac_compiler_gnu = yes; then
4701 ac_test_CFLAGS=${CFLAGS+set}
4702 ac_save_CFLAGS=$CFLAGS
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4705 if ${ac_cv_prog_cc_g+:} false; then :
4706 $as_echo_n "(cached) " >&6
4708 ac_save_c_werror_flag=$ac_c_werror_flag
4709 ac_c_werror_flag=yes
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4723 if ac_fn_c_try_compile "$LINENO"; then :
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4738 if ac_fn_c_try_compile "$LINENO"; then :
4741 ac_c_werror_flag=$ac_save_c_werror_flag
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4754 if ac_fn_c_try_compile "$LINENO"; then :
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 ac_c_werror_flag=$ac_save_c_werror_flag
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4765 $as_echo "$ac_cv_prog_cc_g" >&6; }
4766 if test "$ac_test_CFLAGS" = set; then
4767 CFLAGS=$ac_save_CFLAGS
4768 elif test $ac_cv_prog_cc_g = yes; then
4769 if test "$GCC" = yes; then
4775 if test "$GCC" = yes; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4783 if ${ac_cv_prog_cc_c89+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 ac_cv_prog_cc_c89=no
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4794 struct buf { int x; };
4795 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4796 static char *e (p, i)
4802 static char *f (char * (*g) (char **, int), char **p, ...)
4807 s = g (p, va_arg (v,int));
4812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4813 function prototypes and stuff, but not '\xHH' hex character constants.
4814 These don't provoke an error unfortunately, instead are silently treated
4815 as 'x'. The following induces an error, until -std is added to get
4816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4817 array size at least. It's necessary to write '\x00'==0 to get something
4818 that's true only with -std. */
4819 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4822 inside strings and character constants. */
4824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4826 int test (int i, double x);
4827 struct s1 {int (*f) (int a);};
4828 struct s2 {int (*f) (double a);};
4829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4835 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4843 CC="$ac_save_CC $ac_arg"
4844 if ac_fn_c_try_compile "$LINENO"; then :
4845 ac_cv_prog_cc_c89=$ac_arg
4847 rm -f core conftest.err conftest.$ac_objext
4848 test "x$ac_cv_prog_cc_c89" != "xno" && break
4850 rm -f conftest.$ac_ext
4855 case "x$ac_cv_prog_cc_c89" in
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4858 $as_echo "none needed" >&6; } ;;
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4861 $as_echo "unsupported" >&6; } ;;
4863 CC="$CC $ac_cv_prog_cc_c89"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4867 if test "x$ac_cv_prog_cc_c89" != xno; then :
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4883 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4884 if ${am_cv_prog_cc_c_o+:} false; then :
4885 $as_echo_n "(cached) " >&6
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4898 # Make sure it works both with $CC and with simple cc.
4899 # Following AC_PROG_CC_C_O, we do the test twice because some
4900 # compilers refuse to overwrite an existing .o file with -o,
4901 # though they will create one.
4902 am_cv_prog_cc_c_o=yes
4904 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4905 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } \
4909 && test -f conftest2.$ac_objext; then
4912 am_cv_prog_cc_c_o=no
4916 rm -f core conftest*
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4920 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4921 if test "$am_cv_prog_cc_c_o" != yes; then
4922 # Losing compiler, so override with the script.
4923 # FIXME: It is wrong to rewrite CC.
4924 # But if we don't then we get into trouble of one sort or another.
4925 # A longer-term fix would be to have automake use am__CC in this case,
4926 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4927 CC="$am_aux_dir/compile $CC"
4930 ac_cpp='$CPP $CPPFLAGS'
4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4936 depcc="$CC" am_compiler_list=
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4939 $as_echo_n "checking dependency style of $depcc... " >&6; }
4940 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4941 $as_echo_n "(cached) " >&6
4943 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4944 # We make a subdir and do the tests there. Otherwise we can end up
4945 # making bogus files that we don't know about and never remove. For
4946 # instance it was reported that on HP-UX the gcc test will end up
4947 # making a dummy file named 'D' -- because '-MD' means "put the output
4951 # Copy depcomp to subdir because otherwise we won't find it if we're
4952 # using a relative directory.
4953 cp "$am_depcomp" conftest.dir
4955 # We will build objects and dependencies in a subdirectory because
4956 # it helps to detect inapplicable dependency modes. For instance
4957 # both Tru64's cc and ICC support -MD to output dependencies as a
4958 # side effect of compilation, but ICC will put the dependencies in
4959 # the current directory while Tru64 will put them in the object
4963 am_cv_CC_dependencies_compiler_type=none
4964 if test "$am_compiler_list" = ""; then
4965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4968 case " $depcc " in #(
4969 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4972 for depmode in $am_compiler_list; do
4973 # Setup a source with many dependencies, because some compilers
4974 # like to wrap large dependency lists on column 80 (with \), and
4975 # we should not choose a depcomp mode which is confused by this.
4977 # We need to recreate these files for each test, as the compiler may
4978 # overwrite some of them when testing with obscure command lines.
4979 # This happens at least with the AIX C compiler.
4981 for i in 1 2 3 4 5 6; do
4982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4983 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4984 # Solaris 10 /bin/sh.
4985 echo '/* dummy */' > sub/conftst$i.h
4987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4989 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4990 # mode. It turns out that the SunPro C++ compiler does not properly
4991 # handle '-M -o', and we need to detect this. Also, some Intel
4992 # versions had trouble with output in subdirs.
4993 am__obj=sub/conftest.${OBJEXT-o}
4994 am__minus_obj="-o $am__obj"
4997 # This depmode causes a compiler race in universal mode.
4998 test "$am__universal" = false || continue
5001 # After this tag, mechanisms are not by side-effect, so they'll
5002 # only be used when explicitly requested.
5003 if test "x$enable_dependency_tracking" = xyes; then
5009 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5010 # This compiler won't grok '-c -o', but also, the minuso test has
5011 # not run yet. These depmodes are late enough in the game, and
5012 # so weak that their functioning should not be impacted.
5013 am__obj=conftest.${OBJEXT-o}
5018 if depmode=$depmode \
5019 source=sub/conftest.c object=$am__obj \
5020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5021 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5022 >/dev/null 2>conftest.err &&
5023 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5024 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5025 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5026 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5027 # icc doesn't choke on unknown options, it will just issue warnings
5028 # or remarks (even with -Werror). So we grep stderr for any message
5029 # that says an option was ignored or not supported.
5030 # When given -MP, icc 7.0 and 7.1 complain thusly:
5031 # icc: Command line warning: ignoring option '-M'; no argument required
5032 # The diagnosis changed in icc 8.0:
5033 # icc: Command line remark: option '-MP' not supported
5034 if (grep 'ignoring option' conftest.err ||
5035 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5036 am_cv_CC_dependencies_compiler_type=$depmode
5045 am_cv_CC_dependencies_compiler_type=none
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5050 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5051 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5054 test "x$enable_dependency_tracking" != xno \
5055 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5057 am__fastdepCC_FALSE='#'
5059 am__fastdepCC_TRUE='#'
5060 am__fastdepCC_FALSE=
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5071 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5072 # On Suns, sometimes $CPP names a directory.
5073 if test -n "$CPP" && test -d "$CPP"; then
5076 if test -z "$CPP"; then
5077 if ${ac_cv_prog_CPP+:} false; then :
5078 $as_echo_n "(cached) " >&6
5080 # Double quotes because CPP needs to be expanded
5081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5084 for ac_c_preproc_warn_flag in '' yes
5086 # Use a header file that comes with gcc, so configuring glibc
5087 # with a fresh cross-compiler works.
5088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 # <limits.h> exists even on freestanding compilers.
5090 # On the NeXT, cc -E runs the code through the compiler's parser,
5091 # not just through cpp. "Syntax error" is here to catch this case.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5095 # include <limits.h>
5097 # include <assert.h>
5101 if ac_fn_c_try_cpp "$LINENO"; then :
5104 # Broken: fails on valid input.
5107 rm -f conftest.err conftest.i conftest.$ac_ext
5109 # OK, works on sane cases. Now check whether nonexistent headers
5110 # can be detected and how.
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113 #include <ac_nonexistent.h>
5115 if ac_fn_c_try_cpp "$LINENO"; then :
5116 # Broken: success on invalid input.
5119 # Passes both tests.
5123 rm -f conftest.err conftest.i conftest.$ac_ext
5126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127 rm -f conftest.i conftest.err conftest.$ac_ext
5128 if $ac_preproc_ok; then :
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5141 $as_echo "$CPP" >&6; }
5143 for ac_c_preproc_warn_flag in '' yes
5145 # Use a header file that comes with gcc, so configuring glibc
5146 # with a fresh cross-compiler works.
5147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148 # <limits.h> exists even on freestanding compilers.
5149 # On the NeXT, cc -E runs the code through the compiler's parser,
5150 # not just through cpp. "Syntax error" is here to catch this case.
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5154 # include <limits.h>
5156 # include <assert.h>
5160 if ac_fn_c_try_cpp "$LINENO"; then :
5163 # Broken: fails on valid input.
5166 rm -f conftest.err conftest.i conftest.$ac_ext
5168 # OK, works on sane cases. Now check whether nonexistent headers
5169 # can be detected and how.
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172 #include <ac_nonexistent.h>
5174 if ac_fn_c_try_cpp "$LINENO"; then :
5175 # Broken: success on invalid input.
5178 # Passes both tests.
5182 rm -f conftest.err conftest.i conftest.$ac_ext
5185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186 rm -f conftest.i conftest.err conftest.$ac_ext
5187 if $ac_preproc_ok; then :
5190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5192 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5193 See \`config.log' for more details" "$LINENO" 5; }
5197 ac_cpp='$CPP $CPPFLAGS'
5198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5204 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5205 if ${ac_cv_path_GREP+:} false; then :
5206 $as_echo_n "(cached) " >&6
5208 if test -z "$GREP"; then
5209 ac_path_GREP_found=false
5210 # Loop through the user's path and test for each of PROGNAME-LIST
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5215 test -z "$as_dir" && as_dir=.
5216 for ac_prog in grep ggrep; do
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5219 as_fn_executable_p "$ac_path_GREP" || continue
5220 # Check for GNU ac_path_GREP and select it if it is found.
5221 # Check for GNU $ac_path_GREP
5222 case `"$ac_path_GREP" --version 2>&1` in
5224 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5227 $as_echo_n 0123456789 >"conftest.in"
5230 cat "conftest.in" "conftest.in" >"conftest.tmp"
5231 mv "conftest.tmp" "conftest.in"
5232 cp "conftest.in" "conftest.nl"
5233 $as_echo 'GREP' >> "conftest.nl"
5234 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5236 as_fn_arith $ac_count + 1 && ac_count=$as_val
5237 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5238 # Best one so far, save it but keep looking for a better one
5239 ac_cv_path_GREP="$ac_path_GREP"
5240 ac_path_GREP_max=$ac_count
5242 # 10*(2^10) chars as input seems more than enough
5243 test $ac_count -gt 10 && break
5245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5248 $ac_path_GREP_found && break 3
5253 if test -z "$ac_cv_path_GREP"; then
5254 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5257 ac_cv_path_GREP=$GREP
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5262 $as_echo "$ac_cv_path_GREP" >&6; }
5263 GREP="$ac_cv_path_GREP"
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5267 $as_echo_n "checking for egrep... " >&6; }
5268 if ${ac_cv_path_EGREP+:} false; then :
5269 $as_echo_n "(cached) " >&6
5271 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5272 then ac_cv_path_EGREP="$GREP -E"
5274 if test -z "$EGREP"; then
5275 ac_path_EGREP_found=false
5276 # Loop through the user's path and test for each of PROGNAME-LIST
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5281 test -z "$as_dir" && as_dir=.
5282 for ac_prog in egrep; do
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5285 as_fn_executable_p "$ac_path_EGREP" || continue
5286 # Check for GNU ac_path_EGREP and select it if it is found.
5287 # Check for GNU $ac_path_EGREP
5288 case `"$ac_path_EGREP" --version 2>&1` in
5290 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5293 $as_echo_n 0123456789 >"conftest.in"
5296 cat "conftest.in" "conftest.in" >"conftest.tmp"
5297 mv "conftest.tmp" "conftest.in"
5298 cp "conftest.in" "conftest.nl"
5299 $as_echo 'EGREP' >> "conftest.nl"
5300 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5302 as_fn_arith $ac_count + 1 && ac_count=$as_val
5303 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5304 # Best one so far, save it but keep looking for a better one
5305 ac_cv_path_EGREP="$ac_path_EGREP"
5306 ac_path_EGREP_max=$ac_count
5308 # 10*(2^10) chars as input seems more than enough
5309 test $ac_count -gt 10 && break
5311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5314 $ac_path_EGREP_found && break 3
5319 if test -z "$ac_cv_path_EGREP"; then
5320 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5323 ac_cv_path_EGREP=$EGREP
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5329 $as_echo "$ac_cv_path_EGREP" >&6; }
5330 EGREP="$ac_cv_path_EGREP"
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5334 $as_echo_n "checking for ANSI C header files... " >&6; }
5335 if ${ac_cv_header_stdc+:} false; then :
5336 $as_echo_n "(cached) " >&6
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5353 if ac_fn_c_try_compile "$LINENO"; then :
5354 ac_cv_header_stdc=yes
5356 ac_cv_header_stdc=no
5358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360 if test $ac_cv_header_stdc = yes; then
5361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5368 $EGREP "memchr" >/dev/null 2>&1; then :
5371 ac_cv_header_stdc=no
5377 if test $ac_cv_header_stdc = yes; then
5378 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5385 $EGREP "free" >/dev/null 2>&1; then :
5388 ac_cv_header_stdc=no
5394 if test $ac_cv_header_stdc = yes; then
5395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5396 if test "$cross_compiling" = yes; then :
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5403 #if ((' ' & 0x0FF) == 0x020)
5404 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5405 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5407 # define ISLOWER(c) \
5408 (('a' <= (c) && (c) <= 'i') \
5409 || ('j' <= (c) && (c) <= 'r') \
5410 || ('s' <= (c) && (c) <= 'z'))
5411 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5414 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5419 for (i = 0; i < 256; i++)
5420 if (XOR (islower (i), ISLOWER (i))
5421 || toupper (i) != TOUPPER (i))
5426 if ac_fn_c_try_run "$LINENO"; then :
5429 ac_cv_header_stdc=no
5431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5432 conftest.$ac_objext conftest.beam conftest.$ac_ext
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5438 $as_echo "$ac_cv_header_stdc" >&6; }
5439 if test $ac_cv_header_stdc = yes; then
5441 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5445 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5446 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5447 inttypes.h stdint.h unistd.h
5449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5452 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5453 cat >>confdefs.h <<_ACEOF
5454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5463 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5464 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5471 if test "$MINIX" = yes; then
5473 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5476 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5479 $as_echo "#define _MINIX 1" >>confdefs.h
5482 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5488 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5489 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5490 $as_echo_n "(cached) " >&6
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5495 # define __EXTENSIONS__ 1
5496 $ac_includes_default
5505 if ac_fn_c_try_compile "$LINENO"; then :
5506 ac_cv_safe_to_define___extensions__=yes
5508 ac_cv_safe_to_define___extensions__=no
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5513 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5514 test $ac_cv_safe_to_define___extensions__ = yes &&
5515 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5517 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5519 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5521 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5523 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5525 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5527 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5529 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5531 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5533 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5535 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5537 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5539 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5541 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5543 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5546 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5547 if ${ac_cv_should_define__xopen_source+:} false; then :
5548 $as_echo_n "(cached) " >&6
5550 ac_cv_should_define__xopen_source=no
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5564 if ac_fn_c_try_compile "$LINENO"; then :
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5570 #define _XOPEN_SOURCE 500
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 ac_cv_should_define__xopen_source=yes
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5589 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5590 test $ac_cv_should_define__xopen_source = yes &&
5591 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5593 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tar --sort=name works" >&5
5600 $as_echo_n "checking if tar --sort=name works... " >&6; }
5603 echo GrepMe > conftest.dir/file
5604 { echo "$as_me:$LINENO: ${TAR-tar} chof - conftest.dir --sort=name >conftest.tar" >&5
5605 (${TAR-tar} chof - conftest.dir --sort=name >conftest.tar) >&5 2>&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }
5609 if test -s conftest.tar; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5611 $as_echo "yes" >&6; }
5612 am__tar="$am__tar --sort=name"
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5620 ac_config_headers="$ac_config_headers config.h"
5622 # Make sure we can run config.sub.
5623 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5624 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5627 $as_echo_n "checking build system type... " >&6; }
5628 if ${ac_cv_build+:} false; then :
5629 $as_echo_n "(cached) " >&6
5631 ac_build_alias=$build_alias
5632 test "x$ac_build_alias" = x &&
5633 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5634 test "x$ac_build_alias" = x &&
5635 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5636 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5637 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5641 $as_echo "$ac_cv_build" >&6; }
5642 case $ac_cv_build in
5644 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5647 ac_save_IFS=$IFS; IFS='-'
5653 # Remember, the first character of IFS is used to create $*,
5654 # except with old shells:
5657 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5661 $as_echo_n "checking host system type... " >&6; }
5662 if ${ac_cv_host+:} false; then :
5663 $as_echo_n "(cached) " >&6
5665 if test "x$host_alias" = x; then
5666 ac_cv_host=$ac_cv_build
5668 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5669 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5674 $as_echo "$ac_cv_host" >&6; }
5677 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5680 ac_save_IFS=$IFS; IFS='-'
5686 # Remember, the first character of IFS is used to create $*,
5687 # except with old shells:
5690 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5694 # Check $PATH for the following programs and append suitable options.
5696 ac_cpp='$CPP $CPPFLAGS'
5697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700 if test -n "$ac_tool_prefix"; then
5701 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5702 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if ${ac_cv_prog_CC+:} false; then :
5706 $as_echo_n "(cached) " >&6
5708 if test -n "$CC"; then
5709 ac_cv_prog_CC="$CC" # Let the user override the test.
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 if test -n "$CC"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5731 $as_echo "$CC" >&6; }
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5739 if test -z "$ac_cv_prog_CC"; then
5741 # Extract the first word of "gcc", so it can be a program name with args.
5742 set dummy gcc; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5746 $as_echo_n "(cached) " >&6
5748 if test -n "$ac_ct_CC"; then
5749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_ac_ct_CC="gcc"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5769 if test -n "$ac_ct_CC"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5771 $as_echo "$ac_ct_CC" >&6; }
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5777 if test "x$ac_ct_CC" = x; then
5780 case $cross_compiling:$ac_tool_warned in
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5784 ac_tool_warned=yes ;;
5792 if test -z "$CC"; then
5793 if test -n "$ac_tool_prefix"; then
5794 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5795 set dummy ${ac_tool_prefix}cc; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_CC+:} false; then :
5799 $as_echo_n "(cached) " >&6
5801 if test -n "$CC"; then
5802 ac_cv_prog_CC="$CC" # Let the user override the test.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_CC="${ac_tool_prefix}cc"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 if test -n "$CC"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5824 $as_echo "$CC" >&6; }
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5833 if test -z "$CC"; then
5834 # Extract the first word of "cc", so it can be a program name with args.
5835 set dummy cc; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if ${ac_cv_prog_CC+:} false; then :
5839 $as_echo_n "(cached) " >&6
5841 if test -n "$CC"; then
5842 ac_cv_prog_CC="$CC" # Let the user override the test.
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5853 ac_prog_rejected=yes
5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 if test $ac_prog_rejected = yes; then
5865 # We found a bogon in the path, so make sure we never use it.
5866 set dummy $ac_cv_prog_CC
5868 if test $# != 0; then
5869 # We chose a different compiler from the bogus one.
5870 # However, it has the same basename, so the bogon will be chosen
5871 # first if we set CC to just the basename; use the full file name.
5873 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5879 if test -n "$CC"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5881 $as_echo "$CC" >&6; }
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5889 if test -z "$CC"; then
5890 if test -n "$ac_tool_prefix"; then
5891 for ac_prog in cl.exe
5893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if ${ac_cv_prog_CC+:} false; then :
5898 $as_echo_n "(cached) " >&6
5900 if test -n "$CC"; then
5901 ac_cv_prog_CC="$CC" # Let the user override the test.
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 if test -n "$CC"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5923 $as_echo "$CC" >&6; }
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5930 test -n "$CC" && break
5933 if test -z "$CC"; then
5935 for ac_prog in cl.exe
5937 # Extract the first word of "$ac_prog", so it can be a program name with args.
5938 set dummy $ac_prog; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5942 $as_echo_n "(cached) " >&6
5944 if test -n "$ac_ct_CC"; then
5945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_ac_ct_CC="$ac_prog"
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5965 if test -n "$ac_ct_CC"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5967 $as_echo "$ac_ct_CC" >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5974 test -n "$ac_ct_CC" && break
5977 if test "x$ac_ct_CC" = x; then
5980 case $cross_compiling:$ac_tool_warned in
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5984 ac_tool_warned=yes ;;
5993 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5995 as_fn_error $? "no acceptable C compiler found in \$PATH
5996 See \`config.log' for more details" "$LINENO" 5; }
5998 # Provide some information about the compiler.
5999 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6002 for ac_option in --version -v -V -qversion; do
6003 { { ac_try="$ac_compiler $ac_option >&5"
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6009 $as_echo "$ac_try_echo"; } >&5
6010 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6012 if test -s conftest.err; then
6014 ... rest of stderr output deleted ...
6015 10q' conftest.err >conftest.er1
6016 cat conftest.er1 >&5
6018 rm -f conftest.er1 conftest.err
6019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6020 test $ac_status = 0; }
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6024 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6025 if ${ac_cv_c_compiler_gnu+:} false; then :
6026 $as_echo_n "(cached) " >&6
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6042 if ac_fn_c_try_compile "$LINENO"; then :
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6052 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6053 if test $ac_compiler_gnu = yes; then
6058 ac_test_CFLAGS=${CFLAGS+set}
6059 ac_save_CFLAGS=$CFLAGS
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6061 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6062 if ${ac_cv_prog_cc_g+:} false; then :
6063 $as_echo_n "(cached) " >&6
6065 ac_save_c_werror_flag=$ac_c_werror_flag
6066 ac_c_werror_flag=yes
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6080 if ac_fn_c_try_compile "$LINENO"; then :
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6095 if ac_fn_c_try_compile "$LINENO"; then :
6098 ac_c_werror_flag=$ac_save_c_werror_flag
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6111 if ac_fn_c_try_compile "$LINENO"; then :
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 ac_c_werror_flag=$ac_save_c_werror_flag
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6122 $as_echo "$ac_cv_prog_cc_g" >&6; }
6123 if test "$ac_test_CFLAGS" = set; then
6124 CFLAGS=$ac_save_CFLAGS
6125 elif test $ac_cv_prog_cc_g = yes; then
6126 if test "$GCC" = yes; then
6132 if test "$GCC" = yes; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6139 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6140 if ${ac_cv_prog_cc_c89+:} false; then :
6141 $as_echo_n "(cached) " >&6
6143 ac_cv_prog_cc_c89=no
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6151 struct buf { int x; };
6152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6153 static char *e (p, i)
6159 static char *f (char * (*g) (char **, int), char **p, ...)
6164 s = g (p, va_arg (v,int));
6169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6170 function prototypes and stuff, but not '\xHH' hex character constants.
6171 These don't provoke an error unfortunately, instead are silently treated
6172 as 'x'. The following induces an error, until -std is added to get
6173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6174 array size at least. It's necessary to write '\x00'==0 to get something
6175 that's true only with -std. */
6176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6179 inside strings and character constants. */
6181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6183 int test (int i, double x);
6184 struct s1 {int (*f) (int a);};
6185 struct s2 {int (*f) (double a);};
6186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6192 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6198 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6200 CC="$ac_save_CC $ac_arg"
6201 if ac_fn_c_try_compile "$LINENO"; then :
6202 ac_cv_prog_cc_c89=$ac_arg
6204 rm -f core conftest.err conftest.$ac_objext
6205 test "x$ac_cv_prog_cc_c89" != "xno" && break
6207 rm -f conftest.$ac_ext
6212 case "x$ac_cv_prog_cc_c89" in
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6215 $as_echo "none needed" >&6; } ;;
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6218 $as_echo "unsupported" >&6; } ;;
6220 CC="$CC $ac_cv_prog_cc_c89"
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6222 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6224 if test "x$ac_cv_prog_cc_c89" != xno; then :
6229 ac_cpp='$CPP $CPPFLAGS'
6230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6235 ac_cpp='$CPP $CPPFLAGS'
6236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6240 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6241 if ${am_cv_prog_cc_c_o+:} false; then :
6242 $as_echo_n "(cached) " >&6
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6255 # Make sure it works both with $CC and with simple cc.
6256 # Following AC_PROG_CC_C_O, we do the test twice because some
6257 # compilers refuse to overwrite an existing .o file with -o,
6258 # though they will create one.
6259 am_cv_prog_cc_c_o=yes
6261 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6262 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } \
6266 && test -f conftest2.$ac_objext; then
6269 am_cv_prog_cc_c_o=no
6273 rm -f core conftest*
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6277 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6278 if test "$am_cv_prog_cc_c_o" != yes; then
6279 # Losing compiler, so override with the script.
6280 # FIXME: It is wrong to rewrite CC.
6281 # But if we don't then we get into trouble of one sort or another.
6282 # A longer-term fix would be to have automake use am__CC in this case,
6283 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6284 CC="$am_aux_dir/compile $CC"
6287 ac_cpp='$CPP $CPPFLAGS'
6288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6293 depcc="$CC" am_compiler_list=
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6296 $as_echo_n "checking dependency style of $depcc... " >&6; }
6297 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6298 $as_echo_n "(cached) " >&6
6300 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6301 # We make a subdir and do the tests there. Otherwise we can end up
6302 # making bogus files that we don't know about and never remove. For
6303 # instance it was reported that on HP-UX the gcc test will end up
6304 # making a dummy file named 'D' -- because '-MD' means "put the output
6308 # Copy depcomp to subdir because otherwise we won't find it if we're
6309 # using a relative directory.
6310 cp "$am_depcomp" conftest.dir
6312 # We will build objects and dependencies in a subdirectory because
6313 # it helps to detect inapplicable dependency modes. For instance
6314 # both Tru64's cc and ICC support -MD to output dependencies as a
6315 # side effect of compilation, but ICC will put the dependencies in
6316 # the current directory while Tru64 will put them in the object
6320 am_cv_CC_dependencies_compiler_type=none
6321 if test "$am_compiler_list" = ""; then
6322 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6325 case " $depcc " in #(
6326 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6329 for depmode in $am_compiler_list; do
6330 # Setup a source with many dependencies, because some compilers
6331 # like to wrap large dependency lists on column 80 (with \), and
6332 # we should not choose a depcomp mode which is confused by this.
6334 # We need to recreate these files for each test, as the compiler may
6335 # overwrite some of them when testing with obscure command lines.
6336 # This happens at least with the AIX C compiler.
6338 for i in 1 2 3 4 5 6; do
6339 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6340 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6341 # Solaris 10 /bin/sh.
6342 echo '/* dummy */' > sub/conftst$i.h
6344 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6346 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6347 # mode. It turns out that the SunPro C++ compiler does not properly
6348 # handle '-M -o', and we need to detect this. Also, some Intel
6349 # versions had trouble with output in subdirs.
6350 am__obj=sub/conftest.${OBJEXT-o}
6351 am__minus_obj="-o $am__obj"
6354 # This depmode causes a compiler race in universal mode.
6355 test "$am__universal" = false || continue
6358 # After this tag, mechanisms are not by side-effect, so they'll
6359 # only be used when explicitly requested.
6360 if test "x$enable_dependency_tracking" = xyes; then
6366 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6367 # This compiler won't grok '-c -o', but also, the minuso test has
6368 # not run yet. These depmodes are late enough in the game, and
6369 # so weak that their functioning should not be impacted.
6370 am__obj=conftest.${OBJEXT-o}
6375 if depmode=$depmode \
6376 source=sub/conftest.c object=$am__obj \
6377 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6378 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6379 >/dev/null 2>conftest.err &&
6380 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6381 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6382 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6383 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6384 # icc doesn't choke on unknown options, it will just issue warnings
6385 # or remarks (even with -Werror). So we grep stderr for any message
6386 # that says an option was ignored or not supported.
6387 # When given -MP, icc 7.0 and 7.1 complain thusly:
6388 # icc: Command line warning: ignoring option '-M'; no argument required
6389 # The diagnosis changed in icc 8.0:
6390 # icc: Command line remark: option '-MP' not supported
6391 if (grep 'ignoring option' conftest.err ||
6392 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6393 am_cv_CC_dependencies_compiler_type=$depmode
6402 am_cv_CC_dependencies_compiler_type=none
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6407 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6408 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6411 test "x$enable_dependency_tracking" != xno \
6412 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6414 am__fastdepCC_FALSE='#'
6416 am__fastdepCC_TRUE='#'
6417 am__fastdepCC_FALSE=
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6430 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6431 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6432 $as_echo_n "(cached) " >&6
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6444 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6445 gl_cv_c_amsterdam_compiler=yes
6447 gl_cv_c_amsterdam_compiler=no
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6454 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6456 if test $gl_cv_c_amsterdam_compiler = yes; then
6457 if test -z "$AR"; then
6460 if test -z "$ARFLAGS"; then
6464 if test -n "$ac_tool_prefix"; then
6465 for ac_prog in ar lib "link -lib"
6467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6468 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_AR+:} false; then :
6472 $as_echo_n "(cached) " >&6
6474 if test -n "$AR"; then
6475 ac_cv_prog_AR="$AR" # Let the user override the test.
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 if test -n "$AR"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6497 $as_echo "$AR" >&6; }
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6504 test -n "$AR" && break
6507 if test -z "$AR"; then
6509 for ac_prog in ar lib "link -lib"
6511 # Extract the first word of "$ac_prog", so it can be a program name with args.
6512 set dummy $ac_prog; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6516 $as_echo_n "(cached) " >&6
6518 if test -n "$ac_ct_AR"; then
6519 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528 ac_cv_prog_ac_ct_AR="$ac_prog"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6539 if test -n "$ac_ct_AR"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6541 $as_echo "$ac_ct_AR" >&6; }
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6548 test -n "$ac_ct_AR" && break
6551 if test "x$ac_ct_AR" = x; then
6554 case $cross_compiling:$ac_tool_warned in
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558 ac_tool_warned=yes ;;
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6567 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6568 if ${am_cv_ar_interface+:} false; then :
6569 $as_echo_n "(cached) " >&6
6572 ac_cpp='$CPP $CPPFLAGS'
6573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6577 am_cv_ar_interface=ar
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580 int some_variable = 0;
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6585 (eval $am_ar_try) 2>&5
6587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588 test $ac_status = 0; }
6589 if test "$ac_status" -eq 0; then
6590 am_cv_ar_interface=ar
6592 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6594 (eval $am_ar_try) 2>&5
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; }
6598 if test "$ac_status" -eq 0; then
6599 am_cv_ar_interface=lib
6601 am_cv_ar_interface=unknown
6604 rm -f conftest.lib libconftest.a
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6616 $as_echo "$am_cv_ar_interface" >&6; }
6618 case $am_cv_ar_interface in
6622 # Microsoft lib, so override with the ar-lib wrapper script.
6623 # FIXME: It is wrong to rewrite AR.
6624 # But if we don't then we get into trouble of one sort or another.
6625 # A longer-term fix would be to have automake use am__AR in this case,
6626 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6628 AR="$am_aux_dir/ar-lib $AR"
6631 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6637 if test -n "$ac_tool_prefix"; then
6638 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6639 set dummy ${ac_tool_prefix}ar; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if ${ac_cv_prog_AR+:} false; then :
6643 $as_echo_n "(cached) " >&6
6645 if test -n "$AR"; then
6646 ac_cv_prog_AR="$AR" # Let the user override the test.
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655 ac_cv_prog_AR="${ac_tool_prefix}ar"
6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 if test -n "$AR"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6668 $as_echo "$AR" >&6; }
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6676 if test -z "$ac_cv_prog_AR"; then
6678 # Extract the first word of "ar", so it can be a program name with args.
6679 set dummy ar; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6683 $as_echo_n "(cached) " >&6
6685 if test -n "$ac_ct_AR"; then
6686 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_ac_ct_AR="ar"
6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6706 if test -n "$ac_ct_AR"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6708 $as_echo "$ac_ct_AR" >&6; }
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6714 if test "x$ac_ct_AR" = x; then
6717 case $cross_compiling:$ac_tool_warned in
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721 ac_tool_warned=yes ;;
6729 if test -z "$ARFLAGS"; then
6735 if test -z "$RANLIB"; then
6736 if test $gl_cv_c_amsterdam_compiler = yes; then
6739 if test -n "$ac_tool_prefix"; then
6740 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6741 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_prog_RANLIB+:} false; then :
6745 $as_echo_n "(cached) " >&6
6747 if test -n "$RANLIB"; then
6748 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 RANLIB=$ac_cv_prog_RANLIB
6768 if test -n "$RANLIB"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6770 $as_echo "$RANLIB" >&6; }
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6778 if test -z "$ac_cv_prog_RANLIB"; then
6779 ac_ct_RANLIB=$RANLIB
6780 # Extract the first word of "ranlib", so it can be a program name with args.
6781 set dummy ranlib; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6785 $as_echo_n "(cached) " >&6
6787 if test -n "$ac_ct_RANLIB"; then
6788 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6797 ac_cv_prog_ac_ct_RANLIB="ranlib"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6808 if test -n "$ac_ct_RANLIB"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6810 $as_echo "$ac_ct_RANLIB" >&6; }
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6816 if test "x$ac_ct_RANLIB" = x; then
6819 case $cross_compiling:$ac_tool_warned in
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823 ac_tool_warned=yes ;;
6825 RANLIB=$ac_ct_RANLIB
6828 RANLIB="$ac_cv_prog_RANLIB"
6836 # Check whether --enable-largefile was given.
6837 if test "${enable_largefile+set}" = set; then :
6838 enableval=$enable_largefile;
6841 if test "$enable_largefile" != no; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6844 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6845 if ${ac_cv_sys_largefile_CC+:} false; then :
6846 $as_echo_n "(cached) " >&6
6848 ac_cv_sys_largefile_CC=no
6849 if test "$GCC" != yes; then
6852 # IRIX 6.2 and later do not support large files by default,
6853 # so use the C compiler's -n32 option if that helps.
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856 #include <sys/types.h>
6857 /* Check that off_t can represent 2**63 - 1 correctly.
6858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6859 since some C++ compilers masquerading as C compilers
6860 incorrectly reject 9223372036854775807. */
6861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6863 && LARGE_OFF_T % 2147483647 == 1)
6873 if ac_fn_c_try_compile "$LINENO"; then :
6876 rm -f core conftest.err conftest.$ac_objext
6878 if ac_fn_c_try_compile "$LINENO"; then :
6879 ac_cv_sys_largefile_CC=' -n32'; break
6881 rm -f core conftest.err conftest.$ac_objext
6885 rm -f conftest.$ac_ext
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6889 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6890 if test "$ac_cv_sys_largefile_CC" != no; then
6891 CC=$CC$ac_cv_sys_largefile_CC
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6895 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6896 if ${ac_cv_sys_file_offset_bits+:} false; then :
6897 $as_echo_n "(cached) " >&6
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902 #include <sys/types.h>
6903 /* Check that off_t can represent 2**63 - 1 correctly.
6904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6905 since some C++ compilers masquerading as C compilers
6906 incorrectly reject 9223372036854775807. */
6907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6909 && LARGE_OFF_T % 2147483647 == 1)
6919 if ac_fn_c_try_compile "$LINENO"; then :
6920 ac_cv_sys_file_offset_bits=no; break
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6925 #define _FILE_OFFSET_BITS 64
6926 #include <sys/types.h>
6927 /* Check that off_t can represent 2**63 - 1 correctly.
6928 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6929 since some C++ compilers masquerading as C compilers
6930 incorrectly reject 9223372036854775807. */
6931 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6933 && LARGE_OFF_T % 2147483647 == 1)
6943 if ac_fn_c_try_compile "$LINENO"; then :
6944 ac_cv_sys_file_offset_bits=64; break
6946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6947 ac_cv_sys_file_offset_bits=unknown
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6952 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6953 case $ac_cv_sys_file_offset_bits in #(
6956 cat >>confdefs.h <<_ACEOF
6957 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6962 if test $ac_cv_sys_file_offset_bits = unknown; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6964 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6965 if ${ac_cv_sys_large_files+:} false; then :
6966 $as_echo_n "(cached) " >&6
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971 #include <sys/types.h>
6972 /* Check that off_t can represent 2**63 - 1 correctly.
6973 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6974 since some C++ compilers masquerading as C compilers
6975 incorrectly reject 9223372036854775807. */
6976 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6977 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6978 && LARGE_OFF_T % 2147483647 == 1)
6988 if ac_fn_c_try_compile "$LINENO"; then :
6989 ac_cv_sys_large_files=no; break
6991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6994 #define _LARGE_FILES 1
6995 #include <sys/types.h>
6996 /* Check that off_t can represent 2**63 - 1 correctly.
6997 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6998 since some C++ compilers masquerading as C compilers
6999 incorrectly reject 9223372036854775807. */
7000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7002 && LARGE_OFF_T % 2147483647 == 1)
7012 if ac_fn_c_try_compile "$LINENO"; then :
7013 ac_cv_sys_large_files=1; break
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016 ac_cv_sys_large_files=unknown
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7021 $as_echo "$ac_cv_sys_large_files" >&6; }
7022 case $ac_cv_sys_large_files in #(
7025 cat >>confdefs.h <<_ACEOF
7026 #define _LARGE_FILES $ac_cv_sys_large_files
7034 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
7038 case $ac_cv_prog_cc_stdc in #(
7040 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7043 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7044 if ${ac_cv_prog_cc_c99+:} false; then :
7045 $as_echo_n "(cached) " >&6
7047 ac_cv_prog_cc_c99=no
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7052 #include <stdbool.h>
7057 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7058 #define debug(...) fprintf (stderr, __VA_ARGS__)
7059 #define showlist(...) puts (#__VA_ARGS__)
7060 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7062 test_varargs_macros (void)
7067 debug ("X = %d\n", x);
7068 showlist (The first, second, and third items.);
7069 report (x>y, "x is %d but y is %d", x, y);
7072 // Check long long types.
7073 #define BIG64 18446744073709551615ull
7074 #define BIG32 4294967295ul
7075 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7077 your preprocessor is broken;
7081 your preprocessor is broken;
7083 static long long int bignum = -9223372036854775807LL;
7084 static unsigned long long int ubignum = BIG64;
7086 struct incomplete_array
7094 const wchar_t *name;
7098 typedef const char *ccp;
7101 test_restrict (ccp restrict text)
7103 // See if C++-style comments work.
7104 // Iterate through items via the restricted pointer.
7105 // Also check for declarations in for loops.
7106 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7111 // Check varargs and va_copy.
7113 test_varargs (const char *format, ...)
7116 va_start (args, format);
7118 va_copy (args_copy, args);
7129 str = va_arg (args_copy, const char *);
7132 number = va_arg (args_copy, int);
7135 fnumber = va_arg (args_copy, double);
7150 _Bool success = false;
7153 if (test_restrict ("String literal") == 0)
7155 char *restrict newvar = "Another string";
7158 test_varargs ("s, d' f .", "string", 65, 34.234);
7159 test_varargs_macros ();
7161 // Check flexible array members.
7162 struct incomplete_array *ia =
7163 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7165 for (int i = 0; i < ia->datasize; ++i)
7166 ia->data[i] = i * 1.234;
7168 // Check named initializers.
7169 struct named_init ni = {
7171 .name = L"Test wide string",
7172 .average = 543.34343,
7177 int dynamic_array[ni.number];
7178 dynamic_array[ni.number - 1] = 543;
7180 // work around unused variable warnings
7181 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7182 || dynamic_array[ni.number - 1] != 543);
7188 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7190 CC="$ac_save_CC $ac_arg"
7191 if ac_fn_c_try_compile "$LINENO"; then :
7192 ac_cv_prog_cc_c99=$ac_arg
7194 rm -f core conftest.err conftest.$ac_objext
7195 test "x$ac_cv_prog_cc_c99" != "xno" && break
7197 rm -f conftest.$ac_ext
7202 case "x$ac_cv_prog_cc_c99" in
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7205 $as_echo "none needed" >&6; } ;;
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7208 $as_echo "unsupported" >&6; } ;;
7210 CC="$CC $ac_cv_prog_cc_c99"
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7212 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7214 if test "x$ac_cv_prog_cc_c99" != xno; then :
7215 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7218 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7219 if ${ac_cv_prog_cc_c89+:} false; then :
7220 $as_echo_n "(cached) " >&6
7222 ac_cv_prog_cc_c89=no
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7229 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7230 struct buf { int x; };
7231 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7232 static char *e (p, i)
7238 static char *f (char * (*g) (char **, int), char **p, ...)
7243 s = g (p, va_arg (v,int));
7248 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7249 function prototypes and stuff, but not '\xHH' hex character constants.
7250 These don't provoke an error unfortunately, instead are silently treated
7251 as 'x'. The following induces an error, until -std is added to get
7252 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7253 array size at least. It's necessary to write '\x00'==0 to get something
7254 that's true only with -std. */
7255 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7257 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7258 inside strings and character constants. */
7260 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7262 int test (int i, double x);
7263 struct s1 {int (*f) (int a);};
7264 struct s2 {int (*f) (double a);};
7265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7271 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7276 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7277 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7279 CC="$ac_save_CC $ac_arg"
7280 if ac_fn_c_try_compile "$LINENO"; then :
7281 ac_cv_prog_cc_c89=$ac_arg
7283 rm -f core conftest.err conftest.$ac_objext
7284 test "x$ac_cv_prog_cc_c89" != "xno" && break
7286 rm -f conftest.$ac_ext
7291 case "x$ac_cv_prog_cc_c89" in
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7294 $as_echo "none needed" >&6; } ;;
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7297 $as_echo "unsupported" >&6; } ;;
7299 CC="$CC $ac_cv_prog_cc_c89"
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7301 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7303 if test "x$ac_cv_prog_cc_c89" != xno; then :
7304 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7306 ac_cv_prog_cc_stdc=no
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7313 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7314 if ${ac_cv_prog_cc_stdc+:} false; then :
7315 $as_echo_n "(cached) " >&6
7318 case $ac_cv_prog_cc_stdc in #(
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7321 $as_echo "unsupported" >&6; } ;; #(
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7324 $as_echo "none needed" >&6; } ;; #(
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7327 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7335 # Check whether --enable-threads was given.
7336 if test "${enable_threads+set}" = set; then :
7337 enableval=$enable_threads; gl_use_threads=$enableval
7339 if test -n "$gl_use_threads_default"; then
7340 gl_use_threads="$gl_use_threads_default"
7343 osf*) gl_use_threads=no ;;
7346 1.[0-5].*) gl_use_threads=no ;;
7347 *) gl_use_threads=yes ;;
7350 *) gl_use_threads=yes ;;
7356 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7357 # For using <pthread.h>:
7360 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7361 # groks <pthread.h>. cc also understands the flag -pthread, but
7362 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7363 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7364 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7365 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7366 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7369 # Some systems optimize for single-threaded programs by default, and
7370 # need special flags to disable these optimizations. For example, the
7371 # definition of 'errno' in <errno.h>.
7373 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7374 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7380 # Pre-early section.
7385 # Code from module absolute-header:
7386 # Code from module alloca-opt:
7387 # Code from module dirname:
7388 # Code from module dirname-lgpl:
7389 # Code from module dosname:
7390 # Code from module double-slash-root:
7391 # Code from module environ:
7392 # Code from module errno:
7393 # Code from module error:
7394 # Code from module exitfail:
7395 # Code from module extensions:
7396 # Code from module extern-inline:
7397 # Code from module fcntl-h:
7398 # Code from module filename:
7399 # Code from module float:
7400 # Code from module full-write:
7401 # Code from module getprogname:
7402 # Code from module gettext-h:
7403 # Code from module gettimeofday:
7404 # Code from module gitlog-to-changelog:
7405 # Code from module gnupload:
7406 # Code from module havelib:
7407 # Code from module include_next:
7408 # Code from module intprops:
7409 # Code from module largefile:
7411 # Code from module lib-ignore:
7412 # Code from module limits-h:
7413 # Code from module localtime-buffer:
7414 # Code from module lock:
7415 # Code from module lstat:
7416 # Code from module malloc-posix:
7417 # Code from module malloca:
7418 # Code from module memchr:
7419 # Code from module mkdir:
7420 # Code from module mkdtemp:
7421 # Code from module msvc-inval:
7422 # Code from module msvc-nothrow:
7423 # Code from module multiarch:
7424 # Code from module pathmax:
7425 # Code from module raise:
7426 # Code from module read:
7427 # Code from module safe-read:
7428 # Code from module safe-write:
7429 # Code from module setenv:
7430 # Code from module sigaction:
7431 # Code from module signal:
7432 # Code from module signal-h:
7433 # Code from module sigprocmask:
7434 # Code from module size_max:
7435 # Code from module snippet/_Noreturn:
7436 # Code from module snippet/arg-nonnull:
7437 # Code from module snippet/c++defs:
7438 # Code from module snippet/warn-on-use:
7439 # Code from module snprintf:
7440 # Code from module ssize_t:
7441 # Code from module stat:
7442 # Code from module stat-time:
7443 # Code from module stdarg:
7447 # Code from module stdbool:
7448 # Code from module stddef:
7449 # Code from module stdint:
7450 # Code from module stdio:
7451 # Code from module stdlib:
7452 # Code from module strerror:
7453 # Code from module strerror-override:
7454 # Code from module string:
7455 # Code from module strndup:
7456 # Code from module strnlen:
7457 # Code from module strsignal:
7458 # Code from module sys_select:
7459 # Code from module sys_stat:
7460 # Code from module sys_time:
7461 # Code from module sys_types:
7462 # Code from module sys_wait:
7463 # Code from module tempname:
7464 # Code from module threadlib:
7468 # Code from module time:
7469 # Code from module tls:
7470 # Code from module unistd:
7471 # Code from module unsetenv:
7472 # Code from module vasnprintf:
7473 # Code from module vasprintf:
7474 # Code from module verify:
7475 # Code from module waitpid:
7476 # Code from module warnings:
7477 # Code from module wchar:
7478 # Code from module write:
7479 # Code from module xalloc:
7480 # Code from module xalloc-die:
7481 # Code from module xalloc-oversized:
7482 # Code from module xsize:
7483 # Code from module xstrndup:
7484 # Code from module xvasprintf:
7487 ac_cpp='$CPP $CPPFLAGS'
7488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7492 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7493 # On Suns, sometimes $CPP names a directory.
7494 if test -n "$CPP" && test -d "$CPP"; then
7497 if test -z "$CPP"; then
7498 if ${ac_cv_prog_CPP+:} false; then :
7499 $as_echo_n "(cached) " >&6
7501 # Double quotes because CPP needs to be expanded
7502 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7505 for ac_c_preproc_warn_flag in '' yes
7507 # Use a header file that comes with gcc, so configuring glibc
7508 # with a fresh cross-compiler works.
7509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7510 # <limits.h> exists even on freestanding compilers.
7511 # On the NeXT, cc -E runs the code through the compiler's parser,
7512 # not just through cpp. "Syntax error" is here to catch this case.
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7516 # include <limits.h>
7518 # include <assert.h>
7522 if ac_fn_c_try_cpp "$LINENO"; then :
7525 # Broken: fails on valid input.
7528 rm -f conftest.err conftest.i conftest.$ac_ext
7530 # OK, works on sane cases. Now check whether nonexistent headers
7531 # can be detected and how.
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7534 #include <ac_nonexistent.h>
7536 if ac_fn_c_try_cpp "$LINENO"; then :
7537 # Broken: success on invalid input.
7540 # Passes both tests.
7544 rm -f conftest.err conftest.i conftest.$ac_ext
7547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7548 rm -f conftest.i conftest.err conftest.$ac_ext
7549 if $ac_preproc_ok; then :
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7562 $as_echo "$CPP" >&6; }
7564 for ac_c_preproc_warn_flag in '' yes
7566 # Use a header file that comes with gcc, so configuring glibc
7567 # with a fresh cross-compiler works.
7568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7569 # <limits.h> exists even on freestanding compilers.
7570 # On the NeXT, cc -E runs the code through the compiler's parser,
7571 # not just through cpp. "Syntax error" is here to catch this case.
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7575 # include <limits.h>
7577 # include <assert.h>
7581 if ac_fn_c_try_cpp "$LINENO"; then :
7584 # Broken: fails on valid input.
7587 rm -f conftest.err conftest.i conftest.$ac_ext
7589 # OK, works on sane cases. Now check whether nonexistent headers
7590 # can be detected and how.
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593 #include <ac_nonexistent.h>
7595 if ac_fn_c_try_cpp "$LINENO"; then :
7596 # Broken: success on invalid input.
7599 # Passes both tests.
7603 rm -f conftest.err conftest.i conftest.$ac_ext
7606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7607 rm -f conftest.i conftest.err conftest.$ac_ext
7608 if $ac_preproc_ok; then :
7611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7613 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7614 See \`config.log' for more details" "$LINENO" 5; }
7618 ac_cpp='$CPP $CPPFLAGS'
7619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623 CFLAGS="$CFLAGS -Wall"
7624 if test "$GCC" = yes
7628 ac_cpp='$CPP $CPPFLAGS'
7629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7635 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7636 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
7637 $as_echo_n "(cached) " >&6
7640 gl_save_compiler_FLAGS="$CFLAGS"
7641 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7653 if ac_fn_c_try_link "$LINENO"; then :
7654 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
7656 gl_cv_warn_c__Werror__Wunknown_warning_option=no
7658 rm -f core conftest.err conftest.$ac_objext \
7659 conftest$ac_exeext conftest.$ac_ext
7660 CFLAGS="$gl_save_compiler_FLAGS"
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7664 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7665 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
7666 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
7668 gl_unknown_warnings_are_errors=
7672 ac_cpp='$CPP $CPPFLAGS'
7673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -W" >&5
7681 $as_echo_n "checking whether C compiler handles -W... " >&6; }
7682 if ${gl_cv_warn_c__W+:} false; then :
7683 $as_echo_n "(cached) " >&6
7686 gl_save_compiler_FLAGS="$CFLAGS"
7687 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -W"
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7699 if ac_fn_c_try_link "$LINENO"; then :
7704 rm -f core conftest.err conftest.$ac_objext \
7705 conftest$ac_exeext conftest.$ac_ext
7706 CFLAGS="$gl_save_compiler_FLAGS"
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__W" >&5
7710 $as_echo "$gl_cv_warn_c__W" >&6; }
7711 if test "x$gl_cv_warn_c__W" = xyes; then :
7712 as_fn_append WARN_CFLAGS " -W"
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wpointer-arith" >&5
7719 $as_echo_n "checking whether C compiler handles -Wpointer-arith... " >&6; }
7720 if ${gl_cv_warn_c__Wpointer_arith+:} false; then :
7721 $as_echo_n "(cached) " >&6
7724 gl_save_compiler_FLAGS="$CFLAGS"
7725 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-arith"
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7737 if ac_fn_c_try_link "$LINENO"; then :
7738 gl_cv_warn_c__Wpointer_arith=yes
7740 gl_cv_warn_c__Wpointer_arith=no
7742 rm -f core conftest.err conftest.$ac_objext \
7743 conftest$ac_exeext conftest.$ac_ext
7744 CFLAGS="$gl_save_compiler_FLAGS"
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wpointer_arith" >&5
7748 $as_echo "$gl_cv_warn_c__Wpointer_arith" >&6; }
7749 if test "x$gl_cv_warn_c__Wpointer_arith" = xyes; then :
7750 as_fn_append WARN_CFLAGS " -Wpointer-arith"
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wwrite-strings" >&5
7757 $as_echo_n "checking whether C compiler handles -Wwrite-strings... " >&6; }
7758 if ${gl_cv_warn_c__Wwrite_strings+:} false; then :
7759 $as_echo_n "(cached) " >&6
7762 gl_save_compiler_FLAGS="$CFLAGS"
7763 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings"
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7775 if ac_fn_c_try_link "$LINENO"; then :
7776 gl_cv_warn_c__Wwrite_strings=yes
7778 gl_cv_warn_c__Wwrite_strings=no
7780 rm -f core conftest.err conftest.$ac_objext \
7781 conftest$ac_exeext conftest.$ac_ext
7782 CFLAGS="$gl_save_compiler_FLAGS"
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wwrite_strings" >&5
7786 $as_echo "$gl_cv_warn_c__Wwrite_strings" >&6; }
7787 if test "x$gl_cv_warn_c__Wwrite_strings" = xyes; then :
7788 as_fn_append WARN_CFLAGS " -Wwrite-strings"
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wstrict-prototypes" >&5
7795 $as_echo_n "checking whether C compiler handles -Wstrict-prototypes... " >&6; }
7796 if ${gl_cv_warn_c__Wstrict_prototypes+:} false; then :
7797 $as_echo_n "(cached) " >&6
7800 gl_save_compiler_FLAGS="$CFLAGS"
7801 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstrict-prototypes"
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7813 if ac_fn_c_try_link "$LINENO"; then :
7814 gl_cv_warn_c__Wstrict_prototypes=yes
7816 gl_cv_warn_c__Wstrict_prototypes=no
7818 rm -f core conftest.err conftest.$ac_objext \
7819 conftest$ac_exeext conftest.$ac_ext
7820 CFLAGS="$gl_save_compiler_FLAGS"
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wstrict_prototypes" >&5
7824 $as_echo "$gl_cv_warn_c__Wstrict_prototypes" >&6; }
7825 if test "x$gl_cv_warn_c__Wstrict_prototypes" = xyes; then :
7826 as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wshadow" >&5
7833 $as_echo_n "checking whether C compiler handles -Wshadow... " >&6; }
7834 if ${gl_cv_warn_c__Wshadow+:} false; then :
7835 $as_echo_n "(cached) " >&6
7838 gl_save_compiler_FLAGS="$CFLAGS"
7839 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wshadow"
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7851 if ac_fn_c_try_link "$LINENO"; then :
7852 gl_cv_warn_c__Wshadow=yes
7854 gl_cv_warn_c__Wshadow=no
7856 rm -f core conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7858 CFLAGS="$gl_save_compiler_FLAGS"
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wshadow" >&5
7862 $as_echo "$gl_cv_warn_c__Wshadow" >&6; }
7863 if test "x$gl_cv_warn_c__Wshadow" = xyes; then :
7864 as_fn_append WARN_CFLAGS " -Wshadow"
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-security" >&5
7871 $as_echo_n "checking whether C compiler handles -Wformat-security... " >&6; }
7872 if ${gl_cv_warn_c__Wformat_security+:} false; then :
7873 $as_echo_n "(cached) " >&6
7876 gl_save_compiler_FLAGS="$CFLAGS"
7877 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-security"
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7889 if ac_fn_c_try_link "$LINENO"; then :
7890 gl_cv_warn_c__Wformat_security=yes
7892 gl_cv_warn_c__Wformat_security=no
7894 rm -f core conftest.err conftest.$ac_objext \
7895 conftest$ac_exeext conftest.$ac_ext
7896 CFLAGS="$gl_save_compiler_FLAGS"
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_security" >&5
7900 $as_echo "$gl_cv_warn_c__Wformat_security" >&6; }
7901 if test "x$gl_cv_warn_c__Wformat_security" = xyes; then :
7902 as_fn_append WARN_CFLAGS " -Wformat-security"
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wredundant-decls" >&5
7909 $as_echo_n "checking whether C compiler handles -Wredundant-decls... " >&6; }
7910 if ${gl_cv_warn_c__Wredundant_decls+:} false; then :
7911 $as_echo_n "(cached) " >&6
7914 gl_save_compiler_FLAGS="$CFLAGS"
7915 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wredundant-decls"
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7927 if ac_fn_c_try_link "$LINENO"; then :
7928 gl_cv_warn_c__Wredundant_decls=yes
7930 gl_cv_warn_c__Wredundant_decls=no
7932 rm -f core conftest.err conftest.$ac_objext \
7933 conftest$ac_exeext conftest.$ac_ext
7934 CFLAGS="$gl_save_compiler_FLAGS"
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wredundant_decls" >&5
7938 $as_echo "$gl_cv_warn_c__Wredundant_decls" >&6; }
7939 if test "x$gl_cv_warn_c__Wredundant_decls" = xyes; then :
7940 as_fn_append WARN_CFLAGS " -Wredundant-decls"
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7947 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7948 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
7949 $as_echo_n "(cached) " >&6
7952 gl_save_compiler_FLAGS="$CFLAGS"
7953 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
7954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955 /* end confdefs.h. */
7965 if ac_fn_c_try_link "$LINENO"; then :
7966 gl_cv_warn_c__Wno_missing_field_initializers=yes
7968 gl_cv_warn_c__Wno_missing_field_initializers=no
7970 rm -f core conftest.err conftest.$ac_objext \
7971 conftest$ac_exeext conftest.$ac_ext
7972 CFLAGS="$gl_save_compiler_FLAGS"
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7976 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7977 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
7978 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7984 $as_echo_n "checking whether ln -s works... " >&6; }
7986 if test "$LN_S" = "ln -s"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7988 $as_echo "yes" >&6; }
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7991 $as_echo "no, using $LN_S" >&6; }
7994 if test -n "$ac_tool_prefix"; then
7995 for ac_prog in ar lib "link -lib"
7997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7998 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8000 $as_echo_n "checking for $ac_word... " >&6; }
8001 if ${ac_cv_prog_AR+:} false; then :
8002 $as_echo_n "(cached) " >&6
8004 if test -n "$AR"; then
8005 ac_cv_prog_AR="$AR" # Let the user override the test.
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011 test -z "$as_dir" && as_dir=.
8012 for ac_exec_ext in '' $ac_executable_extensions; do
8013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8014 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 if test -n "$AR"; then
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8027 $as_echo "$AR" >&6; }
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 $as_echo "no" >&6; }
8034 test -n "$AR" && break
8037 if test -z "$AR"; then
8039 for ac_prog in ar lib "link -lib"
8041 # Extract the first word of "$ac_prog", so it can be a program name with args.
8042 set dummy $ac_prog; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8046 $as_echo_n "(cached) " >&6
8048 if test -n "$ac_ct_AR"; then
8049 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058 ac_cv_prog_ac_ct_AR="$ac_prog"
8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8069 if test -n "$ac_ct_AR"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8071 $as_echo "$ac_ct_AR" >&6; }
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8078 test -n "$ac_ct_AR" && break
8081 if test "x$ac_ct_AR" = x; then
8084 case $cross_compiling:$ac_tool_warned in
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8088 ac_tool_warned=yes ;;
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8097 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
8098 if ${am_cv_ar_interface+:} false; then :
8099 $as_echo_n "(cached) " >&6
8102 ac_cpp='$CPP $CPPFLAGS'
8103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8107 am_cv_ar_interface=ar
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110 int some_variable = 0;
8112 if ac_fn_c_try_compile "$LINENO"; then :
8113 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8115 (eval $am_ar_try) 2>&5
8117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8118 test $ac_status = 0; }
8119 if test "$ac_status" -eq 0; then
8120 am_cv_ar_interface=ar
8122 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8124 (eval $am_ar_try) 2>&5
8126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8127 test $ac_status = 0; }
8128 if test "$ac_status" -eq 0; then
8129 am_cv_ar_interface=lib
8131 am_cv_ar_interface=unknown
8134 rm -f conftest.lib libconftest.a
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 ac_cpp='$CPP $CPPFLAGS'
8140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8146 $as_echo "$am_cv_ar_interface" >&6; }
8148 case $am_cv_ar_interface in
8152 # Microsoft lib, so override with the ar-lib wrapper script.
8153 # FIXME: It is wrong to rewrite AR.
8154 # But if we don't then we get into trouble of one sort or another.
8155 # A longer-term fix would be to have automake use am__AR in this case,
8156 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8158 AR="$am_aux_dir/ar-lib $AR"
8161 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8168 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8173 macro_version='2.4.6'
8174 macro_revision='2.4.6'
8188 ltmain=$ac_aux_dir/ltmain.sh
8190 # Backslashify metacharacters that are still active within
8191 # double-quoted strings.
8192 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8194 # Same as above, but do not quote variable references.
8195 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8197 # Sed substitution to delay expansion of an escaped shell variable in a
8198 # double_quote_subst'ed string.
8199 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8201 # Sed substitution to delay expansion of an escaped single quote.
8202 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8204 # Sed substitution to avoid accidental globbing in evaled expressions
8205 no_glob_subst='s/\*/\\\*/g'
8207 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8208 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8209 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8212 $as_echo_n "checking how to print strings... " >&6; }
8213 # Test print first, because it will be a builtin if present.
8214 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8215 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8217 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8220 # Use this function as a fallback that always works.
8221 func_fallback_echo ()
8223 eval 'cat <<_LTECHO_EOF
8227 ECHO='func_fallback_echo'
8230 # func_echo_all arg...
8231 # Invoke $ECHO with all args, space-separated.
8238 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8239 $as_echo "printf" >&6; } ;;
8240 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8241 $as_echo "print -r" >&6; } ;;
8242 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8243 $as_echo "cat" >&6; } ;;
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8260 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8261 if ${ac_cv_path_SED+:} false; then :
8262 $as_echo_n "(cached) " >&6
8264 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8265 for ac_i in 1 2 3 4 5 6 7; do
8266 ac_script="$ac_script$as_nl$ac_script"
8268 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8269 { ac_script=; unset ac_script;}
8270 if test -z "$SED"; then
8271 ac_path_SED_found=false
8272 # Loop through the user's path and test for each of PROGNAME-LIST
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 test -z "$as_dir" && as_dir=.
8278 for ac_prog in sed gsed; do
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8281 as_fn_executable_p "$ac_path_SED" || continue
8282 # Check for GNU ac_path_SED and select it if it is found.
8283 # Check for GNU $ac_path_SED
8284 case `"$ac_path_SED" --version 2>&1` in
8286 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8289 $as_echo_n 0123456789 >"conftest.in"
8292 cat "conftest.in" "conftest.in" >"conftest.tmp"
8293 mv "conftest.tmp" "conftest.in"
8294 cp "conftest.in" "conftest.nl"
8295 $as_echo '' >> "conftest.nl"
8296 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8298 as_fn_arith $ac_count + 1 && ac_count=$as_val
8299 if test $ac_count -gt ${ac_path_SED_max-0}; then
8300 # Best one so far, save it but keep looking for a better one
8301 ac_cv_path_SED="$ac_path_SED"
8302 ac_path_SED_max=$ac_count
8304 # 10*(2^10) chars as input seems more than enough
8305 test $ac_count -gt 10 && break
8307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8310 $ac_path_SED_found && break 3
8315 if test -z "$ac_cv_path_SED"; then
8316 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8324 $as_echo "$ac_cv_path_SED" >&6; }
8325 SED="$ac_cv_path_SED"
8328 test -z "$SED" && SED=sed
8329 Xsed="$SED -e 1s/^X//"
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8342 $as_echo_n "checking for fgrep... " >&6; }
8343 if ${ac_cv_path_FGREP+:} false; then :
8344 $as_echo_n "(cached) " >&6
8346 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8347 then ac_cv_path_FGREP="$GREP -F"
8349 if test -z "$FGREP"; then
8350 ac_path_FGREP_found=false
8351 # Loop through the user's path and test for each of PROGNAME-LIST
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8356 test -z "$as_dir" && as_dir=.
8357 for ac_prog in fgrep; do
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8360 as_fn_executable_p "$ac_path_FGREP" || continue
8361 # Check for GNU ac_path_FGREP and select it if it is found.
8362 # Check for GNU $ac_path_FGREP
8363 case `"$ac_path_FGREP" --version 2>&1` in
8365 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8368 $as_echo_n 0123456789 >"conftest.in"
8371 cat "conftest.in" "conftest.in" >"conftest.tmp"
8372 mv "conftest.tmp" "conftest.in"
8373 cp "conftest.in" "conftest.nl"
8374 $as_echo 'FGREP' >> "conftest.nl"
8375 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8377 as_fn_arith $ac_count + 1 && ac_count=$as_val
8378 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8379 # Best one so far, save it but keep looking for a better one
8380 ac_cv_path_FGREP="$ac_path_FGREP"
8381 ac_path_FGREP_max=$ac_count
8383 # 10*(2^10) chars as input seems more than enough
8384 test $ac_count -gt 10 && break
8386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8389 $ac_path_FGREP_found && break 3
8394 if test -z "$ac_cv_path_FGREP"; then
8395 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8398 ac_cv_path_FGREP=$FGREP
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8404 $as_echo "$ac_cv_path_FGREP" >&6; }
8405 FGREP="$ac_cv_path_FGREP"
8408 test -z "$GREP" && GREP=grep
8428 # Check whether --with-gnu-ld was given.
8429 if test "${with_gnu_ld+set}" = set; then :
8430 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8436 if test yes = "$GCC"; then
8437 # Check if gcc -print-prog-name=ld gives a path.
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8439 $as_echo_n "checking for ld used by $CC... " >&6; }
8442 # gcc leaves a trailing carriage return, which upsets mingw
8443 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8445 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8448 # Accept absolute paths.
8450 re_direlt='/[^/][^/]*/\.\./'
8451 # Canonicalize the pathname of ld
8452 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8453 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8454 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8456 test -z "$LD" && LD=$ac_prog
8459 # If it fails, then pretend we aren't using GCC.
8463 # If it is relative, then search for the first ld in PATH.
8467 elif test yes = "$with_gnu_ld"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8469 $as_echo_n "checking for GNU ld... " >&6; }
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8472 $as_echo_n "checking for non-GNU ld... " >&6; }
8474 if ${lt_cv_path_LD+:} false; then :
8475 $as_echo_n "(cached) " >&6
8477 if test -z "$LD"; then
8478 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8479 for ac_dir in $PATH; do
8481 test -z "$ac_dir" && ac_dir=.
8482 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8483 lt_cv_path_LD=$ac_dir/$ac_prog
8484 # Check to see if the program is GNU ld. I'd rather use --version,
8485 # but apparently some variants of GNU ld only accept -v.
8486 # Break only if it was the GNU/non-GNU ld that we prefer.
8487 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8488 *GNU* | *'with BFD'*)
8489 test no != "$with_gnu_ld" && break
8492 test yes != "$with_gnu_ld" && break
8499 lt_cv_path_LD=$LD # Let the user override the test with a path.
8504 if test -n "$LD"; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8506 $as_echo "$LD" >&6; }
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8511 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8513 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8514 if ${lt_cv_prog_gnu_ld+:} false; then :
8515 $as_echo_n "(cached) " >&6
8517 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8518 case `$LD -v 2>&1 </dev/null` in
8519 *GNU* | *'with BFD'*)
8520 lt_cv_prog_gnu_ld=yes
8523 lt_cv_prog_gnu_ld=no
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8528 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8529 with_gnu_ld=$lt_cv_prog_gnu_ld
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8540 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8541 if ${lt_cv_path_NM+:} false; then :
8542 $as_echo_n "(cached) " >&6
8544 if test -n "$NM"; then
8545 # Let the user override the test.
8548 lt_nm_to_check=${ac_tool_prefix}nm
8549 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8550 lt_nm_to_check="$lt_nm_to_check nm"
8552 for lt_tmp_nm in $lt_nm_to_check; do
8553 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8554 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8556 test -z "$ac_dir" && ac_dir=.
8557 tmp_nm=$ac_dir/$lt_tmp_nm
8558 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8559 # Check to see if the nm accepts a BSD-compat flag.
8560 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8561 # nm: unknown option "B" ignored
8562 # Tru64's nm complains that /dev/null is an invalid object file
8563 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8565 mingw*) lt_bad_file=conftest.nm/nofile ;;
8566 *) lt_bad_file=/dev/null ;;
8568 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8569 *$lt_bad_file* | *'Invalid file or object type'*)
8570 lt_cv_path_NM="$tmp_nm -B"
8574 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8576 lt_cv_path_NM="$tmp_nm -p"
8580 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8581 continue # so that we can try to find one that supports BSD flags
8590 : ${lt_cv_path_NM=no}
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8594 $as_echo "$lt_cv_path_NM" >&6; }
8595 if test no != "$lt_cv_path_NM"; then
8598 # Didn't find any BSD compatible name lister, look for dumpbin.
8599 if test -n "$DUMPBIN"; then :
8600 # Let the user override the test.
8602 if test -n "$ac_tool_prefix"; then
8603 for ac_prog in dumpbin "link -dump"
8605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 $as_echo_n "checking for $ac_word... " >&6; }
8609 if ${ac_cv_prog_DUMPBIN+:} false; then :
8610 $as_echo_n "(cached) " >&6
8612 if test -n "$DUMPBIN"; then
8613 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8622 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8632 DUMPBIN=$ac_cv_prog_DUMPBIN
8633 if test -n "$DUMPBIN"; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8635 $as_echo "$DUMPBIN" >&6; }
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo "no" >&6; }
8642 test -n "$DUMPBIN" && break
8645 if test -z "$DUMPBIN"; then
8646 ac_ct_DUMPBIN=$DUMPBIN
8647 for ac_prog in dumpbin "link -dump"
8649 # Extract the first word of "$ac_prog", so it can be a program name with args.
8650 set dummy $ac_prog; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8654 $as_echo_n "(cached) " >&6
8656 if test -n "$ac_ct_DUMPBIN"; then
8657 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8666 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8677 if test -n "$ac_ct_DUMPBIN"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8679 $as_echo "$ac_ct_DUMPBIN" >&6; }
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8686 test -n "$ac_ct_DUMPBIN" && break
8689 if test "x$ac_ct_DUMPBIN" = x; then
8692 case $cross_compiling:$ac_tool_warned in
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8696 ac_tool_warned=yes ;;
8698 DUMPBIN=$ac_ct_DUMPBIN
8702 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8704 DUMPBIN="$DUMPBIN -symbols -headers"
8712 if test : != "$DUMPBIN"; then
8716 test -z "$NM" && NM=nm
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8724 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8725 if ${lt_cv_nm_interface+:} false; then :
8726 $as_echo_n "(cached) " >&6
8728 lt_cv_nm_interface="BSD nm"
8729 echo "int some_variable = 0;" > conftest.$ac_ext
8730 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8731 (eval "$ac_compile" 2>conftest.err)
8732 cat conftest.err >&5
8733 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8734 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8735 cat conftest.err >&5
8736 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8737 cat conftest.out >&5
8738 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8739 lt_cv_nm_interface="MS dumpbin"
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8744 $as_echo "$lt_cv_nm_interface" >&6; }
8746 # find the maximum length of command line arguments
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8748 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8749 if ${lt_cv_sys_max_cmd_len+:} false; then :
8750 $as_echo_n "(cached) " >&6
8757 # On DJGPP, this test can blow up pretty badly due to problems in libc
8758 # (any single argument exceeding 2000 bytes causes a buffer overrun
8759 # during glob expansion). Even if it were fixed, the result of this
8760 # check would be larger than it should be.
8761 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8765 # Under GNU Hurd, this test is not required because there is
8766 # no limit to the length of command line arguments.
8767 # Libtool will interpret -1 as no limit whatsoever
8768 lt_cv_sys_max_cmd_len=-1;
8771 cygwin* | mingw* | cegcc*)
8772 # On Win9x/ME, this test blows up -- it succeeds, but takes
8773 # about 5 minutes as the teststring grows exponentially.
8774 # Worse, since 9x/ME are not pre-emptively multitasking,
8775 # you end up with a "frozen" computer, even though with patience
8776 # the test eventually succeeds (with a max line length of 256k).
8777 # Instead, let's just punt: use the minimum linelength reported by
8778 # all of the supported platforms: 8192 (on NT/2K/XP).
8779 lt_cv_sys_max_cmd_len=8192;
8783 # On MiNT this can take a long time and run out of memory.
8784 lt_cv_sys_max_cmd_len=8192;
8788 # On AmigaOS with pdksh, this test takes hours, literally.
8789 # So we just punt and use a minimum line length of 8192.
8790 lt_cv_sys_max_cmd_len=8192;
8793 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8794 # This has been around since 386BSD, at least. Likely further.
8795 if test -x /sbin/sysctl; then
8796 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8797 elif test -x /usr/sbin/sysctl; then
8798 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8800 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8802 # And add a safety zone
8803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8808 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8809 lt_cv_sys_max_cmd_len=196608
8813 # The test takes a long time on OS/2.
8814 lt_cv_sys_max_cmd_len=8192
8818 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8819 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8820 # nice to cause kernel panics so lets avoid the loop below.
8821 # First set a reasonable default.
8822 lt_cv_sys_max_cmd_len=16384
8824 if test -x /sbin/sysconfig; then
8825 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8826 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8831 lt_cv_sys_max_cmd_len=102400
8833 sysv5* | sco5v6* | sysv4.2uw2*)
8834 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8835 if test -n "$kargmax"; then
8836 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8838 lt_cv_sys_max_cmd_len=32768
8842 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8843 if test -n "$lt_cv_sys_max_cmd_len" && \
8844 test undefined != "$lt_cv_sys_max_cmd_len"; then
8845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8846 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8848 # Make teststring a little bigger before we do anything with it.
8849 # a 1K string should be a reasonable start.
8850 for i in 1 2 3 4 5 6 7 8; do
8851 teststring=$teststring$teststring
8853 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8854 # If test is not a shell built-in, we'll probably end up computing a
8855 # maximum length that is only half of the actual maximum length, but
8857 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8858 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8859 test 17 != "$i" # 1/2 MB should be enough
8862 teststring=$teststring$teststring
8864 # Only check the string length outside the loop.
8865 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8867 # Add a significant safety factor because C++ compilers can tack on
8868 # massive amounts of additional arguments before passing them to the
8869 # linker. It appears as though 1/2 is a usable value.
8870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8877 if test -n "$lt_cv_sys_max_cmd_len"; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8879 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8882 $as_echo "none" >&6; }
8884 max_cmd_len=$lt_cv_sys_max_cmd_len
8895 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8905 # test EBCDIC or ASCII
8906 case `echo X|tr X '\101'` in
8907 A) # ASCII based system
8908 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8909 lt_SP2NL='tr \040 \012'
8910 lt_NL2SP='tr \015\012 \040\040'
8912 *) # EBCDIC based system
8913 lt_SP2NL='tr \100 \n'
8914 lt_NL2SP='tr \r\n \100\100'
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8927 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8928 if ${lt_cv_to_host_file_cmd+:} false; then :
8929 $as_echo_n "(cached) " >&6
8934 *-*-mingw* ) # actually msys
8935 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8938 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8940 * ) # otherwise, assume *nix
8941 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8947 *-*-mingw* ) # actually msys
8948 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8951 lt_cv_to_host_file_cmd=func_convert_file_noop
8953 * ) # otherwise, assume *nix
8954 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8958 * ) # unhandled hosts (and "normal" native builds)
8959 lt_cv_to_host_file_cmd=func_convert_file_noop
8965 to_host_file_cmd=$lt_cv_to_host_file_cmd
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8967 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8974 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8975 if ${lt_cv_to_tool_file_cmd+:} false; then :
8976 $as_echo_n "(cached) " >&6
8978 #assume ordinary cross tools, or native build.
8979 lt_cv_to_tool_file_cmd=func_convert_file_noop
8983 *-*-mingw* ) # actually msys
8984 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8992 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8994 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9001 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9002 if ${lt_cv_ld_reload_flag+:} false; then :
9003 $as_echo_n "(cached) " >&6
9005 lt_cv_ld_reload_flag='-r'
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9008 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9009 reload_flag=$lt_cv_ld_reload_flag
9010 case $reload_flag in
9012 *) reload_flag=" $reload_flag" ;;
9014 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9016 cygwin* | mingw* | pw32* | cegcc*)
9017 if test yes != "$GCC"; then
9022 if test yes = "$GCC"; then
9023 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9025 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9038 if test -n "$ac_tool_prefix"; then
9039 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9040 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9042 $as_echo_n "checking for $ac_word... " >&6; }
9043 if ${ac_cv_prog_OBJDUMP+:} false; then :
9044 $as_echo_n "(cached) " >&6
9046 if test -n "$OBJDUMP"; then
9047 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 test -z "$as_dir" && as_dir=.
9054 for ac_exec_ext in '' $ac_executable_extensions; do
9055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9056 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9066 OBJDUMP=$ac_cv_prog_OBJDUMP
9067 if test -n "$OBJDUMP"; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9069 $as_echo "$OBJDUMP" >&6; }
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072 $as_echo "no" >&6; }
9077 if test -z "$ac_cv_prog_OBJDUMP"; then
9078 ac_ct_OBJDUMP=$OBJDUMP
9079 # Extract the first word of "objdump", so it can be a program name with args.
9080 set dummy objdump; ac_word=$2
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9082 $as_echo_n "checking for $ac_word... " >&6; }
9083 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9084 $as_echo_n "(cached) " >&6
9086 if test -n "$ac_ct_OBJDUMP"; then
9087 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
9095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9096 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9106 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9107 if test -n "$ac_ct_OBJDUMP"; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9109 $as_echo "$ac_ct_OBJDUMP" >&6; }
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112 $as_echo "no" >&6; }
9115 if test "x$ac_ct_OBJDUMP" = x; then
9118 case $cross_compiling:$ac_tool_warned in
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9122 ac_tool_warned=yes ;;
9124 OBJDUMP=$ac_ct_OBJDUMP
9127 OBJDUMP="$ac_cv_prog_OBJDUMP"
9130 test -z "$OBJDUMP" && OBJDUMP=objdump
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9141 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9142 if ${lt_cv_deplibs_check_method+:} false; then :
9143 $as_echo_n "(cached) " >&6
9145 lt_cv_file_magic_cmd='$MAGIC_CMD'
9146 lt_cv_file_magic_test_file=
9147 lt_cv_deplibs_check_method='unknown'
9148 # Need to set the preceding variable on all platforms that support
9149 # interlibrary dependencies.
9150 # 'none' -- dependencies not supported.
9151 # 'unknown' -- same as none, but documents that we really don't know.
9152 # 'pass_all' -- all dependencies passed with no checks.
9153 # 'test_compile' -- check by making test program.
9154 # 'file_magic [[regex]]' -- check by looking for files in library path
9155 # that responds to the $file_magic_cmd with a given extended regex.
9156 # If you have 'file' or equivalent on your system and you're not sure
9157 # whether 'pass_all' will *always* work, you probably want this one.
9161 lt_cv_deplibs_check_method=pass_all
9165 lt_cv_deplibs_check_method=pass_all
9169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9170 lt_cv_file_magic_cmd='/usr/bin/file -L'
9171 lt_cv_file_magic_test_file=/shlib/libc.so
9175 # func_win32_libid is a shell function defined in ltmain.sh
9176 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9177 lt_cv_file_magic_cmd='func_win32_libid'
9181 # Base MSYS/MinGW do not provide the 'file' command needed by
9182 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9183 # unless we find 'file', for example because we are cross-compiling.
9184 if ( file / ) >/dev/null 2>&1; then
9185 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9186 lt_cv_file_magic_cmd='func_win32_libid'
9188 # Keep this pattern in sync with the one in func_win32_libid.
9189 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9190 lt_cv_file_magic_cmd='$OBJDUMP -f'
9195 # use the weaker test based on 'objdump'. See mingw*.
9196 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9197 lt_cv_file_magic_cmd='$OBJDUMP -f'
9200 darwin* | rhapsody*)
9201 lt_cv_deplibs_check_method=pass_all
9204 freebsd* | dragonfly*)
9205 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9208 # Not sure whether the presence of OpenBSD here was a mistake.
9209 # Let's accept both of them until this is cleared up.
9210 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9211 lt_cv_file_magic_cmd=/usr/bin/file
9212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9216 lt_cv_deplibs_check_method=pass_all
9221 lt_cv_deplibs_check_method=pass_all
9224 hpux10.20* | hpux11*)
9225 lt_cv_file_magic_cmd=/usr/bin/file
9228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9232 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]'
9233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9247 irix5* | irix6* | nonstopux*)
9249 *-32|*"-32 ") libmagic=32-bit;;
9250 *-n32|*"-n32 ") libmagic=N32;;
9251 *-64|*"-64 ") libmagic=64-bit;;
9252 *) libmagic=never-match;;
9254 lt_cv_deplibs_check_method=pass_all
9257 # This must be glibc/ELF.
9258 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9259 lt_cv_deplibs_check_method=pass_all
9262 netbsd* | netbsdelf*-gnu)
9263 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9272 lt_cv_file_magic_cmd=/usr/bin/file
9273 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9277 lt_cv_deplibs_check_method=pass_all
9281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9288 osf3* | osf4* | osf5*)
9289 lt_cv_deplibs_check_method=pass_all
9293 lt_cv_deplibs_check_method=pass_all
9297 lt_cv_deplibs_check_method=pass_all
9300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9301 lt_cv_deplibs_check_method=pass_all
9305 case $host_vendor in
9307 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]'
9308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9311 lt_cv_deplibs_check_method=pass_all
9314 lt_cv_file_magic_cmd='/bin/file'
9315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9318 lt_cv_file_magic_cmd='/bin/file'
9319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9320 lt_cv_file_magic_test_file=/lib/libc.so
9323 lt_cv_deplibs_check_method=pass_all
9326 lt_cv_deplibs_check_method=pass_all
9332 lt_cv_deplibs_check_method=pass_all
9335 lt_cv_deplibs_check_method=pass_all
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9341 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9345 if test "$build" = "$host"; then
9348 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9351 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9357 file_magic_cmd=$lt_cv_file_magic_cmd
9358 deplibs_check_method=$lt_cv_deplibs_check_method
9359 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9382 if test -n "$ac_tool_prefix"; then
9383 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9384 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386 $as_echo_n "checking for $ac_word... " >&6; }
9387 if ${ac_cv_prog_DLLTOOL+:} false; then :
9388 $as_echo_n "(cached) " >&6
9390 if test -n "$DLLTOOL"; then
9391 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397 test -z "$as_dir" && as_dir=.
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9400 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9410 DLLTOOL=$ac_cv_prog_DLLTOOL
9411 if test -n "$DLLTOOL"; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9413 $as_echo "$DLLTOOL" >&6; }
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 $as_echo "no" >&6; }
9421 if test -z "$ac_cv_prog_DLLTOOL"; then
9422 ac_ct_DLLTOOL=$DLLTOOL
9423 # Extract the first word of "dlltool", so it can be a program name with args.
9424 set dummy dlltool; ac_word=$2
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9426 $as_echo_n "checking for $ac_word... " >&6; }
9427 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9428 $as_echo_n "(cached) " >&6
9430 if test -n "$ac_ct_DLLTOOL"; then
9431 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 test -z "$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_DLLTOOL="dlltool"
9441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9450 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9451 if test -n "$ac_ct_DLLTOOL"; then
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9453 $as_echo "$ac_ct_DLLTOOL" >&6; }
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456 $as_echo "no" >&6; }
9459 if test "x$ac_ct_DLLTOOL" = x; then
9462 case $cross_compiling:$ac_tool_warned in
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9466 ac_tool_warned=yes ;;
9468 DLLTOOL=$ac_ct_DLLTOOL
9471 DLLTOOL="$ac_cv_prog_DLLTOOL"
9474 test -z "$DLLTOOL" && DLLTOOL=dlltool
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9486 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9487 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9488 $as_echo_n "(cached) " >&6
9490 lt_cv_sharedlib_from_linklib_cmd='unknown'
9493 cygwin* | mingw* | pw32* | cegcc*)
9494 # two different shell functions defined in ltmain.sh;
9495 # decide which one to use based on capabilities of $DLLTOOL
9496 case `$DLLTOOL --help 2>&1` in
9497 *--identify-strict*)
9498 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9501 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9506 # fallback: assume linklib IS sharedlib
9507 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9513 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9514 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9515 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9523 if test -n "$ac_tool_prefix"; then
9526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9529 $as_echo_n "checking for $ac_word... " >&6; }
9530 if ${ac_cv_prog_AR+:} false; then :
9531 $as_echo_n "(cached) " >&6
9533 if test -n "$AR"; then
9534 ac_cv_prog_AR="$AR" # Let the user override the test.
9536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540 test -z "$as_dir" && as_dir=.
9541 for ac_exec_ext in '' $ac_executable_extensions; do
9542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9543 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9554 if test -n "$AR"; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9556 $as_echo "$AR" >&6; }
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 $as_echo "no" >&6; }
9563 test -n "$AR" && break
9566 if test -z "$AR"; then
9570 # Extract the first word of "$ac_prog", so it can be a program name with args.
9571 set dummy $ac_prog; ac_word=$2
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9573 $as_echo_n "checking for $ac_word... " >&6; }
9574 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9575 $as_echo_n "(cached) " >&6
9577 if test -n "$ac_ct_AR"; then
9578 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9587 ac_cv_prog_ac_ct_AR="$ac_prog"
9588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9598 if test -n "$ac_ct_AR"; then
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9600 $as_echo "$ac_ct_AR" >&6; }
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9603 $as_echo "no" >&6; }
9607 test -n "$ac_ct_AR" && break
9610 if test "x$ac_ct_AR" = x; then
9613 case $cross_compiling:$ac_tool_warned in
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9617 ac_tool_warned=yes ;;
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9637 $as_echo_n "checking for archiver @FILE support... " >&6; }
9638 if ${lt_cv_ar_at_file+:} false; then :
9639 $as_echo_n "(cached) " >&6
9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643 /* end confdefs.h. */
9653 if ac_fn_c_try_compile "$LINENO"; then :
9654 echo conftest.$ac_objext > conftest.lst
9655 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9657 (eval $lt_ar_try) 2>&5
9659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9660 test $ac_status = 0; }
9661 if test 0 -eq "$ac_status"; then
9662 # Ensure the archiver fails upon bogus file names.
9663 rm -f conftest.$ac_objext libconftest.a
9664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9665 (eval $lt_ar_try) 2>&5
9667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9668 test $ac_status = 0; }
9669 if test 0 -ne "$ac_status"; then
9673 rm -f conftest.* libconftest.a
9676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9680 $as_echo "$lt_cv_ar_at_file" >&6; }
9682 if test no = "$lt_cv_ar_at_file"; then
9685 archiver_list_spec=$lt_cv_ar_at_file
9694 if test -n "$ac_tool_prefix"; then
9695 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9696 set dummy ${ac_tool_prefix}strip; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698 $as_echo_n "checking for $ac_word... " >&6; }
9699 if ${ac_cv_prog_STRIP+:} false; then :
9700 $as_echo_n "(cached) " >&6
9702 if test -n "$STRIP"; then
9703 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709 test -z "$as_dir" && as_dir=.
9710 for ac_exec_ext in '' $ac_executable_extensions; do
9711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9712 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 STRIP=$ac_cv_prog_STRIP
9723 if test -n "$STRIP"; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9725 $as_echo "$STRIP" >&6; }
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9733 if test -z "$ac_cv_prog_STRIP"; then
9735 # Extract the first word of "strip", so it can be a program name with args.
9736 set dummy strip; ac_word=$2
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9738 $as_echo_n "checking for $ac_word... " >&6; }
9739 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9740 $as_echo_n "(cached) " >&6
9742 if test -n "$ac_ct_STRIP"; then
9743 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9752 ac_cv_prog_ac_ct_STRIP="strip"
9753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9762 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9763 if test -n "$ac_ct_STRIP"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9765 $as_echo "$ac_ct_STRIP" >&6; }
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9771 if test "x$ac_ct_STRIP" = x; then
9774 case $cross_compiling:$ac_tool_warned in
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9778 ac_tool_warned=yes ;;
9783 STRIP="$ac_cv_prog_STRIP"
9786 test -z "$STRIP" && STRIP=:
9793 if test -n "$ac_tool_prefix"; then
9794 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9795 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if ${ac_cv_prog_RANLIB+:} false; then :
9799 $as_echo_n "(cached) " >&6
9801 if test -n "$RANLIB"; then
9802 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9811 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9821 RANLIB=$ac_cv_prog_RANLIB
9822 if test -n "$RANLIB"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9824 $as_echo "$RANLIB" >&6; }
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9832 if test -z "$ac_cv_prog_RANLIB"; then
9833 ac_ct_RANLIB=$RANLIB
9834 # Extract the first word of "ranlib", so it can be a program name with args.
9835 set dummy ranlib; ac_word=$2
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 $as_echo_n "checking for $ac_word... " >&6; }
9838 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9839 $as_echo_n "(cached) " >&6
9841 if test -n "$ac_ct_RANLIB"; then
9842 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848 test -z "$as_dir" && as_dir=.
9849 for ac_exec_ext in '' $ac_executable_extensions; do
9850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9851 ac_cv_prog_ac_ct_RANLIB="ranlib"
9852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9861 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9862 if test -n "$ac_ct_RANLIB"; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9864 $as_echo "$ac_ct_RANLIB" >&6; }
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9870 if test "x$ac_ct_RANLIB" = x; then
9873 case $cross_compiling:$ac_tool_warned in
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9877 ac_tool_warned=yes ;;
9879 RANLIB=$ac_ct_RANLIB
9882 RANLIB="$ac_cv_prog_RANLIB"
9885 test -z "$RANLIB" && RANLIB=:
9892 # Determine commands to create old-style static archives.
9893 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9894 old_postinstall_cmds='chmod 644 $oldlib'
9895 old_postuninstall_cmds=
9897 if test -n "$RANLIB"; then
9900 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9903 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9906 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9911 lock_old_archive_extraction=yes ;;
9913 lock_old_archive_extraction=no ;;
9954 # If no C compiler was specified, use CC.
9957 # If no C compiler flags were specified, use CFLAGS.
9958 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9960 # Allow CC to be a program name with arguments.
9964 # Check for command to grab the raw symbol name followed by C symbol from nm.
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9966 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9967 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9968 $as_echo_n "(cached) " >&6
9971 # These are sane defaults that work on at least a few old systems.
9972 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9974 # Character class describing NM global symbol codes.
9975 symcode='[BCDEGRST]'
9977 # Regexp to match symbols that can be accessed directly from C.
9978 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9980 # Define system-specific variables.
9985 cygwin* | mingw* | pw32* | cegcc*)
9986 symcode='[ABCDGISTW]'
9989 if test ia64 = "$host_cpu"; then
9990 symcode='[ABCDEGRST]'
9994 symcode='[BCDEGRST]'
9997 symcode='[BCDEGQRST]'
10008 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10016 # If we're using GNU nm, then use its standard symbol codes.
10017 case `$NM -V 2>&1` in
10018 *GNU* | *'with BFD'*)
10019 symcode='[ABCDGIRSTW]' ;;
10022 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10023 # Gets list of data symbols to import.
10024 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
10025 # Adjust the below global symbol transforms to fixup imported variables.
10026 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10027 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
10028 lt_c_name_lib_hook="\
10029 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
10030 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
10032 # Disable hooks by default.
10033 lt_cv_sys_global_symbol_to_import=
10036 lt_c_name_lib_hook=
10039 # Transform an extracted symbol line into a proper C declaration.
10040 # Some systems (esp. on ia64) link data and code symbols differently,
10041 # so use this general approach.
10042 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
10044 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10045 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10047 # Transform an extracted symbol line into symbol name and symbol address
10048 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
10050 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10051 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
10053 # Transform an extracted symbol line into symbol name with lib prefix and
10055 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
10056 $lt_c_name_lib_hook\
10057 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10058 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
10059 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
10061 # Handle CRLF in mingw tool chain
10065 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10069 # Try without a prefix underscore, then with it.
10070 for ac_symprfx in "" "_"; do
10072 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10073 symxfrm="\\1 $ac_symprfx\\2 \\2"
10075 # Write the raw and C identifiers.
10076 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10077 # Fake it for dumpbin and say T for any non-static function,
10078 # D for any global variable and I for any imported variable.
10079 # Also find C++ and __fastcall symbols from MSVC++,
10080 # which start with @ or ?.
10081 lt_cv_sys_global_symbol_pipe="$AWK '"\
10082 " {last_section=section; section=\$ 3};"\
10083 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10084 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10085 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10086 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10087 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10088 " \$ 0!~/External *\|/{next};"\
10089 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10090 " {if(hide[section]) next};"\
10091 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10092 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10093 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10094 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10095 " ' prfx=^$ac_symprfx"
10097 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10099 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10101 # Check to see that the pipe works correctly.
10105 cat > conftest.$ac_ext <<_LT_EOF
10110 void nm_test_func(void);
10111 void nm_test_func(void){}
10115 int main(){nm_test_var='a';nm_test_func();return(0);}
10118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10119 (eval $ac_compile) 2>&5
10121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10122 test $ac_status = 0; }; then
10123 # Now try to grab the symbols.
10125 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10126 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10127 # Try sorting and uniquifying the output.
10128 if sort "$nlist" | uniq > "$nlist"T; then
10129 mv -f "$nlist"T "$nlist"
10134 # Make sure that we snagged all the symbols we need.
10135 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10136 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10137 cat <<_LT_EOF > conftest.$ac_ext
10138 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10139 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10140 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10141 relocations are performed -- see ld's documentation on pseudo-relocs. */
10142 # define LT_DLSYM_CONST
10143 #elif defined __osf__
10144 /* This system does not cope well with relocations in const data. */
10145 # define LT_DLSYM_CONST
10147 # define LT_DLSYM_CONST const
10155 # Now generate the symbol file.
10156 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10158 cat <<_LT_EOF >> conftest.$ac_ext
10160 /* The mapping between symbol names and symbols. */
10161 LT_DLSYM_CONST struct {
10165 lt__PROGRAM__LTX_preloaded_symbols[] =
10167 { "@PROGRAM@", (void *) 0 },
10169 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10170 cat <<\_LT_EOF >> conftest.$ac_ext
10174 /* This works around a problem in FreeBSD linker */
10175 #ifdef FREEBSD_WORKAROUND
10176 static const void *lt_preloaded_setup() {
10177 return lt__PROGRAM__LTX_preloaded_symbols;
10185 # Now try linking the two files.
10186 mv conftest.$ac_objext conftstm.$ac_objext
10187 lt_globsym_save_LIBS=$LIBS
10188 lt_globsym_save_CFLAGS=$CFLAGS
10189 LIBS=conftstm.$ac_objext
10190 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10192 (eval $ac_link) 2>&5
10194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10195 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10198 LIBS=$lt_globsym_save_LIBS
10199 CFLAGS=$lt_globsym_save_CFLAGS
10201 echo "cannot find nm_test_func in $nlist" >&5
10204 echo "cannot find nm_test_var in $nlist" >&5
10207 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10210 echo "$progname: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10213 rm -rf conftest* conftst*
10215 # Do not use the global_symbol_pipe unless it works.
10216 if test yes = "$pipe_works"; then
10219 lt_cv_sys_global_symbol_pipe=
10225 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10226 lt_cv_sys_global_symbol_to_cdecl=
10228 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10230 $as_echo "failed" >&6; }
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10233 $as_echo "ok" >&6; }
10236 # Response file support.
10237 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10238 nm_file_list_spec='@'
10239 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10240 nm_file_list_spec='@'
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10280 $as_echo_n "checking for sysroot... " >&6; }
10282 # Check whether --with-sysroot was given.
10283 if test "${with_sysroot+set}" = set; then :
10284 withval=$with_sysroot;
10291 case $with_sysroot in #(
10293 if test yes = "$GCC"; then
10294 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10298 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10304 $as_echo "$with_sysroot" >&6; }
10305 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10310 $as_echo "${lt_sysroot:-no}" >&6; }
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10317 $as_echo_n "checking for a working dd... " >&6; }
10318 if ${ac_cv_path_lt_DD+:} false; then :
10319 $as_echo_n "(cached) " >&6
10321 printf 0123456789abcdef0123456789abcdef >conftest.i
10322 cat conftest.i conftest.i >conftest2.i
10324 if test -z "$lt_DD"; then
10325 ac_path_lt_DD_found=false
10326 # Loop through the user's path and test for each of PROGNAME-LIST
10327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328 for as_dir in $PATH
10331 test -z "$as_dir" && as_dir=.
10332 for ac_prog in dd; do
10333 for ac_exec_ext in '' $ac_executable_extensions; do
10334 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
10335 as_fn_executable_p "$ac_path_lt_DD" || continue
10336 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10337 cmp -s conftest.i conftest.out \
10338 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10340 $ac_path_lt_DD_found && break 3
10345 if test -z "$ac_cv_path_lt_DD"; then
10349 ac_cv_path_lt_DD=$lt_DD
10352 rm -f conftest.i conftest2.i conftest.out
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10355 $as_echo "$ac_cv_path_lt_DD" >&6; }
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10359 $as_echo_n "checking how to truncate binary pipes... " >&6; }
10360 if ${lt_cv_truncate_bin+:} false; then :
10361 $as_echo_n "(cached) " >&6
10363 printf 0123456789abcdef0123456789abcdef >conftest.i
10364 cat conftest.i conftest.i >conftest2.i
10365 lt_cv_truncate_bin=
10366 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10367 cmp -s conftest.i conftest.out \
10368 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10370 rm -f conftest.i conftest2.i conftest.out
10371 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10374 $as_echo "$lt_cv_truncate_bin" >&6; }
10382 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10383 func_cc_basename ()
10385 for cc_temp in $*""; do
10387 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10388 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10393 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10396 # Check whether --enable-libtool-lock was given.
10397 if test "${enable_libtool_lock+set}" = set; then :
10398 enableval=$enable_libtool_lock;
10401 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10403 # Some flags need to be propagated to the compiler or linker for good
10407 # Find out what ABI is being produced by ac_compile, and set mode
10408 # options accordingly.
10409 echo 'int i;' > conftest.$ac_ext
10410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10411 (eval $ac_compile) 2>&5
10413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10414 test $ac_status = 0; }; then
10415 case `/usr/bin/file conftest.$ac_objext` in
10427 # Find out what ABI is being produced by ac_compile, and set linker
10428 # options accordingly.
10429 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10431 (eval $ac_compile) 2>&5
10433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10434 test $ac_status = 0; }; then
10435 if test yes = "$lt_cv_prog_gnu_ld"; then
10436 case `/usr/bin/file conftest.$ac_objext` in
10438 LD="${LD-ld} -melf32bsmip"
10441 LD="${LD-ld} -melf32bmipn32"
10444 LD="${LD-ld} -melf64bmip"
10448 case `/usr/bin/file conftest.$ac_objext` in
10465 # Find out what ABI is being produced by ac_compile, and set linker
10466 # options accordingly.
10467 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10469 (eval $ac_compile) 2>&5
10471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10472 test $ac_status = 0; }; then
10474 case `/usr/bin/file conftest.$ac_objext` in
10482 case `/usr/bin/file conftest.$ac_objext` in
10484 emul="${emul}btsmip"
10487 emul="${emul}ltsmip"
10490 case `/usr/bin/file conftest.$ac_objext` in
10495 LD="${LD-ld} -m $emul"
10500 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10501 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10502 # Find out what ABI is being produced by ac_compile, and set linker
10503 # options accordingly. Note that the listed cases only cover the
10504 # situations where additional linker options are needed (such as when
10505 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10506 # vice versa); the common cases where no linker options are needed do
10507 # not appear in the list.
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 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513 test $ac_status = 0; }; then
10514 case `/usr/bin/file conftest.o` in
10517 x86_64-*kfreebsd*-gnu)
10518 LD="${LD-ld} -m elf_i386_fbsd"
10521 case `/usr/bin/file conftest.o` in
10523 LD="${LD-ld} -m elf32_x86_64"
10526 LD="${LD-ld} -m elf_i386"
10530 powerpc64le-*linux*)
10531 LD="${LD-ld} -m elf32lppclinux"
10534 LD="${LD-ld} -m elf32ppclinux"
10537 LD="${LD-ld} -m elf_s390"
10540 LD="${LD-ld} -m elf32_sparc"
10546 x86_64-*kfreebsd*-gnu)
10547 LD="${LD-ld} -m elf_x86_64_fbsd"
10550 LD="${LD-ld} -m elf_x86_64"
10553 LD="${LD-ld} -m elf64lppc"
10556 LD="${LD-ld} -m elf64ppc"
10558 s390*-*linux*|s390*-*tpf*)
10559 LD="${LD-ld} -m elf64_s390"
10562 LD="${LD-ld} -m elf64_sparc"
10572 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10573 SAVE_CFLAGS=$CFLAGS
10574 CFLAGS="$CFLAGS -belf"
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10576 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10577 if ${lt_cv_cc_needs_belf+:} false; then :
10578 $as_echo_n "(cached) " >&6
10581 ac_cpp='$CPP $CPPFLAGS'
10582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10597 if ac_fn_c_try_link "$LINENO"; then :
10598 lt_cv_cc_needs_belf=yes
10600 lt_cv_cc_needs_belf=no
10602 rm -f core conftest.err conftest.$ac_objext \
10603 conftest$ac_exeext conftest.$ac_ext
10605 ac_cpp='$CPP $CPPFLAGS'
10606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10612 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10613 if test yes != "$lt_cv_cc_needs_belf"; then
10614 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10615 CFLAGS=$SAVE_CFLAGS
10619 # Find out what ABI is being produced by ac_compile, and set linker
10620 # options accordingly.
10621 echo 'int i;' > conftest.$ac_ext
10622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10623 (eval $ac_compile) 2>&5
10625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10626 test $ac_status = 0; }; then
10627 case `/usr/bin/file conftest.o` in
10629 case $lt_cv_prog_gnu_ld in
10632 i?86-*-solaris*|x86_64-*-solaris*)
10633 LD="${LD-ld} -m elf_x86_64"
10636 LD="${LD-ld} -m elf64_sparc"
10639 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10640 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10645 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10657 need_locks=$enable_libtool_lock
10659 if test -n "$ac_tool_prefix"; then
10660 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10661 set dummy ${ac_tool_prefix}mt; ac_word=$2
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10663 $as_echo_n "checking for $ac_word... " >&6; }
10664 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10665 $as_echo_n "(cached) " >&6
10667 if test -n "$MANIFEST_TOOL"; then
10668 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10674 test -z "$as_dir" && as_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10677 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10687 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10688 if test -n "$MANIFEST_TOOL"; then
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10690 $as_echo "$MANIFEST_TOOL" >&6; }
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693 $as_echo "no" >&6; }
10698 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10699 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10700 # Extract the first word of "mt", so it can be a program name with args.
10701 set dummy mt; ac_word=$2
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10703 $as_echo_n "checking for $ac_word... " >&6; }
10704 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10705 $as_echo_n "(cached) " >&6
10707 if test -n "$ac_ct_MANIFEST_TOOL"; then
10708 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711 for as_dir in $PATH
10714 test -z "$as_dir" && as_dir=.
10715 for ac_exec_ext in '' $ac_executable_extensions; do
10716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10717 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10727 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10728 if test -n "$ac_ct_MANIFEST_TOOL"; then
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10730 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10736 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10739 case $cross_compiling:$ac_tool_warned in
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10743 ac_tool_warned=yes ;;
10745 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10748 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10751 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10753 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10754 if ${lt_cv_path_mainfest_tool+:} false; then :
10755 $as_echo_n "(cached) " >&6
10757 lt_cv_path_mainfest_tool=no
10758 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10759 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10760 cat conftest.err >&5
10761 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10762 lt_cv_path_mainfest_tool=yes
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10767 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10768 if test yes != "$lt_cv_path_mainfest_tool"; then
10778 rhapsody* | darwin*)
10779 if test -n "$ac_tool_prefix"; then
10780 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10781 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783 $as_echo_n "checking for $ac_word... " >&6; }
10784 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10785 $as_echo_n "(cached) " >&6
10787 if test -n "$DSYMUTIL"; then
10788 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791 for as_dir in $PATH
10794 test -z "$as_dir" && as_dir=.
10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10797 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10808 if test -n "$DSYMUTIL"; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10810 $as_echo "$DSYMUTIL" >&6; }
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10818 if test -z "$ac_cv_prog_DSYMUTIL"; then
10819 ac_ct_DSYMUTIL=$DSYMUTIL
10820 # Extract the first word of "dsymutil", so it can be a program name with args.
10821 set dummy dsymutil; ac_word=$2
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10823 $as_echo_n "checking for $ac_word... " >&6; }
10824 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10825 $as_echo_n "(cached) " >&6
10827 if test -n "$ac_ct_DSYMUTIL"; then
10828 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831 for as_dir in $PATH
10834 test -z "$as_dir" && as_dir=.
10835 for ac_exec_ext in '' $ac_executable_extensions; do
10836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10837 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10848 if test -n "$ac_ct_DSYMUTIL"; then
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10850 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853 $as_echo "no" >&6; }
10856 if test "x$ac_ct_DSYMUTIL" = x; then
10859 case $cross_compiling:$ac_tool_warned in
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10863 ac_tool_warned=yes ;;
10865 DSYMUTIL=$ac_ct_DSYMUTIL
10868 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10871 if test -n "$ac_tool_prefix"; then
10872 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10873 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10875 $as_echo_n "checking for $ac_word... " >&6; }
10876 if ${ac_cv_prog_NMEDIT+:} false; then :
10877 $as_echo_n "(cached) " >&6
10879 if test -n "$NMEDIT"; then
10880 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883 for as_dir in $PATH
10886 test -z "$as_dir" && as_dir=.
10887 for ac_exec_ext in '' $ac_executable_extensions; do
10888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10889 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10899 NMEDIT=$ac_cv_prog_NMEDIT
10900 if test -n "$NMEDIT"; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10902 $as_echo "$NMEDIT" >&6; }
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10910 if test -z "$ac_cv_prog_NMEDIT"; then
10911 ac_ct_NMEDIT=$NMEDIT
10912 # Extract the first word of "nmedit", so it can be a program name with args.
10913 set dummy nmedit; ac_word=$2
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915 $as_echo_n "checking for $ac_word... " >&6; }
10916 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10917 $as_echo_n "(cached) " >&6
10919 if test -n "$ac_ct_NMEDIT"; then
10920 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in $PATH
10926 test -z "$as_dir" && as_dir=.
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10929 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10939 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10940 if test -n "$ac_ct_NMEDIT"; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10942 $as_echo "$ac_ct_NMEDIT" >&6; }
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 $as_echo "no" >&6; }
10948 if test "x$ac_ct_NMEDIT" = x; then
10951 case $cross_compiling:$ac_tool_warned in
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10955 ac_tool_warned=yes ;;
10957 NMEDIT=$ac_ct_NMEDIT
10960 NMEDIT="$ac_cv_prog_NMEDIT"
10963 if test -n "$ac_tool_prefix"; then
10964 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10965 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967 $as_echo_n "checking for $ac_word... " >&6; }
10968 if ${ac_cv_prog_LIPO+:} false; then :
10969 $as_echo_n "(cached) " >&6
10971 if test -n "$LIPO"; then
10972 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in $PATH
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10981 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 LIPO=$ac_cv_prog_LIPO
10992 if test -n "$LIPO"; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10994 $as_echo "$LIPO" >&6; }
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997 $as_echo "no" >&6; }
11002 if test -z "$ac_cv_prog_LIPO"; then
11004 # Extract the first word of "lipo", so it can be a program name with args.
11005 set dummy lipo; ac_word=$2
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11007 $as_echo_n "checking for $ac_word... " >&6; }
11008 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11009 $as_echo_n "(cached) " >&6
11011 if test -n "$ac_ct_LIPO"; then
11012 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015 for as_dir in $PATH
11018 test -z "$as_dir" && as_dir=.
11019 for ac_exec_ext in '' $ac_executable_extensions; do
11020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11021 ac_cv_prog_ac_ct_LIPO="lipo"
11022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11031 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11032 if test -n "$ac_ct_LIPO"; then
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11034 $as_echo "$ac_ct_LIPO" >&6; }
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11040 if test "x$ac_ct_LIPO" = x; then
11043 case $cross_compiling:$ac_tool_warned in
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11047 ac_tool_warned=yes ;;
11052 LIPO="$ac_cv_prog_LIPO"
11055 if test -n "$ac_tool_prefix"; then
11056 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11057 set dummy ${ac_tool_prefix}otool; ac_word=$2
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11059 $as_echo_n "checking for $ac_word... " >&6; }
11060 if ${ac_cv_prog_OTOOL+:} false; then :
11061 $as_echo_n "(cached) " >&6
11063 if test -n "$OTOOL"; then
11064 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067 for as_dir in $PATH
11070 test -z "$as_dir" && as_dir=.
11071 for ac_exec_ext in '' $ac_executable_extensions; do
11072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11073 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11083 OTOOL=$ac_cv_prog_OTOOL
11084 if test -n "$OTOOL"; then
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11086 $as_echo "$OTOOL" >&6; }
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11094 if test -z "$ac_cv_prog_OTOOL"; then
11096 # Extract the first word of "otool", so it can be a program name with args.
11097 set dummy otool; ac_word=$2
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11099 $as_echo_n "checking for $ac_word... " >&6; }
11100 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11101 $as_echo_n "(cached) " >&6
11103 if test -n "$ac_ct_OTOOL"; then
11104 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11113 ac_cv_prog_ac_ct_OTOOL="otool"
11114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11123 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11124 if test -n "$ac_ct_OTOOL"; then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11126 $as_echo "$ac_ct_OTOOL" >&6; }
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11132 if test "x$ac_ct_OTOOL" = x; then
11135 case $cross_compiling:$ac_tool_warned in
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11139 ac_tool_warned=yes ;;
11144 OTOOL="$ac_cv_prog_OTOOL"
11147 if test -n "$ac_tool_prefix"; then
11148 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11149 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11151 $as_echo_n "checking for $ac_word... " >&6; }
11152 if ${ac_cv_prog_OTOOL64+:} false; then :
11153 $as_echo_n "(cached) " >&6
11155 if test -n "$OTOOL64"; then
11156 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159 for as_dir in $PATH
11162 test -z "$as_dir" && as_dir=.
11163 for ac_exec_ext in '' $ac_executable_extensions; do
11164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11165 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11175 OTOOL64=$ac_cv_prog_OTOOL64
11176 if test -n "$OTOOL64"; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11178 $as_echo "$OTOOL64" >&6; }
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11186 if test -z "$ac_cv_prog_OTOOL64"; then
11187 ac_ct_OTOOL64=$OTOOL64
11188 # Extract the first word of "otool64", so it can be a program name with args.
11189 set dummy otool64; ac_word=$2
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191 $as_echo_n "checking for $ac_word... " >&6; }
11192 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11193 $as_echo_n "(cached) " >&6
11195 if test -n "$ac_ct_OTOOL64"; then
11196 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11202 test -z "$as_dir" && as_dir=.
11203 for ac_exec_ext in '' $ac_executable_extensions; do
11204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11205 ac_cv_prog_ac_ct_OTOOL64="otool64"
11206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11215 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11216 if test -n "$ac_ct_OTOOL64"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11218 $as_echo "$ac_ct_OTOOL64" >&6; }
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11224 if test "x$ac_ct_OTOOL64" = x; then
11227 case $cross_compiling:$ac_tool_warned in
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11231 ac_tool_warned=yes ;;
11233 OTOOL64=$ac_ct_OTOOL64
11236 OTOOL64="$ac_cv_prog_OTOOL64"
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11266 $as_echo_n "checking for -single_module linker flag... " >&6; }
11267 if ${lt_cv_apple_cc_single_mod+:} false; then :
11268 $as_echo_n "(cached) " >&6
11270 lt_cv_apple_cc_single_mod=no
11271 if test -z "$LT_MULTI_MODULE"; then
11272 # By default we will add the -single_module flag. You can override
11273 # by either setting the environment variable LT_MULTI_MODULE
11274 # non-empty at configure time, or by adding -multi_module to the
11276 rm -rf libconftest.dylib*
11277 echo "int foo(void){return 1;}" > conftest.c
11278 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11279 -dynamiclib -Wl,-single_module conftest.c" >&5
11280 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11281 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11283 # If there is a non-empty error log, and "single_module"
11284 # appears in it, assume the flag caused a linker warning
11285 if test -s conftest.err && $GREP single_module conftest.err; then
11286 cat conftest.err >&5
11287 # Otherwise, if the output was created with a 0 exit code from
11288 # the compiler, it worked.
11289 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11290 lt_cv_apple_cc_single_mod=yes
11292 cat conftest.err >&5
11294 rm -rf libconftest.dylib*
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11299 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11302 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11303 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11304 $as_echo_n "(cached) " >&6
11306 lt_cv_ld_exported_symbols_list=no
11307 save_LDFLAGS=$LDFLAGS
11308 echo "_main" > conftest.sym
11309 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11321 if ac_fn_c_try_link "$LINENO"; then :
11322 lt_cv_ld_exported_symbols_list=yes
11324 lt_cv_ld_exported_symbols_list=no
11326 rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 LDFLAGS=$save_LDFLAGS
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11332 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11335 $as_echo_n "checking for -force_load linker flag... " >&6; }
11336 if ${lt_cv_ld_force_load+:} false; then :
11337 $as_echo_n "(cached) " >&6
11339 lt_cv_ld_force_load=no
11340 cat > conftest.c << _LT_EOF
11341 int forced_loaded() { return 2;}
11343 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11344 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11345 echo "$AR cru libconftest.a conftest.o" >&5
11346 $AR cru libconftest.a conftest.o 2>&5
11347 echo "$RANLIB libconftest.a" >&5
11348 $RANLIB libconftest.a 2>&5
11349 cat > conftest.c << _LT_EOF
11350 int main() { return 0;}
11352 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11353 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11355 if test -s conftest.err && $GREP force_load conftest.err; then
11356 cat conftest.err >&5
11357 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11358 lt_cv_ld_force_load=yes
11360 cat conftest.err >&5
11362 rm -f conftest.err libconftest.a conftest conftest.c
11363 rm -rf conftest.dSYM
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11367 $as_echo "$lt_cv_ld_force_load" >&6; }
11369 rhapsody* | darwin1.[012])
11370 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11372 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11373 darwin*) # darwin 5.x on
11374 # if running on 10.5 or later, the deployment target defaults
11375 # to the OS version, if on x86, and 10.4, the deployment
11376 # target defaults to 10.4. Don't you love it?
11377 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11378 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11379 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11381 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11383 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11387 if test yes = "$lt_cv_apple_cc_single_mod"; then
11388 _lt_dar_single_mod='$single_module'
11390 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11391 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11393 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11395 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11396 _lt_dsymutil='~$DSYMUTIL $lib || :'
11403 # func_munge_path_list VARIABLE PATH
11404 # -----------------------------------
11405 # VARIABLE is name of variable containing _space_ separated list of
11406 # directories to be munged by the contents of PATH, which is string
11409 # string "DIR[ DIR]" will be prepended to VARIABLE
11411 # string "DIR[ DIR]" will be appended to VARIABLE
11412 # "DIRP[:DIRP]::[DIRA:]DIRA"
11413 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11414 # "DIRA[ DIRA]" will be appended to VARIABLE
11416 # VARIABLE will be replaced by "DIR[ DIR]"
11417 func_munge_path_list ()
11423 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11426 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11429 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11430 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11433 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11438 for ac_header in dlfcn.h
11440 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11442 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11443 cat >>confdefs.h <<_ACEOF
11444 #define HAVE_DLFCN_H 1
11456 # Check whether --enable-static was given.
11457 if test "${enable_static+set}" = set; then :
11458 enableval=$enable_static; p=${PACKAGE-default}
11460 yes) enable_static=yes ;;
11461 no) enable_static=no ;;
11464 # Look at the argument we got. We use all the common list separators.
11465 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11466 for pkg in $enableval; do
11468 if test "X$pkg" = "X$p"; then
11491 enable_win32_dll=no
11494 # Check whether --enable-shared was given.
11495 if test "${enable_shared+set}" = set; then :
11496 enableval=$enable_shared; p=${PACKAGE-default}
11498 yes) enable_shared=yes ;;
11499 no) enable_shared=no ;;
11502 # Look at the argument we got. We use all the common list separators.
11503 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11504 for pkg in $enableval; do
11506 if test "X$pkg" = "X$p"; then
11527 # Check whether --with-pic was given.
11528 if test "${with_pic+set}" = set; then :
11529 withval=$with_pic; lt_p=${PACKAGE-default}
11531 yes|no) pic_mode=$withval ;;
11534 # Look at the argument we got. We use all the common list separators.
11535 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11536 for lt_pkg in $withval; do
11538 if test "X$lt_pkg" = "X$lt_p"; then
11556 # Check whether --enable-fast-install was given.
11557 if test "${enable_fast_install+set}" = set; then :
11558 enableval=$enable_fast_install; p=${PACKAGE-default}
11560 yes) enable_fast_install=yes ;;
11561 no) enable_fast_install=no ;;
11563 enable_fast_install=no
11564 # Look at the argument we got. We use all the common list separators.
11565 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11566 for pkg in $enableval; do
11568 if test "X$pkg" = "X$p"; then
11569 enable_fast_install=yes
11576 enable_fast_install=yes
11586 shared_archive_member_spec=
11587 case $host,$enable_shared in
11588 power*-*-aix[5-9]*,yes)
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11590 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11592 # Check whether --with-aix-soname was given.
11593 if test "${with_aix_soname+set}" = set; then :
11594 withval=$with_aix_soname; case $withval in
11598 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11601 lt_cv_with_aix_soname=$with_aix_soname
11603 if ${lt_cv_with_aix_soname+:} false; then :
11604 $as_echo_n "(cached) " >&6
11606 lt_cv_with_aix_soname=aix
11609 with_aix_soname=$lt_cv_with_aix_soname
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11613 $as_echo "$with_aix_soname" >&6; }
11614 if test aix != "$with_aix_soname"; then
11615 # For the AIX way of multilib, we name the shared archive member
11616 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11617 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11618 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11619 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11620 if test 64 = "${OBJECT_MODE-32}"; then
11621 shared_archive_member_spec=shr_64
11623 shared_archive_member_spec=shr
11628 with_aix_soname=aix
11641 # This can be used to rebuild libtool when needed
11642 LIBTOOL_DEPS=$ltmain
11644 # Always use our own libtool.
11645 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11676 test -z "$LN_S" && LN_S="ln -s"
11691 if test -n "${ZSH_VERSION+set}"; then
11692 setopt NO_GLOB_SUBST
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11696 $as_echo_n "checking for objdir... " >&6; }
11697 if ${lt_cv_objdir+:} false; then :
11698 $as_echo_n "(cached) " >&6
11700 rm -f .libs 2>/dev/null
11701 mkdir .libs 2>/dev/null
11702 if test -d .libs; then
11705 # MS-DOS does not allow filenames that begin with a dot.
11708 rmdir .libs 2>/dev/null
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11711 $as_echo "$lt_cv_objdir" >&6; }
11712 objdir=$lt_cv_objdir
11718 cat >>confdefs.h <<_ACEOF
11719 #define LT_OBJDIR "$lt_cv_objdir/"
11727 # AIX sometimes has problems with the GCC collect2 program. For some
11728 # reason, if we set the COLLECT_NAMES environment variable, the problems
11729 # vanish in a puff of smoke.
11730 if test set != "${COLLECT_NAMES+set}"; then
11732 export COLLECT_NAMES
11737 # Global variables:
11739 can_build_shared=yes
11741 # All known linkers require a '.a' archive for static linking (except MSVC,
11742 # which needs '.lib').
11745 with_gnu_ld=$lt_cv_prog_gnu_ld
11750 # Set sane defaults for various variables
11751 test -z "$CC" && CC=cc
11752 test -z "$LTCC" && LTCC=$CC
11753 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11754 test -z "$LD" && LD=ld
11755 test -z "$ac_objext" && ac_objext=o
11757 func_cc_basename $compiler
11758 cc_basename=$func_cc_basename_result
11761 # Only perform the check for file, if the check method requires it
11762 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11763 case $deplibs_check_method in
11765 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11767 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11768 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11769 $as_echo_n "(cached) " >&6
11773 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11776 lt_save_MAGIC_CMD=$MAGIC_CMD
11777 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11778 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11779 for ac_dir in $ac_dummy; do
11781 test -z "$ac_dir" && ac_dir=.
11782 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11783 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11784 if test -n "$file_magic_test_file"; then
11785 case $deplibs_check_method in
11787 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11788 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11789 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11790 $EGREP "$file_magic_regex" > /dev/null; then
11795 *** Warning: the command libtool uses to detect shared libraries,
11796 *** $file_magic_cmd, produces output that libtool cannot recognize.
11797 *** The result is that libtool may fail to recognize shared libraries
11798 *** as such. This will affect the creation of libtool libraries that
11799 *** depend on shared libraries, but programs linked with such libtool
11800 *** libraries will work regardless of this problem. Nevertheless, you
11801 *** may want to report the problem to your system manager and/or to
11802 *** bug-libtool@gnu.org
11812 MAGIC_CMD=$lt_save_MAGIC_CMD
11817 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11818 if test -n "$MAGIC_CMD"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11820 $as_echo "$MAGIC_CMD" >&6; }
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11830 if test -z "$lt_cv_path_MAGIC_CMD"; then
11831 if test -n "$ac_tool_prefix"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11833 $as_echo_n "checking for file... " >&6; }
11834 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11835 $as_echo_n "(cached) " >&6
11839 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11842 lt_save_MAGIC_CMD=$MAGIC_CMD
11843 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11844 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11845 for ac_dir in $ac_dummy; do
11847 test -z "$ac_dir" && ac_dir=.
11848 if test -f "$ac_dir/file"; then
11849 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11850 if test -n "$file_magic_test_file"; then
11851 case $deplibs_check_method in
11853 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11854 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11855 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11856 $EGREP "$file_magic_regex" > /dev/null; then
11861 *** Warning: the command libtool uses to detect shared libraries,
11862 *** $file_magic_cmd, produces output that libtool cannot recognize.
11863 *** The result is that libtool may fail to recognize shared libraries
11864 *** as such. This will affect the creation of libtool libraries that
11865 *** depend on shared libraries, but programs linked with such libtool
11866 *** libraries will work regardless of this problem. Nevertheless, you
11867 *** may want to report the problem to your system manager and/or to
11868 *** bug-libtool@gnu.org
11878 MAGIC_CMD=$lt_save_MAGIC_CMD
11883 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11884 if test -n "$MAGIC_CMD"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11886 $as_echo "$MAGIC_CMD" >&6; }
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889 $as_echo "no" >&6; }
11902 # Use C for the default configuration in the libtool script
11906 ac_cpp='$CPP $CPPFLAGS'
11907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11912 # Source file extension for C test sources.
11915 # Object file extension for compiled C test sources.
11919 # Code to be used in simple compile tests
11920 lt_simple_compile_test_code="int some_variable = 0;"
11922 # Code to be used in simple link tests
11923 lt_simple_link_test_code='int main(){return(0);}'
11931 # If no C compiler was specified, use CC.
11934 # If no C compiler flags were specified, use CFLAGS.
11935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11937 # Allow CC to be a program name with arguments.
11940 # Save the default compiler, since it gets overwritten when the other
11941 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11942 compiler_DEFAULT=$CC
11944 # save warnings/boilerplate of simple test code
11945 ac_outfile=conftest.$ac_objext
11946 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11947 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11948 _lt_compiler_boilerplate=`cat conftest.err`
11951 ac_outfile=conftest.$ac_objext
11952 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11953 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11954 _lt_linker_boilerplate=`cat conftest.err`
11959 ## There is no encapsulation within the following macros, do not change
11960 ## the running order or otherwise move them around unless you know exactly
11961 ## what you are doing...
11962 if test -n "$compiler"; then
11964 lt_prog_compiler_no_builtin_flag=
11966 if test yes = "$GCC"; then
11967 case $cc_basename in
11969 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11971 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11975 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11976 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11977 $as_echo_n "(cached) " >&6
11979 lt_cv_prog_compiler_rtti_exceptions=no
11980 ac_outfile=conftest.$ac_objext
11981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11982 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11983 # Insert the option either (1) after the last *FLAGS variable, or
11984 # (2) before a word containing "conftest.", or (3) at the end.
11985 # Note that $ac_compile itself does not contain backslashes and begins
11986 # with a dollar sign (not a hyphen), so the echo should work correctly.
11987 # The option is referenced via a variable to avoid confusing sed.
11988 lt_compile=`echo "$ac_compile" | $SED \
11989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11991 -e 's:$: $lt_compiler_flag:'`
11992 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11993 (eval "$lt_compile" 2>conftest.err)
11995 cat conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 if (exit $ac_status) && test -s "$ac_outfile"; then
11998 # The compiler can only warn and ignore the option if not recognized
11999 # So say no if there are warnings other than the usual output.
12000 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12001 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12002 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12003 lt_cv_prog_compiler_rtti_exceptions=yes
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12010 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12012 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12013 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12025 lt_prog_compiler_wl=
12026 lt_prog_compiler_pic=
12027 lt_prog_compiler_static=
12030 if test yes = "$GCC"; then
12031 lt_prog_compiler_wl='-Wl,'
12032 lt_prog_compiler_static='-static'
12036 # All AIX code is PIC.
12037 if test ia64 = "$host_cpu"; then
12038 # AIX 5 now supports IA64 processor
12039 lt_prog_compiler_static='-Bstatic'
12041 lt_prog_compiler_pic='-fPIC'
12047 # see comment about AmigaOS4 .so support
12048 lt_prog_compiler_pic='-fPIC'
12051 # FIXME: we need at least 68020 code to build shared libraries, but
12052 # adding the '-m68020' flag to GCC prevents building anything better,
12054 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12060 # PIC is the default for these OSes.
12063 mingw* | cygwin* | pw32* | os2* | cegcc*)
12064 # This hack is so that the source file can tell whether it is being
12065 # built for inclusion in a dll (and should export symbols for example).
12066 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12067 # (--disable-auto-import) libraries
12068 lt_prog_compiler_pic='-DDLL_EXPORT'
12071 lt_prog_compiler_static='$wl-static'
12076 darwin* | rhapsody*)
12077 # PIC is the default on this platform
12078 # Common symbols not allowed in MH_DYLIB files
12079 lt_prog_compiler_pic='-fno-common'
12083 # PIC is the default for Haiku.
12084 # The "-static" flag exists, but is broken.
12085 lt_prog_compiler_static=
12089 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12090 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12091 # sets the default TLS model and affects inlining.
12097 lt_prog_compiler_pic='-fPIC'
12103 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12104 # Instead, we relocate shared libraries at runtime.
12108 # Just because we use GCC doesn't mean we suddenly get shared libraries
12109 # on systems that don't support them.
12110 lt_prog_compiler_can_build_shared=no
12115 # QNX uses GNU C++, but need to define -shared option too, otherwise
12116 # it will coredump.
12117 lt_prog_compiler_pic='-fPIC -shared'
12121 if test -d /usr/nec; then
12122 lt_prog_compiler_pic=-Kconform_pic
12127 lt_prog_compiler_pic='-fPIC'
12131 case $cc_basename in
12132 nvcc*) # Cuda Compiler Driver 2.2
12133 lt_prog_compiler_wl='-Xlinker '
12134 if test -n "$lt_prog_compiler_pic"; then
12135 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12140 # PORTME Check for flag to pass linker flags through the system compiler.
12143 lt_prog_compiler_wl='-Wl,'
12144 if test ia64 = "$host_cpu"; then
12145 # AIX 5 now supports IA64 processor
12146 lt_prog_compiler_static='-Bstatic'
12148 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12152 darwin* | rhapsody*)
12153 # PIC is the default on this platform
12154 # Common symbols not allowed in MH_DYLIB files
12155 lt_prog_compiler_pic='-fno-common'
12156 case $cc_basename in
12158 # NAG Fortran compiler
12159 lt_prog_compiler_wl='-Wl,-Wl,,'
12160 lt_prog_compiler_pic='-PIC'
12161 lt_prog_compiler_static='-Bstatic'
12166 mingw* | cygwin* | pw32* | os2* | cegcc*)
12167 # This hack is so that the source file can tell whether it is being
12168 # built for inclusion in a dll (and should export symbols for example).
12169 lt_prog_compiler_pic='-DDLL_EXPORT'
12172 lt_prog_compiler_static='$wl-static'
12177 hpux9* | hpux10* | hpux11*)
12178 lt_prog_compiler_wl='-Wl,'
12179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12180 # not for PA HP-UX.
12186 lt_prog_compiler_pic='+Z'
12189 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12190 lt_prog_compiler_static='$wl-a ${wl}archive'
12193 irix5* | irix6* | nonstopux*)
12194 lt_prog_compiler_wl='-Wl,'
12195 # PIC (with -KPIC) is the default.
12196 lt_prog_compiler_static='-non_shared'
12199 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12200 case $cc_basename in
12201 # old Intel for x86_64, which still supported -KPIC.
12203 lt_prog_compiler_wl='-Wl,'
12204 lt_prog_compiler_pic='-KPIC'
12205 lt_prog_compiler_static='-static'
12207 # icc used to be incompatible with GCC.
12208 # ICC 10 doesn't accept -KPIC any more.
12210 lt_prog_compiler_wl='-Wl,'
12211 lt_prog_compiler_pic='-fPIC'
12212 lt_prog_compiler_static='-static'
12214 # Lahey Fortran 8.1.
12216 lt_prog_compiler_wl='-Wl,'
12217 lt_prog_compiler_pic='--shared'
12218 lt_prog_compiler_static='--static'
12221 # NAG Fortran compiler
12222 lt_prog_compiler_wl='-Wl,-Wl,,'
12223 lt_prog_compiler_pic='-PIC'
12224 lt_prog_compiler_static='-Bstatic'
12227 # Fabrice Bellard et al's Tiny C Compiler
12228 lt_prog_compiler_wl='-Wl,'
12229 lt_prog_compiler_pic='-fPIC'
12230 lt_prog_compiler_static='-static'
12232 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12233 # Portland Group compilers (*not* the Pentium gcc compiler,
12234 # which looks to be a dead project)
12235 lt_prog_compiler_wl='-Wl,'
12236 lt_prog_compiler_pic='-fpic'
12237 lt_prog_compiler_static='-Bstatic'
12240 lt_prog_compiler_wl='-Wl,'
12241 # All Alpha code is PIC.
12242 lt_prog_compiler_static='-non_shared'
12244 xl* | bgxl* | bgf* | mpixl*)
12245 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12246 lt_prog_compiler_wl='-Wl,'
12247 lt_prog_compiler_pic='-qpic'
12248 lt_prog_compiler_static='-qstaticlink'
12251 case `$CC -V 2>&1 | sed 5q` in
12252 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12253 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12254 lt_prog_compiler_pic='-KPIC'
12255 lt_prog_compiler_static='-Bstatic'
12256 lt_prog_compiler_wl=''
12258 *Sun\ F* | *Sun*Fortran*)
12259 lt_prog_compiler_pic='-KPIC'
12260 lt_prog_compiler_static='-Bstatic'
12261 lt_prog_compiler_wl='-Qoption ld '
12265 lt_prog_compiler_pic='-KPIC'
12266 lt_prog_compiler_static='-Bstatic'
12267 lt_prog_compiler_wl='-Wl,'
12269 *Intel*\ [CF]*Compiler*)
12270 lt_prog_compiler_wl='-Wl,'
12271 lt_prog_compiler_pic='-fPIC'
12272 lt_prog_compiler_static='-static'
12275 lt_prog_compiler_wl='-Wl,'
12276 lt_prog_compiler_pic='-fpic'
12277 lt_prog_compiler_static='-Bstatic'
12285 lt_prog_compiler_pic='-KPIC'
12286 lt_prog_compiler_static='-Bstatic'
12290 # QNX uses GNU C++, but need to define -shared option too, otherwise
12291 # it will coredump.
12292 lt_prog_compiler_pic='-fPIC -shared'
12295 osf3* | osf4* | osf5*)
12296 lt_prog_compiler_wl='-Wl,'
12297 # All OSF/1 code is PIC.
12298 lt_prog_compiler_static='-non_shared'
12302 lt_prog_compiler_static='-non_shared'
12306 lt_prog_compiler_pic='-KPIC'
12307 lt_prog_compiler_static='-Bstatic'
12308 case $cc_basename in
12309 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12310 lt_prog_compiler_wl='-Qoption ld ';;
12312 lt_prog_compiler_wl='-Wl,';;
12317 lt_prog_compiler_wl='-Qoption ld '
12318 lt_prog_compiler_pic='-PIC'
12319 lt_prog_compiler_static='-Bstatic'
12322 sysv4 | sysv4.2uw2* | sysv4.3*)
12323 lt_prog_compiler_wl='-Wl,'
12324 lt_prog_compiler_pic='-KPIC'
12325 lt_prog_compiler_static='-Bstatic'
12329 if test -d /usr/nec; then
12330 lt_prog_compiler_pic='-Kconform_pic'
12331 lt_prog_compiler_static='-Bstatic'
12335 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12336 lt_prog_compiler_wl='-Wl,'
12337 lt_prog_compiler_pic='-KPIC'
12338 lt_prog_compiler_static='-Bstatic'
12342 lt_prog_compiler_wl='-Wl,'
12343 lt_prog_compiler_can_build_shared=no
12347 lt_prog_compiler_pic='-pic'
12348 lt_prog_compiler_static='-Bstatic'
12352 lt_prog_compiler_can_build_shared=no
12358 # For platforms that do not support PIC, -DPIC is meaningless:
12360 lt_prog_compiler_pic=
12363 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12368 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12369 if ${lt_cv_prog_compiler_pic+:} false; then :
12370 $as_echo_n "(cached) " >&6
12372 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12375 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12376 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12379 # Check to make sure the PIC flag actually works.
12381 if test -n "$lt_prog_compiler_pic"; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12383 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12384 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12385 $as_echo_n "(cached) " >&6
12387 lt_cv_prog_compiler_pic_works=no
12388 ac_outfile=conftest.$ac_objext
12389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12390 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12391 # Insert the option either (1) after the last *FLAGS variable, or
12392 # (2) before a word containing "conftest.", or (3) at the end.
12393 # Note that $ac_compile itself does not contain backslashes and begins
12394 # with a dollar sign (not a hyphen), so the echo should work correctly.
12395 # The option is referenced via a variable to avoid confusing sed.
12396 lt_compile=`echo "$ac_compile" | $SED \
12397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12399 -e 's:$: $lt_compiler_flag:'`
12400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12401 (eval "$lt_compile" 2>conftest.err)
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 if (exit $ac_status) && test -s "$ac_outfile"; then
12406 # The compiler can only warn and ignore the option if not recognized
12407 # So say no if there are warnings other than the usual output.
12408 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12410 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12411 lt_cv_prog_compiler_pic_works=yes
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12418 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12420 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12421 case $lt_prog_compiler_pic in
12423 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12426 lt_prog_compiler_pic=
12427 lt_prog_compiler_can_build_shared=no
12443 # Check to make sure the static flag actually works.
12445 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12447 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12448 if ${lt_cv_prog_compiler_static_works+:} false; then :
12449 $as_echo_n "(cached) " >&6
12451 lt_cv_prog_compiler_static_works=no
12452 save_LDFLAGS=$LDFLAGS
12453 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12454 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12455 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12456 # The linker can only warn and ignore the option if not recognized
12457 # So say no if there are warnings
12458 if test -s conftest.err; then
12459 # Append any errors to the config.log.
12460 cat conftest.err 1>&5
12461 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12463 if diff conftest.exp conftest.er2 >/dev/null; then
12464 lt_cv_prog_compiler_static_works=yes
12467 lt_cv_prog_compiler_static_works=yes
12471 LDFLAGS=$save_LDFLAGS
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12475 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12477 if test yes = "$lt_cv_prog_compiler_static_works"; then
12480 lt_prog_compiler_static=
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12490 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12491 if ${lt_cv_prog_compiler_c_o+:} false; then :
12492 $as_echo_n "(cached) " >&6
12494 lt_cv_prog_compiler_c_o=no
12495 $RM -r conftest 2>/dev/null
12499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12501 lt_compiler_flag="-o out/conftest2.$ac_objext"
12502 # Insert the option either (1) after the last *FLAGS variable, or
12503 # (2) before a word containing "conftest.", or (3) at the end.
12504 # Note that $ac_compile itself does not contain backslashes and begins
12505 # with a dollar sign (not a hyphen), so the echo should work correctly.
12506 lt_compile=`echo "$ac_compile" | $SED \
12507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12509 -e 's:$: $lt_compiler_flag:'`
12510 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12511 (eval "$lt_compile" 2>out/conftest.err)
12513 cat out/conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12517 # The compiler can only warn and ignore the option if not recognized
12518 # So say no if there are warnings
12519 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12520 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12521 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12522 lt_cv_prog_compiler_c_o=yes
12527 # SGI C++ compiler will create directory out/ii_files/ for
12528 # template instantiation
12529 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12530 $RM out/* && rmdir out
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12537 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12545 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12546 if ${lt_cv_prog_compiler_c_o+:} false; then :
12547 $as_echo_n "(cached) " >&6
12549 lt_cv_prog_compiler_c_o=no
12550 $RM -r conftest 2>/dev/null
12554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12556 lt_compiler_flag="-o out/conftest2.$ac_objext"
12557 # Insert the option either (1) after the last *FLAGS variable, or
12558 # (2) before a word containing "conftest.", or (3) at the end.
12559 # Note that $ac_compile itself does not contain backslashes and begins
12560 # with a dollar sign (not a hyphen), so the echo should work correctly.
12561 lt_compile=`echo "$ac_compile" | $SED \
12562 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12564 -e 's:$: $lt_compiler_flag:'`
12565 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12566 (eval "$lt_compile" 2>out/conftest.err)
12568 cat out/conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12572 # The compiler can only warn and ignore the option if not recognized
12573 # So say no if there are warnings
12574 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12575 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12576 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12577 lt_cv_prog_compiler_c_o=yes
12582 # SGI C++ compiler will create directory out/ii_files/ for
12583 # template instantiation
12584 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12585 $RM out/* && rmdir out
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12592 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12597 hard_links=nottested
12598 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12599 # do not overwrite the value of need_locks provided by the user
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12601 $as_echo_n "checking if we can lock with hard links... " >&6; }
12604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12606 ln conftest.a conftest.b 2>&5 || hard_links=no
12607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12609 $as_echo "$hard_links" >&6; }
12610 if test no = "$hard_links"; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12612 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12625 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12628 allow_undefined_flag=
12629 always_export_symbols=no
12631 archive_expsym_cmds=
12632 compiler_needs_object=no
12633 enable_shared_with_static_runtimes=no
12634 export_dynamic_flag_spec=
12635 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12636 hardcode_automatic=no
12638 hardcode_direct_absolute=no
12639 hardcode_libdir_flag_spec=
12640 hardcode_libdir_separator=
12641 hardcode_minus_L=no
12642 hardcode_shlibpath_var=unsupported
12644 link_all_deplibs=unknown
12646 module_expsym_cmds=
12647 old_archive_from_new_cmds=
12648 old_archive_from_expsyms_cmds=
12649 thread_safe_flag_spec=
12650 whole_archive_flag_spec=
12651 # include_expsyms should be a list of space-separated symbols to be *always*
12652 # included in the symbol list
12654 # exclude_expsyms can be an extended regexp of symbols to exclude
12655 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12656 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12657 # as well as any symbol that contains 'd'.
12658 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12659 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12660 # platforms (ab)use it in PIC code, but their linkers get confused if
12661 # the symbol is explicitly referenced. Since portable code cannot
12662 # rely on this symbol name, it's probably fine to never include it in
12663 # preloaded symbol tables.
12664 # Exclude shared library initialization/finalization symbols.
12665 extract_expsyms_cmds=
12668 cygwin* | mingw* | pw32* | cegcc*)
12669 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12670 # When not using gcc, we currently assume that we are using
12671 # Microsoft Visual C++.
12672 if test yes != "$GCC"; then
12677 # we just hope/assume this is gcc and not c89 (= MSVC++)
12680 openbsd* | bitrig*)
12683 linux* | k*bsd*-gnu | gnu*)
12684 link_all_deplibs=no
12690 # On some targets, GNU ld is compatible enough with the native linker
12691 # that we're better off using the native interface for both.
12692 lt_use_gnu_ld_interface=no
12693 if test yes = "$with_gnu_ld"; then
12696 # The AIX port of GNU ld has always aspired to compatibility
12697 # with the native linker. However, as the warning in the GNU ld
12698 # block says, versions before 2.19.5* couldn't really create working
12699 # shared libraries, regardless of the interface used.
12700 case `$LD -v 2>&1` in
12701 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12702 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12703 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12705 lt_use_gnu_ld_interface=yes
12710 lt_use_gnu_ld_interface=yes
12715 if test yes = "$lt_use_gnu_ld_interface"; then
12716 # If archive_cmds runs LD, not CC, wlarc should be empty
12719 # Set some defaults for GNU ld with shared library support. These
12720 # are reset later if shared libraries are not supported. Putting them
12721 # here allows them to be overridden if necessary.
12722 runpath_var=LD_RUN_PATH
12723 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12724 export_dynamic_flag_spec='$wl--export-dynamic'
12725 # ancient GNU ld didn't support --whole-archive et. al.
12726 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12727 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12729 whole_archive_flag_spec=
12731 supports_anon_versioning=no
12732 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12733 *GNU\ gold*) supports_anon_versioning=yes ;;
12734 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12735 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12736 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12737 *\ 2.11.*) ;; # other 2.11 versions
12738 *) supports_anon_versioning=yes ;;
12741 # See if GNU ld supports shared libraries.
12744 # On AIX/PPC, the GNU linker is very broken
12745 if test ia64 != "$host_cpu"; then
12749 *** Warning: the GNU linker, at least up to release 2.19, is reported
12750 *** to be unable to reliably create shared libraries on AIX.
12751 *** Therefore, libtool is disabling shared libraries support. If you
12752 *** really care for shared libraries, you may want to install binutils
12753 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12754 *** You will then need to restart the configuration process.
12763 # see comment about AmigaOS4 .so support
12764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12765 archive_expsym_cmds=''
12768 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)'
12769 hardcode_libdir_flag_spec='-L$libdir'
12770 hardcode_minus_L=yes
12776 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12777 allow_undefined_flag=unsupported
12778 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12779 # support --undefined. This deserves some investigation. FIXME
12780 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12786 cygwin* | mingw* | pw32* | cegcc*)
12787 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12788 # as there is no search path for DLLs.
12789 hardcode_libdir_flag_spec='-L$libdir'
12790 export_dynamic_flag_spec='$wl--export-all-symbols'
12791 allow_undefined_flag=unsupported
12792 always_export_symbols=no
12793 enable_shared_with_static_runtimes=yes
12794 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'
12795 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12797 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12799 # If the export-symbols file already is a .def file, use it as
12800 # is; otherwise, prepend EXPORTS...
12801 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12802 cp $export_symbols $output_objdir/$soname.def;
12804 echo EXPORTS > $output_objdir/$soname.def;
12805 cat $export_symbols >> $output_objdir/$soname.def;
12807 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12815 link_all_deplibs=yes
12819 hardcode_libdir_flag_spec='-L$libdir'
12820 hardcode_minus_L=yes
12821 allow_undefined_flag=unsupported
12823 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12824 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12825 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12826 $ECHO EXPORTS >> $output_objdir/$libname.def~
12827 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12828 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12829 emximp -o $lib $output_objdir/$libname.def'
12830 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12831 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12832 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12833 $ECHO EXPORTS >> $output_objdir/$libname.def~
12834 prefix_cmds="$SED"~
12835 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12836 prefix_cmds="$prefix_cmds -e 1d";
12838 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12839 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12840 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12841 emximp -o $lib $output_objdir/$libname.def'
12842 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12843 enable_shared_with_static_runtimes=yes
12848 hardcode_shlibpath_var=no
12849 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12850 export_dynamic_flag_spec='$wl-E'
12851 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12852 # Instead, shared libraries are loaded at an image base (0x10000000 by
12853 # default) and relocated if they conflict, which is a slow very memory
12854 # consuming and fragmenting process. To avoid this, we pick a random,
12855 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12856 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12857 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12858 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'
12861 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12863 if test linux-dietlibc = "$host_os"; then
12864 case $cc_basename in
12865 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12868 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12869 && test no = "$tmp_diet"
12871 tmp_addflag=' $pic_flag'
12872 tmp_sharedflag='-shared'
12873 case $cc_basename,$host_cpu in
12874 pgcc*) # Portland Group C compiler
12875 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'
12876 tmp_addflag=' $pic_flag'
12878 pgf77* | pgf90* | pgf95* | pgfortran*)
12879 # Portland Group f77 and f90 compilers
12880 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'
12881 tmp_addflag=' $pic_flag -Mnomain' ;;
12882 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12883 tmp_addflag=' -i_dynamic' ;;
12884 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12885 tmp_addflag=' -i_dynamic -nofor_main' ;;
12886 ifc* | ifort*) # Intel Fortran compiler
12887 tmp_addflag=' -nofor_main' ;;
12888 lf95*) # Lahey Fortran 8.1
12889 whole_archive_flag_spec=
12890 tmp_sharedflag='--shared' ;;
12891 nagfor*) # NAGFOR 5.3
12892 tmp_sharedflag='-Wl,-shared' ;;
12893 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12894 tmp_sharedflag='-qmkshrobj'
12896 nvcc*) # Cuda Compiler Driver 2.2
12897 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'
12898 compiler_needs_object=yes
12901 case `$CC -V 2>&1 | sed 5q` in
12902 *Sun\ C*) # Sun C 5.9
12903 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'
12904 compiler_needs_object=yes
12905 tmp_sharedflag='-G' ;;
12906 *Sun\ F*) # Sun Fortran 8.3
12907 tmp_sharedflag='-G' ;;
12909 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12911 if test yes = "$supports_anon_versioning"; then
12912 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12913 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12914 echo "local: *; };" >> $output_objdir/$libname.ver~
12915 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12918 case $cc_basename in
12920 export_dynamic_flag_spec='-rdynamic'
12922 xlf* | bgf* | bgxlf* | mpixlf*)
12923 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12924 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12925 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12926 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12927 if test yes = "$supports_anon_versioning"; then
12928 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12929 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12930 echo "local: *; };" >> $output_objdir/$libname.ver~
12931 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12940 netbsd* | netbsdelf*-gnu)
12941 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12942 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12945 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12946 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12951 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12955 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12956 *** create shared libraries on Solaris systems. Therefore, libtool
12957 *** is disabling shared libraries support. We urge you to upgrade GNU
12958 *** binutils to release 2.9.1 or newer. Another option is to modify
12959 *** your PATH or compiler configuration so that the native linker is
12960 *** used, and then restart.
12963 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12964 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12965 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12971 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12972 case `$LD -v 2>&1` in
12973 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12977 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12978 *** reliably create shared libraries on SCO systems. Therefore, libtool
12979 *** is disabling shared libraries support. We urge you to upgrade GNU
12980 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12981 *** your PATH or compiler configuration so that the native linker is
12982 *** used, and then restart.
12987 # For security reasons, it is highly recommended that you always
12988 # use absolute paths for naming shared libraries, and exclude the
12989 # DT_RUNPATH tag from executables and libraries. But doing so
12990 # requires that you compile everything twice, which is a pain.
12991 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12992 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12994 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13003 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13005 hardcode_direct=yes
13006 hardcode_shlibpath_var=no
13010 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13011 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13012 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13019 if test no = "$ld_shlibs"; then
13021 hardcode_libdir_flag_spec=
13022 export_dynamic_flag_spec=
13023 whole_archive_flag_spec=
13026 # PORTME fill in a description of your system's linker (not GNU ld)
13029 allow_undefined_flag=unsupported
13030 always_export_symbols=yes
13031 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'
13032 # Note: this linker hardcodes the directories in LIBPATH if there
13033 # are no directories specified by -L.
13034 hardcode_minus_L=yes
13035 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13036 # Neither direct hardcoding nor static linking is supported with a
13038 hardcode_direct=unsupported
13043 if test ia64 = "$host_cpu"; then
13044 # On IA64, the linker does run time linking by default, so we don't
13045 # have to do anything special.
13046 aix_use_runtimelinking=no
13047 exp_sym_flag='-Bexport'
13050 # If we're using GNU nm, then we don't want the "-C" option.
13051 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13052 # Without the "-l" option, or with the "-B" option, AIX nm treats
13053 # weak defined symbols like other global defined symbols, whereas
13054 # GNU nm marks them as "W".
13055 # While the 'weak' keyword is ignored in the Export File, we need
13056 # it in the Import File for the 'aix-soname' feature, so we have
13057 # to replace the "-B" option with "-P" for AIX nm.
13058 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13059 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'
13061 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'
13063 aix_use_runtimelinking=no
13065 # Test if we are trying to use run time linking or normal
13066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13067 # have runtime linking enabled, and use it for executables.
13068 # For shared libraries, we enable/disable runtime linking
13069 # depending on the kind of the shared library created -
13070 # when "with_aix_soname,aix_use_runtimelinking" is:
13071 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13072 # "aix,yes" lib.so shared, rtl:yes, for executables
13073 # lib.a static archive
13074 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13075 # lib.a(lib.so.V) shared, rtl:no, for executables
13076 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13077 # lib.a(lib.so.V) shared, rtl:no
13078 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13079 # lib.a static archive
13080 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13081 for ld_flag in $LDFLAGS; do
13082 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13083 aix_use_runtimelinking=yes
13087 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13088 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13089 # so we don't have lib.a shared libs to link our executables.
13090 # We have to force runtime linking in this case.
13091 aix_use_runtimelinking=yes
13092 LDFLAGS="$LDFLAGS -Wl,-brtl"
13097 exp_sym_flag='-bexport'
13098 no_entry_flag='-bnoentry'
13101 # When large executables or shared objects are built, AIX ld can
13102 # have problems creating the table of contents. If linking a library
13103 # or program results in "error TOC overflow" add -mminimal-toc to
13104 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13105 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13108 hardcode_direct=yes
13109 hardcode_direct_absolute=yes
13110 hardcode_libdir_separator=':'
13111 link_all_deplibs=yes
13112 file_list_spec='$wl-f,'
13113 case $with_aix_soname,$aix_use_runtimelinking in
13114 aix,*) ;; # traditional, no import file
13115 svr4,* | *,yes) # use import file
13116 # The Import File defines what to hardcode.
13118 hardcode_direct_absolute=no
13122 if test yes = "$GCC"; then
13123 case $host_os in aix4.[012]|aix4.[012].*)
13124 # We only want to do this on AIX 4.2 and lower, the check
13125 # below for broken collect2 doesn't work under 4.3+
13126 collect2name=`$CC -print-prog-name=collect2`
13127 if test -f "$collect2name" &&
13128 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13130 # We have reworked collect2
13133 # We have old collect2
13134 hardcode_direct=unsupported
13135 # It fails to find uninstalled libraries when the uninstalled
13136 # path is not listed in the libpath. Setting hardcode_minus_L
13137 # to unsupported forces relinking
13138 hardcode_minus_L=yes
13139 hardcode_libdir_flag_spec='-L$libdir'
13140 hardcode_libdir_separator=
13144 shared_flag='-shared'
13145 if test yes = "$aix_use_runtimelinking"; then
13146 shared_flag="$shared_flag "'$wl-G'
13148 # Need to ensure runtime linking is disabled for the traditional
13149 # shared library, or the linker may eventually find shared libraries
13150 # /with/ Import File - we do not want to mix them.
13151 shared_flag_aix='-shared'
13152 shared_flag_svr4='-shared $wl-G'
13155 if test ia64 = "$host_cpu"; then
13156 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13157 # chokes on -Wl,-G. The following line is correct:
13160 if test yes = "$aix_use_runtimelinking"; then
13161 shared_flag='$wl-G'
13163 shared_flag='$wl-bM:SRE'
13165 shared_flag_aix='$wl-bM:SRE'
13166 shared_flag_svr4='$wl-G'
13170 export_dynamic_flag_spec='$wl-bexpall'
13171 # It seems that -bexpall does not export symbols beginning with
13172 # underscore (_), so it is better to generate a list of symbols to export.
13173 always_export_symbols=yes
13174 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13175 # Warning - without using the other runtime loading flags (-brtl),
13176 # -berok will link without error, but may produce a broken library.
13177 allow_undefined_flag='-berok'
13178 # Determine the default libpath from the value encoded in an
13179 # empty executable.
13180 if test set = "${lt_cv_aix_libpath+set}"; then
13181 aix_libpath=$lt_cv_aix_libpath
13183 if ${lt_cv_aix_libpath_+:} false; then :
13184 $as_echo_n "(cached) " >&6
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13197 if ac_fn_c_try_link "$LINENO"; then :
13199 lt_aix_libpath_sed='
13200 /Import File Strings/,/^$/ {
13202 s/^0 *\([^ ]*\) *$/\1/
13206 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13207 # Check for a 64-bit object if we didn't find anything.
13208 if test -z "$lt_cv_aix_libpath_"; then
13209 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13212 rm -f core conftest.err conftest.$ac_objext \
13213 conftest$ac_exeext conftest.$ac_ext
13214 if test -z "$lt_cv_aix_libpath_"; then
13215 lt_cv_aix_libpath_=/usr/lib:/lib
13220 aix_libpath=$lt_cv_aix_libpath_
13223 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13224 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
13226 if test ia64 = "$host_cpu"; then
13227 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13228 allow_undefined_flag="-z nodefs"
13229 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"
13231 # Determine the default libpath from the value encoded in an
13232 # empty executable.
13233 if test set = "${lt_cv_aix_libpath+set}"; then
13234 aix_libpath=$lt_cv_aix_libpath
13236 if ${lt_cv_aix_libpath_+:} false; then :
13237 $as_echo_n "(cached) " >&6
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13250 if ac_fn_c_try_link "$LINENO"; then :
13252 lt_aix_libpath_sed='
13253 /Import File Strings/,/^$/ {
13255 s/^0 *\([^ ]*\) *$/\1/
13259 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13260 # Check for a 64-bit object if we didn't find anything.
13261 if test -z "$lt_cv_aix_libpath_"; then
13262 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13265 rm -f core conftest.err conftest.$ac_objext \
13266 conftest$ac_exeext conftest.$ac_ext
13267 if test -z "$lt_cv_aix_libpath_"; then
13268 lt_cv_aix_libpath_=/usr/lib:/lib
13273 aix_libpath=$lt_cv_aix_libpath_
13276 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13277 # Warning - without using the other run time loading flags,
13278 # -berok will link without error, but may produce a broken library.
13279 no_undefined_flag=' $wl-bernotok'
13280 allow_undefined_flag=' $wl-berok'
13281 if test yes = "$with_gnu_ld"; then
13282 # We only use this code for GNU lds that support --whole-archive.
13283 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13285 # Exported symbols can be pulled into shared objects from archives
13286 whole_archive_flag_spec='$convenience'
13288 archive_cmds_need_lc=yes
13289 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13290 # -brtl affects multiple linker settings, -berok does not and is overridden later
13291 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13292 if test svr4 != "$with_aix_soname"; then
13293 # This is similar to how AIX traditionally builds its shared libraries.
13294 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'
13296 if test aix != "$with_aix_soname"; then
13297 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'
13299 # used by -dlpreopen to get the symbols
13300 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13302 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13310 # see comment about AmigaOS4 .so support
13311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13312 archive_expsym_cmds=''
13315 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)'
13316 hardcode_libdir_flag_spec='-L$libdir'
13317 hardcode_minus_L=yes
13323 export_dynamic_flag_spec=-rdynamic
13326 cygwin* | mingw* | pw32* | cegcc*)
13327 # When not using gcc, we currently assume that we are using
13328 # Microsoft Visual C++.
13329 # hardcode_libdir_flag_spec is actually meaningless, as there is
13330 # no search path for DLLs.
13331 case $cc_basename in
13334 hardcode_libdir_flag_spec=' '
13335 allow_undefined_flag=unsupported
13336 always_export_symbols=yes
13338 # Tell ltmain to make .lib files, not .a files.
13340 # Tell ltmain to make .dll files, not .so files.
13342 # FIXME: Setting linknames here is a bad hack.
13343 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13344 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13345 cp "$export_symbols" "$output_objdir/$soname.def";
13346 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13348 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13350 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13352 # The linker will not automatically build a static lib if we build a DLL.
13353 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13354 enable_shared_with_static_runtimes=yes
13355 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13356 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13358 old_postinstall_cmds='chmod 644 $oldlib'
13359 postlink_cmds='lt_outputfile="@OUTPUT@"~
13360 lt_tool_outputfile="@TOOL_OUTPUT@"~
13361 case $lt_outputfile in
13364 lt_outputfile=$lt_outputfile.exe
13365 lt_tool_outputfile=$lt_tool_outputfile.exe
13368 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13369 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13370 $RM "$lt_outputfile.manifest";
13374 # Assume MSVC wrapper
13375 hardcode_libdir_flag_spec=' '
13376 allow_undefined_flag=unsupported
13377 # Tell ltmain to make .lib files, not .a files.
13379 # Tell ltmain to make .dll files, not .so files.
13381 # FIXME: Setting linknames here is a bad hack.
13382 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13383 # The linker will automatically build a .lib file if we build a DLL.
13384 old_archive_from_new_cmds='true'
13385 # FIXME: Should let the user specify the lib program.
13386 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13387 enable_shared_with_static_runtimes=yes
13392 darwin* | rhapsody*)
13395 archive_cmds_need_lc=no
13397 hardcode_automatic=yes
13398 hardcode_shlibpath_var=unsupported
13399 if test yes = "$lt_cv_ld_force_load"; then
13400 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\"`'
13403 whole_archive_flag_spec=''
13405 link_all_deplibs=yes
13406 allow_undefined_flag=$_lt_dar_allow_undefined
13407 case $cc_basename in
13408 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13409 *) _lt_dar_can_shared=$GCC ;;
13411 if test yes = "$_lt_dar_can_shared"; then
13412 output_verbose_link_cmd=func_echo_all
13413 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13414 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13415 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"
13416 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"
13425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13426 hardcode_libdir_flag_spec='-L$libdir'
13427 hardcode_shlibpath_var=no
13430 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13431 # support. Future versions do this automatically, but an explicit c++rt0.o
13432 # does not break anything, and helps significantly (at the cost of a little
13435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13436 hardcode_libdir_flag_spec='-R$libdir'
13437 hardcode_direct=yes
13438 hardcode_shlibpath_var=no
13441 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13443 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13444 hardcode_direct=yes
13445 hardcode_minus_L=yes
13446 hardcode_shlibpath_var=no
13449 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13450 freebsd* | dragonfly*)
13451 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13452 hardcode_libdir_flag_spec='-R$libdir'
13453 hardcode_direct=yes
13454 hardcode_shlibpath_var=no
13458 if test yes = "$GCC"; then
13459 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'
13461 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'
13463 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13464 hardcode_libdir_separator=:
13465 hardcode_direct=yes
13467 # hardcode_minus_L: Not really in the search PATH,
13468 # but as the default location of the library.
13469 hardcode_minus_L=yes
13470 export_dynamic_flag_spec='$wl-E'
13474 if test yes,no = "$GCC,$with_gnu_ld"; then
13475 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13477 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13479 if test no = "$with_gnu_ld"; then
13480 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13481 hardcode_libdir_separator=:
13482 hardcode_direct=yes
13483 hardcode_direct_absolute=yes
13484 export_dynamic_flag_spec='$wl-E'
13485 # hardcode_minus_L: Not really in the search PATH,
13486 # but as the default location of the library.
13487 hardcode_minus_L=yes
13492 if test yes,no = "$GCC,$with_gnu_ld"; then
13495 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13498 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13501 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13507 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13510 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13514 # Older versions of the 11.00 compiler do not understand -b yet
13515 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13517 $as_echo_n "checking if $CC understands -b... " >&6; }
13518 if ${lt_cv_prog_compiler__b+:} false; then :
13519 $as_echo_n "(cached) " >&6
13521 lt_cv_prog_compiler__b=no
13522 save_LDFLAGS=$LDFLAGS
13523 LDFLAGS="$LDFLAGS -b"
13524 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13525 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13526 # The linker can only warn and ignore the option if not recognized
13527 # So say no if there are warnings
13528 if test -s conftest.err; then
13529 # Append any errors to the config.log.
13530 cat conftest.err 1>&5
13531 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13533 if diff conftest.exp conftest.er2 >/dev/null; then
13534 lt_cv_prog_compiler__b=yes
13537 lt_cv_prog_compiler__b=yes
13541 LDFLAGS=$save_LDFLAGS
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13545 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13547 if test yes = "$lt_cv_prog_compiler__b"; then
13548 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13550 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13556 if test no = "$with_gnu_ld"; then
13557 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13558 hardcode_libdir_separator=:
13563 hardcode_shlibpath_var=no
13566 hardcode_direct=yes
13567 hardcode_direct_absolute=yes
13568 export_dynamic_flag_spec='$wl-E'
13570 # hardcode_minus_L: Not really in the search PATH,
13571 # but as the default location of the library.
13572 hardcode_minus_L=yes
13578 irix5* | irix6* | nonstopux*)
13579 if test yes = "$GCC"; then
13580 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'
13581 # Try to use the -exported_symbol ld option, if it does not
13582 # work, assume that -exports_file does not work either and
13583 # implicitly export all symbols.
13584 # This should be the same for all languages, so no per-tag cache variable.
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13586 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13587 if ${lt_cv_irix_exported_symbol+:} false; then :
13588 $as_echo_n "(cached) " >&6
13590 save_LDFLAGS=$LDFLAGS
13591 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13594 int foo (void) { return 0; }
13596 if ac_fn_c_try_link "$LINENO"; then :
13597 lt_cv_irix_exported_symbol=yes
13599 lt_cv_irix_exported_symbol=no
13601 rm -f core conftest.err conftest.$ac_objext \
13602 conftest$ac_exeext conftest.$ac_ext
13603 LDFLAGS=$save_LDFLAGS
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13606 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13607 if test yes = "$lt_cv_irix_exported_symbol"; then
13608 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'
13610 link_all_deplibs=no
13612 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'
13613 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'
13615 archive_cmds_need_lc='no'
13616 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13617 hardcode_libdir_separator=:
13619 link_all_deplibs=yes
13623 case $cc_basename in
13625 # Fabrice Bellard et al's Tiny C Compiler
13627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13632 netbsd* | netbsdelf*-gnu)
13633 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13636 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13638 hardcode_libdir_flag_spec='-R$libdir'
13639 hardcode_direct=yes
13640 hardcode_shlibpath_var=no
13644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13645 hardcode_direct=yes
13646 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13647 hardcode_libdir_separator=:
13648 hardcode_shlibpath_var=no
13654 openbsd* | bitrig*)
13655 if test -f /usr/libexec/ld.so; then
13656 hardcode_direct=yes
13657 hardcode_shlibpath_var=no
13658 hardcode_direct_absolute=yes
13659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13660 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13661 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13662 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13663 export_dynamic_flag_spec='$wl-E'
13665 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13666 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13674 hardcode_libdir_flag_spec='-L$libdir'
13675 hardcode_minus_L=yes
13676 allow_undefined_flag=unsupported
13678 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13679 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13680 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13681 $ECHO EXPORTS >> $output_objdir/$libname.def~
13682 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13683 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13684 emximp -o $lib $output_objdir/$libname.def'
13685 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13686 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13687 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13688 $ECHO EXPORTS >> $output_objdir/$libname.def~
13689 prefix_cmds="$SED"~
13690 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13691 prefix_cmds="$prefix_cmds -e 1d";
13693 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13694 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13695 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13696 emximp -o $lib $output_objdir/$libname.def'
13697 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13698 enable_shared_with_static_runtimes=yes
13702 if test yes = "$GCC"; then
13703 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13704 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'
13706 allow_undefined_flag=' -expect_unresolved \*'
13707 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'
13709 archive_cmds_need_lc='no'
13710 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13711 hardcode_libdir_separator=:
13714 osf4* | osf5*) # as osf3* with the addition of -msym flag
13715 if test yes = "$GCC"; then
13716 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13717 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'
13718 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13720 allow_undefined_flag=' -expect_unresolved \*'
13721 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'
13722 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~
13723 $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'
13725 # Both c and cxx compiler support -rpath directly
13726 hardcode_libdir_flag_spec='-rpath $libdir'
13728 archive_cmds_need_lc='no'
13729 hardcode_libdir_separator=:
13733 no_undefined_flag=' -z defs'
13734 if test yes = "$GCC"; then
13736 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13737 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13738 $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'
13740 case `$CC -V 2>&1` in
13743 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13744 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13745 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13749 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13750 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13751 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13755 hardcode_libdir_flag_spec='-R$libdir'
13756 hardcode_shlibpath_var=no
13758 solaris2.[0-5] | solaris2.[0-5].*) ;;
13760 # The compiler driver will combine and reorder linker options,
13761 # but understands '-z linker_flag'. GCC discards it without '$wl',
13762 # but is careful enough not to reorder.
13763 # Supported since Solaris 2.6 (maybe 2.5.1?)
13764 if test yes = "$GCC"; then
13765 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13767 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13771 link_all_deplibs=yes
13775 if test sequent = "$host_vendor"; then
13776 # Use $CC to link under sequent, because it throws in some extra .o
13777 # files that make .init and .fini sections work.
13778 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13780 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13782 hardcode_libdir_flag_spec='-L$libdir'
13783 hardcode_direct=yes
13784 hardcode_minus_L=yes
13785 hardcode_shlibpath_var=no
13789 case $host_vendor in
13791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13792 hardcode_direct=yes # is this really true???
13795 ## LD is ld it makes a PLAMLIB
13796 ## CC just makes a GrossModule.
13797 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13798 reload_cmds='$CC -r -o $output$reload_objs'
13802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13803 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13806 runpath_var='LD_RUN_PATH'
13807 hardcode_shlibpath_var=no
13811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13812 hardcode_shlibpath_var=no
13813 export_dynamic_flag_spec='-Bexport'
13817 if test -d /usr/nec; then
13818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819 hardcode_shlibpath_var=no
13820 runpath_var=LD_RUN_PATH
13821 hardcode_runpath_var=yes
13826 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13827 no_undefined_flag='$wl-z,text'
13828 archive_cmds_need_lc=no
13829 hardcode_shlibpath_var=no
13830 runpath_var='LD_RUN_PATH'
13832 if test yes = "$GCC"; then
13833 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13834 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13836 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13837 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841 sysv5* | sco3.2v5* | sco5v6*)
13842 # Note: We CANNOT use -z defs as we might desire, because we do not
13843 # link with -lc, and that would cause any symbols used from libc to
13844 # always be unresolved, which means just about no library would
13845 # ever link correctly. If we're not using GNU ld we use -z text
13846 # though, which does catch some bad symbols but isn't as heavy-handed
13848 no_undefined_flag='$wl-z,text'
13849 allow_undefined_flag='$wl-z,nodefs'
13850 archive_cmds_need_lc=no
13851 hardcode_shlibpath_var=no
13852 hardcode_libdir_flag_spec='$wl-R,$libdir'
13853 hardcode_libdir_separator=':'
13854 link_all_deplibs=yes
13855 export_dynamic_flag_spec='$wl-Bexport'
13856 runpath_var='LD_RUN_PATH'
13858 if test yes = "$GCC"; then
13859 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13860 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13862 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13863 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13869 hardcode_libdir_flag_spec='-L$libdir'
13870 hardcode_shlibpath_var=no
13878 if test sni = "$host_vendor"; then
13880 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13881 export_dynamic_flag_spec='$wl-Blargedynsym'
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13888 $as_echo "$ld_shlibs" >&6; }
13889 test no = "$ld_shlibs" && can_build_shared=no
13891 with_gnu_ld=$with_gnu_ld
13908 # Do we need to explicitly link libc?
13910 case "x$archive_cmds_need_lc" in
13912 # Assume -lc should be added
13913 archive_cmds_need_lc=yes
13915 if test yes,yes = "$GCC,$enable_shared"; then
13916 case $archive_cmds in
13918 # FIXME: we may have to deal with multi-command sequences.
13921 # Test whether the compiler implicitly links with -lc since on some
13922 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13923 # to ld, don't add -lc before -lgcc.
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13925 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13926 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13927 $as_echo_n "(cached) " >&6
13930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13933 (eval $ac_compile) 2>&5
13935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13936 test $ac_status = 0; } 2>conftest.err; then
13939 libobjs=conftest.$ac_objext
13941 wl=$lt_prog_compiler_wl
13942 pic_flag=$lt_prog_compiler_pic
13948 lt_save_allow_undefined_flag=$allow_undefined_flag
13949 allow_undefined_flag=
13950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13951 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13954 test $ac_status = 0; }
13956 lt_cv_archive_cmds_need_lc=no
13958 lt_cv_archive_cmds_need_lc=yes
13960 allow_undefined_flag=$lt_save_allow_undefined_flag
13962 cat conftest.err 1>&5
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13968 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13969 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14128 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14130 if test yes = "$GCC"; then
14132 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14133 *) lt_awk_arg='/^libraries:/' ;;
14136 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14137 *) lt_sed_strip_eq='s|=/|/|g' ;;
14139 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14140 case $lt_search_path_spec in
14142 # if the path contains ";" then we assume it to be the separator
14143 # otherwise default to the standard path separator (i.e. ":") - it is
14144 # assumed that no part of a normal pathname contains ";" but that should
14145 # okay in the real world where ";" in dirpaths is itself problematic.
14146 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14149 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14152 # Ok, now we have the path, separated by spaces, we can step through it
14153 # and add multilib dir if necessary...
14154 lt_tmp_lt_search_path_spec=
14155 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14156 # ...but if some path component already ends with the multilib dir we assume
14157 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14158 case "$lt_multi_os_dir; $lt_search_path_spec " in
14159 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14163 for lt_sys_path in $lt_search_path_spec; do
14164 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14165 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14166 elif test -n "$lt_multi_os_dir"; then
14167 test -d "$lt_sys_path" && \
14168 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14171 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14172 BEGIN {RS = " "; FS = "/|\n";} {
14175 for (lt_i = NF; lt_i > 0; lt_i--) {
14176 if ($lt_i != "" && $lt_i != ".") {
14177 if ($lt_i == "..") {
14180 if (lt_count == 0) {
14181 lt_foo = "/" $lt_i lt_foo;
14188 if (lt_foo != "") { lt_freq[lt_foo]++; }
14189 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14191 # AWK program above erroneously prepends '/' to C:/dos/paths
14194 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14195 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14197 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14199 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14201 library_names_spec=
14202 libname_spec='lib$name'
14206 postuninstall_cmds=
14210 shlibpath_overrides_runpath=unknown
14212 dynamic_linker="$host_os ld.so"
14213 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14214 need_lib_prefix=unknown
14215 hardcode_into_libs=no
14217 # when you set need_version to no, make sure it does not cause -set_version
14218 # flags to be left without arguments
14219 need_version=unknown
14225 version_type=linux # correct to gnu/linux during the next big refactor
14226 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14227 shlibpath_var=LIBPATH
14229 # AIX 3 has no versioning support, so we append a major version to the name.
14230 soname_spec='$libname$release$shared_ext$major'
14234 version_type=linux # correct to gnu/linux during the next big refactor
14237 hardcode_into_libs=yes
14238 if test ia64 = "$host_cpu"; then
14239 # AIX 5 supports IA64
14240 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14241 shlibpath_var=LD_LIBRARY_PATH
14243 # With GCC up to 2.95.x, collect2 would create an import file
14244 # for dependence libraries. The import file would start with
14245 # the line '#! .'. This would cause the generated library to
14246 # depend on '.', always an invalid library. This was fixed in
14247 # development snapshots of GCC prior to 3.0.
14249 aix4 | aix4.[01] | aix4.[01].*)
14250 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14252 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14255 can_build_shared=no
14259 # Using Import Files as archive members, it is possible to support
14260 # filename-based versioning of shared library archives on AIX. While
14261 # this would work for both with and without runtime linking, it will
14262 # prevent static linking of such archives. So we do filename-based
14263 # shared library versioning with .so extension only, which is used
14264 # when both runtime linking and shared linking is enabled.
14265 # Unfortunately, runtime linking may impact performance, so we do
14266 # not want this to be the default eventually. Also, we use the
14267 # versioned .so libs for executables only if there is the -brtl
14268 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14269 # To allow for filename-based versioning support, we need to create
14270 # libNAME.so.V as an archive file, containing:
14271 # *) an Import File, referring to the versioned filename of the
14272 # archive as well as the shared archive member, telling the
14273 # bitwidth (32 or 64) of that shared object, and providing the
14274 # list of exported symbols of that shared object, eventually
14275 # decorated with the 'weak' keyword
14276 # *) the shared object with the F_LOADONLY flag set, to really avoid
14277 # it being seen by the linker.
14278 # At run time we better use the real file rather than another symlink,
14279 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14281 case $with_aix_soname,$aix_use_runtimelinking in
14282 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14283 # soname into executable. Probably we can add versioning support to
14284 # collect2, so additional links can be useful in future.
14285 aix,yes) # traditional libtool
14286 dynamic_linker='AIX unversionable lib.so'
14287 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14288 # instead of lib<name>.a to let people know that these are not
14289 # typical AIX shared libraries.
14290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14292 aix,no) # traditional AIX only
14293 dynamic_linker='AIX lib.a(lib.so.V)'
14294 # We preserve .a as extension for shared libraries through AIX4.2
14295 # and later when we are not doing run time linking.
14296 library_names_spec='$libname$release.a $libname.a'
14297 soname_spec='$libname$release$shared_ext$major'
14299 svr4,*) # full svr4 only
14300 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14301 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14302 # We do not specify a path in Import Files, so LIBPATH fires.
14303 shlibpath_overrides_runpath=yes
14305 *,yes) # both, prefer svr4
14306 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14307 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14308 # unpreferred sharedlib libNAME.a needs extra handling
14309 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"'
14310 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"'
14311 # We do not specify a path in Import Files, so LIBPATH fires.
14312 shlibpath_overrides_runpath=yes
14314 *,no) # both, prefer aix
14315 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14316 library_names_spec='$libname$release.a $libname.a'
14317 soname_spec='$libname$release$shared_ext$major'
14318 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14319 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)'
14320 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"'
14323 shlibpath_var=LIBPATH
14330 # Since July 2007 AmigaOS4 officially supports .so libraries.
14331 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14335 library_names_spec='$libname.ixlibrary $libname.a'
14336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14337 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'
14343 library_names_spec='$libname$shared_ext'
14344 dynamic_linker="$host_os ld.so"
14345 shlibpath_var=LIBRARY_PATH
14349 version_type=linux # correct to gnu/linux during the next big refactor
14351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14352 soname_spec='$libname$release$shared_ext$major'
14353 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14354 shlibpath_var=LD_LIBRARY_PATH
14355 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14356 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14357 # the default ld.so.conf also contains /usr/contrib/lib and
14358 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14359 # libtool to hard-code these into programs
14362 cygwin* | mingw* | pw32* | cegcc*)
14363 version_type=windows
14368 case $GCC,$cc_basename in
14371 library_names_spec='$libname.dll.a'
14372 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14373 postinstall_cmds='base_file=`basename \$file`~
14374 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14375 dldir=$destdir/`dirname \$dlpath`~
14376 test -d \$dldir || mkdir -p \$dldir~
14377 $install_prog $dir/$dlname \$dldir/$dlname~
14378 chmod a+x \$dldir/$dlname~
14379 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14380 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14382 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14383 dlpath=$dir/\$dldll~
14385 shlibpath_overrides_runpath=yes
14389 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14390 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14392 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14395 # MinGW DLLs use traditional 'lib' prefix
14396 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14399 # pw32 DLLs use 'pw' prefix rather than 'lib'
14400 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14403 dynamic_linker='Win32 ld.exe'
14408 libname_spec='$name'
14409 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14410 library_names_spec='$libname.dll.lib'
14414 sys_lib_search_path_spec=
14417 for lt_path in $LIB
14420 # Let DOS variable expansion print the short 8.3 style file name.
14421 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14422 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14425 # Convert to MSYS style.
14426 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14429 # Convert to unix form, then to dos form, then back to unix form
14430 # but this time dos style (no spaces!) so that the unix form looks
14431 # like /cygdrive/c/PROGRA~1:/cygdr...
14432 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14433 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14434 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14437 sys_lib_search_path_spec=$LIB
14438 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14439 # It is most probably a Windows format PATH.
14440 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14442 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14444 # FIXME: find the short name or the path components, as spaces are
14445 # common. (e.g. "Program Files" -> "PROGRA~1")
14449 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14450 postinstall_cmds='base_file=`basename \$file`~
14451 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14452 dldir=$destdir/`dirname \$dlpath`~
14453 test -d \$dldir || mkdir -p \$dldir~
14454 $install_prog $dir/$dlname \$dldir/$dlname'
14455 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14456 dlpath=$dir/\$dldll~
14458 shlibpath_overrides_runpath=yes
14459 dynamic_linker='Win32 link.exe'
14463 # Assume MSVC wrapper
14464 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14465 dynamic_linker='Win32 ld.exe'
14468 # FIXME: first we should search . and the directory the executable is in
14472 darwin* | rhapsody*)
14473 dynamic_linker="$host_os dyld"
14474 version_type=darwin
14477 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14478 soname_spec='$libname$release$major$shared_ext'
14479 shlibpath_overrides_runpath=yes
14480 shlibpath_var=DYLD_LIBRARY_PATH
14481 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14483 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14484 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14488 version_type=linux # correct to gnu/linux during the next big refactor
14491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14492 soname_spec='$libname$release$shared_ext$major'
14493 shlibpath_var=LD_LIBRARY_PATH
14496 freebsd* | dragonfly*)
14497 # DragonFly does not have aout. When/if they implement a new
14498 # versioning mechanism, adjust this.
14499 if test -x /usr/bin/objformat; then
14500 objformat=`/usr/bin/objformat`
14503 freebsd[23].*) objformat=aout ;;
14504 *) objformat=elf ;;
14507 version_type=freebsd-$objformat
14508 case $version_type in
14510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14511 soname_spec='$libname$release$shared_ext$major'
14516 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14520 shlibpath_var=LD_LIBRARY_PATH
14523 shlibpath_overrides_runpath=yes
14525 freebsd3.[01]* | freebsdelf3.[01]*)
14526 shlibpath_overrides_runpath=yes
14527 hardcode_into_libs=yes
14529 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14530 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14531 shlibpath_overrides_runpath=no
14532 hardcode_into_libs=yes
14534 *) # from 4.6 on, and DragonFly
14535 shlibpath_overrides_runpath=yes
14536 hardcode_into_libs=yes
14542 version_type=linux # correct to gnu/linux during the next big refactor
14545 dynamic_linker="$host_os runtime_loader"
14546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14547 soname_spec='$libname$release$shared_ext$major'
14548 shlibpath_var=LIBRARY_PATH
14549 shlibpath_overrides_runpath=no
14550 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14551 hardcode_into_libs=yes
14554 hpux9* | hpux10* | hpux11*)
14555 # Give a soname corresponding to the major version so that dld.sl refuses to
14556 # link against other versions.
14563 hardcode_into_libs=yes
14564 dynamic_linker="$host_os dld.so"
14565 shlibpath_var=LD_LIBRARY_PATH
14566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
14569 if test 32 = "$HPUX_IA64_MODE"; then
14570 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14571 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14573 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14574 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14579 hardcode_into_libs=yes
14580 dynamic_linker="$host_os dld.sl"
14581 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14584 soname_spec='$libname$release$shared_ext$major'
14585 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14590 dynamic_linker="$host_os dld.sl"
14591 shlibpath_var=SHLIB_PATH
14592 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14594 soname_spec='$libname$release$shared_ext$major'
14597 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14598 postinstall_cmds='chmod 555 $lib'
14599 # or fails outright, so override atomically:
14600 install_override_mode=555
14604 version_type=linux # correct to gnu/linux during the next big refactor
14607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14608 soname_spec='$libname$release$shared_ext$major'
14609 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14610 shlibpath_var=LD_LIBRARY_PATH
14611 shlibpath_overrides_runpath=no
14612 hardcode_into_libs=yes
14615 irix5* | irix6* | nonstopux*)
14617 nonstopux*) version_type=nonstopux ;;
14619 if test yes = "$lt_cv_prog_gnu_ld"; then
14620 version_type=linux # correct to gnu/linux during the next big refactor
14627 soname_spec='$libname$release$shared_ext$major'
14628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14630 irix5* | nonstopux*)
14631 libsuff= shlibsuff=
14634 case $LD in # libtool.m4 will add one of these switches to LD
14635 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14636 libsuff= shlibsuff= libmagic=32-bit;;
14637 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14638 libsuff=32 shlibsuff=N32 libmagic=N32;;
14639 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14640 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14641 *) libsuff= shlibsuff= libmagic=never-match;;
14645 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14646 shlibpath_overrides_runpath=no
14647 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14648 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14649 hardcode_into_libs=yes
14652 # No shared lib support for Linux oldld, aout, or coff.
14653 linux*oldld* | linux*aout* | linux*coff*)
14658 version_type=none # Android doesn't support versioned libraries.
14661 library_names_spec='$libname$release$shared_ext'
14662 soname_spec='$libname$release$shared_ext'
14664 shlibpath_var=LD_LIBRARY_PATH
14665 shlibpath_overrides_runpath=yes
14667 # This implies no fast_install, which is unacceptable.
14668 # Some rework will be needed to allow for fast_install
14669 # before this can be enabled.
14670 hardcode_into_libs=yes
14672 dynamic_linker='Android linker'
14673 # Don't embed -rpath directories since the linker doesn't support them.
14674 hardcode_libdir_flag_spec='-L$libdir'
14677 # This must be glibc/ELF.
14678 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14679 version_type=linux # correct to gnu/linux during the next big refactor
14682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14683 soname_spec='$libname$release$shared_ext$major'
14684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14685 shlibpath_var=LD_LIBRARY_PATH
14686 shlibpath_overrides_runpath=no
14688 # Some binutils ld are patched to set DT_RUNPATH
14689 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14690 $as_echo_n "(cached) " >&6
14692 lt_cv_shlibpath_overrides_runpath=no
14693 save_LDFLAGS=$LDFLAGS
14694 save_libdir=$libdir
14695 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14696 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698 /* end confdefs.h. */
14708 if ac_fn_c_try_link "$LINENO"; then :
14709 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14710 lt_cv_shlibpath_overrides_runpath=yes
14713 rm -f core conftest.err conftest.$ac_objext \
14714 conftest$ac_exeext conftest.$ac_ext
14715 LDFLAGS=$save_LDFLAGS
14716 libdir=$save_libdir
14720 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14722 # This implies no fast_install, which is unacceptable.
14723 # Some rework will be needed to allow for fast_install
14724 # before this can be enabled.
14725 hardcode_into_libs=yes
14727 # Ideally, we could use ldconfig to report *all* directores which are
14728 # searched for libraries, however this is still not possible. Aside from not
14729 # being certain /sbin/ldconfig is available, command
14730 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14731 # even though it is searched at run-time. Try to do the best guess by
14732 # appending ld.so.conf contents (and includes) to the search path.
14733 if test -f /etc/ld.so.conf; then
14734 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' ' '`
14735 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14738 # We used to test for /lib/ld.so.1 and disable shared libraries on
14739 # powerpc, because MkLinux only supported shared libraries with the
14740 # GNU dynamic linker. Since this was broken with cross compilers,
14741 # most powerpc-linux boxes support dynamic linking these days and
14742 # people can always --disable-shared, the test was removed, and we
14743 # assume the GNU/Linux dynamic linker is in use.
14744 dynamic_linker='GNU/Linux ld.so'
14751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14752 soname_spec='${libname}${release}${shared_ext}$major'
14753 shlibpath_var=LD_LIBRARY_PATH
14754 shlibpath_overrides_runpath=no
14755 hardcode_into_libs=yes
14756 dynamic_linker='NetBSD ld.elf_so'
14763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14764 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14766 dynamic_linker='NetBSD (a.out) ld.so'
14768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14769 soname_spec='$libname$release$shared_ext$major'
14770 dynamic_linker='NetBSD ld.elf_so'
14772 shlibpath_var=LD_LIBRARY_PATH
14773 shlibpath_overrides_runpath=yes
14774 hardcode_into_libs=yes
14778 version_type=linux # correct to gnu/linux during the next big refactor
14779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14780 shlibpath_var=LD_LIBRARY_PATH
14781 shlibpath_overrides_runpath=yes
14788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14789 soname_spec='$libname$release$shared_ext$major'
14790 shlibpath_var=LD_LIBRARY_PATH
14791 shlibpath_overrides_runpath=no
14792 hardcode_into_libs=yes
14793 dynamic_linker='ldqnx.so'
14796 openbsd* | bitrig*)
14798 sys_lib_dlsearch_path_spec=/usr/lib
14800 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14805 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14807 shlibpath_var=LD_LIBRARY_PATH
14808 shlibpath_overrides_runpath=yes
14812 libname_spec='$name'
14813 version_type=windows
14817 # OS/2 can only load a DLL with a base name of 8 characters or less.
14818 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14819 v=$($ECHO $release$versuffix | tr -d .-);
14820 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14821 $ECHO $n$v`$shared_ext'
14822 library_names_spec='${libname}_dll.$libext'
14823 dynamic_linker='OS/2 ld.exe'
14824 shlibpath_var=BEGINLIBPATH
14825 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14827 postinstall_cmds='base_file=`basename \$file`~
14828 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14829 dldir=$destdir/`dirname \$dlpath`~
14830 test -d \$dldir || mkdir -p \$dldir~
14831 $install_prog $dir/$dlname \$dldir/$dlname~
14832 chmod a+x \$dldir/$dlname~
14833 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14834 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14836 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14837 dlpath=$dir/\$dldll~
14841 osf3* | osf4* | osf5*)
14845 soname_spec='$libname$release$shared_ext$major'
14846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14847 shlibpath_var=LD_LIBRARY_PATH
14848 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14857 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 shlibpath_overrides_runpath=yes
14864 hardcode_into_libs=yes
14865 # ldd complains unless libraries are executable
14866 postinstall_cmds='chmod +x $lib'
14871 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14872 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 shlibpath_overrides_runpath=yes
14875 if test yes = "$with_gnu_ld"; then
14882 version_type=linux # correct to gnu/linux during the next big refactor
14883 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14884 soname_spec='$libname$release$shared_ext$major'
14885 shlibpath_var=LD_LIBRARY_PATH
14886 case $host_vendor in
14888 shlibpath_overrides_runpath=no
14890 runpath_var=LD_RUN_PATH
14898 shlibpath_overrides_runpath=no
14899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14905 if test -d /usr/nec; then
14906 version_type=linux # correct to gnu/linux during the next big refactor
14907 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14908 soname_spec='$libname$shared_ext.$major'
14909 shlibpath_var=LD_LIBRARY_PATH
14913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14918 soname_spec='$libname$release$shared_ext$major'
14919 shlibpath_var=LD_LIBRARY_PATH
14920 shlibpath_overrides_runpath=yes
14921 hardcode_into_libs=yes
14922 if test yes = "$with_gnu_ld"; then
14923 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14925 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14928 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14932 sys_lib_dlsearch_path_spec='/usr/lib'
14936 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14937 version_type=linux # correct to gnu/linux during the next big refactor
14940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=no
14943 hardcode_into_libs=yes
14947 version_type=linux # correct to gnu/linux during the next big refactor
14948 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14949 soname_spec='$libname$release$shared_ext$major'
14950 shlibpath_var=LD_LIBRARY_PATH
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14958 $as_echo "$dynamic_linker" >&6; }
14959 test no = "$dynamic_linker" && can_build_shared=no
14961 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14962 if test yes = "$GCC"; then
14963 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14966 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14967 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14970 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14971 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14974 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14975 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14977 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14978 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14980 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14981 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15080 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15082 if test -n "$hardcode_libdir_flag_spec" ||
15083 test -n "$runpath_var" ||
15084 test yes = "$hardcode_automatic"; then
15086 # We can hardcode non-existent directories.
15087 if test no != "$hardcode_direct" &&
15088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15089 # have to relink, otherwise we might link with an installed library
15090 # when we should be linking with a yet-to-be-installed one
15091 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15092 test no != "$hardcode_minus_L"; then
15093 # Linking always hardcodes the temporary library directory.
15094 hardcode_action=relink
15096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15097 hardcode_action=immediate
15100 # We cannot hardcode anything, or else we can only hardcode existing
15102 hardcode_action=unsupported
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15105 $as_echo "$hardcode_action" >&6; }
15107 if test relink = "$hardcode_action" ||
15108 test yes = "$inherit_rpath"; then
15109 # Fast installation is not supported
15110 enable_fast_install=no
15111 elif test yes = "$shlibpath_overrides_runpath" ||
15112 test no = "$enable_shared"; then
15113 # Fast installation is not necessary
15114 enable_fast_install=needless
15122 if test yes != "$enable_dlopen"; then
15123 enable_dlopen=unknown
15124 enable_dlopen_self=unknown
15125 enable_dlopen_self_static=unknown
15132 lt_cv_dlopen=load_add_on
15134 lt_cv_dlopen_self=yes
15137 mingw* | pw32* | cegcc*)
15138 lt_cv_dlopen=LoadLibrary
15143 lt_cv_dlopen=dlopen
15148 # if libdl is installed we need to link against it
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15150 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15151 if ${ac_cv_lib_dl_dlopen+:} false; then :
15152 $as_echo_n "(cached) " >&6
15154 ac_check_lib_save_LIBS=$LIBS
15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h. */
15159 /* Override any GCC internal prototype to avoid an error.
15160 Use char because int might match the return type of a GCC
15161 builtin and then its argument prototype would still apply. */
15174 if ac_fn_c_try_link "$LINENO"; then :
15175 ac_cv_lib_dl_dlopen=yes
15177 ac_cv_lib_dl_dlopen=no
15179 rm -f core conftest.err conftest.$ac_objext \
15180 conftest$ac_exeext conftest.$ac_ext
15181 LIBS=$ac_check_lib_save_LIBS
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15184 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15185 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15186 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15191 lt_cv_dlopen_self=yes
15198 # Don't try to run any link tests for TPF. We know it's impossible
15199 # because TPF is a cross-compiler, and we know how we open DSOs.
15200 lt_cv_dlopen=dlopen
15202 lt_cv_dlopen_self=no
15206 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15207 if test "x$ac_cv_func_shl_load" = xyes; then :
15208 lt_cv_dlopen=shl_load
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15211 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15212 if ${ac_cv_lib_dld_shl_load+:} false; then :
15213 $as_echo_n "(cached) " >&6
15215 ac_check_lib_save_LIBS=$LIBS
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h. */
15220 /* Override any GCC internal prototype to avoid an error.
15221 Use char because int might match the return type of a GCC
15222 builtin and then its argument prototype would still apply. */
15230 return shl_load ();
15235 if ac_fn_c_try_link "$LINENO"; then :
15236 ac_cv_lib_dld_shl_load=yes
15238 ac_cv_lib_dld_shl_load=no
15240 rm -f core conftest.err conftest.$ac_objext \
15241 conftest$ac_exeext conftest.$ac_ext
15242 LIBS=$ac_check_lib_save_LIBS
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15245 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15246 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15247 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15249 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15250 if test "x$ac_cv_func_dlopen" = xyes; then :
15251 lt_cv_dlopen=dlopen
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15254 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15255 if ${ac_cv_lib_dl_dlopen+:} false; then :
15256 $as_echo_n "(cached) " >&6
15258 ac_check_lib_save_LIBS=$LIBS
15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261 /* end confdefs.h. */
15263 /* Override any GCC internal prototype to avoid an error.
15264 Use char because int might match the return type of a GCC
15265 builtin and then its argument prototype would still apply. */
15278 if ac_fn_c_try_link "$LINENO"; then :
15279 ac_cv_lib_dl_dlopen=yes
15281 ac_cv_lib_dl_dlopen=no
15283 rm -f core conftest.err conftest.$ac_objext \
15284 conftest$ac_exeext conftest.$ac_ext
15285 LIBS=$ac_check_lib_save_LIBS
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15288 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15289 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15290 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15293 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15294 if ${ac_cv_lib_svld_dlopen+:} false; then :
15295 $as_echo_n "(cached) " >&6
15297 ac_check_lib_save_LIBS=$LIBS
15298 LIBS="-lsvld $LIBS"
15299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h. */
15302 /* Override any GCC internal prototype to avoid an error.
15303 Use char because int might match the return type of a GCC
15304 builtin and then its argument prototype would still apply. */
15317 if ac_fn_c_try_link "$LINENO"; then :
15318 ac_cv_lib_svld_dlopen=yes
15320 ac_cv_lib_svld_dlopen=no
15322 rm -f core conftest.err conftest.$ac_objext \
15323 conftest$ac_exeext conftest.$ac_ext
15324 LIBS=$ac_check_lib_save_LIBS
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15327 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15328 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15329 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15332 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15333 if ${ac_cv_lib_dld_dld_link+:} false; then :
15334 $as_echo_n "(cached) " >&6
15336 ac_check_lib_save_LIBS=$LIBS
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15341 /* Override any GCC internal prototype to avoid an error.
15342 Use char because int might match the return type of a GCC
15343 builtin and then its argument prototype would still apply. */
15351 return dld_link ();
15356 if ac_fn_c_try_link "$LINENO"; then :
15357 ac_cv_lib_dld_dld_link=yes
15359 ac_cv_lib_dld_dld_link=no
15361 rm -f core conftest.err conftest.$ac_objext \
15362 conftest$ac_exeext conftest.$ac_ext
15363 LIBS=$ac_check_lib_save_LIBS
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15366 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15367 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15368 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15389 if test no = "$lt_cv_dlopen"; then
15395 case $lt_cv_dlopen in
15397 save_CPPFLAGS=$CPPFLAGS
15398 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15400 save_LDFLAGS=$LDFLAGS
15401 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15404 LIBS="$lt_cv_dlopen_libs $LIBS"
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15407 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15408 if ${lt_cv_dlopen_self+:} false; then :
15409 $as_echo_n "(cached) " >&6
15411 if test yes = "$cross_compiling"; then :
15412 lt_cv_dlopen_self=cross
15414 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15415 lt_status=$lt_dlunknown
15416 cat > conftest.$ac_ext <<_LT_EOF
15417 #line $LINENO "configure"
15418 #include "confdefs.h"
15427 # define LT_DLGLOBAL RTLD_GLOBAL
15430 # define LT_DLGLOBAL DL_GLOBAL
15432 # define LT_DLGLOBAL 0
15436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15437 find out it does not work in some platform. */
15438 #ifndef LT_DLLAZY_OR_NOW
15440 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15443 # define LT_DLLAZY_OR_NOW DL_LAZY
15446 # define LT_DLLAZY_OR_NOW RTLD_NOW
15449 # define LT_DLLAZY_OR_NOW DL_NOW
15451 # define LT_DLLAZY_OR_NOW 0
15458 /* When -fvisibility=hidden is used, assume the code has been annotated
15459 correspondingly for the symbols needed. */
15460 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15461 int fnord () __attribute__((visibility("default")));
15464 int fnord () { return 42; }
15467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15468 int status = $lt_dlunknown;
15472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15475 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15476 else puts (dlerror ());
15478 /* dlclose (self); */
15486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15487 (eval $ac_link) 2>&5
15489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15490 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15491 (./conftest; exit; ) >&5 2>/dev/null
15493 case x$lt_status in
15494 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15495 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15496 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15499 # compilation failed
15500 lt_cv_dlopen_self=no
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15508 $as_echo "$lt_cv_dlopen_self" >&6; }
15510 if test yes = "$lt_cv_dlopen_self"; then
15511 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15513 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15514 if ${lt_cv_dlopen_self_static+:} false; then :
15515 $as_echo_n "(cached) " >&6
15517 if test yes = "$cross_compiling"; then :
15518 lt_cv_dlopen_self_static=cross
15520 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15521 lt_status=$lt_dlunknown
15522 cat > conftest.$ac_ext <<_LT_EOF
15523 #line $LINENO "configure"
15524 #include "confdefs.h"
15533 # define LT_DLGLOBAL RTLD_GLOBAL
15536 # define LT_DLGLOBAL DL_GLOBAL
15538 # define LT_DLGLOBAL 0
15542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15543 find out it does not work in some platform. */
15544 #ifndef LT_DLLAZY_OR_NOW
15546 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15549 # define LT_DLLAZY_OR_NOW DL_LAZY
15552 # define LT_DLLAZY_OR_NOW RTLD_NOW
15555 # define LT_DLLAZY_OR_NOW DL_NOW
15557 # define LT_DLLAZY_OR_NOW 0
15564 /* When -fvisibility=hidden is used, assume the code has been annotated
15565 correspondingly for the symbols needed. */
15566 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15567 int fnord () __attribute__((visibility("default")));
15570 int fnord () { return 42; }
15573 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15574 int status = $lt_dlunknown;
15578 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15581 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15582 else puts (dlerror ());
15584 /* dlclose (self); */
15592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15593 (eval $ac_link) 2>&5
15595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15596 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15597 (./conftest; exit; ) >&5 2>/dev/null
15599 case x$lt_status in
15600 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15601 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15602 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15605 # compilation failed
15606 lt_cv_dlopen_self_static=no
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15614 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15617 CPPFLAGS=$save_CPPFLAGS
15618 LDFLAGS=$save_LDFLAGS
15623 case $lt_cv_dlopen_self in
15624 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15625 *) enable_dlopen_self=unknown ;;
15628 case $lt_cv_dlopen_self_static in
15629 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15630 *) enable_dlopen_self_static=unknown ;;
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15653 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15654 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15655 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15656 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15658 $as_echo "yes" >&6; }
15660 # FIXME - insert some real tests, host_os isn't really good enough
15663 if test -n "$STRIP"; then
15664 striplib="$STRIP -x"
15665 old_striplib="$STRIP -S"
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15667 $as_echo "yes" >&6; }
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15670 $as_echo "no" >&6; }
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15675 $as_echo "no" >&6; }
15691 # Report what library types will actually be built
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15693 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15695 $as_echo "$can_build_shared" >&6; }
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15698 $as_echo_n "checking whether to build shared libraries... " >&6; }
15699 test no = "$can_build_shared" && enable_shared=no
15701 # On AIX, shared libraries and static libraries use the same namespace, and
15702 # are all built from PIC.
15705 test yes = "$enable_shared" && enable_static=no
15706 if test -n "$RANLIB"; then
15707 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15708 postinstall_cmds='$RANLIB $lib'
15713 if test ia64 != "$host_cpu"; then
15714 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15715 yes,aix,yes) ;; # shared object as lib.so file only
15716 yes,svr4,*) ;; # shared object as lib.so archive member only
15717 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15723 $as_echo "$enable_shared" >&6; }
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15726 $as_echo_n "checking whether to build static libraries... " >&6; }
15727 # Make sure either enable_shared or enable_static is yes.
15728 test yes = "$enable_shared" || enable_static=yes
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15730 $as_echo "$enable_static" >&6; }
15737 ac_cpp='$CPP $CPPFLAGS'
15738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15758 ac_config_commands="$ac_config_commands libtool"
15763 # Only expand once:
15767 cat >>confdefs.h <<_ACEOF
15768 #define SHELL "$SHELL"
15778 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15779 if test -n "$ac_tool_prefix"; then
15780 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15781 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15783 $as_echo_n "checking for $ac_word... " >&6; }
15784 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15785 $as_echo_n "(cached) " >&6
15787 case $PKG_CONFIG in
15789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15793 for as_dir in $PATH
15796 test -z "$as_dir" && as_dir=.
15797 for ac_exec_ext in '' $ac_executable_extensions; do
15798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15810 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15811 if test -n "$PKG_CONFIG"; then
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15813 $as_echo "$PKG_CONFIG" >&6; }
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816 $as_echo "no" >&6; }
15821 if test -z "$ac_cv_path_PKG_CONFIG"; then
15822 ac_pt_PKG_CONFIG=$PKG_CONFIG
15823 # Extract the first word of "pkg-config", so it can be a program name with args.
15824 set dummy pkg-config; ac_word=$2
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15826 $as_echo_n "checking for $ac_word... " >&6; }
15827 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15828 $as_echo_n "(cached) " >&6
15830 case $ac_pt_PKG_CONFIG in
15832 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15836 for as_dir in $PATH
15839 test -z "$as_dir" && as_dir=.
15840 for ac_exec_ext in '' $ac_executable_extensions; do
15841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15842 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15853 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15854 if test -n "$ac_pt_PKG_CONFIG"; then
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15856 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15859 $as_echo "no" >&6; }
15862 if test "x$ac_pt_PKG_CONFIG" = x; then
15865 case $cross_compiling:$ac_tool_warned in
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15869 ac_tool_warned=yes ;;
15871 PKG_CONFIG=$ac_pt_PKG_CONFIG
15874 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15878 if test -n "$PKG_CONFIG"; then
15879 _pkg_min_version=0.9.0
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15881 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15882 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15884 $as_echo "yes" >&6; }
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15887 $as_echo "no" >&6; }
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
15894 $as_echo_n "checking for CHECK... " >&6; }
15896 if test -n "$CHECK_CFLAGS"; then
15897 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
15898 elif test -n "$PKG_CONFIG"; then
15899 if test -n "$PKG_CONFIG" && \
15900 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15901 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15904 test $ac_status = 0; }; then
15905 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
15906 test "x$?" != "x0" && pkg_failed=yes
15913 if test -n "$CHECK_LIBS"; then
15914 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
15915 elif test -n "$PKG_CONFIG"; then
15916 if test -n "$PKG_CONFIG" && \
15917 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15918 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15921 test $ac_status = 0; }; then
15922 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
15923 test "x$?" != "x0" && pkg_failed=yes
15933 if test $pkg_failed = yes; then
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15935 $as_echo "no" >&6; }
15937 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15938 _pkg_short_errors_supported=yes
15940 _pkg_short_errors_supported=no
15942 if test $_pkg_short_errors_supported = yes; then
15943 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15945 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15947 # Put the nasty error message in config.log where it belongs
15948 echo "$CHECK_PKG_ERRORS" >&5
15951 elif test $pkg_failed = untried; then
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15953 $as_echo "no" >&6; }
15956 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
15957 CHECK_LIBS=$pkg_cv_CHECK_LIBS
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15959 $as_echo "yes" >&6; }
15962 if test "x$run_tests" = xyes; then
15964 RUN_TESTS_FALSE='#'
15971 # Check for various header files and associated libraries.
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
15973 $as_echo_n "checking for library containing strerror... " >&6; }
15974 if ${ac_cv_search_strerror+:} false; then :
15975 $as_echo_n "(cached) " >&6
15977 ac_func_search_save_LIBS=$LIBS
15978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15979 /* end confdefs.h. */
15981 /* Override any GCC internal prototype to avoid an error.
15982 Use char because int might match the return type of a GCC
15983 builtin and then its argument prototype would still apply. */
15991 return strerror ();
15996 for ac_lib in '' cposix; do
15997 if test -z "$ac_lib"; then
15998 ac_res="none required"
16001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16003 if ac_fn_c_try_link "$LINENO"; then :
16004 ac_cv_search_strerror=$ac_res
16006 rm -f core conftest.err conftest.$ac_objext \
16008 if ${ac_cv_search_strerror+:} false; then :
16012 if ${ac_cv_search_strerror+:} false; then :
16015 ac_cv_search_strerror=no
16017 rm conftest.$ac_ext
16018 LIBS=$ac_func_search_save_LIBS
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
16021 $as_echo "$ac_cv_search_strerror" >&6; }
16022 ac_res=$ac_cv_search_strerror
16023 if test "$ac_res" != no; then :
16024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16033 LIBC_FATAL_STDERR_=1
16034 export LIBC_FATAL_STDERR_
16036 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16037 if test "x$ac_cv_type_size_t" = xyes; then :
16041 cat >>confdefs.h <<_ACEOF
16042 #define size_t unsigned int
16047 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16048 # for constant arguments. Useless!
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16050 $as_echo_n "checking for working alloca.h... " >&6; }
16051 if ${ac_cv_working_alloca_h+:} false; then :
16052 $as_echo_n "(cached) " >&6
16054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16055 /* end confdefs.h. */
16056 #include <alloca.h>
16060 char *p = (char *) alloca (2 * sizeof (int));
16066 if ac_fn_c_try_link "$LINENO"; then :
16067 ac_cv_working_alloca_h=yes
16069 ac_cv_working_alloca_h=no
16071 rm -f core conftest.err conftest.$ac_objext \
16072 conftest$ac_exeext conftest.$ac_ext
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16075 $as_echo "$ac_cv_working_alloca_h" >&6; }
16076 if test $ac_cv_working_alloca_h = yes; then
16078 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16083 $as_echo_n "checking for alloca... " >&6; }
16084 if ${ac_cv_func_alloca_works+:} false; then :
16085 $as_echo_n "(cached) " >&6
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16090 # define alloca __builtin_alloca
16093 # include <malloc.h>
16094 # define alloca _alloca
16096 # ifdef HAVE_ALLOCA_H
16097 # include <alloca.h>
16102 # ifndef alloca /* predefined by HP cc +Olibcalls */
16103 void *alloca (size_t);
16113 char *p = (char *) alloca (1);
16119 if ac_fn_c_try_link "$LINENO"; then :
16120 ac_cv_func_alloca_works=yes
16122 ac_cv_func_alloca_works=no
16124 rm -f core conftest.err conftest.$ac_objext \
16125 conftest$ac_exeext conftest.$ac_ext
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16128 $as_echo "$ac_cv_func_alloca_works" >&6; }
16130 if test $ac_cv_func_alloca_works = yes; then
16132 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16135 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16136 # that cause trouble. Some versions do not even contain alloca or
16137 # contain a buggy version. If you still want to use their alloca,
16138 # use ar to extract alloca.o from them instead of compiling alloca.c.
16144 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16146 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16150 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16151 if ${ac_cv_os_cray+:} false; then :
16152 $as_echo_n "(cached) " >&6
16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16156 #if defined CRAY && ! defined CRAY2
16163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16164 $EGREP "webecray" >/dev/null 2>&1; then :
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16173 $as_echo "$ac_cv_os_cray" >&6; }
16174 if test $ac_cv_os_cray = yes; then
16175 for ac_func in _getb67 GETB67 getb67; do
16176 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16177 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16178 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16180 cat >>confdefs.h <<_ACEOF
16181 #define CRAY_STACKSEG_END $ac_func
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16191 $as_echo_n "checking stack direction for C alloca... " >&6; }
16192 if ${ac_cv_c_stack_direction+:} false; then :
16193 $as_echo_n "(cached) " >&6
16195 if test "$cross_compiling" = yes; then :
16196 ac_cv_c_stack_direction=0
16198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h. */
16200 $ac_includes_default
16202 find_stack_direction (int *addr, int depth)
16204 int dir, dummy = 0;
16207 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16208 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16209 return dir + dummy;
16213 main (int argc, char **argv)
16215 return find_stack_direction (0, argc + !argv + 20) < 0;
16218 if ac_fn_c_try_run "$LINENO"; then :
16219 ac_cv_c_stack_direction=1
16221 ac_cv_c_stack_direction=-1
16223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16224 conftest.$ac_objext conftest.beam conftest.$ac_ext
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16229 $as_echo "$ac_cv_c_stack_direction" >&6; }
16230 cat >>confdefs.h <<_ACEOF
16231 #define STACK_DIRECTION $ac_cv_c_stack_direction
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
16240 $as_echo_n "checking whether // is distinct from /... " >&6; }
16241 if ${gl_cv_double_slash_root+:} false; then :
16242 $as_echo_n "(cached) " >&6
16244 if test x"$cross_compiling" = xyes ; then
16245 # When cross-compiling, there is no way to tell whether // is special
16246 # short of a list of hosts. However, the only known hosts to date
16247 # that have a distinct // are Apollo DomainOS (too old to port to),
16248 # Cygwin, and z/OS. If anyone knows of another system for which // has
16249 # special semantics and is distinct from /, please report it to
16250 # <bug-gnulib@gnu.org>.
16252 *-cygwin | i370-ibm-openedition)
16253 gl_cv_double_slash_root=yes ;;
16255 # Be optimistic and assume that / and // are the same when we
16257 gl_cv_double_slash_root='unknown, assuming no' ;;
16260 set x `ls -di / // 2>/dev/null`
16261 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
16262 gl_cv_double_slash_root=no
16264 gl_cv_double_slash_root=yes
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
16269 $as_echo "$gl_cv_double_slash_root" >&6; }
16270 if test "$gl_cv_double_slash_root" = yes; then
16272 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
16288 GNULIB_EUIDACCESS=0;
16289 GNULIB_FACCESSAT=0;
16292 GNULIB_FDATASYNC=0;
16294 GNULIB_FTRUNCATE=0;
16296 GNULIB_GETDOMAINNAME=0;
16297 GNULIB_GETDTABLESIZE=0;
16298 GNULIB_GETGROUPS=0;
16299 GNULIB_GETHOSTNAME=0;
16301 GNULIB_GETLOGIN_R=0;
16302 GNULIB_GETPAGESIZE=0;
16304 GNULIB_GETUSERSHELL=0;
16305 GNULIB_GROUP_MEMBER=0;
16317 GNULIB_READLINKAT=0;
16319 GNULIB_SETHOSTNAME=0;
16322 GNULIB_SYMLINKAT=0;
16324 GNULIB_TTYNAME_R=0;
16325 GNULIB_UNISTD_H_NONBLOCKING=0;
16326 GNULIB_UNISTD_H_SIGPIPE=0;
16341 HAVE_GETDTABLESIZE=1;
16343 HAVE_GETHOSTNAME=1;
16345 HAVE_GETPAGESIZE=1;
16347 HAVE_GROUP_MEMBER=1;
16357 HAVE_SETHOSTNAME=1;
16363 HAVE_DECL_ENVIRON=1;
16364 HAVE_DECL_FCHDIR=1;
16365 HAVE_DECL_FDATASYNC=1;
16366 HAVE_DECL_GETDOMAINNAME=1;
16367 HAVE_DECL_GETLOGIN=1;
16368 HAVE_DECL_GETLOGIN_R=1;
16369 HAVE_DECL_GETPAGESIZE=1;
16370 HAVE_DECL_GETUSERSHELL=1;
16371 HAVE_DECL_SETHOSTNAME=1;
16372 HAVE_DECL_TRUNCATE=1;
16373 HAVE_DECL_TTYNAME_R=1;
16375 HAVE_SYS_PARAM_H=0;
16380 REPLACE_FACCESSAT=0;
16381 REPLACE_FCHOWNAT=0;
16382 REPLACE_FTRUNCATE=0;
16384 REPLACE_GETDOMAINNAME=0;
16385 REPLACE_GETDTABLESIZE=0;
16386 REPLACE_GETLOGIN_R=0;
16387 REPLACE_GETGROUPS=0;
16388 REPLACE_GETPAGESIZE=0;
16398 REPLACE_READLINK=0;
16399 REPLACE_READLINKAT=0;
16403 REPLACE_SYMLINKAT=0;
16404 REPLACE_TRUNCATE=0;
16405 REPLACE_TTYNAME_R=0;
16407 REPLACE_UNLINKAT=0;
16410 UNISTD_H_HAVE_WINSOCK2_H=0;
16411 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16417 for ac_header in $ac_header_list
16419 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16420 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16423 cat >>confdefs.h <<_ACEOF
16424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16441 $as_echo_n "checking if environ is properly declared... " >&6; }
16442 if ${gt_cv_var_environ_declaration+:} false; then :
16443 $as_echo_n "(cached) " >&6
16445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h. */
16448 #include <unistd.h>
16450 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16451 #include <stdlib.h>
16453 extern struct { int foo; } environ;
16462 if ac_fn_c_try_compile "$LINENO"; then :
16463 gt_cv_var_environ_declaration=no
16465 gt_cv_var_environ_declaration=yes
16467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16470 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16471 if test $gt_cv_var_environ_declaration = yes; then
16473 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16478 if test $gt_cv_var_environ_declaration != yes; then
16479 HAVE_DECL_ENVIRON=0
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16485 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16486 if ${gl_cv_have_include_next+:} false; then :
16487 $as_echo_n "(cached) " >&6
16489 rm -rf conftestd1a conftestd1b conftestd2
16490 mkdir conftestd1a conftestd1b conftestd2
16491 cat <<EOF > conftestd1a/conftest.h
16492 #define DEFINED_IN_CONFTESTD1
16493 #include_next <conftest.h>
16494 #ifdef DEFINED_IN_CONFTESTD2
16497 #error "include_next doesn't work"
16500 cat <<EOF > conftestd1b/conftest.h
16501 #define DEFINED_IN_CONFTESTD1
16503 #include_next <conftest.h>
16504 #ifdef DEFINED_IN_CONFTESTD2
16507 #error "include_next doesn't work"
16510 cat <<EOF > conftestd2/conftest.h
16511 #ifndef DEFINED_IN_CONFTESTD1
16512 #error "include_next test doesn't work"
16514 #define DEFINED_IN_CONFTESTD2
16516 gl_save_CPPFLAGS="$CPPFLAGS"
16517 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16519 /* end confdefs.h. */
16520 #include <conftest.h>
16522 if ac_fn_c_try_compile "$LINENO"; then :
16523 gl_cv_have_include_next=yes
16525 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h. */
16528 #include <conftest.h>
16530 if ac_fn_c_try_compile "$LINENO"; then :
16531 gl_cv_have_include_next=buggy
16533 gl_cv_have_include_next=no
16535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16539 CPPFLAGS="$gl_save_CPPFLAGS"
16540 rm -rf conftestd1a conftestd1b conftestd2
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16544 $as_echo "$gl_cv_have_include_next" >&6; }
16545 PRAGMA_SYSTEM_HEADER=
16546 if test $gl_cv_have_include_next = yes; then
16547 INCLUDE_NEXT=include_next
16548 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16549 if test -n "$GCC"; then
16550 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16553 if test $gl_cv_have_include_next = buggy; then
16554 INCLUDE_NEXT=include
16555 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16557 INCLUDE_NEXT=include
16558 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16565 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16566 if ${gl_cv_pragma_columns+:} false; then :
16567 $as_echo_n "(cached) " >&6
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h. */
16577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16578 $EGREP "choke me" >/dev/null 2>&1; then :
16579 gl_cv_pragma_columns=yes
16581 gl_cv_pragma_columns=no
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16588 $as_echo "$gl_cv_pragma_columns" >&6; }
16589 if test $gl_cv_pragma_columns = yes; then
16590 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
16599 $as_echo_n "checking for complete errno.h... " >&6; }
16600 if ${gl_cv_header_errno_h_complete+:} false; then :
16601 $as_echo_n "(cached) " >&6
16604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605 /* end confdefs.h. */
16608 #if !defined ETXTBSY
16611 #if !defined ENOMSG
16617 #if !defined ENOLINK
16620 #if !defined EPROTO
16623 #if !defined EMULTIHOP
16626 #if !defined EBADMSG
16629 #if !defined EOVERFLOW
16632 #if !defined ENOTSUP
16635 #if !defined ENETRESET
16638 #if !defined ECONNABORTED
16641 #if !defined ESTALE
16644 #if !defined EDQUOT
16647 #if !defined ECANCELED
16650 #if !defined EOWNERDEAD
16653 #if !defined ENOTRECOVERABLE
16656 #if !defined EILSEQ
16661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16662 $EGREP "booboo" >/dev/null 2>&1; then :
16663 gl_cv_header_errno_h_complete=no
16665 gl_cv_header_errno_h_complete=yes
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
16672 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
16673 if test $gl_cv_header_errno_h_complete = yes; then
16684 if test $gl_cv_have_include_next = yes; then
16685 gl_cv_next_errno_h='<'errno.h'>'
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
16688 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
16689 if ${gl_cv_next_errno_h+:} false; then :
16690 $as_echo_n "(cached) " >&6
16695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16696 /* end confdefs.h. */
16700 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16701 *) gl_absname_cpp="$ac_cpp" ;;
16706 gl_dirsep_regex='[/\\]'
16709 gl_dirsep_regex='\/'
16712 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16713 gl_header_literal_regex=`echo 'errno.h' \
16714 | sed -e "$gl_make_literal_regex_sed"`
16715 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16716 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16722 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16723 sed -n "$gl_absolute_header_sed"`
16725 gl_header=$gl_cv_absolute_errno_h
16726 gl_cv_next_errno_h='"'$gl_header'"'
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
16731 $as_echo "$gl_cv_next_errno_h" >&6; }
16733 NEXT_ERRNO_H=$gl_cv_next_errno_h
16735 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16736 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16737 gl_next_as_first_directive='<'errno.h'>'
16739 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16740 gl_next_as_first_directive=$gl_cv_next_errno_h
16742 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
16750 if test -n "$ERRNO_H"; then
16751 GL_GENERATE_ERRNO_H_TRUE=
16752 GL_GENERATE_ERRNO_H_FALSE='#'
16754 GL_GENERATE_ERRNO_H_TRUE='#'
16755 GL_GENERATE_ERRNO_H_FALSE=
16759 if test -n "$ERRNO_H"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
16761 $as_echo_n "checking for EMULTIHOP value... " >&6; }
16762 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
16763 $as_echo_n "(cached) " >&6
16766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767 /* end confdefs.h. */
16775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16776 $EGREP "yes" >/dev/null 2>&1; then :
16777 gl_cv_header_errno_h_EMULTIHOP=yes
16779 gl_cv_header_errno_h_EMULTIHOP=no
16783 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
16784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16785 /* end confdefs.h. */
16787 #define _XOPEN_SOURCE_EXTENDED 1
16794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16795 $EGREP "yes" >/dev/null 2>&1; then :
16796 gl_cv_header_errno_h_EMULTIHOP=hidden
16800 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
16801 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
16802 #define _XOPEN_SOURCE_EXTENDED 1
16804 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16806 #include <stdlib.h>
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
16816 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
16817 case $gl_cv_header_errno_h_EMULTIHOP in
16819 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
16822 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
16830 if test -n "$ERRNO_H"; then
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
16832 $as_echo_n "checking for ENOLINK value... " >&6; }
16833 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
16834 $as_echo_n "(cached) " >&6
16837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838 /* end confdefs.h. */
16846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16847 $EGREP "yes" >/dev/null 2>&1; then :
16848 gl_cv_header_errno_h_ENOLINK=yes
16850 gl_cv_header_errno_h_ENOLINK=no
16854 if test $gl_cv_header_errno_h_ENOLINK = no; then
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16858 #define _XOPEN_SOURCE_EXTENDED 1
16865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16866 $EGREP "yes" >/dev/null 2>&1; then :
16867 gl_cv_header_errno_h_ENOLINK=hidden
16871 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
16872 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
16873 #define _XOPEN_SOURCE_EXTENDED 1
16875 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16877 #include <stdlib.h>
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
16887 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
16888 case $gl_cv_header_errno_h_ENOLINK in
16890 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
16893 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
16901 if test -n "$ERRNO_H"; then
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
16903 $as_echo_n "checking for EOVERFLOW value... " >&6; }
16904 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
16905 $as_echo_n "(cached) " >&6
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16918 $EGREP "yes" >/dev/null 2>&1; then :
16919 gl_cv_header_errno_h_EOVERFLOW=yes
16921 gl_cv_header_errno_h_EOVERFLOW=no
16925 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
16926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h. */
16929 #define _XOPEN_SOURCE_EXTENDED 1
16936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16937 $EGREP "yes" >/dev/null 2>&1; then :
16938 gl_cv_header_errno_h_EOVERFLOW=hidden
16942 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
16943 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
16944 #define _XOPEN_SOURCE_EXTENDED 1
16946 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16948 #include <stdlib.h>
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
16958 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
16959 case $gl_cv_header_errno_h_EOVERFLOW in
16961 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
16964 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
16972 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16973 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16979 cat >>confdefs.h <<_ACEOF
16980 #define HAVE_DECL_STRERROR_R $ac_have_decl
16983 for ac_func in strerror_r
16985 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16986 if test "x$ac_cv_func_strerror_r" = xyes; then :
16987 cat >>confdefs.h <<_ACEOF
16988 #define HAVE_STRERROR_R 1
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16995 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16996 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16997 $as_echo_n "(cached) " >&6
17000 ac_cv_func_strerror_r_char_p=no
17001 if test $ac_cv_have_decl_strerror_r = yes; then
17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003 /* end confdefs.h. */
17004 $ac_includes_default
17010 char x = *strerror_r (0, buf, sizeof buf);
17011 char *p = strerror_r (0, buf, sizeof buf);
17018 if ac_fn_c_try_compile "$LINENO"; then :
17019 ac_cv_func_strerror_r_char_p=yes
17021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023 # strerror_r is not declared. Choose between
17024 # systems that have relatively inaccessible declarations for the
17025 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
17026 # former has a strerror_r that returns char*, while the latter
17027 # has a strerror_r that returns `int'.
17028 # This test should segfault on the DEC system.
17029 if test "$cross_compiling" = yes; then :
17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17034 $ac_includes_default
17035 extern char *strerror_r ();
17040 char x = *strerror_r (0, buf, sizeof buf);
17041 return ! isalpha (x);
17046 if ac_fn_c_try_run "$LINENO"; then :
17047 ac_cv_func_strerror_r_char_p=yes
17049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17050 conftest.$ac_objext conftest.beam conftest.$ac_ext
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
17057 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
17058 if test $ac_cv_func_strerror_r_char_p = yes; then
17060 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
17065 XGETTEXT_EXTRA_OPTIONS=
17072 GNULIB_NONBLOCKING=0;
17084 for ac_func in $ac_func_list
17086 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17087 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17088 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17089 cat >>confdefs.h <<_ACEOF
17090 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
17104 $as_echo_n "checking for working fcntl.h... " >&6; }
17105 if ${gl_cv_header_working_fcntl_h+:} false; then :
17106 $as_echo_n "(cached) " >&6
17108 if test "$cross_compiling" = yes; then :
17110 # Guess 'no' on native Windows.
17111 mingw*) gl_cv_header_working_fcntl_h='no' ;;
17112 *) gl_cv_header_working_fcntl_h=cross-compiling ;;
17116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17117 /* end confdefs.h. */
17118 #include <sys/types.h>
17119 #include <sys/stat.h>
17121 # include <unistd.h>
17122 #else /* on Windows with MSVC */
17124 # include <stdlib.h>
17125 # defined sleep(n) _sleep ((n) * 1000)
17129 #define O_NOATIME 0
17132 #define O_NOFOLLOW 0
17134 static int const constants[] =
17136 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
17137 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
17144 int result = !constants;
17147 static char const sym[] = "conftest.sym";
17148 if (symlink ("/dev/null", sym) != 0)
17152 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
17159 if (unlink (sym) != 0 || symlink (".", sym) != 0)
17163 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
17174 static char const file[] = "confdefs.h";
17175 int fd = open (file, O_RDONLY | O_NOATIME);
17181 if (fstat (fd, &st0) != 0)
17187 if (read (fd, &c, 1) != 1)
17191 if (close (fd) != 0)
17196 if (stat (file, &st1) != 0)
17199 if (st0.st_atime != st1.st_atime)
17211 if ac_fn_c_try_run "$LINENO"; then :
17212 gl_cv_header_working_fcntl_h=yes
17215 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
17216 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
17217 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
17218 *) gl_cv_header_working_fcntl_h='no';;
17221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17222 conftest.$ac_objext conftest.beam conftest.$ac_ext
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
17228 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
17230 case $gl_cv_header_working_fcntl_h in #(
17231 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
17235 cat >>confdefs.h <<_ACEOF
17236 #define HAVE_WORKING_O_NOATIME $ac_val
17240 case $gl_cv_header_working_fcntl_h in #(
17241 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
17245 cat >>confdefs.h <<_ACEOF
17246 #define HAVE_WORKING_O_NOFOLLOW $ac_val
17250 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17251 if test "x$ac_cv_type_pid_t" = xyes; then :
17255 cat >>confdefs.h <<_ACEOF
17261 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17262 if test "x$ac_cv_type_mode_t" = xyes; then :
17266 cat >>confdefs.h <<_ACEOF
17277 GNULIB_GETTIMEOFDAY=0;
17278 HAVE_GETTIMEOFDAY=1;
17279 HAVE_STRUCT_TIMEVAL=1;
17281 REPLACE_GETTIMEOFDAY=0;
17282 REPLACE_STRUCT_TIMEVAL=0;
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17285 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17286 if ${ac_cv_c_restrict+:} false; then :
17287 $as_echo_n "(cached) " >&6
17289 ac_cv_c_restrict=no
17290 # The order here caters to the fact that C++ does not require restrict.
17291 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h. */
17294 typedef int *int_ptr;
17295 int foo (int_ptr $ac_kw ip) { return ip[0]; }
17296 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
17297 int bar (int ip[$ac_kw]) { return ip[0]; }
17305 return foo (t) + bar (t);
17311 if ac_fn_c_try_compile "$LINENO"; then :
17312 ac_cv_c_restrict=$ac_kw
17314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17315 test "$ac_cv_c_restrict" != no && break
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17320 $as_echo "$ac_cv_c_restrict" >&6; }
17322 case $ac_cv_c_restrict in
17324 no) $as_echo "#define restrict /**/" >>confdefs.h
17326 *) cat >>confdefs.h <<_ACEOF
17327 #define restrict $ac_cv_c_restrict
17349 if test $gl_cv_have_include_next = yes; then
17350 gl_cv_next_sys_time_h='<'sys/time.h'>'
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17353 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17354 if ${gl_cv_next_sys_time_h+:} false; then :
17355 $as_echo_n "(cached) " >&6
17358 if test $ac_cv_header_sys_time_h = yes; then
17363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17364 /* end confdefs.h. */
17365 #include <sys/time.h>
17368 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17369 *) gl_absname_cpp="$ac_cpp" ;;
17374 gl_dirsep_regex='[/\\]'
17377 gl_dirsep_regex='\/'
17380 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17381 gl_header_literal_regex=`echo 'sys/time.h' \
17382 | sed -e "$gl_make_literal_regex_sed"`
17383 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17384 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17390 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17391 sed -n "$gl_absolute_header_sed"`
17393 gl_header=$gl_cv_absolute_sys_time_h
17394 gl_cv_next_sys_time_h='"'$gl_header'"'
17396 gl_cv_next_sys_time_h='<'sys/time.h'>'
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17402 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17404 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17406 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17407 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17408 gl_next_as_first_directive='<'sys/time.h'>'
17410 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17411 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17413 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17419 if test $ac_cv_header_sys_time_h != yes; then
17427 if test $ac_cv_header_sys_socket_h != yes; then
17428 for ac_header in winsock2.h
17430 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17431 if test "x$ac_cv_header_winsock2_h" = xyes; then :
17432 cat >>confdefs.h <<_ACEOF
17433 #define HAVE_WINSOCK2_H 1
17441 if test "$ac_cv_header_winsock2_h" = yes; then
17443 UNISTD_H_HAVE_WINSOCK2_H=1
17444 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17451 $as_echo_n "checking for struct timeval... " >&6; }
17452 if ${gl_cv_sys_struct_timeval+:} false; then :
17453 $as_echo_n "(cached) " >&6
17455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17456 /* end confdefs.h. */
17457 #if HAVE_SYS_TIME_H
17458 #include <sys/time.h>
17461 #if HAVE_WINSOCK2_H
17462 # include <winsock2.h>
17468 static struct timeval x; x.tv_sec = x.tv_usec;
17473 if ac_fn_c_try_compile "$LINENO"; then :
17474 gl_cv_sys_struct_timeval=yes
17476 gl_cv_sys_struct_timeval=no
17478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17482 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17483 if test $gl_cv_sys_struct_timeval != yes; then
17484 HAVE_STRUCT_TIMEVAL=0
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17487 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17488 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
17489 $as_echo_n "(cached) " >&6
17491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h. */
17493 #if HAVE_SYS_TIME_H
17494 #include <sys/time.h>
17497 #if HAVE_WINSOCK2_H
17498 # include <winsock2.h>
17504 static struct timeval x;
17505 typedef int verify_tv_sec_type[
17506 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17513 if ac_fn_c_try_compile "$LINENO"; then :
17514 gl_cv_sys_struct_timeval_tv_sec=yes
17516 gl_cv_sys_struct_timeval_tv_sec=no
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17522 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17523 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17524 REPLACE_STRUCT_TIMEVAL=1
17538 NEED_LOCALTIME_BUFFER=0
17543 GNULIB_LOCALTIME=0;
17544 GNULIB_NANOSLEEP=0;
17551 HAVE_DECL_LOCALTIME_R=1;
17557 REPLACE_CTIME=GNULIB_PORTCHECK;
17558 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17559 REPLACE_MKTIME=GNULIB_PORTCHECK;
17560 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17561 REPLACE_STRFTIME=GNULIB_PORTCHECK;
17562 REPLACE_TIMEGM=GNULIB_PORTCHECK;
17563 REPLACE_TZSET=GNULIB_PORTCHECK;
17565 : ${GNULIB_GETTIMEOFDAY=0};
17567 REPLACE_LOCALTIME=0;
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17574 $as_echo_n "checking for 64-bit off_t... " >&6; }
17575 if ${gl_cv_type_off_t_64+:} false; then :
17576 $as_echo_n "(cached) " >&6
17578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h. */
17580 #include <sys/types.h>
17581 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17591 if ac_fn_c_try_compile "$LINENO"; then :
17592 gl_cv_type_off_t_64=yes
17594 gl_cv_type_off_t_64=no
17596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17600 $as_echo "$gl_cv_type_off_t_64" >&6; }
17601 if test $gl_cv_type_off_t_64 = no; then
17602 WINDOWS_64_BIT_OFF_T=1
17604 WINDOWS_64_BIT_OFF_T=0
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
17607 $as_echo_n "checking for 64-bit st_size... " >&6; }
17608 if ${gl_cv_member_st_size_64+:} false; then :
17609 $as_echo_n "(cached) " >&6
17611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h. */
17613 #include <sys/types.h>
17615 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
17625 if ac_fn_c_try_compile "$LINENO"; then :
17626 gl_cv_member_st_size_64=yes
17628 gl_cv_member_st_size_64=no
17630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
17634 $as_echo "$gl_cv_member_st_size_64" >&6; }
17635 if test $gl_cv_member_st_size_64 = no; then
17636 WINDOWS_64_BIT_ST_SIZE=1
17638 WINDOWS_64_BIT_ST_SIZE=0
17642 WINDOWS_64_BIT_OFF_T=0
17643 WINDOWS_64_BIT_ST_SIZE=0
17659 if test $gl_cv_have_include_next = yes; then
17660 gl_cv_next_limits_h='<'limits.h'>'
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
17663 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
17664 if ${gl_cv_next_limits_h+:} false; then :
17665 $as_echo_n "(cached) " >&6
17668 if test $ac_cv_header_limits_h = yes; then
17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674 /* end confdefs.h. */
17675 #include <limits.h>
17678 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17679 *) gl_absname_cpp="$ac_cpp" ;;
17684 gl_dirsep_regex='[/\\]'
17687 gl_dirsep_regex='\/'
17690 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17691 gl_header_literal_regex=`echo 'limits.h' \
17692 | sed -e "$gl_make_literal_regex_sed"`
17693 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17694 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17700 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17701 sed -n "$gl_absolute_header_sed"`
17703 gl_header=$gl_cv_absolute_limits_h
17704 gl_cv_next_limits_h='"'$gl_header'"'
17706 gl_cv_next_limits_h='<'limits.h'>'
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
17712 $as_echo "$gl_cv_next_limits_h" >&6; }
17714 NEXT_LIMITS_H=$gl_cv_next_limits_h
17716 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17717 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17718 gl_next_as_first_directive='<'limits.h'>'
17720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17721 gl_next_as_first_directive=$gl_cv_next_limits_h
17723 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
17730 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
17731 if ${gl_cv_header_limits_width+:} false; then :
17732 $as_echo_n "(cached) " >&6
17734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735 /* end confdefs.h. */
17736 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
17737 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
17739 #include <limits.h>
17740 long long llm = LLONG_MAX;
17742 int ullw = ULLONG_WIDTH;
17752 if ac_fn_c_try_compile "$LINENO"; then :
17753 gl_cv_header_limits_width=yes
17755 gl_cv_header_limits_width=no
17757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
17760 $as_echo "$gl_cv_header_limits_width" >&6; }
17761 if test "$gl_cv_header_limits_width" = yes; then
17767 if test -n "$LIMITS_H"; then
17768 GL_GENERATE_LIMITS_H_TRUE=
17769 GL_GENERATE_LIMITS_H_FALSE='#'
17771 GL_GENERATE_LIMITS_H_TRUE='#'
17772 GL_GENERATE_LIMITS_H_FALSE=
17777 if test "X$prefix" = "XNONE"; then
17778 acl_final_prefix="$ac_default_prefix"
17780 acl_final_prefix="$prefix"
17782 if test "X$exec_prefix" = "XNONE"; then
17783 acl_final_exec_prefix='${prefix}'
17785 acl_final_exec_prefix="$exec_prefix"
17787 acl_save_prefix="$prefix"
17788 prefix="$acl_final_prefix"
17789 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17790 prefix="$acl_save_prefix"
17794 # Check whether --with-gnu-ld was given.
17795 if test "${with_gnu_ld+set}" = set; then :
17796 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17801 # Prepare PATH_SEPARATOR.
17802 # The user is always right.
17803 if test "${PATH_SEPARATOR+set}" != set; then
17804 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17805 # contains only /bin. Note that ksh looks also at the FPATH variable,
17806 # so we have to set that as well for the test.
17808 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17809 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17810 || PATH_SEPARATOR=';'
17814 if test -n "$LD"; then
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
17816 $as_echo_n "checking for ld... " >&6; }
17817 elif test "$GCC" = yes; then
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17819 $as_echo_n "checking for ld used by $CC... " >&6; }
17820 elif test "$with_gnu_ld" = yes; then
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17822 $as_echo_n "checking for GNU ld... " >&6; }
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17825 $as_echo_n "checking for non-GNU ld... " >&6; }
17827 if test -n "$LD"; then
17828 # Let the user override the test with a path.
17831 if ${acl_cv_path_LD+:} false; then :
17832 $as_echo_n "(cached) " >&6
17835 acl_cv_path_LD= # Final result of this test
17836 ac_prog=ld # Program to search in $PATH
17837 if test "$GCC" = yes; then
17838 # Check if gcc -print-prog-name=ld gives a path.
17841 # gcc leaves a trailing carriage return which upsets mingw
17842 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17844 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
17846 case $acl_output in
17847 # Accept absolute paths.
17849 re_direlt='/[^/][^/]*/\.\./'
17850 # Canonicalize the pathname of ld
17851 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
17852 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
17853 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
17855 # Got the pathname. No search in PATH is needed.
17856 acl_cv_path_LD="$acl_output"
17860 # If it fails, then pretend we aren't using GCC.
17863 # If it is relative, then search for the first ld in PATH.
17864 with_gnu_ld=unknown
17868 if test -n "$ac_prog"; then
17869 # Search for $ac_prog in $PATH.
17870 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17871 for ac_dir in $PATH; do
17872 IFS="$acl_save_ifs"
17873 test -z "$ac_dir" && ac_dir=.
17874 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17875 acl_cv_path_LD="$ac_dir/$ac_prog"
17876 # Check to see if the program is GNU ld. I'd rather use --version,
17877 # but apparently some variants of GNU ld only accept -v.
17878 # Break only if it was the GNU/non-GNU ld that we prefer.
17879 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
17880 *GNU* | *'with BFD'*)
17881 test "$with_gnu_ld" != no && break
17884 test "$with_gnu_ld" != yes && break
17889 IFS="$acl_save_ifs"
17893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17894 /* end confdefs.h. */
17895 #if defined __powerpc64__ || defined _ARCH_PPC64
17902 if ac_fn_c_try_compile "$LINENO"; then :
17903 # The compiler produces 64-bit code. Add option '-b64' so that the
17904 # linker groks 64-bit object files.
17905 case "$acl_cv_path_LD " in
17907 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
17911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h. */
17916 #if defined __sparcv9 || defined __arch64__
17923 if ac_fn_c_try_compile "$LINENO"; then :
17926 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
17927 # so that the linker groks 32-bit object files.
17928 case "$acl_cv_path_LD " in
17929 *" -m elf32_sparc "*) ;;
17930 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
17934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17940 LD="$acl_cv_path_LD"
17942 if test -n "$LD"; then
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17944 $as_echo "$LD" >&6; }
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17947 $as_echo "no" >&6; }
17948 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17952 if ${acl_cv_prog_gnu_ld+:} false; then :
17953 $as_echo_n "(cached) " >&6
17955 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17956 case `$LD -v 2>&1 </dev/null` in
17957 *GNU* | *'with BFD'*)
17958 acl_cv_prog_gnu_ld=yes
17961 acl_cv_prog_gnu_ld=no
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17966 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17967 with_gnu_ld=$acl_cv_prog_gnu_ld
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17973 $as_echo_n "checking for shared library run path origin... " >&6; }
17974 if ${acl_cv_rpath+:} false; then :
17975 $as_echo_n "(cached) " >&6
17978 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17979 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17981 rm -f ./conftest.sh
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17986 $as_echo "$acl_cv_rpath" >&6; }
17988 acl_libext="$acl_cv_libext"
17989 acl_shlibext="$acl_cv_shlibext"
17990 acl_libname_spec="$acl_cv_libname_spec"
17991 acl_library_names_spec="$acl_cv_library_names_spec"
17992 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17993 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17994 acl_hardcode_direct="$acl_cv_hardcode_direct"
17995 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17996 # Check whether --enable-rpath was given.
17997 if test "${enable_rpath+set}" = set; then :
17998 enableval=$enable_rpath; :
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
18007 $as_echo_n "checking 32-bit host C ABI... " >&6; }
18008 if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
18009 $as_echo_n "(cached) " >&6
18011 if test -n "$gl_cv_host_cpu_c_abi"; then
18012 case "$gl_cv_host_cpu_c_abi" in
18013 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
18014 gl_cv_host_cpu_c_abi_32bit=yes ;;
18016 gl_cv_host_cpu_c_abi_32bit=no ;;
18019 case "$host_cpu" in
18022 gl_cv_host_cpu_c_abi_32bit=yes
18026 # On x86_64 systems, the C compiler may be generating code in one of
18028 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
18029 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
18030 # with native Windows (mingw, MSVC).
18031 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
18032 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
18033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034 /* end confdefs.h. */
18035 #if (defined __x86_64__ || defined __amd64__ \
18036 || defined _M_X64 || defined _M_AMD64) \
18037 && !(defined __ILP32__ || defined _ILP32)
18044 if ac_fn_c_try_compile "$LINENO"; then :
18045 gl_cv_host_cpu_c_abi_32bit=no
18047 gl_cv_host_cpu_c_abi_32bit=yes
18049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18053 # Assume arm with EABI.
18054 # On arm64 systems, the C compiler may be generating code in one of
18056 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
18057 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
18058 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
18059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h. */
18061 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
18068 if ac_fn_c_try_compile "$LINENO"; then :
18069 gl_cv_host_cpu_c_abi_32bit=no
18071 gl_cv_host_cpu_c_abi_32bit=yes
18073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18076 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
18077 # On hppa, the C compiler may be generating 32-bit code or 64-bit
18078 # code. In the latter case, it defines _LP64 and __LP64__.
18079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18080 /* end confdefs.h. */
18088 if ac_fn_c_try_compile "$LINENO"; then :
18089 gl_cv_host_cpu_c_abi_32bit=no
18091 gl_cv_host_cpu_c_abi_32bit=yes
18093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18097 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
18098 # 32-bit code. In the latter case, it defines _ILP32.
18099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18100 /* end confdefs.h. */
18108 if ac_fn_c_try_compile "$LINENO"; then :
18109 gl_cv_host_cpu_c_abi_32bit=yes
18111 gl_cv_host_cpu_c_abi_32bit=no
18113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18117 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
18119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18120 /* end confdefs.h. */
18121 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
18128 if ac_fn_c_try_compile "$LINENO"; then :
18129 gl_cv_host_cpu_c_abi_32bit=no
18131 gl_cv_host_cpu_c_abi_32bit=yes
18133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18137 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
18138 # No need to distinguish them here; the caller may distinguish
18139 # them based on the OS.
18140 # On powerpc64 systems, the C compiler may still be generating
18141 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
18142 # be generating 64-bit code.
18143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144 /* end confdefs.h. */
18145 #if defined __powerpc64__ || defined _ARCH_PPC64
18152 if ac_fn_c_try_compile "$LINENO"; then :
18153 gl_cv_host_cpu_c_abi_32bit=no
18155 gl_cv_host_cpu_c_abi_32bit=yes
18157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18161 gl_cv_host_cpu_c_abi_32bit=yes
18164 riscv32 | riscv64 )
18165 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
18166 # Size of 'long' and 'void *':
18167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168 /* end confdefs.h. */
18169 #if defined __LP64__
18176 if ac_fn_c_try_compile "$LINENO"; then :
18177 gl_cv_host_cpu_c_abi_32bit=no
18179 gl_cv_host_cpu_c_abi_32bit=yes
18181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18185 # On s390x, the C compiler may be generating 64-bit (= s390x) code
18186 # or 31-bit (= s390) code.
18187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18188 /* end confdefs.h. */
18189 #if defined __LP64__ || defined __s390x__
18196 if ac_fn_c_try_compile "$LINENO"; then :
18197 gl_cv_host_cpu_c_abi_32bit=no
18199 gl_cv_host_cpu_c_abi_32bit=yes
18201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18205 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
18206 # C compiler still generates 32-bit code.
18207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h. */
18209 #if defined __sparcv9 || defined __arch64__
18216 if ac_fn_c_try_compile "$LINENO"; then :
18217 gl_cv_host_cpu_c_abi_32bit=no
18219 gl_cv_host_cpu_c_abi_32bit=yes
18221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18225 gl_cv_host_cpu_c_abi_32bit=no
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
18232 $as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
18234 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18243 $as_echo_n "checking for 64-bit host... " >&6; }
18244 if ${gl_cv_solaris_64bit+:} false; then :
18245 $as_echo_n "(cached) " >&6
18247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18248 /* end confdefs.h. */
18256 if ac_fn_c_try_compile "$LINENO"; then :
18257 gl_cv_solaris_64bit=yes
18259 gl_cv_solaris_64bit=no
18261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18265 $as_echo "$gl_cv_solaris_64bit" >&6; };;
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
18269 $as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
18270 if ${acl_cv_libdirstems+:} false; then :
18271 $as_echo_n "(cached) " >&6
18277 if test $gl_cv_solaris_64bit = yes; then
18278 acl_libdirstem=lib/64
18279 case "$host_cpu" in
18280 sparc*) acl_libdirstem2=lib/sparcv9 ;;
18281 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18286 if test "$HOST_CPU_C_ABI_32BIT" != yes; then
18287 searchpath=`(if test -f /usr/bin/gcc \
18288 && LC_ALL=C /usr/bin/gcc -print-search-dirs >/dev/null 2>/dev/null; then \
18289 LC_ALL=C /usr/bin/gcc -print-search-dirs; \
18291 LC_ALL=C $CC -print-search-dirs; \
18293 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18294 if test -n "$searchpath"; then
18295 acl_save_IFS="${IFS= }"; IFS=":"
18296 for searchdir in $searchpath; do
18297 if test -d "$searchdir"; then
18298 case "$searchdir" in
18299 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18301 # Better ignore directories of this form. They are misleading.
18303 *) searchdir=`cd "$searchdir" && pwd`
18304 case "$searchdir" in
18305 */lib64 ) acl_libdirstem=lib64 ;;
18310 IFS="$acl_save_IFS"
18315 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18316 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2"
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
18320 $as_echo "$acl_cv_libdirstems" >&6; }
18321 # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
18322 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
18323 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e '/,/s/.*,//'`
18327 gl_threads_api=none
18332 if test "$gl_use_threads" != no; then
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
18334 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
18335 if ${gl_cv_have_weak+:} false; then :
18336 $as_echo_n "(cached) " >&6
18339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18340 /* end confdefs.h. */
18341 extern void xyzzy ();
18351 if ac_fn_c_try_link "$LINENO"; then :
18352 gl_cv_have_weak=maybe
18354 rm -f core conftest.err conftest.$ac_objext \
18355 conftest$ac_exeext conftest.$ac_ext
18356 if test $gl_cv_have_weak = maybe; then
18357 if test "$cross_compiling" = yes; then :
18358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18359 /* end confdefs.h. */
18361 Extensible Linking Format
18365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18366 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
18367 gl_cv_have_weak="guessing yes"
18369 gl_cv_have_weak="guessing no"
18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376 /* end confdefs.h. */
18382 return (fputs == NULL);
18385 if ac_fn_c_try_run "$LINENO"; then :
18386 gl_cv_have_weak=yes
18390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18391 conftest.$ac_objext conftest.beam conftest.$ac_ext
18395 case " $LDFLAGS " in
18396 *" -static "*) gl_cv_have_weak=no ;;
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
18401 $as_echo "$gl_cv_have_weak" >&6; }
18402 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
18403 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
18404 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
18405 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
18406 if test "x$ac_cv_header_pthread_h" = xyes; then :
18407 gl_have_pthread_h=yes
18409 gl_have_pthread_h=no
18413 if test "$gl_have_pthread_h" = yes; then
18414 # Other possible tests:
18415 # -lpthreads (FSU threads, PCthreads)
18418 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
18419 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
18420 # the second one only in libpthread, and lock.c needs it.
18422 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
18423 # needs -pthread for some reason. See:
18424 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
18426 for gl_pthread in '' '-pthread'; do
18427 LIBS="$LIBS $gl_pthread"
18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h. */
18430 #include <pthread.h>
18432 pthread_mutexattr_t ma;
18437 pthread_mutex_lock (&m);
18438 pthread_mutexattr_init (&ma);
18443 if ac_fn_c_try_link "$LINENO"; then :
18444 gl_have_pthread=yes
18445 LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
18446 LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
18448 rm -f core conftest.err conftest.$ac_objext \
18449 conftest$ac_exeext conftest.$ac_ext
18451 test -n "$gl_have_pthread" && break
18454 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
18455 # since it is defined as a macro on OSF/1.)
18456 if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
18457 # The program links fine without libpthread. But it may actually
18458 # need to link with libpthread in order to create multiple threads.
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
18460 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
18461 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
18462 $as_echo_n "(cached) " >&6
18464 ac_check_lib_save_LIBS=$LIBS
18465 LIBS="-lpthread $LIBS"
18466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18467 /* end confdefs.h. */
18469 /* Override any GCC internal prototype to avoid an error.
18470 Use char because int might match the return type of a GCC
18471 builtin and then its argument prototype would still apply. */
18475 char pthread_kill ();
18479 return pthread_kill ();
18484 if ac_fn_c_try_link "$LINENO"; then :
18485 ac_cv_lib_pthread_pthread_kill=yes
18487 ac_cv_lib_pthread_pthread_kill=no
18489 rm -f core conftest.err conftest.$ac_objext \
18490 conftest$ac_exeext conftest.$ac_ext
18491 LIBS=$ac_check_lib_save_LIBS
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
18494 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
18495 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
18496 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
18497 # On Solaris and HP-UX, most pthread functions exist also in libc.
18498 # Therefore pthread_in_use() needs to actually try to create a
18499 # thread: pthread_create from libc will fail, whereas
18500 # pthread_create will actually create a thread.
18501 # On Solaris 10 or newer, this test is no longer needed, because
18502 # libc contains the fully functional pthread functions.
18504 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
18506 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
18512 elif test -z "$gl_have_pthread"; then
18513 # Some library is needed. Try libpthread and libc_r.
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
18515 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
18516 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
18517 $as_echo_n "(cached) " >&6
18519 ac_check_lib_save_LIBS=$LIBS
18520 LIBS="-lpthread $LIBS"
18521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522 /* end confdefs.h. */
18524 /* Override any GCC internal prototype to avoid an error.
18525 Use char because int might match the return type of a GCC
18526 builtin and then its argument prototype would still apply. */
18530 char pthread_kill ();
18534 return pthread_kill ();
18539 if ac_fn_c_try_link "$LINENO"; then :
18540 ac_cv_lib_pthread_pthread_kill=yes
18542 ac_cv_lib_pthread_pthread_kill=no
18544 rm -f core conftest.err conftest.$ac_objext \
18545 conftest$ac_exeext conftest.$ac_ext
18546 LIBS=$ac_check_lib_save_LIBS
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
18549 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
18550 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
18551 gl_have_pthread=yes
18552 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
18553 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
18556 if test -z "$gl_have_pthread"; then
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
18559 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
18560 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
18561 $as_echo_n "(cached) " >&6
18563 ac_check_lib_save_LIBS=$LIBS
18565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18566 /* end confdefs.h. */
18568 /* Override any GCC internal prototype to avoid an error.
18569 Use char because int might match the return type of a GCC
18570 builtin and then its argument prototype would still apply. */
18574 char pthread_kill ();
18578 return pthread_kill ();
18583 if ac_fn_c_try_link "$LINENO"; then :
18584 ac_cv_lib_c_r_pthread_kill=yes
18586 ac_cv_lib_c_r_pthread_kill=no
18588 rm -f core conftest.err conftest.$ac_objext \
18589 conftest$ac_exeext conftest.$ac_ext
18590 LIBS=$ac_check_lib_save_LIBS
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
18593 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
18594 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
18595 gl_have_pthread=yes
18596 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
18597 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
18602 if test -n "$gl_have_pthread"; then
18603 gl_threads_api=posix
18605 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
18607 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
18608 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
18610 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
18619 if test -z "$gl_have_pthread"; then
18620 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
18621 gl_have_solaristhread=
18622 gl_save_LIBS="$LIBS"
18623 LIBS="$LIBS -lthread"
18624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18625 /* end confdefs.h. */
18627 #include <thread.h>
18638 if ac_fn_c_try_link "$LINENO"; then :
18639 gl_have_solaristhread=yes
18641 rm -f core conftest.err conftest.$ac_objext \
18642 conftest$ac_exeext conftest.$ac_ext
18643 LIBS="$gl_save_LIBS"
18644 if test -n "$gl_have_solaristhread"; then
18645 gl_threads_api=solaris
18647 LTLIBTHREAD=-lthread
18648 LIBMULTITHREAD="$LIBTHREAD"
18649 LTLIBMULTITHREAD="$LTLIBTHREAD"
18651 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
18653 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
18655 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
18663 if test "$gl_use_threads" = pth; then
18664 gl_save_CPPFLAGS="$CPPFLAGS"
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
18671 $as_echo_n "checking how to link with libpth... " >&6; }
18672 if ${ac_cv_libpth_libs+:} false; then :
18673 $as_echo_n "(cached) " >&6
18684 acl_save_prefix="$prefix"
18685 prefix="$acl_final_prefix"
18686 acl_save_exec_prefix="$exec_prefix"
18687 exec_prefix="$acl_final_exec_prefix"
18689 eval additional_includedir=\"$includedir\"
18690 eval additional_libdir=\"$libdir\"
18692 exec_prefix="$acl_save_exec_prefix"
18693 prefix="$acl_save_prefix"
18696 # Check whether --with-libpth-prefix was given.
18697 if test "${with_libpth_prefix+set}" = set; then :
18698 withval=$with_libpth_prefix;
18699 if test "X$withval" = "Xno"; then
18702 if test "X$withval" = "X"; then
18704 acl_save_prefix="$prefix"
18705 prefix="$acl_final_prefix"
18706 acl_save_exec_prefix="$exec_prefix"
18707 exec_prefix="$acl_final_exec_prefix"
18709 eval additional_includedir=\"$includedir\"
18710 eval additional_libdir=\"$libdir\"
18712 exec_prefix="$acl_save_exec_prefix"
18713 prefix="$acl_save_prefix"
18716 additional_includedir="$withval/include"
18717 additional_libdir="$withval/$acl_libdirstem"
18718 if test "$acl_libdirstem2" != "$acl_libdirstem" \
18719 && test ! -d "$withval/$acl_libdirstem"; then
18720 additional_libdir="$withval/$acl_libdirstem2"
18734 names_already_handled=
18735 names_next_round='pth '
18736 while test -n "$names_next_round"; do
18737 names_this_round="$names_next_round"
18739 for name in $names_this_round; do
18741 for n in $names_already_handled; do
18742 if test "$n" = "$name"; then
18743 already_handled=yes
18747 if test -z "$already_handled"; then
18748 names_already_handled="$names_already_handled $name"
18749 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18750 eval value=\"\$HAVE_LIB$uppername\"
18751 if test -n "$value"; then
18752 if test "$value" = yes; then
18753 eval value=\"\$LIB$uppername\"
18754 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
18755 eval value=\"\$LTLIB$uppername\"
18756 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
18765 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18766 if test -n "$acl_shlibext"; then
18767 shrext=".$acl_shlibext" # typically: shrext=.so
18771 if test $use_additional = yes; then
18772 dir="$additional_libdir"
18773 if test -n "$acl_shlibext"; then
18774 if test -f "$dir/$libname$shrext"; then
18776 found_so="$dir/$libname$shrext"
18778 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18779 ver=`(cd "$dir" && \
18780 for f in "$libname$shrext".*; do echo "$f"; done \
18781 | sed -e "s,^$libname$shrext\\\\.,," \
18782 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18783 | sed 1q ) 2>/dev/null`
18784 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18786 found_so="$dir/$libname$shrext.$ver"
18789 eval library_names=\"$acl_library_names_spec\"
18790 for f in $library_names; do
18791 if test -f "$dir/$f"; then
18800 if test "X$found_dir" = "X"; then
18801 if test -f "$dir/$libname.$acl_libext"; then
18803 found_a="$dir/$libname.$acl_libext"
18806 if test "X$found_dir" != "X"; then
18807 if test -f "$dir/$libname.la"; then
18808 found_la="$dir/$libname.la"
18812 if test "X$found_dir" = "X"; then
18813 for x in $LDFLAGS $LTLIBPTH; do
18815 acl_save_prefix="$prefix"
18816 prefix="$acl_final_prefix"
18817 acl_save_exec_prefix="$exec_prefix"
18818 exec_prefix="$acl_final_exec_prefix"
18820 exec_prefix="$acl_save_exec_prefix"
18821 prefix="$acl_save_prefix"
18825 dir=`echo "X$x" | sed -e 's/^X-L//'`
18826 if test -n "$acl_shlibext"; then
18827 if test -f "$dir/$libname$shrext"; then
18829 found_so="$dir/$libname$shrext"
18831 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18832 ver=`(cd "$dir" && \
18833 for f in "$libname$shrext".*; do echo "$f"; done \
18834 | sed -e "s,^$libname$shrext\\\\.,," \
18835 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18836 | sed 1q ) 2>/dev/null`
18837 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18839 found_so="$dir/$libname$shrext.$ver"
18842 eval library_names=\"$acl_library_names_spec\"
18843 for f in $library_names; do
18844 if test -f "$dir/$f"; then
18853 if test "X$found_dir" = "X"; then
18854 if test -f "$dir/$libname.$acl_libext"; then
18856 found_a="$dir/$libname.$acl_libext"
18859 if test "X$found_dir" != "X"; then
18860 if test -f "$dir/$libname.la"; then
18861 found_la="$dir/$libname.la"
18866 if test "X$found_dir" != "X"; then
18871 if test "X$found_dir" != "X"; then
18872 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
18873 if test "X$found_so" != "X"; then
18874 if test "$enable_rpath" = no \
18875 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18876 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18877 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18880 for x in $ltrpathdirs; do
18881 if test "X$x" = "X$found_dir"; then
18886 if test -z "$haveit"; then
18887 ltrpathdirs="$ltrpathdirs $found_dir"
18889 if test "$acl_hardcode_direct" = yes; then
18890 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18892 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18893 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18895 for x in $rpathdirs; do
18896 if test "X$x" = "X$found_dir"; then
18901 if test -z "$haveit"; then
18902 rpathdirs="$rpathdirs $found_dir"
18906 for x in $LDFLAGS $LIBPTH; do
18908 acl_save_prefix="$prefix"
18909 prefix="$acl_final_prefix"
18910 acl_save_exec_prefix="$exec_prefix"
18911 exec_prefix="$acl_final_exec_prefix"
18913 exec_prefix="$acl_save_exec_prefix"
18914 prefix="$acl_save_prefix"
18916 if test "X$x" = "X-L$found_dir"; then
18921 if test -z "$haveit"; then
18922 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
18924 if test "$acl_hardcode_minus_L" != no; then
18925 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18927 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
18933 if test "X$found_a" != "X"; then
18934 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
18936 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
18939 additional_includedir=
18940 case "$found_dir" in
18941 */$acl_libdirstem | */$acl_libdirstem/)
18942 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18943 if test "$name" = 'pth'; then
18944 LIBPTH_PREFIX="$basedir"
18946 additional_includedir="$basedir/include"
18948 */$acl_libdirstem2 | */$acl_libdirstem2/)
18949 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18950 if test "$name" = 'pth'; then
18951 LIBPTH_PREFIX="$basedir"
18953 additional_includedir="$basedir/include"
18956 if test "X$additional_includedir" != "X"; then
18957 if test "X$additional_includedir" != "X/usr/include"; then
18959 if test "X$additional_includedir" = "X/usr/local/include"; then
18960 if test -n "$GCC"; then
18962 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18966 if test -z "$haveit"; then
18967 for x in $CPPFLAGS $INCPTH; do
18969 acl_save_prefix="$prefix"
18970 prefix="$acl_final_prefix"
18971 acl_save_exec_prefix="$exec_prefix"
18972 exec_prefix="$acl_final_exec_prefix"
18974 exec_prefix="$acl_save_exec_prefix"
18975 prefix="$acl_save_prefix"
18977 if test "X$x" = "X-I$additional_includedir"; then
18982 if test -z "$haveit"; then
18983 if test -d "$additional_includedir"; then
18984 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
18990 if test -n "$found_la"; then
18991 save_libdir="$libdir"
18992 case "$found_la" in
18993 */* | *\\*) . "$found_la" ;;
18994 *) . "./$found_la" ;;
18996 libdir="$save_libdir"
18997 for dep in $dependency_libs; do
19000 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19001 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19002 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19004 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19005 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19006 if test -n "$GCC"; then
19008 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19012 if test -z "$haveit"; then
19014 for x in $LDFLAGS $LIBPTH; do
19016 acl_save_prefix="$prefix"
19017 prefix="$acl_final_prefix"
19018 acl_save_exec_prefix="$exec_prefix"
19019 exec_prefix="$acl_final_exec_prefix"
19021 exec_prefix="$acl_save_exec_prefix"
19022 prefix="$acl_save_prefix"
19024 if test "X$x" = "X-L$additional_libdir"; then
19029 if test -z "$haveit"; then
19030 if test -d "$additional_libdir"; then
19031 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
19035 for x in $LDFLAGS $LTLIBPTH; do
19037 acl_save_prefix="$prefix"
19038 prefix="$acl_final_prefix"
19039 acl_save_exec_prefix="$exec_prefix"
19040 exec_prefix="$acl_final_exec_prefix"
19042 exec_prefix="$acl_save_exec_prefix"
19043 prefix="$acl_save_prefix"
19045 if test "X$x" = "X-L$additional_libdir"; then
19050 if test -z "$haveit"; then
19051 if test -d "$additional_libdir"; then
19052 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
19059 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19060 if test "$enable_rpath" != no; then
19062 for x in $rpathdirs; do
19063 if test "X$x" = "X$dir"; then
19068 if test -z "$haveit"; then
19069 rpathdirs="$rpathdirs $dir"
19072 for x in $ltrpathdirs; do
19073 if test "X$x" = "X$dir"; then
19078 if test -z "$haveit"; then
19079 ltrpathdirs="$ltrpathdirs $dir"
19084 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19087 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19090 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
19091 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
19097 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
19098 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
19104 if test "X$rpathdirs" != "X"; then
19105 if test -n "$acl_hardcode_libdir_separator"; then
19107 for found_dir in $rpathdirs; do
19108 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19110 acl_save_libdir="$libdir"
19112 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19113 libdir="$acl_save_libdir"
19114 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
19116 for found_dir in $rpathdirs; do
19117 acl_save_libdir="$libdir"
19118 libdir="$found_dir"
19119 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19120 libdir="$acl_save_libdir"
19121 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
19125 if test "X$ltrpathdirs" != "X"; then
19126 for found_dir in $ltrpathdirs; do
19127 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
19135 ac_cv_libpth_libs="$LIBPTH"
19136 ac_cv_libpth_ltlibs="$LTLIBPTH"
19137 ac_cv_libpth_cppflags="$INCPTH"
19138 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
19142 $as_echo "$ac_cv_libpth_libs" >&6; }
19143 LIBPTH="$ac_cv_libpth_libs"
19144 LTLIBPTH="$ac_cv_libpth_ltlibs"
19145 INCPTH="$ac_cv_libpth_cppflags"
19146 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
19148 for element in $INCPTH; do
19150 for x in $CPPFLAGS; do
19152 acl_save_prefix="$prefix"
19153 prefix="$acl_final_prefix"
19154 acl_save_exec_prefix="$exec_prefix"
19155 exec_prefix="$acl_final_exec_prefix"
19157 exec_prefix="$acl_save_exec_prefix"
19158 prefix="$acl_save_prefix"
19160 if test "X$x" = "X$element"; then
19165 if test -z "$haveit"; then
19166 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19178 gl_save_LIBS="$LIBS"
19179 LIBS="$LIBS $LIBPTH"
19180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19181 /* end confdefs.h. */
19191 if ac_fn_c_try_link "$LINENO"; then :
19194 rm -f core conftest.err conftest.$ac_objext \
19195 conftest$ac_exeext conftest.$ac_ext
19196 LIBS="$gl_save_LIBS"
19197 if test -n "$gl_have_pth"; then
19199 LIBTHREAD="$LIBPTH"
19200 LTLIBTHREAD="$LTLIBPTH"
19201 LIBMULTITHREAD="$LIBTHREAD"
19202 LTLIBMULTITHREAD="$LTLIBTHREAD"
19204 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
19206 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
19207 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
19209 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
19216 CPPFLAGS="$gl_save_CPPFLAGS"
19219 if test -z "$gl_have_pthread"; then
19220 case "$gl_use_threads" in
19221 yes | windows | win32) # The 'win32' is for backward compatibility.
19222 if { case "$host_os" in
19227 gl_threads_api=windows
19229 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
19237 $as_echo_n "checking for multithread API to use... " >&6; }
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
19239 $as_echo "$gl_threads_api" >&6; }
19262 GNULIB_UTIMENSAT=0;
19263 GNULIB_OVERRIDES_STRUCT_STAT=0;
19277 REPLACE_FUTIMENS=0;
19283 REPLACE_UTIMENSAT=0;
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19289 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19290 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
19291 $as_echo_n "(cached) " >&6
19293 rm -f conftest.sym conftest.file
19294 echo >conftest.file
19295 if test "$cross_compiling" = yes; then :
19298 # Guess yes on Linux systems.
19299 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19301 # Guess yes on glibc systems.
19302 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19304 # Guess no on native Windows.
19305 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19307 # If we don't know, assume the worst.
19308 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19313 /* end confdefs.h. */
19314 $ac_includes_default
19319 if (symlink ("conftest.file", "conftest.sym") != 0)
19321 /* Linux will dereference the symlink and fail, as required by
19322 POSIX. That is better in the sense that it means we will not
19323 have to compile and use the lstat wrapper. */
19324 return lstat ("conftest.sym/", &sbuf) == 0;
19330 if ac_fn_c_try_run "$LINENO"; then :
19331 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19333 gl_cv_func_lstat_dereferences_slashed_symlink=no
19335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19336 conftest.$ac_objext conftest.beam conftest.$ac_ext
19339 rm -f conftest.sym conftest.file
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19343 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19344 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19347 cat >>confdefs.h <<_ACEOF
19348 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19357 GNULIB_CALLOC_POSIX=0;
19358 GNULIB_CANONICALIZE_FILE_NAME=0;
19359 GNULIB_GETLOADAVG=0;
19360 GNULIB_GETSUBOPT=0;
19362 GNULIB_MALLOC_POSIX=0;
19366 GNULIB_MKOSTEMPS=0;
19369 GNULIB_POSIX_OPENPT=0;
19371 GNULIB_PTSNAME_R=0;
19376 GNULIB_REALLOCARRAY=0;
19377 GNULIB_REALLOC_POSIX=0;
19380 GNULIB_SECURE_GETENV=0;
19385 GNULIB_SYSTEM_POSIX=0;
19391 HAVE_CANONICALIZE_FILE_NAME=1;
19392 HAVE_DECL_GETLOADAVG=1;
19395 HAVE_DECL_INITSTATE=1;
19401 HAVE_POSIX_OPENPT=1;
19408 HAVE_REALLOCARRAY=1;
19411 HAVE_SECURE_GETENV=1;
19413 HAVE_DECL_SETENV=1;
19414 HAVE_DECL_SETSTATE=1;
19418 HAVE_STRUCT_RANDOM_DATA=1;
19419 HAVE_SYS_LOADAVG_H=0;
19421 HAVE_DECL_UNSETENV=1;
19423 REPLACE_CANONICALIZE_FILE_NAME=0;
19428 REPLACE_PTSNAME_R=0;
19431 REPLACE_RANDOM_R=0;
19433 REPLACE_REALPATH=0;
19436 REPLACE_UNSETENV=0;
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
19441 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
19442 if ${gl_cv_func_malloc_posix+:} false; then :
19443 $as_echo_n "(cached) " >&6
19446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19447 /* end confdefs.h. */
19452 #if defined _WIN32 && ! defined __CYGWIN__
19460 if ac_fn_c_try_compile "$LINENO"; then :
19461 gl_cv_func_malloc_posix=yes
19463 gl_cv_func_malloc_posix=no
19465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
19469 $as_echo "$gl_cv_func_malloc_posix" >&6; }
19473 for ac_header in stdlib.h
19475 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
19476 if test "x$ac_cv_header_stdlib_h" = xyes; then :
19477 cat >>confdefs.h <<_ACEOF
19478 #define HAVE_STDLIB_H 1
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
19486 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
19487 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
19488 $as_echo_n "(cached) " >&6
19490 if test "$cross_compiling" = yes; then :
19492 # Guess yes on platforms where we know the result.
19493 *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \
19494 | hpux* | solaris* | cygwin* | mingw*)
19495 ac_cv_func_malloc_0_nonnull=yes ;;
19496 # If we don't know, assume the worst.
19497 *) ac_cv_func_malloc_0_nonnull=no ;;
19501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502 /* end confdefs.h. */
19503 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
19504 # include <stdlib.h>
19512 char *p = malloc (0);
19521 if ac_fn_c_try_run "$LINENO"; then :
19522 ac_cv_func_malloc_0_nonnull=yes
19524 ac_cv_func_malloc_0_nonnull=no
19526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19527 conftest.$ac_objext conftest.beam conftest.$ac_ext
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
19533 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
19534 if test $ac_cv_func_malloc_0_nonnull = yes; then :
19535 gl_cv_func_malloc_0_nonnull=1
19537 gl_cv_func_malloc_0_nonnull=0
19541 cat >>confdefs.h <<_ACEOF
19542 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19548 $as_echo_n "checking for unsigned long long int... " >&6; }
19549 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
19550 $as_echo_n "(cached) " >&6
19552 ac_cv_type_unsigned_long_long_int=yes
19553 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19555 /* end confdefs.h. */
19557 /* For now, do not test the preprocessor; as of 2007 there are too many
19558 implementations with broken preprocessors. Perhaps this can
19559 be revisited in 2012. In the meantime, code should not expect
19560 #if to work with literals wider than 32 bits. */
19561 /* Test literals. */
19562 long long int ll = 9223372036854775807ll;
19563 long long int nll = -9223372036854775807LL;
19564 unsigned long long int ull = 18446744073709551615ULL;
19565 /* Test constant expressions. */
19566 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19568 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19574 /* Test availability of runtime routines for shift and division. */
19575 long long int llmax = 9223372036854775807ll;
19576 unsigned long long int ullmax = 18446744073709551615ull;
19577 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19578 | (llmax / ll) | (llmax % ll)
19579 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19580 | (ullmax / ull) | (ullmax % ull));
19586 if ac_fn_c_try_link "$LINENO"; then :
19589 ac_cv_type_unsigned_long_long_int=no
19591 rm -f core conftest.err conftest.$ac_objext \
19592 conftest$ac_exeext conftest.$ac_ext
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19596 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19597 if test $ac_cv_type_unsigned_long_long_int = yes; then
19599 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19606 $as_echo_n "checking for long long int... " >&6; }
19607 if ${ac_cv_type_long_long_int+:} false; then :
19608 $as_echo_n "(cached) " >&6
19610 ac_cv_type_long_long_int=yes
19611 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19612 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
19613 if test $ac_cv_type_long_long_int = yes; then
19614 if test "$cross_compiling" = yes; then :
19617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19618 /* end confdefs.h. */
19619 #include <limits.h>
19622 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19623 # define LLONG_MAX (HALF - 1 + HALF)
19628 long long int n = 1;
19632 long long int m = n << i;
19635 if (LLONG_MAX / 2 < m)
19643 if ac_fn_c_try_run "$LINENO"; then :
19646 ac_cv_type_long_long_int=no
19648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19649 conftest.$ac_objext conftest.beam conftest.$ac_ext
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19656 $as_echo "$ac_cv_type_long_long_int" >&6; }
19657 if test $ac_cv_type_long_long_int = yes; then
19659 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19668 GNULIB_EXPLICIT_BZERO=0;
19675 GNULIB_RAWMEMCHR=0;
19678 GNULIB_STRCHRNUL=0;
19686 GNULIB_STRCASESTR=0;
19693 GNULIB_MBSCASECMP=0;
19694 GNULIB_MBSNCASECMP=0;
19695 GNULIB_MBSPCASECMP=0;
19696 GNULIB_MBSCASESTR=0;
19703 GNULIB_STRERROR_R=0;
19704 GNULIB_STRSIGNAL=0;
19705 GNULIB_STRVERSCMP=0;
19707 HAVE_EXPLICIT_BZERO=1;
19711 HAVE_DECL_MEMMEM=1;
19713 HAVE_DECL_MEMRCHR=1;
19718 HAVE_DECL_STRDUP=1;
19719 HAVE_DECL_STRNDUP=1;
19720 HAVE_DECL_STRNLEN=1;
19724 HAVE_DECL_STRTOK_R=1;
19725 HAVE_DECL_STRERROR_R=1;
19726 HAVE_DECL_STRSIGNAL=1;
19731 REPLACE_STRCHRNUL=0;
19737 REPLACE_STRCASESTR=0;
19738 REPLACE_STRTOK_R=0;
19739 REPLACE_STRERROR=0;
19740 REPLACE_STRERROR_R=0;
19741 REPLACE_STRSIGNAL=0;
19742 UNDEFINE_STRTOK_R=0;
19749 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
19750 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
19751 # irrelevant for anonymous mappings.
19752 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
19753 if test "x$ac_cv_func_mmap" = xyes; then :
19760 # Try to allow MAP_ANONYMOUS.
19761 gl_have_mmap_anonymous=no
19762 if test $gl_have_mmap = yes; then
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
19764 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
19765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19766 /* end confdefs.h. */
19768 #include <sys/mman.h>
19769 #ifdef MAP_ANONYMOUS
19770 I cannot identify this map
19774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19775 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
19776 gl_have_mmap_anonymous=yes
19780 if test $gl_have_mmap_anonymous != yes; then
19781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19782 /* end confdefs.h. */
19784 #include <sys/mman.h>
19786 I cannot identify this map
19790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19791 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
19793 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
19795 gl_have_mmap_anonymous=yes
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
19801 $as_echo "$gl_have_mmap_anonymous" >&6; }
19802 if test $gl_have_mmap_anonymous = yes; then
19804 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
19814 if test $HAVE_MEMCHR = 1; then
19815 # Detect platform-specific bugs in some versions of glibc:
19816 # memchr should not dereference anything with length 0
19817 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
19818 # memchr should not dereference overestimated length after a match
19819 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
19820 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
19821 # Assume that memchr works on platforms that lack mprotect.
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
19823 $as_echo_n "checking whether memchr works... " >&6; }
19824 if ${gl_cv_func_memchr_works+:} false; then :
19825 $as_echo_n "(cached) " >&6
19827 if test "$cross_compiling" = yes; then :
19829 # Guess yes on native Windows.
19830 mingw*) gl_cv_func_memchr_works="guessing yes" ;;
19831 # Be pessimistic for now.
19832 *) gl_cv_func_memchr_works="guessing no" ;;
19836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19837 /* end confdefs.h. */
19839 #include <string.h>
19840 #if HAVE_SYS_MMAN_H
19841 # include <fcntl.h>
19842 # include <unistd.h>
19843 # include <sys/types.h>
19844 # include <sys/mman.h>
19846 # define MAP_FILE 0
19855 char *fence = NULL;
19856 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
19857 # if HAVE_MAP_ANONYMOUS
19858 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
19860 # else /* !HAVE_MAP_ANONYMOUS */
19861 const int flags = MAP_FILE | MAP_PRIVATE;
19862 int fd = open ("/dev/zero", O_RDONLY, 0666);
19866 int pagesize = getpagesize ();
19868 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
19870 if (two_pages != (char *)(-1)
19871 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
19872 fence = two_pages + pagesize;
19877 if (memchr (fence, 0, 0))
19879 strcpy (fence - 9, "12345678");
19880 if (memchr (fence - 9, 0, 79) != fence - 1)
19882 if (memchr (fence - 1, 0, 3) != fence - 1)
19891 if ac_fn_c_try_run "$LINENO"; then :
19892 gl_cv_func_memchr_works=yes
19894 gl_cv_func_memchr_works=no
19896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19897 conftest.$ac_objext conftest.beam conftest.$ac_ext
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
19903 $as_echo "$gl_cv_func_memchr_works" >&6; }
19904 case "$gl_cv_func_memchr_works" in
19906 *) REPLACE_MEMCHR=1 ;;
19914 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
19915 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
19917 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
19920 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
19928 gl_cv_c_multiarch=no
19929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19930 /* end confdefs.h. */
19931 #ifndef __APPLE_CC__
19932 not a universal capable compiler
19937 if ac_fn_c_try_compile "$LINENO"; then :
19941 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19942 if test -n "$prev"; then
19944 i?86 | x86_64 | ppc | ppc64)
19945 if test -z "$arch" || test "$arch" = "$word"; then
19948 gl_cv_c_multiarch=yes
19954 if test "x$word" = "x-arch"; then
19961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19962 if test $gl_cv_c_multiarch = yes; then
19963 APPLE_UNIVERSAL_BUILD=1
19965 APPLE_UNIVERSAL_BUILD=0
19972 GNULIB_PTHREAD_SIGMASK=0;
19974 GNULIB_SIGNAL_H_SIGPIPE=0;
19975 GNULIB_SIGPROCMASK=0;
19976 GNULIB_SIGACTION=0;
19977 HAVE_POSIX_SIGNALBLOCKING=1;
19978 HAVE_PTHREAD_SIGMASK=1;
19983 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19985 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19987 HAVE_SIGHANDLER_T=1;
19988 REPLACE_PTHREAD_SIGMASK=0;
19992 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19993 #include <signal.h>
19994 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19995 #include <sys/types.h>
19998 if test "x$ac_cv_type_sigset_t" = xyes; then :
20000 cat >>confdefs.h <<_ACEOF
20001 #define HAVE_SIGSET_T 1
20004 gl_cv_type_sigset_t=yes
20006 gl_cv_type_sigset_t=no
20009 if test $gl_cv_type_sigset_t != yes; then
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20015 $as_echo_n "checking for ssize_t... " >&6; }
20016 if ${gt_cv_ssize_t+:} false; then :
20017 $as_echo_n "(cached) " >&6
20019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20020 /* end confdefs.h. */
20021 #include <sys/types.h>
20025 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20031 if ac_fn_c_try_compile "$LINENO"; then :
20036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20039 $as_echo "$gt_cv_ssize_t" >&6; }
20040 if test $gt_cv_ssize_t = no; then
20042 $as_echo "#define ssize_t int" >>confdefs.h
20046 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
20047 if test "x$ac_cv_have_decl_setenv" = xyes; then :
20053 cat >>confdefs.h <<_ACEOF
20054 #define HAVE_DECL_SETENV $ac_have_decl
20062 if test $ac_cv_have_decl_setenv = no; then
20070 for ac_header in search.h
20072 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
20073 if test "x$ac_cv_header_search_h" = xyes; then :
20074 cat >>confdefs.h <<_ACEOF
20075 #define HAVE_SEARCH_H 1
20082 for ac_func in tsearch
20084 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
20085 if test "x$ac_cv_func_tsearch" = xyes; then :
20086 cat >>confdefs.h <<_ACEOF
20087 #define HAVE_TSEARCH 1
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20098 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20099 if ${ac_cv_type_uid_t+:} false; then :
20100 $as_echo_n "(cached) " >&6
20102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20103 /* end confdefs.h. */
20104 #include <sys/types.h>
20107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20108 $EGREP "uid_t" >/dev/null 2>&1; then :
20109 ac_cv_type_uid_t=yes
20111 ac_cv_type_uid_t=no
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20117 $as_echo "$ac_cv_type_uid_t" >&6; }
20118 if test $ac_cv_type_uid_t = no; then
20120 $as_echo "#define uid_t int" >>confdefs.h
20123 $as_echo "#define gid_t int" >>confdefs.h
20141 GNULIB_FPRINTF_POSIX=0;
20157 GNULIB_OBSTACK_PRINTF=0;
20158 GNULIB_OBSTACK_PRINTF_POSIX=0;
20163 GNULIB_PRINTF_POSIX=0;
20172 GNULIB_SPRINTF_POSIX=0;
20173 GNULIB_STDIO_H_NONBLOCKING=0;
20174 GNULIB_STDIO_H_SIGPIPE=0;
20176 GNULIB_VASPRINTF=0;
20181 GNULIB_VFPRINTF_POSIX=0;
20183 GNULIB_VPRINTF_POSIX=0;
20184 GNULIB_VSNPRINTF=0;
20185 GNULIB_VSPRINTF_POSIX=0;
20186 HAVE_DECL_FPURGE=1;
20187 HAVE_DECL_FSEEKO=1;
20188 HAVE_DECL_FTELLO=1;
20189 HAVE_DECL_GETDELIM=1;
20190 HAVE_DECL_GETLINE=1;
20191 HAVE_DECL_OBSTACK_PRINTF=1;
20192 HAVE_DECL_SNPRINTF=1;
20193 HAVE_DECL_VSNPRINTF=1;
20214 REPLACE_GETDELIM=0;
20216 REPLACE_OBSTACK_PRINTF=0;
20222 REPLACE_RENAMEAT=0;
20223 REPLACE_SNPRINTF=0;
20225 REPLACE_STDIO_READ_FUNCS=0;
20226 REPLACE_STDIO_WRITE_FUNCS=0;
20228 REPLACE_VASPRINTF=0;
20229 REPLACE_VDPRINTF=0;
20230 REPLACE_VFPRINTF=0;
20232 REPLACE_VSNPRINTF=0;
20233 REPLACE_VSPRINTF=0;
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
20244 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
20245 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
20246 $as_echo_n "(cached) " >&6
20249 if test "$cross_compiling" = yes; then :
20251 # Guess yes on glibc systems.
20252 *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20253 # Guess yes on FreeBSD >= 5.
20254 freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";;
20255 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20256 # Guess yes on Mac OS X >= 10.3.
20257 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
20258 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20259 # Guess yes on OpenBSD >= 3.9.
20260 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
20261 gl_cv_func_snprintf_retval_c99="guessing no";;
20262 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20263 # Guess yes on Solaris >= 2.10.
20264 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
20265 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
20266 # Guess yes on AIX >= 4.
20267 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
20268 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20269 # Guess yes on NetBSD >= 3.
20270 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
20271 gl_cv_func_snprintf_retval_c99="guessing no";;
20272 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20273 # Guess yes on BeOS.
20274 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20275 # Guess yes on Android.
20276 linux*-android*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20277 # Guess yes on MSVC, no on mingw.
20278 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20279 /* end confdefs.h. */
20286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20287 $EGREP "Known" >/dev/null 2>&1; then :
20288 gl_cv_func_snprintf_retval_c99="guessing yes"
20290 gl_cv_func_snprintf_retval_c99="guessing no"
20295 # If we don't know, assume the worst.
20296 *) gl_cv_func_snprintf_retval_c99="guessing no";;
20300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20301 /* end confdefs.h. */
20304 #include <string.h>
20306 # define my_snprintf snprintf
20308 # include <stdarg.h>
20309 static int my_snprintf (char *buf, int size, const char *format, ...)
20313 va_start (args, format);
20314 ret = vsnprintf (buf, size, format, args);
20319 static char buf[100];
20322 strcpy (buf, "ABCDEF");
20323 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
20325 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
20327 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
20332 if ac_fn_c_try_run "$LINENO"; then :
20333 gl_cv_func_snprintf_retval_c99=yes
20335 gl_cv_func_snprintf_retval_c99=no
20337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20338 conftest.$ac_objext conftest.beam conftest.$ac_ext
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
20344 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
20346 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
20347 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
20353 cat >>confdefs.h <<_ACEOF
20354 #define HAVE_DECL_SNPRINTF $ac_have_decl
20357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20358 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20359 if ${ac_cv_header_stat_broken+:} false; then :
20360 $as_echo_n "(cached) " >&6
20362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20363 /* end confdefs.h. */
20364 #include <sys/types.h>
20365 #include <sys/stat.h>
20367 #if defined S_ISBLK && defined S_IFDIR
20368 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20371 #if defined S_ISBLK && defined S_IFCHR
20372 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20375 #if defined S_ISLNK && defined S_IFREG
20376 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20379 #if defined S_ISSOCK && defined S_IFREG
20380 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20384 if ac_fn_c_try_compile "$LINENO"; then :
20385 ac_cv_header_stat_broken=no
20387 ac_cv_header_stat_broken=yes
20389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20392 $as_echo "$ac_cv_header_stat_broken" >&6; }
20393 if test $ac_cv_header_stat_broken = yes; then
20395 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20415 if test $gl_cv_have_include_next = yes; then
20416 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20419 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20420 if ${gl_cv_next_sys_stat_h+:} false; then :
20421 $as_echo_n "(cached) " >&6
20424 if test $ac_cv_header_sys_stat_h = yes; then
20429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20430 /* end confdefs.h. */
20431 #include <sys/stat.h>
20434 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20435 *) gl_absname_cpp="$ac_cpp" ;;
20440 gl_dirsep_regex='[/\\]'
20443 gl_dirsep_regex='\/'
20446 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20447 gl_header_literal_regex=`echo 'sys/stat.h' \
20448 | sed -e "$gl_make_literal_regex_sed"`
20449 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20450 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20456 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20457 sed -n "$gl_absolute_header_sed"`
20459 gl_header=$gl_cv_absolute_sys_stat_h
20460 gl_cv_next_sys_stat_h='"'$gl_header'"'
20462 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20468 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20470 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20472 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20473 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20474 gl_next_as_first_directive='<'sys/stat.h'>'
20476 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20477 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20479 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20488 WINDOWS_STAT_TIMESPEC=0
20497 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20498 #include <sys/stat.h>
20500 if test "x$ac_cv_type_nlink_t" = xyes; then :
20504 $as_echo "#define nlink_t int" >>confdefs.h
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20514 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20515 if ${ac_cv_header_stdbool_h+:} false; then :
20516 $as_echo_n "(cached) " >&6
20518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20519 /* end confdefs.h. */
20521 #include <stdbool.h>
20526 typedef _Bool Bool;
20528 "error: bool is not defined"
20531 "error: false is not defined"
20534 "error: false is not 0"
20537 "error: true is not defined"
20540 "error: true is not 1"
20544 #ifndef __bool_true_false_are_defined
20545 "error: __bool_true_false_are_defined is not defined"
20548 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
20550 char a[true == 1 ? 1 : -1];
20551 char b[false == 0 ? 1 : -1];
20552 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20553 char d[(bool) 0.5 == true ? 1 : -1];
20554 /* See body of main program for 'e'. */
20555 char f[(Bool) 0.0 == false ? 1 : -1];
20557 char h[sizeof (Bool)];
20558 char i[sizeof s.t];
20559 enum { j = false, k = true, l = false * true, m = true * 256 };
20560 /* The following fails for
20561 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20563 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20564 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20565 /* Catch a bug in an HP-UX C compiler. See
20566 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20567 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
20578 *pq |= q; *pq |= ! q;
20579 *qq |= q; *qq |= ! q;
20580 /* Refer to every declared value, to avoid compiler optimizations. */
20581 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20582 + !m + !n + !o + !p + !q + !pq + !qq);
20588 if ac_fn_c_try_compile "$LINENO"; then :
20589 ac_cv_header_stdbool_h=yes
20591 ac_cv_header_stdbool_h=no
20593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20596 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20597 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20598 if test "x$ac_cv_type__Bool" = xyes; then :
20600 cat >>confdefs.h <<_ACEOF
20601 #define HAVE__BOOL 1
20610 HAVE_MAX_ALIGN_T=1;
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
20615 $as_echo_n "checking for wchar_t... " >&6; }
20616 if ${gt_cv_c_wchar_t+:} false; then :
20617 $as_echo_n "(cached) " >&6
20619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20620 /* end confdefs.h. */
20621 #include <stddef.h>
20622 wchar_t foo = (wchar_t)'\0';
20631 if ac_fn_c_try_compile "$LINENO"; then :
20632 gt_cv_c_wchar_t=yes
20636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
20639 $as_echo "$gt_cv_c_wchar_t" >&6; }
20640 if test $gt_cv_c_wchar_t = yes; then
20642 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
20648 $as_echo_n "checking for wint_t... " >&6; }
20649 if ${gt_cv_c_wint_t+:} false; then :
20650 $as_echo_n "(cached) " >&6
20652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20653 /* end confdefs.h. */
20655 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20657 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
20658 before <wchar.h>. */
20659 #include <stddef.h>
20663 wint_t foo = (wchar_t)'\0';
20672 if ac_fn_c_try_compile "$LINENO"; then :
20677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20680 $as_echo "$gt_cv_c_wint_t" >&6; }
20681 if test $gt_cv_c_wint_t = yes; then
20683 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
20687 $as_echo_n "checking whether wint_t is too small... " >&6; }
20688 if ${gl_cv_type_wint_t_too_small+:} false; then :
20689 $as_echo_n "(cached) " >&6
20691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20692 /* end confdefs.h. */
20694 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20696 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20697 included before <wchar.h>. */
20698 #if !(defined __GLIBC__ && !defined __UCLIBC__)
20699 # include <stddef.h>
20700 # include <stdio.h>
20704 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
20714 if ac_fn_c_try_compile "$LINENO"; then :
20715 gl_cv_type_wint_t_too_small=no
20717 gl_cv_type_wint_t_too_small=yes
20719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
20722 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
20723 if test $gl_cv_type_wint_t_too_small = yes; then
20724 GNULIB_OVERRIDES_WINT_T=1
20726 GNULIB_OVERRIDES_WINT_T=0
20729 GNULIB_OVERRIDES_WINT_T=0
20743 if test $ac_cv_type_long_long_int = yes; then
20744 HAVE_LONG_LONG_INT=1
20746 HAVE_LONG_LONG_INT=0
20750 if test $ac_cv_type_unsigned_long_long_int = yes; then
20751 HAVE_UNSIGNED_LONG_LONG_INT=1
20753 HAVE_UNSIGNED_LONG_LONG_INT=0
20758 if test $ac_cv_header_wchar_h = yes; then
20765 if test $ac_cv_header_inttypes_h = yes; then
20772 if test $ac_cv_header_sys_types_h = yes; then
20788 if test $gl_cv_have_include_next = yes; then
20789 gl_cv_next_stdint_h='<'stdint.h'>'
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20792 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20793 if ${gl_cv_next_stdint_h+:} false; then :
20794 $as_echo_n "(cached) " >&6
20797 if test $ac_cv_header_stdint_h = yes; then
20802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20803 /* end confdefs.h. */
20804 #include <stdint.h>
20807 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20808 *) gl_absname_cpp="$ac_cpp" ;;
20813 gl_dirsep_regex='[/\\]'
20816 gl_dirsep_regex='\/'
20819 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20820 gl_header_literal_regex=`echo 'stdint.h' \
20821 | sed -e "$gl_make_literal_regex_sed"`
20822 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20823 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20829 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20830 sed -n "$gl_absolute_header_sed"`
20832 gl_header=$gl_cv_absolute_stdint_h
20833 gl_cv_next_stdint_h='"'$gl_header'"'
20835 gl_cv_next_stdint_h='<'stdint.h'>'
20840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
20841 $as_echo "$gl_cv_next_stdint_h" >&6; }
20843 NEXT_STDINT_H=$gl_cv_next_stdint_h
20845 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20846 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20847 gl_next_as_first_directive='<'stdint.h'>'
20849 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20850 gl_next_as_first_directive=$gl_cv_next_stdint_h
20852 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
20857 if test $ac_cv_header_stdint_h = yes; then
20864 if test $ac_cv_header_stdint_h = yes; then
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
20866 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
20867 if ${gl_cv_header_working_stdint_h+:} false; then :
20868 $as_echo_n "(cached) " >&6
20870 gl_cv_header_working_stdint_h=no
20871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20872 /* end confdefs.h. */
20875 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20876 #define __STDC_CONSTANT_MACROS 1
20877 #define __STDC_LIMIT_MACROS 1
20878 #include <stdint.h>
20879 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
20880 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
20881 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20885 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20886 included before <wchar.h>. */
20887 #include <stddef.h>
20888 #include <signal.h>
20890 # include <stdio.h>
20892 # include <wchar.h>
20897 int8_t a1 = INT8_MAX;
20898 int8_t a1min = INT8_MIN;
20901 int16_t a2 = INT16_MAX;
20902 int16_t a2min = INT16_MIN;
20905 int32_t a3 = INT32_MAX;
20906 int32_t a3min = INT32_MIN;
20909 int64_t a4 = INT64_MAX;
20910 int64_t a4min = INT64_MIN;
20913 uint8_t b1 = UINT8_MAX;
20915 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20918 uint16_t b2 = UINT16_MAX;
20921 uint32_t b3 = UINT32_MAX;
20924 uint64_t b4 = UINT64_MAX;
20926 int_least8_t c1 = INT8_C (0x7f);
20927 int_least8_t c1max = INT_LEAST8_MAX;
20928 int_least8_t c1min = INT_LEAST8_MIN;
20929 int_least16_t c2 = INT16_C (0x7fff);
20930 int_least16_t c2max = INT_LEAST16_MAX;
20931 int_least16_t c2min = INT_LEAST16_MIN;
20932 int_least32_t c3 = INT32_C (0x7fffffff);
20933 int_least32_t c3max = INT_LEAST32_MAX;
20934 int_least32_t c3min = INT_LEAST32_MIN;
20935 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20936 int_least64_t c4max = INT_LEAST64_MAX;
20937 int_least64_t c4min = INT_LEAST64_MIN;
20938 uint_least8_t d1 = UINT8_C (0xff);
20939 uint_least8_t d1max = UINT_LEAST8_MAX;
20940 uint_least16_t d2 = UINT16_C (0xffff);
20941 uint_least16_t d2max = UINT_LEAST16_MAX;
20942 uint_least32_t d3 = UINT32_C (0xffffffff);
20943 uint_least32_t d3max = UINT_LEAST32_MAX;
20944 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20945 uint_least64_t d4max = UINT_LEAST64_MAX;
20946 int_fast8_t e1 = INT_FAST8_MAX;
20947 int_fast8_t e1min = INT_FAST8_MIN;
20948 int_fast16_t e2 = INT_FAST16_MAX;
20949 int_fast16_t e2min = INT_FAST16_MIN;
20950 int_fast32_t e3 = INT_FAST32_MAX;
20951 int_fast32_t e3min = INT_FAST32_MIN;
20952 int_fast64_t e4 = INT_FAST64_MAX;
20953 int_fast64_t e4min = INT_FAST64_MIN;
20954 uint_fast8_t f1 = UINT_FAST8_MAX;
20955 uint_fast16_t f2 = UINT_FAST16_MAX;
20956 uint_fast32_t f3 = UINT_FAST32_MAX;
20957 uint_fast64_t f4 = UINT_FAST64_MAX;
20959 intptr_t g = INTPTR_MAX;
20960 intptr_t gmin = INTPTR_MIN;
20963 uintptr_t h = UINTPTR_MAX;
20965 intmax_t i = INTMAX_MAX;
20966 uintmax_t j = UINTMAX_MAX;
20968 /* Check that SIZE_MAX has the correct type, if possible. */
20969 #if 201112 <= __STDC_VERSION__
20970 int k = _Generic (SIZE_MAX, size_t: 0);
20971 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
20972 || (0x5110 <= __SUNPRO_C && !__STDC__))
20974 extern __typeof__ (SIZE_MAX) k;
20977 #include <limits.h> /* for CHAR_BIT */
20978 #define TYPE_MINIMUM(t) \
20979 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20980 #define TYPE_MAXIMUM(t) \
20981 ((t) ((t) 0 < (t) -1 \
20983 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20986 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20987 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20989 /* Detect bug in FreeBSD 6.0 / ia64. */
20990 int check_SIG_ATOMIC:
20991 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20992 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20994 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20996 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20997 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20999 /* Detect bug in mingw. */
21001 WINT_MIN == TYPE_MINIMUM (wint_t)
21002 && WINT_MAX == TYPE_MAXIMUM (wint_t)
21005 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
21007 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21008 int check_UINT16_C:
21009 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21011 /* Detect bugs in OpenBSD 3.9 stdint.h. */
21013 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21016 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21019 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21022 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21024 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21025 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21026 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21027 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21028 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21029 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21030 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21031 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21032 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21033 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21034 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21045 if ac_fn_c_try_compile "$LINENO"; then :
21046 if test "$cross_compiling" = yes; then :
21048 # Guess yes on native Windows.
21049 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
21050 # In general, assume it works.
21051 *) gl_cv_header_working_stdint_h="guessing yes" ;;
21055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21056 /* end confdefs.h. */
21059 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21060 #define __STDC_CONSTANT_MACROS 1
21061 #define __STDC_LIMIT_MACROS 1
21062 #include <stdint.h>
21065 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21066 included before <wchar.h>. */
21067 #include <stddef.h>
21068 #include <signal.h>
21070 # include <stdio.h>
21072 # include <wchar.h>
21077 #include <string.h>
21078 #define MVAL(macro) MVAL1(macro)
21079 #define MVAL1(expression) #expression
21080 static const char *macro_values[] =
21114 for (mv = macro_values; *mv != NULL; mv++)
21116 const char *value = *mv;
21117 /* Test whether it looks like a cast expression. */
21118 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
21119 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
21120 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
21121 || strncmp (value, "((int)"/*)*/, 6) == 0
21122 || strncmp (value, "((signed short)"/*)*/, 15) == 0
21123 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
21124 return mv - macro_values + 1;
21132 if ac_fn_c_try_run "$LINENO"; then :
21133 gl_cv_header_working_stdint_h=yes
21135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21136 conftest.$ac_objext conftest.beam conftest.$ac_ext
21141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
21145 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
21148 HAVE_C99_STDINT_H=0
21149 HAVE_SYS_BITYPES_H=0
21150 HAVE_SYS_INTTYPES_H=0
21152 case "$gl_cv_header_working_stdint_h" in
21154 HAVE_C99_STDINT_H=1
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
21156 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
21157 if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
21158 $as_echo_n "(cached) " >&6
21160 gl_cv_header_stdint_predates_cxx11_h=yes
21161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21162 /* end confdefs.h. */
21165 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21166 #include <stdint.h>
21169 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21170 included before <wchar.h>. */
21171 #include <stddef.h>
21172 #include <signal.h>
21174 # include <stdio.h>
21176 # include <wchar.h>
21180 intmax_t im = INTMAX_MAX;
21181 int32_t i32 = INT32_C (0x7fffffff);
21191 if ac_fn_c_try_compile "$LINENO"; then :
21192 gl_cv_header_stdint_predates_cxx11_h=no
21194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
21197 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
21199 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
21201 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
21204 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
21208 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
21209 if ${gl_cv_header_stdint_width+:} false; then :
21210 $as_echo_n "(cached) " >&6
21212 gl_cv_header_stdint_width=no
21213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21214 /* end confdefs.h. */
21216 /* Work if build is not clean. */
21217 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
21218 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
21219 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
21221 #include <stdint.h>
21223 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21224 included before <wchar.h>. */
21225 #include <stddef.h>
21226 #include <signal.h>
21228 # include <stdio.h>
21230 # include <wchar.h>
21233 int iw = UINTMAX_WIDTH;
21243 if ac_fn_c_try_compile "$LINENO"; then :
21244 gl_cv_header_stdint_width=yes
21246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
21249 $as_echo "$gl_cv_header_stdint_width" >&6; }
21250 if test "$gl_cv_header_stdint_width" = yes; then
21255 for ac_header in sys/inttypes.h sys/bitypes.h
21257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21258 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21259 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21260 cat >>confdefs.h <<_ACEOF
21261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21268 if test $ac_cv_header_sys_inttypes_h = yes; then
21269 HAVE_SYS_INTTYPES_H=1
21271 if test $ac_cv_header_sys_bitypes_h = yes; then
21272 HAVE_SYS_BITYPES_H=1
21276 if test $APPLE_UNIVERSAL_BUILD = 0; then
21279 for gltype in ptrdiff_t size_t ; do
21280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21281 $as_echo_n "checking for bit size of $gltype... " >&6; }
21282 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21283 $as_echo_n "(cached) " >&6
21285 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21286 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21287 included before <wchar.h>. */
21288 #include <stddef.h>
21289 #include <signal.h>
21291 # include <stdio.h>
21293 # include <wchar.h>
21296 #include <limits.h>"; then :
21302 eval gl_cv_bitsizeof_${gltype}=\$result
21305 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21307 $as_echo "$ac_res" >&6; }
21308 eval result=\$gl_cv_bitsizeof_${gltype}
21309 if test $result = unknown; then
21312 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21313 cat >>confdefs.h <<_ACEOF
21314 #define BITSIZEOF_${GLTYPE} $result
21317 eval BITSIZEOF_${GLTYPE}=\$result
21324 for gltype in sig_atomic_t wchar_t wint_t ; do
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21326 $as_echo_n "checking for bit size of $gltype... " >&6; }
21327 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21328 $as_echo_n "(cached) " >&6
21330 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21331 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21332 included before <wchar.h>. */
21333 #include <stddef.h>
21334 #include <signal.h>
21336 # include <stdio.h>
21338 # include <wchar.h>
21341 #include <limits.h>"; then :
21347 eval gl_cv_bitsizeof_${gltype}=\$result
21350 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21352 $as_echo "$ac_res" >&6; }
21353 eval result=\$gl_cv_bitsizeof_${gltype}
21354 if test $result = unknown; then
21357 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21358 cat >>confdefs.h <<_ACEOF
21359 #define BITSIZEOF_${GLTYPE} $result
21362 eval BITSIZEOF_${GLTYPE}=\$result
21368 for gltype in sig_atomic_t wchar_t wint_t ; do
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
21370 $as_echo_n "checking whether $gltype is signed... " >&6; }
21371 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
21372 $as_echo_n "(cached) " >&6
21374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21375 /* end confdefs.h. */
21377 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21378 included before <wchar.h>. */
21379 #include <stddef.h>
21380 #include <signal.h>
21382 # include <stdio.h>
21384 # include <wchar.h>
21387 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
21396 if ac_fn_c_try_compile "$LINENO"; then :
21401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21402 eval gl_cv_type_${gltype}_signed=\$result
21405 eval ac_res=\$gl_cv_type_${gltype}_signed
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21407 $as_echo "$ac_res" >&6; }
21408 eval result=\$gl_cv_type_${gltype}_signed
21409 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21410 if test "$result" = yes; then
21411 cat >>confdefs.h <<_ACEOF
21412 #define HAVE_SIGNED_${GLTYPE} 1
21415 eval HAVE_SIGNED_${GLTYPE}=1
21417 eval HAVE_SIGNED_${GLTYPE}=0
21422 gl_cv_type_ptrdiff_t_signed=yes
21423 gl_cv_type_size_t_signed=no
21424 if test $APPLE_UNIVERSAL_BUILD = 0; then
21427 for gltype in ptrdiff_t size_t ; do
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21429 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21430 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21431 $as_echo_n "(cached) " >&6
21433 eval gl_cv_type_${gltype}_suffix=no
21434 eval result=\$gl_cv_type_${gltype}_signed
21435 if test "$result" = yes; then
21440 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21442 '') gltype1='int';;
21443 l) gltype1='long int';;
21444 ll) gltype1='long long int';;
21445 i64) gltype1='__int64';;
21446 u) gltype1='unsigned int';;
21447 ul) gltype1='unsigned long int';;
21448 ull) gltype1='unsigned long long int';;
21449 ui64)gltype1='unsigned __int64';;
21451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21452 /* end confdefs.h. */
21454 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21455 included before <wchar.h>. */
21456 #include <stddef.h>
21457 #include <signal.h>
21459 # include <stdio.h>
21461 # include <wchar.h>
21464 extern $gltype foo;
21465 extern $gltype1 foo;
21474 if ac_fn_c_try_compile "$LINENO"; then :
21475 eval gl_cv_type_${gltype}_suffix=\$glsuf
21477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21478 eval result=\$gl_cv_type_${gltype}_suffix
21479 test "$result" != no && break
21482 eval ac_res=\$gl_cv_type_${gltype}_suffix
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21484 $as_echo "$ac_res" >&6; }
21485 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21486 eval result=\$gl_cv_type_${gltype}_suffix
21487 test "$result" = no && result=
21488 eval ${GLTYPE}_SUFFIX=\$result
21489 cat >>confdefs.h <<_ACEOF
21490 #define ${GLTYPE}_SUFFIX $result
21499 for gltype in sig_atomic_t wchar_t wint_t ; do
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21501 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21502 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21503 $as_echo_n "(cached) " >&6
21505 eval gl_cv_type_${gltype}_suffix=no
21506 eval result=\$gl_cv_type_${gltype}_signed
21507 if test "$result" = yes; then
21512 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21514 '') gltype1='int';;
21515 l) gltype1='long int';;
21516 ll) gltype1='long long int';;
21517 i64) gltype1='__int64';;
21518 u) gltype1='unsigned int';;
21519 ul) gltype1='unsigned long int';;
21520 ull) gltype1='unsigned long long int';;
21521 ui64)gltype1='unsigned __int64';;
21523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21524 /* end confdefs.h. */
21526 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21527 included before <wchar.h>. */
21528 #include <stddef.h>
21529 #include <signal.h>
21531 # include <stdio.h>
21533 # include <wchar.h>
21536 extern $gltype foo;
21537 extern $gltype1 foo;
21546 if ac_fn_c_try_compile "$LINENO"; then :
21547 eval gl_cv_type_${gltype}_suffix=\$glsuf
21549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21550 eval result=\$gl_cv_type_${gltype}_suffix
21551 test "$result" != no && break
21554 eval ac_res=\$gl_cv_type_${gltype}_suffix
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21556 $as_echo "$ac_res" >&6; }
21557 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21558 eval result=\$gl_cv_type_${gltype}_suffix
21559 test "$result" = no && result=
21560 eval ${GLTYPE}_SUFFIX=\$result
21561 cat >>confdefs.h <<_ACEOF
21562 #define ${GLTYPE}_SUFFIX $result
21569 if test $GNULIB_OVERRIDES_WINT_T = 1; then
21570 BITSIZEOF_WINT_T=32
21578 LIMITS_H='limits.h'
21579 if test -n "$LIMITS_H"; then
21580 GL_GENERATE_LIMITS_H_TRUE=
21581 GL_GENERATE_LIMITS_H_FALSE='#'
21583 GL_GENERATE_LIMITS_H_TRUE='#'
21584 GL_GENERATE_LIMITS_H_FALSE=
21593 if test -n "$STDINT_H"; then
21594 GL_GENERATE_STDINT_H_TRUE=
21595 GL_GENERATE_STDINT_H_FALSE='#'
21597 GL_GENERATE_STDINT_H_TRUE='#'
21598 GL_GENERATE_STDINT_H_FALSE=
21603 REPLACE_STRERROR_0=0
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
21605 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
21606 if ${gl_cv_func_strerror_0_works+:} false; then :
21607 $as_echo_n "(cached) " >&6
21609 if test "$cross_compiling" = yes; then :
21611 # Guess yes on glibc systems.
21612 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
21613 # Guess yes on native Windows.
21614 mingw*) gl_cv_func_strerror_0_works="guessing yes" ;;
21615 # If we don't know, assume the worst.
21616 *) gl_cv_func_strerror_0_works="guessing no" ;;
21620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21621 /* end confdefs.h. */
21622 #include <string.h>
21631 str = strerror (0);
21632 if (!*str) result |= 1;
21633 if (errno) result |= 2;
21634 if (strstr (str, "nknown") || strstr (str, "ndefined"))
21641 if ac_fn_c_try_run "$LINENO"; then :
21642 gl_cv_func_strerror_0_works=yes
21644 gl_cv_func_strerror_0_works=no
21646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21647 conftest.$ac_objext conftest.beam conftest.$ac_ext
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
21653 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
21654 case "$gl_cv_func_strerror_0_works" in
21657 REPLACE_STRERROR_0=1
21659 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
21675 if test $gl_cv_have_include_next = yes; then
21676 gl_cv_next_string_h='<'string.h'>'
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21679 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21680 if ${gl_cv_next_string_h+:} false; then :
21681 $as_echo_n "(cached) " >&6
21686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21687 /* end confdefs.h. */
21688 #include <string.h>
21691 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21692 *) gl_absname_cpp="$ac_cpp" ;;
21697 gl_dirsep_regex='[/\\]'
21700 gl_dirsep_regex='\/'
21703 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21704 gl_header_literal_regex=`echo 'string.h' \
21705 | sed -e "$gl_make_literal_regex_sed"`
21706 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21707 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21713 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21714 sed -n "$gl_absolute_header_sed"`
21716 gl_header=$gl_cv_absolute_string_h
21717 gl_cv_next_string_h='"'$gl_header'"'
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21722 $as_echo "$gl_cv_next_string_h" >&6; }
21724 NEXT_STRING_H=$gl_cv_next_string_h
21726 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21728 gl_next_as_first_directive='<'string.h'>'
21730 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21731 gl_next_as_first_directive=$gl_cv_next_string_h
21733 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21743 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
21744 if test "x$ac_cv_have_decl_strndup" = xyes; then :
21750 cat >>confdefs.h <<_ACEOF
21751 #define HAVE_DECL_STRNDUP $ac_have_decl
21756 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
21757 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
21763 cat >>confdefs.h <<_ACEOF
21764 #define HAVE_DECL_STRNLEN $ac_have_decl
21767 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
21768 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
21774 cat >>confdefs.h <<_ACEOF
21775 #define HAVE_DECL_STRSIGNAL $ac_have_decl
21778 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
21779 /* NetBSD declares sys_siglist in unistd.h. */
21780 #ifdef HAVE_UNISTD_H
21781 # include <unistd.h>
21785 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
21791 cat >>confdefs.h <<_ACEOF
21792 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
21809 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
21810 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
21811 $as_echo_n "(cached) " >&6
21814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21815 /* end confdefs.h. */
21816 #include <sys/select.h>
21825 if ac_fn_c_try_compile "$LINENO"; then :
21826 gl_cv_header_sys_select_h_selfcontained=yes
21828 gl_cv_header_sys_select_h_selfcontained=no
21830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
21832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21833 /* end confdefs.h. */
21834 #include <sys/select.h>
21838 int memset; int bzero;
21844 if ac_fn_c_try_compile "$LINENO"; then :
21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21846 /* end confdefs.h. */
21847 #include <sys/select.h>
21853 #define memset nonexistent_memset
21858 void *memset (void *, int, unsigned long);
21860 #define bzero nonexistent_bzero
21865 void bzero (void *, unsigned long);
21874 if ac_fn_c_try_link "$LINENO"; then :
21877 gl_cv_header_sys_select_h_selfcontained=no
21879 rm -f core conftest.err conftest.$ac_objext \
21880 conftest$ac_exeext conftest.$ac_ext
21883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
21888 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
21898 if test $gl_cv_have_include_next = yes; then
21899 gl_cv_next_sys_select_h='<'sys/select.h'>'
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
21902 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
21903 if ${gl_cv_next_sys_select_h+:} false; then :
21904 $as_echo_n "(cached) " >&6
21907 if test $ac_cv_header_sys_select_h = yes; then
21912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21913 /* end confdefs.h. */
21914 #include <sys/select.h>
21917 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21918 *) gl_absname_cpp="$ac_cpp" ;;
21923 gl_dirsep_regex='[/\\]'
21926 gl_dirsep_regex='\/'
21929 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21930 gl_header_literal_regex=`echo 'sys/select.h' \
21931 | sed -e "$gl_make_literal_regex_sed"`
21932 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21933 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21939 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21940 sed -n "$gl_absolute_header_sed"`
21942 gl_header=$gl_cv_absolute_sys_select_h
21943 gl_cv_next_sys_select_h='"'$gl_header'"'
21945 gl_cv_next_sys_select_h='<'sys/select.h'>'
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
21951 $as_echo "$gl_cv_next_sys_select_h" >&6; }
21953 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
21955 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21956 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21957 gl_next_as_first_directive='<'sys/select.h'>'
21959 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21960 gl_next_as_first_directive=$gl_cv_next_sys_select_h
21962 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
21967 if test $ac_cv_header_sys_select_h = yes; then
21968 HAVE_SYS_SELECT_H=1
21970 HAVE_SYS_SELECT_H=0
21977 if test $ac_cv_header_sys_socket_h != yes; then
21978 for ac_header in winsock2.h
21980 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21981 if test "x$ac_cv_header_winsock2_h" = xyes; then :
21982 cat >>confdefs.h <<_ACEOF
21983 #define HAVE_WINSOCK2_H 1
21991 if test "$ac_cv_header_winsock2_h" = yes; then
21993 UNISTD_H_HAVE_WINSOCK2_H=1
21994 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22015 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
22027 if test $gl_cv_have_include_next = yes; then
22028 gl_cv_next_sys_types_h='<'sys/types.h'>'
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
22031 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
22032 if ${gl_cv_next_sys_types_h+:} false; then :
22033 $as_echo_n "(cached) " >&6
22038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22039 /* end confdefs.h. */
22040 #include <sys/types.h>
22043 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22044 *) gl_absname_cpp="$ac_cpp" ;;
22049 gl_dirsep_regex='[/\\]'
22052 gl_dirsep_regex='\/'
22055 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22056 gl_header_literal_regex=`echo 'sys/types.h' \
22057 | sed -e "$gl_make_literal_regex_sed"`
22058 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22059 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22065 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22066 sed -n "$gl_absolute_header_sed"`
22068 gl_header=$gl_cv_absolute_sys_types_h
22069 gl_cv_next_sys_types_h='"'$gl_header'"'
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
22074 $as_echo "$gl_cv_next_sys_types_h" >&6; }
22076 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
22078 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22079 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22080 gl_next_as_first_directive='<'sys/types.h'>'
22082 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22083 gl_next_as_first_directive=$gl_cv_next_sys_types_h
22085 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
22098 WINDOWS_STAT_INODES=0
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
22110 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
22111 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
22112 $as_echo_n "(cached) " >&6
22114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22115 /* end confdefs.h. */
22121 static struct timespec x; x.tv_sec = x.tv_nsec;
22126 if ac_fn_c_try_compile "$LINENO"; then :
22127 gl_cv_sys_struct_timespec_in_time_h=yes
22129 gl_cv_sys_struct_timespec_in_time_h=no
22131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
22134 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
22136 TIME_H_DEFINES_STRUCT_TIMESPEC=0
22137 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
22138 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
22139 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
22140 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
22141 TIME_H_DEFINES_STRUCT_TIMESPEC=1
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
22144 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
22145 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
22146 $as_echo_n "(cached) " >&6
22148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22149 /* end confdefs.h. */
22150 #include <sys/time.h>
22155 static struct timespec x; x.tv_sec = x.tv_nsec;
22160 if ac_fn_c_try_compile "$LINENO"; then :
22161 gl_cv_sys_struct_timespec_in_sys_time_h=yes
22163 gl_cv_sys_struct_timespec_in_sys_time_h=no
22165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
22168 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
22169 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
22170 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
22173 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
22174 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
22175 $as_echo_n "(cached) " >&6
22177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22178 /* end confdefs.h. */
22179 #include <pthread.h>
22184 static struct timespec x; x.tv_sec = x.tv_nsec;
22189 if ac_fn_c_try_compile "$LINENO"; then :
22190 gl_cv_sys_struct_timespec_in_pthread_h=yes
22192 gl_cv_sys_struct_timespec_in_pthread_h=no
22194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
22197 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
22198 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
22199 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
22202 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
22203 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
22204 $as_echo_n "(cached) " >&6
22206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22207 /* end confdefs.h. */
22208 #include <unistd.h>
22213 static struct timespec x; x.tv_sec = x.tv_nsec;
22218 if ac_fn_c_try_compile "$LINENO"; then :
22219 gl_cv_sys_struct_timespec_in_unistd_h=yes
22221 gl_cv_sys_struct_timespec_in_unistd_h=no
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
22226 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
22227 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
22228 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
22249 if test $gl_cv_have_include_next = yes; then
22250 gl_cv_next_time_h='<'time.h'>'
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
22253 $as_echo_n "checking absolute name of <time.h>... " >&6; }
22254 if ${gl_cv_next_time_h+:} false; then :
22255 $as_echo_n "(cached) " >&6
22260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22261 /* end confdefs.h. */
22265 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22266 *) gl_absname_cpp="$ac_cpp" ;;
22271 gl_dirsep_regex='[/\\]'
22274 gl_dirsep_regex='\/'
22277 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22278 gl_header_literal_regex=`echo 'time.h' \
22279 | sed -e "$gl_make_literal_regex_sed"`
22280 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22281 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22287 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22288 sed -n "$gl_absolute_header_sed"`
22290 gl_header=$gl_cv_absolute_time_h
22291 gl_cv_next_time_h='"'$gl_header'"'
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
22296 $as_echo "$gl_cv_next_time_h" >&6; }
22298 NEXT_TIME_H=$gl_cv_next_time_h
22300 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22301 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22302 gl_next_as_first_directive='<'time.h'>'
22304 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22305 gl_next_as_first_directive=$gl_cv_next_time_h
22307 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
22314 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
22315 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
22321 cat >>confdefs.h <<_ACEOF
22322 #define HAVE_DECL_UNSETENV $ac_have_decl
22331 if test $ac_cv_header_features_h = yes; then
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
22340 $as_echo_n "checking for inttypes.h... " >&6; }
22341 if ${gl_cv_header_inttypes_h+:} false; then :
22342 $as_echo_n "(cached) " >&6
22344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22345 /* end confdefs.h. */
22347 #include <sys/types.h>
22348 #include <inttypes.h>
22353 uintmax_t i = (uintmax_t) -1; return !i;
22358 if ac_fn_c_try_compile "$LINENO"; then :
22359 gl_cv_header_inttypes_h=yes
22361 gl_cv_header_inttypes_h=no
22363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
22366 $as_echo "$gl_cv_header_inttypes_h" >&6; }
22367 if test $gl_cv_header_inttypes_h = yes; then
22369 cat >>confdefs.h <<_ACEOF
22370 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
22377 $as_echo_n "checking for stdint.h... " >&6; }
22378 if ${gl_cv_header_stdint_h+:} false; then :
22379 $as_echo_n "(cached) " >&6
22381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22382 /* end confdefs.h. */
22383 #include <sys/types.h>
22384 #include <stdint.h>
22388 uintmax_t i = (uintmax_t) -1; return !i;
22393 if ac_fn_c_try_compile "$LINENO"; then :
22394 gl_cv_header_stdint_h=yes
22396 gl_cv_header_stdint_h=no
22398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
22401 $as_echo "$gl_cv_header_stdint_h" >&6; }
22402 if test $gl_cv_header_stdint_h = yes; then
22404 cat >>confdefs.h <<_ACEOF
22405 #define HAVE_STDINT_H_WITH_UINTMAX 1
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
22414 $as_echo_n "checking for intmax_t... " >&6; }
22415 if ${gt_cv_c_intmax_t+:} false; then :
22416 $as_echo_n "(cached) " >&6
22418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22419 /* end confdefs.h. */
22421 #include <stddef.h>
22422 #include <stdlib.h>
22423 #if HAVE_STDINT_H_WITH_UINTMAX
22424 #include <stdint.h>
22426 #if HAVE_INTTYPES_H_WITH_UINTMAX
22427 #include <inttypes.h>
22433 intmax_t x = -1; return !x;
22438 if ac_fn_c_try_compile "$LINENO"; then :
22439 gt_cv_c_intmax_t=yes
22441 gt_cv_c_intmax_t=no
22443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
22446 $as_echo "$gt_cv_c_intmax_t" >&6; }
22447 if test $gt_cv_c_intmax_t = yes; then
22449 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22453 test $ac_cv_type_long_long_int = yes \
22454 && ac_type='long long' \
22457 cat >>confdefs.h <<_ACEOF
22458 #define intmax_t $ac_type
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
22465 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
22466 if ${gl_cv_cc_double_expbit0+:} false; then :
22467 $as_echo_n "(cached) " >&6
22470 if test "$cross_compiling" = yes; then :
22472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22473 /* end confdefs.h. */
22475 #if defined arm || defined __arm || defined __arm__
22480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22481 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
22482 gl_cv_cc_double_expbit0="unknown"
22486 if ${ac_cv_c_bigendian+:} false; then :
22487 $as_echo_n "(cached) " >&6
22489 ac_cv_c_bigendian=unknown
22490 # See if we're dealing with a universal compiler.
22491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22492 /* end confdefs.h. */
22493 #ifndef __APPLE_CC__
22494 not a universal capable compiler
22499 if ac_fn_c_try_compile "$LINENO"; then :
22501 # Check for potential -arch flags. It is not universal unless
22502 # there are at least two -arch flags with different values.
22505 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22506 if test -n "$ac_prev"; then
22508 i?86 | x86_64 | ppc | ppc64)
22509 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22512 ac_cv_c_bigendian=universal
22518 elif test "x$ac_word" = "x-arch"; then
22523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524 if test $ac_cv_c_bigendian = unknown; then
22525 # See if sys/param.h defines the BYTE_ORDER macro.
22526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22527 /* end confdefs.h. */
22528 #include <sys/types.h>
22529 #include <sys/param.h>
22534 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22535 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22537 bogus endian macros
22544 if ac_fn_c_try_compile "$LINENO"; then :
22545 # It does; now see whether it defined to BIG_ENDIAN or not.
22546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22547 /* end confdefs.h. */
22548 #include <sys/types.h>
22549 #include <sys/param.h>
22554 #if BYTE_ORDER != BIG_ENDIAN
22562 if ac_fn_c_try_compile "$LINENO"; then :
22563 ac_cv_c_bigendian=yes
22565 ac_cv_c_bigendian=no
22567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22571 if test $ac_cv_c_bigendian = unknown; then
22572 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22574 /* end confdefs.h. */
22575 #include <limits.h>
22580 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22581 bogus endian macros
22588 if ac_fn_c_try_compile "$LINENO"; then :
22589 # It does; now see whether it defined to _BIG_ENDIAN or not.
22590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22591 /* end confdefs.h. */
22592 #include <limits.h>
22597 #ifndef _BIG_ENDIAN
22605 if ac_fn_c_try_compile "$LINENO"; then :
22606 ac_cv_c_bigendian=yes
22608 ac_cv_c_bigendian=no
22610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22614 if test $ac_cv_c_bigendian = unknown; then
22615 # Compile a test program.
22616 if test "$cross_compiling" = yes; then :
22617 # Try to guess by grepping values from an object file.
22618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22619 /* end confdefs.h. */
22620 short int ascii_mm[] =
22621 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22622 short int ascii_ii[] =
22623 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22624 int use_ascii (int i) {
22625 return ascii_mm[i] + ascii_ii[i];
22627 short int ebcdic_ii[] =
22628 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22629 short int ebcdic_mm[] =
22630 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22631 int use_ebcdic (int i) {
22632 return ebcdic_mm[i] + ebcdic_ii[i];
22639 return use_ascii (foo) == use_ebcdic (foo);
22644 if ac_fn_c_try_compile "$LINENO"; then :
22645 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22646 ac_cv_c_bigendian=yes
22648 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22649 if test "$ac_cv_c_bigendian" = unknown; then
22650 ac_cv_c_bigendian=no
22652 # finding both strings is unlikely to happen, but who knows?
22653 ac_cv_c_bigendian=unknown
22657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22660 /* end confdefs.h. */
22661 $ac_includes_default
22666 /* Are we little or big endian? From Harbison&Steele. */
22670 char c[sizeof (long int)];
22673 return u.c[sizeof (long int) - 1] == 1;
22679 if ac_fn_c_try_run "$LINENO"; then :
22680 ac_cv_c_bigendian=no
22682 ac_cv_c_bigendian=yes
22684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22685 conftest.$ac_objext conftest.beam conftest.$ac_ext
22691 case $ac_cv_c_bigendian in #(
22693 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
22695 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
22698 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22702 gl_cv_cc_double_expbit0="unknown" ;;
22711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22712 /* end confdefs.h. */
22715 #include <stddef.h>
22717 #include <string.h>
22719 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22720 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
22721 static unsigned int ored_words[NWORDS];
22722 static unsigned int anded_words[NWORDS];
22723 static void add_to_ored_words (double x)
22727 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
22728 memset (&m, 0, sizeof (memory_double));
22730 for (i = 0; i < NWORDS; i++)
22732 ored_words[i] |= m.word[i];
22733 anded_words[i] &= m.word[i];
22739 FILE *fp = fopen ("conftest.out", "w");
22742 for (j = 0; j < NWORDS; j++)
22743 anded_words[j] = ~ (unsigned int) 0;
22744 add_to_ored_words (0.25);
22745 add_to_ored_words (0.5);
22746 add_to_ored_words (1.0);
22747 add_to_ored_words (2.0);
22748 add_to_ored_words (4.0);
22749 /* Remove bits that are common (e.g. if representation of the first mantissa
22750 bit is explicit). */
22751 for (j = 0; j < NWORDS; j++)
22752 ored_words[j] &= ~anded_words[j];
22753 /* Now find the nonzero word. */
22754 for (j = 0; j < NWORDS; j++)
22755 if (ored_words[j] != 0)
22760 for (i = j + 1; i < NWORDS; i++)
22761 if (ored_words[i] != 0)
22763 fprintf (fp, "unknown");
22764 return (fclose (fp) != 0);
22767 if ((ored_words[j] >> i) & 1)
22769 fprintf (fp, "word %d bit %d", (int) j, (int) i);
22770 return (fclose (fp) != 0);
22773 fprintf (fp, "unknown");
22774 return (fclose (fp) != 0);
22778 if ac_fn_c_try_run "$LINENO"; then :
22779 gl_cv_cc_double_expbit0=`cat conftest.out`
22781 gl_cv_cc_double_expbit0="unknown"
22783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22784 conftest.$ac_objext conftest.beam conftest.$ac_ext
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
22791 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
22792 case "$gl_cv_cc_double_expbit0" in
22794 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
22795 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
22797 cat >>confdefs.h <<_ACEOF
22798 #define DBL_EXPBIT0_WORD $word
22802 cat >>confdefs.h <<_ACEOF
22803 #define DBL_EXPBIT0_BIT $bit
22814 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
22816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22817 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22818 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22819 cat >>confdefs.h <<_ACEOF
22820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22826 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
22828 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
22834 cat >>confdefs.h <<_ACEOF
22835 #define HAVE_DECL__SNPRINTF $ac_have_decl
22840 case "$gl_cv_func_snprintf_retval_c99" in
22843 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
22854 GNULIB_MBSRTOWCS=0;
22855 GNULIB_MBSNRTOWCS=0;
22857 GNULIB_WCSRTOMBS=0;
22858 GNULIB_WCSNRTOMBS=0;
22875 GNULIB_WCSCASECMP=0;
22876 GNULIB_WCSNCASECMP=0;
22914 HAVE_WCSNCASECMP=1;
22928 HAVE_DECL_WCWIDTH=1;
22929 REPLACE_MBSTATE_T=0;
22935 REPLACE_MBSRTOWCS=0;
22936 REPLACE_MBSNRTOWCS=0;
22938 REPLACE_WCSRTOMBS=0;
22939 REPLACE_WCSNRTOMBS=0;
22941 REPLACE_WCSWIDTH=0;
22942 REPLACE_WCSFTIME=0;
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
22946 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
22947 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
22948 $as_echo_n "(cached) " >&6
22950 gl_cv_header_wchar_h_correct_inline=yes
22951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22952 /* end confdefs.h. */
22954 #define wcstod renamed_wcstod
22955 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22957 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22958 included before <wchar.h>. */
22959 #include <stddef.h>
22963 extern int zero (void);
22964 int main () { return zero(); }
22967 save_ac_compile="$ac_compile"
22968 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
22969 if echo '#include "conftest.c"' >conftest1.c &&
22970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22971 (eval $ac_compile) 2>&5
22973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22974 test $ac_status = 0; }; then
22975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22976 /* end confdefs.h. */
22978 #define wcstod renamed_wcstod
22979 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22981 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22982 included before <wchar.h>. */
22983 #include <stddef.h>
22987 int zero (void) { return 0; }
22990 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
22991 if echo '#include "conftest.c"' >conftest2.c &&
22992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22993 (eval $ac_compile) 2>&5
22995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22996 test $ac_status = 0; }; then
22997 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
23000 gl_cv_header_wchar_h_correct_inline=no
23004 ac_compile="$save_ac_compile"
23005 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
23009 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
23010 if test $gl_cv_header_wchar_h_correct_inline = no; then
23011 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
23012 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
23013 C99 mode. You have four options:
23014 - Add the flag -fgnu89-inline to CC and reconfigure, or
23015 - Fix your include files, using parts of
23016 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
23017 - Use a gcc version older than 4.3, or
23018 - Don't use the flags -std=c99 or -std=gnu99.
23019 Configuration aborted." "$LINENO" 5
23026 if test $ac_cv_header_crtdefs_h = yes; then
23035 GL_COND_LIBTOOL_TRUE=
23036 GL_COND_LIBTOOL_FALSE='#'
23038 GL_COND_LIBTOOL_TRUE='#'
23039 GL_COND_LIBTOOL_FALSE=
23042 gl_cond_libtool=true
23053 gl_source_base='gl/lib'
23056 if test $ac_cv_func_alloca_works = no; then
23060 # Define an additional variable used in the Makefile substitution.
23061 if test $ac_cv_working_alloca_h = yes; then
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
23063 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
23064 if ${gl_cv_rpl_alloca+:} false; then :
23065 $as_echo_n "(cached) " >&6
23068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23069 /* end confdefs.h. */
23071 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
23076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23077 $EGREP "Need own alloca" >/dev/null 2>&1; then :
23078 gl_cv_rpl_alloca=yes
23080 gl_cv_rpl_alloca=no
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
23087 $as_echo "$gl_cv_rpl_alloca" >&6; }
23088 if test $gl_cv_rpl_alloca = yes; then
23090 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
23100 if test -n "$ALLOCA_H"; then
23101 GL_GENERATE_ALLOCA_H_TRUE=
23102 GL_GENERATE_ALLOCA_H_FALSE='#'
23104 GL_GENERATE_ALLOCA_H_TRUE='#'
23105 GL_GENERATE_ALLOCA_H_FALSE=
23114 cat >>confdefs.h <<_ACEOF
23115 #define GNULIB_DIRNAME 1
23125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
23126 $as_echo_n "checking whether // is distinct from /... " >&6; }
23127 if ${gl_cv_double_slash_root+:} false; then :
23128 $as_echo_n "(cached) " >&6
23130 if test x"$cross_compiling" = xyes ; then
23131 # When cross-compiling, there is no way to tell whether // is special
23132 # short of a list of hosts. However, the only known hosts to date
23133 # that have a distinct // are Apollo DomainOS (too old to port to),
23134 # Cygwin, and z/OS. If anyone knows of another system for which // has
23135 # special semantics and is distinct from /, please report it to
23136 # <bug-gnulib@gnu.org>.
23138 *-cygwin | i370-ibm-openedition)
23139 gl_cv_double_slash_root=yes ;;
23141 # Be optimistic and assume that / and // are the same when we
23143 gl_cv_double_slash_root='unknown, assuming no' ;;
23146 set x `ls -di / // 2>/dev/null`
23147 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
23148 gl_cv_double_slash_root=no
23150 gl_cv_double_slash_root=yes
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
23155 $as_echo "$gl_cv_double_slash_root" >&6; }
23156 if test "$gl_cv_double_slash_root" = yes; then
23158 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
23174 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
23181 $as_echo_n "checking for error_at_line... " >&6; }
23182 if ${ac_cv_lib_error_at_line+:} false; then :
23183 $as_echo_n "(cached) " >&6
23185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23186 /* end confdefs.h. */
23191 error_at_line (0, 0, "", 0, "an error occurred");
23196 if ac_fn_c_try_link "$LINENO"; then :
23197 ac_cv_lib_error_at_line=yes
23199 ac_cv_lib_error_at_line=no
23201 rm -f core conftest.err conftest.$ac_objext \
23202 conftest$ac_exeext conftest.$ac_ext
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
23205 $as_echo "$ac_cv_lib_error_at_line" >&6; }
23207 if test $ac_cv_lib_error_at_line = no; then
23216 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
23225 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
23229 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
23243 if test $gl_cv_have_include_next = yes; then
23244 gl_cv_next_fcntl_h='<'fcntl.h'>'
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
23247 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
23248 if ${gl_cv_next_fcntl_h+:} false; then :
23249 $as_echo_n "(cached) " >&6
23254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23255 /* end confdefs.h. */
23259 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23260 *) gl_absname_cpp="$ac_cpp" ;;
23265 gl_dirsep_regex='[/\\]'
23268 gl_dirsep_regex='\/'
23271 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23272 gl_header_literal_regex=`echo 'fcntl.h' \
23273 | sed -e "$gl_make_literal_regex_sed"`
23274 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23275 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23281 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23282 sed -n "$gl_absolute_header_sed"`
23284 gl_header=$gl_cv_absolute_fcntl_h
23285 gl_cv_next_fcntl_h='"'$gl_header'"'
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
23290 $as_echo "$gl_cv_next_fcntl_h" >&6; }
23292 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
23294 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23295 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23296 gl_next_as_first_directive='<'fcntl.h'>'
23298 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23299 gl_next_as_first_directive=$gl_cv_next_fcntl_h
23301 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
23319 REPLACE_FLOAT_LDBL=0
23321 aix* | beos* | openbsd* | mirbsd* | irix*)
23324 freebsd* | dragonfly*)
23325 case "$host_cpu" in
23330 # On x86_64 systems, the C compiler may still be generating
23332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23333 /* end confdefs.h. */
23334 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
23341 if ac_fn_c_try_compile "$LINENO"; then :
23346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23351 case "$host_cpu" in
23359 aix* | freebsd* | dragonfly* | linux*)
23360 if test -n "$FLOAT_H"; then
23361 REPLACE_FLOAT_LDBL=1
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
23368 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
23369 if ${gl_cv_func_itold_works+:} false; then :
23370 $as_echo_n "(cached) " >&6
23373 if test "$cross_compiling" = yes; then :
23376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23377 /* end confdefs.h. */
23378 #if defined __LP64__ || defined __arch64__
23385 if ac_fn_c_try_compile "$LINENO"; then :
23386 gl_cv_func_itold_works="guessing no"
23388 gl_cv_func_itold_works="guessing yes"
23390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23392 # Guess yes on native Windows.
23393 mingw*) gl_cv_func_itold_works="guessing yes" ;;
23394 *) gl_cv_func_itold_works="guessing yes" ;;
23398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23399 /* end confdefs.h. */
23402 volatile long double ld;
23411 if ac_fn_c_try_run "$LINENO"; then :
23412 gl_cv_func_itold_works=yes
23414 gl_cv_func_itold_works=no
23416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23417 conftest.$ac_objext conftest.beam conftest.$ac_ext
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
23423 $as_echo "$gl_cv_func_itold_works" >&6; }
23424 case "$gl_cv_func_itold_works" in
23431 if test -n "$FLOAT_H"; then
23440 if test $gl_cv_have_include_next = yes; then
23441 gl_cv_next_float_h='<'float.h'>'
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
23444 $as_echo_n "checking absolute name of <float.h>... " >&6; }
23445 if ${gl_cv_next_float_h+:} false; then :
23446 $as_echo_n "(cached) " >&6
23451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23452 /* end confdefs.h. */
23456 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23457 *) gl_absname_cpp="$ac_cpp" ;;
23462 gl_dirsep_regex='[/\\]'
23465 gl_dirsep_regex='\/'
23468 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23469 gl_header_literal_regex=`echo 'float.h' \
23470 | sed -e "$gl_make_literal_regex_sed"`
23471 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23472 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23478 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23479 sed -n "$gl_absolute_header_sed"`
23481 gl_header=$gl_cv_absolute_float_h
23482 gl_cv_next_float_h='"'$gl_header'"'
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
23487 $as_echo "$gl_cv_next_float_h" >&6; }
23489 NEXT_FLOAT_H=$gl_cv_next_float_h
23491 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23492 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23493 gl_next_as_first_directive='<'float.h'>'
23495 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23496 gl_next_as_first_directive=$gl_cv_next_float_h
23498 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
23505 if test -n "$FLOAT_H"; then
23506 GL_GENERATE_FLOAT_H_TRUE=
23507 GL_GENERATE_FLOAT_H_FALSE='#'
23509 GL_GENERATE_FLOAT_H_TRUE='#'
23510 GL_GENERATE_FLOAT_H_FALSE=
23515 if test $REPLACE_FLOAT_LDBL = 1; then
23524 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
23527 if test $REPLACE_ITOLD = 1; then
23536 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
23543 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
23545 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
23551 cat >>confdefs.h <<_ACEOF
23552 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
23554 if test $ac_have_decl = 1; then :
23558 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
23560 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
23566 cat >>confdefs.h <<_ACEOF
23567 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
23569 if test $ac_have_decl = 1; then :
23573 ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
23575 if test "x$ac_cv_have_decl___argv" = xyes; then :
23581 cat >>confdefs.h <<_ACEOF
23582 #define HAVE_DECL___ARGV $ac_have_decl
23584 if test $ac_have_decl = 1; then :
23589 # Incur the cost of this test only if none of the above worked.
23590 if test $ac_found = 0; then
23591 # On OpenBSD 5.1, using the global __progname variable appears to be
23592 # the only way to implement getprogname.
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
23594 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
23595 if ${gl_cv_var___progname+:} false; then :
23596 $as_echo_n "(cached) " >&6
23599 gl_cv_var___progname=
23600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23601 /* end confdefs.h. */
23602 extern char *__progname;
23606 return *__progname;
23612 if ac_fn_c_try_link "$LINENO"; then :
23613 gl_cv_var___progname=yes
23616 rm -f core conftest.err conftest.$ac_objext \
23617 conftest$ac_exeext conftest.$ac_ext
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
23622 $as_echo "$gl_cv_var___progname" >&6; }
23623 if test "$gl_cv_var___progname" = yes; then
23625 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
23639 gl_gettimeofday_timezone=void
23640 if test $ac_cv_func_gettimeofday != yes; then
23641 HAVE_GETTIMEOFDAY=0
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23648 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23649 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
23650 $as_echo_n "(cached) " >&6
23652 if test "$cross_compiling" = yes; then :
23653 # When cross-compiling:
23655 # Guess all is fine on glibc systems.
23656 *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
23657 # Guess no on native Windows.
23658 mingw*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
23659 # If we don't know, assume the worst.
23660 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
23664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23665 /* end confdefs.h. */
23666 #include <string.h>
23667 #include <sys/time.h>
23669 #include <stdlib.h>
23677 struct tm saved_lt;
23679 lt = localtime (&t);
23681 gettimeofday (&tv, NULL);
23682 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23688 if ac_fn_c_try_run "$LINENO"; then :
23689 gl_cv_func_gettimeofday_clobber=no
23691 gl_cv_func_gettimeofday_clobber=yes
23693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23694 conftest.$ac_objext conftest.beam conftest.$ac_ext
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
23699 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
23701 case "$gl_cv_func_gettimeofday_clobber" in
23703 REPLACE_GETTIMEOFDAY=1
23705 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
23710 NEED_LOCALTIME_BUFFER=1
23712 REPLACE_LOCALTIME=1
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
23718 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
23719 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
23720 $as_echo_n "(cached) " >&6
23722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23723 /* end confdefs.h. */
23724 #include <sys/time.h>
23726 int gettimeofday (struct timeval *restrict, void *restrict);
23731 /* glibc uses struct timezone * rather than the POSIX void *
23732 if _GNU_SOURCE is defined. However, since the only portable
23733 use of gettimeofday uses NULL as the second parameter, and
23734 since the glibc definition is actually more typesafe, it is
23735 not worth wrapping this to get a compliant signature. */
23736 int (*f) (struct timeval *restrict, void *restrict)
23739 return !(x | c.tv_sec | c.tv_usec);
23745 if ac_fn_c_try_compile "$LINENO"; then :
23746 gl_cv_func_gettimeofday_posix_signature=yes
23748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23749 /* end confdefs.h. */
23750 #include <sys/time.h>
23751 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
23761 if ac_fn_c_try_compile "$LINENO"; then :
23762 gl_cv_func_gettimeofday_posix_signature=almost
23764 gl_cv_func_gettimeofday_posix_signature=no
23766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23771 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
23772 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
23773 gl_gettimeofday_timezone='struct timezone'
23774 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
23775 REPLACE_GETTIMEOFDAY=1
23777 if test $REPLACE_STRUCT_TIMEVAL = 1; then
23778 REPLACE_GETTIMEOFDAY=1
23781 mingw*) REPLACE_GETTIMEOFDAY=1 ;;
23785 cat >>confdefs.h <<_ACEOF
23786 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
23790 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
23799 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
23808 GNULIB_GETTIMEOFDAY=1
23814 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
23821 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
23822 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
23823 $as_echo_n "(cached) " >&6
23825 gl_cv_prog_c_ignore_unused_libraries=none
23826 gl_saved_ldflags=$LDFLAGS
23827 gl_saved_libs=$LIBS
23828 # Link with -lm to detect binutils 2.16 bug with --as-needed; see
23829 # <https://lists.gnu.org/r/bug-gnulib/2006-06/msg00131.html>.
23831 # Use long option sequences like '-z ignore' to test for the feature,
23832 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
23833 # GCC + binutils likes '-Wl,--as-needed'.
23834 # GCC + Solaris ld likes '-Wl,-z,ignore'.
23835 # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
23836 # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
23837 # native cc issues annoying warnings and then ignores it,
23838 # which would cause us to incorrectly conclude that it worked.
23839 for gl_flags in '-Wl,--as-needed' \
23844 LDFLAGS="$gl_flags $LDFLAGS"
23845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23846 /* end confdefs.h. */
23856 if ac_fn_c_try_link "$LINENO"; then :
23857 gl_cv_prog_c_ignore_unused_libraries=$gl_flags
23859 rm -f core conftest.err conftest.$ac_objext \
23860 conftest$ac_exeext conftest.$ac_ext
23861 LDFLAGS=$gl_saved_ldflags
23862 test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
23865 LIBS=$gl_saved_libs
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
23869 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
23870 IGNORE_UNUSED_LIBRARIES_CFLAGS=
23871 if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
23872 IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
23886 gl_LIBOBJS="$gl_LIBOBJS localtime-buffer.$ac_objext"
23890 if test "$gl_threads_api" = posix; then
23891 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
23892 # pthread_rwlock_* functions.
23894 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
23896 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
23899 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
23903 if $has_rwlock; then
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
23907 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
23908 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false; then :
23909 $as_echo_n "(cached) " >&6
23912 LIBS="$LIBS $LIBMULTITHREAD"
23913 if test "$cross_compiling" = yes; then :
23914 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
23916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23917 /* end confdefs.h. */
23920 #include <pthread.h>
23921 #include <stdlib.h>
23922 #include <unistd.h>
23924 #define SUCCEED() exit (0)
23925 #define FAILURE() exit (1)
23926 #define UNEXPECTED(n) (exit (10 + (n)))
23928 /* The main thread creates the waiting writer and the requesting reader threads
23929 in the default way; this guarantees that they have the same priority.
23930 We can reuse the main thread as first reader thread. */
23932 static pthread_rwlock_t lock;
23933 static pthread_t reader1;
23934 static pthread_t writer;
23935 static pthread_t reader2;
23936 static pthread_t timer;
23937 /* Used to pass control from writer to reader2 and from reader2 to timer,
23938 as in a relay race.
23939 Passing control from one running thread to another running thread
23940 is most likely faster than to create the second thread. */
23941 static pthread_mutex_t baton;
23944 timer_func (void *ignored)
23946 /* Step 13 (can be before or after step 12):
23947 The timer thread takes the baton, then waits a moment to make sure
23948 it can tell whether the second reader thread is blocked at step 12. */
23949 if (pthread_mutex_lock (&baton))
23952 /* By the time we get here, it's clear that the second reader thread is
23953 blocked at step 12. This is the desired behaviour. */
23958 reader2_func (void *ignored)
23962 /* Step 8 (can be before or after step 7):
23963 The second reader thread takes the baton, then waits a moment to make sure
23964 the writer thread has reached step 7. */
23965 if (pthread_mutex_lock (&baton))
23968 /* Step 9: The second reader thread requests the lock. */
23969 err = pthread_rwlock_tryrdlock (&lock);
23972 else if (err != EBUSY)
23974 /* Step 10: Launch a timer, to test whether the next call blocks. */
23975 if (pthread_create (&timer, NULL, timer_func, NULL))
23977 /* Step 11: Release the baton. */
23978 if (pthread_mutex_unlock (&baton))
23980 /* Step 12: The second reader thread requests the lock. */
23981 err = pthread_rwlock_rdlock (&lock);
23989 writer_func (void *ignored)
23991 /* Step 4: Take the baton, so that the second reader thread does not go ahead
23993 if (pthread_mutex_lock (&baton))
23995 /* Step 5: Create the second reader thread. */
23996 if (pthread_create (&reader2, NULL, reader2_func, NULL))
23998 /* Step 6: Release the baton. */
23999 if (pthread_mutex_unlock (&baton))
24001 /* Step 7: The writer thread requests the lock. */
24002 if (pthread_rwlock_wrlock (&lock))
24010 reader1 = pthread_self ();
24012 /* Step 1: The main thread initializes the lock and the baton. */
24013 if (pthread_rwlock_init (&lock, NULL))
24015 if (pthread_mutex_init (&baton, NULL))
24017 /* Step 2: The main thread acquires the lock as a reader. */
24018 if (pthread_rwlock_rdlock (&lock))
24020 /* Step 3: Create the writer thread. */
24021 if (pthread_create (&writer, NULL, writer_func, NULL))
24023 /* Job done. Go to sleep. */
24031 if ac_fn_c_try_run "$LINENO"; then :
24032 gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
24034 gl_cv_pthread_rwlock_rdlock_prefer_writer=no
24036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24037 conftest.$ac_objext conftest.beam conftest.$ac_ext
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
24044 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
24045 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
24048 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
24054 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
24055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24056 /* end confdefs.h. */
24058 #include <pthread.h>
24063 #if __FreeBSD__ == 4
24064 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
24065 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
24066 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
24067 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
24069 int x = (int)PTHREAD_MUTEX_RECURSIVE;
24077 if ac_fn_c_try_compile "$LINENO"; then :
24079 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
24082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24088 cat >>confdefs.h <<_ACEOF
24089 #define GNULIB_LOCK 1
24097 if test $ac_cv_func_lstat = yes; then
24099 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
24108 if test $REPLACE_LSTAT = 1; then
24117 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24132 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
24139 if test $gl_cv_func_malloc_posix = yes; then
24141 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
24147 if test $REPLACE_MALLOC = 1; then
24156 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
24164 GNULIB_MALLOC_POSIX=1
24170 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
24179 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
24188 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
24191 for ac_header in bp-sym.h
24193 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
24194 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
24195 cat >>confdefs.h <<_ACEOF
24196 #define HAVE_BP_SYM_H 1
24216 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
24223 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
24224 if ${gl_cv_func_mkdir_trailing_slash_works+:} false; then :
24225 $as_echo_n "(cached) " >&6
24227 rm -rf conftest.dir
24228 if test "$cross_compiling" = yes; then :
24230 # Guess yes on Linux systems.
24231 linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
24232 # Guess yes on glibc systems.
24233 *-gnu* | gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
24234 # Guess yes on MSVC, no on mingw.
24235 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24236 /* end confdefs.h. */
24243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24244 $EGREP "Known" >/dev/null 2>&1; then :
24245 gl_cv_func_mkdir_trailing_slash_works="guessing yes"
24247 gl_cv_func_mkdir_trailing_slash_works="guessing no"
24252 # If we don't know, assume the worst.
24253 *) gl_cv_func_mkdir_trailing_slash_works="guessing no" ;;
24257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24258 /* end confdefs.h. */
24260 # include <sys/types.h>
24261 # include <sys/stat.h>
24266 return mkdir ("conftest.dir/", 0700);
24271 if ac_fn_c_try_run "$LINENO"; then :
24272 gl_cv_func_mkdir_trailing_slash_works=yes
24274 gl_cv_func_mkdir_trailing_slash_works=no
24276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24277 conftest.$ac_objext conftest.beam conftest.$ac_ext
24280 rm -rf conftest.dir
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
24285 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
24286 case "$gl_cv_func_mkdir_trailing_slash_works" in
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
24294 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
24295 if ${gl_cv_func_mkdir_trailing_dot_works+:} false; then :
24296 $as_echo_n "(cached) " >&6
24298 rm -rf conftest.dir
24299 if test "$cross_compiling" = yes; then :
24301 # Guess yes on glibc systems.
24302 *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
24303 # Guess no on native Windows.
24304 mingw*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
24305 # If we don't know, assume the worst.
24306 *) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
24310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24311 /* end confdefs.h. */
24313 # include <sys/types.h>
24314 # include <sys/stat.h>
24319 return !mkdir ("conftest.dir/./", 0700);
24324 if ac_fn_c_try_run "$LINENO"; then :
24325 gl_cv_func_mkdir_trailing_dot_works=yes
24327 gl_cv_func_mkdir_trailing_dot_works=no
24329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24330 conftest.$ac_objext conftest.beam conftest.$ac_ext
24333 rm -rf conftest.dir
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
24338 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
24339 case "$gl_cv_func_mkdir_trailing_dot_works" in
24344 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
24349 if test $REPLACE_MKDIR = 1; then
24358 gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
24363 for ac_func in mkdtemp
24365 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
24366 if test "x$ac_cv_func_mkdtemp" = xyes; then :
24367 cat >>confdefs.h <<_ACEOF
24368 #define HAVE_MKDTEMP 1
24374 if test $ac_cv_func_mkdtemp = no; then
24378 if test $HAVE_MKDTEMP = 0; then
24387 gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
24403 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
24408 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24417 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
24421 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24430 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
24435 cat >>confdefs.h <<_ACEOF
24436 #define GNULIB_MSVC_NOTHROW 1
24447 for ac_func in raise
24449 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
24450 if test "x$ac_cv_func_raise" = xyes; then :
24451 cat >>confdefs.h <<_ACEOF
24452 #define HAVE_RAISE 1
24458 if test $ac_cv_func_raise = no; then
24463 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24471 if test $gl_cv_type_sigset_t = yes; then
24472 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
24473 if test "x$ac_cv_func_sigprocmask" = xyes; then :
24474 gl_cv_func_sigprocmask=1
24478 if test -z "$gl_cv_func_sigprocmask"; then
24479 HAVE_POSIX_SIGNALBLOCKING=0
24482 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
24488 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
24497 gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
24512 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
24520 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24526 if test $REPLACE_READ = 1; then
24535 gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
24550 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
24564 if test $ac_cv_func_setenv = no; then
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
24568 $as_echo_n "checking whether setenv validates arguments... " >&6; }
24569 if ${gl_cv_func_setenv_works+:} false; then :
24570 $as_echo_n "(cached) " >&6
24572 if test "$cross_compiling" = yes; then :
24574 # Guess yes on glibc systems.
24575 *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
24576 # If we don't know, assume the worst.
24577 *) gl_cv_func_setenv_works="guessing no" ;;
24581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24582 /* end confdefs.h. */
24584 #include <stdlib.h>
24586 #include <string.h>
24594 if (setenv ("", "", 0) != -1)
24596 else if (errno != EINVAL)
24600 if (setenv ("a", "=", 1) != 0)
24602 else if (strcmp (getenv ("a"), "=") != 0)
24611 if ac_fn_c_try_run "$LINENO"; then :
24612 gl_cv_func_setenv_works=yes
24614 gl_cv_func_setenv_works=no
24616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24617 conftest.$ac_objext conftest.beam conftest.$ac_ext
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
24622 $as_echo "$gl_cv_func_setenv_works" >&6; }
24623 case "$gl_cv_func_setenv_works" in
24631 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
24640 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
24654 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
24661 if test $ac_cv_func_sigaction = yes; then
24662 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
24664 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
24666 cat >>confdefs.h <<_ACEOF
24667 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
24673 if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
24674 HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
24680 if test $HAVE_SIGACTION = 0; then
24689 gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
24697 ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
24698 #include <signal.h>
24701 if test "x$ac_cv_type_siginfo_t" = xyes; then :
24703 cat >>confdefs.h <<_ACEOF
24704 #define HAVE_SIGINFO_T 1
24710 if test $ac_cv_type_siginfo_t = no; then
24726 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
24741 if test $gl_cv_have_include_next = yes; then
24742 gl_cv_next_signal_h='<'signal.h'>'
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
24745 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
24746 if ${gl_cv_next_signal_h+:} false; then :
24747 $as_echo_n "(cached) " >&6
24752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24753 /* end confdefs.h. */
24754 #include <signal.h>
24757 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24758 *) gl_absname_cpp="$ac_cpp" ;;
24763 gl_dirsep_regex='[/\\]'
24766 gl_dirsep_regex='\/'
24769 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24770 gl_header_literal_regex=`echo 'signal.h' \
24771 | sed -e "$gl_make_literal_regex_sed"`
24772 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24773 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24779 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24780 sed -n "$gl_absolute_header_sed"`
24782 gl_header=$gl_cv_absolute_signal_h
24783 gl_cv_next_signal_h='"'$gl_header'"'
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
24788 $as_echo "$gl_cv_next_signal_h" >&6; }
24790 NEXT_SIGNAL_H=$gl_cv_next_signal_h
24792 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24793 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24794 gl_next_as_first_directive='<'signal.h'>'
24796 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24797 gl_next_as_first_directive=$gl_cv_next_signal_h
24799 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
24805 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
24806 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
24807 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
24808 #include <signal.h>
24811 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
24814 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
24823 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
24824 #include <signal.h>
24827 if test "x$ac_cv_type_sighandler_t" = xyes; then :
24830 HAVE_SIGHANDLER_T=0
24841 if test $gl_cv_type_sigset_t = yes; then
24842 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
24843 if test "x$ac_cv_func_sigprocmask" = xyes; then :
24844 gl_cv_func_sigprocmask=1
24848 if test -z "$gl_cv_func_sigprocmask"; then
24849 HAVE_POSIX_SIGNALBLOCKING=0
24852 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
24861 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
24870 GNULIB_SIGPROCMASK=1
24876 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
24881 for ac_header in stdint.h
24883 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
24884 if test "x$ac_cv_header_stdint_h" = xyes; then :
24885 cat >>confdefs.h <<_ACEOF
24886 #define HAVE_STDINT_H 1
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
24894 $as_echo_n "checking for SIZE_MAX... " >&6; }
24895 if ${gl_cv_size_max+:} false; then :
24896 $as_echo_n "(cached) " >&6
24900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24901 /* end confdefs.h. */
24903 #include <limits.h>
24905 #include <stdint.h>
24912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24913 $EGREP "Found it" >/dev/null 2>&1; then :
24918 if test -z "$gl_cv_size_max"; then
24919 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
24920 #include <limits.h>"; then :
24923 size_t_bits_minus_1=
24926 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
24932 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
24933 if test $fits_in_uint = 1; then
24934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24935 /* end confdefs.h. */
24936 #include <stddef.h>
24938 extern unsigned long foo;
24948 if ac_fn_c_try_compile "$LINENO"; then :
24951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24953 if test $fits_in_uint = 1; then
24954 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
24956 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
24959 gl_cv_size_max='((size_t)~(size_t)0)'
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
24965 $as_echo "$gl_cv_size_max" >&6; }
24966 if test "$gl_cv_size_max" != yes; then
24968 cat >>confdefs.h <<_ACEOF
24969 #define SIZE_MAX $gl_cv_size_max
24977 gl_cv_func_snprintf_usable=no
24978 for ac_func in snprintf
24980 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
24981 if test "x$ac_cv_func_snprintf" = xyes; then :
24982 cat >>confdefs.h <<_ACEOF
24983 #define HAVE_SNPRINTF 1
24989 if test $ac_cv_func_snprintf = yes; then
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
24994 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
24995 if ${gl_cv_func_snprintf_size1+:} false; then :
24996 $as_echo_n "(cached) " >&6
24999 if test "$cross_compiling" = yes; then :
25001 # Guess yes on Android.
25002 linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
25003 # Guess yes on native Windows.
25004 mingw*) gl_cv_func_snprintf_size1="guessing yes" ;;
25005 *) gl_cv_func_snprintf_size1="guessing yes" ;;
25009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25010 /* end confdefs.h. */
25014 # define my_snprintf snprintf
25016 # include <stdarg.h>
25017 static int my_snprintf (char *buf, int size, const char *format, ...)
25021 va_start (args, format);
25022 ret = vsnprintf (buf, size, format, args);
25029 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
25030 my_snprintf (buf, 1, "%d", 12345);
25031 return buf[1] != 'E';
25034 if ac_fn_c_try_run "$LINENO"; then :
25035 gl_cv_func_snprintf_size1=yes
25037 gl_cv_func_snprintf_size1=no
25039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25040 conftest.$ac_objext conftest.beam conftest.$ac_ext
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
25046 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
25048 case "$gl_cv_func_snprintf_size1" in
25051 case "$gl_cv_func_snprintf_retval_c99" in
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
25056 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
25057 if ${gl_cv_func_printf_positions+:} false; then :
25058 $as_echo_n "(cached) " >&6
25061 if test "$cross_compiling" = yes; then :
25064 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
25065 gl_cv_func_printf_positions="guessing no";;
25066 beos*) gl_cv_func_printf_positions="guessing no";;
25067 # Guess yes on Android.
25068 linux*-android*) gl_cv_func_printf_positions="guessing yes";;
25069 # Guess no on native Windows.
25070 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
25071 *) gl_cv_func_printf_positions="guessing yes";;
25075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25076 /* end confdefs.h. */
25079 #include <string.h>
25080 /* The string "%2$d %1$d", with dollar characters protected from the shell's
25081 dollar expansion (possibly an autoconf bug). */
25082 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
25083 static char buf[100];
25086 sprintf (buf, format, 33, 55);
25087 return (strcmp (buf, "55 33") != 0);
25090 if ac_fn_c_try_run "$LINENO"; then :
25091 gl_cv_func_printf_positions=yes
25093 gl_cv_func_printf_positions=no
25095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25096 conftest.$ac_objext conftest.beam conftest.$ac_ext
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
25102 $as_echo "$gl_cv_func_printf_positions" >&6; }
25104 case "$gl_cv_func_printf_positions" in
25106 gl_cv_func_snprintf_usable=yes
25114 if test $gl_cv_func_snprintf_usable = no; then
25125 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
25127 if test $ac_cv_func_snprintf = yes; then
25131 if test $ac_cv_have_decl_snprintf = yes; then
25139 if test $ac_cv_have_decl_snprintf = no; then
25140 HAVE_DECL_SNPRINTF=0
25154 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
25160 cat >>confdefs.h <<_ACEOF
25161 #define GNULIB_SNPRINTF 1
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25167 $as_echo_n "checking for ssize_t... " >&6; }
25168 if ${gt_cv_ssize_t+:} false; then :
25169 $as_echo_n "(cached) " >&6
25171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25172 /* end confdefs.h. */
25173 #include <sys/types.h>
25177 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25183 if ac_fn_c_try_compile "$LINENO"; then :
25188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25191 $as_echo "$gt_cv_ssize_t" >&6; }
25192 if test $gt_cv_ssize_t = no; then
25194 $as_echo "#define ssize_t int" >>confdefs.h
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
25208 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
25209 if ${gl_cv_func_stat_file_slash+:} false; then :
25210 $as_echo_n "(cached) " >&6
25213 # Assume that if we have lstat, we can also check symlinks.
25214 if test $ac_cv_func_lstat = yes; then
25215 ln -s conftest.tmp conftest.lnk
25217 if test "$cross_compiling" = yes; then :
25219 # Guess yes on Linux systems.
25220 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
25221 # Guess yes on glibc systems.
25222 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
25223 # If we don't know, assume the worst.
25224 *) gl_cv_func_stat_file_slash="guessing no" ;;
25228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25229 /* end confdefs.h. */
25230 #include <sys/stat.h>
25237 if (!stat ("conftest.tmp/", &st))
25240 if (!stat ("conftest.lnk/", &st))
25249 if ac_fn_c_try_run "$LINENO"; then :
25250 gl_cv_func_stat_file_slash=yes
25252 gl_cv_func_stat_file_slash=no
25254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25255 conftest.$ac_objext conftest.beam conftest.$ac_ext
25258 rm -f conftest.tmp conftest.lnk
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25261 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25262 case $gl_cv_func_stat_file_slash in
25266 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25276 if test $REPLACE_STAT = 1; then
25285 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
25297 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
25317 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
25325 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>
25326 #include <sys/stat.h>
25328 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
25330 cat >>confdefs.h <<_ACEOF
25331 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25335 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25336 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
25337 $as_echo_n "(cached) " >&6
25339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25340 /* end confdefs.h. */
25342 #include <sys/types.h>
25343 #include <sys/stat.h>
25344 #if HAVE_SYS_TIME_H
25345 # include <sys/time.h>
25348 struct timespec ts;
25361 if ac_fn_c_try_compile "$LINENO"; then :
25362 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
25364 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
25366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25369 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25370 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25372 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25376 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>
25377 #include <sys/stat.h>
25379 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
25381 cat >>confdefs.h <<_ACEOF
25382 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
25387 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25388 #include <sys/stat.h>
25390 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
25392 cat >>confdefs.h <<_ACEOF
25393 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
25398 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>
25399 #include <sys/stat.h>
25401 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
25403 cat >>confdefs.h <<_ACEOF
25404 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
25420 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>
25421 #include <sys/stat.h>
25423 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
25425 cat >>confdefs.h <<_ACEOF
25426 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
25431 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
25432 #include <sys/stat.h>
25434 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
25436 cat >>confdefs.h <<_ACEOF
25437 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
25442 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>
25443 #include <sys/stat.h>
25445 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
25447 cat >>confdefs.h <<_ACEOF
25448 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
25461 NEXT_STDARG_H='<stdarg.h>'
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
25463 $as_echo_n "checking for va_copy... " >&6; }
25464 if ${gl_cv_func_va_copy+:} false; then :
25465 $as_echo_n "(cached) " >&6
25467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25468 /* end confdefs.h. */
25469 #include <stdarg.h>
25475 void (*func) (va_list, va_list) = va_copy;
25482 if ac_fn_c_try_compile "$LINENO"; then :
25483 gl_cv_func_va_copy=yes
25485 gl_cv_func_va_copy=no
25487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
25491 $as_echo "$gl_cv_func_va_copy" >&6; }
25492 if test $gl_cv_func_va_copy = no; then
25493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25494 /* end confdefs.h. */
25495 #if defined _AIX && !defined __GNUC__
25500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25501 $EGREP "vaccine" >/dev/null 2>&1; then :
25508 if test $gl_aixcc = yes; then
25518 if test $gl_cv_have_include_next = yes; then
25519 gl_cv_next_stdarg_h='<'stdarg.h'>'
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
25522 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
25523 if ${gl_cv_next_stdarg_h+:} false; then :
25524 $as_echo_n "(cached) " >&6
25529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25530 /* end confdefs.h. */
25531 #include <stdarg.h>
25534 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25535 *) gl_absname_cpp="$ac_cpp" ;;
25540 gl_dirsep_regex='[/\\]'
25543 gl_dirsep_regex='\/'
25546 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25547 gl_header_literal_regex=`echo 'stdarg.h' \
25548 | sed -e "$gl_make_literal_regex_sed"`
25549 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25550 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25556 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25557 sed -n "$gl_absolute_header_sed"`
25559 gl_header=$gl_cv_absolute_stdarg_h
25560 gl_cv_next_stdarg_h='"'$gl_header'"'
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
25565 $as_echo "$gl_cv_next_stdarg_h" >&6; }
25567 NEXT_STDARG_H=$gl_cv_next_stdarg_h
25569 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25570 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25571 gl_next_as_first_directive='<'stdarg.h'>'
25573 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25574 gl_next_as_first_directive=$gl_cv_next_stdarg_h
25576 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
25581 if test "$gl_cv_next_stdarg_h" = '""'; then
25582 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
25583 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
25587 saved_as_echo_n="$as_echo_n"
25589 if ${gl_cv_func___va_copy+:} false; then :
25590 $as_echo_n "(cached) " >&6
25593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25594 /* end confdefs.h. */
25595 #include <stdarg.h>
25608 if ac_fn_c_try_compile "$LINENO"; then :
25609 gl_cv_func___va_copy=yes
25611 gl_cv_func___va_copy=no
25613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25616 as_echo_n="$saved_as_echo_n"
25618 if test $gl_cv_func___va_copy = yes; then
25620 $as_echo "#define va_copy __va_copy" >>confdefs.h
25625 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
25631 if test -n "$STDARG_H"; then
25632 GL_GENERATE_STDARG_H_TRUE=
25633 GL_GENERATE_STDARG_H_FALSE='#'
25635 GL_GENERATE_STDARG_H_TRUE='#'
25636 GL_GENERATE_STDARG_H_FALSE=
25644 # Define two additional variables used in the Makefile substitution.
25646 if test "$ac_cv_header_stdbool_h" = yes; then
25649 STDBOOL_H='stdbool.h'
25652 if test -n "$STDBOOL_H"; then
25653 GL_GENERATE_STDBOOL_H_TRUE=
25654 GL_GENERATE_STDBOOL_H_FALSE='#'
25656 GL_GENERATE_STDBOOL_H_TRUE='#'
25657 GL_GENERATE_STDBOOL_H_FALSE=
25661 if test "$ac_cv_type__Bool" = yes; then
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
25674 $as_echo_n "checking for good max_align_t... " >&6; }
25675 if ${gl_cv_type_max_align_t+:} false; then :
25676 $as_echo_n "(cached) " >&6
25678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25679 /* end confdefs.h. */
25680 #include <stddef.h>
25681 unsigned int s = sizeof (max_align_t);
25682 #if defined __GNUC__ || defined __IBM__ALIGNOF__
25683 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
25684 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
25695 if ac_fn_c_try_compile "$LINENO"; then :
25696 gl_cv_type_max_align_t=yes
25698 gl_cv_type_max_align_t=no
25700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
25704 $as_echo "$gl_cv_type_max_align_t" >&6; }
25705 if test $gl_cv_type_max_align_t = no; then
25710 if test $gt_cv_c_wchar_t = no; then
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
25716 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
25717 if ${gl_cv_decl_null_works+:} false; then :
25718 $as_echo_n "(cached) " >&6
25720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721 /* end confdefs.h. */
25722 #include <stddef.h>
25723 int test[2 * (sizeof NULL == sizeof (void *)) -1];
25733 if ac_fn_c_try_compile "$LINENO"; then :
25734 gl_cv_decl_null_works=yes
25736 gl_cv_decl_null_works=no
25738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
25741 $as_echo "$gl_cv_decl_null_works" >&6; }
25742 if test $gl_cv_decl_null_works = no; then
25748 if test -n "$STDDEF_H"; then
25749 GL_GENERATE_STDDEF_H_TRUE=
25750 GL_GENERATE_STDDEF_H_FALSE='#'
25752 GL_GENERATE_STDDEF_H_TRUE='#'
25753 GL_GENERATE_STDDEF_H_FALSE=
25756 if test -n "$STDDEF_H"; then
25765 if test $gl_cv_have_include_next = yes; then
25766 gl_cv_next_stddef_h='<'stddef.h'>'
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
25769 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
25770 if ${gl_cv_next_stddef_h+:} false; then :
25771 $as_echo_n "(cached) " >&6
25776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25777 /* end confdefs.h. */
25778 #include <stddef.h>
25781 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25782 *) gl_absname_cpp="$ac_cpp" ;;
25787 gl_dirsep_regex='[/\\]'
25790 gl_dirsep_regex='\/'
25793 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25794 gl_header_literal_regex=`echo 'stddef.h' \
25795 | sed -e "$gl_make_literal_regex_sed"`
25796 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25797 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25803 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25804 sed -n "$gl_absolute_header_sed"`
25806 gl_header=$gl_cv_absolute_stddef_h
25807 gl_cv_next_stddef_h='"'$gl_header'"'
25811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
25812 $as_echo "$gl_cv_next_stddef_h" >&6; }
25814 NEXT_STDDEF_H=$gl_cv_next_stddef_h
25816 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25817 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25818 gl_next_as_first_directive='<'stddef.h'>'
25820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25821 gl_next_as_first_directive=$gl_cv_next_stddef_h
25823 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
25833 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
25844 if test $gl_cv_have_include_next = yes; then
25845 gl_cv_next_stdio_h='<'stdio.h'>'
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
25848 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
25849 if ${gl_cv_next_stdio_h+:} false; then :
25850 $as_echo_n "(cached) " >&6
25855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25856 /* end confdefs.h. */
25860 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25861 *) gl_absname_cpp="$ac_cpp" ;;
25866 gl_dirsep_regex='[/\\]'
25869 gl_dirsep_regex='\/'
25872 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25873 gl_header_literal_regex=`echo 'stdio.h' \
25874 | sed -e "$gl_make_literal_regex_sed"`
25875 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25876 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25882 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25883 sed -n "$gl_absolute_header_sed"`
25885 gl_header=$gl_cv_absolute_stdio_h
25886 gl_cv_next_stdio_h='"'$gl_header'"'
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
25891 $as_echo "$gl_cv_next_stdio_h" >&6; }
25893 NEXT_STDIO_H=$gl_cv_next_stdio_h
25895 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25896 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25897 gl_next_as_first_directive='<'stdio.h'>'
25899 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25900 gl_next_as_first_directive=$gl_cv_next_stdio_h
25902 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
25909 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
25910 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
25911 $as_echo_n "(cached) " >&6
25913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25914 /* end confdefs.h. */
25916 #define __STDC_FORMAT_MACROS 1
25918 #include <inttypes.h>
25919 /* For non-mingw systems, compilation will trivially succeed.
25920 For mingw, compilation will succeed for older mingw (system
25921 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
25922 #if (defined _WIN32 && ! defined __CYGWIN__) && \
25923 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
25924 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
25935 if ac_fn_c_try_compile "$LINENO"; then :
25936 gl_cv_func_printf_attribute_flavor=system
25938 gl_cv_func_printf_attribute_flavor=gnu
25940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
25943 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
25944 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
25946 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
25953 cat >>confdefs.h <<_ACEOF
25954 #define GNULIB_FSCANF 1
25961 cat >>confdefs.h <<_ACEOF
25962 #define GNULIB_SCANF 1
26000 if test $gl_cv_have_include_next = yes; then
26001 gl_cv_next_stdlib_h='<'stdlib.h'>'
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26004 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26005 if ${gl_cv_next_stdlib_h+:} false; then :
26006 $as_echo_n "(cached) " >&6
26011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26012 /* end confdefs.h. */
26013 #include <stdlib.h>
26016 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26017 *) gl_absname_cpp="$ac_cpp" ;;
26022 gl_dirsep_regex='[/\\]'
26025 gl_dirsep_regex='\/'
26028 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26029 gl_header_literal_regex=`echo 'stdlib.h' \
26030 | sed -e "$gl_make_literal_regex_sed"`
26031 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26032 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26038 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26039 sed -n "$gl_absolute_header_sed"`
26041 gl_header=$gl_cv_absolute_stdlib_h
26042 gl_cv_next_stdlib_h='"'$gl_header'"'
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26047 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26049 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
26051 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26052 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26053 gl_next_as_first_directive='<'stdlib.h'>'
26055 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26056 gl_next_as_first_directive=$gl_cv_next_stdlib_h
26058 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
26073 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
26075 $as_echo_n "checking for working strerror function... " >&6; }
26076 if ${gl_cv_func_working_strerror+:} false; then :
26077 $as_echo_n "(cached) " >&6
26079 if test "$cross_compiling" = yes; then :
26081 # Guess yes on glibc systems.
26082 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
26083 # If we don't know, assume the worst.
26084 *) gl_cv_func_working_strerror="guessing no" ;;
26088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26089 /* end confdefs.h. */
26090 #include <string.h>
26095 if (!*strerror (-2)) return 1;
26100 if ac_fn_c_try_run "$LINENO"; then :
26101 gl_cv_func_working_strerror=yes
26103 gl_cv_func_working_strerror=no
26105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26106 conftest.$ac_objext conftest.beam conftest.$ac_ext
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
26112 $as_echo "$gl_cv_func_working_strerror" >&6; }
26113 case "$gl_cv_func_working_strerror" in
26124 if test $REPLACE_STRERROR = 1; then
26133 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
26138 cat >>confdefs.h <<_ACEOF
26139 #define GNULIB_STRERROR 1
26154 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
26160 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
26169 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
26175 if test $ac_cv_header_sys_socket_h != yes; then
26176 for ac_header in winsock2.h
26178 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26179 if test "x$ac_cv_header_winsock2_h" = xyes; then :
26180 cat >>confdefs.h <<_ACEOF
26181 #define HAVE_WINSOCK2_H 1
26189 if test "$ac_cv_header_winsock2_h" = yes; then
26191 UNISTD_H_HAVE_WINSOCK2_H=1
26192 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
26208 if test $ac_cv_have_decl_strndup = no; then
26209 HAVE_DECL_STRNDUP=0
26212 if test $ac_cv_func_strndup = yes; then
26214 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
26216 $as_echo_n "checking for working strndup... " >&6; }
26217 if ${gl_cv_func_strndup_works+:} false; then :
26218 $as_echo_n "(cached) " >&6
26220 if test "$cross_compiling" = yes; then :
26223 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
26224 *) gl_cv_func_strndup_works="guessing yes";;
26228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26229 /* end confdefs.h. */
26231 #include <string.h>
26232 #include <stdlib.h>
26237 #if !HAVE_DECL_STRNDUP
26242 char *strndup (const char *, size_t);
26246 s = strndup ("some longer string", 15);
26248 s = strndup ("shorter string", 13);
26249 result = s[13] != '\0';
26256 if ac_fn_c_try_run "$LINENO"; then :
26257 gl_cv_func_strndup_works=yes
26259 gl_cv_func_strndup_works=no
26261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26262 conftest.$ac_objext conftest.beam conftest.$ac_ext
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
26267 $as_echo "$gl_cv_func_strndup_works" >&6; }
26268 case $gl_cv_func_strndup_works in
26269 *no) REPLACE_STRNDUP=1 ;;
26275 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
26284 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
26298 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
26308 if test $ac_cv_have_decl_strnlen = no; then
26309 HAVE_DECL_STRNLEN=0
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
26313 $as_echo_n "checking for working strnlen... " >&6; }
26314 if ${ac_cv_func_strnlen_working+:} false; then :
26315 $as_echo_n "(cached) " >&6
26317 if test "$cross_compiling" = yes; then :
26318 # Guess no on AIX systems, yes otherwise.
26320 aix*) ac_cv_func_strnlen_working=no;;
26321 *) ac_cv_func_strnlen_working=yes;;
26324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26325 /* end confdefs.h. */
26326 $ac_includes_default
26332 #define S_LEN (sizeof S - 1)
26334 /* At least one implementation is buggy: that of AIX 4.3 would
26335 give strnlen (S, 1) == 3. */
26338 for (i = 0; i < S_LEN + 1; ++i)
26340 int expected = i <= S_LEN ? i : S_LEN;
26341 if (strnlen (S, i) != expected)
26350 if ac_fn_c_try_run "$LINENO"; then :
26351 ac_cv_func_strnlen_working=yes
26353 ac_cv_func_strnlen_working=no
26355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26356 conftest.$ac_objext conftest.beam conftest.$ac_ext
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
26361 $as_echo "$ac_cv_func_strnlen_working" >&6; }
26362 test $ac_cv_func_strnlen_working = no && :
26365 if test $ac_cv_func_strnlen_working = no; then
26370 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
26379 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
26394 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
26404 if test $ac_cv_have_decl_strsignal = no; then
26405 HAVE_DECL_STRSIGNAL=0
26408 for ac_func in strsignal
26410 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
26411 if test "x$ac_cv_func_strsignal" = xyes; then :
26412 cat >>confdefs.h <<_ACEOF
26413 #define HAVE_STRSIGNAL 1
26419 if test $ac_cv_func_strsignal = yes; then
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
26422 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
26423 if ${gl_cv_func_working_strsignal+:} false; then :
26424 $as_echo_n "(cached) " >&6
26426 if test "$cross_compiling" = yes; then :
26428 solaris* | aix*) gl_cv_func_working_strsignal=no;;
26429 *) gl_cv_func_working_strsignal="guessing yes";;
26432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26433 /* end confdefs.h. */
26434 #include <string.h>
26435 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
26441 char *s = strsignal (-1);
26442 if (s == (char *) 0)
26444 if (s == (char *) -1)
26452 if ac_fn_c_try_run "$LINENO"; then :
26453 gl_cv_func_working_strsignal=yes
26455 gl_cv_func_working_strsignal=no
26457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26458 conftest.$ac_objext conftest.beam conftest.$ac_ext
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
26463 $as_echo "$gl_cv_func_working_strsignal" >&6; }
26464 if test "$gl_cv_func_working_strsignal" = no; then
26465 REPLACE_STRSIGNAL=1
26471 if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
26480 gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
26485 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
26487 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
26493 cat >>confdefs.h <<_ACEOF
26494 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
26510 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
26530 if test $gl_cv_have_include_next = yes; then
26531 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26534 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26535 if ${gl_cv_next_sys_stat_h+:} false; then :
26536 $as_echo_n "(cached) " >&6
26539 if test $ac_cv_header_sys_stat_h = yes; then
26544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26545 /* end confdefs.h. */
26546 #include <sys/stat.h>
26549 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26550 *) gl_absname_cpp="$ac_cpp" ;;
26555 gl_dirsep_regex='[/\\]'
26558 gl_dirsep_regex='\/'
26561 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26562 gl_header_literal_regex=`echo 'sys/stat.h' \
26563 | sed -e "$gl_make_literal_regex_sed"`
26564 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26565 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26571 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26572 sed -n "$gl_absolute_header_sed"`
26574 gl_header=$gl_cv_absolute_sys_stat_h
26575 gl_cv_next_sys_stat_h='"'$gl_header'"'
26577 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26583 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
26585 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
26587 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26589 gl_next_as_first_directive='<'sys/stat.h'>'
26591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26592 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
26594 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
26603 WINDOWS_STAT_TIMESPEC=0
26612 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
26613 #include <sys/stat.h>
26615 if test "x$ac_cv_type_nlink_t" = xyes; then :
26619 $as_echo "#define nlink_t int" >>confdefs.h
26647 if test $gl_cv_have_include_next = yes; then
26648 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
26651 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
26652 if ${gl_cv_next_sys_wait_h+:} false; then :
26653 $as_echo_n "(cached) " >&6
26656 if test $ac_cv_header_sys_wait_h = yes; then
26661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26662 /* end confdefs.h. */
26663 #include <sys/wait.h>
26666 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26667 *) gl_absname_cpp="$ac_cpp" ;;
26672 gl_dirsep_regex='[/\\]'
26675 gl_dirsep_regex='\/'
26678 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26679 gl_header_literal_regex=`echo 'sys/wait.h' \
26680 | sed -e "$gl_make_literal_regex_sed"`
26681 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26682 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26688 gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26689 sed -n "$gl_absolute_header_sed"`
26691 gl_header=$gl_cv_absolute_sys_wait_h
26692 gl_cv_next_sys_wait_h='"'$gl_header'"'
26694 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
26700 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
26702 NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
26704 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26705 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26706 gl_next_as_first_directive='<'sys/wait.h'>'
26708 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26709 gl_next_as_first_directive=$gl_cv_next_sys_wait_h
26711 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
26751 if test $gl_cv_have_include_next = yes; then
26752 gl_cv_next_unistd_h='<'unistd.h'>'
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
26755 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
26756 if ${gl_cv_next_unistd_h+:} false; then :
26757 $as_echo_n "(cached) " >&6
26760 if test $ac_cv_header_unistd_h = yes; then
26765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26766 /* end confdefs.h. */
26767 #include <unistd.h>
26770 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26771 *) gl_absname_cpp="$ac_cpp" ;;
26776 gl_dirsep_regex='[/\\]'
26779 gl_dirsep_regex='\/'
26782 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26783 gl_header_literal_regex=`echo 'unistd.h' \
26784 | sed -e "$gl_make_literal_regex_sed"`
26785 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26786 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26792 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26793 sed -n "$gl_absolute_header_sed"`
26795 gl_header=$gl_cv_absolute_unistd_h
26796 gl_cv_next_unistd_h='"'$gl_header'"'
26798 gl_cv_next_unistd_h='<'unistd.h'>'
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
26804 $as_echo "$gl_cv_next_unistd_h" >&6; }
26806 NEXT_UNISTD_H=$gl_cv_next_unistd_h
26808 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26809 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26810 gl_next_as_first_directive='<'unistd.h'>'
26812 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26813 gl_next_as_first_directive=$gl_cv_next_unistd_h
26815 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
26820 if test $ac_cv_header_unistd_h = yes; then
26838 if test $ac_cv_have_decl_unsetenv = no; then
26839 HAVE_DECL_UNSETENV=0
26841 for ac_func in unsetenv
26843 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
26844 if test "x$ac_cv_func_unsetenv" = xyes; then :
26845 cat >>confdefs.h <<_ACEOF
26846 #define HAVE_UNSETENV 1
26852 if test $ac_cv_func_unsetenv = no; then
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
26857 $as_echo_n "checking for unsetenv() return type... " >&6; }
26858 if ${gt_cv_func_unsetenv_ret+:} false; then :
26859 $as_echo_n "(cached) " >&6
26861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26862 /* end confdefs.h. */
26865 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
26866 #include <stdlib.h>
26871 int unsetenv (const char *name);
26881 if ac_fn_c_try_compile "$LINENO"; then :
26882 gt_cv_func_unsetenv_ret='int'
26884 gt_cv_func_unsetenv_ret='void'
26886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
26889 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
26890 if test $gt_cv_func_unsetenv_ret = 'void'; then
26892 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
26898 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
26899 if ${gl_cv_func_unsetenv_works+:} false; then :
26900 $as_echo_n "(cached) " >&6
26902 if test "$cross_compiling" = yes; then :
26904 # Guess yes on glibc systems.
26905 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
26906 # If we don't know, assume the worst.
26907 *) gl_cv_func_unsetenv_works="guessing no" ;;
26911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26912 /* end confdefs.h. */
26914 #include <stdlib.h>
26916 extern char **environ;
26922 char entry1[] = "a=1";
26923 char entry2[] = "b=2";
26924 char *env[] = { entry1, entry2, NULL };
26925 if (putenv ((char *) "a=1")) return 1;
26926 if (putenv (entry2)) return 2;
26929 if (getenv ("a")) return 3;
26930 if (!unsetenv ("") || errno != EINVAL) return 4;
26933 if (!getenv ("a")) return 5;
26936 if (getenv ("a")) return 6;
26942 if ac_fn_c_try_run "$LINENO"; then :
26943 gl_cv_func_unsetenv_works=yes
26945 gl_cv_func_unsetenv_works=no
26947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26948 conftest.$ac_objext conftest.beam conftest.$ac_ext
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
26953 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
26954 case "$gl_cv_func_unsetenv_works" in
26962 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
26971 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
26989 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
26995 if test $ac_cv_func_vasnprintf = no; then
27006 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
27016 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
27026 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
27036 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
27038 if test $ac_cv_func_vasnprintf = yes; then
27040 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
27054 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
27055 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
27059 $as_echo "#define ptrdiff_t long" >>confdefs.h
27073 for ac_func in vasprintf
27075 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
27076 if test "x$ac_cv_func_vasprintf" = xyes; then :
27077 cat >>confdefs.h <<_ACEOF
27078 #define HAVE_VASPRINTF 1
27084 if test $ac_cv_func_vasprintf = no; then
27094 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
27104 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
27107 if test $ac_cv_func_vasprintf = yes; then
27108 REPLACE_VASPRINTF=1
27133 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
27139 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
27143 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
27149 mingw*) HAVE_WAITPID=0 ;;
27152 if test $HAVE_WAITPID = 0; then
27161 gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
27175 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
27191 if test $gl_cv_have_include_next = yes; then
27192 gl_cv_next_wchar_h='<'wchar.h'>'
27194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
27195 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
27196 if ${gl_cv_next_wchar_h+:} false; then :
27197 $as_echo_n "(cached) " >&6
27200 if test $ac_cv_header_wchar_h = yes; then
27205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27206 /* end confdefs.h. */
27210 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27211 *) gl_absname_cpp="$ac_cpp" ;;
27216 gl_dirsep_regex='[/\\]'
27219 gl_dirsep_regex='\/'
27222 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27223 gl_header_literal_regex=`echo 'wchar.h' \
27224 | sed -e "$gl_make_literal_regex_sed"`
27225 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27226 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27232 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27233 sed -n "$gl_absolute_header_sed"`
27235 gl_header=$gl_cv_absolute_wchar_h
27236 gl_cv_next_wchar_h='"'$gl_header'"'
27238 gl_cv_next_wchar_h='<'wchar.h'>'
27243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
27244 $as_echo "$gl_cv_next_wchar_h" >&6; }
27246 NEXT_WCHAR_H=$gl_cv_next_wchar_h
27248 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27249 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27250 gl_next_as_first_directive='<'wchar.h'>'
27252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27253 gl_next_as_first_directive=$gl_cv_next_wchar_h
27255 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
27260 if test $ac_cv_header_wchar_h = yes; then
27270 if test $gt_cv_c_wint_t = yes; then
27287 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27294 if test $REPLACE_WRITE = 1; then
27303 gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
27318 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
27325 for ac_header in stdint.h
27327 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
27328 if test "x$ac_cv_header_stdint_h" = xyes; then :
27329 cat >>confdefs.h <<_ACEOF
27330 #define HAVE_STDINT_H 1
27346 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
27348 # End of code from modules
27369 gl_source_base='tests'
27370 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
27372 gl_module_indicator_condition=$gltests_WITNESS
27383 for ac_header in fcntl.h
27385 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
27386 if test "x$ac_cv_header_fcntl_h" = xyes; then :
27387 cat >>confdefs.h <<_ACEOF
27388 #define HAVE_FCNTL_H 1
27395 for ac_func in clearenv
27397 ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
27398 if test "x$ac_cv_func_clearenv" = xyes; then :
27399 cat >>confdefs.h <<_ACEOF
27400 #define HAVE_CLEARENV 1
27407 # Checks for structures and compiler characteristics.
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27409 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27410 if ${ac_cv_c_const+:} false; then :
27411 $as_echo_n "(cached) " >&6
27413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27414 /* end confdefs.h. */
27420 #ifndef __cplusplus
27421 /* Ultrix mips cc rejects this sort of thing. */
27422 typedef int charset[2];
27423 const charset cs = { 0, 0 };
27424 /* SunOS 4.1.1 cc rejects this. */
27425 char const *const *pcpcc;
27427 /* NEC SVR4.0.2 mips cc rejects this. */
27428 struct point {int x, y;};
27429 static struct point const zero = {0,0};
27430 /* AIX XL C 1.02.0.0 rejects this.
27431 It does not let you subtract one const X* pointer from another in
27432 an arm of an if-expression whose if-part is not a constant
27434 const char *g = "string";
27435 pcpcc = &g + (g ? g-g : 0);
27436 /* HPUX 7.0 cc rejects these. */
27438 ppc = (char**) pcpcc;
27439 pcpcc = (char const *const *) ppc;
27440 { /* SCO 3.2v4 cc rejects this sort of thing. */
27443 char const *s = 0 ? (char *) 0 : (char const *) 0;
27448 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27449 int x[] = {25, 17};
27450 const int *foo = &x[0];
27453 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27454 typedef const int *iptr;
27458 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27459 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27460 struct s { int j; const int *ap[3]; } bx;
27461 struct s *b = &bx; b->j = 5;
27463 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27464 const int foo = 10;
27465 if (!foo) return 0;
27467 return !cs[0] && !zero.x;
27474 if ac_fn_c_try_compile "$LINENO"; then :
27479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27482 $as_echo "$ac_cv_c_const" >&6; }
27483 if test $ac_cv_c_const = no; then
27485 $as_echo "#define const /**/" >>confdefs.h
27489 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27490 if test "x$ac_cv_type_pid_t" = xyes; then :
27494 cat >>confdefs.h <<_ACEOF
27500 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27501 if test "x$ac_cv_type_size_t" = xyes; then :
27505 cat >>confdefs.h <<_ACEOF
27506 #define size_t unsigned int
27512 # We must have fork(2) support.
27513 for ac_header in vfork.h
27515 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
27516 if test "x$ac_cv_header_vfork_h" = xyes; then :
27517 cat >>confdefs.h <<_ACEOF
27518 #define HAVE_VFORK_H 1
27525 for ac_func in fork vfork
27527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27529 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27530 cat >>confdefs.h <<_ACEOF
27531 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27537 if test "x$ac_cv_func_fork" = xyes; then
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
27539 $as_echo_n "checking for working fork... " >&6; }
27540 if ${ac_cv_func_fork_works+:} false; then :
27541 $as_echo_n "(cached) " >&6
27543 if test "$cross_compiling" = yes; then :
27544 ac_cv_func_fork_works=cross
27546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27547 /* end confdefs.h. */
27548 $ac_includes_default
27553 /* By Ruediger Kuhlmann. */
27554 return fork () < 0;
27560 if ac_fn_c_try_run "$LINENO"; then :
27561 ac_cv_func_fork_works=yes
27563 ac_cv_func_fork_works=no
27565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27566 conftest.$ac_objext conftest.beam conftest.$ac_ext
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
27571 $as_echo "$ac_cv_func_fork_works" >&6; }
27574 ac_cv_func_fork_works=$ac_cv_func_fork
27576 if test "x$ac_cv_func_fork_works" = xcross; then
27578 *-*-amigaos* | *-*-msdosdjgpp*)
27579 # Override, as these systems have only a dummy fork() stub
27580 ac_cv_func_fork_works=no
27583 ac_cv_func_fork_works=yes
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
27587 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
27589 ac_cv_func_vfork_works=$ac_cv_func_vfork
27590 if test "x$ac_cv_func_vfork" = xyes; then
27591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
27592 $as_echo_n "checking for working vfork... " >&6; }
27593 if ${ac_cv_func_vfork_works+:} false; then :
27594 $as_echo_n "(cached) " >&6
27596 if test "$cross_compiling" = yes; then :
27597 ac_cv_func_vfork_works=cross
27599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27600 /* end confdefs.h. */
27601 /* Thanks to Paul Eggert for this test. */
27602 $ac_includes_default
27603 #include <sys/wait.h>
27604 #ifdef HAVE_VFORK_H
27605 # include <vfork.h>
27607 /* On some sparc systems, changes by the child to local and incoming
27608 argument registers are propagated back to the parent. The compiler
27609 is told about this with #include <vfork.h>, but some compilers
27610 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
27611 static variable whose address is put into a register that is
27612 clobbered by the vfork. */
27615 sparc_address_test (int arg)
27617 sparc_address_test (arg) int arg;
27620 static pid_t child;
27638 pid_t parent = getpid ();
27641 sparc_address_test (0);
27646 /* Here is another test for sparc vfork register problems. This
27647 test uses lots of local variables, at least as many local
27648 variables as main has allocated so far including compiler
27649 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
27650 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
27651 reuse the register of parent for one of the local variables,
27652 since it will think that parent can't possibly be used any more
27653 in this routine. Assigning to the local variable will thus
27654 munge parent in the parent process. */
27656 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
27657 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
27658 /* Convince the compiler that p..p7 are live; otherwise, it might
27659 use the same hardware register for all 8 local variables. */
27660 if (p != p1 || p != p2 || p != p3 || p != p4
27661 || p != p5 || p != p6 || p != p7)
27664 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
27665 from child file descriptors. If the child closes a descriptor
27666 before it execs or exits, this munges the parent's descriptor
27667 as well. Test for this by closing stdout in the child. */
27668 _exit(close(fileno(stdout)) != 0);
27673 while (wait(&status) != child)
27676 /* Was there some problem with vforking? */
27679 /* Did the child fail? (This shouldn't happen.) */
27682 /* Did the vfork/compiler bug occur? */
27683 || parent != getpid()
27685 /* Did the file descriptor bug occur? */
27686 || fstat(fileno(stdout), &st) != 0
27691 if ac_fn_c_try_run "$LINENO"; then :
27692 ac_cv_func_vfork_works=yes
27694 ac_cv_func_vfork_works=no
27696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27697 conftest.$ac_objext conftest.beam conftest.$ac_ext
27701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
27702 $as_echo "$ac_cv_func_vfork_works" >&6; }
27705 if test "x$ac_cv_func_fork_works" = xcross; then
27706 ac_cv_func_vfork_works=$ac_cv_func_vfork
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
27708 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
27711 if test "x$ac_cv_func_vfork_works" = xyes; then
27713 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
27717 $as_echo "#define vfork fork" >>confdefs.h
27720 if test "x$ac_cv_func_fork_works" = xyes; then
27722 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
27726 if test "x$ac_cv_func_fork_works" != xyes; then
27727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27729 as_fn_error $? "cannot use libpipeline on systems without fork
27730 See \`config.log' for more details" "$LINENO" 5; }
27733 # Check for socketpair(2) as fast replacement for pipe(2).
27734 # Check whether --enable-socketpair-pipe was given.
27735 if test "${enable_socketpair_pipe+set}" = set; then :
27736 enableval=$enable_socketpair_pipe; if test "$enableval" = "yes"
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
27739 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
27740 if ${pipeline_cv_socketpair_pipe+:} false; then :
27741 $as_echo_n "(cached) " >&6
27744 if test "$cross_compiling" = yes; then :
27745 pipeline_cv_socketpair_pipe=no
27747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27748 /* end confdefs.h. */
27751 #include <netinet/in.h>
27752 #include <signal.h>
27753 #include <sys/socket.h>
27754 #include <sys/types.h>
27755 #include <sys/wait.h>
27756 #include <unistd.h>
27764 static void sigpipe(int sig)
27771 const char test[] = "May use socketpair(2) instead of pipe(2)\n";
27775 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
27777 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
27779 if ((pid = fork()) < 0)
27784 if (read(sfd[0],buf,sizeof(buf)) < 0)
27788 write(sfd[1],test,sizeof(test) - 1);
27792 signal(SIGPIPE, sigpipe);
27793 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
27795 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
27798 write(sfd[1],test,sizeof(test) - 1);
27802 if ac_fn_c_try_run "$LINENO"; then :
27803 pipeline_cv_socketpair_pipe=yes
27805 pipeline_cv_socketpair_pipe=no
27807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27808 conftest.$ac_objext conftest.beam conftest.$ac_ext
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
27815 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
27816 if test "$pipeline_cv_socketpair_pipe" = yes; then
27818 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
27822 if test "$pipeline_cv_socketpair_pipe" = yes; then
27823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
27824 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
27825 if ${pipeline_cv_socketpair_mode+:} false; then :
27826 $as_echo_n "(cached) " >&6
27829 if test "$cross_compiling" = yes; then :
27830 pipeline_cv_socketpair_mode=no
27832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27833 /* end confdefs.h. */
27836 #include <netinet/in.h>
27837 #include <sys/stat.h>
27838 #include <sys/socket.h>
27839 #include <sys/types.h>
27840 #include <unistd.h>
27852 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
27854 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
27856 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
27858 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
27860 if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
27862 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
27864 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
27869 if ac_fn_c_try_run "$LINENO"; then :
27870 pipeline_cv_socketpair_mode=yes
27872 pipeline_cv_socketpair_mode=no
27874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27875 conftest.$ac_objext conftest.beam conftest.$ac_ext
27881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
27882 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
27883 if test "$pipeline_cv_socketpair_mode" = yes; then
27885 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
27896 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
27897 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
27898 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
27900 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
27902 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
27903 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
27904 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
27905 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
27906 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
27908 ac_config_files="$ac_config_files Makefile gl/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
27910 cat >confcache <<\_ACEOF
27911 # This file is a shell script that caches the results of configure
27912 # tests run on this system so they can be shared between configure
27913 # scripts and configure runs, see configure's option --config-cache.
27914 # It is not useful on other systems. If it contains results you don't
27915 # want to keep, you may remove or edit it.
27917 # config.status only pays attention to the cache file if you give it
27918 # the --recheck option to rerun configure.
27920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27922 # following values.
27926 # The following way of writing the cache mishandles newlines in values,
27927 # but we know of no workaround that is simple, portable, and efficient.
27928 # So, we kill variables containing newlines.
27929 # Ultrix sh set writes to stderr and can't be redirected directly,
27930 # and sets the high bit in the cache file unless we assign to the vars.
27932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27933 eval ac_val=\$$ac_var
27937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27941 _ | IFS | as_nl) ;; #(
27942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27943 *) { eval $ac_var=; unset $ac_var;} ;;
27949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27950 *${as_nl}ac_space=\ *)
27951 # `set' does not quote correctly, so add quotes: double-quote
27952 # substitution turns \\\\ into \\, and sed turns \\ into \.
27955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27958 # `set' quotes correctly as required by POSIX, so do not add quotes.
27959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27973 if test -w "$cache_file"; then
27974 if test "x$cache_file" != "x/dev/null"; then
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27976 $as_echo "$as_me: updating cache $cache_file" >&6;}
27977 if test ! -f "$cache_file" || test -h "$cache_file"; then
27978 cat confcache >"$cache_file"
27980 case $cache_file in #(
27982 mv -f confcache "$cache_file"$$ &&
27983 mv -f "$cache_file"$$ "$cache_file" ;; #(
27985 mv -f confcache "$cache_file" ;;
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27991 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27996 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27997 # Let make expand exec_prefix.
27998 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28000 DEFS=-DHAVE_CONFIG_H
28005 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28006 # 1. Remove the extension, and $U if already installed.
28007 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28008 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28009 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28010 # will be set to the directory where LIBOBJS objects are built.
28011 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28012 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28014 LIBOBJS=$ac_libobjs
28016 LTLIBOBJS=$ac_ltlibobjs
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28020 $as_echo_n "checking that generated files are newer than configure... " >&6; }
28021 if test -n "$am_sleep_pid"; then
28022 # Hide warnings about reused PIDs.
28023 wait $am_sleep_pid 2>/dev/null
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
28026 $as_echo "done" >&6; }
28027 if test -n "$EXEEXT"; then
28029 am__EXEEXT_FALSE='#'
28031 am__EXEEXT_TRUE='#'
28035 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28036 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28039 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28040 as_fn_error $? "conditional \"AMDEP\" was never defined.
28041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28043 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28044 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28047 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28048 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28051 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
28052 as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
28053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28055 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28056 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
28057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28059 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28060 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28063 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28064 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
28065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28067 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
28068 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
28069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28071 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
28072 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
28073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28075 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
28076 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
28077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28079 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
28080 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
28081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28083 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28084 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28087 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
28088 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
28089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28091 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28092 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
28093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28099 if test -n "$gl_LIBOBJS"; then
28100 # Remove the extension.
28101 sed_drop_objext='s/\.o$//;s/\.obj$//'
28102 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28103 gl_libobjs="$gl_libobjs $i.$ac_objext"
28104 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
28107 gl_LIBOBJS=$gl_libobjs
28109 gl_LTLIBOBJS=$gl_ltlibobjs
28115 if test -n "$gltests_LIBOBJS"; then
28116 # Remove the extension.
28117 sed_drop_objext='s/\.o$//;s/\.obj$//'
28118 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28119 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
28120 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
28123 gltests_LIBOBJS=$gltests_libobjs
28125 gltests_LTLIBOBJS=$gltests_ltlibobjs
28129 : "${CONFIG_STATUS=./config.status}"
28131 ac_clean_files_save=$ac_clean_files
28132 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28134 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28136 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28138 # Generated by $as_me.
28139 # Run this file to recreate the current configuration.
28140 # Compiler output produced by configure, useful for debugging
28141 # configure, is in config.log if it exists.
28144 ac_cs_recheck=false
28147 SHELL=\${CONFIG_SHELL-$SHELL}
28150 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28151 ## -------------------- ##
28152 ## M4sh Initialization. ##
28153 ## -------------------- ##
28155 # Be more Bourne compatible
28156 DUALCASE=1; export DUALCASE # for MKS sh
28157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28160 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28161 # is contrary to our usage. Disable this feature.
28162 alias -g '${1+"$@"}'='"$@"'
28163 setopt NO_GLOB_SUBST
28165 case `(set -o) 2>/dev/null` in #(
28177 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28178 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28179 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28180 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28181 # Prefer a ksh shell builtin over an external printf program on Solaris,
28182 # but without wasting forks for bash or zsh.
28183 if test -z "$BASH_VERSION$ZSH_VERSION" \
28184 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28185 as_echo='print -r --'
28186 as_echo_n='print -rn --'
28187 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28188 as_echo='printf %s\n'
28189 as_echo_n='printf %s'
28191 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28192 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28193 as_echo_n='/usr/ucb/echo -n'
28195 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28196 as_echo_n_body='eval
28200 expr "X$arg" : "X\\(.*\\)$as_nl";
28201 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28203 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28205 export as_echo_n_body
28206 as_echo_n='sh -c $as_echo_n_body as_echo'
28208 export as_echo_body
28209 as_echo='sh -c $as_echo_body as_echo'
28212 # The user is always right.
28213 if test "${PATH_SEPARATOR+set}" != set; then
28215 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28216 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28223 # We need space, tab and new line, in precisely that order. Quoting is
28224 # there to prevent editors from complaining about space-tab.
28225 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28226 # splitting by setting IFS to empty value.)
28229 # Find who we are. Look in the path if we contain no directory separator.
28232 *[\\/]* ) as_myself=$0 ;;
28233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28234 for as_dir in $PATH
28237 test -z "$as_dir" && as_dir=.
28238 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28244 # We did not find ourselves, most probably we were run as `sh COMMAND'
28245 # in which case we are not to be found in the path.
28246 if test "x$as_myself" = x; then
28249 if test ! -f "$as_myself"; then
28250 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28254 # Unset variables that we do not need and which cause bugs (e.g. in
28255 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28256 # suppresses any "Segmentation fault" message there. '((' could
28257 # trigger a bug in pdksh 5.2.14.
28258 for as_var in BASH_ENV ENV MAIL MAILPATH
28259 do eval test x\${$as_var+set} = xset \
28260 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28273 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28276 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28277 # ----------------------------------------
28278 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28279 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28280 # script with STATUS, using 1 if that was 0.
28283 as_status=$1; test $as_status -eq 0 && as_status=1
28285 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28286 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28288 $as_echo "$as_me: error: $2" >&2
28289 as_fn_exit $as_status
28293 # as_fn_set_status STATUS
28294 # -----------------------
28295 # Set $? to STATUS, without forking.
28296 as_fn_set_status ()
28299 } # as_fn_set_status
28301 # as_fn_exit STATUS
28302 # -----------------
28303 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28307 as_fn_set_status $1
28313 # Portably unset VAR.
28316 { eval $1=; unset $1;}
28318 as_unset=as_fn_unset
28319 # as_fn_append VAR VALUE
28320 # ----------------------
28321 # Append the text in VALUE to the end of the definition contained in VAR. Take
28322 # advantage of any shell optimizations that allow amortized linear growth over
28323 # repeated appends, instead of the typical quadratic growth present in naive
28325 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28326 eval 'as_fn_append ()
28337 # as_fn_arith ARG...
28338 # ------------------
28339 # Perform arithmetic evaluation on the ARGs, and store the result in the
28340 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28341 # must be portable across $(()) and expr.
28342 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28343 eval 'as_fn_arith ()
28350 as_val=`expr "$@" || test $? -eq 1`
28355 if expr a : '\(a\)' >/dev/null 2>&1 &&
28356 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28362 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28363 as_basename=basename
28368 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28374 as_me=`$as_basename -- "$0" ||
28375 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28376 X"$0" : 'X\(//\)$' \| \
28377 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28379 sed '/^.*\/\([^/][^/]*\)\/*$/{
28393 # Avoid depending upon Character Ranges.
28394 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28395 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28396 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28397 as_cr_digits='0123456789'
28398 as_cr_alnum=$as_cr_Letters$as_cr_digits
28400 ECHO_C= ECHO_N= ECHO_T=
28401 case `echo -n x` in #(((((
28403 case `echo 'xy\c'` in
28404 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28406 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28413 rm -f conf$$ conf$$.exe conf$$.file
28414 if test -d conf$$.dir; then
28415 rm -f conf$$.dir/conf$$.file
28418 mkdir conf$$.dir 2>/dev/null
28420 if (echo >conf$$.file) 2>/dev/null; then
28421 if ln -s conf$$.file conf$$ 2>/dev/null; then
28423 # ... but there are two gotchas:
28424 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28425 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28426 # In both cases, we have to default to `cp -pR'.
28427 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28429 elif ln conf$$.file conf$$ 2>/dev/null; then
28437 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28438 rmdir conf$$.dir 2>/dev/null
28443 # Create "$as_dir" as a directory, including parents if necessary.
28448 -*) as_dir=./$as_dir;;
28450 test -d "$as_dir" || eval $as_mkdir_p || {
28454 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28455 *) as_qdir=$as_dir;;
28457 as_dirs="'$as_qdir' $as_dirs"
28458 as_dir=`$as_dirname -- "$as_dir" ||
28459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28460 X"$as_dir" : 'X\(//\)[^/]' \| \
28461 X"$as_dir" : 'X\(//\)$' \| \
28462 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28463 $as_echo X"$as_dir" |
28464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28468 /^X\(\/\/\)[^/].*/{
28481 test -d "$as_dir" && break
28483 test -z "$as_dirs" || eval "mkdir $as_dirs"
28484 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28488 if mkdir -p . 2>/dev/null; then
28489 as_mkdir_p='mkdir -p "$as_dir"'
28491 test -d ./-p && rmdir ./-p
28496 # as_fn_executable_p FILE
28497 # -----------------------
28498 # Test if FILE is an executable regular file.
28499 as_fn_executable_p ()
28501 test -f "$1" && test -x "$1"
28502 } # as_fn_executable_p
28503 as_test_x='test -x'
28504 as_executable_p=as_fn_executable_p
28506 # Sed expression to map a string onto a valid CPP name.
28507 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28509 # Sed expression to map a string onto a valid variable name.
28510 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28514 ## ----------------------------------- ##
28515 ## Main body of $CONFIG_STATUS script. ##
28516 ## ----------------------------------- ##
28518 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28521 # Save the log message, to keep $0 and so on meaningful, and to
28522 # report actual input values of CONFIG_FILES etc. instead of their
28523 # values after options handling.
28525 This file was extended by libpipeline $as_me 1.5.1, which was
28526 generated by GNU Autoconf 2.69. Invocation command line was
28528 CONFIG_FILES = $CONFIG_FILES
28529 CONFIG_HEADERS = $CONFIG_HEADERS
28530 CONFIG_LINKS = $CONFIG_LINKS
28531 CONFIG_COMMANDS = $CONFIG_COMMANDS
28534 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28539 case $ac_config_files in *"
28540 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28543 case $ac_config_headers in *"
28544 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28549 # Files that config.status was made for.
28550 config_files="$ac_config_files"
28551 config_headers="$ac_config_headers"
28552 config_commands="$ac_config_commands"
28556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28558 \`$as_me' instantiates files and other configuration actions
28559 from templates according to the current configuration. Unless the files
28560 and actions are specified as TAGs, all are instantiated by default.
28562 Usage: $0 [OPTION]... [TAG]...
28564 -h, --help print this help, then exit
28565 -V, --version print version number and configuration settings, then exit
28566 --config print configuration, then exit
28567 -q, --quiet, --silent
28568 do not print progress messages
28569 -d, --debug don't remove temporary files
28570 --recheck update $as_me by reconfiguring in the same conditions
28571 --file=FILE[:TEMPLATE]
28572 instantiate the configuration file FILE
28573 --header=FILE[:TEMPLATE]
28574 instantiate the configuration header FILE
28576 Configuration files:
28579 Configuration headers:
28582 Configuration commands:
28585 Report bugs to <cjwatson@debian.org>."
28588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28589 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28591 libpipeline config.status 1.5.1
28592 configured by $0, generated by GNU Autoconf 2.69,
28593 with options \\"\$ac_cs_config\\"
28595 Copyright (C) 2012 Free Software Foundation, Inc.
28596 This config.status script is free software; the Free Software Foundation
28597 gives unlimited permission to copy, distribute and modify it."
28604 test -n "\$AWK" || AWK=awk
28607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28608 # The default lists apply if the user does not specify any file.
28614 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28615 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28619 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28631 # Handling of the options.
28632 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28634 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28635 $as_echo "$ac_cs_version"; exit ;;
28636 --config | --confi | --conf | --con | --co | --c )
28637 $as_echo "$ac_cs_config"; exit ;;
28638 --debug | --debu | --deb | --de | --d | -d )
28640 --file | --fil | --fi | --f )
28643 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28644 '') as_fn_error $? "missing file argument" ;;
28646 as_fn_append CONFIG_FILES " '$ac_optarg'"
28647 ac_need_defaults=false;;
28648 --header | --heade | --head | --hea )
28651 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28653 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28654 ac_need_defaults=false;;
28656 # Conflict between --help and --header
28657 as_fn_error $? "ambiguous option: \`$1'
28658 Try \`$0 --help' for more information.";;
28659 --help | --hel | -h )
28660 $as_echo "$ac_cs_usage"; exit ;;
28661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28662 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28665 # This is an error.
28666 -*) as_fn_error $? "unrecognized option: \`$1'
28667 Try \`$0 --help' for more information." ;;
28669 *) as_fn_append ac_config_targets " $1"
28670 ac_need_defaults=false ;;
28676 ac_configure_extra_args=
28678 if $ac_cs_silent; then
28680 ac_configure_extra_args="$ac_configure_extra_args --silent"
28684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28685 if \$ac_cs_recheck; then
28686 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28688 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28689 CONFIG_SHELL='$SHELL'
28690 export CONFIG_SHELL
28695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28699 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28700 ## Running $as_me. ##
28706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28710 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
28713 # The HP-UX ksh and POSIX shell print the target directory to stdout
28714 # if CDPATH is set.
28715 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28717 sed_quote_subst='$sed_quote_subst'
28718 double_quote_subst='$double_quote_subst'
28719 delay_variable_subst='$delay_variable_subst'
28720 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28721 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28722 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28723 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28724 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28725 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28726 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
28727 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28728 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28729 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
28730 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28731 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28732 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28733 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28734 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28735 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28736 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28737 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28738 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28739 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28740 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28741 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28742 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28743 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28744 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28745 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28746 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28747 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28748 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28749 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28750 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28751 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28752 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28753 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28754 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28755 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28756 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28757 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28758 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28759 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28760 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28761 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28762 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28763 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28764 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28765 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28766 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28767 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28768 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28769 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28770 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28771 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28772 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28773 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28774 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28775 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28776 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
28777 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28778 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"`'
28779 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
28780 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28781 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28782 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
28783 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28784 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28785 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28786 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28787 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28788 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28789 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28790 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28791 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28792 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28793 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28794 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28795 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28796 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28797 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28798 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28799 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28800 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28801 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28802 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28803 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28804 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28805 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28806 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28807 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28808 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28809 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28810 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28811 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28812 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28813 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28814 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28815 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28816 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28817 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28818 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28819 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28820 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28821 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28822 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28823 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28824 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28825 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28826 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28827 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28828 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28829 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28830 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28831 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28832 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28833 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28834 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28835 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28836 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28837 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28838 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28839 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28840 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28841 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28842 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28843 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28844 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28845 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28846 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28847 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
28848 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
28849 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28850 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28851 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28852 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28853 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28854 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28857 LTCFLAGS='$LTCFLAGS'
28858 compiler='$compiler_DEFAULT'
28860 # A function that is used when there is no print builtin or printf.
28861 func_fallback_echo ()
28863 eval 'cat <<_LTECHO_EOF
28868 # Quote evaled strings.
28883 deplibs_check_method \
28888 sharedlib_from_linklib_cmd \
28891 archiver_list_spec \
28897 lt_cv_sys_global_symbol_pipe \
28898 lt_cv_sys_global_symbol_to_cdecl \
28899 lt_cv_sys_global_symbol_to_import \
28900 lt_cv_sys_global_symbol_to_c_name_address \
28901 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28902 lt_cv_nm_interface \
28903 nm_file_list_spec \
28904 lt_cv_truncate_bin \
28905 lt_prog_compiler_no_builtin_flag \
28906 lt_prog_compiler_pic \
28907 lt_prog_compiler_wl \
28908 lt_prog_compiler_static \
28909 lt_cv_prog_compiler_c_o \
28918 export_dynamic_flag_spec \
28919 whole_archive_flag_spec \
28920 compiler_needs_object \
28922 allow_undefined_flag \
28923 no_undefined_flag \
28924 hardcode_libdir_flag_spec \
28925 hardcode_libdir_separator \
28929 variables_saved_for_relink \
28931 library_names_spec \
28933 install_override_mode \
28937 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28938 *[\\\\\\\`\\"\\\$]*)
28939 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28942 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28947 # Double-quote double-evaled strings.
28948 for var in reload_cmds \
28949 old_postinstall_cmds \
28950 old_postuninstall_cmds \
28952 extract_expsyms_cmds \
28953 old_archive_from_new_cmds \
28954 old_archive_from_expsyms_cmds \
28956 archive_expsym_cmds \
28958 module_expsym_cmds \
28959 export_symbols_cmds \
28963 postuninstall_cmds \
28965 sys_lib_search_path_spec \
28966 configure_time_dlsearch_path \
28967 configure_time_lt_sys_library_path; do
28968 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28969 *[\\\\\\\`\\"\\\$]*)
28970 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28973 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28978 ac_aux_dir='$ac_aux_dir'
28980 # See if we are running on zsh, and set the options that allow our
28981 # commands through without removal of \ escapes INIT.
28982 if test -n "\${ZSH_VERSION+set}"; then
28983 setopt NO_GLOB_SUBST
28997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28999 # Handling of arguments.
29000 for ac_config_target in $ac_config_targets
29002 case $ac_config_target in
29003 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29004 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29005 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29006 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29007 "gl/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gl/lib/Makefile" ;;
29008 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29009 "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
29010 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
29011 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29013 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29018 # If the user did not use the arguments to specify the items to instantiate,
29019 # then the envvar interface is used. Set only those that are not.
29020 # We use the long form for the default assignment because of an extremely
29021 # bizarre bug on SunOS 4.1.3.
29022 if $ac_need_defaults; then
29023 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29024 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29025 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29028 # Have a temporary directory for convenience. Make it in the build tree
29029 # simply because there is no reason against having it here, and in addition,
29030 # creating and moving files from /tmp can sometimes cause problems.
29031 # Hook for its removal unless debugging.
29032 # Note that there is a small window in which the directory will not be cleaned:
29033 # after its creation but before its name has been assigned to `$tmp'.
29037 trap 'exit_status=$?
29038 : "${ac_tmp:=$tmp}"
29039 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29041 trap 'as_fn_exit 1' 1 2 13 15
29043 # Create a (secure) tmp directory for tmp files.
29046 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29050 tmp=./conf$$-$RANDOM
29051 (umask 077 && mkdir "$tmp")
29052 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29055 # Set up the scripts for CONFIG_FILES section.
29056 # No need to generate them if there are no CONFIG_FILES.
29057 # This happens for instance with `./config.status config.h'.
29058 if test -n "$CONFIG_FILES"; then
29061 ac_cr=`echo X | tr X '\015'`
29062 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29063 # But we know of no other shell where ac_cr would be empty at this
29064 # point, so we can use a bashism as a fallback.
29065 if test "x$ac_cr" = x; then
29066 eval ac_cr=\$\'\\r\'
29068 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29069 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29072 ac_cs_awk_cr=$ac_cr
29075 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29080 echo "cat >conf$$subs.awk <<_ACEOF" &&
29081 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29083 } >conf$$subs.sh ||
29084 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29085 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29087 for ac_last_try in false false false false false :; do
29088 . ./conf$$subs.sh ||
29089 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29091 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29092 if test $ac_delim_n = $ac_delim_num; then
29094 elif $ac_last_try; then
29095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29097 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29100 rm -f conf$$subs.sh
29102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29103 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29107 s/^/S["/; s/!.*/"]=/
29117 s/\(.\{148\}\)..*/\1/
29119 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29124 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29131 s/\(.\{148\}\)..*/\1/
29133 s/["\\]/\\&/g; s/^/"/; s/$/"/
29137 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29142 ' <conf$$subs.awk | sed '
29147 ' >>$CONFIG_STATUS || ac_write_fail=1
29148 rm -f conf$$subs.awk
29149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29151 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29152 for (key in S) S_is_set[key] = 1
29158 nfields = split(line, field, "@")
29160 len = length(field[1])
29161 for (i = 2; i < nfields; i++) {
29163 keylen = length(key)
29164 if (S_is_set[key]) {
29166 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29167 len += length(value) + length(field[++i])
29178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29179 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29180 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29183 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29184 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29187 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29188 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29189 # trailing colons and then remove the whole line if VPATH becomes empty
29190 # (actually we leave an empty line to preserve line numbers).
29191 if test "x$srcdir" = x.; then
29192 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29211 fi # test -n "$CONFIG_FILES"
29213 # Set up the scripts for CONFIG_HEADERS section.
29214 # No need to generate them if there are no CONFIG_HEADERS.
29215 # This happens for instance with `./config.status Makefile'.
29216 if test -n "$CONFIG_HEADERS"; then
29217 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29221 # Transform confdefs.h into an awk script `defines.awk', embedded as
29222 # here-document in config.status, that substitutes the proper values into
29223 # config.h.in to produce config.h.
29225 # Create a delimiter string that does not exist in confdefs.h, to ease
29226 # handling of long lines.
29228 for ac_last_try in false false :; do
29229 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29230 if test -z "$ac_tt"; then
29232 elif $ac_last_try; then
29233 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29235 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29239 # For the awk script, D is an array of macro values keyed by name,
29240 # likewise P contains macro parameters if any. Preserve backslash
29241 # newline sequences.
29243 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29245 s/.\{148\}/&'"$ac_delim"'/g
29248 s/^[ ]*#[ ]*define[ ][ ]*/ /
29255 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29257 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29261 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29262 D["\1"]=" \3\\\\\\n"\\/p
29264 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29269 s/.\{148\}/&'"$ac_delim"'/g
29274 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29277 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29279 ' <confdefs.h | sed '
29280 s/'"$ac_delim"'/"\\\
29281 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29284 for (key in D) D_is_set[key] = 1
29287 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29289 split(line, arg, " ")
29290 if (arg[1] == "#") {
29294 defundef = substr(arg[1], 2)
29297 split(mac1, mac2, "(") #)
29299 prefix = substr(line, 1, index(line, defundef) - 1)
29300 if (D_is_set[macro]) {
29301 # Preserve the white space surrounding the "#".
29302 print prefix "define", macro P[macro] D[macro]
29305 # Replace #undef with comments. This is necessary, for example,
29306 # in the case of _POSIX_SOURCE, which is predefined and required
29307 # on some systems where configure will not decide to define it.
29308 if (defundef == "undef") {
29309 print "/*", prefix defundef, macro, "*/"
29317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29318 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29319 fi # test -n "$CONFIG_HEADERS"
29322 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29327 :[FHLC]) ac_mode=$ac_tag; continue;;
29329 case $ac_mode$ac_tag in
29331 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29332 :[FH]-) ac_tag=-:-;;
29333 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29350 -) ac_f="$ac_tmp/stdin";;
29351 *) # Look for the file first in the build tree, then in the source tree
29352 # (if the path is not absolute). The absolute path cannot be DOS-style,
29353 # because $ac_f cannot contain `:'.
29357 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29359 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29361 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29362 as_fn_append ac_file_inputs " '$ac_f'"
29365 # Let's still pretend it is `configure' which instantiates (i.e., don't
29366 # use $as_me), people would be surprised to read:
29367 # /* config.h. Generated by config.status. */
29368 configure_input='Generated from '`
29369 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29371 if test x"$ac_file" != x-; then
29372 configure_input="$ac_file. $configure_input"
29373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29374 $as_echo "$as_me: creating $ac_file" >&6;}
29376 # Neutralize special characters interpreted by sed in replacement strings.
29377 case $configure_input in #(
29378 *\&* | *\|* | *\\* )
29379 ac_sed_conf_input=`$as_echo "$configure_input" |
29380 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29381 *) ac_sed_conf_input=$configure_input;;
29385 *:-:* | *:-) cat >"$ac_tmp/stdin" \
29386 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29391 ac_dir=`$as_dirname -- "$ac_file" ||
29392 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29393 X"$ac_file" : 'X\(//\)[^/]' \| \
29394 X"$ac_file" : 'X\(//\)$' \| \
29395 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29396 $as_echo X"$ac_file" |
29397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29401 /^X\(\/\/\)[^/].*/{
29414 as_dir="$ac_dir"; as_fn_mkdir_p
29418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29420 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29421 # A ".." for each directory in $ac_dir_suffix.
29422 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29423 case $ac_top_builddir_sub in
29424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29428 ac_abs_top_builddir=$ac_pwd
29429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29430 # for backward compatibility:
29431 ac_top_builddir=$ac_top_build_prefix
29434 .) # We are building in place.
29436 ac_top_srcdir=$ac_top_builddir_sub
29437 ac_abs_top_srcdir=$ac_pwd ;;
29438 [\\/]* | ?:[\\/]* ) # Absolute name.
29439 ac_srcdir=$srcdir$ac_dir_suffix;
29440 ac_top_srcdir=$srcdir
29441 ac_abs_top_srcdir=$srcdir ;;
29442 *) # Relative name.
29443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29444 ac_top_srcdir=$ac_top_build_prefix$srcdir
29445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29457 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29458 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29460 ac_MKDIR_P=$MKDIR_P
29462 [\\/$]* | ?:[\\/]* ) ;;
29463 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29468 # If the template does not know about datarootdir, expand it.
29469 # FIXME: This hack should be removed a few years after 2.60.
29470 ac_datarootdir_hack=; ac_datarootdir_seen=
29481 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29482 *datarootdir*) ac_datarootdir_seen=yes;;
29483 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29485 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29488 ac_datarootdir_hack='
29489 s&@datadir@&$datadir&g
29490 s&@docdir@&$docdir&g
29491 s&@infodir@&$infodir&g
29492 s&@localedir@&$localedir&g
29493 s&@mandir@&$mandir&g
29494 s&\\\${datarootdir}&$datarootdir&g' ;;
29498 # Neutralize VPATH when `$srcdir' = `.'.
29499 # Shell code in configure.ac might set extrasub.
29500 # FIXME: do we really want to maintain this feature?
29501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29502 ac_sed_extra="$ac_vpsub
29505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29508 s|@configure_input@|$ac_sed_conf_input|;t t
29509 s&@top_builddir@&$ac_top_builddir_sub&;t t
29510 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29511 s&@srcdir@&$ac_srcdir&;t t
29512 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29513 s&@top_srcdir@&$ac_top_srcdir&;t t
29514 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29515 s&@builddir@&$ac_builddir&;t t
29516 s&@abs_builddir@&$ac_abs_builddir&;t t
29517 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29518 s&@INSTALL@&$ac_INSTALL&;t t
29519 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29520 $ac_datarootdir_hack
29522 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29523 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29525 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29526 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29527 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
29528 "$ac_tmp/out"`; test -z "$ac_out"; } &&
29529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29530 which seems to be undefined. Please make sure it is defined" >&5
29531 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29532 which seems to be undefined. Please make sure it is defined" >&2;}
29534 rm -f "$ac_tmp/stdin"
29536 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29537 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29545 if test x"$ac_file" != x-; then
29547 $as_echo "/* $configure_input */" \
29548 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29549 } >"$ac_tmp/config.h" \
29550 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29551 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29552 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29553 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29556 mv "$ac_tmp/config.h" "$ac_file" \
29557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29560 $as_echo "/* $configure_input */" \
29561 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29562 || as_fn_error $? "could not create -" "$LINENO" 5
29564 # Compute "$ac_file"'s index in $config_headers.
29567 for _am_header in $config_headers :; do
29568 case $_am_header in
29569 $_am_arg | $_am_arg:* )
29572 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29575 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29576 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29577 X"$_am_arg" : 'X\(//\)[^/]' \| \
29578 X"$_am_arg" : 'X\(//\)$' \| \
29579 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29580 $as_echo X"$_am_arg" |
29581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29585 /^X\(\/\/\)[^/].*/{
29597 s/.*/./; q'`/stamp-h$_am_stamp_count
29600 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29601 $as_echo "$as_me: executing $ac_file commands" >&6;}
29606 case $ac_file$ac_mode in
29607 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29608 # Older Autoconf quotes --file arguments for eval, but not when files
29609 # are listed without --file. Let's play safe and only enable the eval
29610 # if we detect the quoting.
29611 # TODO: see whether this extra hack can be removed once we start
29612 # requiring Autoconf 2.70 or later.
29613 case $CONFIG_FILES in #(
29615 eval set x "$CONFIG_FILES" ;; #(
29617 set x $CONFIG_FILES ;; #(
29622 # Used to flag and report bootstrapping failures.
29626 # Strip MF so we end up with the name of the file.
29627 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
29628 # Check whether this is an Automake generated Makefile which includes
29629 # dependency-tracking related rules and includes.
29630 # Grep'ing the whole file directly is not great: AIX grep has a line
29631 # limit of 2048, but all sed's we know have understand at least 4000.
29632 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
29634 am_dirpart=`$as_dirname -- "$am_mf" ||
29635 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29636 X"$am_mf" : 'X\(//\)[^/]' \| \
29637 X"$am_mf" : 'X\(//\)$' \| \
29638 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29639 $as_echo X"$am_mf" |
29640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29644 /^X\(\/\/\)[^/].*/{
29657 am_filepart=`$as_basename -- "$am_mf" ||
29658 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
29659 X"$am_mf" : 'X\(//\)$' \| \
29660 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29661 $as_echo X/"$am_mf" |
29662 sed '/^.*\/\([^/][^/]*\)\/*$/{
29675 { echo "$as_me:$LINENO: cd "$am_dirpart" \
29676 && sed -e '/# am--include-marker/d' "$am_filepart" \
29677 | $MAKE -f - am--depfiles" >&5
29678 (cd "$am_dirpart" \
29679 && sed -e '/# am--include-marker/d' "$am_filepart" \
29680 | $MAKE -f - am--depfiles) >&5 2>&5
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); } || am_rc=$?
29685 if test $am_rc -ne 0; then
29686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29688 as_fn_error $? "Something went wrong bootstrapping makefile fragments
29689 for automatic dependency tracking. Try re-running configure with the
29690 '--disable-dependency-tracking' option to at least be able to build
29691 the package (albeit without support for automatic dependency tracking).
29692 See \`config.log' for more details" "$LINENO" 5; }
29694 { am_dirpart=; unset am_dirpart;}
29695 { am_filepart=; unset am_filepart;}
29696 { am_mf=; unset am_mf;}
29697 { am_rc=; unset am_rc;}
29698 rm -f conftest-deps.mk
29703 # See if we are running on zsh, and set the options that allow our
29704 # commands through without removal of \ escapes.
29705 if test -n "${ZSH_VERSION+set}"; then
29706 setopt NO_GLOB_SUBST
29710 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29713 cat <<_LT_EOF >> "$cfgfile"
29715 # Generated automatically by $as_me ($PACKAGE) $VERSION
29716 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29718 # Provide generalized library-building support services.
29719 # Written by Gordon Matzigkeit, 1996
29721 # Copyright (C) 2014 Free Software Foundation, Inc.
29722 # This is free software; see the source for copying conditions. There is NO
29723 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
29725 # GNU Libtool is free software; you can redistribute it and/or modify
29726 # it under the terms of the GNU General Public License as published by
29727 # the Free Software Foundation; either version 2 of of the License, or
29728 # (at your option) any later version.
29730 # As a special exception to the GNU General Public License, if you
29731 # distribute this file as part of a program or library that is built
29732 # using GNU Libtool, you may include this file under the same
29733 # distribution terms that you use for the rest of that program.
29735 # GNU Libtool is distributed in the hope that it will be useful, but
29736 # WITHOUT ANY WARRANTY; without even the implied warranty of
29737 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29738 # GNU General Public License for more details.
29740 # You should have received a copy of the GNU General Public License
29741 # along with this program. If not, see <http://www.gnu.org/licenses/>.
29744 # The names of the tagged configurations supported by this script.
29747 # Configured defaults for sys_lib_dlsearch_path munging.
29748 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
29750 # ### BEGIN LIBTOOL CONFIG
29752 # Which release of libtool.m4 was used?
29753 macro_version=$macro_version
29754 macro_revision=$macro_revision
29756 # Whether or not to build static libraries.
29757 build_old_libs=$enable_static
29759 # Whether or not to build shared libraries.
29760 build_libtool_libs=$enable_shared
29762 # What type of objects to build.
29765 # Whether or not to optimize for fast installation.
29766 fast_install=$enable_fast_install
29768 # Shared archive member basename,for filename based shared library versioning on AIX.
29769 shared_archive_member_spec=$shared_archive_member_spec
29771 # Shell to use when invoking shell scripts.
29774 # An echo program that protects backslashes.
29777 # The PATH separator for the build system.
29778 PATH_SEPARATOR=$lt_PATH_SEPARATOR
29781 host_alias=$host_alias
29785 # The build system.
29786 build_alias=$build_alias
29790 # A sed program that does not truncate output.
29793 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29794 Xsed="\$SED -e 1s/^X//"
29796 # A grep program that handles long lines.
29802 # A literal string matcher.
29805 # A BSD- or MS-compatible name lister.
29808 # Whether we need soft or hard links.
29811 # What is the maximum length of a command?
29812 max_cmd_len=$max_cmd_len
29814 # Object file suffix (normally "o").
29817 # Executable file suffix (normally "").
29820 # whether the shell understands "unset".
29823 # turn spaces into newlines.
29826 # turn newlines into spaces.
29829 # convert \$build file names to \$host format.
29830 to_host_file_cmd=$lt_cv_to_host_file_cmd
29832 # convert \$build files to toolchain format.
29833 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29835 # An object symbol dumper.
29836 OBJDUMP=$lt_OBJDUMP
29838 # Method to check whether dependent libraries are shared objects.
29839 deplibs_check_method=$lt_deplibs_check_method
29841 # Command to use when deplibs_check_method = "file_magic".
29842 file_magic_cmd=$lt_file_magic_cmd
29844 # How to find potential files when deplibs_check_method = "file_magic".
29845 file_magic_glob=$lt_file_magic_glob
29847 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29848 want_nocaseglob=$lt_want_nocaseglob
29850 # DLL creation program.
29851 DLLTOOL=$lt_DLLTOOL
29853 # Command to associate shared and link libraries.
29854 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29859 # Flags to create an archive.
29860 AR_FLAGS=$lt_AR_FLAGS
29862 # How to feed a file listing to the archiver.
29863 archiver_list_spec=$lt_archiver_list_spec
29865 # A symbol stripping program.
29868 # Commands used to install an old-style archive.
29870 old_postinstall_cmds=$lt_old_postinstall_cmds
29871 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29873 # Whether to use a lock for old archive extraction.
29874 lock_old_archive_extraction=$lock_old_archive_extraction
29879 # LTCC compiler flags.
29880 LTCFLAGS=$lt_CFLAGS
29882 # Take the output of nm and produce a listing of raw symbols and C names.
29883 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29885 # Transform the output of nm in a proper C declaration.
29886 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29888 # Transform the output of nm into a list of symbols to manually relocate.
29889 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
29891 # Transform the output of nm in a C name address pair.
29892 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29894 # Transform the output of nm in a C name address pair when lib prefix is needed.
29895 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29897 # The name lister interface.
29898 nm_interface=$lt_lt_cv_nm_interface
29900 # Specify filename containing input files for \$NM.
29901 nm_file_list_spec=$lt_nm_file_list_spec
29903 # The root where to search for dependent libraries,and where our libraries should be installed.
29904 lt_sysroot=$lt_sysroot
29906 # Command to truncate a binary pipe.
29907 lt_truncate_bin=$lt_lt_cv_truncate_bin
29909 # The name of the directory that contains temporary libtool files.
29912 # Used to examine libraries when file_magic_cmd begins with "file".
29913 MAGIC_CMD=$MAGIC_CMD
29915 # Must we lock files when doing compilation?
29916 need_locks=$lt_need_locks
29919 MANIFEST_TOOL=$lt_MANIFEST_TOOL
29921 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29922 DSYMUTIL=$lt_DSYMUTIL
29924 # Tool to change global to local symbols on Mac OS X.
29927 # Tool to manipulate fat objects and archives on Mac OS X.
29930 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29933 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29934 OTOOL64=$lt_OTOOL64
29936 # Old archive suffix (normally "a").
29939 # Shared library suffix (normally ".so").
29940 shrext_cmds=$lt_shrext_cmds
29942 # The commands to extract the exported symbol list from a shared archive.
29943 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29945 # Variables whose values should be saved in libtool wrapper scripts and
29946 # restored at link time.
29947 variables_saved_for_relink=$lt_variables_saved_for_relink
29949 # Do we need the "lib" prefix for modules?
29950 need_lib_prefix=$need_lib_prefix
29952 # Do we need a version for libraries?
29953 need_version=$need_version
29955 # Library versioning type.
29956 version_type=$version_type
29958 # Shared library runtime path variable.
29959 runpath_var=$runpath_var
29961 # Shared library path variable.
29962 shlibpath_var=$shlibpath_var
29964 # Is shlibpath searched before the hard-coded library search path?
29965 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29967 # Format of library name prefix.
29968 libname_spec=$lt_libname_spec
29970 # List of archive names. First name is the real one, the rest are links.
29971 # The last name is the one that the linker finds with -lNAME
29972 library_names_spec=$lt_library_names_spec
29974 # The coded name of the library, if different from the real name.
29975 soname_spec=$lt_soname_spec
29977 # Permission mode override for installation of shared libraries.
29978 install_override_mode=$lt_install_override_mode
29980 # Command to use after installation of a shared archive.
29981 postinstall_cmds=$lt_postinstall_cmds
29983 # Command to use after uninstallation of a shared archive.
29984 postuninstall_cmds=$lt_postuninstall_cmds
29986 # Commands used to finish a libtool library installation in a directory.
29987 finish_cmds=$lt_finish_cmds
29989 # As "finish_cmds", except a single script fragment to be evaled but
29991 finish_eval=$lt_finish_eval
29993 # Whether we should hardcode library paths into libraries.
29994 hardcode_into_libs=$hardcode_into_libs
29996 # Compile-time system search path for libraries.
29997 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29999 # Detected run-time system search path for libraries.
30000 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
30002 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
30003 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
30005 # Whether dlopen is supported.
30006 dlopen_support=$enable_dlopen
30008 # Whether dlopen of programs is supported.
30009 dlopen_self=$enable_dlopen_self
30011 # Whether dlopen of statically linked programs is supported.
30012 dlopen_self_static=$enable_dlopen_self_static
30014 # Commands to strip libraries.
30015 old_striplib=$lt_old_striplib
30016 striplib=$lt_striplib
30019 # The linker used to build libraries.
30022 # How to create reloadable object files.
30023 reload_flag=$lt_reload_flag
30024 reload_cmds=$lt_reload_cmds
30026 # Commands used to build an old-style archive.
30027 old_archive_cmds=$lt_old_archive_cmds
30029 # A language specific compiler.
30032 # Is the compiler the GNU compiler?
30035 # Compiler flag to turn off builtin functions.
30036 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30038 # Additional compiler flags for building library objects.
30039 pic_flag=$lt_lt_prog_compiler_pic
30041 # How to pass a linker flag through the compiler.
30042 wl=$lt_lt_prog_compiler_wl
30044 # Compiler flag to prevent dynamic linking.
30045 link_static_flag=$lt_lt_prog_compiler_static
30047 # Does compiler simultaneously support -c and -o options?
30048 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30050 # Whether or not to add -lc for building shared libraries.
30051 build_libtool_need_lc=$archive_cmds_need_lc
30053 # Whether or not to disallow shared libs when runtime libs are static.
30054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30056 # Compiler flag to allow reflexive dlopens.
30057 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30059 # Compiler flag to generate shared objects directly from archives.
30060 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30062 # Whether the compiler copes with passing no objects directly.
30063 compiler_needs_object=$lt_compiler_needs_object
30065 # Create an old-style archive from a shared archive.
30066 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30068 # Create a temporary old-style archive to link instead of a shared archive.
30069 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30071 # Commands used to build a shared archive.
30072 archive_cmds=$lt_archive_cmds
30073 archive_expsym_cmds=$lt_archive_expsym_cmds
30075 # Commands used to build a loadable module if different from building
30076 # a shared archive.
30077 module_cmds=$lt_module_cmds
30078 module_expsym_cmds=$lt_module_expsym_cmds
30080 # Whether we are building with GNU ld or not.
30081 with_gnu_ld=$lt_with_gnu_ld
30083 # Flag that allows shared libraries with undefined symbols to be built.
30084 allow_undefined_flag=$lt_allow_undefined_flag
30086 # Flag that enforces no undefined symbols.
30087 no_undefined_flag=$lt_no_undefined_flag
30089 # Flag to hardcode \$libdir into a binary during linking.
30090 # This must work even if \$libdir does not exist
30091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30093 # Whether we need a single "-rpath" flag with a separated argument.
30094 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30096 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30097 # DIR into the resulting binary.
30098 hardcode_direct=$hardcode_direct
30100 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30101 # DIR into the resulting binary and the resulting library dependency is
30102 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
30103 # library is relocated.
30104 hardcode_direct_absolute=$hardcode_direct_absolute
30106 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30107 # into the resulting binary.
30108 hardcode_minus_L=$hardcode_minus_L
30110 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30111 # into the resulting binary.
30112 hardcode_shlibpath_var=$hardcode_shlibpath_var
30114 # Set to "yes" if building a shared library automatically hardcodes DIR
30115 # into the library and all subsequent libraries and executables linked
30117 hardcode_automatic=$hardcode_automatic
30119 # Set to yes if linker adds runtime paths of dependent libraries
30120 # to runtime path list.
30121 inherit_rpath=$inherit_rpath
30123 # Whether libtool must link a program against all its dependency libraries.
30124 link_all_deplibs=$link_all_deplibs
30126 # Set to "yes" if exported symbols are required.
30127 always_export_symbols=$always_export_symbols
30129 # The commands to list exported symbols.
30130 export_symbols_cmds=$lt_export_symbols_cmds
30132 # Symbols that should not be listed in the preloaded symbols.
30133 exclude_expsyms=$lt_exclude_expsyms
30135 # Symbols that must always be exported.
30136 include_expsyms=$lt_include_expsyms
30138 # Commands necessary for linking programs (against libraries) with templates.
30139 prelink_cmds=$lt_prelink_cmds
30141 # Commands necessary for finishing linking programs.
30142 postlink_cmds=$lt_postlink_cmds
30144 # Specify filename containing input files.
30145 file_list_spec=$lt_file_list_spec
30147 # How to hardcode a shared library path into an executable.
30148 hardcode_action=$hardcode_action
30150 # ### END LIBTOOL CONFIG
30154 cat <<'_LT_EOF' >> "$cfgfile"
30156 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
30158 # func_munge_path_list VARIABLE PATH
30159 # -----------------------------------
30160 # VARIABLE is name of variable containing _space_ separated list of
30161 # directories to be munged by the contents of PATH, which is string
30164 # string "DIR[ DIR]" will be prepended to VARIABLE
30166 # string "DIR[ DIR]" will be appended to VARIABLE
30167 # "DIRP[:DIRP]::[DIRA:]DIRA"
30168 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
30169 # "DIRA[ DIRA]" will be appended to VARIABLE
30171 # VARIABLE will be replaced by "DIR[ DIR]"
30172 func_munge_path_list ()
30178 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
30181 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
30184 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
30185 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
30188 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
30194 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
30195 func_cc_basename ()
30197 for cc_temp in $*""; do
30199 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30200 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30205 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
30209 # ### END FUNCTIONS SHARED WITH CONFIGURE
30215 cat <<\_LT_EOF >> "$cfgfile"
30216 # AIX sometimes has problems with the GCC collect2 program. For some
30217 # reason, if we set the COLLECT_NAMES environment variable, the problems
30218 # vanish in a puff of smoke.
30219 if test set != "${COLLECT_NAMES+set}"; then
30221 export COLLECT_NAMES
30228 ltmain=$ac_aux_dir/ltmain.sh
30231 # We use sed instead of cat because bash on DJGPP gets confused if
30232 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30233 # text mode, it properly converts lines to CR/LF. This bash problem
30234 # is reportedly fixed, but why not run on old versions too?
30235 sed '$q' "$ltmain" >> "$cfgfile" \
30236 || (rm -f "$cfgfile"; exit 1)
30238 mv -f "$cfgfile" "$ofile" ||
30239 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30250 ac_clean_files=$ac_clean_files_save
30252 test $ac_write_fail = 0 ||
30253 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30256 # configure is writing to config.log, and then calls config.status.
30257 # config.status does its own redirection, appending to config.log.
30258 # Unfortunately, on DOS this fails, as config.log is still kept open
30259 # by configure, so config.status won't be able to write to it; its
30260 # output is simply discarded. So we exec the FD to /dev/null,
30261 # effectively closing config.log, so it can be properly (re)opened and
30262 # appended to by config.status. When coming back to configure, we
30263 # need to make the FD available again.
30264 if test "$no_create" != yes; then
30266 ac_config_status_args=
30267 test "$silent" = yes &&
30268 ac_config_status_args="$ac_config_status_args --quiet"
30270 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30272 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30273 # would make configure fail if this is the last instruction.
30274 $ac_cs_success || as_fn_exit 1
30276 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30278 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}