2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpipeline 1.2.4.
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.2.4'
594 PACKAGE_STRING='libpipeline 1.2.4'
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
648 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
743 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
745 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
746 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
747 TIME_H_DEFINES_STRUCT_TIMESPEC
748 NEXT_AS_FIRST_DIRECTIVE_TIME_H
757 HAVE_DECL_LOCALTIME_R
763 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
767 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
769 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
771 REPLACE_STRUCT_TIMEVAL
777 WINDOWS_64_BIT_ST_SIZE
778 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
814 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
821 NEXT_AS_FIRST_DIRECTIVE_STRING_H
824 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
826 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
828 GL_GENERATE_STDINT_H_FALSE
829 GL_GENERATE_STDINT_H_TRUE
838 HAVE_SIGNED_SIG_ATOMIC_T
841 BITSIZEOF_SIG_ATOMIC_T
847 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
852 HAVE_UNSIGNED_LONG_LONG_INT
854 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
856 GL_GENERATE_STDDEF_H_FALSE
857 GL_GENERATE_STDDEF_H_TRUE
862 GL_GENERATE_STDBOOL_H_FALSE
863 GL_GENERATE_STDBOOL_H_TRUE
865 GL_GENERATE_STDARG_H_FALSE
866 GL_GENERATE_STDARG_H_TRUE
868 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
877 REPLACE_STDIO_WRITE_FUNCS
878 REPLACE_STDIO_READ_FUNCS
887 REPLACE_OBSTACK_PRINTF
912 HAVE_DECL_OBSTACK_PRINTF
918 GNULIB_VSPRINTF_POSIX
922 GNULIB_VFPRINTF_POSIX
929 GNULIB_STDIO_H_SIGPIPE
930 GNULIB_STDIO_H_NONBLOCKING
945 GNULIB_OBSTACK_PRINTF_POSIX
946 GNULIB_OBSTACK_PRINTF
971 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
974 REPLACE_PTHREAD_SIGMASK
976 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
977 HAVE_STRUCT_SIGACTION_SA_SIGACTION
983 HAVE_POSIX_SIGNALBLOCKING
986 GNULIB_SIGNAL_H_SIGPIPE
988 GNULIB_PTHREAD_SIGMASK
989 APPLE_UNIVERSAL_BUILD
990 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1008 HAVE_DECL_STRERROR_R
1077 REPLACE_CANONICALIZE_FILE_NAME
1082 HAVE_STRUCT_RANDOM_DATA
1104 HAVE_DECL_GETLOADAVG
1105 HAVE_CANONICALIZE_FILE_NAME
1116 GNULIB_SECURE_GETENV
1119 GNULIB_REALLOC_POSIX
1136 GNULIB_CANONICALIZE_FILE_NAME
1147 IGNORE_UNUSED_LIBRARIES_CFLAGS
1151 GL_GENERATE_FLOAT_H_FALSE
1152 GL_GENERATE_FLOAT_H_TRUE
1154 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1162 GL_GENERATE_ERRNO_H_FALSE
1163 GL_GENERATE_ERRNO_H_TRUE
1165 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1168 PRAGMA_SYSTEM_HEADER
1169 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1171 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1172 UNISTD_H_HAVE_WINSOCK2_H
1193 REPLACE_GETDOMAINNAME
1204 HAVE_DECL_SETHOSTNAME
1205 HAVE_DECL_GETUSERSHELL
1206 HAVE_DECL_GETPAGESIZE
1207 HAVE_DECL_GETLOGIN_R
1208 HAVE_DECL_GETDOMAINNAME
1247 GNULIB_UNISTD_H_SIGPIPE
1248 GNULIB_UNISTD_H_NONBLOCKING
1274 GNULIB_GETDTABLESIZE
1275 GNULIB_GETDOMAINNAME
1291 GL_GENERATE_ALLOCA_H_FALSE
1292 GL_GENERATE_ALLOCA_H_TRUE
1295 GL_COND_LIBTOOL_FALSE
1296 GL_COND_LIBTOOL_TRUE
1354 MAINTAINER_MODE_FALSE
1355 MAINTAINER_MODE_TRUE
1357 AM_DEFAULT_VERBOSITY
1368 INSTALL_STRIP_PROGRAM
1410 program_transform_name
1423 enable_option_checking
1425 enable_maintainer_mode
1426 enable_dependency_tracking
1437 enable_socketpair_pipe
1439 ac_precious_vars='build_alias
1455 # Initialize some variables set by options.
1457 ac_init_version=false
1458 ac_unrecognized_opts=
1459 ac_unrecognized_sep=
1460 # The variables have the same names as the options, with
1461 # dashes changed to underlines.
1462 cache_file=/dev/null
1469 program_transform_name=s,x,x,
1477 # Installation directory options.
1478 # These are left unexpanded so users can "make install exec_prefix=/foo"
1479 # and all the variables that are supposed to be based on exec_prefix
1480 # by default will actually change.
1481 # Use braces instead of parens because sh, perl, etc. also accept them.
1482 # (The list follows the same order as the GNU Coding Standards.)
1483 bindir='${exec_prefix}/bin'
1484 sbindir='${exec_prefix}/sbin'
1485 libexecdir='${exec_prefix}/libexec'
1486 datarootdir='${prefix}/share'
1487 datadir='${datarootdir}'
1488 sysconfdir='${prefix}/etc'
1489 sharedstatedir='${prefix}/com'
1490 localstatedir='${prefix}/var'
1491 includedir='${prefix}/include'
1492 oldincludedir='/usr/include'
1493 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1494 infodir='${datarootdir}/info'
1499 libdir='${exec_prefix}/lib'
1500 localedir='${datarootdir}/locale'
1501 mandir='${datarootdir}/man'
1507 # If the previous option needs an argument, assign it.
1508 if test -n "$ac_prev"; then
1509 eval $ac_prev=\$ac_option
1515 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1520 # Accept the important Cygnus configure options, so we can diagnose typos.
1522 case $ac_dashdash$ac_option in
1526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1529 bindir=$ac_optarg ;;
1531 -build | --build | --buil | --bui | --bu)
1532 ac_prev=build_alias ;;
1533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1534 build_alias=$ac_optarg ;;
1536 -cache-file | --cache-file | --cache-fil | --cache-fi \
1537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1538 ac_prev=cache_file ;;
1539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1541 cache_file=$ac_optarg ;;
1543 --config-cache | -C)
1544 cache_file=config.cache ;;
1546 -datadir | --datadir | --datadi | --datad)
1548 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1549 datadir=$ac_optarg ;;
1551 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1552 | --dataroo | --dataro | --datar)
1553 ac_prev=datarootdir ;;
1554 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1555 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1556 datarootdir=$ac_optarg ;;
1558 -disable-* | --disable-*)
1559 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1560 # Reject names that are not valid shell variable names.
1561 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1562 as_fn_error $? "invalid feature name: $ac_useropt"
1563 ac_useropt_orig=$ac_useropt
1564 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1565 case $ac_user_opts in
1567 "enable_$ac_useropt"
1569 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1570 ac_unrecognized_sep=', ';;
1572 eval enable_$ac_useropt=no ;;
1574 -docdir | --docdir | --docdi | --doc | --do)
1576 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1577 docdir=$ac_optarg ;;
1579 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1581 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1582 dvidir=$ac_optarg ;;
1584 -enable-* | --enable-*)
1585 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1586 # Reject names that are not valid shell variable names.
1587 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1588 as_fn_error $? "invalid feature name: $ac_useropt"
1589 ac_useropt_orig=$ac_useropt
1590 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1591 case $ac_user_opts in
1593 "enable_$ac_useropt"
1595 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1596 ac_unrecognized_sep=', ';;
1598 eval enable_$ac_useropt=\$ac_optarg ;;
1600 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1601 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1602 | --exec | --exe | --ex)
1603 ac_prev=exec_prefix ;;
1604 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1605 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1606 | --exec=* | --exe=* | --ex=*)
1607 exec_prefix=$ac_optarg ;;
1609 -gas | --gas | --ga | --g)
1610 # Obsolete; use --with-gas.
1613 -help | --help | --hel | --he | -h)
1614 ac_init_help=long ;;
1615 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1616 ac_init_help=recursive ;;
1617 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1618 ac_init_help=short ;;
1620 -host | --host | --hos | --ho)
1621 ac_prev=host_alias ;;
1622 -host=* | --host=* | --hos=* | --ho=*)
1623 host_alias=$ac_optarg ;;
1625 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1627 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1629 htmldir=$ac_optarg ;;
1631 -includedir | --includedir | --includedi | --included | --include \
1632 | --includ | --inclu | --incl | --inc)
1633 ac_prev=includedir ;;
1634 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1635 | --includ=* | --inclu=* | --incl=* | --inc=*)
1636 includedir=$ac_optarg ;;
1638 -infodir | --infodir | --infodi | --infod | --info | --inf)
1640 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1641 infodir=$ac_optarg ;;
1643 -libdir | --libdir | --libdi | --libd)
1645 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1646 libdir=$ac_optarg ;;
1648 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1649 | --libexe | --libex | --libe)
1650 ac_prev=libexecdir ;;
1651 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1652 | --libexe=* | --libex=* | --libe=*)
1653 libexecdir=$ac_optarg ;;
1655 -localedir | --localedir | --localedi | --localed | --locale)
1656 ac_prev=localedir ;;
1657 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1658 localedir=$ac_optarg ;;
1660 -localstatedir | --localstatedir | --localstatedi | --localstated \
1661 | --localstate | --localstat | --localsta | --localst | --locals)
1662 ac_prev=localstatedir ;;
1663 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1664 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1665 localstatedir=$ac_optarg ;;
1667 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1669 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1670 mandir=$ac_optarg ;;
1672 -nfp | --nfp | --nf)
1673 # Obsolete; use --without-fp.
1676 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1677 | --no-cr | --no-c | -n)
1680 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1681 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1684 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1685 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1686 | --oldin | --oldi | --old | --ol | --o)
1687 ac_prev=oldincludedir ;;
1688 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1689 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1690 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1691 oldincludedir=$ac_optarg ;;
1693 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1695 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1696 prefix=$ac_optarg ;;
1698 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1699 | --program-pre | --program-pr | --program-p)
1700 ac_prev=program_prefix ;;
1701 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1702 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1703 program_prefix=$ac_optarg ;;
1705 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1706 | --program-suf | --program-su | --program-s)
1707 ac_prev=program_suffix ;;
1708 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1709 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1710 program_suffix=$ac_optarg ;;
1712 -program-transform-name | --program-transform-name \
1713 | --program-transform-nam | --program-transform-na \
1714 | --program-transform-n | --program-transform- \
1715 | --program-transform | --program-transfor \
1716 | --program-transfo | --program-transf \
1717 | --program-trans | --program-tran \
1718 | --progr-tra | --program-tr | --program-t)
1719 ac_prev=program_transform_name ;;
1720 -program-transform-name=* | --program-transform-name=* \
1721 | --program-transform-nam=* | --program-transform-na=* \
1722 | --program-transform-n=* | --program-transform-=* \
1723 | --program-transform=* | --program-transfor=* \
1724 | --program-transfo=* | --program-transf=* \
1725 | --program-trans=* | --program-tran=* \
1726 | --progr-tra=* | --program-tr=* | --program-t=*)
1727 program_transform_name=$ac_optarg ;;
1729 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1731 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1732 pdfdir=$ac_optarg ;;
1734 -psdir | --psdir | --psdi | --psd | --ps)
1736 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1740 | -silent | --silent | --silen | --sile | --sil)
1743 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1745 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1747 sbindir=$ac_optarg ;;
1749 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1750 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1751 | --sharedst | --shareds | --shared | --share | --shar \
1753 ac_prev=sharedstatedir ;;
1754 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1755 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1756 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1758 sharedstatedir=$ac_optarg ;;
1760 -site | --site | --sit)
1762 -site=* | --site=* | --sit=*)
1765 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1767 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1768 srcdir=$ac_optarg ;;
1770 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1771 | --syscon | --sysco | --sysc | --sys | --sy)
1772 ac_prev=sysconfdir ;;
1773 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1774 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1775 sysconfdir=$ac_optarg ;;
1777 -target | --target | --targe | --targ | --tar | --ta | --t)
1778 ac_prev=target_alias ;;
1779 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1780 target_alias=$ac_optarg ;;
1782 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1785 -version | --version | --versio | --versi | --vers | -V)
1786 ac_init_version=: ;;
1789 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1790 # Reject names that are not valid shell variable names.
1791 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1792 as_fn_error $? "invalid package name: $ac_useropt"
1793 ac_useropt_orig=$ac_useropt
1794 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1795 case $ac_user_opts in
1799 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1800 ac_unrecognized_sep=', ';;
1802 eval with_$ac_useropt=\$ac_optarg ;;
1804 -without-* | --without-*)
1805 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1806 # Reject names that are not valid shell variable names.
1807 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1808 as_fn_error $? "invalid package name: $ac_useropt"
1809 ac_useropt_orig=$ac_useropt
1810 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1811 case $ac_user_opts in
1815 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1816 ac_unrecognized_sep=', ';;
1818 eval with_$ac_useropt=no ;;
1821 # Obsolete; use --with-x.
1824 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1825 | --x-incl | --x-inc | --x-in | --x-i)
1826 ac_prev=x_includes ;;
1827 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1828 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1829 x_includes=$ac_optarg ;;
1831 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1832 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1833 ac_prev=x_libraries ;;
1834 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1835 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1836 x_libraries=$ac_optarg ;;
1838 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1839 Try \`$0 --help' for more information"
1843 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1844 # Reject names that are not valid shell variable names.
1845 case $ac_envvar in #(
1846 '' | [0-9]* | *[!_$as_cr_alnum]* )
1847 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1849 eval $ac_envvar=\$ac_optarg
1850 export $ac_envvar ;;
1853 # FIXME: should be removed in autoconf 3.0.
1854 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1855 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1856 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1857 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1863 if test -n "$ac_prev"; then
1864 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1865 as_fn_error $? "missing argument to $ac_option"
1868 if test -n "$ac_unrecognized_opts"; then
1869 case $enable_option_checking in
1871 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1872 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1876 # Check all directory arguments for consistency.
1877 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1878 datadir sysconfdir sharedstatedir localstatedir includedir \
1879 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1880 libdir localedir mandir
1882 eval ac_val=\$$ac_var
1883 # Remove trailing slashes.
1886 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1887 eval $ac_var=\$ac_val;;
1889 # Be sure to have absolute directory names.
1891 [\\/$]* | ?:[\\/]* ) continue;;
1892 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1894 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1897 # There might be people who depend on the old broken behavior: `$host'
1898 # used to hold the argument of --host etc.
1899 # FIXME: To remove some day.
1902 target=$target_alias
1904 # FIXME: To remove some day.
1905 if test "x$host_alias" != x; then
1906 if test "x$build_alias" = x; then
1907 cross_compiling=maybe
1908 elif test "x$build_alias" != "x$host_alias"; then
1914 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1916 test "$silent" = yes && exec 6>/dev/null
1919 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1920 ac_ls_di=`ls -di .` &&
1921 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1922 as_fn_error $? "working directory cannot be determined"
1923 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1924 as_fn_error $? "pwd does not report name of working directory"
1927 # Find the source files, if location was not specified.
1928 if test -z "$srcdir"; then
1929 ac_srcdir_defaulted=yes
1930 # Try the directory containing this script, then the parent directory.
1931 ac_confdir=`$as_dirname -- "$as_myself" ||
1932 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1933 X"$as_myself" : 'X\(//\)[^/]' \| \
1934 X"$as_myself" : 'X\(//\)$' \| \
1935 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1936 $as_echo X"$as_myself" |
1937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1955 if test ! -r "$srcdir/$ac_unique_file"; then
1959 ac_srcdir_defaulted=no
1961 if test ! -r "$srcdir/$ac_unique_file"; then
1962 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1963 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1965 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1967 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1969 # When building in place, set srcdir=.
1970 if test "$ac_abs_confdir" = "$ac_pwd"; then
1973 # Remove unnecessary trailing slashes from srcdir.
1974 # Double slashes in file names in object file debugging info
1975 # mess up M-x gdb in Emacs.
1977 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1979 for ac_var in $ac_precious_vars; do
1980 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1981 eval ac_env_${ac_var}_value=\$${ac_var}
1982 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1983 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1987 # Report the --help message.
1989 if test "$ac_init_help" = "long"; then
1990 # Omit some internal or obsolete options to make the list less imposing.
1991 # This message is too long to be a string in the A/UX 3.1 sh.
1993 \`configure' configures libpipeline 1.2.4 to adapt to many kinds of systems.
1995 Usage: $0 [OPTION]... [VAR=VALUE]...
1997 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1998 VAR=VALUE. See below for descriptions of some of the useful variables.
2000 Defaults for the options are specified in brackets.
2003 -h, --help display this help and exit
2004 --help=short display options specific to this package
2005 --help=recursive display the short help of all the included packages
2006 -V, --version display version information and exit
2007 -q, --quiet, --silent do not print \`checking ...' messages
2008 --cache-file=FILE cache test results in FILE [disabled]
2009 -C, --config-cache alias for \`--cache-file=config.cache'
2010 -n, --no-create do not create output files
2011 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2013 Installation directories:
2014 --prefix=PREFIX install architecture-independent files in PREFIX
2015 [$ac_default_prefix]
2016 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2019 By default, \`make install' will install all the files in
2020 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2021 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2022 for instance \`--prefix=\$HOME'.
2024 For better control, use the options below.
2026 Fine tuning of the installation directories:
2027 --bindir=DIR user executables [EPREFIX/bin]
2028 --sbindir=DIR system admin executables [EPREFIX/sbin]
2029 --libexecdir=DIR program executables [EPREFIX/libexec]
2030 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2031 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2032 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2033 --libdir=DIR object code libraries [EPREFIX/lib]
2034 --includedir=DIR C header files [PREFIX/include]
2035 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2036 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2037 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2038 --infodir=DIR info documentation [DATAROOTDIR/info]
2039 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2040 --mandir=DIR man documentation [DATAROOTDIR/man]
2041 --docdir=DIR documentation root [DATAROOTDIR/doc/libpipeline]
2042 --htmldir=DIR html documentation [DOCDIR]
2043 --dvidir=DIR dvi documentation [DOCDIR]
2044 --pdfdir=DIR pdf documentation [DOCDIR]
2045 --psdir=DIR ps documentation [DOCDIR]
2051 --program-prefix=PREFIX prepend PREFIX to installed program names
2052 --program-suffix=SUFFIX append SUFFIX to installed program names
2053 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2056 --build=BUILD configure for building on BUILD [guessed]
2057 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2061 if test -n "$ac_init_help"; then
2062 case $ac_init_help in
2063 short | recursive ) echo "Configuration of libpipeline 1.2.4:";;
2068 --disable-option-checking ignore unrecognized --enable/--with options
2069 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2070 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2071 --enable-silent-rules less verbose build output (undo: "make V=1")
2072 --disable-silent-rules verbose build output (undo: "make V=0")
2073 --enable-maintainer-mode
2074 enable make rules and dependencies not useful (and
2075 sometimes confusing) to the casual installer
2076 --enable-dependency-tracking
2077 do not reject slow dependency extractors
2078 --disable-dependency-tracking
2079 speeds up one-time build
2080 --enable-static[=PKGS] build static libraries [default=no]
2081 --enable-shared[=PKGS] build shared libraries [default=yes]
2082 --enable-fast-install[=PKGS]
2083 optimize for fast installation [default=yes]
2084 --disable-libtool-lock avoid locking (might break parallel builds)
2085 --enable-threads={posix|solaris|pth|windows}
2086 specify multithreading API
2087 --disable-threads build without multithread safety
2088 --disable-rpath do not hardcode runtime library paths
2089 --enable-socketpair-pipe
2090 Use socketpair(2) as fast replacement for pipe(2)
2093 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2094 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2095 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2097 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2098 --with-sysroot=DIR Search for dependent libraries within DIR
2099 (or the compiler's sysroot if not specified).
2100 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2101 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2102 --without-libpth-prefix don't search for libpth in includedir and libdir
2104 Some influential environment variables:
2105 CC C compiler command
2106 CFLAGS C compiler flags
2107 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2108 nonstandard directory <lib dir>
2109 LIBS libraries to pass to the linker, e.g. -l<library>
2110 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2111 you have headers in a nonstandard directory <include dir>
2113 PKG_CONFIG path to pkg-config utility
2115 directories to add to pkg-config's search path
2117 path overriding pkg-config's built-in search path
2119 C compiler flags for CHECK, overriding pkg-config
2120 CHECK_LIBS linker flags for CHECK, overriding pkg-config
2122 Use these variables to override the choices made by `configure' or to help
2123 it to find libraries and programs with nonstandard names/locations.
2125 Report bugs to <cjwatson@debian.org>.
2130 if test "$ac_init_help" = "recursive"; then
2131 # If there are subdirs, report their specific --help.
2132 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2133 test -d "$ac_dir" ||
2134 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2139 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2141 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2142 # A ".." for each directory in $ac_dir_suffix.
2143 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2144 case $ac_top_builddir_sub in
2145 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2146 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2149 ac_abs_top_builddir=$ac_pwd
2150 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2151 # for backward compatibility:
2152 ac_top_builddir=$ac_top_build_prefix
2155 .) # We are building in place.
2157 ac_top_srcdir=$ac_top_builddir_sub
2158 ac_abs_top_srcdir=$ac_pwd ;;
2159 [\\/]* | ?:[\\/]* ) # Absolute name.
2160 ac_srcdir=$srcdir$ac_dir_suffix;
2161 ac_top_srcdir=$srcdir
2162 ac_abs_top_srcdir=$srcdir ;;
2164 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2165 ac_top_srcdir=$ac_top_build_prefix$srcdir
2166 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2168 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2170 cd "$ac_dir" || { ac_status=$?; continue; }
2171 # Check for guested configure.
2172 if test -f "$ac_srcdir/configure.gnu"; then
2174 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2175 elif test -f "$ac_srcdir/configure"; then
2177 $SHELL "$ac_srcdir/configure" --help=recursive
2179 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2181 cd "$ac_pwd" || { ac_status=$?; break; }
2185 test -n "$ac_init_help" && exit $ac_status
2186 if $ac_init_version; then
2188 libpipeline configure 1.2.4
2189 generated by GNU Autoconf 2.69
2191 Copyright (C) 2012 Free Software Foundation, Inc.
2192 This configure script is free software; the Free Software Foundation
2193 gives unlimited permission to copy, distribute and modify it.
2198 ## ------------------------ ##
2199 ## Autoconf initialization. ##
2200 ## ------------------------ ##
2202 # ac_fn_c_try_compile LINENO
2203 # --------------------------
2204 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2205 ac_fn_c_try_compile ()
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 rm -f conftest.$ac_objext
2209 if { { ac_try="$ac_compile"
2211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2212 *) ac_try_echo=$ac_try;;
2214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2215 $as_echo "$ac_try_echo"; } >&5
2216 (eval "$ac_compile") 2>conftest.err
2218 if test -s conftest.err; then
2219 grep -v '^ *+' conftest.err >conftest.er1
2220 cat conftest.er1 >&5
2221 mv -f conftest.er1 conftest.err
2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224 test $ac_status = 0; } && {
2225 test -z "$ac_c_werror_flag" ||
2226 test ! -s conftest.err
2227 } && test -s conftest.$ac_objext; then :
2230 $as_echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236 as_fn_set_status $ac_retval
2238 } # ac_fn_c_try_compile
2240 # ac_fn_c_try_cpp LINENO
2241 # ----------------------
2242 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 if { { ac_try="$ac_cpp conftest.$ac_ext"
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2252 $as_echo "$ac_try_echo"; } >&5
2253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2255 if test -s conftest.err; then
2256 grep -v '^ *+' conftest.err >conftest.er1
2257 cat conftest.er1 >&5
2258 mv -f conftest.er1 conftest.err
2260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2261 test $ac_status = 0; } > conftest.i && {
2262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2263 test ! -s conftest.err
2267 $as_echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273 as_fn_set_status $ac_retval
2277 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2278 # -------------------------------------------------------
2279 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2280 # the include files in INCLUDES and setting the cache variable VAR
2282 ac_fn_c_check_header_mongrel ()
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 if eval \${$3+:} false; then :
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2287 $as_echo_n "checking for $2... " >&6; }
2288 if eval \${$3+:} false; then :
2289 $as_echo_n "(cached) " >&6
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2295 # Is the header compilable?
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2297 $as_echo_n "checking $2 usability... " >&6; }
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304 ac_header_compiler=yes
2306 ac_header_compiler=no
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2310 $as_echo "$ac_header_compiler" >&6; }
2312 # Is the header present?
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2314 $as_echo_n "checking $2 presence... " >&6; }
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2319 if ac_fn_c_try_cpp "$LINENO"; then :
2320 ac_header_preproc=yes
2322 ac_header_preproc=no
2324 rm -f conftest.err conftest.i conftest.$ac_ext
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2326 $as_echo "$ac_header_preproc" >&6; }
2328 # So? What about this header?
2329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2332 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2334 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2338 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2340 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2342 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2344 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2346 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2347 ( $as_echo "## ---------------------------------- ##
2348 ## Report this to cjwatson@debian.org ##
2349 ## ---------------------------------- ##"
2350 ) | sed "s/^/$as_me: WARNING: /" >&2
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2354 $as_echo_n "checking for $2... " >&6; }
2355 if eval \${$3+:} false; then :
2356 $as_echo_n "(cached) " >&6
2358 eval "$3=\$ac_header_compiler"
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362 $as_echo "$ac_res" >&6; }
2364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2366 } # ac_fn_c_check_header_mongrel
2368 # ac_fn_c_try_run LINENO
2369 # ----------------------
2370 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2371 # that executables *can* be run.
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 if { { ac_try="$ac_link"
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381 $as_echo "$ac_try_echo"; } >&5
2382 (eval "$ac_link") 2>&5
2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2386 { { case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391 $as_echo "$ac_try_echo"; } >&5
2392 (eval "$ac_try") 2>&5
2394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2395 test $ac_status = 0; }; }; then :
2398 $as_echo "$as_me: program exited with status $ac_status" >&5
2399 $as_echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2402 ac_retval=$ac_status
2404 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2405 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2406 as_fn_set_status $ac_retval
2410 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2411 # -------------------------------------------------------
2412 # Tests whether HEADER exists and can be compiled using the include files in
2413 # INCLUDES, setting the cache variable VAR accordingly.
2414 ac_fn_c_check_header_compile ()
2416 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2418 $as_echo_n "checking for $2... " >&6; }
2419 if eval \${$3+:} false; then :
2420 $as_echo_n "(cached) " >&6
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2427 if ac_fn_c_try_compile "$LINENO"; then :
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2436 $as_echo "$ac_res" >&6; }
2437 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2439 } # ac_fn_c_check_header_compile
2441 # ac_fn_c_try_link LINENO
2442 # -----------------------
2443 # Try to link conftest.$ac_ext, and return whether this succeeded.
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 rm -f conftest.$ac_objext conftest$ac_exeext
2448 if { { ac_try="$ac_link"
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2454 $as_echo "$ac_try_echo"; } >&5
2455 (eval "$ac_link") 2>conftest.err
2457 if test -s conftest.err; then
2458 grep -v '^ *+' conftest.err >conftest.er1
2459 cat conftest.er1 >&5
2460 mv -f conftest.er1 conftest.err
2462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2463 test $ac_status = 0; } && {
2464 test -z "$ac_c_werror_flag" ||
2465 test ! -s conftest.err
2466 } && test -s conftest$ac_exeext && {
2467 test "$cross_compiling" = yes ||
2468 test -x conftest$ac_exeext
2472 $as_echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2477 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2478 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2479 # interfere with the next link command; also delete a directory that is
2480 # left behind by Apple's compiler. We do this before executing the actions.
2481 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2483 as_fn_set_status $ac_retval
2485 } # ac_fn_c_try_link
2487 # ac_fn_c_check_func LINENO FUNC VAR
2488 # ----------------------------------
2489 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2490 ac_fn_c_check_func ()
2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2494 $as_echo_n "checking for $2... " >&6; }
2495 if eval \${$3+:} false; then :
2496 $as_echo_n "(cached) " >&6
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2500 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2502 #define $2 innocuous_$2
2504 /* System header to define __stub macros and hopefully few prototypes,
2505 which can conflict with char $2 (); below.
2506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2507 <limits.h> exists even on freestanding compilers. */
2510 # include <limits.h>
2512 # include <assert.h>
2517 /* Override any GCC internal prototype to avoid an error.
2518 Use char because int might match the return type of a GCC
2519 builtin and then its argument prototype would still apply. */
2524 /* The GNU C library defines this for functions which it implements
2525 to always fail with ENOSYS. Some functions are actually named
2526 something starting with __ and the normal name is an alias. */
2527 #if defined __stub_$2 || defined __stub___$2
2539 if ac_fn_c_try_link "$LINENO"; then :
2544 rm -f core conftest.err conftest.$ac_objext \
2545 conftest$ac_exeext conftest.$ac_ext
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2549 $as_echo "$ac_res" >&6; }
2550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2552 } # ac_fn_c_check_func
2554 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2555 # -------------------------------------------
2556 # Tests whether TYPE exists after having included INCLUDES, setting cache
2557 # variable VAR accordingly.
2558 ac_fn_c_check_type ()
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562 $as_echo_n "checking for $2... " >&6; }
2563 if eval \${$3+:} false; then :
2564 $as_echo_n "(cached) " >&6
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2579 if ac_fn_c_try_compile "$LINENO"; then :
2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581 /* end confdefs.h. */
2592 if ac_fn_c_try_compile "$LINENO"; then :
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2606 } # ac_fn_c_check_type
2608 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2609 # --------------------------------------------
2610 # Tries to find the compile-time value of EXPR in a program that includes
2611 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2613 ac_fn_c_compute_int ()
2615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616 if test "$cross_compiling" = yes; then
2617 # Depending upon the size, compute the lo and hi bounds.
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h. */
2624 static int test_array [1 - 2 * !(($2) >= 0)];
2626 return test_array [0];
2632 if ac_fn_c_try_compile "$LINENO"; then :
2635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h. */
2641 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2643 return test_array [0];
2649 if ac_fn_c_try_compile "$LINENO"; then :
2650 ac_hi=$ac_mid; break
2652 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2653 if test $ac_lo -le $ac_mid; then
2657 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663 /* end confdefs.h. */
2668 static int test_array [1 - 2 * !(($2) < 0)];
2670 return test_array [0];
2676 if ac_fn_c_try_compile "$LINENO"; then :
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h. */
2685 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2687 return test_array [0];
2693 if ac_fn_c_try_compile "$LINENO"; then :
2694 ac_lo=$ac_mid; break
2696 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2697 if test $ac_mid -le $ac_hi; then
2701 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 # Binary search between lo and hi bounds.
2712 while test "x$ac_lo" != "x$ac_hi"; do
2713 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2715 /* end confdefs.h. */
2720 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2722 return test_array [0];
2728 if ac_fn_c_try_compile "$LINENO"; then :
2731 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2743 static long int longval () { return $2; }
2744 static unsigned long int ulongval () { return $2; }
2751 FILE *f = fopen ("conftest.val", "w");
2756 long int i = longval ();
2759 fprintf (f, "%ld", i);
2763 unsigned long int i = ulongval ();
2766 fprintf (f, "%lu", i);
2768 /* Do not output a trailing newline, as this causes \r\n confusion
2769 on some platforms. */
2770 return ferror (f) || fclose (f) != 0;
2776 if ac_fn_c_try_run "$LINENO"; then :
2777 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2782 conftest.$ac_objext conftest.beam conftest.$ac_ext
2786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2787 as_fn_set_status $ac_retval
2789 } # ac_fn_c_compute_int
2791 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2792 # ---------------------------------------------
2793 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2795 ac_fn_c_check_decl ()
2797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2798 as_decl_name=`echo $2|sed 's/ *(.*//'`
2799 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2801 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2802 if eval \${$3+:} false; then :
2803 $as_echo_n "(cached) " >&6
2805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806 /* end confdefs.h. */
2811 #ifndef $as_decl_name
2813 (void) $as_decl_use;
2815 (void) $as_decl_name;
2823 if ac_fn_c_try_compile "$LINENO"; then :
2828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2832 $as_echo "$ac_res" >&6; }
2833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2835 } # ac_fn_c_check_decl
2837 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2838 # ----------------------------------------------------
2839 # Tries to find if the field MEMBER exists in type AGGR, after including
2840 # INCLUDES, setting cache variable VAR accordingly.
2841 ac_fn_c_check_member ()
2843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2845 $as_echo_n "checking for $2.$3... " >&6; }
2846 if eval \${$4+:} false; then :
2847 $as_echo_n "(cached) " >&6
2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850 /* end confdefs.h. */
2862 if ac_fn_c_try_compile "$LINENO"; then :
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2872 if (sizeof ac_aggr.$3)
2878 if ac_fn_c_try_compile "$LINENO"; then :
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2889 $as_echo "$ac_res" >&6; }
2890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2892 } # ac_fn_c_check_member
2893 cat >config.log <<_ACEOF
2894 This file contains any messages produced by compilers while
2895 running configure, to aid debugging if configure makes a mistake.
2897 It was created by libpipeline $as_me 1.2.4, which was
2898 generated by GNU Autoconf 2.69. Invocation command line was
2910 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2911 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2912 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2913 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2914 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2916 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2917 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2919 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2920 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2921 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2922 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2923 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2924 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2925 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 test -z "$as_dir" && as_dir=.
2934 $as_echo "PATH: $as_dir"
2950 # Keep a trace of the command line.
2951 # Strip out --no-create and --no-recursion so they do not pile up.
2952 # Strip out --silent because we don't want to record it for future runs.
2953 # Also quote any args containing shell meta-characters.
2954 # Make two passes to allow for proper duplicate-argument suppression.
2958 ac_must_keep_next=false
2964 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2966 | -silent | --silent | --silen | --sile | --sil)
2969 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2972 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2974 as_fn_append ac_configure_args1 " '$ac_arg'"
2975 if test $ac_must_keep_next = true; then
2976 ac_must_keep_next=false # Got value, back to normal.
2979 *=* | --config-cache | -C | -disable-* | --disable-* \
2980 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2981 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2982 | -with-* | --with-* | -without-* | --without-* | --x)
2983 case "$ac_configure_args0 " in
2984 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2987 -* ) ac_must_keep_next=true ;;
2990 as_fn_append ac_configure_args " '$ac_arg'"
2995 { ac_configure_args0=; unset ac_configure_args0;}
2996 { ac_configure_args1=; unset ac_configure_args1;}
2998 # When interrupted or exit'd, cleanup temporary files, and complete
2999 # config.log. We remove comments because anyway the quotes in there
3000 # would cause problems or look ugly.
3001 # WARNING: Use '\'' to represent an apostrophe within the trap.
3002 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3003 trap 'exit_status=$?
3004 # Save into config.log some information that might help in debugging.
3008 $as_echo "## ---------------- ##
3009 ## Cache variables. ##
3010 ## ---------------- ##"
3012 # The following way of writing the cache mishandles newlines in values,
3014 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3015 eval ac_val=\$$ac_var
3019 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3020 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3023 _ | IFS | as_nl) ;; #(
3024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3025 *) { eval $ac_var=; unset $ac_var;} ;;
3030 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3031 *${as_nl}ac_space=\ *)
3033 "s/'\''/'\''\\\\'\'''\''/g;
3034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3044 $as_echo "## ----------------- ##
3045 ## Output variables. ##
3046 ## ----------------- ##"
3048 for ac_var in $ac_subst_vars
3050 eval ac_val=\$$ac_var
3052 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3054 $as_echo "$ac_var='\''$ac_val'\''"
3058 if test -n "$ac_subst_files"; then
3059 $as_echo "## ------------------- ##
3060 ## File substitutions. ##
3061 ## ------------------- ##"
3063 for ac_var in $ac_subst_files
3065 eval ac_val=\$$ac_var
3067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3069 $as_echo "$ac_var='\''$ac_val'\''"
3074 if test -s confdefs.h; then
3075 $as_echo "## ----------- ##
3082 test "$ac_signal" != 0 &&
3083 $as_echo "$as_me: caught signal $ac_signal"
3084 $as_echo "$as_me: exit $exit_status"
3086 rm -f core *.core core.conftest.* &&
3087 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3090 for ac_signal in 1 2 13 15; do
3091 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3095 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3096 rm -f -r conftest* confdefs.h
3098 $as_echo "/* confdefs.h */" > confdefs.h
3100 # Predefined preprocessor variables.
3102 cat >>confdefs.h <<_ACEOF
3103 #define PACKAGE_NAME "$PACKAGE_NAME"
3106 cat >>confdefs.h <<_ACEOF
3107 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3110 cat >>confdefs.h <<_ACEOF
3111 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3114 cat >>confdefs.h <<_ACEOF
3115 #define PACKAGE_STRING "$PACKAGE_STRING"
3118 cat >>confdefs.h <<_ACEOF
3119 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3122 cat >>confdefs.h <<_ACEOF
3123 #define PACKAGE_URL "$PACKAGE_URL"
3127 # Let the site file select an alternate cache file if it wants to.
3128 # Prefer an explicitly selected file to automatically selected ones.
3131 if test -n "$CONFIG_SITE"; then
3132 # We do not want a PATH search for config.site.
3133 case $CONFIG_SITE in #((
3134 -*) ac_site_file1=./$CONFIG_SITE;;
3135 */*) ac_site_file1=$CONFIG_SITE;;
3136 *) ac_site_file1=./$CONFIG_SITE;;
3138 elif test "x$prefix" != xNONE; then
3139 ac_site_file1=$prefix/share/config.site
3140 ac_site_file2=$prefix/etc/config.site
3142 ac_site_file1=$ac_default_prefix/share/config.site
3143 ac_site_file2=$ac_default_prefix/etc/config.site
3145 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3147 test "x$ac_site_file" = xNONE && continue
3148 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3150 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3151 sed 's/^/| /' "$ac_site_file" >&5
3153 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error $? "failed to load site script $ac_site_file
3156 See \`config.log' for more details" "$LINENO" 5; }
3160 if test -r "$cache_file"; then
3161 # Some versions of bash will fail to source /dev/null (special files
3162 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3163 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3165 $as_echo "$as_me: loading cache $cache_file" >&6;}
3167 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3168 *) . "./$cache_file";;
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3173 $as_echo "$as_me: creating cache $cache_file" >&6;}
3177 gl_header_list="$gl_header_list unistd.h"
3178 gl_header_list="$gl_header_list sys/mman.h"
3179 gl_func_list="$gl_func_list mprotect"
3180 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3181 gl_func_list="$gl_func_list setenv"
3182 gl_func_list="$gl_func_list sigaction"
3183 gl_func_list="$gl_func_list sigaltstack"
3184 gl_func_list="$gl_func_list siginterrupt"
3185 gl_func_list="$gl_func_list snprintf"
3186 gl_header_list="$gl_header_list wchar.h"
3187 gl_header_list="$gl_header_list stdint.h"
3188 gl_header_list="$gl_header_list sys/socket.h"
3189 gl_func_list="$gl_func_list strndup"
3190 gl_header_list="$gl_header_list sys/select.h"
3191 gl_header_list="$gl_header_list sys/stat.h"
3192 gl_header_list="$gl_header_list sys/time.h"
3193 gl_header_list="$gl_header_list sys/wait.h"
3194 gl_func_list="$gl_func_list vasnprintf"
3195 gl_header_list="$gl_header_list features.h"
3196 # Check that the precious variables saved in the cache have kept the same
3198 ac_cache_corrupted=false
3199 for ac_var in $ac_precious_vars; do
3200 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3201 eval ac_new_set=\$ac_env_${ac_var}_set
3202 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3203 eval ac_new_val=\$ac_env_${ac_var}_value
3204 case $ac_old_set,$ac_new_set in
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3207 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3208 ac_cache_corrupted=: ;;
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3211 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3212 ac_cache_corrupted=: ;;
3215 if test "x$ac_old_val" != "x$ac_new_val"; then
3216 # differences in whitespace do not lead to failure.
3217 ac_old_val_w=`echo x $ac_old_val`
3218 ac_new_val_w=`echo x $ac_new_val`
3219 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3221 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3222 ac_cache_corrupted=:
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3225 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3226 eval $ac_var=\$ac_old_val
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3229 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3231 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3234 # Pass precious variables to config.status.
3235 if test "$ac_new_set" = set; then
3237 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3238 *) ac_arg=$ac_var=$ac_new_val ;;
3240 case " $ac_configure_args " in
3241 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3242 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3246 if $ac_cache_corrupted; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3250 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3251 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3253 ## -------------------- ##
3254 ## Main body of script. ##
3255 ## -------------------- ##
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265 for ac_dir in tools "$srcdir"/tools; do
3266 if test -f "$ac_dir/install-sh"; then
3268 ac_install_sh="$ac_aux_dir/install-sh -c"
3270 elif test -f "$ac_dir/install.sh"; then
3272 ac_install_sh="$ac_aux_dir/install.sh -c"
3274 elif test -f "$ac_dir/shtool"; then
3276 ac_install_sh="$ac_aux_dir/shtool install -c"
3280 if test -z "$ac_aux_dir"; then
3281 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3284 # These three variables are undocumented and unsupported,
3285 # and are intended to be withdrawn in a future Autoconf release.
3286 # They can cause serious problems if a builder's source tree is in a directory
3287 # whose full name contains unusual characters.
3288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3293 am__api_version='1.13'
3295 # Find a good install program. We prefer a C program (faster),
3296 # so one script is as good as another. But avoid the broken or
3297 # incompatible versions:
3298 # SysV /etc/install, /usr/sbin/install
3299 # SunOS /usr/etc/install
3300 # IRIX /sbin/install
3302 # AmigaOS /C/install, which installs bootblocks on floppy discs
3303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3306 # OS/2's system install, which has a completely different semantic
3307 # ./install, which can be erroneously created by make from ./install.sh.
3308 # Reject install programs that cannot install multiple files.
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3310 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3311 if test -z "$INSTALL"; then
3312 if ${ac_cv_path_install+:} false; then :
3313 $as_echo_n "(cached) " >&6
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir=.
3320 # Account for people who put trailing slashes in PATH elements.
3321 case $as_dir/ in #((
3322 ./ | .// | /[cC]/* | \
3323 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3324 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3327 # OSF1 and SCO ODT 3.0 have their own names for install.
3328 # Don't use installbsd from OSF since it installs stuff as root
3330 for ac_prog in ginstall scoinst install; do
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3333 if test $ac_prog = install &&
3334 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3335 # AIX install. It has an incompatible calling convention.
3337 elif test $ac_prog = install &&
3338 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3339 # program-specific install script used by HP pwplus--don't use.
3342 rm -rf conftest.one conftest.two conftest.dir
3343 echo one > conftest.one
3344 echo two > conftest.two
3346 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3347 test -s conftest.one && test -s conftest.two &&
3348 test -s conftest.dir/conftest.one &&
3349 test -s conftest.dir/conftest.two
3351 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3364 rm -rf conftest.one conftest.two conftest.dir
3367 if test "${ac_cv_path_install+set}" = set; then
3368 INSTALL=$ac_cv_path_install
3370 # As a last resort, use the slow shell script. Don't cache a
3371 # value for INSTALL within a source directory, because that will
3372 # break other packages using the cache if that directory is
3373 # removed, or if the value is a relative name.
3374 INSTALL=$ac_install_sh
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3378 $as_echo "$INSTALL" >&6; }
3380 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3381 # It thinks the first close brace ends the variable substitution.
3382 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3384 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3386 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3389 $as_echo_n "checking whether build environment is sane... " >&6; }
3390 # Reject unsafe characters in $srcdir or the absolute working directory
3391 # name. Accept space and tab only in the latter.
3395 *[\\\"\#\$\&\'\`$am_lf]*)
3396 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3399 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3400 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3403 # Do 'set' in a subshell so we don't clobber the current shell's
3404 # arguments. Must try -L first in case configure is actually a
3405 # symlink; some systems play weird games with the mod time of symlinks
3406 # (eg FreeBSD returns the mod time of the symlink's containing
3410 for am_try in 1 2; do
3411 echo "timestamp, slept: $am_has_slept" > conftest.file
3412 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3413 if test "$*" = "X"; then
3415 set X `ls -t "$srcdir/configure" conftest.file`
3417 if test "$*" != "X $srcdir/configure conftest.file" \
3418 && test "$*" != "X conftest.file $srcdir/configure"; then
3420 # If neither matched, then we have a broken ls. This can happen
3421 # if, for instance, CONFIG_SHELL is bash and it inherits a
3422 # broken ls alias from the environment. This has actually
3423 # happened. Such a system could not be considered "sane".
3424 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3425 alias in your environment" "$LINENO" 5
3427 if test "$2" = conftest.file || test $am_try -eq 2; then
3434 test "$2" = conftest.file
3440 as_fn_error $? "newly created file is older than distributed files!
3441 Check your system clock" "$LINENO" 5
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3444 $as_echo "yes" >&6; }
3445 # If we didn't sleep, we still need to ensure time stamps of config.status and
3446 # generated files are strictly newer.
3448 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3455 test "$program_prefix" != NONE &&
3456 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3457 # Use a double $ so make ignores it.
3458 test "$program_suffix" != NONE &&
3459 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3460 # Double any \ or $.
3461 # By default was `s,x,x', remove it if useless.
3462 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3463 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3465 # expand $ac_aux_dir to an absolute path
3466 am_aux_dir=`cd $ac_aux_dir && pwd`
3468 if test x"${MISSING+set}" != xset; then
3471 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3473 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3476 # Use eval to expand $SHELL
3477 if eval "$MISSING --is-lightweight"; then
3478 am_missing_run="$MISSING "
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3482 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3485 if test x"${install_sh}" != xset; then
3488 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3490 install_sh="\${SHELL} $am_aux_dir/install-sh"
3494 # Installed binaries are usually stripped using 'strip' when the user
3495 # run "make install-strip". However 'strip' might not be the right
3496 # tool to use in cross-compilation environments, therefore Automake
3497 # will honor the 'STRIP' environment variable to overrule this program.
3498 if test "$cross_compiling" != no; then
3499 if test -n "$ac_tool_prefix"; then
3500 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3501 set dummy ${ac_tool_prefix}strip; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if ${ac_cv_prog_STRIP+:} false; then :
3505 $as_echo_n "(cached) " >&6
3507 if test -n "$STRIP"; then
3508 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 STRIP=$ac_cv_prog_STRIP
3528 if test -n "$STRIP"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3530 $as_echo "$STRIP" >&6; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3538 if test -z "$ac_cv_prog_STRIP"; then
3540 # Extract the first word of "strip", so it can be a program name with args.
3541 set dummy strip; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3545 $as_echo_n "(cached) " >&6
3547 if test -n "$ac_ct_STRIP"; then
3548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_ac_ct_STRIP="strip"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3568 if test -n "$ac_ct_STRIP"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3570 $as_echo "$ac_ct_STRIP" >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3576 if test "x$ac_ct_STRIP" = x; then
3579 case $cross_compiling:$ac_tool_warned in
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3583 ac_tool_warned=yes ;;
3588 STRIP="$ac_cv_prog_STRIP"
3592 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3595 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3596 if test -z "$MKDIR_P"; then
3597 if ${ac_cv_path_mkdir+:} false; then :
3598 $as_echo_n "(cached) " >&6
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3604 test -z "$as_dir" && as_dir=.
3605 for ac_prog in mkdir gmkdir; do
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3608 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3609 'mkdir (GNU coreutils) '* | \
3610 'mkdir (coreutils) '* | \
3611 'mkdir (fileutils) '4.1*)
3612 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3622 test -d ./--version && rmdir ./--version
3623 if test "${ac_cv_path_mkdir+set}" = set; then
3624 MKDIR_P="$ac_cv_path_mkdir -p"
3626 # As a last resort, use the slow shell script. Don't cache a
3627 # value for MKDIR_P within a source directory, because that will
3628 # break other packages using the cache if that directory is
3629 # removed, or if the value is a relative name.
3630 MKDIR_P="$ac_install_sh -d"
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3634 $as_echo "$MKDIR_P" >&6; }
3636 for ac_prog in gawk mawk nawk awk
3638 # Extract the first word of "$ac_prog", so it can be a program name with args.
3639 set dummy $ac_prog; ac_word=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if ${ac_cv_prog_AWK+:} false; then :
3643 $as_echo_n "(cached) " >&6
3645 if test -n "$AWK"; then
3646 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3655 ac_cv_prog_AWK="$ac_prog"
3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 if test -n "$AWK"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3668 $as_echo "$AWK" >&6; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3675 test -n "$AWK" && break
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3679 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3681 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3682 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3683 $as_echo_n "(cached) " >&6
3685 cat >conftest.make <<\_ACEOF
3688 @echo '@@@%%%=$(MAKE)=@@@%%%'
3690 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3691 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3693 eval ac_cv_prog_make_${ac_make}_set=yes;;
3695 eval ac_cv_prog_make_${ac_make}_set=no;;
3699 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3701 $as_echo "yes" >&6; }
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3706 SET_MAKE="MAKE=${MAKE-make}"
3709 rm -rf .tst 2>/dev/null
3710 mkdir .tst 2>/dev/null
3711 if test -d .tst; then
3716 rmdir .tst 2>/dev/null
3718 # Check whether --enable-silent-rules was given.
3719 if test "${enable_silent_rules+set}" = set; then :
3720 enableval=$enable_silent_rules;
3723 case $enable_silent_rules in # (((
3724 yes) AM_DEFAULT_VERBOSITY=0;;
3725 no) AM_DEFAULT_VERBOSITY=1;;
3726 *) AM_DEFAULT_VERBOSITY=1;;
3728 am_make=${MAKE-make}
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3730 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3731 if ${am_cv_make_support_nested_variables+:} false; then :
3732 $as_echo_n "(cached) " >&6
3734 if $as_echo 'TRUE=$(BAR$(V))
3740 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3741 am_cv_make_support_nested_variables=yes
3743 am_cv_make_support_nested_variables=no
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3747 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3748 if test $am_cv_make_support_nested_variables = yes; then
3750 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3752 AM_V=$AM_DEFAULT_VERBOSITY
3753 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3757 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3758 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3759 # is not polluted with repeated "-I."
3760 am__isrc=' -I$(srcdir)'
3761 # test to see if srcdir already configured
3762 if test -f $srcdir/config.status; then
3763 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3767 # test whether we have cygpath
3768 if test -z "$CYGPATH_W"; then
3769 if (cygpath --version) >/dev/null 2>/dev/null; then
3770 CYGPATH_W='cygpath -w'
3777 # Define the identity of the package.
3778 PACKAGE='libpipeline'
3782 cat >>confdefs.h <<_ACEOF
3783 #define PACKAGE "$PACKAGE"
3787 cat >>confdefs.h <<_ACEOF
3788 #define VERSION "$VERSION"
3791 # Some tools Automake needs.
3793 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3796 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3799 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3802 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3805 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3807 # For better backward compatibility. To be removed once Automake 1.9.x
3808 # dies out for good. For more background, see:
3809 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3810 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3811 mkdir_p='$(MKDIR_P)'
3813 # We need awk for the "check" target. The system "awk" is bad on
3815 # Always define AMTAR for backward compatibility. Yes, it's still used
3816 # in the wild :-( We should find a proper way to deprecate it ...
3820 # We'll loop over all known methods to create a tar archive until one works.
3821 _am_tools='gnutar pax cpio none'
3823 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3832 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3833 # Check whether --enable-maintainer-mode was given.
3834 if test "${enable_maintainer_mode+set}" = set; then :
3835 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3837 USE_MAINTAINER_MODE=no
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3841 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3842 if test $USE_MAINTAINER_MODE = yes; then
3843 MAINTAINER_MODE_TRUE=
3844 MAINTAINER_MODE_FALSE='#'
3846 MAINTAINER_MODE_TRUE='#'
3847 MAINTAINER_MODE_FALSE=
3850 MAINT=$MAINTAINER_MODE_TRUE
3853 # Check whether --enable-silent-rules was given.
3854 if test "${enable_silent_rules+set}" = set; then :
3855 enableval=$enable_silent_rules;
3858 case $enable_silent_rules in # (((
3859 yes) AM_DEFAULT_VERBOSITY=0;;
3860 no) AM_DEFAULT_VERBOSITY=1;;
3861 *) AM_DEFAULT_VERBOSITY=0;;
3863 am_make=${MAKE-make}
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3865 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3866 if ${am_cv_make_support_nested_variables+:} false; then :
3867 $as_echo_n "(cached) " >&6
3869 if $as_echo 'TRUE=$(BAR$(V))
3875 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3876 am_cv_make_support_nested_variables=yes
3878 am_cv_make_support_nested_variables=no
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3882 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3883 if test $am_cv_make_support_nested_variables = yes; then
3885 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3887 AM_V=$AM_DEFAULT_VERBOSITY
3888 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3894 DEPDIR="${am__leading_dot}deps"
3896 ac_config_commands="$ac_config_commands depfiles"
3899 am_make=${MAKE-make}
3900 cat > confinc << 'END'
3902 @echo this is the am__doit target
3905 # If we don't find an include directive, just comment out the code.
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3907 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3911 # First try GNU make style include.
3912 echo "include confinc" > confmf
3913 # Ignore all kinds of additional output from 'make'.
3914 case `$am_make -s -f confmf 2> /dev/null` in #(
3915 *the\ am__doit\ target*)
3921 # Now try BSD make style include.
3922 if test "$am__include" = "#"; then
3923 echo '.include "confinc"' > confmf
3924 case `$am_make -s -f confmf 2> /dev/null` in #(
3925 *the\ am__doit\ target*)
3926 am__include=.include
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3935 $as_echo "$_am_result" >&6; }
3936 rm -f confinc confmf
3938 # Check whether --enable-dependency-tracking was given.
3939 if test "${enable_dependency_tracking+set}" = set; then :
3940 enableval=$enable_dependency_tracking;
3943 if test "x$enable_dependency_tracking" != xno; then
3944 am_depcomp="$ac_aux_dir/depcomp"
3948 if test "x$enable_dependency_tracking" != xno; then
3958 ac_cpp='$CPP $CPPFLAGS'
3959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962 if test -n "$ac_tool_prefix"; then
3963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_CC+:} false; then :
3968 $as_echo_n "(cached) " >&6
3970 if test -n "$CC"; then
3971 ac_cv_prog_CC="$CC" # Let the user override the test.
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 if test -n "$CC"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3993 $as_echo "$CC" >&6; }
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
4001 if test -z "$ac_cv_prog_CC"; then
4003 # Extract the first word of "gcc", so it can be a program name with args.
4004 set dummy gcc; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4008 $as_echo_n "(cached) " >&6
4010 if test -n "$ac_ct_CC"; then
4011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_prog_ac_ct_CC="gcc"
4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4031 if test -n "$ac_ct_CC"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4033 $as_echo "$ac_ct_CC" >&6; }
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4039 if test "x$ac_ct_CC" = x; then
4042 case $cross_compiling:$ac_tool_warned in
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4046 ac_tool_warned=yes ;;
4054 if test -z "$CC"; then
4055 if test -n "$ac_tool_prefix"; then
4056 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4057 set dummy ${ac_tool_prefix}cc; ac_word=$2
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if ${ac_cv_prog_CC+:} false; then :
4061 $as_echo_n "(cached) " >&6
4063 if test -n "$CC"; then
4064 ac_cv_prog_CC="$CC" # Let the user override the test.
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_prog_CC="${ac_tool_prefix}cc"
4074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 if test -n "$CC"; then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4086 $as_echo "$CC" >&6; }
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 $as_echo "no" >&6; }
4095 if test -z "$CC"; then
4096 # Extract the first word of "cc", so it can be a program name with args.
4097 set dummy cc; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if ${ac_cv_prog_CC+:} false; then :
4101 $as_echo_n "(cached) " >&6
4103 if test -n "$CC"; then
4104 ac_cv_prog_CC="$CC" # Let the user override the test.
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4115 ac_prog_rejected=yes
4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 if test $ac_prog_rejected = yes; then
4127 # We found a bogon in the path, so make sure we never use it.
4128 set dummy $ac_cv_prog_CC
4130 if test $# != 0; then
4131 # We chose a different compiler from the bogus one.
4132 # However, it has the same basename, so the bogon will be chosen
4133 # first if we set CC to just the basename; use the full file name.
4135 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4141 if test -n "$CC"; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4143 $as_echo "$CC" >&6; }
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 $as_echo "no" >&6; }
4151 if test -z "$CC"; then
4152 if test -n "$ac_tool_prefix"; then
4153 for ac_prog in cl.exe
4155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if ${ac_cv_prog_CC+:} false; then :
4160 $as_echo_n "(cached) " >&6
4162 if test -n "$CC"; then
4163 ac_cv_prog_CC="$CC" # Let the user override the test.
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 if test -n "$CC"; then
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4185 $as_echo "$CC" >&6; }
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 $as_echo "no" >&6; }
4192 test -n "$CC" && break
4195 if test -z "$CC"; then
4197 for ac_prog in cl.exe
4199 # Extract the first word of "$ac_prog", so it can be a program name with args.
4200 set dummy $ac_prog; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4204 $as_echo_n "(cached) " >&6
4206 if test -n "$ac_ct_CC"; then
4207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216 ac_cv_prog_ac_ct_CC="$ac_prog"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4227 if test -n "$ac_ct_CC"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4229 $as_echo "$ac_ct_CC" >&6; }
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4236 test -n "$ac_ct_CC" && break
4239 if test "x$ac_ct_CC" = x; then
4242 case $cross_compiling:$ac_tool_warned in
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4246 ac_tool_warned=yes ;;
4255 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4257 as_fn_error $? "no acceptable C compiler found in \$PATH
4258 See \`config.log' for more details" "$LINENO" 5; }
4260 # Provide some information about the compiler.
4261 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4264 for ac_option in --version -v -V -qversion; do
4265 { { ac_try="$ac_compiler $ac_option >&5"
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 $as_echo "$ac_try_echo"; } >&5
4272 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4274 if test -s conftest.err; then
4276 ... rest of stderr output deleted ...
4277 10q' conftest.err >conftest.er1
4278 cat conftest.er1 >&5
4280 rm -f conftest.er1 conftest.err
4281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4282 test $ac_status = 0; }
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4296 ac_clean_files_save=$ac_clean_files
4297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4298 # Try to create an executable without -o first, disregard a.out.
4299 # It will help us diagnose broken compilers, and finding out an intuition
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4302 $as_echo_n "checking whether the C compiler works... " >&6; }
4303 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4305 # The possible output files:
4306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4309 for ac_file in $ac_files
4312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4313 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4318 if { { ac_try="$ac_link_default"
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_link_default") 2>&5
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; }; then :
4329 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4331 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4332 # so that the user can short-circuit this test for compilers unknown to
4334 for ac_file in $ac_files ''
4336 test -f "$ac_file" || continue
4338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4341 # We found the default executable, but exeext='' is most
4345 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4349 # We set ac_cv_exeext here because the later test for it is not
4350 # safe: cross compilers may not add the suffix if given an `-o'
4351 # argument, so we may need to know it at that point already.
4352 # Even if this section looks crufty: it has the advantage of
4359 test "$ac_cv_exeext" = no && ac_cv_exeext=
4364 if test -z "$ac_file"; then :
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 $as_echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4372 as_fn_error 77 "C compiler cannot create executables
4373 See \`config.log' for more details" "$LINENO" 5; }
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4376 $as_echo "yes" >&6; }
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4379 $as_echo_n "checking for C compiler default output file name... " >&6; }
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4381 $as_echo "$ac_file" >&6; }
4382 ac_exeext=$ac_cv_exeext
4384 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4385 ac_clean_files=$ac_clean_files_save
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4387 $as_echo_n "checking for suffix of executables... " >&6; }
4388 if { { ac_try="$ac_link"
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4394 $as_echo "$ac_try_echo"; } >&5
4395 (eval "$ac_link") 2>&5
4397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398 test $ac_status = 0; }; then :
4399 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4400 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4401 # work properly (i.e., refer to `conftest.exe'), while it won't with
4403 for ac_file in conftest.exe conftest conftest.*; do
4404 test -f "$ac_file" || continue
4406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4407 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4416 See \`config.log' for more details" "$LINENO" 5; }
4418 rm -f conftest conftest$ac_cv_exeext
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4420 $as_echo "$ac_cv_exeext" >&6; }
4422 rm -f conftest.$ac_ext
4423 EXEEXT=$ac_cv_exeext
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4431 FILE *f = fopen ("conftest.out", "w");
4432 return ferror (f) || fclose (f) != 0;
4438 ac_clean_files="$ac_clean_files conftest.out"
4439 # Check that the compiler produces executables we can run. If not, either
4440 # the compiler is broken, or we cross compile.
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4442 $as_echo_n "checking whether we are cross compiling... " >&6; }
4443 if test "$cross_compiling" != yes; then
4444 { { ac_try="$ac_link"
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4450 $as_echo "$ac_try_echo"; } >&5
4451 (eval "$ac_link") 2>&5
4453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4454 test $ac_status = 0; }
4455 if { ac_try='./conftest$ac_cv_exeext'
4456 { { case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461 $as_echo "$ac_try_echo"; } >&5
4462 (eval "$ac_try") 2>&5
4464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465 test $ac_status = 0; }; }; then
4468 if test "$cross_compiling" = maybe; then
4471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4473 as_fn_error $? "cannot run C compiled programs.
4474 If you meant to cross compile, use \`--host'.
4475 See \`config.log' for more details" "$LINENO" 5; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4480 $as_echo "$cross_compiling" >&6; }
4482 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4483 ac_clean_files=$ac_clean_files_save
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4485 $as_echo_n "checking for suffix of object files... " >&6; }
4486 if ${ac_cv_objext+:} false; then :
4487 $as_echo_n "(cached) " >&6
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4500 rm -f conftest.o conftest.obj
4501 if { { ac_try="$ac_compile"
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507 $as_echo "$ac_try_echo"; } >&5
4508 (eval "$ac_compile") 2>&5
4510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4511 test $ac_status = 0; }; then :
4512 for ac_file in conftest.o conftest.obj conftest.*; do
4513 test -f "$ac_file" || continue;
4515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4516 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4521 $as_echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4526 as_fn_error $? "cannot compute suffix of object files: cannot compile
4527 See \`config.log' for more details" "$LINENO" 5; }
4529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4532 $as_echo "$ac_cv_objext" >&6; }
4533 OBJEXT=$ac_cv_objext
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4536 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4537 if ${ac_cv_c_compiler_gnu+:} false; then :
4538 $as_echo_n "(cached) " >&6
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4554 if ac_fn_c_try_compile "$LINENO"; then :
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4564 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4565 if test $ac_compiler_gnu = yes; then
4570 ac_test_CFLAGS=${CFLAGS+set}
4571 ac_save_CFLAGS=$CFLAGS
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4573 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4574 if ${ac_cv_prog_cc_g+:} false; then :
4575 $as_echo_n "(cached) " >&6
4577 ac_save_c_werror_flag=$ac_c_werror_flag
4578 ac_c_werror_flag=yes
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4592 if ac_fn_c_try_compile "$LINENO"; then :
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4607 if ac_fn_c_try_compile "$LINENO"; then :
4610 ac_c_werror_flag=$ac_save_c_werror_flag
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4623 if ac_fn_c_try_compile "$LINENO"; then :
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 ac_c_werror_flag=$ac_save_c_werror_flag
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4634 $as_echo "$ac_cv_prog_cc_g" >&6; }
4635 if test "$ac_test_CFLAGS" = set; then
4636 CFLAGS=$ac_save_CFLAGS
4637 elif test $ac_cv_prog_cc_g = yes; then
4638 if test "$GCC" = yes; then
4644 if test "$GCC" = yes; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4651 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4652 if ${ac_cv_prog_cc_c89+:} false; then :
4653 $as_echo_n "(cached) " >&6
4655 ac_cv_prog_cc_c89=no
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4662 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4663 struct buf { int x; };
4664 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4665 static char *e (p, i)
4671 static char *f (char * (*g) (char **, int), char **p, ...)
4676 s = g (p, va_arg (v,int));
4681 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4682 function prototypes and stuff, but not '\xHH' hex character constants.
4683 These don't provoke an error unfortunately, instead are silently treated
4684 as 'x'. The following induces an error, until -std is added to get
4685 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4686 array size at least. It's necessary to write '\x00'==0 to get something
4687 that's true only with -std. */
4688 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4690 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4691 inside strings and character constants. */
4693 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4695 int test (int i, double x);
4696 struct s1 {int (*f) (int a);};
4697 struct s2 {int (*f) (double a);};
4698 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4704 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4709 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4710 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4712 CC="$ac_save_CC $ac_arg"
4713 if ac_fn_c_try_compile "$LINENO"; then :
4714 ac_cv_prog_cc_c89=$ac_arg
4716 rm -f core conftest.err conftest.$ac_objext
4717 test "x$ac_cv_prog_cc_c89" != "xno" && break
4719 rm -f conftest.$ac_ext
4724 case "x$ac_cv_prog_cc_c89" in
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4727 $as_echo "none needed" >&6; } ;;
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4730 $as_echo "unsupported" >&6; } ;;
4732 CC="$CC $ac_cv_prog_cc_c89"
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4734 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4736 if test "x$ac_cv_prog_cc_c89" != xno; then :
4741 ac_cpp='$CPP $CPPFLAGS'
4742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4746 depcc="$CC" am_compiler_list=
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4749 $as_echo_n "checking dependency style of $depcc... " >&6; }
4750 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4751 $as_echo_n "(cached) " >&6
4753 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4754 # We make a subdir and do the tests there. Otherwise we can end up
4755 # making bogus files that we don't know about and never remove. For
4756 # instance it was reported that on HP-UX the gcc test will end up
4757 # making a dummy file named 'D' -- because '-MD' means "put the output
4761 # Copy depcomp to subdir because otherwise we won't find it if we're
4762 # using a relative directory.
4763 cp "$am_depcomp" conftest.dir
4765 # We will build objects and dependencies in a subdirectory because
4766 # it helps to detect inapplicable dependency modes. For instance
4767 # both Tru64's cc and ICC support -MD to output dependencies as a
4768 # side effect of compilation, but ICC will put the dependencies in
4769 # the current directory while Tru64 will put them in the object
4773 am_cv_CC_dependencies_compiler_type=none
4774 if test "$am_compiler_list" = ""; then
4775 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4778 case " $depcc " in #(
4779 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4782 for depmode in $am_compiler_list; do
4783 # Setup a source with many dependencies, because some compilers
4784 # like to wrap large dependency lists on column 80 (with \), and
4785 # we should not choose a depcomp mode which is confused by this.
4787 # We need to recreate these files for each test, as the compiler may
4788 # overwrite some of them when testing with obscure command lines.
4789 # This happens at least with the AIX C compiler.
4791 for i in 1 2 3 4 5 6; do
4792 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4793 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4794 # Solaris 10 /bin/sh.
4795 echo '/* dummy */' > sub/conftst$i.h
4797 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4799 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4800 # mode. It turns out that the SunPro C++ compiler does not properly
4801 # handle '-M -o', and we need to detect this. Also, some Intel
4802 # versions had trouble with output in subdirs.
4803 am__obj=sub/conftest.${OBJEXT-o}
4804 am__minus_obj="-o $am__obj"
4807 # This depmode causes a compiler race in universal mode.
4808 test "$am__universal" = false || continue
4811 # After this tag, mechanisms are not by side-effect, so they'll
4812 # only be used when explicitly requested.
4813 if test "x$enable_dependency_tracking" = xyes; then
4819 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4820 # This compiler won't grok '-c -o', but also, the minuso test has
4821 # not run yet. These depmodes are late enough in the game, and
4822 # so weak that their functioning should not be impacted.
4823 am__obj=conftest.${OBJEXT-o}
4828 if depmode=$depmode \
4829 source=sub/conftest.c object=$am__obj \
4830 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4831 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4832 >/dev/null 2>conftest.err &&
4833 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4834 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4835 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4836 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4837 # icc doesn't choke on unknown options, it will just issue warnings
4838 # or remarks (even with -Werror). So we grep stderr for any message
4839 # that says an option was ignored or not supported.
4840 # When given -MP, icc 7.0 and 7.1 complain thusly:
4841 # icc: Command line warning: ignoring option '-M'; no argument required
4842 # The diagnosis changed in icc 8.0:
4843 # icc: Command line remark: option '-MP' not supported
4844 if (grep 'ignoring option' conftest.err ||
4845 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4846 am_cv_CC_dependencies_compiler_type=$depmode
4855 am_cv_CC_dependencies_compiler_type=none
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4860 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4861 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4864 test "x$enable_dependency_tracking" != xno \
4865 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4867 am__fastdepCC_FALSE='#'
4869 am__fastdepCC_TRUE='#'
4870 am__fastdepCC_FALSE=
4876 ac_cpp='$CPP $CPPFLAGS'
4877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4881 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4882 # On Suns, sometimes $CPP names a directory.
4883 if test -n "$CPP" && test -d "$CPP"; then
4886 if test -z "$CPP"; then
4887 if ${ac_cv_prog_CPP+:} false; then :
4888 $as_echo_n "(cached) " >&6
4890 # Double quotes because CPP needs to be expanded
4891 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4894 for ac_c_preproc_warn_flag in '' yes
4896 # Use a header file that comes with gcc, so configuring glibc
4897 # with a fresh cross-compiler works.
4898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4899 # <limits.h> exists even on freestanding compilers.
4900 # On the NeXT, cc -E runs the code through the compiler's parser,
4901 # not just through cpp. "Syntax error" is here to catch this case.
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4905 # include <limits.h>
4907 # include <assert.h>
4911 if ac_fn_c_try_cpp "$LINENO"; then :
4914 # Broken: fails on valid input.
4917 rm -f conftest.err conftest.i conftest.$ac_ext
4919 # OK, works on sane cases. Now check whether nonexistent headers
4920 # can be detected and how.
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923 #include <ac_nonexistent.h>
4925 if ac_fn_c_try_cpp "$LINENO"; then :
4926 # Broken: success on invalid input.
4929 # Passes both tests.
4933 rm -f conftest.err conftest.i conftest.$ac_ext
4936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4937 rm -f conftest.i conftest.err conftest.$ac_ext
4938 if $ac_preproc_ok; then :
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4951 $as_echo "$CPP" >&6; }
4953 for ac_c_preproc_warn_flag in '' yes
4955 # Use a header file that comes with gcc, so configuring glibc
4956 # with a fresh cross-compiler works.
4957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4958 # <limits.h> exists even on freestanding compilers.
4959 # On the NeXT, cc -E runs the code through the compiler's parser,
4960 # not just through cpp. "Syntax error" is here to catch this case.
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4964 # include <limits.h>
4966 # include <assert.h>
4970 if ac_fn_c_try_cpp "$LINENO"; then :
4973 # Broken: fails on valid input.
4976 rm -f conftest.err conftest.i conftest.$ac_ext
4978 # OK, works on sane cases. Now check whether nonexistent headers
4979 # can be detected and how.
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4982 #include <ac_nonexistent.h>
4984 if ac_fn_c_try_cpp "$LINENO"; then :
4985 # Broken: success on invalid input.
4988 # Passes both tests.
4992 rm -f conftest.err conftest.i conftest.$ac_ext
4995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4996 rm -f conftest.i conftest.err conftest.$ac_ext
4997 if $ac_preproc_ok; then :
5000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5002 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5003 See \`config.log' for more details" "$LINENO" 5; }
5007 ac_cpp='$CPP $CPPFLAGS'
5008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5014 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5015 if ${ac_cv_path_GREP+:} false; then :
5016 $as_echo_n "(cached) " >&6
5018 if test -z "$GREP"; then
5019 ac_path_GREP_found=false
5020 # Loop through the user's path and test for each of PROGNAME-LIST
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5025 test -z "$as_dir" && as_dir=.
5026 for ac_prog in grep ggrep; do
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5029 as_fn_executable_p "$ac_path_GREP" || continue
5030 # Check for GNU ac_path_GREP and select it if it is found.
5031 # Check for GNU $ac_path_GREP
5032 case `"$ac_path_GREP" --version 2>&1` in
5034 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5037 $as_echo_n 0123456789 >"conftest.in"
5040 cat "conftest.in" "conftest.in" >"conftest.tmp"
5041 mv "conftest.tmp" "conftest.in"
5042 cp "conftest.in" "conftest.nl"
5043 $as_echo 'GREP' >> "conftest.nl"
5044 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5045 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5046 as_fn_arith $ac_count + 1 && ac_count=$as_val
5047 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5048 # Best one so far, save it but keep looking for a better one
5049 ac_cv_path_GREP="$ac_path_GREP"
5050 ac_path_GREP_max=$ac_count
5052 # 10*(2^10) chars as input seems more than enough
5053 test $ac_count -gt 10 && break
5055 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5058 $ac_path_GREP_found && break 3
5063 if test -z "$ac_cv_path_GREP"; then
5064 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5067 ac_cv_path_GREP=$GREP
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5072 $as_echo "$ac_cv_path_GREP" >&6; }
5073 GREP="$ac_cv_path_GREP"
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5077 $as_echo_n "checking for egrep... " >&6; }
5078 if ${ac_cv_path_EGREP+:} false; then :
5079 $as_echo_n "(cached) " >&6
5081 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5082 then ac_cv_path_EGREP="$GREP -E"
5084 if test -z "$EGREP"; then
5085 ac_path_EGREP_found=false
5086 # Loop through the user's path and test for each of PROGNAME-LIST
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5091 test -z "$as_dir" && as_dir=.
5092 for ac_prog in egrep; do
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5095 as_fn_executable_p "$ac_path_EGREP" || continue
5096 # Check for GNU ac_path_EGREP and select it if it is found.
5097 # Check for GNU $ac_path_EGREP
5098 case `"$ac_path_EGREP" --version 2>&1` in
5100 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5103 $as_echo_n 0123456789 >"conftest.in"
5106 cat "conftest.in" "conftest.in" >"conftest.tmp"
5107 mv "conftest.tmp" "conftest.in"
5108 cp "conftest.in" "conftest.nl"
5109 $as_echo 'EGREP' >> "conftest.nl"
5110 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5112 as_fn_arith $ac_count + 1 && ac_count=$as_val
5113 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5114 # Best one so far, save it but keep looking for a better one
5115 ac_cv_path_EGREP="$ac_path_EGREP"
5116 ac_path_EGREP_max=$ac_count
5118 # 10*(2^10) chars as input seems more than enough
5119 test $ac_count -gt 10 && break
5121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5124 $ac_path_EGREP_found && break 3
5129 if test -z "$ac_cv_path_EGREP"; then
5130 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5133 ac_cv_path_EGREP=$EGREP
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5139 $as_echo "$ac_cv_path_EGREP" >&6; }
5140 EGREP="$ac_cv_path_EGREP"
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5144 $as_echo_n "checking for ANSI C header files... " >&6; }
5145 if ${ac_cv_header_stdc+:} false; then :
5146 $as_echo_n "(cached) " >&6
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5163 if ac_fn_c_try_compile "$LINENO"; then :
5164 ac_cv_header_stdc=yes
5166 ac_cv_header_stdc=no
5168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 if test $ac_cv_header_stdc = yes; then
5171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5178 $EGREP "memchr" >/dev/null 2>&1; then :
5181 ac_cv_header_stdc=no
5187 if test $ac_cv_header_stdc = yes; then
5188 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5195 $EGREP "free" >/dev/null 2>&1; then :
5198 ac_cv_header_stdc=no
5204 if test $ac_cv_header_stdc = yes; then
5205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5206 if test "$cross_compiling" = yes; then :
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5213 #if ((' ' & 0x0FF) == 0x020)
5214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5217 # define ISLOWER(c) \
5218 (('a' <= (c) && (c) <= 'i') \
5219 || ('j' <= (c) && (c) <= 'r') \
5220 || ('s' <= (c) && (c) <= 'z'))
5221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5229 for (i = 0; i < 256; i++)
5230 if (XOR (islower (i), ISLOWER (i))
5231 || toupper (i) != TOUPPER (i))
5236 if ac_fn_c_try_run "$LINENO"; then :
5239 ac_cv_header_stdc=no
5241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5242 conftest.$ac_objext conftest.beam conftest.$ac_ext
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5248 $as_echo "$ac_cv_header_stdc" >&6; }
5249 if test $ac_cv_header_stdc = yes; then
5251 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5256 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5257 inttypes.h stdint.h unistd.h
5259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5260 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5262 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5263 cat >>confdefs.h <<_ACEOF
5264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5273 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5274 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5281 if test "$MINIX" = yes; then
5283 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5286 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5289 $as_echo "#define _MINIX 1" >>confdefs.h
5292 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5298 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5299 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5300 $as_echo_n "(cached) " >&6
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5305 # define __EXTENSIONS__ 1
5306 $ac_includes_default
5315 if ac_fn_c_try_compile "$LINENO"; then :
5316 ac_cv_safe_to_define___extensions__=yes
5318 ac_cv_safe_to_define___extensions__=no
5320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5323 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5324 test $ac_cv_safe_to_define___extensions__ = yes &&
5325 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5327 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5329 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5331 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5333 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5335 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5338 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5339 if ${ac_cv_should_define__xopen_source+:} false; then :
5340 $as_echo_n "(cached) " >&6
5342 ac_cv_should_define__xopen_source=no
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5356 if ac_fn_c_try_compile "$LINENO"; then :
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5362 #define _XOPEN_SOURCE 500
5373 if ac_fn_c_try_compile "$LINENO"; then :
5374 ac_cv_should_define__xopen_source=yes
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5381 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5382 test $ac_cv_should_define__xopen_source = yes &&
5383 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5387 if test -n "$ac_tool_prefix"; then
5388 for ac_prog in ar lib "link -lib"
5390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if ${ac_cv_prog_AR+:} false; then :
5395 $as_echo_n "(cached) " >&6
5397 if test -n "$AR"; then
5398 ac_cv_prog_AR="$AR" # Let the user override the test.
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 if test -n "$AR"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5420 $as_echo "$AR" >&6; }
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5427 test -n "$AR" && break
5430 if test -z "$AR"; then
5432 for ac_prog in ar lib "link -lib"
5434 # Extract the first word of "$ac_prog", so it can be a program name with args.
5435 set dummy $ac_prog; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5439 $as_echo_n "(cached) " >&6
5441 if test -n "$ac_ct_AR"; then
5442 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_ac_ct_AR="$ac_prog"
5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5462 if test -n "$ac_ct_AR"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5464 $as_echo "$ac_ct_AR" >&6; }
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5471 test -n "$ac_ct_AR" && break
5474 if test "x$ac_ct_AR" = x; then
5477 case $cross_compiling:$ac_tool_warned in
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5481 ac_tool_warned=yes ;;
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5490 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5491 if ${am_cv_ar_interface+:} false; then :
5492 $as_echo_n "(cached) " >&6
5494 am_cv_ar_interface=ar
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5497 int some_variable = 0;
5499 if ac_fn_c_try_compile "$LINENO"; then :
5500 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5502 (eval $am_ar_try) 2>&5
5504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5505 test $ac_status = 0; }
5506 if test "$ac_status" -eq 0; then
5507 am_cv_ar_interface=ar
5509 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5511 (eval $am_ar_try) 2>&5
5513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5514 test $ac_status = 0; }
5515 if test "$ac_status" -eq 0; then
5516 am_cv_ar_interface=lib
5518 am_cv_ar_interface=unknown
5521 rm -f conftest.lib libconftest.a
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5528 $as_echo "$am_cv_ar_interface" >&6; }
5530 case $am_cv_ar_interface in
5534 # Microsoft lib, so override with the ar-lib wrapper script.
5535 # FIXME: It is wrong to rewrite AR.
5536 # But if we don't then we get into trouble of one sort or another.
5537 # A longer-term fix would be to have automake use am__AR in this case,
5538 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5540 AR="$am_aux_dir/ar-lib $AR"
5543 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5550 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5555 macro_version='2.4.2'
5556 macro_revision='1.3337'
5570 ltmain="$ac_aux_dir/ltmain.sh"
5572 # Make sure we can run config.sub.
5573 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5574 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5577 $as_echo_n "checking build system type... " >&6; }
5578 if ${ac_cv_build+:} false; then :
5579 $as_echo_n "(cached) " >&6
5581 ac_build_alias=$build_alias
5582 test "x$ac_build_alias" = x &&
5583 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5584 test "x$ac_build_alias" = x &&
5585 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5586 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5587 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5591 $as_echo "$ac_cv_build" >&6; }
5592 case $ac_cv_build in
5594 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5597 ac_save_IFS=$IFS; IFS='-'
5603 # Remember, the first character of IFS is used to create $*,
5604 # except with old shells:
5607 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5611 $as_echo_n "checking host system type... " >&6; }
5612 if ${ac_cv_host+:} false; then :
5613 $as_echo_n "(cached) " >&6
5615 if test "x$host_alias" = x; then
5616 ac_cv_host=$ac_cv_build
5618 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5619 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5624 $as_echo "$ac_cv_host" >&6; }
5627 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5630 ac_save_IFS=$IFS; IFS='-'
5636 # Remember, the first character of IFS is used to create $*,
5637 # except with old shells:
5640 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5643 # Backslashify metacharacters that are still active within
5644 # double-quoted strings.
5645 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5647 # Same as above, but do not quote variable references.
5648 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5650 # Sed substitution to delay expansion of an escaped shell variable in a
5651 # double_quote_subst'ed string.
5652 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5654 # Sed substitution to delay expansion of an escaped single quote.
5655 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5657 # Sed substitution to avoid accidental globbing in evaled expressions
5658 no_glob_subst='s/\*/\\\*/g'
5660 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5661 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5662 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5665 $as_echo_n "checking how to print strings... " >&6; }
5666 # Test print first, because it will be a builtin if present.
5667 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5668 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5670 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5673 # Use this function as a fallback that always works.
5674 func_fallback_echo ()
5676 eval 'cat <<_LTECHO_EOF
5680 ECHO='func_fallback_echo'
5683 # func_echo_all arg...
5684 # Invoke $ECHO with all args, space-separated.
5691 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5692 $as_echo "printf" >&6; } ;;
5693 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5694 $as_echo "print -r" >&6; } ;;
5695 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5696 $as_echo "cat" >&6; } ;;
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5713 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5714 if ${ac_cv_path_SED+:} false; then :
5715 $as_echo_n "(cached) " >&6
5717 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5718 for ac_i in 1 2 3 4 5 6 7; do
5719 ac_script="$ac_script$as_nl$ac_script"
5721 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5722 { ac_script=; unset ac_script;}
5723 if test -z "$SED"; then
5724 ac_path_SED_found=false
5725 # Loop through the user's path and test for each of PROGNAME-LIST
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 test -z "$as_dir" && as_dir=.
5731 for ac_prog in sed gsed; do
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5734 as_fn_executable_p "$ac_path_SED" || continue
5735 # Check for GNU ac_path_SED and select it if it is found.
5736 # Check for GNU $ac_path_SED
5737 case `"$ac_path_SED" --version 2>&1` in
5739 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5742 $as_echo_n 0123456789 >"conftest.in"
5745 cat "conftest.in" "conftest.in" >"conftest.tmp"
5746 mv "conftest.tmp" "conftest.in"
5747 cp "conftest.in" "conftest.nl"
5748 $as_echo '' >> "conftest.nl"
5749 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5750 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5751 as_fn_arith $ac_count + 1 && ac_count=$as_val
5752 if test $ac_count -gt ${ac_path_SED_max-0}; then
5753 # Best one so far, save it but keep looking for a better one
5754 ac_cv_path_SED="$ac_path_SED"
5755 ac_path_SED_max=$ac_count
5757 # 10*(2^10) chars as input seems more than enough
5758 test $ac_count -gt 10 && break
5760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5763 $ac_path_SED_found && break 3
5768 if test -z "$ac_cv_path_SED"; then
5769 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5777 $as_echo "$ac_cv_path_SED" >&6; }
5778 SED="$ac_cv_path_SED"
5781 test -z "$SED" && SED=sed
5782 Xsed="$SED -e 1s/^X//"
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5795 $as_echo_n "checking for fgrep... " >&6; }
5796 if ${ac_cv_path_FGREP+:} false; then :
5797 $as_echo_n "(cached) " >&6
5799 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5800 then ac_cv_path_FGREP="$GREP -F"
5802 if test -z "$FGREP"; then
5803 ac_path_FGREP_found=false
5804 # Loop through the user's path and test for each of PROGNAME-LIST
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5809 test -z "$as_dir" && as_dir=.
5810 for ac_prog in fgrep; do
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5813 as_fn_executable_p "$ac_path_FGREP" || continue
5814 # Check for GNU ac_path_FGREP and select it if it is found.
5815 # Check for GNU $ac_path_FGREP
5816 case `"$ac_path_FGREP" --version 2>&1` in
5818 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5821 $as_echo_n 0123456789 >"conftest.in"
5824 cat "conftest.in" "conftest.in" >"conftest.tmp"
5825 mv "conftest.tmp" "conftest.in"
5826 cp "conftest.in" "conftest.nl"
5827 $as_echo 'FGREP' >> "conftest.nl"
5828 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5829 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5830 as_fn_arith $ac_count + 1 && ac_count=$as_val
5831 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5832 # Best one so far, save it but keep looking for a better one
5833 ac_cv_path_FGREP="$ac_path_FGREP"
5834 ac_path_FGREP_max=$ac_count
5836 # 10*(2^10) chars as input seems more than enough
5837 test $ac_count -gt 10 && break
5839 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5842 $ac_path_FGREP_found && break 3
5847 if test -z "$ac_cv_path_FGREP"; then
5848 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5851 ac_cv_path_FGREP=$FGREP
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5857 $as_echo "$ac_cv_path_FGREP" >&6; }
5858 FGREP="$ac_cv_path_FGREP"
5861 test -z "$GREP" && GREP=grep
5881 # Check whether --with-gnu-ld was given.
5882 if test "${with_gnu_ld+set}" = set; then :
5883 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5889 if test "$GCC" = yes; then
5890 # Check if gcc -print-prog-name=ld gives a path.
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5892 $as_echo_n "checking for ld used by $CC... " >&6; }
5895 # gcc leaves a trailing carriage return which upsets mingw
5896 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5898 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5901 # Accept absolute paths.
5903 re_direlt='/[^/][^/]*/\.\./'
5904 # Canonicalize the pathname of ld
5905 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5906 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5907 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5909 test -z "$LD" && LD="$ac_prog"
5912 # If it fails, then pretend we aren't using GCC.
5916 # If it is relative, then search for the first ld in PATH.
5920 elif test "$with_gnu_ld" = yes; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5922 $as_echo_n "checking for GNU ld... " >&6; }
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5925 $as_echo_n "checking for non-GNU ld... " >&6; }
5927 if ${lt_cv_path_LD+:} false; then :
5928 $as_echo_n "(cached) " >&6
5930 if test -z "$LD"; then
5931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5932 for ac_dir in $PATH; do
5934 test -z "$ac_dir" && ac_dir=.
5935 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5936 lt_cv_path_LD="$ac_dir/$ac_prog"
5937 # Check to see if the program is GNU ld. I'd rather use --version,
5938 # but apparently some variants of GNU ld only accept -v.
5939 # Break only if it was the GNU/non-GNU ld that we prefer.
5940 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5941 *GNU* | *'with BFD'*)
5942 test "$with_gnu_ld" != no && break
5945 test "$with_gnu_ld" != yes && break
5952 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5957 if test -n "$LD"; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5959 $as_echo "$LD" >&6; }
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962 $as_echo "no" >&6; }
5964 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5966 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5967 if ${lt_cv_prog_gnu_ld+:} false; then :
5968 $as_echo_n "(cached) " >&6
5970 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5971 case `$LD -v 2>&1 </dev/null` in
5972 *GNU* | *'with BFD'*)
5973 lt_cv_prog_gnu_ld=yes
5976 lt_cv_prog_gnu_ld=no
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5981 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5982 with_gnu_ld=$lt_cv_prog_gnu_ld
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5993 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5994 if ${lt_cv_path_NM+:} false; then :
5995 $as_echo_n "(cached) " >&6
5997 if test -n "$NM"; then
5998 # Let the user override the test.
6001 lt_nm_to_check="${ac_tool_prefix}nm"
6002 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6003 lt_nm_to_check="$lt_nm_to_check nm"
6005 for lt_tmp_nm in $lt_nm_to_check; do
6006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6007 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6009 test -z "$ac_dir" && ac_dir=.
6010 tmp_nm="$ac_dir/$lt_tmp_nm"
6011 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6012 # Check to see if the nm accepts a BSD-compat flag.
6013 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6014 # nm: unknown option "B" ignored
6015 # Tru64's nm complains that /dev/null is an invalid object file
6016 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6017 */dev/null* | *'Invalid file or object type'*)
6018 lt_cv_path_NM="$tmp_nm -B"
6022 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6024 lt_cv_path_NM="$tmp_nm -p"
6028 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6029 continue # so that we can try to find one that supports BSD flags
6038 : ${lt_cv_path_NM=no}
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6042 $as_echo "$lt_cv_path_NM" >&6; }
6043 if test "$lt_cv_path_NM" != "no"; then
6046 # Didn't find any BSD compatible name lister, look for dumpbin.
6047 if test -n "$DUMPBIN"; then :
6048 # Let the user override the test.
6050 if test -n "$ac_tool_prefix"; then
6051 for ac_prog in dumpbin "link -dump"
6053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if ${ac_cv_prog_DUMPBIN+:} false; then :
6058 $as_echo_n "(cached) " >&6
6060 if test -n "$DUMPBIN"; then
6061 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 DUMPBIN=$ac_cv_prog_DUMPBIN
6081 if test -n "$DUMPBIN"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6083 $as_echo "$DUMPBIN" >&6; }
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6090 test -n "$DUMPBIN" && break
6093 if test -z "$DUMPBIN"; then
6094 ac_ct_DUMPBIN=$DUMPBIN
6095 for ac_prog in dumpbin "link -dump"
6097 # Extract the first word of "$ac_prog", so it can be a program name with args.
6098 set dummy $ac_prog; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6102 $as_echo_n "(cached) " >&6
6104 if test -n "$ac_ct_DUMPBIN"; then
6105 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6114 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6125 if test -n "$ac_ct_DUMPBIN"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6127 $as_echo "$ac_ct_DUMPBIN" >&6; }
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6134 test -n "$ac_ct_DUMPBIN" && break
6137 if test "x$ac_ct_DUMPBIN" = x; then
6140 case $cross_compiling:$ac_tool_warned in
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6144 ac_tool_warned=yes ;;
6146 DUMPBIN=$ac_ct_DUMPBIN
6150 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6152 DUMPBIN="$DUMPBIN -symbols"
6160 if test "$DUMPBIN" != ":"; then
6164 test -z "$NM" && NM=nm
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6172 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6173 if ${lt_cv_nm_interface+:} false; then :
6174 $as_echo_n "(cached) " >&6
6176 lt_cv_nm_interface="BSD nm"
6177 echo "int some_variable = 0;" > conftest.$ac_ext
6178 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6179 (eval "$ac_compile" 2>conftest.err)
6180 cat conftest.err >&5
6181 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6182 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6183 cat conftest.err >&5
6184 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6185 cat conftest.out >&5
6186 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6187 lt_cv_nm_interface="MS dumpbin"
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6192 $as_echo "$lt_cv_nm_interface" >&6; }
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6195 $as_echo_n "checking whether ln -s works... " >&6; }
6197 if test "$LN_S" = "ln -s"; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6199 $as_echo "yes" >&6; }
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6202 $as_echo "no, using $LN_S" >&6; }
6205 # find the maximum length of command line arguments
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6207 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6208 if ${lt_cv_sys_max_cmd_len+:} false; then :
6209 $as_echo_n "(cached) " >&6
6216 # On DJGPP, this test can blow up pretty badly due to problems in libc
6217 # (any single argument exceeding 2000 bytes causes a buffer overrun
6218 # during glob expansion). Even if it were fixed, the result of this
6219 # check would be larger than it should be.
6220 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6224 # Under GNU Hurd, this test is not required because there is
6225 # no limit to the length of command line arguments.
6226 # Libtool will interpret -1 as no limit whatsoever
6227 lt_cv_sys_max_cmd_len=-1;
6230 cygwin* | mingw* | cegcc*)
6231 # On Win9x/ME, this test blows up -- it succeeds, but takes
6232 # about 5 minutes as the teststring grows exponentially.
6233 # Worse, since 9x/ME are not pre-emptively multitasking,
6234 # you end up with a "frozen" computer, even though with patience
6235 # the test eventually succeeds (with a max line length of 256k).
6236 # Instead, let's just punt: use the minimum linelength reported by
6237 # all of the supported platforms: 8192 (on NT/2K/XP).
6238 lt_cv_sys_max_cmd_len=8192;
6242 # On MiNT this can take a long time and run out of memory.
6243 lt_cv_sys_max_cmd_len=8192;
6247 # On AmigaOS with pdksh, this test takes hours, literally.
6248 # So we just punt and use a minimum line length of 8192.
6249 lt_cv_sys_max_cmd_len=8192;
6252 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6253 # This has been around since 386BSD, at least. Likely further.
6254 if test -x /sbin/sysctl; then
6255 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6256 elif test -x /usr/sbin/sysctl; then
6257 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6259 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6261 # And add a safety zone
6262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6267 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6268 lt_cv_sys_max_cmd_len=196608
6272 # The test takes a long time on OS/2.
6273 lt_cv_sys_max_cmd_len=8192
6277 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6278 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6279 # nice to cause kernel panics so lets avoid the loop below.
6280 # First set a reasonable default.
6281 lt_cv_sys_max_cmd_len=16384
6283 if test -x /sbin/sysconfig; then
6284 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6285 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6290 lt_cv_sys_max_cmd_len=102400
6292 sysv5* | sco5v6* | sysv4.2uw2*)
6293 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6294 if test -n "$kargmax"; then
6295 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6297 lt_cv_sys_max_cmd_len=32768
6301 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6302 if test -n "$lt_cv_sys_max_cmd_len" && \
6303 test undefined != "$lt_cv_sys_max_cmd_len"; then
6304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6307 # Make teststring a little bigger before we do anything with it.
6308 # a 1K string should be a reasonable start.
6309 for i in 1 2 3 4 5 6 7 8 ; do
6310 teststring=$teststring$teststring
6312 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6313 # If test is not a shell built-in, we'll probably end up computing a
6314 # maximum length that is only half of the actual maximum length, but
6316 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6317 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6318 test $i != 17 # 1/2 MB should be enough
6321 teststring=$teststring$teststring
6323 # Only check the string length outside the loop.
6324 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6326 # Add a significant safety factor because C++ compilers can tack on
6327 # massive amounts of additional arguments before passing them to the
6328 # linker. It appears as though 1/2 is a usable value.
6329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6336 if test -n $lt_cv_sys_max_cmd_len ; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6338 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6341 $as_echo "none" >&6; }
6343 max_cmd_len=$lt_cv_sys_max_cmd_len
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6355 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6356 # Try some XSI features
6359 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6361 && eval 'test $(( 1 + 1 )) -eq 2 \
6362 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6365 $as_echo "$xsi_shell" >&6; }
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6369 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6371 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6373 && lt_shell_append=yes
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6375 $as_echo "$lt_shell_append" >&6; }
6378 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6388 # test EBCDIC or ASCII
6389 case `echo X|tr X '\101'` in
6390 A) # ASCII based system
6391 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6392 lt_SP2NL='tr \040 \012'
6393 lt_NL2SP='tr \015\012 \040\040'
6395 *) # EBCDIC based system
6396 lt_SP2NL='tr \100 \n'
6397 lt_NL2SP='tr \r\n \100\100'
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6410 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6411 if ${lt_cv_to_host_file_cmd+:} false; then :
6412 $as_echo_n "(cached) " >&6
6417 *-*-mingw* ) # actually msys
6418 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6421 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6423 * ) # otherwise, assume *nix
6424 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6430 *-*-mingw* ) # actually msys
6431 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6434 lt_cv_to_host_file_cmd=func_convert_file_noop
6436 * ) # otherwise, assume *nix
6437 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6441 * ) # unhandled hosts (and "normal" native builds)
6442 lt_cv_to_host_file_cmd=func_convert_file_noop
6448 to_host_file_cmd=$lt_cv_to_host_file_cmd
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6450 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6457 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6458 if ${lt_cv_to_tool_file_cmd+:} false; then :
6459 $as_echo_n "(cached) " >&6
6461 #assume ordinary cross tools, or native build.
6462 lt_cv_to_tool_file_cmd=func_convert_file_noop
6466 *-*-mingw* ) # actually msys
6467 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6475 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6477 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6484 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6485 if ${lt_cv_ld_reload_flag+:} false; then :
6486 $as_echo_n "(cached) " >&6
6488 lt_cv_ld_reload_flag='-r'
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6491 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6492 reload_flag=$lt_cv_ld_reload_flag
6493 case $reload_flag in
6495 *) reload_flag=" $reload_flag" ;;
6497 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6499 cygwin* | mingw* | pw32* | cegcc*)
6500 if test "$GCC" != yes; then
6505 if test "$GCC" = yes; then
6506 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6508 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6521 if test -n "$ac_tool_prefix"; then
6522 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if ${ac_cv_prog_OBJDUMP+:} false; then :
6527 $as_echo_n "(cached) " >&6
6529 if test -n "$OBJDUMP"; then
6530 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 OBJDUMP=$ac_cv_prog_OBJDUMP
6550 if test -n "$OBJDUMP"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6552 $as_echo "$OBJDUMP" >&6; }
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6560 if test -z "$ac_cv_prog_OBJDUMP"; then
6561 ac_ct_OBJDUMP=$OBJDUMP
6562 # Extract the first word of "objdump", so it can be a program name with args.
6563 set dummy objdump; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6567 $as_echo_n "(cached) " >&6
6569 if test -n "$ac_ct_OBJDUMP"; then
6570 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6590 if test -n "$ac_ct_OBJDUMP"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6592 $as_echo "$ac_ct_OBJDUMP" >&6; }
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6598 if test "x$ac_ct_OBJDUMP" = x; then
6601 case $cross_compiling:$ac_tool_warned in
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned=yes ;;
6607 OBJDUMP=$ac_ct_OBJDUMP
6610 OBJDUMP="$ac_cv_prog_OBJDUMP"
6613 test -z "$OBJDUMP" && OBJDUMP=objdump
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6624 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6625 if ${lt_cv_deplibs_check_method+:} false; then :
6626 $as_echo_n "(cached) " >&6
6628 lt_cv_file_magic_cmd='$MAGIC_CMD'
6629 lt_cv_file_magic_test_file=
6630 lt_cv_deplibs_check_method='unknown'
6631 # Need to set the preceding variable on all platforms that support
6632 # interlibrary dependencies.
6633 # 'none' -- dependencies not supported.
6634 # `unknown' -- same as none, but documents that we really don't know.
6635 # 'pass_all' -- all dependencies passed with no checks.
6636 # 'test_compile' -- check by making test program.
6637 # 'file_magic [[regex]]' -- check by looking for files in library path
6638 # which responds to the $file_magic_cmd with a given extended regex.
6639 # If you have `file' or equivalent on your system and you're not sure
6640 # whether `pass_all' will *always* work, you probably want this one.
6644 lt_cv_deplibs_check_method=pass_all
6648 lt_cv_deplibs_check_method=pass_all
6652 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6653 lt_cv_file_magic_cmd='/usr/bin/file -L'
6654 lt_cv_file_magic_test_file=/shlib/libc.so
6658 # func_win32_libid is a shell function defined in ltmain.sh
6659 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6660 lt_cv_file_magic_cmd='func_win32_libid'
6664 # Base MSYS/MinGW do not provide the 'file' command needed by
6665 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6666 # unless we find 'file', for example because we are cross-compiling.
6667 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6668 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6669 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6670 lt_cv_file_magic_cmd='func_win32_libid'
6672 # Keep this pattern in sync with the one in func_win32_libid.
6673 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6674 lt_cv_file_magic_cmd='$OBJDUMP -f'
6679 # use the weaker test based on 'objdump'. See mingw*.
6680 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6681 lt_cv_file_magic_cmd='$OBJDUMP -f'
6684 darwin* | rhapsody*)
6685 lt_cv_deplibs_check_method=pass_all
6688 freebsd* | dragonfly*)
6689 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6692 # Not sure whether the presence of OpenBSD here was a mistake.
6693 # Let's accept both of them until this is cleared up.
6694 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6695 lt_cv_file_magic_cmd=/usr/bin/file
6696 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6700 lt_cv_deplibs_check_method=pass_all
6705 lt_cv_deplibs_check_method=pass_all
6708 hpux10.20* | hpux11*)
6709 lt_cv_file_magic_cmd=/usr/bin/file
6712 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6713 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6716 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]'
6717 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6720 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6721 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6727 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6731 irix5* | irix6* | nonstopux*)
6733 *-32|*"-32 ") libmagic=32-bit;;
6734 *-n32|*"-n32 ") libmagic=N32;;
6735 *-64|*"-64 ") libmagic=64-bit;;
6736 *) libmagic=never-match;;
6738 lt_cv_deplibs_check_method=pass_all
6741 # This must be glibc/ELF.
6742 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6743 lt_cv_deplibs_check_method=pass_all
6746 netbsd* | netbsdelf*-gnu)
6747 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6755 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6756 lt_cv_file_magic_cmd=/usr/bin/file
6757 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6761 lt_cv_deplibs_check_method=pass_all
6765 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6766 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6768 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6772 osf3* | osf4* | osf5*)
6773 lt_cv_deplibs_check_method=pass_all
6777 lt_cv_deplibs_check_method=pass_all
6781 lt_cv_deplibs_check_method=pass_all
6784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6785 lt_cv_deplibs_check_method=pass_all
6789 case $host_vendor in
6791 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]'
6792 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6795 lt_cv_deplibs_check_method=pass_all
6798 lt_cv_file_magic_cmd='/bin/file'
6799 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6802 lt_cv_file_magic_cmd='/bin/file'
6803 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6804 lt_cv_file_magic_test_file=/lib/libc.so
6807 lt_cv_deplibs_check_method=pass_all
6810 lt_cv_deplibs_check_method=pass_all
6816 lt_cv_deplibs_check_method=pass_all
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6822 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6826 if test "$build" = "$host"; then
6829 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6832 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6838 file_magic_cmd=$lt_cv_file_magic_cmd
6839 deplibs_check_method=$lt_cv_deplibs_check_method
6840 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6863 if test -n "$ac_tool_prefix"; then
6864 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6865 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if ${ac_cv_prog_DLLTOOL+:} false; then :
6869 $as_echo_n "(cached) " >&6
6871 if test -n "$DLLTOOL"; then
6872 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6881 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 DLLTOOL=$ac_cv_prog_DLLTOOL
6892 if test -n "$DLLTOOL"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6894 $as_echo "$DLLTOOL" >&6; }
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6902 if test -z "$ac_cv_prog_DLLTOOL"; then
6903 ac_ct_DLLTOOL=$DLLTOOL
6904 # Extract the first word of "dlltool", so it can be a program name with args.
6905 set dummy dlltool; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6909 $as_echo_n "(cached) " >&6
6911 if test -n "$ac_ct_DLLTOOL"; then
6912 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6932 if test -n "$ac_ct_DLLTOOL"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6934 $as_echo "$ac_ct_DLLTOOL" >&6; }
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6940 if test "x$ac_ct_DLLTOOL" = x; then
6943 case $cross_compiling:$ac_tool_warned in
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6947 ac_tool_warned=yes ;;
6949 DLLTOOL=$ac_ct_DLLTOOL
6952 DLLTOOL="$ac_cv_prog_DLLTOOL"
6955 test -z "$DLLTOOL" && DLLTOOL=dlltool
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6967 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6968 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6969 $as_echo_n "(cached) " >&6
6971 lt_cv_sharedlib_from_linklib_cmd='unknown'
6974 cygwin* | mingw* | pw32* | cegcc*)
6975 # two different shell functions defined in ltmain.sh
6976 # decide which to use based on capabilities of $DLLTOOL
6977 case `$DLLTOOL --help 2>&1` in
6978 *--identify-strict*)
6979 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6982 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6987 # fallback: assume linklib IS sharedlib
6988 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6994 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6995 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6996 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7004 if test -n "$ac_tool_prefix"; then
7007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_prog_AR+:} false; then :
7012 $as_echo_n "(cached) " >&6
7014 if test -n "$AR"; then
7015 ac_cv_prog_AR="$AR" # Let the user override the test.
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7024 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 if test -n "$AR"; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7037 $as_echo "$AR" >&6; }
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7044 test -n "$AR" && break
7047 if test -z "$AR"; then
7051 # Extract the first word of "$ac_prog", so it can be a program name with args.
7052 set dummy $ac_prog; ac_word=$2
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054 $as_echo_n "checking for $ac_word... " >&6; }
7055 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7056 $as_echo_n "(cached) " >&6
7058 if test -n "$ac_ct_AR"; then
7059 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7068 ac_cv_prog_ac_ct_AR="$ac_prog"
7069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7079 if test -n "$ac_ct_AR"; then
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7081 $as_echo "$ac_ct_AR" >&6; }
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084 $as_echo "no" >&6; }
7088 test -n "$ac_ct_AR" && break
7091 if test "x$ac_ct_AR" = x; then
7094 case $cross_compiling:$ac_tool_warned in
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7098 ac_tool_warned=yes ;;
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7118 $as_echo_n "checking for archiver @FILE support... " >&6; }
7119 if ${lt_cv_ar_at_file+:} false; then :
7120 $as_echo_n "(cached) " >&6
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7134 if ac_fn_c_try_compile "$LINENO"; then :
7135 echo conftest.$ac_objext > conftest.lst
7136 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7138 (eval $lt_ar_try) 2>&5
7140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141 test $ac_status = 0; }
7142 if test "$ac_status" -eq 0; then
7143 # Ensure the archiver fails upon bogus file names.
7144 rm -f conftest.$ac_objext libconftest.a
7145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7146 (eval $lt_ar_try) 2>&5
7148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7149 test $ac_status = 0; }
7150 if test "$ac_status" -ne 0; then
7154 rm -f conftest.* libconftest.a
7157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7161 $as_echo "$lt_cv_ar_at_file" >&6; }
7163 if test "x$lt_cv_ar_at_file" = xno; then
7166 archiver_list_spec=$lt_cv_ar_at_file
7175 if test -n "$ac_tool_prefix"; then
7176 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7177 set dummy ${ac_tool_prefix}strip; ac_word=$2
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179 $as_echo_n "checking for $ac_word... " >&6; }
7180 if ${ac_cv_prog_STRIP+:} false; then :
7181 $as_echo_n "(cached) " >&6
7183 if test -n "$STRIP"; then
7184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 test -z "$as_dir" && as_dir=.
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7193 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 STRIP=$ac_cv_prog_STRIP
7204 if test -n "$STRIP"; then
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7206 $as_echo "$STRIP" >&6; }
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7214 if test -z "$ac_cv_prog_STRIP"; then
7216 # Extract the first word of "strip", so it can be a program name with args.
7217 set dummy strip; ac_word=$2
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219 $as_echo_n "checking for $ac_word... " >&6; }
7220 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7221 $as_echo_n "(cached) " >&6
7223 if test -n "$ac_ct_STRIP"; then
7224 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do
7232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7233 ac_cv_prog_ac_ct_STRIP="strip"
7234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7244 if test -n "$ac_ct_STRIP"; then
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7246 $as_echo "$ac_ct_STRIP" >&6; }
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7249 $as_echo "no" >&6; }
7252 if test "x$ac_ct_STRIP" = x; then
7255 case $cross_compiling:$ac_tool_warned in
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7259 ac_tool_warned=yes ;;
7264 STRIP="$ac_cv_prog_STRIP"
7267 test -z "$STRIP" && STRIP=:
7274 if test -n "$ac_tool_prefix"; then
7275 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7276 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278 $as_echo_n "checking for $ac_word... " >&6; }
7279 if ${ac_cv_prog_RANLIB+:} false; then :
7280 $as_echo_n "(cached) " >&6
7282 if test -n "$RANLIB"; then
7283 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 RANLIB=$ac_cv_prog_RANLIB
7303 if test -n "$RANLIB"; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7305 $as_echo "$RANLIB" >&6; }
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 $as_echo "no" >&6; }
7313 if test -z "$ac_cv_prog_RANLIB"; then
7314 ac_ct_RANLIB=$RANLIB
7315 # Extract the first word of "ranlib", so it can be a program name with args.
7316 set dummy ranlib; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7320 $as_echo_n "(cached) " >&6
7322 if test -n "$ac_ct_RANLIB"; then
7323 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332 ac_cv_prog_ac_ct_RANLIB="ranlib"
7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7343 if test -n "$ac_ct_RANLIB"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7345 $as_echo "$ac_ct_RANLIB" >&6; }
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7351 if test "x$ac_ct_RANLIB" = x; then
7354 case $cross_compiling:$ac_tool_warned in
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7358 ac_tool_warned=yes ;;
7360 RANLIB=$ac_ct_RANLIB
7363 RANLIB="$ac_cv_prog_RANLIB"
7366 test -z "$RANLIB" && RANLIB=:
7373 # Determine commands to create old-style static archives.
7374 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7375 old_postinstall_cmds='chmod 644 $oldlib'
7376 old_postuninstall_cmds=
7378 if test -n "$RANLIB"; then
7381 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7384 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7387 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7392 lock_old_archive_extraction=yes ;;
7394 lock_old_archive_extraction=no ;;
7435 # If no C compiler was specified, use CC.
7438 # If no C compiler flags were specified, use CFLAGS.
7439 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7441 # Allow CC to be a program name with arguments.
7445 # Check for command to grab the raw symbol name followed by C symbol from nm.
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7447 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7448 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7449 $as_echo_n "(cached) " >&6
7452 # These are sane defaults that work on at least a few old systems.
7453 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7455 # Character class describing NM global symbol codes.
7456 symcode='[BCDEGRST]'
7458 # Regexp to match symbols that can be accessed directly from C.
7459 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7461 # Define system-specific variables.
7466 cygwin* | mingw* | pw32* | cegcc*)
7467 symcode='[ABCDGISTW]'
7470 if test "$host_cpu" = ia64; then
7471 symcode='[ABCDEGRST]'
7475 symcode='[BCDEGRST]'
7478 symcode='[BCDEGQRST]'
7489 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7497 # If we're using GNU nm, then use its standard symbol codes.
7498 case `$NM -V 2>&1` in
7499 *GNU* | *'with BFD'*)
7500 symcode='[ABCDGIRSTW]' ;;
7503 # Transform an extracted symbol line into a proper C declaration.
7504 # Some systems (esp. on ia64) link data and code symbols differently,
7505 # so use this general approach.
7506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7508 # Transform an extracted symbol line into symbol name and symbol address
7509 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7510 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7512 # Handle CRLF in mingw tool chain
7516 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7520 # Try without a prefix underscore, then with it.
7521 for ac_symprfx in "" "_"; do
7523 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7524 symxfrm="\\1 $ac_symprfx\\2 \\2"
7526 # Write the raw and C identifiers.
7527 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7528 # Fake it for dumpbin and say T for any non-static function
7529 # and D for any global variable.
7530 # Also find C++ and __fastcall symbols from MSVC++,
7531 # which start with @ or ?.
7532 lt_cv_sys_global_symbol_pipe="$AWK '"\
7533 " {last_section=section; section=\$ 3};"\
7534 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7535 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7536 " \$ 0!~/External *\|/{next};"\
7537 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7538 " {if(hide[section]) next};"\
7539 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7540 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7541 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7542 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7543 " ' prfx=^$ac_symprfx"
7545 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7547 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7549 # Check to see that the pipe works correctly.
7553 cat > conftest.$ac_ext <<_LT_EOF
7558 void nm_test_func(void);
7559 void nm_test_func(void){}
7563 int main(){nm_test_var='a';nm_test_func();return(0);}
7566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7567 (eval $ac_compile) 2>&5
7569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7570 test $ac_status = 0; }; then
7571 # Now try to grab the symbols.
7573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7574 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7577 test $ac_status = 0; } && test -s "$nlist"; then
7578 # Try sorting and uniquifying the output.
7579 if sort "$nlist" | uniq > "$nlist"T; then
7580 mv -f "$nlist"T "$nlist"
7585 # Make sure that we snagged all the symbols we need.
7586 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7587 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7588 cat <<_LT_EOF > conftest.$ac_ext
7589 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7590 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7591 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7592 relocations are performed -- see ld's documentation on pseudo-relocs. */
7593 # define LT_DLSYM_CONST
7594 #elif defined(__osf__)
7595 /* This system does not cope well with relocations in const data. */
7596 # define LT_DLSYM_CONST
7598 # define LT_DLSYM_CONST const
7606 # Now generate the symbol file.
7607 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7609 cat <<_LT_EOF >> conftest.$ac_ext
7611 /* The mapping between symbol names and symbols. */
7612 LT_DLSYM_CONST struct {
7616 lt__PROGRAM__LTX_preloaded_symbols[] =
7618 { "@PROGRAM@", (void *) 0 },
7620 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7621 cat <<\_LT_EOF >> conftest.$ac_ext
7625 /* This works around a problem in FreeBSD linker */
7626 #ifdef FREEBSD_WORKAROUND
7627 static const void *lt_preloaded_setup() {
7628 return lt__PROGRAM__LTX_preloaded_symbols;
7636 # Now try linking the two files.
7637 mv conftest.$ac_objext conftstm.$ac_objext
7638 lt_globsym_save_LIBS=$LIBS
7639 lt_globsym_save_CFLAGS=$CFLAGS
7640 LIBS="conftstm.$ac_objext"
7641 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7643 (eval $ac_link) 2>&5
7645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7646 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7649 LIBS=$lt_globsym_save_LIBS
7650 CFLAGS=$lt_globsym_save_CFLAGS
7652 echo "cannot find nm_test_func in $nlist" >&5
7655 echo "cannot find nm_test_var in $nlist" >&5
7658 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7661 echo "$progname: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7664 rm -rf conftest* conftst*
7666 # Do not use the global_symbol_pipe unless it works.
7667 if test "$pipe_works" = yes; then
7670 lt_cv_sys_global_symbol_pipe=
7676 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7677 lt_cv_sys_global_symbol_to_cdecl=
7679 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7681 $as_echo "failed" >&6; }
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7684 $as_echo "ok" >&6; }
7687 # Response file support.
7688 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7689 nm_file_list_spec='@'
7690 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7691 nm_file_list_spec='@'
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7721 $as_echo_n "checking for sysroot... " >&6; }
7723 # Check whether --with-sysroot was given.
7724 if test "${with_sysroot+set}" = set; then :
7725 withval=$with_sysroot;
7732 case ${with_sysroot} in #(
7734 if test "$GCC" = yes; then
7735 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7739 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7745 $as_echo "${with_sysroot}" >&6; }
7746 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7751 $as_echo "${lt_sysroot:-no}" >&6; }
7757 # Check whether --enable-libtool-lock was given.
7758 if test "${enable_libtool_lock+set}" = set; then :
7759 enableval=$enable_libtool_lock;
7762 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7764 # Some flags need to be propagated to the compiler or linker for good
7768 # Find out which ABI we are using.
7769 echo 'int i;' > conftest.$ac_ext
7770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7771 (eval $ac_compile) 2>&5
7773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7774 test $ac_status = 0; }; then
7775 case `/usr/bin/file conftest.$ac_objext` in
7787 # Find out which ABI we are using.
7788 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7790 (eval $ac_compile) 2>&5
7792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7793 test $ac_status = 0; }; then
7794 if test "$lt_cv_prog_gnu_ld" = yes; then
7795 case `/usr/bin/file conftest.$ac_objext` in
7797 LD="${LD-ld} -melf32bsmip"
7800 LD="${LD-ld} -melf32bmipn32"
7803 LD="${LD-ld} -melf64bmip"
7807 case `/usr/bin/file conftest.$ac_objext` in
7823 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7824 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7825 # Find out which ABI we are using.
7826 echo 'int i;' > conftest.$ac_ext
7827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7828 (eval $ac_compile) 2>&5
7830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7831 test $ac_status = 0; }; then
7832 case `/usr/bin/file conftest.o` in
7835 x86_64-*kfreebsd*-gnu)
7836 LD="${LD-ld} -m elf_i386_fbsd"
7839 case `/usr/bin/file conftest.o` in
7841 LD="${LD-ld} -m elf32_x86_64"
7844 LD="${LD-ld} -m elf_i386"
7848 ppc64-*linux*|powerpc64-*linux*)
7849 LD="${LD-ld} -m elf32ppclinux"
7852 LD="${LD-ld} -m elf_s390"
7855 LD="${LD-ld} -m elf32_sparc"
7861 x86_64-*kfreebsd*-gnu)
7862 LD="${LD-ld} -m elf_x86_64_fbsd"
7865 LD="${LD-ld} -m elf_x86_64"
7867 ppc*-*linux*|powerpc*-*linux*)
7868 LD="${LD-ld} -m elf64ppc"
7870 s390*-*linux*|s390*-*tpf*)
7871 LD="${LD-ld} -m elf64_s390"
7874 LD="${LD-ld} -m elf64_sparc"
7884 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7885 SAVE_CFLAGS="$CFLAGS"
7886 CFLAGS="$CFLAGS -belf"
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7888 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7889 if ${lt_cv_cc_needs_belf+:} false; then :
7890 $as_echo_n "(cached) " >&6
7893 ac_cpp='$CPP $CPPFLAGS'
7894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7909 if ac_fn_c_try_link "$LINENO"; then :
7910 lt_cv_cc_needs_belf=yes
7912 lt_cv_cc_needs_belf=no
7914 rm -f core conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7917 ac_cpp='$CPP $CPPFLAGS'
7918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7924 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7925 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7926 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7927 CFLAGS="$SAVE_CFLAGS"
7931 # Find out which ABI we are using.
7932 echo 'int i;' > conftest.$ac_ext
7933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7934 (eval $ac_compile) 2>&5
7936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7937 test $ac_status = 0; }; then
7938 case `/usr/bin/file conftest.o` in
7940 case $lt_cv_prog_gnu_ld in
7944 LD="${LD-ld} -m elf_x86_64"
7947 LD="${LD-ld} -m elf64_sparc"
7950 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7951 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7956 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7968 need_locks="$enable_libtool_lock"
7970 if test -n "$ac_tool_prefix"; then
7971 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7972 set dummy ${ac_tool_prefix}mt; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7976 $as_echo_n "(cached) " >&6
7978 if test -n "$MANIFEST_TOOL"; then
7979 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7999 if test -n "$MANIFEST_TOOL"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8001 $as_echo "$MANIFEST_TOOL" >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8009 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8010 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8011 # Extract the first word of "mt", so it can be a program name with args.
8012 set dummy mt; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8016 $as_echo_n "(cached) " >&6
8018 if test -n "$ac_ct_MANIFEST_TOOL"; then
8019 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8039 if test -n "$ac_ct_MANIFEST_TOOL"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8041 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8047 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8050 case $cross_compiling:$ac_tool_warned in
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8054 ac_tool_warned=yes ;;
8056 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8059 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8062 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8064 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8065 if ${lt_cv_path_mainfest_tool+:} false; then :
8066 $as_echo_n "(cached) " >&6
8068 lt_cv_path_mainfest_tool=no
8069 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8070 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8071 cat conftest.err >&5
8072 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8073 lt_cv_path_mainfest_tool=yes
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8078 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8079 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8089 rhapsody* | darwin*)
8090 if test -n "$ac_tool_prefix"; then
8091 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8092 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094 $as_echo_n "checking for $ac_word... " >&6; }
8095 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8096 $as_echo_n "(cached) " >&6
8098 if test -n "$DSYMUTIL"; then
8099 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8108 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8119 if test -n "$DSYMUTIL"; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8121 $as_echo "$DSYMUTIL" >&6; }
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8129 if test -z "$ac_cv_prog_DSYMUTIL"; then
8130 ac_ct_DSYMUTIL=$DSYMUTIL
8131 # Extract the first word of "dsymutil", so it can be a program name with args.
8132 set dummy dsymutil; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8136 $as_echo_n "(cached) " >&6
8138 if test -n "$ac_ct_DSYMUTIL"; then
8139 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8148 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8159 if test -n "$ac_ct_DSYMUTIL"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8161 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8167 if test "x$ac_ct_DSYMUTIL" = x; then
8170 case $cross_compiling:$ac_tool_warned in
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8174 ac_tool_warned=yes ;;
8176 DSYMUTIL=$ac_ct_DSYMUTIL
8179 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8182 if test -n "$ac_tool_prefix"; then
8183 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8184 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if ${ac_cv_prog_NMEDIT+:} false; then :
8188 $as_echo_n "(cached) " >&6
8190 if test -n "$NMEDIT"; then
8191 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 NMEDIT=$ac_cv_prog_NMEDIT
8211 if test -n "$NMEDIT"; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8213 $as_echo "$NMEDIT" >&6; }
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8221 if test -z "$ac_cv_prog_NMEDIT"; then
8222 ac_ct_NMEDIT=$NMEDIT
8223 # Extract the first word of "nmedit", so it can be a program name with args.
8224 set dummy nmedit; ac_word=$2
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8228 $as_echo_n "(cached) " >&6
8230 if test -n "$ac_ct_NMEDIT"; then
8231 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8240 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8251 if test -n "$ac_ct_NMEDIT"; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8253 $as_echo "$ac_ct_NMEDIT" >&6; }
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8259 if test "x$ac_ct_NMEDIT" = x; then
8262 case $cross_compiling:$ac_tool_warned in
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8266 ac_tool_warned=yes ;;
8268 NMEDIT=$ac_ct_NMEDIT
8271 NMEDIT="$ac_cv_prog_NMEDIT"
8274 if test -n "$ac_tool_prefix"; then
8275 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8276 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if ${ac_cv_prog_LIPO+:} false; then :
8280 $as_echo_n "(cached) " >&6
8282 if test -n "$LIPO"; then
8283 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 LIPO=$ac_cv_prog_LIPO
8303 if test -n "$LIPO"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8305 $as_echo "$LIPO" >&6; }
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8313 if test -z "$ac_cv_prog_LIPO"; then
8315 # Extract the first word of "lipo", so it can be a program name with args.
8316 set dummy lipo; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8320 $as_echo_n "(cached) " >&6
8322 if test -n "$ac_ct_LIPO"; then
8323 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8332 ac_cv_prog_ac_ct_LIPO="lipo"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8343 if test -n "$ac_ct_LIPO"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8345 $as_echo "$ac_ct_LIPO" >&6; }
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8351 if test "x$ac_ct_LIPO" = x; then
8354 case $cross_compiling:$ac_tool_warned in
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8358 ac_tool_warned=yes ;;
8363 LIPO="$ac_cv_prog_LIPO"
8366 if test -n "$ac_tool_prefix"; then
8367 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8368 set dummy ${ac_tool_prefix}otool; ac_word=$2
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370 $as_echo_n "checking for $ac_word... " >&6; }
8371 if ${ac_cv_prog_OTOOL+:} false; then :
8372 $as_echo_n "(cached) " >&6
8374 if test -n "$OTOOL"; then
8375 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 test -z "$as_dir" && as_dir=.
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8384 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394 OTOOL=$ac_cv_prog_OTOOL
8395 if test -n "$OTOOL"; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8397 $as_echo "$OTOOL" >&6; }
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8405 if test -z "$ac_cv_prog_OTOOL"; then
8407 # Extract the first word of "otool", so it can be a program name with args.
8408 set dummy otool; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8412 $as_echo_n "(cached) " >&6
8414 if test -n "$ac_ct_OTOOL"; then
8415 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 test -z "$as_dir" && as_dir=.
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8424 ac_cv_prog_ac_ct_OTOOL="otool"
8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8435 if test -n "$ac_ct_OTOOL"; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8437 $as_echo "$ac_ct_OTOOL" >&6; }
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8443 if test "x$ac_ct_OTOOL" = x; then
8446 case $cross_compiling:$ac_tool_warned in
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8450 ac_tool_warned=yes ;;
8455 OTOOL="$ac_cv_prog_OTOOL"
8458 if test -n "$ac_tool_prefix"; then
8459 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8460 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if ${ac_cv_prog_OTOOL64+:} false; then :
8464 $as_echo_n "(cached) " >&6
8466 if test -n "$OTOOL64"; then
8467 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473 test -z "$as_dir" && as_dir=.
8474 for ac_exec_ext in '' $ac_executable_extensions; do
8475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8476 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 OTOOL64=$ac_cv_prog_OTOOL64
8487 if test -n "$OTOOL64"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8489 $as_echo "$OTOOL64" >&6; }
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8497 if test -z "$ac_cv_prog_OTOOL64"; then
8498 ac_ct_OTOOL64=$OTOOL64
8499 # Extract the first word of "otool64", so it can be a program name with args.
8500 set dummy otool64; ac_word=$2
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502 $as_echo_n "checking for $ac_word... " >&6; }
8503 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8504 $as_echo_n "(cached) " >&6
8506 if test -n "$ac_ct_OTOOL64"; then
8507 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516 ac_cv_prog_ac_ct_OTOOL64="otool64"
8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8527 if test -n "$ac_ct_OTOOL64"; then
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8529 $as_echo "$ac_ct_OTOOL64" >&6; }
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8535 if test "x$ac_ct_OTOOL64" = x; then
8538 case $cross_compiling:$ac_tool_warned in
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8542 ac_tool_warned=yes ;;
8544 OTOOL64=$ac_ct_OTOOL64
8547 OTOOL64="$ac_cv_prog_OTOOL64"
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8577 $as_echo_n "checking for -single_module linker flag... " >&6; }
8578 if ${lt_cv_apple_cc_single_mod+:} false; then :
8579 $as_echo_n "(cached) " >&6
8581 lt_cv_apple_cc_single_mod=no
8582 if test -z "${LT_MULTI_MODULE}"; then
8583 # By default we will add the -single_module flag. You can override
8584 # by either setting the environment variable LT_MULTI_MODULE
8585 # non-empty at configure time, or by adding -multi_module to the
8587 rm -rf libconftest.dylib*
8588 echo "int foo(void){return 1;}" > conftest.c
8589 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8590 -dynamiclib -Wl,-single_module conftest.c" >&5
8591 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8592 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8594 # If there is a non-empty error log, and "single_module"
8595 # appears in it, assume the flag caused a linker warning
8596 if test -s conftest.err && $GREP single_module conftest.err; then
8597 cat conftest.err >&5
8598 # Otherwise, if the output was created with a 0 exit code from
8599 # the compiler, it worked.
8600 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8601 lt_cv_apple_cc_single_mod=yes
8603 cat conftest.err >&5
8605 rm -rf libconftest.dylib*
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8610 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8613 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8614 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8615 $as_echo_n "(cached) " >&6
8617 lt_cv_ld_exported_symbols_list=no
8618 save_LDFLAGS=$LDFLAGS
8619 echo "_main" > conftest.sym
8620 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8632 if ac_fn_c_try_link "$LINENO"; then :
8633 lt_cv_ld_exported_symbols_list=yes
8635 lt_cv_ld_exported_symbols_list=no
8637 rm -f core conftest.err conftest.$ac_objext \
8638 conftest$ac_exeext conftest.$ac_ext
8639 LDFLAGS="$save_LDFLAGS"
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8643 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8646 $as_echo_n "checking for -force_load linker flag... " >&6; }
8647 if ${lt_cv_ld_force_load+:} false; then :
8648 $as_echo_n "(cached) " >&6
8650 lt_cv_ld_force_load=no
8651 cat > conftest.c << _LT_EOF
8652 int forced_loaded() { return 2;}
8654 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8655 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8656 echo "$AR cru libconftest.a conftest.o" >&5
8657 $AR cru libconftest.a conftest.o 2>&5
8658 echo "$RANLIB libconftest.a" >&5
8659 $RANLIB libconftest.a 2>&5
8660 cat > conftest.c << _LT_EOF
8661 int main() { return 0;}
8663 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8664 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8666 if test -s conftest.err && $GREP force_load conftest.err; then
8667 cat conftest.err >&5
8668 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8669 lt_cv_ld_force_load=yes
8671 cat conftest.err >&5
8673 rm -f conftest.err libconftest.a conftest conftest.c
8674 rm -rf conftest.dSYM
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8678 $as_echo "$lt_cv_ld_force_load" >&6; }
8680 rhapsody* | darwin1.[012])
8681 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8683 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8684 darwin*) # darwin 5.x on
8685 # if running on 10.5 or later, the deployment target defaults
8686 # to the OS version, if on x86, and 10.4, the deployment
8687 # target defaults to 10.4. Don't you love it?
8688 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8689 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8690 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8692 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8694 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8698 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8699 _lt_dar_single_mod='$single_module'
8701 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8702 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8704 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8706 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8707 _lt_dsymutil='~$DSYMUTIL $lib || :'
8714 for ac_header in dlfcn.h
8716 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8718 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8719 cat >>confdefs.h <<_ACEOF
8720 #define HAVE_DLFCN_H 1
8732 # Check whether --enable-static was given.
8733 if test "${enable_static+set}" = set; then :
8734 enableval=$enable_static; p=${PACKAGE-default}
8736 yes) enable_static=yes ;;
8737 no) enable_static=no ;;
8740 # Look at the argument we got. We use all the common list separators.
8741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8742 for pkg in $enableval; do
8744 if test "X$pkg" = "X$p"; then
8770 # Check whether --enable-shared was given.
8771 if test "${enable_shared+set}" = set; then :
8772 enableval=$enable_shared; p=${PACKAGE-default}
8774 yes) enable_shared=yes ;;
8775 no) enable_shared=no ;;
8778 # Look at the argument we got. We use all the common list separators.
8779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8780 for pkg in $enableval; do
8782 if test "X$pkg" = "X$p"; then
8803 # Check whether --with-pic was given.
8804 if test "${with_pic+set}" = set; then :
8805 withval=$with_pic; lt_p=${PACKAGE-default}
8807 yes|no) pic_mode=$withval ;;
8810 # Look at the argument we got. We use all the common list separators.
8811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8812 for lt_pkg in $withval; do
8814 if test "X$lt_pkg" = "X$lt_p"; then
8826 test -z "$pic_mode" && pic_mode=default
8834 # Check whether --enable-fast-install was given.
8835 if test "${enable_fast_install+set}" = set; then :
8836 enableval=$enable_fast_install; p=${PACKAGE-default}
8838 yes) enable_fast_install=yes ;;
8839 no) enable_fast_install=no ;;
8841 enable_fast_install=no
8842 # Look at the argument we got. We use all the common list separators.
8843 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8844 for pkg in $enableval; do
8846 if test "X$pkg" = "X$p"; then
8847 enable_fast_install=yes
8854 enable_fast_install=yes
8867 # This can be used to rebuild libtool when needed
8868 LIBTOOL_DEPS="$ltmain"
8870 # Always use our own libtool.
8871 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8902 test -z "$LN_S" && LN_S="ln -s"
8917 if test -n "${ZSH_VERSION+set}" ; then
8918 setopt NO_GLOB_SUBST
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8922 $as_echo_n "checking for objdir... " >&6; }
8923 if ${lt_cv_objdir+:} false; then :
8924 $as_echo_n "(cached) " >&6
8926 rm -f .libs 2>/dev/null
8927 mkdir .libs 2>/dev/null
8928 if test -d .libs; then
8931 # MS-DOS does not allow filenames that begin with a dot.
8934 rmdir .libs 2>/dev/null
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8937 $as_echo "$lt_cv_objdir" >&6; }
8938 objdir=$lt_cv_objdir
8944 cat >>confdefs.h <<_ACEOF
8945 #define LT_OBJDIR "$lt_cv_objdir/"
8953 # AIX sometimes has problems with the GCC collect2 program. For some
8954 # reason, if we set the COLLECT_NAMES environment variable, the problems
8955 # vanish in a puff of smoke.
8956 if test "X${COLLECT_NAMES+set}" != Xset; then
8958 export COLLECT_NAMES
8965 can_build_shared=yes
8967 # All known linkers require a `.a' archive for static linking (except MSVC,
8968 # which needs '.lib').
8971 with_gnu_ld="$lt_cv_prog_gnu_ld"
8974 old_CFLAGS="$CFLAGS"
8976 # Set sane defaults for various variables
8977 test -z "$CC" && CC=cc
8978 test -z "$LTCC" && LTCC=$CC
8979 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8980 test -z "$LD" && LD=ld
8981 test -z "$ac_objext" && ac_objext=o
8983 for cc_temp in $compiler""; do
8985 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8986 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8991 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8994 # Only perform the check for file, if the check method requires it
8995 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8996 case $deplibs_check_method in
8998 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9000 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9001 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9002 $as_echo_n "(cached) " >&6
9006 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9009 lt_save_MAGIC_CMD="$MAGIC_CMD"
9010 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9011 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9012 for ac_dir in $ac_dummy; do
9014 test -z "$ac_dir" && ac_dir=.
9015 if test -f $ac_dir/${ac_tool_prefix}file; then
9016 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9017 if test -n "$file_magic_test_file"; then
9018 case $deplibs_check_method in
9020 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9021 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9022 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9023 $EGREP "$file_magic_regex" > /dev/null; then
9028 *** Warning: the command libtool uses to detect shared libraries,
9029 *** $file_magic_cmd, produces output that libtool cannot recognize.
9030 *** The result is that libtool may fail to recognize shared libraries
9031 *** as such. This will affect the creation of libtool libraries that
9032 *** depend on shared libraries, but programs linked with such libtool
9033 *** libraries will work regardless of this problem. Nevertheless, you
9034 *** may want to report the problem to your system manager and/or to
9035 *** bug-libtool@gnu.org
9045 MAGIC_CMD="$lt_save_MAGIC_CMD"
9050 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9051 if test -n "$MAGIC_CMD"; then
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9053 $as_echo "$MAGIC_CMD" >&6; }
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056 $as_echo "no" >&6; }
9063 if test -z "$lt_cv_path_MAGIC_CMD"; then
9064 if test -n "$ac_tool_prefix"; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9066 $as_echo_n "checking for file... " >&6; }
9067 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9068 $as_echo_n "(cached) " >&6
9072 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9075 lt_save_MAGIC_CMD="$MAGIC_CMD"
9076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9077 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9078 for ac_dir in $ac_dummy; do
9080 test -z "$ac_dir" && ac_dir=.
9081 if test -f $ac_dir/file; then
9082 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9083 if test -n "$file_magic_test_file"; then
9084 case $deplibs_check_method in
9086 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9088 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9089 $EGREP "$file_magic_regex" > /dev/null; then
9094 *** Warning: the command libtool uses to detect shared libraries,
9095 *** $file_magic_cmd, produces output that libtool cannot recognize.
9096 *** The result is that libtool may fail to recognize shared libraries
9097 *** as such. This will affect the creation of libtool libraries that
9098 *** depend on shared libraries, but programs linked with such libtool
9099 *** libraries will work regardless of this problem. Nevertheless, you
9100 *** may want to report the problem to your system manager and/or to
9101 *** bug-libtool@gnu.org
9111 MAGIC_CMD="$lt_save_MAGIC_CMD"
9116 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9117 if test -n "$MAGIC_CMD"; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9119 $as_echo "$MAGIC_CMD" >&6; }
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122 $as_echo "no" >&6; }
9135 # Use C for the default configuration in the libtool script
9139 ac_cpp='$CPP $CPPFLAGS'
9140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9145 # Source file extension for C test sources.
9148 # Object file extension for compiled C test sources.
9152 # Code to be used in simple compile tests
9153 lt_simple_compile_test_code="int some_variable = 0;"
9155 # Code to be used in simple link tests
9156 lt_simple_link_test_code='int main(){return(0);}'
9164 # If no C compiler was specified, use CC.
9167 # If no C compiler flags were specified, use CFLAGS.
9168 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9170 # Allow CC to be a program name with arguments.
9173 # Save the default compiler, since it gets overwritten when the other
9174 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9175 compiler_DEFAULT=$CC
9177 # save warnings/boilerplate of simple test code
9178 ac_outfile=conftest.$ac_objext
9179 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9181 _lt_compiler_boilerplate=`cat conftest.err`
9184 ac_outfile=conftest.$ac_objext
9185 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9187 _lt_linker_boilerplate=`cat conftest.err`
9192 ## There is no encapsulation within the following macros, do not change
9193 ## the running order or otherwise move them around unless you know exactly
9194 ## what you are doing...
9195 if test -n "$compiler"; then
9197 lt_prog_compiler_no_builtin_flag=
9199 if test "$GCC" = yes; then
9200 case $cc_basename in
9202 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9204 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9208 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9209 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9210 $as_echo_n "(cached) " >&6
9212 lt_cv_prog_compiler_rtti_exceptions=no
9213 ac_outfile=conftest.$ac_objext
9214 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9215 lt_compiler_flag="-fno-rtti -fno-exceptions"
9216 # Insert the option either (1) after the last *FLAGS variable, or
9217 # (2) before a word containing "conftest.", or (3) at the end.
9218 # Note that $ac_compile itself does not contain backslashes and begins
9219 # with a dollar sign (not a hyphen), so the echo should work correctly.
9220 # The option is referenced via a variable to avoid confusing sed.
9221 lt_compile=`echo "$ac_compile" | $SED \
9222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9224 -e 's:$: $lt_compiler_flag:'`
9225 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9226 (eval "$lt_compile" 2>conftest.err)
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 if (exit $ac_status) && test -s "$ac_outfile"; then
9231 # The compiler can only warn and ignore the option if not recognized
9232 # So say no if there are warnings other than the usual output.
9233 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9234 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9235 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9236 lt_cv_prog_compiler_rtti_exceptions=yes
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9243 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9245 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9246 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9258 lt_prog_compiler_wl=
9259 lt_prog_compiler_pic=
9260 lt_prog_compiler_static=
9263 if test "$GCC" = yes; then
9264 lt_prog_compiler_wl='-Wl,'
9265 lt_prog_compiler_static='-static'
9269 # All AIX code is PIC.
9270 if test "$host_cpu" = ia64; then
9271 # AIX 5 now supports IA64 processor
9272 lt_prog_compiler_static='-Bstatic'
9279 # see comment about AmigaOS4 .so support
9280 lt_prog_compiler_pic='-fPIC'
9283 # FIXME: we need at least 68020 code to build shared libraries, but
9284 # adding the `-m68020' flag to GCC prevents building anything better,
9286 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9291 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9292 # PIC is the default for these OSes.
9295 mingw* | cygwin* | pw32* | os2* | cegcc*)
9296 # This hack is so that the source file can tell whether it is being
9297 # built for inclusion in a dll (and should export symbols for example).
9298 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9299 # (--disable-auto-import) libraries
9300 lt_prog_compiler_pic='-DDLL_EXPORT'
9303 darwin* | rhapsody*)
9304 # PIC is the default on this platform
9305 # Common symbols not allowed in MH_DYLIB files
9306 lt_prog_compiler_pic='-fno-common'
9310 # PIC is the default for Haiku.
9311 # The "-static" flag exists, but is broken.
9312 lt_prog_compiler_static=
9316 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9317 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9318 # sets the default TLS model and affects inlining.
9324 lt_prog_compiler_pic='-fPIC'
9330 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9331 # Instead, we relocate shared libraries at runtime.
9335 # Just because we use GCC doesn't mean we suddenly get shared libraries
9336 # on systems that don't support them.
9337 lt_prog_compiler_can_build_shared=no
9342 # QNX uses GNU C++, but need to define -shared option too, otherwise
9344 lt_prog_compiler_pic='-fPIC -shared'
9348 if test -d /usr/nec; then
9349 lt_prog_compiler_pic=-Kconform_pic
9354 lt_prog_compiler_pic='-fPIC'
9358 case $cc_basename in
9359 nvcc*) # Cuda Compiler Driver 2.2
9360 lt_prog_compiler_wl='-Xlinker '
9361 if test -n "$lt_prog_compiler_pic"; then
9362 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9367 # PORTME Check for flag to pass linker flags through the system compiler.
9370 lt_prog_compiler_wl='-Wl,'
9371 if test "$host_cpu" = ia64; then
9372 # AIX 5 now supports IA64 processor
9373 lt_prog_compiler_static='-Bstatic'
9375 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9379 mingw* | cygwin* | pw32* | os2* | cegcc*)
9380 # This hack is so that the source file can tell whether it is being
9381 # built for inclusion in a dll (and should export symbols for example).
9382 lt_prog_compiler_pic='-DDLL_EXPORT'
9385 hpux9* | hpux10* | hpux11*)
9386 lt_prog_compiler_wl='-Wl,'
9387 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9394 lt_prog_compiler_pic='+Z'
9397 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9398 lt_prog_compiler_static='${wl}-a ${wl}archive'
9401 irix5* | irix6* | nonstopux*)
9402 lt_prog_compiler_wl='-Wl,'
9403 # PIC (with -KPIC) is the default.
9404 lt_prog_compiler_static='-non_shared'
9407 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9408 case $cc_basename in
9409 # old Intel for x86_64 which still supported -KPIC.
9411 lt_prog_compiler_wl='-Wl,'
9412 lt_prog_compiler_pic='-KPIC'
9413 lt_prog_compiler_static='-static'
9415 # icc used to be incompatible with GCC.
9416 # ICC 10 doesn't accept -KPIC any more.
9418 lt_prog_compiler_wl='-Wl,'
9419 lt_prog_compiler_pic='-fPIC'
9420 lt_prog_compiler_static='-static'
9422 # Lahey Fortran 8.1.
9424 lt_prog_compiler_wl='-Wl,'
9425 lt_prog_compiler_pic='--shared'
9426 lt_prog_compiler_static='--static'
9429 # NAG Fortran compiler
9430 lt_prog_compiler_wl='-Wl,-Wl,,'
9431 lt_prog_compiler_pic='-PIC'
9432 lt_prog_compiler_static='-Bstatic'
9434 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9435 # Portland Group compilers (*not* the Pentium gcc compiler,
9436 # which looks to be a dead project)
9437 lt_prog_compiler_wl='-Wl,'
9438 lt_prog_compiler_pic='-fpic'
9439 lt_prog_compiler_static='-Bstatic'
9442 lt_prog_compiler_wl='-Wl,'
9443 # All Alpha code is PIC.
9444 lt_prog_compiler_static='-non_shared'
9446 xl* | bgxl* | bgf* | mpixl*)
9447 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9448 lt_prog_compiler_wl='-Wl,'
9449 lt_prog_compiler_pic='-qpic'
9450 lt_prog_compiler_static='-qstaticlink'
9453 case `$CC -V 2>&1 | sed 5q` in
9454 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9455 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9456 lt_prog_compiler_pic='-KPIC'
9457 lt_prog_compiler_static='-Bstatic'
9458 lt_prog_compiler_wl=''
9460 *Sun\ F* | *Sun*Fortran*)
9461 lt_prog_compiler_pic='-KPIC'
9462 lt_prog_compiler_static='-Bstatic'
9463 lt_prog_compiler_wl='-Qoption ld '
9467 lt_prog_compiler_pic='-KPIC'
9468 lt_prog_compiler_static='-Bstatic'
9469 lt_prog_compiler_wl='-Wl,'
9471 *Intel*\ [CF]*Compiler*)
9472 lt_prog_compiler_wl='-Wl,'
9473 lt_prog_compiler_pic='-fPIC'
9474 lt_prog_compiler_static='-static'
9477 lt_prog_compiler_wl='-Wl,'
9478 lt_prog_compiler_pic='-fpic'
9479 lt_prog_compiler_static='-Bstatic'
9487 lt_prog_compiler_pic='-KPIC'
9488 lt_prog_compiler_static='-Bstatic'
9492 # QNX uses GNU C++, but need to define -shared option too, otherwise
9494 lt_prog_compiler_pic='-fPIC -shared'
9497 osf3* | osf4* | osf5*)
9498 lt_prog_compiler_wl='-Wl,'
9499 # All OSF/1 code is PIC.
9500 lt_prog_compiler_static='-non_shared'
9504 lt_prog_compiler_static='-non_shared'
9508 lt_prog_compiler_pic='-KPIC'
9509 lt_prog_compiler_static='-Bstatic'
9510 case $cc_basename in
9511 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9512 lt_prog_compiler_wl='-Qoption ld ';;
9514 lt_prog_compiler_wl='-Wl,';;
9519 lt_prog_compiler_wl='-Qoption ld '
9520 lt_prog_compiler_pic='-PIC'
9521 lt_prog_compiler_static='-Bstatic'
9524 sysv4 | sysv4.2uw2* | sysv4.3*)
9525 lt_prog_compiler_wl='-Wl,'
9526 lt_prog_compiler_pic='-KPIC'
9527 lt_prog_compiler_static='-Bstatic'
9531 if test -d /usr/nec ;then
9532 lt_prog_compiler_pic='-Kconform_pic'
9533 lt_prog_compiler_static='-Bstatic'
9537 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9538 lt_prog_compiler_wl='-Wl,'
9539 lt_prog_compiler_pic='-KPIC'
9540 lt_prog_compiler_static='-Bstatic'
9544 lt_prog_compiler_wl='-Wl,'
9545 lt_prog_compiler_can_build_shared=no
9549 lt_prog_compiler_pic='-pic'
9550 lt_prog_compiler_static='-Bstatic'
9554 lt_prog_compiler_can_build_shared=no
9560 # For platforms which do not support PIC, -DPIC is meaningless:
9562 lt_prog_compiler_pic=
9565 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9570 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9571 if ${lt_cv_prog_compiler_pic+:} false; then :
9572 $as_echo_n "(cached) " >&6
9574 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9577 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9578 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9581 # Check to make sure the PIC flag actually works.
9583 if test -n "$lt_prog_compiler_pic"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9585 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9586 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9587 $as_echo_n "(cached) " >&6
9589 lt_cv_prog_compiler_pic_works=no
9590 ac_outfile=conftest.$ac_objext
9591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9592 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9593 # Insert the option either (1) after the last *FLAGS variable, or
9594 # (2) before a word containing "conftest.", or (3) at the end.
9595 # Note that $ac_compile itself does not contain backslashes and begins
9596 # with a dollar sign (not a hyphen), so the echo should work correctly.
9597 # The option is referenced via a variable to avoid confusing sed.
9598 lt_compile=`echo "$ac_compile" | $SED \
9599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9601 -e 's:$: $lt_compiler_flag:'`
9602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9603 (eval "$lt_compile" 2>conftest.err)
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 if (exit $ac_status) && test -s "$ac_outfile"; then
9608 # The compiler can only warn and ignore the option if not recognized
9609 # So say no if there are warnings other than the usual output.
9610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9612 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9613 lt_cv_prog_compiler_pic_works=yes
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9620 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9622 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9623 case $lt_prog_compiler_pic in
9625 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9628 lt_prog_compiler_pic=
9629 lt_prog_compiler_can_build_shared=no
9645 # Check to make sure the static flag actually works.
9647 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9649 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9650 if ${lt_cv_prog_compiler_static_works+:} false; then :
9651 $as_echo_n "(cached) " >&6
9653 lt_cv_prog_compiler_static_works=no
9654 save_LDFLAGS="$LDFLAGS"
9655 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9656 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9657 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9658 # The linker can only warn and ignore the option if not recognized
9659 # So say no if there are warnings
9660 if test -s conftest.err; then
9661 # Append any errors to the config.log.
9662 cat conftest.err 1>&5
9663 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9665 if diff conftest.exp conftest.er2 >/dev/null; then
9666 lt_cv_prog_compiler_static_works=yes
9669 lt_cv_prog_compiler_static_works=yes
9673 LDFLAGS="$save_LDFLAGS"
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9677 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9679 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9682 lt_prog_compiler_static=
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9692 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9693 if ${lt_cv_prog_compiler_c_o+:} false; then :
9694 $as_echo_n "(cached) " >&6
9696 lt_cv_prog_compiler_c_o=no
9697 $RM -r conftest 2>/dev/null
9701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9703 lt_compiler_flag="-o out/conftest2.$ac_objext"
9704 # Insert the option either (1) after the last *FLAGS variable, or
9705 # (2) before a word containing "conftest.", or (3) at the end.
9706 # Note that $ac_compile itself does not contain backslashes and begins
9707 # with a dollar sign (not a hyphen), so the echo should work correctly.
9708 lt_compile=`echo "$ac_compile" | $SED \
9709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9711 -e 's:$: $lt_compiler_flag:'`
9712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9713 (eval "$lt_compile" 2>out/conftest.err)
9715 cat out/conftest.err >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9719 # The compiler can only warn and ignore the option if not recognized
9720 # So say no if there are warnings
9721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9724 lt_cv_prog_compiler_c_o=yes
9729 # SGI C++ compiler will create directory out/ii_files/ for
9730 # template instantiation
9731 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9732 $RM out/* && rmdir out
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9739 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9747 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9748 if ${lt_cv_prog_compiler_c_o+:} false; then :
9749 $as_echo_n "(cached) " >&6
9751 lt_cv_prog_compiler_c_o=no
9752 $RM -r conftest 2>/dev/null
9756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9758 lt_compiler_flag="-o out/conftest2.$ac_objext"
9759 # Insert the option either (1) after the last *FLAGS variable, or
9760 # (2) before a word containing "conftest.", or (3) at the end.
9761 # Note that $ac_compile itself does not contain backslashes and begins
9762 # with a dollar sign (not a hyphen), so the echo should work correctly.
9763 lt_compile=`echo "$ac_compile" | $SED \
9764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9766 -e 's:$: $lt_compiler_flag:'`
9767 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9768 (eval "$lt_compile" 2>out/conftest.err)
9770 cat out/conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9774 # The compiler can only warn and ignore the option if not recognized
9775 # So say no if there are warnings
9776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9777 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9778 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9779 lt_cv_prog_compiler_c_o=yes
9784 # SGI C++ compiler will create directory out/ii_files/ for
9785 # template instantiation
9786 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9787 $RM out/* && rmdir out
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9794 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9799 hard_links="nottested"
9800 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9801 # do not overwrite the value of need_locks provided by the user
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9803 $as_echo_n "checking if we can lock with hard links... " >&6; }
9806 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9808 ln conftest.a conftest.b 2>&5 || hard_links=no
9809 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9811 $as_echo "$hard_links" >&6; }
9812 if test "$hard_links" = no; then
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9814 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9827 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9830 allow_undefined_flag=
9831 always_export_symbols=no
9833 archive_expsym_cmds=
9834 compiler_needs_object=no
9835 enable_shared_with_static_runtimes=no
9836 export_dynamic_flag_spec=
9837 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9838 hardcode_automatic=no
9840 hardcode_direct_absolute=no
9841 hardcode_libdir_flag_spec=
9842 hardcode_libdir_separator=
9844 hardcode_shlibpath_var=unsupported
9846 link_all_deplibs=unknown
9849 old_archive_from_new_cmds=
9850 old_archive_from_expsyms_cmds=
9851 thread_safe_flag_spec=
9852 whole_archive_flag_spec=
9853 # include_expsyms should be a list of space-separated symbols to be *always*
9854 # included in the symbol list
9856 # exclude_expsyms can be an extended regexp of symbols to exclude
9857 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9858 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9859 # as well as any symbol that contains `d'.
9860 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9861 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9862 # platforms (ab)use it in PIC code, but their linkers get confused if
9863 # the symbol is explicitly referenced. Since portable code cannot
9864 # rely on this symbol name, it's probably fine to never include it in
9865 # preloaded symbol tables.
9866 # Exclude shared library initialization/finalization symbols.
9867 extract_expsyms_cmds=
9870 cygwin* | mingw* | pw32* | cegcc*)
9871 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9872 # When not using gcc, we currently assume that we are using
9873 # Microsoft Visual C++.
9874 if test "$GCC" != yes; then
9879 # we just hope/assume this is gcc and not c89 (= MSVC++)
9885 linux* | k*bsd*-gnu | gnu*)
9892 # On some targets, GNU ld is compatible enough with the native linker
9893 # that we're better off using the native interface for both.
9894 lt_use_gnu_ld_interface=no
9895 if test "$with_gnu_ld" = yes; then
9898 # The AIX port of GNU ld has always aspired to compatibility
9899 # with the native linker. However, as the warning in the GNU ld
9900 # block says, versions before 2.19.5* couldn't really create working
9901 # shared libraries, regardless of the interface used.
9902 case `$LD -v 2>&1` in
9903 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9904 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9905 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9907 lt_use_gnu_ld_interface=yes
9912 lt_use_gnu_ld_interface=yes
9917 if test "$lt_use_gnu_ld_interface" = yes; then
9918 # If archive_cmds runs LD, not CC, wlarc should be empty
9921 # Set some defaults for GNU ld with shared library support. These
9922 # are reset later if shared libraries are not supported. Putting them
9923 # here allows them to be overridden if necessary.
9924 runpath_var=LD_RUN_PATH
9925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9926 export_dynamic_flag_spec='${wl}--export-dynamic'
9927 # ancient GNU ld didn't support --whole-archive et. al.
9928 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9929 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9931 whole_archive_flag_spec=
9933 supports_anon_versioning=no
9934 case `$LD -v 2>&1` in
9935 *GNU\ gold*) supports_anon_versioning=yes ;;
9936 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9937 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9938 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9939 *\ 2.11.*) ;; # other 2.11 versions
9940 *) supports_anon_versioning=yes ;;
9943 # See if GNU ld supports shared libraries.
9946 # On AIX/PPC, the GNU linker is very broken
9947 if test "$host_cpu" != ia64; then
9951 *** Warning: the GNU linker, at least up to release 2.19, is reported
9952 *** to be unable to reliably create shared libraries on AIX.
9953 *** Therefore, libtool is disabling shared libraries support. If you
9954 *** really care for shared libraries, you may want to install binutils
9955 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9956 *** You will then need to restart the configuration process.
9965 # see comment about AmigaOS4 .so support
9966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9967 archive_expsym_cmds=''
9970 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)'
9971 hardcode_libdir_flag_spec='-L$libdir'
9972 hardcode_minus_L=yes
9978 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9979 allow_undefined_flag=unsupported
9980 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9981 # support --undefined. This deserves some investigation. FIXME
9982 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9988 cygwin* | mingw* | pw32* | cegcc*)
9989 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9990 # as there is no search path for DLLs.
9991 hardcode_libdir_flag_spec='-L$libdir'
9992 export_dynamic_flag_spec='${wl}--export-all-symbols'
9993 allow_undefined_flag=unsupported
9994 always_export_symbols=no
9995 enable_shared_with_static_runtimes=yes
9996 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'
9997 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9999 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10001 # If the export-symbols file already is a .def file (1st line
10002 # is EXPORTS), use it as is; otherwise, prepend...
10003 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10004 cp $export_symbols $output_objdir/$soname.def;
10006 echo EXPORTS > $output_objdir/$soname.def;
10007 cat $export_symbols >> $output_objdir/$soname.def;
10009 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10017 link_all_deplibs=yes
10022 hardcode_shlibpath_var=no
10023 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10024 export_dynamic_flag_spec='${wl}-E'
10025 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10026 # Instead, shared libraries are loaded at an image base (0x10000000 by
10027 # default) and relocated if they conflict, which is a slow very memory
10028 # consuming and fragmenting process. To avoid this, we pick a random,
10029 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10030 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10031 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10032 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'
10035 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10037 if test "$host_os" = linux-dietlibc; then
10038 case $cc_basename in
10039 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10042 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10043 && test "$tmp_diet" = no
10045 tmp_addflag=' $pic_flag'
10046 tmp_sharedflag='-shared'
10047 case $cc_basename,$host_cpu in
10048 pgcc*) # Portland Group C compiler
10049 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'
10050 tmp_addflag=' $pic_flag'
10052 pgf77* | pgf90* | pgf95* | pgfortran*)
10053 # Portland Group f77 and f90 compilers
10054 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'
10055 tmp_addflag=' $pic_flag -Mnomain' ;;
10056 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10057 tmp_addflag=' -i_dynamic' ;;
10058 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10059 tmp_addflag=' -i_dynamic -nofor_main' ;;
10060 ifc* | ifort*) # Intel Fortran compiler
10061 tmp_addflag=' -nofor_main' ;;
10062 lf95*) # Lahey Fortran 8.1
10063 whole_archive_flag_spec=
10064 tmp_sharedflag='--shared' ;;
10065 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10066 tmp_sharedflag='-qmkshrobj'
10068 nvcc*) # Cuda Compiler Driver 2.2
10069 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'
10070 compiler_needs_object=yes
10073 case `$CC -V 2>&1 | sed 5q` in
10074 *Sun\ C*) # Sun C 5.9
10075 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'
10076 compiler_needs_object=yes
10077 tmp_sharedflag='-G' ;;
10078 *Sun\ F*) # Sun Fortran 8.3
10079 tmp_sharedflag='-G' ;;
10081 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10083 if test "x$supports_anon_versioning" = xyes; then
10084 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10085 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10086 echo "local: *; };" >> $output_objdir/$libname.ver~
10087 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10090 case $cc_basename in
10091 xlf* | bgf* | bgxlf* | mpixlf*)
10092 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10093 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10095 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10096 if test "x$supports_anon_versioning" = xyes; then
10097 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10099 echo "local: *; };" >> $output_objdir/$libname.ver~
10100 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10109 netbsd* | netbsdelf*-gnu)
10110 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10111 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10114 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10115 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10120 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10124 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10125 *** create shared libraries on Solaris systems. Therefore, libtool
10126 *** is disabling shared libraries support. We urge you to upgrade GNU
10127 *** binutils to release 2.9.1 or newer. Another option is to modify
10128 *** your PATH or compiler configuration so that the native linker is
10129 *** used, and then restart.
10132 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10133 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10134 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10141 case `$LD -v 2>&1` in
10142 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10146 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10147 *** reliably create shared libraries on SCO systems. Therefore, libtool
10148 *** is disabling shared libraries support. We urge you to upgrade GNU
10149 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10150 *** your PATH or compiler configuration so that the native linker is
10151 *** used, and then restart.
10156 # For security reasons, it is highly recommended that you always
10157 # use absolute paths for naming shared libraries, and exclude the
10158 # DT_RUNPATH tag from executables and libraries. But doing so
10159 # requires that you compile everything twice, which is a pain.
10160 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10163 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10172 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10174 hardcode_direct=yes
10175 hardcode_shlibpath_var=no
10179 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10180 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10181 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10188 if test "$ld_shlibs" = no; then
10190 hardcode_libdir_flag_spec=
10191 export_dynamic_flag_spec=
10192 whole_archive_flag_spec=
10195 # PORTME fill in a description of your system's linker (not GNU ld)
10198 allow_undefined_flag=unsupported
10199 always_export_symbols=yes
10200 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'
10201 # Note: this linker hardcodes the directories in LIBPATH if there
10202 # are no directories specified by -L.
10203 hardcode_minus_L=yes
10204 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10205 # Neither direct hardcoding nor static linking is supported with a
10207 hardcode_direct=unsupported
10212 if test "$host_cpu" = ia64; then
10213 # On IA64, the linker does run time linking by default, so we don't
10214 # have to do anything special.
10215 aix_use_runtimelinking=no
10216 exp_sym_flag='-Bexport'
10219 # If we're using GNU nm, then we don't want the "-C" option.
10220 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10221 # Also, AIX nm treats weak defined symbols like other global
10222 # defined symbols, whereas GNU nm marks them as "W".
10223 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10224 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10226 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10228 aix_use_runtimelinking=no
10230 # Test if we are trying to use run time linking or normal
10231 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10232 # need to do runtime linking.
10233 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10234 for ld_flag in $LDFLAGS; do
10235 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10236 aix_use_runtimelinking=yes
10243 exp_sym_flag='-bexport'
10244 no_entry_flag='-bnoentry'
10247 # When large executables or shared objects are built, AIX ld can
10248 # have problems creating the table of contents. If linking a library
10249 # or program results in "error TOC overflow" add -mminimal-toc to
10250 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10251 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10254 hardcode_direct=yes
10255 hardcode_direct_absolute=yes
10256 hardcode_libdir_separator=':'
10257 link_all_deplibs=yes
10258 file_list_spec='${wl}-f,'
10260 if test "$GCC" = yes; then
10261 case $host_os in aix4.[012]|aix4.[012].*)
10262 # We only want to do this on AIX 4.2 and lower, the check
10263 # below for broken collect2 doesn't work under 4.3+
10264 collect2name=`${CC} -print-prog-name=collect2`
10265 if test -f "$collect2name" &&
10266 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10268 # We have reworked collect2
10271 # We have old collect2
10272 hardcode_direct=unsupported
10273 # It fails to find uninstalled libraries when the uninstalled
10274 # path is not listed in the libpath. Setting hardcode_minus_L
10275 # to unsupported forces relinking
10276 hardcode_minus_L=yes
10277 hardcode_libdir_flag_spec='-L$libdir'
10278 hardcode_libdir_separator=
10282 shared_flag='-shared'
10283 if test "$aix_use_runtimelinking" = yes; then
10284 shared_flag="$shared_flag "'${wl}-G'
10286 link_all_deplibs=no
10289 if test "$host_cpu" = ia64; then
10290 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10291 # chokes on -Wl,-G. The following line is correct:
10294 if test "$aix_use_runtimelinking" = yes; then
10295 shared_flag='${wl}-G'
10297 shared_flag='${wl}-bM:SRE'
10302 export_dynamic_flag_spec='${wl}-bexpall'
10303 # It seems that -bexpall does not export symbols beginning with
10304 # underscore (_), so it is better to generate a list of symbols to export.
10305 always_export_symbols=yes
10306 if test "$aix_use_runtimelinking" = yes; then
10307 # Warning - without using the other runtime loading flags (-brtl),
10308 # -berok will link without error, but may produce a broken library.
10309 allow_undefined_flag='-berok'
10310 # Determine the default libpath from the value encoded in an
10311 # empty executable.
10312 if test "${lt_cv_aix_libpath+set}" = set; then
10313 aix_libpath=$lt_cv_aix_libpath
10315 if ${lt_cv_aix_libpath_+:} false; then :
10316 $as_echo_n "(cached) " >&6
10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10329 if ac_fn_c_try_link "$LINENO"; then :
10331 lt_aix_libpath_sed='
10332 /Import File Strings/,/^$/ {
10334 s/^0 *\([^ ]*\) *$/\1/
10338 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10339 # Check for a 64-bit object if we didn't find anything.
10340 if test -z "$lt_cv_aix_libpath_"; then
10341 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10344 rm -f core conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10346 if test -z "$lt_cv_aix_libpath_"; then
10347 lt_cv_aix_libpath_="/usr/lib:/lib"
10352 aix_libpath=$lt_cv_aix_libpath_
10355 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10356 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10358 if test "$host_cpu" = ia64; then
10359 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10360 allow_undefined_flag="-z nodefs"
10361 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"
10363 # Determine the default libpath from the value encoded in an
10364 # empty executable.
10365 if test "${lt_cv_aix_libpath+set}" = set; then
10366 aix_libpath=$lt_cv_aix_libpath
10368 if ${lt_cv_aix_libpath_+:} false; then :
10369 $as_echo_n "(cached) " >&6
10371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372 /* end confdefs.h. */
10382 if ac_fn_c_try_link "$LINENO"; then :
10384 lt_aix_libpath_sed='
10385 /Import File Strings/,/^$/ {
10387 s/^0 *\([^ ]*\) *$/\1/
10391 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10392 # Check for a 64-bit object if we didn't find anything.
10393 if test -z "$lt_cv_aix_libpath_"; then
10394 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10397 rm -f core conftest.err conftest.$ac_objext \
10398 conftest$ac_exeext conftest.$ac_ext
10399 if test -z "$lt_cv_aix_libpath_"; then
10400 lt_cv_aix_libpath_="/usr/lib:/lib"
10405 aix_libpath=$lt_cv_aix_libpath_
10408 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10409 # Warning - without using the other run time loading flags,
10410 # -berok will link without error, but may produce a broken library.
10411 no_undefined_flag=' ${wl}-bernotok'
10412 allow_undefined_flag=' ${wl}-berok'
10413 if test "$with_gnu_ld" = yes; then
10414 # We only use this code for GNU lds that support --whole-archive.
10415 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10417 # Exported symbols can be pulled into shared objects from archives
10418 whole_archive_flag_spec='$convenience'
10420 archive_cmds_need_lc=yes
10421 # This is similar to how AIX traditionally builds its shared libraries.
10422 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10430 # see comment about AmigaOS4 .so support
10431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10432 archive_expsym_cmds=''
10435 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)'
10436 hardcode_libdir_flag_spec='-L$libdir'
10437 hardcode_minus_L=yes
10443 export_dynamic_flag_spec=-rdynamic
10446 cygwin* | mingw* | pw32* | cegcc*)
10447 # When not using gcc, we currently assume that we are using
10448 # Microsoft Visual C++.
10449 # hardcode_libdir_flag_spec is actually meaningless, as there is
10450 # no search path for DLLs.
10451 case $cc_basename in
10454 hardcode_libdir_flag_spec=' '
10455 allow_undefined_flag=unsupported
10456 always_export_symbols=yes
10458 # Tell ltmain to make .lib files, not .a files.
10460 # Tell ltmain to make .dll files, not .so files.
10462 # FIXME: Setting linknames here is a bad hack.
10463 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10464 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10465 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10467 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10469 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10471 # The linker will not automatically build a static lib if we build a DLL.
10472 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10473 enable_shared_with_static_runtimes=yes
10474 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10475 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10477 old_postinstall_cmds='chmod 644 $oldlib'
10478 postlink_cmds='lt_outputfile="@OUTPUT@"~
10479 lt_tool_outputfile="@TOOL_OUTPUT@"~
10480 case $lt_outputfile in
10483 lt_outputfile="$lt_outputfile.exe"
10484 lt_tool_outputfile="$lt_tool_outputfile.exe"
10487 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10488 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10489 $RM "$lt_outputfile.manifest";
10493 # Assume MSVC wrapper
10494 hardcode_libdir_flag_spec=' '
10495 allow_undefined_flag=unsupported
10496 # Tell ltmain to make .lib files, not .a files.
10498 # Tell ltmain to make .dll files, not .so files.
10500 # FIXME: Setting linknames here is a bad hack.
10501 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10502 # The linker will automatically build a .lib file if we build a DLL.
10503 old_archive_from_new_cmds='true'
10504 # FIXME: Should let the user specify the lib program.
10505 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10506 enable_shared_with_static_runtimes=yes
10511 darwin* | rhapsody*)
10514 archive_cmds_need_lc=no
10516 hardcode_automatic=yes
10517 hardcode_shlibpath_var=unsupported
10518 if test "$lt_cv_ld_force_load" = "yes"; then
10519 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\"`'
10522 whole_archive_flag_spec=''
10524 link_all_deplibs=yes
10525 allow_undefined_flag="$_lt_dar_allow_undefined"
10526 case $cc_basename in
10527 ifort*) _lt_dar_can_shared=yes ;;
10528 *) _lt_dar_can_shared=$GCC ;;
10530 if test "$_lt_dar_can_shared" = "yes"; then
10531 output_verbose_link_cmd=func_echo_all
10532 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10533 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10534 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}"
10535 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}"
10544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545 hardcode_libdir_flag_spec='-L$libdir'
10546 hardcode_shlibpath_var=no
10549 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10550 # support. Future versions do this automatically, but an explicit c++rt0.o
10551 # does not break anything, and helps significantly (at the cost of a little
10554 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10555 hardcode_libdir_flag_spec='-R$libdir'
10556 hardcode_direct=yes
10557 hardcode_shlibpath_var=no
10560 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10563 hardcode_direct=yes
10564 hardcode_minus_L=yes
10565 hardcode_shlibpath_var=no
10568 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10569 freebsd* | dragonfly*)
10570 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10571 hardcode_libdir_flag_spec='-R$libdir'
10572 hardcode_direct=yes
10573 hardcode_shlibpath_var=no
10577 if test "$GCC" = yes; then
10578 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10580 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10582 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10583 hardcode_libdir_separator=:
10584 hardcode_direct=yes
10586 # hardcode_minus_L: Not really in the search PATH,
10587 # but as the default location of the library.
10588 hardcode_minus_L=yes
10589 export_dynamic_flag_spec='${wl}-E'
10593 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10594 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10596 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10598 if test "$with_gnu_ld" = no; then
10599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10600 hardcode_libdir_separator=:
10601 hardcode_direct=yes
10602 hardcode_direct_absolute=yes
10603 export_dynamic_flag_spec='${wl}-E'
10604 # hardcode_minus_L: Not really in the search PATH,
10605 # but as the default location of the library.
10606 hardcode_minus_L=yes
10611 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10614 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10617 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10620 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10626 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10629 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10633 # Older versions of the 11.00 compiler do not understand -b yet
10634 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10636 $as_echo_n "checking if $CC understands -b... " >&6; }
10637 if ${lt_cv_prog_compiler__b+:} false; then :
10638 $as_echo_n "(cached) " >&6
10640 lt_cv_prog_compiler__b=no
10641 save_LDFLAGS="$LDFLAGS"
10642 LDFLAGS="$LDFLAGS -b"
10643 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10644 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10645 # The linker can only warn and ignore the option if not recognized
10646 # So say no if there are warnings
10647 if test -s conftest.err; then
10648 # Append any errors to the config.log.
10649 cat conftest.err 1>&5
10650 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10652 if diff conftest.exp conftest.er2 >/dev/null; then
10653 lt_cv_prog_compiler__b=yes
10656 lt_cv_prog_compiler__b=yes
10660 LDFLAGS="$save_LDFLAGS"
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10664 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10666 if test x"$lt_cv_prog_compiler__b" = xyes; then
10667 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10669 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10675 if test "$with_gnu_ld" = no; then
10676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10677 hardcode_libdir_separator=:
10682 hardcode_shlibpath_var=no
10685 hardcode_direct=yes
10686 hardcode_direct_absolute=yes
10687 export_dynamic_flag_spec='${wl}-E'
10689 # hardcode_minus_L: Not really in the search PATH,
10690 # but as the default location of the library.
10691 hardcode_minus_L=yes
10697 irix5* | irix6* | nonstopux*)
10698 if test "$GCC" = yes; then
10699 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'
10700 # Try to use the -exported_symbol ld option, if it does not
10701 # work, assume that -exports_file does not work either and
10702 # implicitly export all symbols.
10703 # This should be the same for all languages, so no per-tag cache variable.
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10705 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10706 if ${lt_cv_irix_exported_symbol+:} false; then :
10707 $as_echo_n "(cached) " >&6
10709 save_LDFLAGS="$LDFLAGS"
10710 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10713 int foo (void) { return 0; }
10715 if ac_fn_c_try_link "$LINENO"; then :
10716 lt_cv_irix_exported_symbol=yes
10718 lt_cv_irix_exported_symbol=no
10720 rm -f core conftest.err conftest.$ac_objext \
10721 conftest$ac_exeext conftest.$ac_ext
10722 LDFLAGS="$save_LDFLAGS"
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10725 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10726 if test "$lt_cv_irix_exported_symbol" = yes; then
10727 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'
10730 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'
10731 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'
10733 archive_cmds_need_lc='no'
10734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10735 hardcode_libdir_separator=:
10737 link_all_deplibs=yes
10740 netbsd* | netbsdelf*-gnu)
10741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10744 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10746 hardcode_libdir_flag_spec='-R$libdir'
10747 hardcode_direct=yes
10748 hardcode_shlibpath_var=no
10752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10753 hardcode_direct=yes
10754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10755 hardcode_libdir_separator=:
10756 hardcode_shlibpath_var=no
10763 if test -f /usr/libexec/ld.so; then
10764 hardcode_direct=yes
10765 hardcode_shlibpath_var=no
10766 hardcode_direct_absolute=yes
10767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10769 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10770 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10771 export_dynamic_flag_spec='${wl}-E'
10774 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10776 hardcode_libdir_flag_spec='-R$libdir'
10779 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10790 hardcode_libdir_flag_spec='-L$libdir'
10791 hardcode_minus_L=yes
10792 allow_undefined_flag=unsupported
10793 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10794 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10798 if test "$GCC" = yes; then
10799 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10800 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'
10802 allow_undefined_flag=' -expect_unresolved \*'
10803 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'
10805 archive_cmds_need_lc='no'
10806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10807 hardcode_libdir_separator=:
10810 osf4* | osf5*) # as osf3* with the addition of -msym flag
10811 if test "$GCC" = yes; then
10812 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10813 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'
10814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10816 allow_undefined_flag=' -expect_unresolved \*'
10817 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'
10818 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~
10819 $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'
10821 # Both c and cxx compiler support -rpath directly
10822 hardcode_libdir_flag_spec='-rpath $libdir'
10824 archive_cmds_need_lc='no'
10825 hardcode_libdir_separator=:
10829 no_undefined_flag=' -z defs'
10830 if test "$GCC" = yes; then
10832 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10833 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10834 $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'
10836 case `$CC -V 2>&1` in
10839 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10840 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10841 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10845 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10846 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10847 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10851 hardcode_libdir_flag_spec='-R$libdir'
10852 hardcode_shlibpath_var=no
10854 solaris2.[0-5] | solaris2.[0-5].*) ;;
10856 # The compiler driver will combine and reorder linker options,
10857 # but understands `-z linker_flag'. GCC discards it without `$wl',
10858 # but is careful enough not to reorder.
10859 # Supported since Solaris 2.6 (maybe 2.5.1?)
10860 if test "$GCC" = yes; then
10861 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10863 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10867 link_all_deplibs=yes
10871 if test "x$host_vendor" = xsequent; then
10872 # Use $CC to link under sequent, because it throws in some extra .o
10873 # files that make .init and .fini sections work.
10874 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10876 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10878 hardcode_libdir_flag_spec='-L$libdir'
10879 hardcode_direct=yes
10880 hardcode_minus_L=yes
10881 hardcode_shlibpath_var=no
10885 case $host_vendor in
10887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10888 hardcode_direct=yes # is this really true???
10891 ## LD is ld it makes a PLAMLIB
10892 ## CC just makes a GrossModule.
10893 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10894 reload_cmds='$CC -r -o $output$reload_objs'
10898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10899 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10902 runpath_var='LD_RUN_PATH'
10903 hardcode_shlibpath_var=no
10907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10908 hardcode_shlibpath_var=no
10909 export_dynamic_flag_spec='-Bexport'
10913 if test -d /usr/nec; then
10914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10915 hardcode_shlibpath_var=no
10916 runpath_var=LD_RUN_PATH
10917 hardcode_runpath_var=yes
10922 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10923 no_undefined_flag='${wl}-z,text'
10924 archive_cmds_need_lc=no
10925 hardcode_shlibpath_var=no
10926 runpath_var='LD_RUN_PATH'
10928 if test "$GCC" = yes; then
10929 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10930 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10932 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10933 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10937 sysv5* | sco3.2v5* | sco5v6*)
10938 # Note: We can NOT use -z defs as we might desire, because we do not
10939 # link with -lc, and that would cause any symbols used from libc to
10940 # always be unresolved, which means just about no library would
10941 # ever link correctly. If we're not using GNU ld we use -z text
10942 # though, which does catch some bad symbols but isn't as heavy-handed
10944 no_undefined_flag='${wl}-z,text'
10945 allow_undefined_flag='${wl}-z,nodefs'
10946 archive_cmds_need_lc=no
10947 hardcode_shlibpath_var=no
10948 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10949 hardcode_libdir_separator=':'
10950 link_all_deplibs=yes
10951 export_dynamic_flag_spec='${wl}-Bexport'
10952 runpath_var='LD_RUN_PATH'
10954 if test "$GCC" = yes; then
10955 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10956 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10958 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10959 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965 hardcode_libdir_flag_spec='-L$libdir'
10966 hardcode_shlibpath_var=no
10974 if test x$host_vendor = xsni; then
10976 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10977 export_dynamic_flag_spec='${wl}-Blargedynsym'
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10984 $as_echo "$ld_shlibs" >&6; }
10985 test "$ld_shlibs" = no && can_build_shared=no
10987 with_gnu_ld=$with_gnu_ld
11004 # Do we need to explicitly link libc?
11006 case "x$archive_cmds_need_lc" in
11008 # Assume -lc should be added
11009 archive_cmds_need_lc=yes
11011 if test "$enable_shared" = yes && test "$GCC" = yes; then
11012 case $archive_cmds in
11014 # FIXME: we may have to deal with multi-command sequences.
11017 # Test whether the compiler implicitly links with -lc since on some
11018 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11019 # to ld, don't add -lc before -lgcc.
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11021 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11022 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11023 $as_echo_n "(cached) " >&6
11026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11029 (eval $ac_compile) 2>&5
11031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11032 test $ac_status = 0; } 2>conftest.err; then
11035 libobjs=conftest.$ac_objext
11037 wl=$lt_prog_compiler_wl
11038 pic_flag=$lt_prog_compiler_pic
11044 lt_save_allow_undefined_flag=$allow_undefined_flag
11045 allow_undefined_flag=
11046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11047 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11050 test $ac_status = 0; }
11052 lt_cv_archive_cmds_need_lc=no
11054 lt_cv_archive_cmds_need_lc=yes
11056 allow_undefined_flag=$lt_save_allow_undefined_flag
11058 cat conftest.err 1>&5
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11064 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11065 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11224 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11226 if test "$GCC" = yes; then
11228 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11229 *) lt_awk_arg="/^libraries:/" ;;
11232 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11233 *) lt_sed_strip_eq="s,=/,/,g" ;;
11235 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11236 case $lt_search_path_spec in
11238 # if the path contains ";" then we assume it to be the separator
11239 # otherwise default to the standard path separator (i.e. ":") - it is
11240 # assumed that no part of a normal pathname contains ";" but that should
11241 # okay in the real world where ";" in dirpaths is itself problematic.
11242 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11245 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11248 # Ok, now we have the path, separated by spaces, we can step through it
11249 # and add multilib dir if necessary.
11250 lt_tmp_lt_search_path_spec=
11251 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11252 for lt_sys_path in $lt_search_path_spec; do
11253 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11254 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11256 test -d "$lt_sys_path" && \
11257 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11260 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11261 BEGIN {RS=" "; FS="/|\n";} {
11264 for (lt_i = NF; lt_i > 0; lt_i--) {
11265 if ($lt_i != "" && $lt_i != ".") {
11266 if ($lt_i == "..") {
11269 if (lt_count == 0) {
11270 lt_foo="/" $lt_i lt_foo;
11277 if (lt_foo != "") { lt_freq[lt_foo]++; }
11278 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11280 # AWK program above erroneously prepends '/' to C:/dos/paths
11283 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11284 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11286 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11288 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11290 library_names_spec=
11291 libname_spec='lib$name'
11295 postuninstall_cmds=
11299 shlibpath_overrides_runpath=unknown
11301 dynamic_linker="$host_os ld.so"
11302 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11303 need_lib_prefix=unknown
11304 hardcode_into_libs=no
11306 # when you set need_version to no, make sure it does not cause -set_version
11307 # flags to be left without arguments
11308 need_version=unknown
11312 version_type=linux # correct to gnu/linux during the next big refactor
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11314 shlibpath_var=LIBPATH
11316 # AIX 3 has no versioning support, so we append a major version to the name.
11317 soname_spec='${libname}${release}${shared_ext}$major'
11321 version_type=linux # correct to gnu/linux during the next big refactor
11324 hardcode_into_libs=yes
11325 if test "$host_cpu" = ia64; then
11326 # AIX 5 supports IA64
11327 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11328 shlibpath_var=LD_LIBRARY_PATH
11330 # With GCC up to 2.95.x, collect2 would create an import file
11331 # for dependence libraries. The import file would start with
11332 # the line `#! .'. This would cause the generated library to
11333 # depend on `.', always an invalid library. This was fixed in
11334 # development snapshots of GCC prior to 3.0.
11336 aix4 | aix4.[01] | aix4.[01].*)
11337 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11339 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11342 can_build_shared=no
11346 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11347 # soname into executable. Probably we can add versioning support to
11348 # collect2, so additional links can be useful in future.
11349 if test "$aix_use_runtimelinking" = yes; then
11350 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11351 # instead of lib<name>.a to let people know that these are not
11352 # typical AIX shared libraries.
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 # We preserve .a as extension for shared libraries through AIX4.2
11356 # and later when we are not doing run time linking.
11357 library_names_spec='${libname}${release}.a $libname.a'
11358 soname_spec='${libname}${release}${shared_ext}$major'
11360 shlibpath_var=LIBPATH
11367 # Since July 2007 AmigaOS4 officially supports .so libraries.
11368 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372 library_names_spec='$libname.ixlibrary $libname.a'
11373 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11374 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
11380 library_names_spec='${libname}${shared_ext}'
11381 dynamic_linker="$host_os ld.so"
11382 shlibpath_var=LIBRARY_PATH
11386 version_type=linux # correct to gnu/linux during the next big refactor
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11390 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11391 shlibpath_var=LD_LIBRARY_PATH
11392 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11393 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11394 # the default ld.so.conf also contains /usr/contrib/lib and
11395 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11396 # libtool to hard-code these into programs
11399 cygwin* | mingw* | pw32* | cegcc*)
11400 version_type=windows
11405 case $GCC,$cc_basename in
11408 library_names_spec='$libname.dll.a'
11409 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11410 postinstall_cmds='base_file=`basename \${file}`~
11411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11412 dldir=$destdir/`dirname \$dlpath`~
11413 test -d \$dldir || mkdir -p \$dldir~
11414 $install_prog $dir/$dlname \$dldir/$dlname~
11415 chmod a+x \$dldir/$dlname~
11416 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11417 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11420 dlpath=$dir/\$dldll~
11422 shlibpath_overrides_runpath=yes
11426 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11427 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11429 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11432 # MinGW DLLs use traditional 'lib' prefix
11433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11436 # pw32 DLLs use 'pw' prefix rather than 'lib'
11437 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11440 dynamic_linker='Win32 ld.exe'
11445 libname_spec='$name'
11446 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11447 library_names_spec='${libname}.dll.lib'
11451 sys_lib_search_path_spec=
11454 for lt_path in $LIB
11457 # Let DOS variable expansion print the short 8.3 style file name.
11458 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11459 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11462 # Convert to MSYS style.
11463 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11466 # Convert to unix form, then to dos form, then back to unix form
11467 # but this time dos style (no spaces!) so that the unix form looks
11468 # like /cygdrive/c/PROGRA~1:/cygdr...
11469 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11470 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11471 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11474 sys_lib_search_path_spec="$LIB"
11475 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11476 # It is most probably a Windows format PATH.
11477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11481 # FIXME: find the short name or the path components, as spaces are
11482 # common. (e.g. "Program Files" -> "PROGRA~1")
11486 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11487 postinstall_cmds='base_file=`basename \${file}`~
11488 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11489 dldir=$destdir/`dirname \$dlpath`~
11490 test -d \$dldir || mkdir -p \$dldir~
11491 $install_prog $dir/$dlname \$dldir/$dlname'
11492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11493 dlpath=$dir/\$dldll~
11495 shlibpath_overrides_runpath=yes
11496 dynamic_linker='Win32 link.exe'
11500 # Assume MSVC wrapper
11501 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11502 dynamic_linker='Win32 ld.exe'
11505 # FIXME: first we should search . and the directory the executable is in
11509 darwin* | rhapsody*)
11510 dynamic_linker="$host_os dyld"
11511 version_type=darwin
11514 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11515 soname_spec='${libname}${release}${major}$shared_ext'
11516 shlibpath_overrides_runpath=yes
11517 shlibpath_var=DYLD_LIBRARY_PATH
11518 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11520 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11521 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11525 version_type=linux # correct to gnu/linux during the next big refactor
11528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11529 soname_spec='${libname}${release}${shared_ext}$major'
11530 shlibpath_var=LD_LIBRARY_PATH
11533 freebsd* | dragonfly*)
11534 # DragonFly does not have aout. When/if they implement a new
11535 # versioning mechanism, adjust this.
11536 if test -x /usr/bin/objformat; then
11537 objformat=`/usr/bin/objformat`
11540 freebsd[23].*) objformat=aout ;;
11541 *) objformat=elf ;;
11544 version_type=freebsd-$objformat
11545 case $version_type in
11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11556 shlibpath_var=LD_LIBRARY_PATH
11559 shlibpath_overrides_runpath=yes
11561 freebsd3.[01]* | freebsdelf3.[01]*)
11562 shlibpath_overrides_runpath=yes
11563 hardcode_into_libs=yes
11565 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11566 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11567 shlibpath_overrides_runpath=no
11568 hardcode_into_libs=yes
11570 *) # from 4.6 on, and DragonFly
11571 shlibpath_overrides_runpath=yes
11572 hardcode_into_libs=yes
11578 version_type=linux # correct to gnu/linux during the next big refactor
11581 dynamic_linker="$host_os runtime_loader"
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11583 soname_spec='${libname}${release}${shared_ext}$major'
11584 shlibpath_var=LIBRARY_PATH
11585 shlibpath_overrides_runpath=yes
11586 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11587 hardcode_into_libs=yes
11590 hpux9* | hpux10* | hpux11*)
11591 # Give a soname corresponding to the major version so that dld.sl refuses to
11592 # link against other versions.
11599 hardcode_into_libs=yes
11600 dynamic_linker="$host_os dld.so"
11601 shlibpath_var=LD_LIBRARY_PATH
11602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604 soname_spec='${libname}${release}${shared_ext}$major'
11605 if test "X$HPUX_IA64_MODE" = X32; then
11606 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11608 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11614 hardcode_into_libs=yes
11615 dynamic_linker="$host_os dld.sl"
11616 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619 soname_spec='${libname}${release}${shared_ext}$major'
11620 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11625 dynamic_linker="$host_os dld.sl"
11626 shlibpath_var=SHLIB_PATH
11627 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 soname_spec='${libname}${release}${shared_ext}$major'
11632 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11633 postinstall_cmds='chmod 555 $lib'
11634 # or fails outright, so override atomically:
11635 install_override_mode=555
11639 version_type=linux # correct to gnu/linux during the next big refactor
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11643 soname_spec='${libname}${release}${shared_ext}$major'
11644 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11645 shlibpath_var=LD_LIBRARY_PATH
11646 shlibpath_overrides_runpath=no
11647 hardcode_into_libs=yes
11650 irix5* | irix6* | nonstopux*)
11652 nonstopux*) version_type=nonstopux ;;
11654 if test "$lt_cv_prog_gnu_ld" = yes; then
11655 version_type=linux # correct to gnu/linux during the next big refactor
11662 soname_spec='${libname}${release}${shared_ext}$major'
11663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11665 irix5* | nonstopux*)
11666 libsuff= shlibsuff=
11669 case $LD in # libtool.m4 will add one of these switches to LD
11670 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11671 libsuff= shlibsuff= libmagic=32-bit;;
11672 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11673 libsuff=32 shlibsuff=N32 libmagic=N32;;
11674 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11675 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11676 *) libsuff= shlibsuff= libmagic=never-match;;
11680 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11681 shlibpath_overrides_runpath=no
11682 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11683 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11684 hardcode_into_libs=yes
11687 # No shared lib support for Linux oldld, aout, or coff.
11688 linux*oldld* | linux*aout* | linux*coff*)
11692 # This must be glibc/ELF.
11693 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11694 version_type=linux # correct to gnu/linux during the next big refactor
11697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11698 soname_spec='${libname}${release}${shared_ext}$major'
11699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11700 shlibpath_var=LD_LIBRARY_PATH
11701 shlibpath_overrides_runpath=no
11703 # Some binutils ld are patched to set DT_RUNPATH
11704 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11705 $as_echo_n "(cached) " >&6
11707 lt_cv_shlibpath_overrides_runpath=no
11708 save_LDFLAGS=$LDFLAGS
11709 save_libdir=$libdir
11710 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11711 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h. */
11723 if ac_fn_c_try_link "$LINENO"; then :
11724 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11725 lt_cv_shlibpath_overrides_runpath=yes
11728 rm -f core conftest.err conftest.$ac_objext \
11729 conftest$ac_exeext conftest.$ac_ext
11730 LDFLAGS=$save_LDFLAGS
11731 libdir=$save_libdir
11735 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11737 # This implies no fast_install, which is unacceptable.
11738 # Some rework will be needed to allow for fast_install
11739 # before this can be enabled.
11740 hardcode_into_libs=yes
11742 # Append ld.so.conf contents to the search path
11743 if test -f /etc/ld.so.conf; then
11744 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' ' '`
11745 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11748 # We used to test for /lib/ld.so.1 and disable shared libraries on
11749 # powerpc, because MkLinux only supported shared libraries with the
11750 # GNU dynamic linker. Since this was broken with cross compilers,
11751 # most powerpc-linux boxes support dynamic linking these days and
11752 # people can always --disable-shared, the test was removed, and we
11753 # assume the GNU/Linux dynamic linker is in use.
11754 dynamic_linker='GNU/Linux ld.so'
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 shlibpath_overrides_runpath=no
11765 hardcode_into_libs=yes
11766 dynamic_linker='NetBSD ld.elf_so'
11773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11776 dynamic_linker='NetBSD (a.out) ld.so'
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11779 soname_spec='${libname}${release}${shared_ext}$major'
11780 dynamic_linker='NetBSD ld.elf_so'
11782 shlibpath_var=LD_LIBRARY_PATH
11783 shlibpath_overrides_runpath=yes
11784 hardcode_into_libs=yes
11788 version_type=linux # correct to gnu/linux during the next big refactor
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790 shlibpath_var=LD_LIBRARY_PATH
11791 shlibpath_overrides_runpath=yes
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799 soname_spec='${libname}${release}${shared_ext}$major'
11800 shlibpath_var=LD_LIBRARY_PATH
11801 shlibpath_overrides_runpath=no
11802 hardcode_into_libs=yes
11803 dynamic_linker='ldqnx.so'
11808 sys_lib_dlsearch_path_spec="/usr/lib"
11810 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11812 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11813 *) need_version=no ;;
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11820 openbsd2.[89] | openbsd2.[89].*)
11821 shlibpath_overrides_runpath=no
11824 shlibpath_overrides_runpath=yes
11828 shlibpath_overrides_runpath=yes
11833 libname_spec='$name'
11836 library_names_spec='$libname${shared_ext} $libname.a'
11837 dynamic_linker='OS/2 ld.exe'
11838 shlibpath_var=LIBPATH
11841 osf3* | osf4* | osf5*)
11845 soname_spec='${libname}${release}${shared_ext}$major'
11846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11847 shlibpath_var=LD_LIBRARY_PATH
11848 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11849 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11857 version_type=linux # correct to gnu/linux during the next big refactor
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861 soname_spec='${libname}${release}${shared_ext}$major'
11862 shlibpath_var=LD_LIBRARY_PATH
11863 shlibpath_overrides_runpath=yes
11864 hardcode_into_libs=yes
11865 # ldd complains unless libraries are executable
11866 postinstall_cmds='chmod +x $lib'
11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11872 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11873 shlibpath_var=LD_LIBRARY_PATH
11874 shlibpath_overrides_runpath=yes
11875 if test "$with_gnu_ld" = yes; then
11882 version_type=linux # correct to gnu/linux during the next big refactor
11883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11884 soname_spec='${libname}${release}${shared_ext}$major'
11885 shlibpath_var=LD_LIBRARY_PATH
11886 case $host_vendor in
11888 shlibpath_overrides_runpath=no
11890 runpath_var=LD_RUN_PATH
11898 shlibpath_overrides_runpath=no
11899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11905 if test -d /usr/nec ;then
11906 version_type=linux # correct to gnu/linux during the next big refactor
11907 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11908 soname_spec='$libname${shared_ext}.$major'
11909 shlibpath_var=LD_LIBRARY_PATH
11913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11914 version_type=freebsd-elf
11917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11918 soname_spec='${libname}${release}${shared_ext}$major'
11919 shlibpath_var=LD_LIBRARY_PATH
11920 shlibpath_overrides_runpath=yes
11921 hardcode_into_libs=yes
11922 if test "$with_gnu_ld" = yes; then
11923 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11925 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11928 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11932 sys_lib_dlsearch_path_spec='/usr/lib'
11936 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11937 version_type=linux # correct to gnu/linux during the next big refactor
11940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11941 shlibpath_var=LD_LIBRARY_PATH
11942 shlibpath_overrides_runpath=no
11943 hardcode_into_libs=yes
11947 version_type=linux # correct to gnu/linux during the next big refactor
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11949 soname_spec='${libname}${release}${shared_ext}$major'
11950 shlibpath_var=LD_LIBRARY_PATH
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11958 $as_echo "$dynamic_linker" >&6; }
11959 test "$dynamic_linker" = no && can_build_shared=no
11961 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11962 if test "$GCC" = yes; then
11963 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11966 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11967 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11969 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11970 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12065 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12067 if test -n "$hardcode_libdir_flag_spec" ||
12068 test -n "$runpath_var" ||
12069 test "X$hardcode_automatic" = "Xyes" ; then
12071 # We can hardcode non-existent directories.
12072 if test "$hardcode_direct" != no &&
12073 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12074 # have to relink, otherwise we might link with an installed library
12075 # when we should be linking with a yet-to-be-installed one
12076 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12077 test "$hardcode_minus_L" != no; then
12078 # Linking always hardcodes the temporary library directory.
12079 hardcode_action=relink
12081 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12082 hardcode_action=immediate
12085 # We cannot hardcode anything, or else we can only hardcode existing
12087 hardcode_action=unsupported
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12090 $as_echo "$hardcode_action" >&6; }
12092 if test "$hardcode_action" = relink ||
12093 test "$inherit_rpath" = yes; then
12094 # Fast installation is not supported
12095 enable_fast_install=no
12096 elif test "$shlibpath_overrides_runpath" = yes ||
12097 test "$enable_shared" = no; then
12098 # Fast installation is not necessary
12099 enable_fast_install=needless
12107 if test "x$enable_dlopen" != xyes; then
12108 enable_dlopen=unknown
12109 enable_dlopen_self=unknown
12110 enable_dlopen_self_static=unknown
12117 lt_cv_dlopen="load_add_on"
12119 lt_cv_dlopen_self=yes
12122 mingw* | pw32* | cegcc*)
12123 lt_cv_dlopen="LoadLibrary"
12128 lt_cv_dlopen="dlopen"
12133 # if libdl is installed we need to link against it
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12135 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12136 if ${ac_cv_lib_dl_dlopen+:} false; then :
12137 $as_echo_n "(cached) " >&6
12139 ac_check_lib_save_LIBS=$LIBS
12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h. */
12144 /* Override any GCC internal prototype to avoid an error.
12145 Use char because int might match the return type of a GCC
12146 builtin and then its argument prototype would still apply. */
12159 if ac_fn_c_try_link "$LINENO"; then :
12160 ac_cv_lib_dl_dlopen=yes
12162 ac_cv_lib_dl_dlopen=no
12164 rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12166 LIBS=$ac_check_lib_save_LIBS
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12169 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12170 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12171 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12174 lt_cv_dlopen="dyld"
12176 lt_cv_dlopen_self=yes
12183 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12184 if test "x$ac_cv_func_shl_load" = xyes; then :
12185 lt_cv_dlopen="shl_load"
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12188 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12189 if ${ac_cv_lib_dld_shl_load+:} false; then :
12190 $as_echo_n "(cached) " >&6
12192 ac_check_lib_save_LIBS=$LIBS
12194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195 /* end confdefs.h. */
12197 /* Override any GCC internal prototype to avoid an error.
12198 Use char because int might match the return type of a GCC
12199 builtin and then its argument prototype would still apply. */
12207 return shl_load ();
12212 if ac_fn_c_try_link "$LINENO"; then :
12213 ac_cv_lib_dld_shl_load=yes
12215 ac_cv_lib_dld_shl_load=no
12217 rm -f core conftest.err conftest.$ac_objext \
12218 conftest$ac_exeext conftest.$ac_ext
12219 LIBS=$ac_check_lib_save_LIBS
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12222 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12223 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12224 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12226 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12227 if test "x$ac_cv_func_dlopen" = xyes; then :
12228 lt_cv_dlopen="dlopen"
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12231 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12232 if ${ac_cv_lib_dl_dlopen+:} false; then :
12233 $as_echo_n "(cached) " >&6
12235 ac_check_lib_save_LIBS=$LIBS
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12240 /* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12255 if ac_fn_c_try_link "$LINENO"; then :
12256 ac_cv_lib_dl_dlopen=yes
12258 ac_cv_lib_dl_dlopen=no
12260 rm -f core conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
12262 LIBS=$ac_check_lib_save_LIBS
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12265 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12266 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12267 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12270 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12271 if ${ac_cv_lib_svld_dlopen+:} false; then :
12272 $as_echo_n "(cached) " >&6
12274 ac_check_lib_save_LIBS=$LIBS
12275 LIBS="-lsvld $LIBS"
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12279 /* Override any GCC internal prototype to avoid an error.
12280 Use char because int might match the return type of a GCC
12281 builtin and then its argument prototype would still apply. */
12294 if ac_fn_c_try_link "$LINENO"; then :
12295 ac_cv_lib_svld_dlopen=yes
12297 ac_cv_lib_svld_dlopen=no
12299 rm -f core conftest.err conftest.$ac_objext \
12300 conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12304 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12305 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12306 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12309 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12310 if ${ac_cv_lib_dld_dld_link+:} false; then :
12311 $as_echo_n "(cached) " >&6
12313 ac_check_lib_save_LIBS=$LIBS
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12318 /* Override any GCC internal prototype to avoid an error.
12319 Use char because int might match the return type of a GCC
12320 builtin and then its argument prototype would still apply. */
12328 return dld_link ();
12333 if ac_fn_c_try_link "$LINENO"; then :
12334 ac_cv_lib_dld_dld_link=yes
12336 ac_cv_lib_dld_dld_link=no
12338 rm -f core conftest.err conftest.$ac_objext \
12339 conftest$ac_exeext conftest.$ac_ext
12340 LIBS=$ac_check_lib_save_LIBS
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12343 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12344 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12345 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12366 if test "x$lt_cv_dlopen" != xno; then
12372 case $lt_cv_dlopen in
12374 save_CPPFLAGS="$CPPFLAGS"
12375 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12377 save_LDFLAGS="$LDFLAGS"
12378 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12381 LIBS="$lt_cv_dlopen_libs $LIBS"
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12384 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12385 if ${lt_cv_dlopen_self+:} false; then :
12386 $as_echo_n "(cached) " >&6
12388 if test "$cross_compiling" = yes; then :
12389 lt_cv_dlopen_self=cross
12391 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12392 lt_status=$lt_dlunknown
12393 cat > conftest.$ac_ext <<_LT_EOF
12394 #line $LINENO "configure"
12395 #include "confdefs.h"
12404 # define LT_DLGLOBAL RTLD_GLOBAL
12407 # define LT_DLGLOBAL DL_GLOBAL
12409 # define LT_DLGLOBAL 0
12413 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12414 find out it does not work in some platform. */
12415 #ifndef LT_DLLAZY_OR_NOW
12417 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12420 # define LT_DLLAZY_OR_NOW DL_LAZY
12423 # define LT_DLLAZY_OR_NOW RTLD_NOW
12426 # define LT_DLLAZY_OR_NOW DL_NOW
12428 # define LT_DLLAZY_OR_NOW 0
12435 /* When -fvisbility=hidden is used, assume the code has been annotated
12436 correspondingly for the symbols needed. */
12437 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12438 int fnord () __attribute__((visibility("default")));
12441 int fnord () { return 42; }
12444 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12445 int status = $lt_dlunknown;
12449 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12452 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12453 else puts (dlerror ());
12455 /* dlclose (self); */
12463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12464 (eval $ac_link) 2>&5
12466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12467 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12468 (./conftest; exit; ) >&5 2>/dev/null
12470 case x$lt_status in
12471 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12472 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12473 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12476 # compilation failed
12477 lt_cv_dlopen_self=no
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12485 $as_echo "$lt_cv_dlopen_self" >&6; }
12487 if test "x$lt_cv_dlopen_self" = xyes; then
12488 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12490 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12491 if ${lt_cv_dlopen_self_static+:} false; then :
12492 $as_echo_n "(cached) " >&6
12494 if test "$cross_compiling" = yes; then :
12495 lt_cv_dlopen_self_static=cross
12497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12498 lt_status=$lt_dlunknown
12499 cat > conftest.$ac_ext <<_LT_EOF
12500 #line $LINENO "configure"
12501 #include "confdefs.h"
12510 # define LT_DLGLOBAL RTLD_GLOBAL
12513 # define LT_DLGLOBAL DL_GLOBAL
12515 # define LT_DLGLOBAL 0
12519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12520 find out it does not work in some platform. */
12521 #ifndef LT_DLLAZY_OR_NOW
12523 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12526 # define LT_DLLAZY_OR_NOW DL_LAZY
12529 # define LT_DLLAZY_OR_NOW RTLD_NOW
12532 # define LT_DLLAZY_OR_NOW DL_NOW
12534 # define LT_DLLAZY_OR_NOW 0
12541 /* When -fvisbility=hidden is used, assume the code has been annotated
12542 correspondingly for the symbols needed. */
12543 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12544 int fnord () __attribute__((visibility("default")));
12547 int fnord () { return 42; }
12550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12551 int status = $lt_dlunknown;
12555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12558 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12559 else puts (dlerror ());
12561 /* dlclose (self); */
12569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12570 (eval $ac_link) 2>&5
12572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12573 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12574 (./conftest; exit; ) >&5 2>/dev/null
12576 case x$lt_status in
12577 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12578 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12579 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12582 # compilation failed
12583 lt_cv_dlopen_self_static=no
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12591 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12594 CPPFLAGS="$save_CPPFLAGS"
12595 LDFLAGS="$save_LDFLAGS"
12600 case $lt_cv_dlopen_self in
12601 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12602 *) enable_dlopen_self=unknown ;;
12605 case $lt_cv_dlopen_self_static in
12606 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12607 *) enable_dlopen_self_static=unknown ;;
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12630 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12631 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12632 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12633 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12635 $as_echo "yes" >&6; }
12637 # FIXME - insert some real tests, host_os isn't really good enough
12640 if test -n "$STRIP" ; then
12641 striplib="$STRIP -x"
12642 old_striplib="$STRIP -S"
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12644 $as_echo "yes" >&6; }
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12668 # Report which library types will actually be built
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12670 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12672 $as_echo "$can_build_shared" >&6; }
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12675 $as_echo_n "checking whether to build shared libraries... " >&6; }
12676 test "$can_build_shared" = "no" && enable_shared=no
12678 # On AIX, shared libraries and static libraries use the same namespace, and
12679 # are all built from PIC.
12682 test "$enable_shared" = yes && enable_static=no
12683 if test -n "$RANLIB"; then
12684 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12685 postinstall_cmds='$RANLIB $lib'
12690 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12691 test "$enable_shared" = yes && enable_static=no
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12696 $as_echo "$enable_shared" >&6; }
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12699 $as_echo_n "checking whether to build static libraries... " >&6; }
12700 # Make sure either enable_shared or enable_static is yes.
12701 test "$enable_shared" = yes || enable_static=yes
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12703 $as_echo "$enable_static" >&6; }
12710 ac_cpp='$CPP $CPPFLAGS'
12711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12731 ac_config_commands="$ac_config_commands libtool"
12736 # Only expand once:
12740 ac_config_headers="$ac_config_headers config.h"
12744 # Check $PATH for the following programs and append suitable options.
12746 ac_cpp='$CPP $CPPFLAGS'
12747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12750 if test -n "$ac_tool_prefix"; then
12751 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12752 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if ${ac_cv_prog_CC+:} false; then :
12756 $as_echo_n "(cached) " >&6
12758 if test -n "$CC"; then
12759 ac_cv_prog_CC="$CC" # Let the user override the test.
12761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12762 for as_dir in $PATH
12765 test -z "$as_dir" && as_dir=.
12766 for ac_exec_ext in '' $ac_executable_extensions; do
12767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12768 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12779 if test -n "$CC"; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12781 $as_echo "$CC" >&6; }
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12789 if test -z "$ac_cv_prog_CC"; then
12791 # Extract the first word of "gcc", so it can be a program name with args.
12792 set dummy gcc; ac_word=$2
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12794 $as_echo_n "checking for $ac_word... " >&6; }
12795 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12796 $as_echo_n "(cached) " >&6
12798 if test -n "$ac_ct_CC"; then
12799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12802 for as_dir in $PATH
12805 test -z "$as_dir" && as_dir=.
12806 for ac_exec_ext in '' $ac_executable_extensions; do
12807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12808 ac_cv_prog_ac_ct_CC="gcc"
12809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12819 if test -n "$ac_ct_CC"; then
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12821 $as_echo "$ac_ct_CC" >&6; }
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824 $as_echo "no" >&6; }
12827 if test "x$ac_ct_CC" = x; then
12830 case $cross_compiling:$ac_tool_warned in
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12834 ac_tool_warned=yes ;;
12839 CC="$ac_cv_prog_CC"
12842 if test -z "$CC"; then
12843 if test -n "$ac_tool_prefix"; then
12844 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12845 set dummy ${ac_tool_prefix}cc; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847 $as_echo_n "checking for $ac_word... " >&6; }
12848 if ${ac_cv_prog_CC+:} false; then :
12849 $as_echo_n "(cached) " >&6
12851 if test -n "$CC"; then
12852 ac_cv_prog_CC="$CC" # Let the user override the test.
12854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855 for as_dir in $PATH
12858 test -z "$as_dir" && as_dir=.
12859 for ac_exec_ext in '' $ac_executable_extensions; do
12860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12861 ac_cv_prog_CC="${ac_tool_prefix}cc"
12862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12872 if test -n "$CC"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12874 $as_echo "$CC" >&6; }
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12883 if test -z "$CC"; then
12884 # Extract the first word of "cc", so it can be a program name with args.
12885 set dummy cc; ac_word=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887 $as_echo_n "checking for $ac_word... " >&6; }
12888 if ${ac_cv_prog_CC+:} false; then :
12889 $as_echo_n "(cached) " >&6
12891 if test -n "$CC"; then
12892 ac_cv_prog_CC="$CC" # Let the user override the test.
12894 ac_prog_rejected=no
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896 for as_dir in $PATH
12899 test -z "$as_dir" && as_dir=.
12900 for ac_exec_ext in '' $ac_executable_extensions; do
12901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12903 ac_prog_rejected=yes
12907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 if test $ac_prog_rejected = yes; then
12915 # We found a bogon in the path, so make sure we never use it.
12916 set dummy $ac_cv_prog_CC
12918 if test $# != 0; then
12919 # We chose a different compiler from the bogus one.
12920 # However, it has the same basename, so the bogon will be chosen
12921 # first if we set CC to just the basename; use the full file name.
12923 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12929 if test -n "$CC"; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12931 $as_echo "$CC" >&6; }
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934 $as_echo "no" >&6; }
12939 if test -z "$CC"; then
12940 if test -n "$ac_tool_prefix"; then
12941 for ac_prog in cl.exe
12943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12946 $as_echo_n "checking for $ac_word... " >&6; }
12947 if ${ac_cv_prog_CC+:} false; then :
12948 $as_echo_n "(cached) " >&6
12950 if test -n "$CC"; then
12951 ac_cv_prog_CC="$CC" # Let the user override the test.
12953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12954 for as_dir in $PATH
12957 test -z "$as_dir" && as_dir=.
12958 for ac_exec_ext in '' $ac_executable_extensions; do
12959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12960 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12971 if test -n "$CC"; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12973 $as_echo "$CC" >&6; }
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12980 test -n "$CC" && break
12983 if test -z "$CC"; then
12985 for ac_prog in cl.exe
12987 # Extract the first word of "$ac_prog", so it can be a program name with args.
12988 set dummy $ac_prog; ac_word=$2
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12990 $as_echo_n "checking for $ac_word... " >&6; }
12991 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12992 $as_echo_n "(cached) " >&6
12994 if test -n "$ac_ct_CC"; then
12995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
13003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13004 ac_cv_prog_ac_ct_CC="$ac_prog"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13015 if test -n "$ac_ct_CC"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13017 $as_echo "$ac_ct_CC" >&6; }
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020 $as_echo "no" >&6; }
13024 test -n "$ac_ct_CC" && break
13027 if test "x$ac_ct_CC" = x; then
13030 case $cross_compiling:$ac_tool_warned in
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13034 ac_tool_warned=yes ;;
13043 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13045 as_fn_error $? "no acceptable C compiler found in \$PATH
13046 See \`config.log' for more details" "$LINENO" 5; }
13048 # Provide some information about the compiler.
13049 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13052 for ac_option in --version -v -V -qversion; do
13053 { { ac_try="$ac_compiler $ac_option >&5"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13059 $as_echo "$ac_try_echo"; } >&5
13060 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13062 if test -s conftest.err; then
13064 ... rest of stderr output deleted ...
13065 10q' conftest.err >conftest.er1
13066 cat conftest.er1 >&5
13068 rm -f conftest.er1 conftest.err
13069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13070 test $ac_status = 0; }
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13074 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13075 if ${ac_cv_c_compiler_gnu+:} false; then :
13076 $as_echo_n "(cached) " >&6
13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13092 if ac_fn_c_try_compile "$LINENO"; then :
13093 ac_compiler_gnu=yes
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13102 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13103 if test $ac_compiler_gnu = yes; then
13108 ac_test_CFLAGS=${CFLAGS+set}
13109 ac_save_CFLAGS=$CFLAGS
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13111 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13112 if ${ac_cv_prog_cc_g+:} false; then :
13113 $as_echo_n "(cached) " >&6
13115 ac_save_c_werror_flag=$ac_c_werror_flag
13116 ac_c_werror_flag=yes
13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h. */
13130 if ac_fn_c_try_compile "$LINENO"; then :
13131 ac_cv_prog_cc_g=yes
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13145 if ac_fn_c_try_compile "$LINENO"; then :
13148 ac_c_werror_flag=$ac_save_c_werror_flag
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13161 if ac_fn_c_try_compile "$LINENO"; then :
13162 ac_cv_prog_cc_g=yes
13164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169 ac_c_werror_flag=$ac_save_c_werror_flag
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13172 $as_echo "$ac_cv_prog_cc_g" >&6; }
13173 if test "$ac_test_CFLAGS" = set; then
13174 CFLAGS=$ac_save_CFLAGS
13175 elif test $ac_cv_prog_cc_g = yes; then
13176 if test "$GCC" = yes; then
13182 if test "$GCC" = yes; then
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13189 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13190 if ${ac_cv_prog_cc_c89+:} false; then :
13191 $as_echo_n "(cached) " >&6
13193 ac_cv_prog_cc_c89=no
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h. */
13197 #include <stdarg.h>
13200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13201 struct buf { int x; };
13202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13203 static char *e (p, i)
13209 static char *f (char * (*g) (char **, int), char **p, ...)
13214 s = g (p, va_arg (v,int));
13219 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13220 function prototypes and stuff, but not '\xHH' hex character constants.
13221 These don't provoke an error unfortunately, instead are silently treated
13222 as 'x'. The following induces an error, until -std is added to get
13223 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13224 array size at least. It's necessary to write '\x00'==0 to get something
13225 that's true only with -std. */
13226 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13228 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13229 inside strings and character constants. */
13231 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13233 int test (int i, double x);
13234 struct s1 {int (*f) (int a);};
13235 struct s2 {int (*f) (double a);};
13236 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13242 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13247 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13248 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13250 CC="$ac_save_CC $ac_arg"
13251 if ac_fn_c_try_compile "$LINENO"; then :
13252 ac_cv_prog_cc_c89=$ac_arg
13254 rm -f core conftest.err conftest.$ac_objext
13255 test "x$ac_cv_prog_cc_c89" != "xno" && break
13257 rm -f conftest.$ac_ext
13262 case "x$ac_cv_prog_cc_c89" in
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13265 $as_echo "none needed" >&6; } ;;
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13268 $as_echo "unsupported" >&6; } ;;
13270 CC="$CC $ac_cv_prog_cc_c89"
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13272 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13274 if test "x$ac_cv_prog_cc_c89" != xno; then :
13279 ac_cpp='$CPP $CPPFLAGS'
13280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13284 depcc="$CC" am_compiler_list=
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13287 $as_echo_n "checking dependency style of $depcc... " >&6; }
13288 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13289 $as_echo_n "(cached) " >&6
13291 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13292 # We make a subdir and do the tests there. Otherwise we can end up
13293 # making bogus files that we don't know about and never remove. For
13294 # instance it was reported that on HP-UX the gcc test will end up
13295 # making a dummy file named 'D' -- because '-MD' means "put the output
13297 rm -rf conftest.dir
13299 # Copy depcomp to subdir because otherwise we won't find it if we're
13300 # using a relative directory.
13301 cp "$am_depcomp" conftest.dir
13303 # We will build objects and dependencies in a subdirectory because
13304 # it helps to detect inapplicable dependency modes. For instance
13305 # both Tru64's cc and ICC support -MD to output dependencies as a
13306 # side effect of compilation, but ICC will put the dependencies in
13307 # the current directory while Tru64 will put them in the object
13311 am_cv_CC_dependencies_compiler_type=none
13312 if test "$am_compiler_list" = ""; then
13313 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13315 am__universal=false
13316 case " $depcc " in #(
13317 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13320 for depmode in $am_compiler_list; do
13321 # Setup a source with many dependencies, because some compilers
13322 # like to wrap large dependency lists on column 80 (with \), and
13323 # we should not choose a depcomp mode which is confused by this.
13325 # We need to recreate these files for each test, as the compiler may
13326 # overwrite some of them when testing with obscure command lines.
13327 # This happens at least with the AIX C compiler.
13329 for i in 1 2 3 4 5 6; do
13330 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13331 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13332 # Solaris 10 /bin/sh.
13333 echo '/* dummy */' > sub/conftst$i.h
13335 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13337 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13338 # mode. It turns out that the SunPro C++ compiler does not properly
13339 # handle '-M -o', and we need to detect this. Also, some Intel
13340 # versions had trouble with output in subdirs.
13341 am__obj=sub/conftest.${OBJEXT-o}
13342 am__minus_obj="-o $am__obj"
13345 # This depmode causes a compiler race in universal mode.
13346 test "$am__universal" = false || continue
13349 # After this tag, mechanisms are not by side-effect, so they'll
13350 # only be used when explicitly requested.
13351 if test "x$enable_dependency_tracking" = xyes; then
13357 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13358 # This compiler won't grok '-c -o', but also, the minuso test has
13359 # not run yet. These depmodes are late enough in the game, and
13360 # so weak that their functioning should not be impacted.
13361 am__obj=conftest.${OBJEXT-o}
13366 if depmode=$depmode \
13367 source=sub/conftest.c object=$am__obj \
13368 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13369 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13370 >/dev/null 2>conftest.err &&
13371 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13372 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13373 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13374 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13375 # icc doesn't choke on unknown options, it will just issue warnings
13376 # or remarks (even with -Werror). So we grep stderr for any message
13377 # that says an option was ignored or not supported.
13378 # When given -MP, icc 7.0 and 7.1 complain thusly:
13379 # icc: Command line warning: ignoring option '-M'; no argument required
13380 # The diagnosis changed in icc 8.0:
13381 # icc: Command line remark: option '-MP' not supported
13382 if (grep 'ignoring option' conftest.err ||
13383 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13384 am_cv_CC_dependencies_compiler_type=$depmode
13391 rm -rf conftest.dir
13393 am_cv_CC_dependencies_compiler_type=none
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13398 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13399 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13402 test "x$enable_dependency_tracking" != xno \
13403 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13404 am__fastdepCC_TRUE=
13405 am__fastdepCC_FALSE='#'
13407 am__fastdepCC_TRUE='#'
13408 am__fastdepCC_FALSE=
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
13415 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
13416 if ${gl_cv_c_amsterdam_compiler+:} false; then :
13417 $as_echo_n "(cached) " >&6
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13429 $EGREP "Amsterdam" >/dev/null 2>&1; then :
13430 gl_cv_c_amsterdam_compiler=yes
13432 gl_cv_c_amsterdam_compiler=no
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
13439 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
13440 if test -z "$AR"; then
13441 if test $gl_cv_c_amsterdam_compiler = yes; then
13443 if test -z "$ARFLAGS"; then
13447 if test -n "$ac_tool_prefix"; then
13448 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13449 set dummy ${ac_tool_prefix}ar; ac_word=$2
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13451 $as_echo_n "checking for $ac_word... " >&6; }
13452 if ${ac_cv_prog_AR+:} false; then :
13453 $as_echo_n "(cached) " >&6
13455 if test -n "$AR"; then
13456 ac_cv_prog_AR="$AR" # Let the user override the test.
13458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459 for as_dir in $PATH
13462 test -z "$as_dir" && as_dir=.
13463 for ac_exec_ext in '' $ac_executable_extensions; do
13464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13465 ac_cv_prog_AR="${ac_tool_prefix}ar"
13466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13476 if test -n "$AR"; then
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13478 $as_echo "$AR" >&6; }
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481 $as_echo "no" >&6; }
13486 if test -z "$ac_cv_prog_AR"; then
13488 # Extract the first word of "ar", so it can be a program name with args.
13489 set dummy ar; ac_word=$2
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13491 $as_echo_n "checking for $ac_word... " >&6; }
13492 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13493 $as_echo_n "(cached) " >&6
13495 if test -n "$ac_ct_AR"; then
13496 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13499 for as_dir in $PATH
13502 test -z "$as_dir" && as_dir=.
13503 for ac_exec_ext in '' $ac_executable_extensions; do
13504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13505 ac_cv_prog_ac_ct_AR="ar"
13506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13515 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13516 if test -n "$ac_ct_AR"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13518 $as_echo "$ac_ct_AR" >&6; }
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13524 if test "x$ac_ct_AR" = x; then
13527 case $cross_compiling:$ac_tool_warned in
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13531 ac_tool_warned=yes ;;
13536 AR="$ac_cv_prog_AR"
13539 if test -z "$ARFLAGS"; then
13544 if test -z "$ARFLAGS"; then
13550 if test -z "$RANLIB"; then
13551 if test $gl_cv_c_amsterdam_compiler = yes; then
13554 if test -n "$ac_tool_prefix"; then
13555 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13556 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558 $as_echo_n "checking for $ac_word... " >&6; }
13559 if ${ac_cv_prog_RANLIB+:} false; then :
13560 $as_echo_n "(cached) " >&6
13562 if test -n "$RANLIB"; then
13563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13572 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582 RANLIB=$ac_cv_prog_RANLIB
13583 if test -n "$RANLIB"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13585 $as_echo "$RANLIB" >&6; }
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13593 if test -z "$ac_cv_prog_RANLIB"; then
13594 ac_ct_RANLIB=$RANLIB
13595 # Extract the first word of "ranlib", so it can be a program name with args.
13596 set dummy ranlib; ac_word=$2
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13598 $as_echo_n "checking for $ac_word... " >&6; }
13599 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13600 $as_echo_n "(cached) " >&6
13602 if test -n "$ac_ct_RANLIB"; then
13603 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13606 for as_dir in $PATH
13609 test -z "$as_dir" && as_dir=.
13610 for ac_exec_ext in '' $ac_executable_extensions; do
13611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13612 ac_cv_prog_ac_ct_RANLIB="ranlib"
13613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13623 if test -n "$ac_ct_RANLIB"; then
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13625 $as_echo "$ac_ct_RANLIB" >&6; }
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628 $as_echo "no" >&6; }
13631 if test "x$ac_ct_RANLIB" = x; then
13634 case $cross_compiling:$ac_tool_warned in
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13638 ac_tool_warned=yes ;;
13640 RANLIB=$ac_ct_RANLIB
13643 RANLIB="$ac_cv_prog_RANLIB"
13650 if test "x$CC" != xcc; then
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
13652 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
13655 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
13657 set dummy $CC; ac_cc=`$as_echo "$2" |
13658 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13659 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
13660 $as_echo_n "(cached) " >&6
13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13673 # Make sure it works both with $CC and with simple cc.
13674 # We do the test twice because some compilers refuse to overwrite an
13675 # existing .o file with -o, though they will create one.
13676 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13678 if { { case "(($ac_try" in
13679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680 *) ac_try_echo=$ac_try;;
13682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13683 $as_echo "$ac_try_echo"; } >&5
13684 (eval "$ac_try") 2>&5
13686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13687 test $ac_status = 0; } &&
13688 test -f conftest2.$ac_objext && { { case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13693 $as_echo "$ac_try_echo"; } >&5
13694 (eval "$ac_try") 2>&5
13696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13697 test $ac_status = 0; };
13699 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
13700 if test "x$CC" != xcc; then
13701 # Test first that cc exists at all.
13702 if { ac_try='cc -c conftest.$ac_ext >&5'
13703 { { case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13708 $as_echo "$ac_try_echo"; } >&5
13709 (eval "$ac_try") 2>&5
13711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13712 test $ac_status = 0; }; }; then
13713 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13715 if { { case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13720 $as_echo "$ac_try_echo"; } >&5
13721 (eval "$ac_try") 2>&5
13723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13724 test $ac_status = 0; } &&
13725 test -f conftest2.$ac_objext && { { case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13730 $as_echo "$ac_try_echo"; } >&5
13731 (eval "$ac_try") 2>&5
13733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13734 test $ac_status = 0; };
13739 # cc exists but doesn't like -o.
13740 eval ac_cv_prog_cc_${ac_cc}_c_o=no
13745 eval ac_cv_prog_cc_${ac_cc}_c_o=no
13747 rm -f core conftest*
13750 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13752 $as_echo "yes" >&6; }
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13757 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
13761 # FIXME: we rely on the cache variable name because
13762 # there is no other way.
13764 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13765 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
13766 if test "$am_t" != yes; then
13767 # Losing compiler, so override with the script.
13768 # FIXME: It is wrong to rewrite CC.
13769 # But if we don't then we get into trouble of one sort or another.
13770 # A longer-term fix would be to have automake use am__CC in this case,
13771 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13772 CC="$am_aux_dir/compile $CC"
13781 case $ac_cv_prog_cc_stdc in #(
13783 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
13786 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
13787 if ${ac_cv_prog_cc_c99+:} false; then :
13788 $as_echo_n "(cached) " >&6
13790 ac_cv_prog_cc_c99=no
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13794 #include <stdarg.h>
13795 #include <stdbool.h>
13796 #include <stdlib.h>
13800 // Check varargs macros. These examples are taken from C99 6.10.3.5.
13801 #define debug(...) fprintf (stderr, __VA_ARGS__)
13802 #define showlist(...) puts (#__VA_ARGS__)
13803 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
13805 test_varargs_macros (void)
13810 debug ("X = %d\n", x);
13811 showlist (The first, second, and third items.);
13812 report (x>y, "x is %d but y is %d", x, y);
13815 // Check long long types.
13816 #define BIG64 18446744073709551615ull
13817 #define BIG32 4294967295ul
13818 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
13820 your preprocessor is broken;
13824 your preprocessor is broken;
13826 static long long int bignum = -9223372036854775807LL;
13827 static unsigned long long int ubignum = BIG64;
13829 struct incomplete_array
13835 struct named_init {
13837 const wchar_t *name;
13841 typedef const char *ccp;
13844 test_restrict (ccp restrict text)
13846 // See if C++-style comments work.
13847 // Iterate through items via the restricted pointer.
13848 // Also check for declarations in for loops.
13849 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
13854 // Check varargs and va_copy.
13856 test_varargs (const char *format, ...)
13859 va_start (args, format);
13861 va_copy (args_copy, args);
13871 case 's': // string
13872 str = va_arg (args_copy, const char *);
13875 number = va_arg (args_copy, int);
13878 fnumber = va_arg (args_copy, double);
13884 va_end (args_copy);
13893 _Bool success = false;
13896 if (test_restrict ("String literal") == 0)
13898 char *restrict newvar = "Another string";
13901 test_varargs ("s, d' f .", "string", 65, 34.234);
13902 test_varargs_macros ();
13904 // Check flexible array members.
13905 struct incomplete_array *ia =
13906 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13908 for (int i = 0; i < ia->datasize; ++i)
13909 ia->data[i] = i * 1.234;
13911 // Check named initializers.
13912 struct named_init ni = {
13914 .name = L"Test wide string",
13915 .average = 543.34343,
13920 int dynamic_array[ni.number];
13921 dynamic_array[ni.number - 1] = 543;
13923 // work around unused variable warnings
13924 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13925 || dynamic_array[ni.number - 1] != 543);
13931 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13933 CC="$ac_save_CC $ac_arg"
13934 if ac_fn_c_try_compile "$LINENO"; then :
13935 ac_cv_prog_cc_c99=$ac_arg
13937 rm -f core conftest.err conftest.$ac_objext
13938 test "x$ac_cv_prog_cc_c99" != "xno" && break
13940 rm -f conftest.$ac_ext
13945 case "x$ac_cv_prog_cc_c99" in
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13948 $as_echo "none needed" >&6; } ;;
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13951 $as_echo "unsupported" >&6; } ;;
13953 CC="$CC $ac_cv_prog_cc_c99"
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13955 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13957 if test "x$ac_cv_prog_cc_c99" != xno; then :
13958 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13961 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13962 if ${ac_cv_prog_cc_c89+:} false; then :
13963 $as_echo_n "(cached) " >&6
13965 ac_cv_prog_cc_c89=no
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h. */
13969 #include <stdarg.h>
13972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13973 struct buf { int x; };
13974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13975 static char *e (p, i)
13981 static char *f (char * (*g) (char **, int), char **p, ...)
13986 s = g (p, va_arg (v,int));
13991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13992 function prototypes and stuff, but not '\xHH' hex character constants.
13993 These don't provoke an error unfortunately, instead are silently treated
13994 as 'x'. The following induces an error, until -std is added to get
13995 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13996 array size at least. It's necessary to write '\x00'==0 to get something
13997 that's true only with -std. */
13998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14001 inside strings and character constants. */
14003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14005 int test (int i, double x);
14006 struct s1 {int (*f) (int a);};
14007 struct s2 {int (*f) (double a);};
14008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14014 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14020 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14022 CC="$ac_save_CC $ac_arg"
14023 if ac_fn_c_try_compile "$LINENO"; then :
14024 ac_cv_prog_cc_c89=$ac_arg
14026 rm -f core conftest.err conftest.$ac_objext
14027 test "x$ac_cv_prog_cc_c89" != "xno" && break
14029 rm -f conftest.$ac_ext
14034 case "x$ac_cv_prog_cc_c89" in
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14037 $as_echo "none needed" >&6; } ;;
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14040 $as_echo "unsupported" >&6; } ;;
14042 CC="$CC $ac_cv_prog_cc_c89"
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14044 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14046 if test "x$ac_cv_prog_cc_c89" != xno; then :
14047 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14049 ac_cv_prog_cc_stdc=no
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
14056 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
14057 if ${ac_cv_prog_cc_stdc+:} false; then :
14058 $as_echo_n "(cached) " >&6
14061 case $ac_cv_prog_cc_stdc in #(
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14064 $as_echo "unsupported" >&6; } ;; #(
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14067 $as_echo "none needed" >&6; } ;; #(
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
14070 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
14078 # Check whether --enable-threads was given.
14079 if test "${enable_threads+set}" = set; then :
14080 enableval=$enable_threads; gl_use_threads=$enableval
14082 if test -n "$gl_use_threads_default"; then
14083 gl_use_threads="$gl_use_threads_default"
14086 osf*) gl_use_threads=no ;;
14089 1.[0-5].*) gl_use_threads=no ;;
14090 *) gl_use_threads=yes ;;
14093 *) gl_use_threads=yes ;;
14099 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
14100 # For using <pthread.h>:
14103 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
14104 # groks <pthread.h>. cc also understands the flag -pthread, but
14105 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
14106 # 2. putting a flag into CPPFLAGS that has an effect on the linker
14107 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
14108 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
14109 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
14112 # Some systems optimize for single-threaded programs by default, and
14113 # need special flags to disable these optimizations. For example, the
14114 # definition of 'errno' in <errno.h>.
14116 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
14117 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
14124 # Code from module alloca-opt:
14125 # Code from module dirname:
14126 # Code from module dirname-lgpl:
14127 # Code from module dosname:
14128 # Code from module double-slash-root:
14129 # Code from module environ:
14130 # Code from module errno:
14131 # Code from module error:
14132 # Code from module exitfail:
14133 # Code from module extensions:
14135 # Code from module extern-inline:
14136 # Code from module float:
14137 # Code from module full-write:
14138 # Code from module gettext-h:
14139 # Code from module havelib:
14140 # Code from module include_next:
14141 # Code from module intprops:
14142 # Code from module lib-ignore:
14143 # Code from module lock:
14144 # Code from module malloc-posix:
14145 # Code from module malloca:
14146 # Code from module memchr:
14147 # Code from module msvc-inval:
14148 # Code from module msvc-nothrow:
14149 # Code from module multiarch:
14150 # Code from module raise:
14151 # Code from module read:
14152 # Code from module safe-read:
14153 # Code from module safe-write:
14154 # Code from module setenv:
14155 # Code from module sigaction:
14156 # Code from module signal:
14157 # Code from module signal-h:
14158 # Code from module sigprocmask:
14159 # Code from module size_max:
14160 # Code from module snippet/_Noreturn:
14161 # Code from module snippet/arg-nonnull:
14162 # Code from module snippet/c++defs:
14163 # Code from module snippet/warn-on-use:
14164 # Code from module snprintf:
14165 # Code from module ssize_t:
14166 # Code from module stdarg:
14170 # Code from module stdbool:
14171 # Code from module stddef:
14172 # Code from module stdint:
14173 # Code from module stdio:
14174 # Code from module stdlib:
14175 # Code from module strerror:
14176 # Code from module strerror-override:
14177 # Code from module string:
14178 # Code from module strndup:
14179 # Code from module strnlen:
14180 # Code from module strsignal:
14181 # Code from module sys_select:
14182 # Code from module sys_stat:
14183 # Code from module sys_time:
14184 # Code from module sys_types:
14185 # Code from module sys_wait:
14186 # Code from module threadlib:
14190 # Code from module time:
14191 # Code from module tls:
14192 # Code from module unistd:
14193 # Code from module unsetenv:
14194 # Code from module vasnprintf:
14195 # Code from module vasprintf:
14196 # Code from module verify:
14197 # Code from module waitpid:
14198 # Code from module warnings:
14199 # Code from module wchar:
14200 # Code from module write:
14201 # Code from module xalloc:
14202 # Code from module xalloc-die:
14203 # Code from module xalloc-oversized:
14204 # Code from module xsize:
14205 # Code from module xstrndup:
14206 # Code from module xvasprintf:
14209 ac_cpp='$CPP $CPPFLAGS'
14210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14214 $as_echo_n "checking how to run the C preprocessor... " >&6; }
14215 # On Suns, sometimes $CPP names a directory.
14216 if test -n "$CPP" && test -d "$CPP"; then
14219 if test -z "$CPP"; then
14220 if ${ac_cv_prog_CPP+:} false; then :
14221 $as_echo_n "(cached) " >&6
14223 # Double quotes because CPP needs to be expanded
14224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14226 ac_preproc_ok=false
14227 for ac_c_preproc_warn_flag in '' yes
14229 # Use a header file that comes with gcc, so configuring glibc
14230 # with a fresh cross-compiler works.
14231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14232 # <limits.h> exists even on freestanding compilers.
14233 # On the NeXT, cc -E runs the code through the compiler's parser,
14234 # not just through cpp. "Syntax error" is here to catch this case.
14235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h. */
14238 # include <limits.h>
14240 # include <assert.h>
14244 if ac_fn_c_try_cpp "$LINENO"; then :
14247 # Broken: fails on valid input.
14250 rm -f conftest.err conftest.i conftest.$ac_ext
14252 # OK, works on sane cases. Now check whether nonexistent headers
14253 # can be detected and how.
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 #include <ac_nonexistent.h>
14258 if ac_fn_c_try_cpp "$LINENO"; then :
14259 # Broken: success on invalid input.
14262 # Passes both tests.
14266 rm -f conftest.err conftest.i conftest.$ac_ext
14269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14270 rm -f conftest.i conftest.err conftest.$ac_ext
14271 if $ac_preproc_ok; then :
14276 ac_cv_prog_CPP=$CPP
14279 CPP=$ac_cv_prog_CPP
14281 ac_cv_prog_CPP=$CPP
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14284 $as_echo "$CPP" >&6; }
14285 ac_preproc_ok=false
14286 for ac_c_preproc_warn_flag in '' yes
14288 # Use a header file that comes with gcc, so configuring glibc
14289 # with a fresh cross-compiler works.
14290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14291 # <limits.h> exists even on freestanding compilers.
14292 # On the NeXT, cc -E runs the code through the compiler's parser,
14293 # not just through cpp. "Syntax error" is here to catch this case.
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14297 # include <limits.h>
14299 # include <assert.h>
14303 if ac_fn_c_try_cpp "$LINENO"; then :
14306 # Broken: fails on valid input.
14309 rm -f conftest.err conftest.i conftest.$ac_ext
14311 # OK, works on sane cases. Now check whether nonexistent headers
14312 # can be detected and how.
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14315 #include <ac_nonexistent.h>
14317 if ac_fn_c_try_cpp "$LINENO"; then :
14318 # Broken: success on invalid input.
14321 # Passes both tests.
14325 rm -f conftest.err conftest.i conftest.$ac_ext
14328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14329 rm -f conftest.i conftest.err conftest.$ac_ext
14330 if $ac_preproc_ok; then :
14333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14335 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14336 See \`config.log' for more details" "$LINENO" 5; }
14340 ac_cpp='$CPP $CPPFLAGS'
14341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14345 CFLAGS="$CFLAGS -Wall"
14346 if test "$GCC" = yes
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
14349 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
14350 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
14351 $as_echo_n "(cached) " >&6
14354 gl_save_compiler_FLAGS="$CFLAGS"
14355 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14367 if ac_fn_c_try_compile "$LINENO"; then :
14368 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
14370 gl_cv_warn_c__Werror__Wunknown_warning_option=no
14372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373 CFLAGS="$gl_save_compiler_FLAGS"
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
14377 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
14378 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
14379 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
14381 gl_unknown_warnings_are_errors=
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -W" >&5
14386 $as_echo_n "checking whether C compiler handles -W... " >&6; }
14387 if ${gl_cv_warn_c__W+:} false; then :
14388 $as_echo_n "(cached) " >&6
14391 gl_save_compiler_FLAGS="$CFLAGS"
14392 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -W"
14393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394 /* end confdefs.h. */
14404 if ac_fn_c_try_compile "$LINENO"; then :
14405 gl_cv_warn_c__W=yes
14409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14410 CFLAGS="$gl_save_compiler_FLAGS"
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__W" >&5
14414 $as_echo "$gl_cv_warn_c__W" >&6; }
14415 if test "x$gl_cv_warn_c__W" = xyes; then :
14416 as_fn_append WARN_CFLAGS " -W"
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wpointer-arith" >&5
14422 $as_echo_n "checking whether C compiler handles -Wpointer-arith... " >&6; }
14423 if ${gl_cv_warn_c__Wpointer_arith+:} false; then :
14424 $as_echo_n "(cached) " >&6
14427 gl_save_compiler_FLAGS="$CFLAGS"
14428 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-arith"
14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14440 if ac_fn_c_try_compile "$LINENO"; then :
14441 gl_cv_warn_c__Wpointer_arith=yes
14443 gl_cv_warn_c__Wpointer_arith=no
14445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446 CFLAGS="$gl_save_compiler_FLAGS"
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wpointer_arith" >&5
14450 $as_echo "$gl_cv_warn_c__Wpointer_arith" >&6; }
14451 if test "x$gl_cv_warn_c__Wpointer_arith" = xyes; then :
14452 as_fn_append WARN_CFLAGS " -Wpointer-arith"
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wwrite-strings" >&5
14458 $as_echo_n "checking whether C compiler handles -Wwrite-strings... " >&6; }
14459 if ${gl_cv_warn_c__Wwrite_strings+:} false; then :
14460 $as_echo_n "(cached) " >&6
14463 gl_save_compiler_FLAGS="$CFLAGS"
14464 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings"
14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h. */
14476 if ac_fn_c_try_compile "$LINENO"; then :
14477 gl_cv_warn_c__Wwrite_strings=yes
14479 gl_cv_warn_c__Wwrite_strings=no
14481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14482 CFLAGS="$gl_save_compiler_FLAGS"
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wwrite_strings" >&5
14486 $as_echo "$gl_cv_warn_c__Wwrite_strings" >&6; }
14487 if test "x$gl_cv_warn_c__Wwrite_strings" = xyes; then :
14488 as_fn_append WARN_CFLAGS " -Wwrite-strings"
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wstrict-prototypes" >&5
14494 $as_echo_n "checking whether C compiler handles -Wstrict-prototypes... " >&6; }
14495 if ${gl_cv_warn_c__Wstrict_prototypes+:} false; then :
14496 $as_echo_n "(cached) " >&6
14499 gl_save_compiler_FLAGS="$CFLAGS"
14500 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstrict-prototypes"
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h. */
14512 if ac_fn_c_try_compile "$LINENO"; then :
14513 gl_cv_warn_c__Wstrict_prototypes=yes
14515 gl_cv_warn_c__Wstrict_prototypes=no
14517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 CFLAGS="$gl_save_compiler_FLAGS"
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wstrict_prototypes" >&5
14522 $as_echo "$gl_cv_warn_c__Wstrict_prototypes" >&6; }
14523 if test "x$gl_cv_warn_c__Wstrict_prototypes" = xyes; then :
14524 as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wshadow" >&5
14530 $as_echo_n "checking whether C compiler handles -Wshadow... " >&6; }
14531 if ${gl_cv_warn_c__Wshadow+:} false; then :
14532 $as_echo_n "(cached) " >&6
14535 gl_save_compiler_FLAGS="$CFLAGS"
14536 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wshadow"
14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14548 if ac_fn_c_try_compile "$LINENO"; then :
14549 gl_cv_warn_c__Wshadow=yes
14551 gl_cv_warn_c__Wshadow=no
14553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554 CFLAGS="$gl_save_compiler_FLAGS"
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wshadow" >&5
14558 $as_echo "$gl_cv_warn_c__Wshadow" >&6; }
14559 if test "x$gl_cv_warn_c__Wshadow" = xyes; then :
14560 as_fn_append WARN_CFLAGS " -Wshadow"
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-security" >&5
14566 $as_echo_n "checking whether C compiler handles -Wformat-security... " >&6; }
14567 if ${gl_cv_warn_c__Wformat_security+:} false; then :
14568 $as_echo_n "(cached) " >&6
14571 gl_save_compiler_FLAGS="$CFLAGS"
14572 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-security"
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14584 if ac_fn_c_try_compile "$LINENO"; then :
14585 gl_cv_warn_c__Wformat_security=yes
14587 gl_cv_warn_c__Wformat_security=no
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590 CFLAGS="$gl_save_compiler_FLAGS"
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_security" >&5
14594 $as_echo "$gl_cv_warn_c__Wformat_security" >&6; }
14595 if test "x$gl_cv_warn_c__Wformat_security" = xyes; then :
14596 as_fn_append WARN_CFLAGS " -Wformat-security"
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wredundant-decls" >&5
14602 $as_echo_n "checking whether C compiler handles -Wredundant-decls... " >&6; }
14603 if ${gl_cv_warn_c__Wredundant_decls+:} false; then :
14604 $as_echo_n "(cached) " >&6
14607 gl_save_compiler_FLAGS="$CFLAGS"
14608 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wredundant-decls"
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14620 if ac_fn_c_try_compile "$LINENO"; then :
14621 gl_cv_warn_c__Wredundant_decls=yes
14623 gl_cv_warn_c__Wredundant_decls=no
14625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14626 CFLAGS="$gl_save_compiler_FLAGS"
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wredundant_decls" >&5
14630 $as_echo "$gl_cv_warn_c__Wredundant_decls" >&6; }
14631 if test "x$gl_cv_warn_c__Wredundant_decls" = xyes; then :
14632 as_fn_append WARN_CFLAGS " -Wredundant-decls"
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
14638 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
14639 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
14640 $as_echo_n "(cached) " >&6
14643 gl_save_compiler_FLAGS="$CFLAGS"
14644 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-missing-field-initializers"
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14656 if ac_fn_c_try_compile "$LINENO"; then :
14657 gl_cv_warn_c__Wno_missing_field_initializers=yes
14659 gl_cv_warn_c__Wno_missing_field_initializers=no
14661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662 CFLAGS="$gl_save_compiler_FLAGS"
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
14666 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
14667 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
14668 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14674 $as_echo_n "checking whether ln -s works... " >&6; }
14676 if test "$LN_S" = "ln -s"; then
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14678 $as_echo "yes" >&6; }
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14681 $as_echo "no, using $LN_S" >&6; }
14691 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14692 if test -n "$ac_tool_prefix"; then
14693 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14694 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14696 $as_echo_n "checking for $ac_word... " >&6; }
14697 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14698 $as_echo_n "(cached) " >&6
14700 case $PKG_CONFIG in
14702 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14706 for as_dir in $PATH
14709 test -z "$as_dir" && as_dir=.
14710 for ac_exec_ext in '' $ac_executable_extensions; do
14711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14712 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14723 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14724 if test -n "$PKG_CONFIG"; then
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14726 $as_echo "$PKG_CONFIG" >&6; }
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14729 $as_echo "no" >&6; }
14734 if test -z "$ac_cv_path_PKG_CONFIG"; then
14735 ac_pt_PKG_CONFIG=$PKG_CONFIG
14736 # Extract the first word of "pkg-config", so it can be a program name with args.
14737 set dummy pkg-config; ac_word=$2
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14739 $as_echo_n "checking for $ac_word... " >&6; }
14740 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14741 $as_echo_n "(cached) " >&6
14743 case $ac_pt_PKG_CONFIG in
14745 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14749 for as_dir in $PATH
14752 test -z "$as_dir" && as_dir=.
14753 for ac_exec_ext in '' $ac_executable_extensions; do
14754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14755 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14766 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14767 if test -n "$ac_pt_PKG_CONFIG"; then
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14769 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772 $as_echo "no" >&6; }
14775 if test "x$ac_pt_PKG_CONFIG" = x; then
14778 case $cross_compiling:$ac_tool_warned in
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14782 ac_tool_warned=yes ;;
14784 PKG_CONFIG=$ac_pt_PKG_CONFIG
14787 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14791 if test -n "$PKG_CONFIG"; then
14792 _pkg_min_version=0.9.0
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14794 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14795 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14797 $as_echo "yes" >&6; }
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14800 $as_echo "no" >&6; }
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
14807 $as_echo_n "checking for CHECK... " >&6; }
14809 if test -n "$CHECK_CFLAGS"; then
14810 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
14811 elif test -n "$PKG_CONFIG"; then
14812 if test -n "$PKG_CONFIG" && \
14813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
14814 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
14816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14817 test $ac_status = 0; }; then
14818 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
14819 test "x$?" != "x0" && pkg_failed=yes
14826 if test -n "$CHECK_LIBS"; then
14827 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
14828 elif test -n "$PKG_CONFIG"; then
14829 if test -n "$PKG_CONFIG" && \
14830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
14831 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
14833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14834 test $ac_status = 0; }; then
14835 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
14836 test "x$?" != "x0" && pkg_failed=yes
14846 if test $pkg_failed = yes; then
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14848 $as_echo "no" >&6; }
14850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14851 _pkg_short_errors_supported=yes
14853 _pkg_short_errors_supported=no
14855 if test $_pkg_short_errors_supported = yes; then
14856 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
14858 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
14860 # Put the nasty error message in config.log where it belongs
14861 echo "$CHECK_PKG_ERRORS" >&5
14864 elif test $pkg_failed = untried; then
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14866 $as_echo "no" >&6; }
14869 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
14870 CHECK_LIBS=$pkg_cv_CHECK_LIBS
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14872 $as_echo "yes" >&6; }
14875 if test "x$run_tests" = xyes; then
14877 RUN_TESTS_FALSE='#'
14884 # Check for various header files and associated libraries.
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
14886 $as_echo_n "checking for library containing strerror... " >&6; }
14887 if ${ac_cv_search_strerror+:} false; then :
14888 $as_echo_n "(cached) " >&6
14890 ac_func_search_save_LIBS=$LIBS
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h. */
14894 /* Override any GCC internal prototype to avoid an error.
14895 Use char because int might match the return type of a GCC
14896 builtin and then its argument prototype would still apply. */
14904 return strerror ();
14909 for ac_lib in '' cposix; do
14910 if test -z "$ac_lib"; then
14911 ac_res="none required"
14914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14916 if ac_fn_c_try_link "$LINENO"; then :
14917 ac_cv_search_strerror=$ac_res
14919 rm -f core conftest.err conftest.$ac_objext \
14921 if ${ac_cv_search_strerror+:} false; then :
14925 if ${ac_cv_search_strerror+:} false; then :
14928 ac_cv_search_strerror=no
14930 rm conftest.$ac_ext
14931 LIBS=$ac_func_search_save_LIBS
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
14934 $as_echo "$ac_cv_search_strerror" >&6; }
14935 ac_res=$ac_cv_search_strerror
14936 if test "$ac_res" != no; then :
14937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14946 LIBC_FATAL_STDERR_=1
14947 export LIBC_FATAL_STDERR_
14949 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14950 if test "x$ac_cv_type_size_t" = xyes; then :
14954 cat >>confdefs.h <<_ACEOF
14955 #define size_t unsigned int
14960 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14961 # for constant arguments. Useless!
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14963 $as_echo_n "checking for working alloca.h... " >&6; }
14964 if ${ac_cv_working_alloca_h+:} false; then :
14965 $as_echo_n "(cached) " >&6
14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14969 #include <alloca.h>
14973 char *p = (char *) alloca (2 * sizeof (int));
14979 if ac_fn_c_try_link "$LINENO"; then :
14980 ac_cv_working_alloca_h=yes
14982 ac_cv_working_alloca_h=no
14984 rm -f core conftest.err conftest.$ac_objext \
14985 conftest$ac_exeext conftest.$ac_ext
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14988 $as_echo "$ac_cv_working_alloca_h" >&6; }
14989 if test $ac_cv_working_alloca_h = yes; then
14991 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14996 $as_echo_n "checking for alloca... " >&6; }
14997 if ${ac_cv_func_alloca_works+:} false; then :
14998 $as_echo_n "(cached) " >&6
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15003 # define alloca __builtin_alloca
15006 # include <malloc.h>
15007 # define alloca _alloca
15009 # ifdef HAVE_ALLOCA_H
15010 # include <alloca.h>
15015 # ifndef alloca /* predefined by HP cc +Olibcalls */
15016 void *alloca (size_t);
15026 char *p = (char *) alloca (1);
15032 if ac_fn_c_try_link "$LINENO"; then :
15033 ac_cv_func_alloca_works=yes
15035 ac_cv_func_alloca_works=no
15037 rm -f core conftest.err conftest.$ac_objext \
15038 conftest$ac_exeext conftest.$ac_ext
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15041 $as_echo "$ac_cv_func_alloca_works" >&6; }
15043 if test $ac_cv_func_alloca_works = yes; then
15045 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15048 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15049 # that cause trouble. Some versions do not even contain alloca or
15050 # contain a buggy version. If you still want to use their alloca,
15051 # use ar to extract alloca.o from them instead of compiling alloca.c.
15057 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15059 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15063 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15064 if ${ac_cv_os_cray+:} false; then :
15065 $as_echo_n "(cached) " >&6
15067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h. */
15069 #if defined CRAY && ! defined CRAY2
15076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15077 $EGREP "webecray" >/dev/null 2>&1; then :
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15086 $as_echo "$ac_cv_os_cray" >&6; }
15087 if test $ac_cv_os_cray = yes; then
15088 for ac_func in _getb67 GETB67 getb67; do
15089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15090 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15091 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15093 cat >>confdefs.h <<_ACEOF
15094 #define CRAY_STACKSEG_END $ac_func
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15104 $as_echo_n "checking stack direction for C alloca... " >&6; }
15105 if ${ac_cv_c_stack_direction+:} false; then :
15106 $as_echo_n "(cached) " >&6
15108 if test "$cross_compiling" = yes; then :
15109 ac_cv_c_stack_direction=0
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15113 $ac_includes_default
15115 find_stack_direction (int *addr, int depth)
15117 int dir, dummy = 0;
15120 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15121 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15122 return dir + dummy;
15126 main (int argc, char **argv)
15128 return find_stack_direction (0, argc + !argv + 20) < 0;
15131 if ac_fn_c_try_run "$LINENO"; then :
15132 ac_cv_c_stack_direction=1
15134 ac_cv_c_stack_direction=-1
15136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15137 conftest.$ac_objext conftest.beam conftest.$ac_ext
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15142 $as_echo "$ac_cv_c_stack_direction" >&6; }
15143 cat >>confdefs.h <<_ACEOF
15144 #define STACK_DIRECTION $ac_cv_c_stack_direction
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15153 $as_echo_n "checking whether // is distinct from /... " >&6; }
15154 if ${gl_cv_double_slash_root+:} false; then :
15155 $as_echo_n "(cached) " >&6
15157 if test x"$cross_compiling" = xyes ; then
15158 # When cross-compiling, there is no way to tell whether // is special
15159 # short of a list of hosts. However, the only known hosts to date
15160 # that have a distinct // are Apollo DomainOS (too old to port to),
15161 # Cygwin, and z/OS. If anyone knows of another system for which // has
15162 # special semantics and is distinct from /, please report it to
15163 # <bug-gnulib@gnu.org>.
15165 *-cygwin | i370-ibm-openedition)
15166 gl_cv_double_slash_root=yes ;;
15168 # Be optimistic and assume that / and // are the same when we
15170 gl_cv_double_slash_root='unknown, assuming no' ;;
15173 set x `ls -di / // 2>/dev/null`
15174 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
15175 gl_cv_double_slash_root=no
15177 gl_cv_double_slash_root=yes
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15182 $as_echo "$gl_cv_double_slash_root" >&6; }
15183 if test "$gl_cv_double_slash_root" = yes; then
15185 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15201 GNULIB_EUIDACCESS=0;
15202 GNULIB_FACCESSAT=0;
15205 GNULIB_FDATASYNC=0;
15207 GNULIB_FTRUNCATE=0;
15209 GNULIB_GETDOMAINNAME=0;
15210 GNULIB_GETDTABLESIZE=0;
15211 GNULIB_GETGROUPS=0;
15212 GNULIB_GETHOSTNAME=0;
15214 GNULIB_GETLOGIN_R=0;
15215 GNULIB_GETPAGESIZE=0;
15216 GNULIB_GETUSERSHELL=0;
15217 GNULIB_GROUP_MEMBER=0;
15229 GNULIB_READLINKAT=0;
15231 GNULIB_SETHOSTNAME=0;
15234 GNULIB_SYMLINKAT=0;
15235 GNULIB_TTYNAME_R=0;
15236 GNULIB_UNISTD_H_NONBLOCKING=0;
15237 GNULIB_UNISTD_H_SIGPIPE=0;
15252 HAVE_GETDTABLESIZE=1;
15254 HAVE_GETHOSTNAME=1;
15256 HAVE_GETPAGESIZE=1;
15257 HAVE_GROUP_MEMBER=1;
15267 HAVE_SETHOSTNAME=1;
15273 HAVE_DECL_ENVIRON=1;
15274 HAVE_DECL_FCHDIR=1;
15275 HAVE_DECL_FDATASYNC=1;
15276 HAVE_DECL_GETDOMAINNAME=1;
15277 HAVE_DECL_GETLOGIN_R=1;
15278 HAVE_DECL_GETPAGESIZE=1;
15279 HAVE_DECL_GETUSERSHELL=1;
15280 HAVE_DECL_SETHOSTNAME=1;
15281 HAVE_DECL_TTYNAME_R=1;
15283 HAVE_SYS_PARAM_H=0;
15288 REPLACE_FCHOWNAT=0;
15289 REPLACE_FTRUNCATE=0;
15291 REPLACE_GETDOMAINNAME=0;
15292 REPLACE_GETLOGIN_R=0;
15293 REPLACE_GETGROUPS=0;
15294 REPLACE_GETPAGESIZE=0;
15303 REPLACE_READLINK=0;
15307 REPLACE_TTYNAME_R=0;
15309 REPLACE_UNLINKAT=0;
15312 UNISTD_H_HAVE_WINSOCK2_H=0;
15313 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15320 for ac_header in $gl_header_list
15322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15323 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15324 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15325 cat >>confdefs.h <<_ACEOF
15326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
15351 $as_echo_n "checking if environ is properly declared... " >&6; }
15352 if ${gt_cv_var_environ_declaration+:} false; then :
15353 $as_echo_n "(cached) " >&6
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15359 #include <unistd.h>
15361 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
15362 #include <stdlib.h>
15364 extern struct { int foo; } environ;
15373 if ac_fn_c_try_compile "$LINENO"; then :
15374 gt_cv_var_environ_declaration=no
15376 gt_cv_var_environ_declaration=yes
15378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
15382 $as_echo "$gt_cv_var_environ_declaration" >&6; }
15383 if test $gt_cv_var_environ_declaration = yes; then
15385 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
15390 if test $gt_cv_var_environ_declaration != yes; then
15391 HAVE_DECL_ENVIRON=0
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15397 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15398 if ${gl_cv_have_include_next+:} false; then :
15399 $as_echo_n "(cached) " >&6
15401 rm -rf conftestd1a conftestd1b conftestd2
15402 mkdir conftestd1a conftestd1b conftestd2
15403 cat <<EOF > conftestd1a/conftest.h
15404 #define DEFINED_IN_CONFTESTD1
15405 #include_next <conftest.h>
15406 #ifdef DEFINED_IN_CONFTESTD2
15409 #error "include_next doesn't work"
15412 cat <<EOF > conftestd1b/conftest.h
15413 #define DEFINED_IN_CONFTESTD1
15415 #include_next <conftest.h>
15416 #ifdef DEFINED_IN_CONFTESTD2
15419 #error "include_next doesn't work"
15422 cat <<EOF > conftestd2/conftest.h
15423 #ifndef DEFINED_IN_CONFTESTD1
15424 #error "include_next test doesn't work"
15426 #define DEFINED_IN_CONFTESTD2
15428 gl_save_CPPFLAGS="$CPPFLAGS"
15429 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h. */
15432 #include <conftest.h>
15434 if ac_fn_c_try_compile "$LINENO"; then :
15435 gl_cv_have_include_next=yes
15437 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15440 #include <conftest.h>
15442 if ac_fn_c_try_compile "$LINENO"; then :
15443 gl_cv_have_include_next=buggy
15445 gl_cv_have_include_next=no
15447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15451 CPPFLAGS="$gl_save_CPPFLAGS"
15452 rm -rf conftestd1a conftestd1b conftestd2
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15456 $as_echo "$gl_cv_have_include_next" >&6; }
15457 PRAGMA_SYSTEM_HEADER=
15458 if test $gl_cv_have_include_next = yes; then
15459 INCLUDE_NEXT=include_next
15460 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15461 if test -n "$GCC"; then
15462 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15465 if test $gl_cv_have_include_next = buggy; then
15466 INCLUDE_NEXT=include
15467 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15469 INCLUDE_NEXT=include
15470 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15477 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15478 if ${gl_cv_pragma_columns+:} false; then :
15479 $as_echo_n "(cached) " >&6
15481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15482 /* end confdefs.h. */
15489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15490 $EGREP "choke me" >/dev/null 2>&1; then :
15491 gl_cv_pragma_columns=yes
15493 gl_cv_pragma_columns=no
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15500 $as_echo "$gl_cv_pragma_columns" >&6; }
15501 if test $gl_cv_pragma_columns = yes; then
15502 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
15511 $as_echo_n "checking for complete errno.h... " >&6; }
15512 if ${gl_cv_header_errno_h_complete+:} false; then :
15513 $as_echo_n "(cached) " >&6
15516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15517 /* end confdefs.h. */
15520 #if !defined ETXTBSY
15523 #if !defined ENOMSG
15529 #if !defined ENOLINK
15532 #if !defined EPROTO
15535 #if !defined EMULTIHOP
15538 #if !defined EBADMSG
15541 #if !defined EOVERFLOW
15544 #if !defined ENOTSUP
15547 #if !defined ENETRESET
15550 #if !defined ECONNABORTED
15553 #if !defined ESTALE
15556 #if !defined EDQUOT
15559 #if !defined ECANCELED
15562 #if !defined EOWNERDEAD
15565 #if !defined ENOTRECOVERABLE
15568 #if !defined EILSEQ
15573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15574 $EGREP "booboo" >/dev/null 2>&1; then :
15575 gl_cv_header_errno_h_complete=no
15577 gl_cv_header_errno_h_complete=yes
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
15584 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
15585 if test $gl_cv_header_errno_h_complete = yes; then
15596 if test $gl_cv_have_include_next = yes; then
15597 gl_cv_next_errno_h='<'errno.h'>'
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
15600 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
15601 if ${gl_cv_next_errno_h+:} false; then :
15602 $as_echo_n "(cached) " >&6
15605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606 /* end confdefs.h. */
15611 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15612 *) gl_absname_cpp="$ac_cpp" ;;
15617 gl_dirsep_regex='[/\\]'
15620 gl_dirsep_regex='\/'
15623 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15625 gl_header_literal_regex=`echo 'errno.h' \
15626 | sed -e "$gl_make_literal_regex_sed"`
15627 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15628 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15633 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15634 sed -n "$gl_absolute_header_sed"`'"'
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
15639 $as_echo "$gl_cv_next_errno_h" >&6; }
15641 NEXT_ERRNO_H=$gl_cv_next_errno_h
15643 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15644 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15645 gl_next_as_first_directive='<'errno.h'>'
15647 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15648 gl_next_as_first_directive=$gl_cv_next_errno_h
15650 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
15658 if test -n "$ERRNO_H"; then
15659 GL_GENERATE_ERRNO_H_TRUE=
15660 GL_GENERATE_ERRNO_H_FALSE='#'
15662 GL_GENERATE_ERRNO_H_TRUE='#'
15663 GL_GENERATE_ERRNO_H_FALSE=
15667 if test -n "$ERRNO_H"; then
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
15669 $as_echo_n "checking for EMULTIHOP value... " >&6; }
15670 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
15671 $as_echo_n "(cached) " >&6
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15684 $EGREP "yes" >/dev/null 2>&1; then :
15685 gl_cv_header_errno_h_EMULTIHOP=yes
15687 gl_cv_header_errno_h_EMULTIHOP=no
15691 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
15692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693 /* end confdefs.h. */
15695 #define _XOPEN_SOURCE_EXTENDED 1
15702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15703 $EGREP "yes" >/dev/null 2>&1; then :
15704 gl_cv_header_errno_h_EMULTIHOP=hidden
15708 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
15709 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
15710 #define _XOPEN_SOURCE_EXTENDED 1
15712 /* The following two lines are a workaround against an autoconf-2.52 bug. */
15714 #include <stdlib.h>
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
15724 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
15725 case $gl_cv_header_errno_h_EMULTIHOP in
15727 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
15730 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
15738 if test -n "$ERRNO_H"; then
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
15740 $as_echo_n "checking for ENOLINK value... " >&6; }
15741 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
15742 $as_echo_n "(cached) " >&6
15745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h. */
15754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15755 $EGREP "yes" >/dev/null 2>&1; then :
15756 gl_cv_header_errno_h_ENOLINK=yes
15758 gl_cv_header_errno_h_ENOLINK=no
15762 if test $gl_cv_header_errno_h_ENOLINK = no; then
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15766 #define _XOPEN_SOURCE_EXTENDED 1
15773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15774 $EGREP "yes" >/dev/null 2>&1; then :
15775 gl_cv_header_errno_h_ENOLINK=hidden
15779 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
15780 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
15781 #define _XOPEN_SOURCE_EXTENDED 1
15783 /* The following two lines are a workaround against an autoconf-2.52 bug. */
15785 #include <stdlib.h>
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
15795 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
15796 case $gl_cv_header_errno_h_ENOLINK in
15798 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
15801 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
15809 if test -n "$ERRNO_H"; then
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
15811 $as_echo_n "checking for EOVERFLOW value... " >&6; }
15812 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
15813 $as_echo_n "(cached) " >&6
15816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15817 /* end confdefs.h. */
15825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15826 $EGREP "yes" >/dev/null 2>&1; then :
15827 gl_cv_header_errno_h_EOVERFLOW=yes
15829 gl_cv_header_errno_h_EOVERFLOW=no
15833 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
15834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835 /* end confdefs.h. */
15837 #define _XOPEN_SOURCE_EXTENDED 1
15844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15845 $EGREP "yes" >/dev/null 2>&1; then :
15846 gl_cv_header_errno_h_EOVERFLOW=hidden
15850 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
15851 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
15852 #define _XOPEN_SOURCE_EXTENDED 1
15854 /* The following two lines are a workaround against an autoconf-2.52 bug. */
15856 #include <stdlib.h>
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
15866 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
15867 case $gl_cv_header_errno_h_EOVERFLOW in
15869 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
15872 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
15880 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
15881 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
15887 cat >>confdefs.h <<_ACEOF
15888 #define HAVE_DECL_STRERROR_R $ac_have_decl
15891 for ac_func in strerror_r
15893 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15894 if test "x$ac_cv_func_strerror_r" = xyes; then :
15895 cat >>confdefs.h <<_ACEOF
15896 #define HAVE_STRERROR_R 1
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15903 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
15904 if ${ac_cv_func_strerror_r_char_p+:} false; then :
15905 $as_echo_n "(cached) " >&6
15908 ac_cv_func_strerror_r_char_p=no
15909 if test $ac_cv_have_decl_strerror_r = yes; then
15910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911 /* end confdefs.h. */
15912 $ac_includes_default
15918 char x = *strerror_r (0, buf, sizeof buf);
15919 char *p = strerror_r (0, buf, sizeof buf);
15926 if ac_fn_c_try_compile "$LINENO"; then :
15927 ac_cv_func_strerror_r_char_p=yes
15929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15931 # strerror_r is not declared. Choose between
15932 # systems that have relatively inaccessible declarations for the
15933 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15934 # former has a strerror_r that returns char*, while the latter
15935 # has a strerror_r that returns `int'.
15936 # This test should segfault on the DEC system.
15937 if test "$cross_compiling" = yes; then :
15940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h. */
15942 $ac_includes_default
15943 extern char *strerror_r ();
15948 char x = *strerror_r (0, buf, sizeof buf);
15949 return ! isalpha (x);
15954 if ac_fn_c_try_run "$LINENO"; then :
15955 ac_cv_func_strerror_r_char_p=yes
15957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15958 conftest.$ac_objext conftest.beam conftest.$ac_ext
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
15965 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
15966 if test $ac_cv_func_strerror_r_char_p = yes; then
15968 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
15973 XGETTEXT_EXTRA_OPTIONS=
15979 if test "X$prefix" = "XNONE"; then
15980 acl_final_prefix="$ac_default_prefix"
15982 acl_final_prefix="$prefix"
15984 if test "X$exec_prefix" = "XNONE"; then
15985 acl_final_exec_prefix='${prefix}'
15987 acl_final_exec_prefix="$exec_prefix"
15989 acl_save_prefix="$prefix"
15990 prefix="$acl_final_prefix"
15991 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15992 prefix="$acl_save_prefix"
15996 # Check whether --with-gnu-ld was given.
15997 if test "${with_gnu_ld+set}" = set; then :
15998 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16003 # Prepare PATH_SEPARATOR.
16004 # The user is always right.
16005 if test "${PATH_SEPARATOR+set}" != set; then
16006 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16007 # contains only /bin. Note that ksh looks also at the FPATH variable,
16008 # so we have to set that as well for the test.
16010 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16011 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16012 || PATH_SEPARATOR=';'
16017 if test "$GCC" = yes; then
16018 # Check if gcc -print-prog-name=ld gives a path.
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16020 $as_echo_n "checking for ld used by $CC... " >&6; }
16023 # gcc leaves a trailing carriage return which upsets mingw
16024 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16026 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16029 # Accept absolute paths.
16031 re_direlt='/[^/][^/]*/\.\./'
16032 # Canonicalize the pathname of ld
16033 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
16034 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
16035 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16037 test -z "$LD" && LD="$ac_prog"
16040 # If it fails, then pretend we aren't using GCC.
16044 # If it is relative, then search for the first ld in PATH.
16045 with_gnu_ld=unknown
16048 elif test "$with_gnu_ld" = yes; then
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16050 $as_echo_n "checking for GNU ld... " >&6; }
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16053 $as_echo_n "checking for non-GNU ld... " >&6; }
16055 if ${acl_cv_path_LD+:} false; then :
16056 $as_echo_n "(cached) " >&6
16058 if test -z "$LD"; then
16059 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16060 for ac_dir in $PATH; do
16061 IFS="$acl_save_ifs"
16062 test -z "$ac_dir" && ac_dir=.
16063 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16064 acl_cv_path_LD="$ac_dir/$ac_prog"
16065 # Check to see if the program is GNU ld. I'd rather use --version,
16066 # but apparently some variants of GNU ld only accept -v.
16067 # Break only if it was the GNU/non-GNU ld that we prefer.
16068 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
16069 *GNU* | *'with BFD'*)
16070 test "$with_gnu_ld" != no && break
16073 test "$with_gnu_ld" != yes && break
16078 IFS="$acl_save_ifs"
16080 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16084 LD="$acl_cv_path_LD"
16085 if test -n "$LD"; then
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16087 $as_echo "$LD" >&6; }
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16090 $as_echo "no" >&6; }
16092 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16094 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16095 if ${acl_cv_prog_gnu_ld+:} false; then :
16096 $as_echo_n "(cached) " >&6
16098 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16099 case `$LD -v 2>&1 </dev/null` in
16100 *GNU* | *'with BFD'*)
16101 acl_cv_prog_gnu_ld=yes
16104 acl_cv_prog_gnu_ld=no
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16109 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16110 with_gnu_ld=$acl_cv_prog_gnu_ld
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16116 $as_echo_n "checking for shared library run path origin... " >&6; }
16117 if ${acl_cv_rpath+:} false; then :
16118 $as_echo_n "(cached) " >&6
16121 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16122 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16124 rm -f ./conftest.sh
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16129 $as_echo "$acl_cv_rpath" >&6; }
16131 acl_libext="$acl_cv_libext"
16132 acl_shlibext="$acl_cv_shlibext"
16133 acl_libname_spec="$acl_cv_libname_spec"
16134 acl_library_names_spec="$acl_cv_library_names_spec"
16135 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16136 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16137 acl_hardcode_direct="$acl_cv_hardcode_direct"
16138 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16139 # Check whether --enable-rpath was given.
16140 if test "${enable_rpath+set}" = set; then :
16141 enableval=$enable_rpath; :
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16154 $as_echo_n "checking for 64-bit host... " >&6; }
16155 if ${gl_cv_solaris_64bit+:} false; then :
16156 $as_echo_n "(cached) " >&6
16158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h. */
16166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16167 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16168 gl_cv_solaris_64bit=yes
16170 gl_cv_solaris_64bit=no
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16177 $as_echo "$gl_cv_solaris_64bit" >&6; }
16178 if test $gl_cv_solaris_64bit = yes; then
16179 acl_libdirstem=lib/64
16180 case "$host_cpu" in
16181 sparc*) acl_libdirstem2=lib/sparcv9 ;;
16182 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16187 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16188 if test -n "$searchpath"; then
16189 acl_save_IFS="${IFS= }"; IFS=":"
16190 for searchdir in $searchpath; do
16191 if test -d "$searchdir"; then
16192 case "$searchdir" in
16193 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16195 # Better ignore directories of this form. They are misleading.
16197 *) searchdir=`cd "$searchdir" && pwd`
16198 case "$searchdir" in
16199 */lib64 ) acl_libdirstem=lib64 ;;
16204 IFS="$acl_save_IFS"
16208 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16212 gl_threads_api=none
16217 if test "$gl_use_threads" != no; then
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16219 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16220 if ${gl_cv_have_weak+:} false; then :
16221 $as_echo_n "(cached) " >&6
16224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16225 /* end confdefs.h. */
16226 extern void xyzzy ();
16236 if ac_fn_c_try_link "$LINENO"; then :
16237 gl_cv_have_weak=maybe
16239 rm -f core conftest.err conftest.$ac_objext \
16240 conftest$ac_exeext conftest.$ac_ext
16241 if test $gl_cv_have_weak = maybe; then
16242 if test "$cross_compiling" = yes; then :
16243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h. */
16246 Extensible Linking Format
16250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16251 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
16252 gl_cv_have_weak="guessing yes"
16254 gl_cv_have_weak="guessing no"
16260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16261 /* end confdefs.h. */
16267 return (fputs == NULL);
16270 if ac_fn_c_try_run "$LINENO"; then :
16271 gl_cv_have_weak=yes
16275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16276 conftest.$ac_objext conftest.beam conftest.$ac_ext
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16283 $as_echo "$gl_cv_have_weak" >&6; }
16284 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16285 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16286 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16287 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16288 if test "x$ac_cv_header_pthread_h" = xyes; then :
16289 gl_have_pthread_h=yes
16291 gl_have_pthread_h=no
16295 if test "$gl_have_pthread_h" = yes; then
16296 # Other possible tests:
16297 # -lpthreads (FSU threads, PCthreads)
16300 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16301 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16302 # the second one only in libpthread, and lock.c needs it.
16303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16304 /* end confdefs.h. */
16305 #include <pthread.h>
16309 pthread_mutex_lock((pthread_mutex_t*)0);
16310 pthread_mutexattr_init((pthread_mutexattr_t*)0);
16315 if ac_fn_c_try_link "$LINENO"; then :
16316 gl_have_pthread=yes
16318 rm -f core conftest.err conftest.$ac_objext \
16319 conftest$ac_exeext conftest.$ac_ext
16320 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16321 # since it is defined as a macro on OSF/1.)
16322 if test -n "$gl_have_pthread"; then
16323 # The program links fine without libpthread. But it may actually
16324 # need to link with libpthread in order to create multiple threads.
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16326 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16327 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16328 $as_echo_n "(cached) " >&6
16330 ac_check_lib_save_LIBS=$LIBS
16331 LIBS="-lpthread $LIBS"
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16335 /* Override any GCC internal prototype to avoid an error.
16336 Use char because int might match the return type of a GCC
16337 builtin and then its argument prototype would still apply. */
16341 char pthread_kill ();
16345 return pthread_kill ();
16350 if ac_fn_c_try_link "$LINENO"; then :
16351 ac_cv_lib_pthread_pthread_kill=yes
16353 ac_cv_lib_pthread_pthread_kill=no
16355 rm -f core conftest.err conftest.$ac_objext \
16356 conftest$ac_exeext conftest.$ac_ext
16357 LIBS=$ac_check_lib_save_LIBS
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16360 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16361 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16362 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16363 # On Solaris and HP-UX, most pthread functions exist also in libc.
16364 # Therefore pthread_in_use() needs to actually try to create a
16365 # thread: pthread_create from libc will fail, whereas
16366 # pthread_create will actually create a thread.
16370 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
16377 # Some library is needed. Try libpthread and libc_r.
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16379 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16380 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16381 $as_echo_n "(cached) " >&6
16383 ac_check_lib_save_LIBS=$LIBS
16384 LIBS="-lpthread $LIBS"
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16388 /* Override any GCC internal prototype to avoid an error.
16389 Use char because int might match the return type of a GCC
16390 builtin and then its argument prototype would still apply. */
16394 char pthread_kill ();
16398 return pthread_kill ();
16403 if ac_fn_c_try_link "$LINENO"; then :
16404 ac_cv_lib_pthread_pthread_kill=yes
16406 ac_cv_lib_pthread_pthread_kill=no
16408 rm -f core conftest.err conftest.$ac_objext \
16409 conftest$ac_exeext conftest.$ac_ext
16410 LIBS=$ac_check_lib_save_LIBS
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16413 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16414 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16415 gl_have_pthread=yes
16416 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
16417 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16420 if test -z "$gl_have_pthread"; then
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
16423 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
16424 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
16425 $as_echo_n "(cached) " >&6
16427 ac_check_lib_save_LIBS=$LIBS
16429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430 /* end confdefs.h. */
16432 /* Override any GCC internal prototype to avoid an error.
16433 Use char because int might match the return type of a GCC
16434 builtin and then its argument prototype would still apply. */
16438 char pthread_kill ();
16442 return pthread_kill ();
16447 if ac_fn_c_try_link "$LINENO"; then :
16448 ac_cv_lib_c_r_pthread_kill=yes
16450 ac_cv_lib_c_r_pthread_kill=no
16452 rm -f core conftest.err conftest.$ac_objext \
16453 conftest$ac_exeext conftest.$ac_ext
16454 LIBS=$ac_check_lib_save_LIBS
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
16457 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
16458 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
16459 gl_have_pthread=yes
16460 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
16461 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
16466 if test -n "$gl_have_pthread"; then
16467 gl_threads_api=posix
16469 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
16471 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16472 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16474 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
16483 if test -z "$gl_have_pthread"; then
16484 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
16485 gl_have_solaristhread=
16486 gl_save_LIBS="$LIBS"
16487 LIBS="$LIBS -lthread"
16488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16489 /* end confdefs.h. */
16491 #include <thread.h>
16502 if ac_fn_c_try_link "$LINENO"; then :
16503 gl_have_solaristhread=yes
16505 rm -f core conftest.err conftest.$ac_objext \
16506 conftest$ac_exeext conftest.$ac_ext
16507 LIBS="$gl_save_LIBS"
16508 if test -n "$gl_have_solaristhread"; then
16509 gl_threads_api=solaris
16511 LTLIBTHREAD=-lthread
16512 LIBMULTITHREAD="$LIBTHREAD"
16513 LTLIBMULTITHREAD="$LTLIBTHREAD"
16515 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
16517 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16519 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
16527 if test "$gl_use_threads" = pth; then
16528 gl_save_CPPFLAGS="$CPPFLAGS"
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
16535 $as_echo_n "checking how to link with libpth... " >&6; }
16536 if ${ac_cv_libpth_libs+:} false; then :
16537 $as_echo_n "(cached) " >&6
16549 acl_save_prefix="$prefix"
16550 prefix="$acl_final_prefix"
16551 acl_save_exec_prefix="$exec_prefix"
16552 exec_prefix="$acl_final_exec_prefix"
16554 eval additional_includedir=\"$includedir\"
16555 eval additional_libdir=\"$libdir\"
16557 exec_prefix="$acl_save_exec_prefix"
16558 prefix="$acl_save_prefix"
16561 # Check whether --with-libpth-prefix was given.
16562 if test "${with_libpth_prefix+set}" = set; then :
16563 withval=$with_libpth_prefix;
16564 if test "X$withval" = "Xno"; then
16567 if test "X$withval" = "X"; then
16569 acl_save_prefix="$prefix"
16570 prefix="$acl_final_prefix"
16571 acl_save_exec_prefix="$exec_prefix"
16572 exec_prefix="$acl_final_exec_prefix"
16574 eval additional_includedir=\"$includedir\"
16575 eval additional_libdir=\"$libdir\"
16577 exec_prefix="$acl_save_exec_prefix"
16578 prefix="$acl_save_prefix"
16581 additional_includedir="$withval/include"
16582 additional_libdir="$withval/$acl_libdirstem"
16583 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16584 && ! test -d "$withval/$acl_libdirstem"; then
16585 additional_libdir="$withval/$acl_libdirstem2"
16599 names_already_handled=
16600 names_next_round='pth '
16601 while test -n "$names_next_round"; do
16602 names_this_round="$names_next_round"
16604 for name in $names_this_round; do
16606 for n in $names_already_handled; do
16607 if test "$n" = "$name"; then
16608 already_handled=yes
16612 if test -z "$already_handled"; then
16613 names_already_handled="$names_already_handled $name"
16614 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16615 eval value=\"\$HAVE_LIB$uppername\"
16616 if test -n "$value"; then
16617 if test "$value" = yes; then
16618 eval value=\"\$LIB$uppername\"
16619 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
16620 eval value=\"\$LTLIB$uppername\"
16621 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
16630 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16631 if test -n "$acl_shlibext"; then
16632 shrext=".$acl_shlibext" # typically: shrext=.so
16636 if test $use_additional = yes; then
16637 dir="$additional_libdir"
16638 if test -n "$acl_shlibext"; then
16639 if test -f "$dir/$libname$shrext"; then
16641 found_so="$dir/$libname$shrext"
16643 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16644 ver=`(cd "$dir" && \
16645 for f in "$libname$shrext".*; do echo "$f"; done \
16646 | sed -e "s,^$libname$shrext\\\\.,," \
16647 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16648 | sed 1q ) 2>/dev/null`
16649 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16651 found_so="$dir/$libname$shrext.$ver"
16654 eval library_names=\"$acl_library_names_spec\"
16655 for f in $library_names; do
16656 if test -f "$dir/$f"; then
16665 if test "X$found_dir" = "X"; then
16666 if test -f "$dir/$libname.$acl_libext"; then
16668 found_a="$dir/$libname.$acl_libext"
16671 if test "X$found_dir" != "X"; then
16672 if test -f "$dir/$libname.la"; then
16673 found_la="$dir/$libname.la"
16677 if test "X$found_dir" = "X"; then
16678 for x in $LDFLAGS $LTLIBPTH; do
16680 acl_save_prefix="$prefix"
16681 prefix="$acl_final_prefix"
16682 acl_save_exec_prefix="$exec_prefix"
16683 exec_prefix="$acl_final_exec_prefix"
16685 exec_prefix="$acl_save_exec_prefix"
16686 prefix="$acl_save_prefix"
16690 dir=`echo "X$x" | sed -e 's/^X-L//'`
16691 if test -n "$acl_shlibext"; then
16692 if test -f "$dir/$libname$shrext"; then
16694 found_so="$dir/$libname$shrext"
16696 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16697 ver=`(cd "$dir" && \
16698 for f in "$libname$shrext".*; do echo "$f"; done \
16699 | sed -e "s,^$libname$shrext\\\\.,," \
16700 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16701 | sed 1q ) 2>/dev/null`
16702 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16704 found_so="$dir/$libname$shrext.$ver"
16707 eval library_names=\"$acl_library_names_spec\"
16708 for f in $library_names; do
16709 if test -f "$dir/$f"; then
16718 if test "X$found_dir" = "X"; then
16719 if test -f "$dir/$libname.$acl_libext"; then
16721 found_a="$dir/$libname.$acl_libext"
16724 if test "X$found_dir" != "X"; then
16725 if test -f "$dir/$libname.la"; then
16726 found_la="$dir/$libname.la"
16731 if test "X$found_dir" != "X"; then
16736 if test "X$found_dir" != "X"; then
16737 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
16738 if test "X$found_so" != "X"; then
16739 if test "$enable_rpath" = no \
16740 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16741 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16742 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16745 for x in $ltrpathdirs; do
16746 if test "X$x" = "X$found_dir"; then
16751 if test -z "$haveit"; then
16752 ltrpathdirs="$ltrpathdirs $found_dir"
16754 if test "$acl_hardcode_direct" = yes; then
16755 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16757 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16758 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16760 for x in $rpathdirs; do
16761 if test "X$x" = "X$found_dir"; then
16766 if test -z "$haveit"; then
16767 rpathdirs="$rpathdirs $found_dir"
16771 for x in $LDFLAGS $LIBPTH; do
16773 acl_save_prefix="$prefix"
16774 prefix="$acl_final_prefix"
16775 acl_save_exec_prefix="$exec_prefix"
16776 exec_prefix="$acl_final_exec_prefix"
16778 exec_prefix="$acl_save_exec_prefix"
16779 prefix="$acl_save_prefix"
16781 if test "X$x" = "X-L$found_dir"; then
16786 if test -z "$haveit"; then
16787 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
16789 if test "$acl_hardcode_minus_L" != no; then
16790 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16792 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
16798 if test "X$found_a" != "X"; then
16799 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
16801 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
16804 additional_includedir=
16805 case "$found_dir" in
16806 */$acl_libdirstem | */$acl_libdirstem/)
16807 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16808 if test "$name" = 'pth'; then
16809 LIBPTH_PREFIX="$basedir"
16811 additional_includedir="$basedir/include"
16813 */$acl_libdirstem2 | */$acl_libdirstem2/)
16814 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16815 if test "$name" = 'pth'; then
16816 LIBPTH_PREFIX="$basedir"
16818 additional_includedir="$basedir/include"
16821 if test "X$additional_includedir" != "X"; then
16822 if test "X$additional_includedir" != "X/usr/include"; then
16824 if test "X$additional_includedir" = "X/usr/local/include"; then
16825 if test -n "$GCC"; then
16827 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16831 if test -z "$haveit"; then
16832 for x in $CPPFLAGS $INCPTH; do
16834 acl_save_prefix="$prefix"
16835 prefix="$acl_final_prefix"
16836 acl_save_exec_prefix="$exec_prefix"
16837 exec_prefix="$acl_final_exec_prefix"
16839 exec_prefix="$acl_save_exec_prefix"
16840 prefix="$acl_save_prefix"
16842 if test "X$x" = "X-I$additional_includedir"; then
16847 if test -z "$haveit"; then
16848 if test -d "$additional_includedir"; then
16849 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
16855 if test -n "$found_la"; then
16856 save_libdir="$libdir"
16857 case "$found_la" in
16858 */* | *\\*) . "$found_la" ;;
16859 *) . "./$found_la" ;;
16861 libdir="$save_libdir"
16862 for dep in $dependency_libs; do
16865 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16866 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16867 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16869 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16870 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16871 if test -n "$GCC"; then
16873 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16877 if test -z "$haveit"; then
16879 for x in $LDFLAGS $LIBPTH; do
16881 acl_save_prefix="$prefix"
16882 prefix="$acl_final_prefix"
16883 acl_save_exec_prefix="$exec_prefix"
16884 exec_prefix="$acl_final_exec_prefix"
16886 exec_prefix="$acl_save_exec_prefix"
16887 prefix="$acl_save_prefix"
16889 if test "X$x" = "X-L$additional_libdir"; then
16894 if test -z "$haveit"; then
16895 if test -d "$additional_libdir"; then
16896 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
16900 for x in $LDFLAGS $LTLIBPTH; do
16902 acl_save_prefix="$prefix"
16903 prefix="$acl_final_prefix"
16904 acl_save_exec_prefix="$exec_prefix"
16905 exec_prefix="$acl_final_exec_prefix"
16907 exec_prefix="$acl_save_exec_prefix"
16908 prefix="$acl_save_prefix"
16910 if test "X$x" = "X-L$additional_libdir"; then
16915 if test -z "$haveit"; then
16916 if test -d "$additional_libdir"; then
16917 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
16924 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16925 if test "$enable_rpath" != no; then
16927 for x in $rpathdirs; do
16928 if test "X$x" = "X$dir"; then
16933 if test -z "$haveit"; then
16934 rpathdirs="$rpathdirs $dir"
16937 for x in $ltrpathdirs; do
16938 if test "X$x" = "X$dir"; then
16943 if test -z "$haveit"; then
16944 ltrpathdirs="$ltrpathdirs $dir"
16949 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16952 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16955 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
16956 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
16962 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
16963 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
16969 if test "X$rpathdirs" != "X"; then
16970 if test -n "$acl_hardcode_libdir_separator"; then
16972 for found_dir in $rpathdirs; do
16973 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16975 acl_save_libdir="$libdir"
16977 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16978 libdir="$acl_save_libdir"
16979 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
16981 for found_dir in $rpathdirs; do
16982 acl_save_libdir="$libdir"
16983 libdir="$found_dir"
16984 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16985 libdir="$acl_save_libdir"
16986 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
16990 if test "X$ltrpathdirs" != "X"; then
16991 for found_dir in $ltrpathdirs; do
16992 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
17001 ac_cv_libpth_libs="$LIBPTH"
17002 ac_cv_libpth_ltlibs="$LTLIBPTH"
17003 ac_cv_libpth_cppflags="$INCPTH"
17004 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
17008 $as_echo "$ac_cv_libpth_libs" >&6; }
17009 LIBPTH="$ac_cv_libpth_libs"
17010 LTLIBPTH="$ac_cv_libpth_ltlibs"
17011 INCPTH="$ac_cv_libpth_cppflags"
17012 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
17014 for element in $INCPTH; do
17016 for x in $CPPFLAGS; do
17018 acl_save_prefix="$prefix"
17019 prefix="$acl_final_prefix"
17020 acl_save_exec_prefix="$exec_prefix"
17021 exec_prefix="$acl_final_exec_prefix"
17023 exec_prefix="$acl_save_exec_prefix"
17024 prefix="$acl_save_prefix"
17026 if test "X$x" = "X$element"; then
17031 if test -z "$haveit"; then
17032 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17044 gl_save_LIBS="$LIBS"
17045 LIBS="$LIBS $LIBPTH"
17046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17047 /* end confdefs.h. */
17057 if ac_fn_c_try_link "$LINENO"; then :
17060 rm -f core conftest.err conftest.$ac_objext \
17061 conftest$ac_exeext conftest.$ac_ext
17062 LIBS="$gl_save_LIBS"
17063 if test -n "$gl_have_pth"; then
17065 LIBTHREAD="$LIBPTH"
17066 LTLIBTHREAD="$LTLIBPTH"
17067 LIBMULTITHREAD="$LIBTHREAD"
17068 LTLIBMULTITHREAD="$LTLIBTHREAD"
17070 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
17072 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17073 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17075 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
17082 CPPFLAGS="$gl_save_CPPFLAGS"
17085 if test -z "$gl_have_pthread"; then
17086 case "$gl_use_threads" in
17087 yes | windows | win32) # The 'win32' is for backward compatibility.
17088 if { case "$host_os" in
17093 gl_threads_api=windows
17095 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
17103 $as_echo_n "checking for multithread API to use... " >&6; }
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
17105 $as_echo "$gl_threads_api" >&6; }
17118 GNULIB_CALLOC_POSIX=0;
17119 GNULIB_CANONICALIZE_FILE_NAME=0;
17120 GNULIB_GETLOADAVG=0;
17121 GNULIB_GETSUBOPT=0;
17123 GNULIB_MALLOC_POSIX=0;
17127 GNULIB_MKOSTEMPS=0;
17130 GNULIB_POSIX_OPENPT=0;
17132 GNULIB_PTSNAME_R=0;
17136 GNULIB_REALLOC_POSIX=0;
17139 GNULIB_SECURE_GETENV=0;
17144 GNULIB_SYSTEM_POSIX=0;
17150 HAVE_CANONICALIZE_FILE_NAME=1;
17151 HAVE_DECL_GETLOADAVG=1;
17159 HAVE_POSIX_OPENPT=1;
17167 HAVE_SECURE_GETENV=1;
17169 HAVE_DECL_SETENV=1;
17173 HAVE_STRUCT_RANDOM_DATA=1;
17174 HAVE_SYS_LOADAVG_H=0;
17176 HAVE_DECL_UNSETENV=1;
17178 REPLACE_CANONICALIZE_FILE_NAME=0;
17183 REPLACE_PTSNAME_R=0;
17185 REPLACE_RANDOM_R=0;
17187 REPLACE_REALPATH=0;
17190 REPLACE_UNSETENV=0;
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17195 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17196 if ${gl_cv_func_malloc_posix+:} false; then :
17197 $as_echo_n "(cached) " >&6
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h. */
17206 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17214 if ac_fn_c_try_compile "$LINENO"; then :
17215 gl_cv_func_malloc_posix=yes
17217 gl_cv_func_malloc_posix=no
17219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
17223 $as_echo "$gl_cv_func_malloc_posix" >&6; }
17227 for ac_header in stdlib.h
17229 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17230 if test "x$ac_cv_header_stdlib_h" = xyes; then :
17231 cat >>confdefs.h <<_ACEOF
17232 #define HAVE_STDLIB_H 1
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17240 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17241 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
17242 $as_echo_n "(cached) " >&6
17244 if test "$cross_compiling" = yes; then :
17246 # Guess yes on platforms where we know the result.
17247 *-gnu* | freebsd* | netbsd* | openbsd* \
17248 | hpux* | solaris* | cygwin* | mingw*)
17249 ac_cv_func_malloc_0_nonnull=yes ;;
17250 # If we don't know, assume the worst.
17251 *) ac_cv_func_malloc_0_nonnull=no ;;
17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17257 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17258 # include <stdlib.h>
17266 return ! malloc (0);
17272 if ac_fn_c_try_run "$LINENO"; then :
17273 ac_cv_func_malloc_0_nonnull=yes
17275 ac_cv_func_malloc_0_nonnull=no
17277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17278 conftest.$ac_objext conftest.beam conftest.$ac_ext
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17284 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17285 if test $ac_cv_func_malloc_0_nonnull = yes; then :
17286 gl_cv_func_malloc_0_nonnull=1
17288 gl_cv_func_malloc_0_nonnull=0
17292 cat >>confdefs.h <<_ACEOF
17293 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17299 $as_echo_n "checking for unsigned long long int... " >&6; }
17300 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17301 $as_echo_n "(cached) " >&6
17303 ac_cv_type_unsigned_long_long_int=yes
17304 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17306 /* end confdefs.h. */
17308 /* For now, do not test the preprocessor; as of 2007 there are too many
17309 implementations with broken preprocessors. Perhaps this can
17310 be revisited in 2012. In the meantime, code should not expect
17311 #if to work with literals wider than 32 bits. */
17312 /* Test literals. */
17313 long long int ll = 9223372036854775807ll;
17314 long long int nll = -9223372036854775807LL;
17315 unsigned long long int ull = 18446744073709551615ULL;
17316 /* Test constant expressions. */
17317 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17319 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17325 /* Test availability of runtime routines for shift and division. */
17326 long long int llmax = 9223372036854775807ll;
17327 unsigned long long int ullmax = 18446744073709551615ull;
17328 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17329 | (llmax / ll) | (llmax % ll)
17330 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17331 | (ullmax / ull) | (ullmax % ull));
17337 if ac_fn_c_try_link "$LINENO"; then :
17340 ac_cv_type_unsigned_long_long_int=no
17342 rm -f core conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17347 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17348 if test $ac_cv_type_unsigned_long_long_int = yes; then
17350 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17357 $as_echo_n "checking for long long int... " >&6; }
17358 if ${ac_cv_type_long_long_int+:} false; then :
17359 $as_echo_n "(cached) " >&6
17361 ac_cv_type_long_long_int=yes
17362 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17363 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17364 if test $ac_cv_type_long_long_int = yes; then
17365 if test "$cross_compiling" = yes; then :
17368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17369 /* end confdefs.h. */
17370 #include <limits.h>
17373 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17374 # define LLONG_MAX (HALF - 1 + HALF)
17379 long long int n = 1;
17383 long long int m = n << i;
17386 if (LLONG_MAX / 2 < m)
17394 if ac_fn_c_try_run "$LINENO"; then :
17397 ac_cv_type_long_long_int=no
17399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17400 conftest.$ac_objext conftest.beam conftest.$ac_ext
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17407 $as_echo "$ac_cv_type_long_long_int" >&6; }
17408 if test $ac_cv_type_long_long_int = yes; then
17410 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17423 for ac_func in $gl_func_list
17425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17426 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17427 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17428 cat >>confdefs.h <<_ACEOF
17429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17446 GNULIB_RAWMEMCHR=0;
17449 GNULIB_STRCHRNUL=0;
17457 GNULIB_STRCASESTR=0;
17464 GNULIB_MBSCASECMP=0;
17465 GNULIB_MBSNCASECMP=0;
17466 GNULIB_MBSPCASECMP=0;
17467 GNULIB_MBSCASESTR=0;
17474 GNULIB_STRERROR_R=0;
17475 GNULIB_STRSIGNAL=0;
17476 GNULIB_STRVERSCMP=0;
17481 HAVE_DECL_MEMMEM=1;
17483 HAVE_DECL_MEMRCHR=1;
17488 HAVE_DECL_STRDUP=1;
17489 HAVE_DECL_STRNDUP=1;
17490 HAVE_DECL_STRNLEN=1;
17494 HAVE_DECL_STRTOK_R=1;
17495 HAVE_DECL_STRERROR_R=1;
17496 HAVE_DECL_STRSIGNAL=1;
17503 REPLACE_STRCASESTR=0;
17504 REPLACE_STRCHRNUL=0;
17505 REPLACE_STRERROR=0;
17506 REPLACE_STRERROR_R=0;
17510 REPLACE_STRSIGNAL=0;
17511 REPLACE_STRTOK_R=0;
17512 UNDEFINE_STRTOK_R=0;
17518 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
17519 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
17520 # irrelevant for anonymous mappings.
17521 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
17522 if test "x$ac_cv_func_mmap" = xyes; then :
17529 # Try to allow MAP_ANONYMOUS.
17530 gl_have_mmap_anonymous=no
17531 if test $gl_have_mmap = yes; then
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
17533 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17537 #include <sys/mman.h>
17538 #ifdef MAP_ANONYMOUS
17539 I cannot identify this map
17543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17544 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
17545 gl_have_mmap_anonymous=yes
17549 if test $gl_have_mmap_anonymous != yes; then
17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h. */
17553 #include <sys/mman.h>
17555 I cannot identify this map
17559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17560 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
17562 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
17564 gl_have_mmap_anonymous=yes
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
17570 $as_echo "$gl_have_mmap_anonymous" >&6; }
17571 if test $gl_have_mmap_anonymous = yes; then
17573 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
17595 if test $HAVE_MEMCHR = 1; then
17596 # Detect platform-specific bugs in some versions of glibc:
17597 # memchr should not dereference anything with length 0
17598 # http://bugzilla.redhat.com/499689
17599 # memchr should not dereference overestimated length after a match
17600 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
17601 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
17602 # Assume that memchr works on platforms that lack mprotect.
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
17604 $as_echo_n "checking whether memchr works... " >&6; }
17605 if ${gl_cv_func_memchr_works+:} false; then :
17606 $as_echo_n "(cached) " >&6
17608 if test "$cross_compiling" = yes; then :
17609 gl_cv_func_memchr_works="guessing no"
17611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h. */
17614 #include <string.h>
17615 #if HAVE_SYS_MMAN_H
17616 # include <fcntl.h>
17617 # include <unistd.h>
17618 # include <sys/types.h>
17619 # include <sys/mman.h>
17621 # define MAP_FILE 0
17630 char *fence = NULL;
17631 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17632 # if HAVE_MAP_ANONYMOUS
17633 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17635 # else /* !HAVE_MAP_ANONYMOUS */
17636 const int flags = MAP_FILE | MAP_PRIVATE;
17637 int fd = open ("/dev/zero", O_RDONLY, 0666);
17641 int pagesize = getpagesize ();
17643 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17645 if (two_pages != (char *)(-1)
17646 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17647 fence = two_pages + pagesize;
17652 if (memchr (fence, 0, 0))
17654 strcpy (fence - 9, "12345678");
17655 if (memchr (fence - 9, 0, 79) != fence - 1)
17657 if (memchr (fence - 1, 0, 3) != fence - 1)
17666 if ac_fn_c_try_run "$LINENO"; then :
17667 gl_cv_func_memchr_works=yes
17669 gl_cv_func_memchr_works=no
17671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17672 conftest.$ac_objext conftest.beam conftest.$ac_ext
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
17677 $as_echo "$gl_cv_func_memchr_works" >&6; }
17678 if test "$gl_cv_func_memchr_works" != yes; then
17689 gl_cv_c_multiarch=no
17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h. */
17692 #ifndef __APPLE_CC__
17693 not a universal capable compiler
17698 if ac_fn_c_try_compile "$LINENO"; then :
17702 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17703 if test -n "$prev"; then
17705 i?86 | x86_64 | ppc | ppc64)
17706 if test -z "$arch" || test "$arch" = "$word"; then
17709 gl_cv_c_multiarch=yes
17715 if test "x$word" = "x-arch"; then
17722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17723 if test $gl_cv_c_multiarch = yes; then
17724 APPLE_UNIVERSAL_BUILD=1
17726 APPLE_UNIVERSAL_BUILD=0
17731 GNULIB_PTHREAD_SIGMASK=0;
17733 GNULIB_SIGNAL_H_SIGPIPE=0;
17734 GNULIB_SIGPROCMASK=0;
17735 GNULIB_SIGACTION=0;
17736 HAVE_POSIX_SIGNALBLOCKING=1;
17737 HAVE_PTHREAD_SIGMASK=1;
17742 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
17744 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
17746 HAVE_SIGHANDLER_T=1;
17747 REPLACE_PTHREAD_SIGMASK=0;
17751 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
17752 #include <signal.h>
17753 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
17754 #include <sys/types.h>
17757 if test "x$ac_cv_type_sigset_t" = xyes; then :
17759 cat >>confdefs.h <<_ACEOF
17760 #define HAVE_SIGSET_T 1
17763 gl_cv_type_sigset_t=yes
17765 gl_cv_type_sigset_t=no
17768 if test $gl_cv_type_sigset_t != yes; then
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17774 $as_echo_n "checking for ssize_t... " >&6; }
17775 if ${gt_cv_ssize_t+:} false; then :
17776 $as_echo_n "(cached) " >&6
17778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17779 /* end confdefs.h. */
17780 #include <sys/types.h>
17784 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17790 if ac_fn_c_try_compile "$LINENO"; then :
17795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17798 $as_echo "$gt_cv_ssize_t" >&6; }
17799 if test $gt_cv_ssize_t = no; then
17801 $as_echo "#define ssize_t int" >>confdefs.h
17806 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
17807 if test "x$ac_cv_have_decl_setenv" = xyes; then :
17813 cat >>confdefs.h <<_ACEOF
17814 #define HAVE_DECL_SETENV $ac_have_decl
17832 if test $ac_cv_have_decl_setenv = no; then
17852 for ac_header in search.h
17854 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
17855 if test "x$ac_cv_header_search_h" = xyes; then :
17856 cat >>confdefs.h <<_ACEOF
17857 #define HAVE_SEARCH_H 1
17864 for ac_func in tsearch
17866 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
17867 if test "x$ac_cv_func_tsearch" = xyes; then :
17868 cat >>confdefs.h <<_ACEOF
17869 #define HAVE_TSEARCH 1
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17883 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17884 if ${ac_cv_c_restrict+:} false; then :
17885 $as_echo_n "(cached) " >&6
17887 ac_cv_c_restrict=no
17888 # The order here caters to the fact that C++ does not require restrict.
17889 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17892 typedef int * int_ptr;
17893 int foo (int_ptr $ac_kw ip) {
17900 int * $ac_kw t = s;
17907 if ac_fn_c_try_compile "$LINENO"; then :
17908 ac_cv_c_restrict=$ac_kw
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911 test "$ac_cv_c_restrict" != no && break
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17916 $as_echo "$ac_cv_c_restrict" >&6; }
17918 case $ac_cv_c_restrict in
17920 no) $as_echo "#define restrict /**/" >>confdefs.h
17922 *) cat >>confdefs.h <<_ACEOF
17923 #define restrict $ac_cv_c_restrict
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17929 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17930 if ${ac_cv_type_uid_t+:} false; then :
17931 $as_echo_n "(cached) " >&6
17933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934 /* end confdefs.h. */
17935 #include <sys/types.h>
17938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17939 $EGREP "uid_t" >/dev/null 2>&1; then :
17940 ac_cv_type_uid_t=yes
17942 ac_cv_type_uid_t=no
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17948 $as_echo "$ac_cv_type_uid_t" >&6; }
17949 if test $ac_cv_type_uid_t = no; then
17951 $as_echo "#define uid_t int" >>confdefs.h
17954 $as_echo "#define gid_t int" >>confdefs.h
17969 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17970 if test "x$ac_cv_type_pid_t" = xyes; then :
17974 cat >>confdefs.h <<_ACEOF
17989 GNULIB_FPRINTF_POSIX=0;
18005 GNULIB_OBSTACK_PRINTF=0;
18006 GNULIB_OBSTACK_PRINTF_POSIX=0;
18011 GNULIB_PRINTF_POSIX=0;
18020 GNULIB_SPRINTF_POSIX=0;
18021 GNULIB_STDIO_H_NONBLOCKING=0;
18022 GNULIB_STDIO_H_SIGPIPE=0;
18024 GNULIB_VASPRINTF=0;
18029 GNULIB_VFPRINTF_POSIX=0;
18031 GNULIB_VPRINTF_POSIX=0;
18032 GNULIB_VSNPRINTF=0;
18033 GNULIB_VSPRINTF_POSIX=0;
18034 HAVE_DECL_FPURGE=1;
18035 HAVE_DECL_FSEEKO=1;
18036 HAVE_DECL_FTELLO=1;
18037 HAVE_DECL_GETDELIM=1;
18038 HAVE_DECL_GETLINE=1;
18039 HAVE_DECL_OBSTACK_PRINTF=1;
18040 HAVE_DECL_SNPRINTF=1;
18041 HAVE_DECL_VSNPRINTF=1;
18062 REPLACE_GETDELIM=0;
18064 REPLACE_OBSTACK_PRINTF=0;
18070 REPLACE_RENAMEAT=0;
18071 REPLACE_SNPRINTF=0;
18073 REPLACE_STDIO_READ_FUNCS=0;
18074 REPLACE_STDIO_WRITE_FUNCS=0;
18076 REPLACE_VASPRINTF=0;
18077 REPLACE_VDPRINTF=0;
18078 REPLACE_VFPRINTF=0;
18080 REPLACE_VSNPRINTF=0;
18081 REPLACE_VSPRINTF=0;
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
18101 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
18102 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
18103 $as_echo_n "(cached) " >&6
18106 if test "$cross_compiling" = yes; then :
18109 # Guess yes on glibc systems.
18110 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18111 # Guess yes on FreeBSD >= 5.
18112 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
18113 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18114 # Guess yes on Mac OS X >= 10.3.
18115 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
18116 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18117 # Guess yes on OpenBSD >= 3.9.
18118 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
18119 gl_cv_func_snprintf_retval_c99="guessing no";;
18120 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18121 # Guess yes on Solaris >= 2.10.
18122 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
18123 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
18124 # Guess yes on AIX >= 4.
18125 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
18126 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18127 # Guess yes on NetBSD >= 3.
18128 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
18129 gl_cv_func_snprintf_retval_c99="guessing no";;
18130 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18131 # Guess yes on BeOS.
18132 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18133 # If we don't know, assume the worst.
18134 *) gl_cv_func_snprintf_retval_c99="guessing no";;
18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18139 /* end confdefs.h. */
18142 #include <string.h>
18144 # define my_snprintf snprintf
18146 # include <stdarg.h>
18147 static int my_snprintf (char *buf, int size, const char *format, ...)
18151 va_start (args, format);
18152 ret = vsnprintf (buf, size, format, args);
18157 static char buf[100];
18160 strcpy (buf, "ABCDEF");
18161 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
18163 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
18165 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
18170 if ac_fn_c_try_run "$LINENO"; then :
18171 gl_cv_func_snprintf_retval_c99=yes
18173 gl_cv_func_snprintf_retval_c99=no
18175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18176 conftest.$ac_objext conftest.beam conftest.$ac_ext
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
18182 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
18185 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
18186 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
18192 cat >>confdefs.h <<_ACEOF
18193 #define HAVE_DECL_SNPRINTF $ac_have_decl
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18198 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18199 if ${ac_cv_header_stdbool_h+:} false; then :
18200 $as_echo_n "(cached) " >&6
18202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18203 /* end confdefs.h. */
18205 #include <stdbool.h>
18207 "error: bool is not defined"
18210 "error: false is not defined"
18213 "error: false is not 0"
18216 "error: true is not defined"
18219 "error: true is not 1"
18221 #ifndef __bool_true_false_are_defined
18222 "error: __bool_true_false_are_defined is not defined"
18225 struct s { _Bool s: 1; _Bool t; } s;
18227 char a[true == 1 ? 1 : -1];
18228 char b[false == 0 ? 1 : -1];
18229 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18230 char d[(bool) 0.5 == true ? 1 : -1];
18231 /* See body of main program for 'e'. */
18232 char f[(_Bool) 0.0 == false ? 1 : -1];
18234 char h[sizeof (_Bool)];
18235 char i[sizeof s.t];
18236 enum { j = false, k = true, l = false * true, m = true * 256 };
18237 /* The following fails for
18238 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18240 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18241 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18242 /* Catch a bug in an HP-UX C compiler. See
18243 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18244 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18256 /* Refer to every declared value, to avoid compiler optimizations. */
18257 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18258 + !m + !n + !o + !p + !q + !pq);
18264 if ac_fn_c_try_compile "$LINENO"; then :
18265 ac_cv_header_stdbool_h=yes
18267 ac_cv_header_stdbool_h=no
18269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18272 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18273 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18274 if test "x$ac_cv_type__Bool" = xyes; then :
18276 cat >>confdefs.h <<_ACEOF
18277 #define HAVE__BOOL 1
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18290 $as_echo_n "checking for wchar_t... " >&6; }
18291 if ${gt_cv_c_wchar_t+:} false; then :
18292 $as_echo_n "(cached) " >&6
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18296 #include <stddef.h>
18297 wchar_t foo = (wchar_t)'\0';
18306 if ac_fn_c_try_compile "$LINENO"; then :
18307 gt_cv_c_wchar_t=yes
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18314 $as_echo "$gt_cv_c_wchar_t" >&6; }
18315 if test $gt_cv_c_wchar_t = yes; then
18317 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18334 if test $ac_cv_type_long_long_int = yes; then
18335 HAVE_LONG_LONG_INT=1
18337 HAVE_LONG_LONG_INT=0
18341 if test $ac_cv_type_unsigned_long_long_int = yes; then
18342 HAVE_UNSIGNED_LONG_LONG_INT=1
18344 HAVE_UNSIGNED_LONG_LONG_INT=0
18355 if test $ac_cv_header_wchar_h = yes; then
18362 if test $ac_cv_header_inttypes_h = yes; then
18369 if test $ac_cv_header_sys_types_h = yes; then
18391 if test $gl_cv_have_include_next = yes; then
18392 gl_cv_next_stdint_h='<'stdint.h'>'
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18395 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18396 if ${gl_cv_next_stdint_h+:} false; then :
18397 $as_echo_n "(cached) " >&6
18400 if test $ac_cv_header_stdint_h = yes; then
18403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404 /* end confdefs.h. */
18405 #include <stdint.h>
18409 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18410 *) gl_absname_cpp="$ac_cpp" ;;
18415 gl_dirsep_regex='[/\\]'
18418 gl_dirsep_regex='\/'
18421 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18423 gl_header_literal_regex=`echo 'stdint.h' \
18424 | sed -e "$gl_make_literal_regex_sed"`
18425 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18426 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18431 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18432 sed -n "$gl_absolute_header_sed"`'"'
18434 gl_cv_next_stdint_h='<'stdint.h'>'
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18440 $as_echo "$gl_cv_next_stdint_h" >&6; }
18442 NEXT_STDINT_H=$gl_cv_next_stdint_h
18444 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18445 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18446 gl_next_as_first_directive='<'stdint.h'>'
18448 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18449 gl_next_as_first_directive=$gl_cv_next_stdint_h
18451 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18456 if test $ac_cv_header_stdint_h = yes; then
18463 if test $ac_cv_header_stdint_h = yes; then
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18465 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18466 if ${gl_cv_header_working_stdint_h+:} false; then :
18467 $as_echo_n "(cached) " >&6
18469 gl_cv_header_working_stdint_h=no
18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h. */
18474 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18475 #include <stdint.h>
18476 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18477 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18478 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18482 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18483 included before <wchar.h>. */
18484 #include <stddef.h>
18485 #include <signal.h>
18487 # include <stdio.h>
18489 # include <wchar.h>
18494 int8_t a1 = INT8_MAX;
18495 int8_t a1min = INT8_MIN;
18498 int16_t a2 = INT16_MAX;
18499 int16_t a2min = INT16_MIN;
18502 int32_t a3 = INT32_MAX;
18503 int32_t a3min = INT32_MIN;
18506 int64_t a4 = INT64_MAX;
18507 int64_t a4min = INT64_MIN;
18510 uint8_t b1 = UINT8_MAX;
18512 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18515 uint16_t b2 = UINT16_MAX;
18518 uint32_t b3 = UINT32_MAX;
18521 uint64_t b4 = UINT64_MAX;
18523 int_least8_t c1 = INT8_C (0x7f);
18524 int_least8_t c1max = INT_LEAST8_MAX;
18525 int_least8_t c1min = INT_LEAST8_MIN;
18526 int_least16_t c2 = INT16_C (0x7fff);
18527 int_least16_t c2max = INT_LEAST16_MAX;
18528 int_least16_t c2min = INT_LEAST16_MIN;
18529 int_least32_t c3 = INT32_C (0x7fffffff);
18530 int_least32_t c3max = INT_LEAST32_MAX;
18531 int_least32_t c3min = INT_LEAST32_MIN;
18532 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18533 int_least64_t c4max = INT_LEAST64_MAX;
18534 int_least64_t c4min = INT_LEAST64_MIN;
18535 uint_least8_t d1 = UINT8_C (0xff);
18536 uint_least8_t d1max = UINT_LEAST8_MAX;
18537 uint_least16_t d2 = UINT16_C (0xffff);
18538 uint_least16_t d2max = UINT_LEAST16_MAX;
18539 uint_least32_t d3 = UINT32_C (0xffffffff);
18540 uint_least32_t d3max = UINT_LEAST32_MAX;
18541 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18542 uint_least64_t d4max = UINT_LEAST64_MAX;
18543 int_fast8_t e1 = INT_FAST8_MAX;
18544 int_fast8_t e1min = INT_FAST8_MIN;
18545 int_fast16_t e2 = INT_FAST16_MAX;
18546 int_fast16_t e2min = INT_FAST16_MIN;
18547 int_fast32_t e3 = INT_FAST32_MAX;
18548 int_fast32_t e3min = INT_FAST32_MIN;
18549 int_fast64_t e4 = INT_FAST64_MAX;
18550 int_fast64_t e4min = INT_FAST64_MIN;
18551 uint_fast8_t f1 = UINT_FAST8_MAX;
18552 uint_fast16_t f2 = UINT_FAST16_MAX;
18553 uint_fast32_t f3 = UINT_FAST32_MAX;
18554 uint_fast64_t f4 = UINT_FAST64_MAX;
18556 intptr_t g = INTPTR_MAX;
18557 intptr_t gmin = INTPTR_MIN;
18560 uintptr_t h = UINTPTR_MAX;
18562 intmax_t i = INTMAX_MAX;
18563 uintmax_t j = UINTMAX_MAX;
18565 #include <limits.h> /* for CHAR_BIT */
18566 #define TYPE_MINIMUM(t) \
18567 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18568 #define TYPE_MAXIMUM(t) \
18569 ((t) ((t) 0 < (t) -1 \
18571 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18574 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18575 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18577 /* Detect bug in FreeBSD 6.0 / ia64. */
18578 int check_SIG_ATOMIC:
18579 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18580 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18582 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18584 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18585 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18587 /* Detect bug in mingw. */
18589 WINT_MIN == TYPE_MINIMUM (wint_t)
18590 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18593 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18595 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18596 int check_UINT16_C:
18597 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18599 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18601 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18604 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18607 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18610 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18612 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18613 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18614 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18615 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18616 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18617 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18618 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18619 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18620 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18621 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18622 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18633 if ac_fn_c_try_compile "$LINENO"; then :
18634 if test "$cross_compiling" = yes; then :
18635 gl_cv_header_working_stdint_h=yes
18638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639 /* end confdefs.h. */
18642 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18643 #include <stdint.h>
18646 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18647 included before <wchar.h>. */
18648 #include <stddef.h>
18649 #include <signal.h>
18651 # include <stdio.h>
18653 # include <wchar.h>
18658 #include <string.h>
18659 #define MVAL(macro) MVAL1(macro)
18660 #define MVAL1(expression) #expression
18661 static const char *macro_values[] =
18695 for (mv = macro_values; *mv != NULL; mv++)
18697 const char *value = *mv;
18698 /* Test whether it looks like a cast expression. */
18699 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18700 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18701 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18702 || strncmp (value, "((int)"/*)*/, 6) == 0
18703 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18704 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18705 return mv - macro_values + 1;
18713 if ac_fn_c_try_run "$LINENO"; then :
18714 gl_cv_header_working_stdint_h=yes
18716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18717 conftest.$ac_objext conftest.beam conftest.$ac_ext
18722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18726 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18728 if test "$gl_cv_header_working_stdint_h" = yes; then
18731 for ac_header in sys/inttypes.h sys/bitypes.h
18733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18734 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18736 cat >>confdefs.h <<_ACEOF
18737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18744 if test $ac_cv_header_sys_inttypes_h = yes; then
18745 HAVE_SYS_INTTYPES_H=1
18747 HAVE_SYS_INTTYPES_H=0
18750 if test $ac_cv_header_sys_bitypes_h = yes; then
18751 HAVE_SYS_BITYPES_H=1
18753 HAVE_SYS_BITYPES_H=0
18759 if test $APPLE_UNIVERSAL_BUILD = 0; then
18762 for gltype in ptrdiff_t size_t ; do
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18764 $as_echo_n "checking for bit size of $gltype... " >&6; }
18765 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18766 $as_echo_n "(cached) " >&6
18768 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18769 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18770 included before <wchar.h>. */
18771 #include <stddef.h>
18772 #include <signal.h>
18774 # include <stdio.h>
18776 # include <wchar.h>
18779 #include <limits.h>"; then :
18785 eval gl_cv_bitsizeof_${gltype}=\$result
18788 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18790 $as_echo "$ac_res" >&6; }
18791 eval result=\$gl_cv_bitsizeof_${gltype}
18792 if test $result = unknown; then
18795 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18796 cat >>confdefs.h <<_ACEOF
18797 #define BITSIZEOF_${GLTYPE} $result
18800 eval BITSIZEOF_${GLTYPE}=\$result
18807 for gltype in sig_atomic_t wchar_t wint_t ; do
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18809 $as_echo_n "checking for bit size of $gltype... " >&6; }
18810 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18811 $as_echo_n "(cached) " >&6
18813 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18814 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18815 included before <wchar.h>. */
18816 #include <stddef.h>
18817 #include <signal.h>
18819 # include <stdio.h>
18821 # include <wchar.h>
18824 #include <limits.h>"; then :
18830 eval gl_cv_bitsizeof_${gltype}=\$result
18833 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18835 $as_echo "$ac_res" >&6; }
18836 eval result=\$gl_cv_bitsizeof_${gltype}
18837 if test $result = unknown; then
18840 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18841 cat >>confdefs.h <<_ACEOF
18842 #define BITSIZEOF_${GLTYPE} $result
18845 eval BITSIZEOF_${GLTYPE}=\$result
18851 for gltype in sig_atomic_t wchar_t wint_t ; do
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18853 $as_echo_n "checking whether $gltype is signed... " >&6; }
18854 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
18855 $as_echo_n "(cached) " >&6
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h. */
18860 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18861 included before <wchar.h>. */
18862 #include <stddef.h>
18863 #include <signal.h>
18865 # include <stdio.h>
18867 # include <wchar.h>
18870 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18879 if ac_fn_c_try_compile "$LINENO"; then :
18884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18885 eval gl_cv_type_${gltype}_signed=\$result
18888 eval ac_res=\$gl_cv_type_${gltype}_signed
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18890 $as_echo "$ac_res" >&6; }
18891 eval result=\$gl_cv_type_${gltype}_signed
18892 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18893 if test "$result" = yes; then
18894 cat >>confdefs.h <<_ACEOF
18895 #define HAVE_SIGNED_${GLTYPE} 1
18898 eval HAVE_SIGNED_${GLTYPE}=1
18900 eval HAVE_SIGNED_${GLTYPE}=0
18905 gl_cv_type_ptrdiff_t_signed=yes
18906 gl_cv_type_size_t_signed=no
18907 if test $APPLE_UNIVERSAL_BUILD = 0; then
18910 for gltype in ptrdiff_t size_t ; do
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18912 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18913 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18914 $as_echo_n "(cached) " >&6
18916 eval gl_cv_type_${gltype}_suffix=no
18917 eval result=\$gl_cv_type_${gltype}_signed
18918 if test "$result" = yes; then
18923 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18925 '') gltype1='int';;
18926 l) gltype1='long int';;
18927 ll) gltype1='long long int';;
18928 i64) gltype1='__int64';;
18929 u) gltype1='unsigned int';;
18930 ul) gltype1='unsigned long int';;
18931 ull) gltype1='unsigned long long int';;
18932 ui64)gltype1='unsigned __int64';;
18934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935 /* end confdefs.h. */
18937 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18938 included before <wchar.h>. */
18939 #include <stddef.h>
18940 #include <signal.h>
18942 # include <stdio.h>
18944 # include <wchar.h>
18947 extern $gltype foo;
18948 extern $gltype1 foo;
18957 if ac_fn_c_try_compile "$LINENO"; then :
18958 eval gl_cv_type_${gltype}_suffix=\$glsuf
18960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18961 eval result=\$gl_cv_type_${gltype}_suffix
18962 test "$result" != no && break
18965 eval ac_res=\$gl_cv_type_${gltype}_suffix
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18967 $as_echo "$ac_res" >&6; }
18968 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18969 eval result=\$gl_cv_type_${gltype}_suffix
18970 test "$result" = no && result=
18971 eval ${GLTYPE}_SUFFIX=\$result
18972 cat >>confdefs.h <<_ACEOF
18973 #define ${GLTYPE}_SUFFIX $result
18982 for gltype in sig_atomic_t wchar_t wint_t ; do
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18984 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18985 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18986 $as_echo_n "(cached) " >&6
18988 eval gl_cv_type_${gltype}_suffix=no
18989 eval result=\$gl_cv_type_${gltype}_signed
18990 if test "$result" = yes; then
18995 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18997 '') gltype1='int';;
18998 l) gltype1='long int';;
18999 ll) gltype1='long long int';;
19000 i64) gltype1='__int64';;
19001 u) gltype1='unsigned int';;
19002 ul) gltype1='unsigned long int';;
19003 ull) gltype1='unsigned long long int';;
19004 ui64)gltype1='unsigned __int64';;
19006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19007 /* end confdefs.h. */
19009 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19010 included before <wchar.h>. */
19011 #include <stddef.h>
19012 #include <signal.h>
19014 # include <stdio.h>
19016 # include <wchar.h>
19019 extern $gltype foo;
19020 extern $gltype1 foo;
19029 if ac_fn_c_try_compile "$LINENO"; then :
19030 eval gl_cv_type_${gltype}_suffix=\$glsuf
19032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19033 eval result=\$gl_cv_type_${gltype}_suffix
19034 test "$result" != no && break
19037 eval ac_res=\$gl_cv_type_${gltype}_suffix
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19039 $as_echo "$ac_res" >&6; }
19040 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19041 eval result=\$gl_cv_type_${gltype}_suffix
19042 test "$result" = no && result=
19043 eval ${GLTYPE}_SUFFIX=\$result
19044 cat >>confdefs.h <<_ACEOF
19045 #define ${GLTYPE}_SUFFIX $result
19052 if test $BITSIZEOF_WINT_T -lt 32; then
19053 BITSIZEOF_WINT_T=32
19059 if test -n "$STDINT_H"; then
19060 GL_GENERATE_STDINT_H_TRUE=
19061 GL_GENERATE_STDINT_H_FALSE='#'
19063 GL_GENERATE_STDINT_H_TRUE='#'
19064 GL_GENERATE_STDINT_H_FALSE=
19069 REPLACE_STRERROR_0=0
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
19071 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
19072 if ${gl_cv_func_strerror_0_works+:} false; then :
19073 $as_echo_n "(cached) " >&6
19075 if test "$cross_compiling" = yes; then :
19077 # Guess yes on glibc systems.
19078 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
19079 # If we don't know, assume the worst.
19080 *) gl_cv_func_strerror_0_works="guessing no" ;;
19084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19085 /* end confdefs.h. */
19086 #include <string.h>
19095 str = strerror (0);
19096 if (!*str) result |= 1;
19097 if (errno) result |= 2;
19098 if (strstr (str, "nknown") || strstr (str, "ndefined"))
19105 if ac_fn_c_try_run "$LINENO"; then :
19106 gl_cv_func_strerror_0_works=yes
19108 gl_cv_func_strerror_0_works=no
19110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19111 conftest.$ac_objext conftest.beam conftest.$ac_ext
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
19117 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
19118 case "$gl_cv_func_strerror_0_works" in
19121 REPLACE_STRERROR_0=1
19123 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
19144 if test $gl_cv_have_include_next = yes; then
19145 gl_cv_next_string_h='<'string.h'>'
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
19148 $as_echo_n "checking absolute name of <string.h>... " >&6; }
19149 if ${gl_cv_next_string_h+:} false; then :
19150 $as_echo_n "(cached) " >&6
19153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h. */
19155 #include <string.h>
19159 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19160 *) gl_absname_cpp="$ac_cpp" ;;
19165 gl_dirsep_regex='[/\\]'
19168 gl_dirsep_regex='\/'
19171 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19173 gl_header_literal_regex=`echo 'string.h' \
19174 | sed -e "$gl_make_literal_regex_sed"`
19175 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19176 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19181 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19182 sed -n "$gl_absolute_header_sed"`'"'
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
19187 $as_echo "$gl_cv_next_string_h" >&6; }
19189 NEXT_STRING_H=$gl_cv_next_string_h
19191 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19192 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19193 gl_next_as_first_directive='<'string.h'>'
19195 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19196 gl_next_as_first_directive=$gl_cv_next_string_h
19198 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
19205 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
19206 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19208 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19209 if eval \${$as_gl_Symbol+:} false; then :
19210 $as_echo_n "(cached) " >&6
19212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19213 /* end confdefs.h. */
19214 #include <string.h>
19225 if ac_fn_c_try_compile "$LINENO"; then :
19226 eval "$as_gl_Symbol=yes"
19228 eval "$as_gl_Symbol=no"
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19232 eval ac_res=\$$as_gl_Symbol
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19234 $as_echo "$ac_res" >&6; }
19235 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19236 cat >>confdefs.h <<_ACEOF
19237 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19240 eval ac_cv_have_decl_$gl_func=yes
19246 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
19247 if test "x$ac_cv_have_decl_strndup" = xyes; then :
19253 cat >>confdefs.h <<_ACEOF
19254 #define HAVE_DECL_STRNDUP $ac_have_decl
19264 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
19265 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
19271 cat >>confdefs.h <<_ACEOF
19272 #define HAVE_DECL_STRNLEN $ac_have_decl
19277 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
19278 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
19284 cat >>confdefs.h <<_ACEOF
19285 #define HAVE_DECL_STRSIGNAL $ac_have_decl
19289 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
19290 /* NetBSD declares sys_siglist in unistd.h. */
19291 #ifdef HAVE_UNISTD_H
19292 # include <unistd.h>
19296 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
19302 cat >>confdefs.h <<_ACEOF
19303 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
19332 GNULIB_UTIMENSAT=0;
19346 REPLACE_FUTIMENS=0;
19352 REPLACE_UTIMENSAT=0;
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19355 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19356 if ${ac_cv_header_stat_broken+:} false; then :
19357 $as_echo_n "(cached) " >&6
19359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19360 /* end confdefs.h. */
19361 #include <sys/types.h>
19362 #include <sys/stat.h>
19364 #if defined S_ISBLK && defined S_IFDIR
19365 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19368 #if defined S_ISBLK && defined S_IFCHR
19369 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19372 #if defined S_ISLNK && defined S_IFREG
19373 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19376 #if defined S_ISSOCK && defined S_IFREG
19377 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19381 if ac_fn_c_try_compile "$LINENO"; then :
19382 ac_cv_header_stat_broken=no
19384 ac_cv_header_stat_broken=yes
19386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19389 $as_echo "$ac_cv_header_stat_broken" >&6; }
19390 if test $ac_cv_header_stat_broken = yes; then
19392 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19401 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19402 if test "x$ac_cv_type_mode_t" = xyes; then :
19406 cat >>confdefs.h <<_ACEOF
19413 GNULIB_GETTIMEOFDAY=0;
19414 HAVE_GETTIMEOFDAY=1;
19415 HAVE_STRUCT_TIMEVAL=1;
19417 REPLACE_GETTIMEOFDAY=0;
19418 REPLACE_STRUCT_TIMEVAL=0;
19450 if test $gl_cv_have_include_next = yes; then
19451 gl_cv_next_sys_time_h='<'sys/time.h'>'
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19454 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19455 if ${gl_cv_next_sys_time_h+:} false; then :
19456 $as_echo_n "(cached) " >&6
19459 if test $ac_cv_header_sys_time_h = yes; then
19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h. */
19464 #include <sys/time.h>
19468 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19469 *) gl_absname_cpp="$ac_cpp" ;;
19474 gl_dirsep_regex='[/\\]'
19477 gl_dirsep_regex='\/'
19480 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19482 gl_header_literal_regex=`echo 'sys/time.h' \
19483 | sed -e "$gl_make_literal_regex_sed"`
19484 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19485 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19490 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19491 sed -n "$gl_absolute_header_sed"`'"'
19493 gl_cv_next_sys_time_h='<'sys/time.h'>'
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19499 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19501 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
19503 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19504 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19505 gl_next_as_first_directive='<'sys/time.h'>'
19507 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19508 gl_next_as_first_directive=$gl_cv_next_sys_time_h
19510 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
19516 if test $ac_cv_header_sys_time_h != yes; then
19530 if test $ac_cv_header_sys_socket_h != yes; then
19531 for ac_header in winsock2.h
19533 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19534 if test "x$ac_cv_header_winsock2_h" = xyes; then :
19535 cat >>confdefs.h <<_ACEOF
19536 #define HAVE_WINSOCK2_H 1
19544 if test "$ac_cv_header_winsock2_h" = yes; then
19546 UNISTD_H_HAVE_WINSOCK2_H=1
19547 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19554 $as_echo_n "checking for struct timeval... " >&6; }
19555 if ${gl_cv_sys_struct_timeval+:} false; then :
19556 $as_echo_n "(cached) " >&6
19558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19559 /* end confdefs.h. */
19560 #if HAVE_SYS_TIME_H
19561 #include <sys/time.h>
19564 #if HAVE_WINSOCK2_H
19565 # include <winsock2.h>
19571 static struct timeval x; x.tv_sec = x.tv_usec;
19576 if ac_fn_c_try_compile "$LINENO"; then :
19577 gl_cv_sys_struct_timeval=yes
19579 gl_cv_sys_struct_timeval=no
19581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19585 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19586 if test $gl_cv_sys_struct_timeval != yes; then
19587 HAVE_STRUCT_TIMEVAL=0
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19590 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19591 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
19592 $as_echo_n "(cached) " >&6
19594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19595 /* end confdefs.h. */
19596 #if HAVE_SYS_TIME_H
19597 #include <sys/time.h>
19600 #if HAVE_WINSOCK2_H
19601 # include <winsock2.h>
19607 static struct timeval x;
19608 typedef int verify_tv_sec_type[
19609 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19616 if ac_fn_c_try_compile "$LINENO"; then :
19617 gl_cv_sys_struct_timeval_tv_sec=yes
19619 gl_cv_sys_struct_timeval_tv_sec=no
19621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19625 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19626 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19627 REPLACE_STRUCT_TIMEVAL=1
19632 for gl_func in gettimeofday; do
19633 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19635 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19636 if eval \${$as_gl_Symbol+:} false; then :
19637 $as_echo_n "(cached) " >&6
19639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19640 /* end confdefs.h. */
19642 #if HAVE_SYS_TIME_H
19643 # include <sys/time.h>
19656 if ac_fn_c_try_compile "$LINENO"; then :
19657 eval "$as_gl_Symbol=yes"
19659 eval "$as_gl_Symbol=no"
19661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19663 eval ac_res=\$$as_gl_Symbol
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19665 $as_echo "$ac_res" >&6; }
19666 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19667 cat >>confdefs.h <<_ACEOF
19668 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19671 eval ac_cv_have_decl_$gl_func=yes
19680 WINDOWS_64_BIT_OFF_T=0
19694 if test $gl_cv_have_include_next = yes; then
19695 gl_cv_next_sys_types_h='<'sys/types.h'>'
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
19698 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
19699 if ${gl_cv_next_sys_types_h+:} false; then :
19700 $as_echo_n "(cached) " >&6
19703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19704 /* end confdefs.h. */
19705 #include <sys/types.h>
19709 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19710 *) gl_absname_cpp="$ac_cpp" ;;
19715 gl_dirsep_regex='[/\\]'
19718 gl_dirsep_regex='\/'
19721 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19723 gl_header_literal_regex=`echo 'sys/types.h' \
19724 | sed -e "$gl_make_literal_regex_sed"`
19725 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19726 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19731 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19732 sed -n "$gl_absolute_header_sed"`'"'
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
19737 $as_echo "$gl_cv_next_sys_types_h" >&6; }
19739 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
19741 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19742 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19743 gl_next_as_first_directive='<'sys/types.h'>'
19745 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19746 gl_next_as_first_directive=$gl_cv_next_sys_types_h
19748 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
19770 GNULIB_NANOSLEEP=0;
19774 HAVE_DECL_LOCALTIME_R=1;
19778 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19779 REPLACE_MKTIME=GNULIB_PORTCHECK;
19780 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19781 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19792 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19793 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
19794 $as_echo_n "(cached) " >&6
19796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19797 /* end confdefs.h. */
19803 static struct timespec x; x.tv_sec = x.tv_nsec;
19808 if ac_fn_c_try_compile "$LINENO"; then :
19809 gl_cv_sys_struct_timespec_in_time_h=yes
19811 gl_cv_sys_struct_timespec_in_time_h=no
19813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19816 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19818 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19819 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19820 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19821 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19822 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19825 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19826 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
19827 $as_echo_n "(cached) " >&6
19829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19830 /* end confdefs.h. */
19831 #include <sys/time.h>
19836 static struct timespec x; x.tv_sec = x.tv_nsec;
19841 if ac_fn_c_try_compile "$LINENO"; then :
19842 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19844 gl_cv_sys_struct_timespec_in_sys_time_h=no
19846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19849 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19850 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19851 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19854 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19855 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
19856 $as_echo_n "(cached) " >&6
19858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19859 /* end confdefs.h. */
19860 #include <pthread.h>
19865 static struct timespec x; x.tv_sec = x.tv_nsec;
19870 if ac_fn_c_try_compile "$LINENO"; then :
19871 gl_cv_sys_struct_timespec_in_pthread_h=yes
19873 gl_cv_sys_struct_timespec_in_pthread_h=no
19875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19878 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19879 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19880 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19899 if test $gl_cv_have_include_next = yes; then
19900 gl_cv_next_time_h='<'time.h'>'
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19903 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19904 if ${gl_cv_next_time_h+:} false; then :
19905 $as_echo_n "(cached) " >&6
19908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19909 /* end confdefs.h. */
19914 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19915 *) gl_absname_cpp="$ac_cpp" ;;
19920 gl_dirsep_regex='[/\\]'
19923 gl_dirsep_regex='\/'
19926 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19928 gl_header_literal_regex=`echo 'time.h' \
19929 | sed -e "$gl_make_literal_regex_sed"`
19930 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19931 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19936 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19937 sed -n "$gl_absolute_header_sed"`'"'
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19942 $as_echo "$gl_cv_next_time_h" >&6; }
19944 NEXT_TIME_H=$gl_cv_next_time_h
19946 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19947 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19948 gl_next_as_first_directive='<'time.h'>'
19950 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19951 gl_next_as_first_directive=$gl_cv_next_time_h
19953 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19961 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
19962 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
19968 cat >>confdefs.h <<_ACEOF
19969 #define HAVE_DECL_UNSETENV $ac_have_decl
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19980 $as_echo_n "checking for wint_t... " >&6; }
19981 if ${gt_cv_c_wint_t+:} false; then :
19982 $as_echo_n "(cached) " >&6
19984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19985 /* end confdefs.h. */
19987 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19989 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
19990 before <wchar.h>. */
19991 #include <stddef.h>
19995 wint_t foo = (wchar_t)'\0';
20004 if ac_fn_c_try_compile "$LINENO"; then :
20009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20012 $as_echo "$gt_cv_c_wint_t" >&6; }
20013 if test $gt_cv_c_wint_t = yes; then
20015 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20032 if test $ac_cv_header_features_h = yes; then
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20041 $as_echo_n "checking for inttypes.h... " >&6; }
20042 if ${gl_cv_header_inttypes_h+:} false; then :
20043 $as_echo_n "(cached) " >&6
20045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20046 /* end confdefs.h. */
20048 #include <sys/types.h>
20049 #include <inttypes.h>
20054 uintmax_t i = (uintmax_t) -1; return !i;
20059 if ac_fn_c_try_compile "$LINENO"; then :
20060 gl_cv_header_inttypes_h=yes
20062 gl_cv_header_inttypes_h=no
20064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
20067 $as_echo "$gl_cv_header_inttypes_h" >&6; }
20068 if test $gl_cv_header_inttypes_h = yes; then
20070 cat >>confdefs.h <<_ACEOF
20071 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
20078 $as_echo_n "checking for stdint.h... " >&6; }
20079 if ${gl_cv_header_stdint_h+:} false; then :
20080 $as_echo_n "(cached) " >&6
20082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20083 /* end confdefs.h. */
20084 #include <sys/types.h>
20085 #include <stdint.h>
20089 uintmax_t i = (uintmax_t) -1; return !i;
20094 if ac_fn_c_try_compile "$LINENO"; then :
20095 gl_cv_header_stdint_h=yes
20097 gl_cv_header_stdint_h=no
20099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
20102 $as_echo "$gl_cv_header_stdint_h" >&6; }
20103 if test $gl_cv_header_stdint_h = yes; then
20105 cat >>confdefs.h <<_ACEOF
20106 #define HAVE_STDINT_H_WITH_UINTMAX 1
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
20115 $as_echo_n "checking for intmax_t... " >&6; }
20116 if ${gt_cv_c_intmax_t+:} false; then :
20117 $as_echo_n "(cached) " >&6
20119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20120 /* end confdefs.h. */
20122 #include <stddef.h>
20123 #include <stdlib.h>
20124 #if HAVE_STDINT_H_WITH_UINTMAX
20125 #include <stdint.h>
20127 #if HAVE_INTTYPES_H_WITH_UINTMAX
20128 #include <inttypes.h>
20134 intmax_t x = -1; return !x;
20139 if ac_fn_c_try_compile "$LINENO"; then :
20140 gt_cv_c_intmax_t=yes
20142 gt_cv_c_intmax_t=no
20144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
20147 $as_echo "$gt_cv_c_intmax_t" >&6; }
20148 if test $gt_cv_c_intmax_t = yes; then
20150 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20154 test $ac_cv_type_long_long_int = yes \
20155 && ac_type='long long' \
20158 cat >>confdefs.h <<_ACEOF
20159 #define intmax_t $ac_type
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
20166 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
20167 if ${gl_cv_cc_double_expbit0+:} false; then :
20168 $as_echo_n "(cached) " >&6
20171 if test "$cross_compiling" = yes; then :
20173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20174 /* end confdefs.h. */
20176 #if defined arm || defined __arm || defined __arm__
20181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20182 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
20183 gl_cv_cc_double_expbit0="unknown"
20187 if ${ac_cv_c_bigendian+:} false; then :
20188 $as_echo_n "(cached) " >&6
20190 ac_cv_c_bigendian=unknown
20191 # See if we're dealing with a universal compiler.
20192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20193 /* end confdefs.h. */
20194 #ifndef __APPLE_CC__
20195 not a universal capable compiler
20200 if ac_fn_c_try_compile "$LINENO"; then :
20202 # Check for potential -arch flags. It is not universal unless
20203 # there are at least two -arch flags with different values.
20206 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20207 if test -n "$ac_prev"; then
20209 i?86 | x86_64 | ppc | ppc64)
20210 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20213 ac_cv_c_bigendian=universal
20219 elif test "x$ac_word" = "x-arch"; then
20224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20225 if test $ac_cv_c_bigendian = unknown; then
20226 # See if sys/param.h defines the BYTE_ORDER macro.
20227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20228 /* end confdefs.h. */
20229 #include <sys/types.h>
20230 #include <sys/param.h>
20235 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20236 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20238 bogus endian macros
20245 if ac_fn_c_try_compile "$LINENO"; then :
20246 # It does; now see whether it defined to BIG_ENDIAN or not.
20247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248 /* end confdefs.h. */
20249 #include <sys/types.h>
20250 #include <sys/param.h>
20255 #if BYTE_ORDER != BIG_ENDIAN
20263 if ac_fn_c_try_compile "$LINENO"; then :
20264 ac_cv_c_bigendian=yes
20266 ac_cv_c_bigendian=no
20268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20272 if test $ac_cv_c_bigendian = unknown; then
20273 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20275 /* end confdefs.h. */
20276 #include <limits.h>
20281 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20282 bogus endian macros
20289 if ac_fn_c_try_compile "$LINENO"; then :
20290 # It does; now see whether it defined to _BIG_ENDIAN or not.
20291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20292 /* end confdefs.h. */
20293 #include <limits.h>
20298 #ifndef _BIG_ENDIAN
20306 if ac_fn_c_try_compile "$LINENO"; then :
20307 ac_cv_c_bigendian=yes
20309 ac_cv_c_bigendian=no
20311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20315 if test $ac_cv_c_bigendian = unknown; then
20316 # Compile a test program.
20317 if test "$cross_compiling" = yes; then :
20318 # Try to guess by grepping values from an object file.
20319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20320 /* end confdefs.h. */
20321 short int ascii_mm[] =
20322 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20323 short int ascii_ii[] =
20324 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20325 int use_ascii (int i) {
20326 return ascii_mm[i] + ascii_ii[i];
20328 short int ebcdic_ii[] =
20329 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20330 short int ebcdic_mm[] =
20331 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20332 int use_ebcdic (int i) {
20333 return ebcdic_mm[i] + ebcdic_ii[i];
20340 return use_ascii (foo) == use_ebcdic (foo);
20345 if ac_fn_c_try_compile "$LINENO"; then :
20346 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20347 ac_cv_c_bigendian=yes
20349 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20350 if test "$ac_cv_c_bigendian" = unknown; then
20351 ac_cv_c_bigendian=no
20353 # finding both strings is unlikely to happen, but who knows?
20354 ac_cv_c_bigendian=unknown
20358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20361 /* end confdefs.h. */
20362 $ac_includes_default
20367 /* Are we little or big endian? From Harbison&Steele. */
20371 char c[sizeof (long int)];
20374 return u.c[sizeof (long int) - 1] == 1;
20380 if ac_fn_c_try_run "$LINENO"; then :
20381 ac_cv_c_bigendian=no
20383 ac_cv_c_bigendian=yes
20385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20386 conftest.$ac_objext conftest.beam conftest.$ac_ext
20392 case $ac_cv_c_bigendian in #(
20394 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
20396 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
20399 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20403 gl_cv_cc_double_expbit0="unknown" ;;
20412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20413 /* end confdefs.h. */
20416 #include <stddef.h>
20418 #include <string.h>
20420 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20421 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
20422 static unsigned int ored_words[NWORDS];
20423 static unsigned int anded_words[NWORDS];
20424 static void add_to_ored_words (double x)
20428 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
20429 memset (&m, 0, sizeof (memory_double));
20431 for (i = 0; i < NWORDS; i++)
20433 ored_words[i] |= m.word[i];
20434 anded_words[i] &= m.word[i];
20440 FILE *fp = fopen ("conftest.out", "w");
20443 for (j = 0; j < NWORDS; j++)
20444 anded_words[j] = ~ (unsigned int) 0;
20445 add_to_ored_words (0.25);
20446 add_to_ored_words (0.5);
20447 add_to_ored_words (1.0);
20448 add_to_ored_words (2.0);
20449 add_to_ored_words (4.0);
20450 /* Remove bits that are common (e.g. if representation of the first mantissa
20451 bit is explicit). */
20452 for (j = 0; j < NWORDS; j++)
20453 ored_words[j] &= ~anded_words[j];
20454 /* Now find the nonzero word. */
20455 for (j = 0; j < NWORDS; j++)
20456 if (ored_words[j] != 0)
20461 for (i = j + 1; i < NWORDS; i++)
20462 if (ored_words[i] != 0)
20464 fprintf (fp, "unknown");
20465 return (fclose (fp) != 0);
20468 if ((ored_words[j] >> i) & 1)
20470 fprintf (fp, "word %d bit %d", (int) j, (int) i);
20471 return (fclose (fp) != 0);
20474 fprintf (fp, "unknown");
20475 return (fclose (fp) != 0);
20479 if ac_fn_c_try_run "$LINENO"; then :
20480 gl_cv_cc_double_expbit0=`cat conftest.out`
20482 gl_cv_cc_double_expbit0="unknown"
20484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20485 conftest.$ac_objext conftest.beam conftest.$ac_ext
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
20492 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
20493 case "$gl_cv_cc_double_expbit0" in
20495 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20496 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
20498 cat >>confdefs.h <<_ACEOF
20499 #define DBL_EXPBIT0_WORD $word
20503 cat >>confdefs.h <<_ACEOF
20504 #define DBL_EXPBIT0_BIT $bit
20515 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
20517 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20518 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20519 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20520 cat >>confdefs.h <<_ACEOF
20521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20527 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
20529 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
20535 cat >>confdefs.h <<_ACEOF
20536 #define HAVE_DECL__SNPRINTF $ac_have_decl
20541 case "$gl_cv_func_snprintf_retval_c99" in
20544 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
20555 GNULIB_MBSRTOWCS=0;
20556 GNULIB_MBSNRTOWCS=0;
20558 GNULIB_WCSRTOMBS=0;
20559 GNULIB_WCSNRTOMBS=0;
20576 GNULIB_WCSCASECMP=0;
20577 GNULIB_WCSNCASECMP=0;
20614 HAVE_WCSNCASECMP=1;
20627 HAVE_DECL_WCWIDTH=1;
20628 REPLACE_MBSTATE_T=0;
20634 REPLACE_MBSRTOWCS=0;
20635 REPLACE_MBSNRTOWCS=0;
20637 REPLACE_WCSRTOMBS=0;
20638 REPLACE_WCSNRTOMBS=0;
20640 REPLACE_WCSWIDTH=0;
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
20644 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
20645 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
20646 $as_echo_n "(cached) " >&6
20648 gl_cv_header_wchar_h_correct_inline=yes
20649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20650 /* end confdefs.h. */
20652 #define wcstod renamed_wcstod
20653 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20655 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20656 included before <wchar.h>. */
20657 #include <stddef.h>
20661 extern int zero (void);
20662 int main () { return zero(); }
20665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20666 (eval $ac_compile) 2>&5
20668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20669 test $ac_status = 0; }; then
20670 mv conftest.$ac_objext conftest1.$ac_objext
20671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20672 /* end confdefs.h. */
20674 #define wcstod renamed_wcstod
20675 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20677 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20678 included before <wchar.h>. */
20679 #include <stddef.h>
20683 int zero (void) { return 0; }
20686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20687 (eval $ac_compile) 2>&5
20689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20690 test $ac_status = 0; }; then
20691 mv conftest.$ac_objext conftest2.$ac_objext
20692 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
20695 gl_cv_header_wchar_h_correct_inline=no
20699 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
20703 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
20704 if test $gl_cv_header_wchar_h_correct_inline = no; then
20705 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
20706 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
20707 C99 mode. You have four options:
20708 - Add the flag -fgnu89-inline to CC and reconfigure, or
20709 - Fix your include files, using parts of
20710 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
20711 - Use a gcc version older than 4.3, or
20712 - Don't use the flags -std=c99 or -std=gnu99.
20713 Configuration aborted." "$LINENO" 5
20718 GL_COND_LIBTOOL_TRUE=
20719 GL_COND_LIBTOOL_FALSE='#'
20721 GL_COND_LIBTOOL_TRUE='#'
20722 GL_COND_LIBTOOL_FALSE=
20725 gl_cond_libtool=true
20726 gl_m4_base='gnulib/m4'
20736 gl_source_base='gnulib/lib'
20739 if test $ac_cv_func_alloca_works = no; then
20743 # Define an additional variable used in the Makefile substitution.
20744 if test $ac_cv_working_alloca_h = yes; then
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20746 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20747 if ${gl_cv_rpl_alloca+:} false; then :
20748 $as_echo_n "(cached) " >&6
20751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752 /* end confdefs.h. */
20754 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20760 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20761 gl_cv_rpl_alloca=yes
20763 gl_cv_rpl_alloca=no
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20770 $as_echo "$gl_cv_rpl_alloca" >&6; }
20771 if test $gl_cv_rpl_alloca = yes; then
20773 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20783 if test -n "$ALLOCA_H"; then
20784 GL_GENERATE_ALLOCA_H_TRUE=
20785 GL_GENERATE_ALLOCA_H_FALSE='#'
20787 GL_GENERATE_ALLOCA_H_TRUE='#'
20788 GL_GENERATE_ALLOCA_H_FALSE=
20797 cat >>confdefs.h <<_ACEOF
20798 #define GNULIB_DIRNAME 1
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
20809 $as_echo_n "checking whether // is distinct from /... " >&6; }
20810 if ${gl_cv_double_slash_root+:} false; then :
20811 $as_echo_n "(cached) " >&6
20813 if test x"$cross_compiling" = xyes ; then
20814 # When cross-compiling, there is no way to tell whether // is special
20815 # short of a list of hosts. However, the only known hosts to date
20816 # that have a distinct // are Apollo DomainOS (too old to port to),
20817 # Cygwin, and z/OS. If anyone knows of another system for which // has
20818 # special semantics and is distinct from /, please report it to
20819 # <bug-gnulib@gnu.org>.
20821 *-cygwin | i370-ibm-openedition)
20822 gl_cv_double_slash_root=yes ;;
20824 # Be optimistic and assume that / and // are the same when we
20826 gl_cv_double_slash_root='unknown, assuming no' ;;
20829 set x `ls -di / // 2>/dev/null`
20830 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
20831 gl_cv_double_slash_root=no
20833 gl_cv_double_slash_root=yes
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
20838 $as_echo "$gl_cv_double_slash_root" >&6; }
20839 if test "$gl_cv_double_slash_root" = yes; then
20841 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
20857 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
20864 $as_echo_n "checking for error_at_line... " >&6; }
20865 if ${ac_cv_lib_error_at_line+:} false; then :
20866 $as_echo_n "(cached) " >&6
20868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20869 /* end confdefs.h. */
20874 error_at_line (0, 0, "", 0, "an error occurred");
20879 if ac_fn_c_try_link "$LINENO"; then :
20880 ac_cv_lib_error_at_line=yes
20882 ac_cv_lib_error_at_line=no
20884 rm -f core conftest.err conftest.$ac_objext \
20885 conftest$ac_exeext conftest.$ac_ext
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
20888 $as_echo "$ac_cv_lib_error_at_line" >&6; }
20890 if test $ac_cv_lib_error_at_line = no; then
20899 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
20908 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
20912 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
20919 REPLACE_FLOAT_LDBL=0
20921 aix* | beos* | openbsd* | mirbsd* | irix*)
20925 case "$host_cpu" in
20930 # On x86_64 systems, the C compiler may still be generating
20932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20933 /* end confdefs.h. */
20934 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
20938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20939 $EGREP "yes" >/dev/null 2>&1; then :
20950 case "$host_cpu" in
20958 aix* | freebsd* | linux*)
20959 if test -n "$FLOAT_H"; then
20960 REPLACE_FLOAT_LDBL=1
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
20967 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
20968 if ${gl_cv_func_itold_works+:} false; then :
20969 $as_echo_n "(cached) " >&6
20972 if test "$cross_compiling" = yes; then :
20975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20976 /* end confdefs.h. */
20977 #if defined __LP64__ || defined __arch64__
20981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20982 $EGREP "yes" >/dev/null 2>&1; then :
20983 gl_cv_func_itold_works="guessing no"
20985 gl_cv_func_itold_works="guessing yes"
20990 *) gl_cv_func_itold_works="guessing yes" ;;
20994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20995 /* end confdefs.h. */
20998 volatile long double ld;
21007 if ac_fn_c_try_run "$LINENO"; then :
21008 gl_cv_func_itold_works=yes
21010 gl_cv_func_itold_works=no
21012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21013 conftest.$ac_objext conftest.beam conftest.$ac_ext
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
21019 $as_echo "$gl_cv_func_itold_works" >&6; }
21020 case "$gl_cv_func_itold_works" in
21027 if test -n "$FLOAT_H"; then
21036 if test $gl_cv_have_include_next = yes; then
21037 gl_cv_next_float_h='<'float.h'>'
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
21040 $as_echo_n "checking absolute name of <float.h>... " >&6; }
21041 if ${gl_cv_next_float_h+:} false; then :
21042 $as_echo_n "(cached) " >&6
21045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21046 /* end confdefs.h. */
21051 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21052 *) gl_absname_cpp="$ac_cpp" ;;
21057 gl_dirsep_regex='[/\\]'
21060 gl_dirsep_regex='\/'
21063 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21065 gl_header_literal_regex=`echo 'float.h' \
21066 | sed -e "$gl_make_literal_regex_sed"`
21067 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21068 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21073 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21074 sed -n "$gl_absolute_header_sed"`'"'
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
21079 $as_echo "$gl_cv_next_float_h" >&6; }
21081 NEXT_FLOAT_H=$gl_cv_next_float_h
21083 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21084 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21085 gl_next_as_first_directive='<'float.h'>'
21087 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21088 gl_next_as_first_directive=$gl_cv_next_float_h
21090 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
21097 if test -n "$FLOAT_H"; then
21098 GL_GENERATE_FLOAT_H_TRUE=
21099 GL_GENERATE_FLOAT_H_FALSE='#'
21101 GL_GENERATE_FLOAT_H_TRUE='#'
21102 GL_GENERATE_FLOAT_H_FALSE=
21107 if test $REPLACE_FLOAT_LDBL = 1; then
21116 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
21119 if test $REPLACE_ITOLD = 1; then
21128 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
21135 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
21136 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
21137 $as_echo_n "(cached) " >&6
21139 gl_cv_prog_c_ignore_unused_libraries=none
21140 gl_saved_ldflags=$LDFLAGS
21141 gl_saved_libs=$LIBS
21142 # Link with -lm to detect binutils 2.16 bug with --as-needed; see
21143 # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
21145 # Use long option sequences like '-z ignore' to test for the feature,
21146 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
21147 # GCC + binutils likes '-Wl,--as-needed'.
21148 # GCC + Solaris ld likes '-Wl,-z,ignore'.
21149 # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
21150 # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
21151 # native cc issues annoying warnings and then ignores it,
21152 # which would cause us to incorrectly conclude that it worked.
21153 for gl_flags in '-Wl,--as-needed' \
21158 LDFLAGS="$gl_flags $LDFLAGS"
21159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21160 /* end confdefs.h. */
21170 if ac_fn_c_try_link "$LINENO"; then :
21171 gl_cv_prog_c_ignore_unused_libraries=$gl_flags
21173 rm -f core conftest.err conftest.$ac_objext \
21174 conftest$ac_exeext conftest.$ac_ext
21175 LDFLAGS=$gl_saved_ldflags
21176 test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
21179 LIBS=$gl_saved_libs
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
21183 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
21184 IGNORE_UNUSED_LIBRARIES_CFLAGS=
21185 if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
21186 IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
21192 if test "$gl_threads_api" = posix; then
21193 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
21194 # pthread_rwlock_* functions.
21195 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
21197 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
21199 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
21203 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
21204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205 /* end confdefs.h. */
21207 #include <pthread.h>
21212 #if __FreeBSD__ == 4
21213 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
21214 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
21215 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
21216 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
21218 int x = (int)PTHREAD_MUTEX_RECURSIVE;
21226 if ac_fn_c_try_compile "$LINENO"; then :
21228 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
21231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237 cat >>confdefs.h <<_ACEOF
21238 #define GNULIB_LOCK 1
21245 if test $gl_cv_func_malloc_posix = yes; then
21247 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
21253 if test $REPLACE_MALLOC = 1; then
21262 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
21270 GNULIB_MALLOC_POSIX=1
21276 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
21285 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
21294 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
21297 for ac_header in bp-sym.h
21299 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21300 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
21301 cat >>confdefs.h <<_ACEOF
21302 #define HAVE_BP_SYM_H 1
21322 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21334 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
21335 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
21337 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
21340 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
21344 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21353 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
21359 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21368 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
21376 for ac_func in raise
21378 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
21379 if test "x$ac_cv_func_raise" = xyes; then :
21380 cat >>confdefs.h <<_ACEOF
21381 #define HAVE_RAISE 1
21387 if test $ac_cv_func_raise = no; then
21390 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21397 if test $gl_cv_type_sigset_t = yes; then
21398 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21399 if test "x$ac_cv_func_sigprocmask" = xyes; then :
21400 gl_cv_func_sigprocmask=1
21404 if test -z "$gl_cv_func_sigprocmask"; then
21405 HAVE_POSIX_SIGNALBLOCKING=0
21408 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21414 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
21423 gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
21438 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
21445 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21450 if test $REPLACE_READ = 1; then
21459 gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
21474 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
21488 if test $ac_cv_func_setenv = no; then
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
21492 $as_echo_n "checking whether setenv validates arguments... " >&6; }
21493 if ${gl_cv_func_setenv_works+:} false; then :
21494 $as_echo_n "(cached) " >&6
21496 if test "$cross_compiling" = yes; then :
21498 # Guess yes on glibc systems.
21499 *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
21500 # If we don't know, assume the worst.
21501 *) gl_cv_func_setenv_works="guessing no" ;;
21505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21506 /* end confdefs.h. */
21508 #include <stdlib.h>
21510 #include <string.h>
21518 if (setenv ("", "", 0) != -1)
21520 else if (errno != EINVAL)
21524 if (setenv ("a", "=", 1) != 0)
21526 else if (strcmp (getenv ("a"), "=") != 0)
21535 if ac_fn_c_try_run "$LINENO"; then :
21536 gl_cv_func_setenv_works=yes
21538 gl_cv_func_setenv_works=no
21540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21541 conftest.$ac_objext conftest.beam conftest.$ac_ext
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
21546 $as_echo "$gl_cv_func_setenv_works" >&6; }
21547 case "$gl_cv_func_setenv_works" in
21555 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
21564 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
21578 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
21591 if test $ac_cv_func_sigaction = yes; then
21592 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
21594 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
21596 cat >>confdefs.h <<_ACEOF
21597 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
21603 if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
21604 HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
21610 if test $HAVE_SIGACTION = 0; then
21619 gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
21636 ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
21637 #include <signal.h>
21640 if test "x$ac_cv_type_siginfo_t" = xyes; then :
21642 cat >>confdefs.h <<_ACEOF
21643 #define HAVE_SIGINFO_T 1
21649 if test $ac_cv_type_siginfo_t = no; then
21665 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
21680 if test $gl_cv_have_include_next = yes; then
21681 gl_cv_next_signal_h='<'signal.h'>'
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21684 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21685 if ${gl_cv_next_signal_h+:} false; then :
21686 $as_echo_n "(cached) " >&6
21689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21690 /* end confdefs.h. */
21691 #include <signal.h>
21695 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21696 *) gl_absname_cpp="$ac_cpp" ;;
21701 gl_dirsep_regex='[/\\]'
21704 gl_dirsep_regex='\/'
21707 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21709 gl_header_literal_regex=`echo 'signal.h' \
21710 | sed -e "$gl_make_literal_regex_sed"`
21711 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21712 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21717 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21718 sed -n "$gl_absolute_header_sed"`'"'
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21723 $as_echo "$gl_cv_next_signal_h" >&6; }
21725 NEXT_SIGNAL_H=$gl_cv_next_signal_h
21727 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21728 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21729 gl_next_as_first_directive='<'signal.h'>'
21731 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21732 gl_next_as_first_directive=$gl_cv_next_signal_h
21734 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
21740 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21741 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21742 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21743 #include <signal.h>
21746 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
21749 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
21758 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21759 #include <signal.h>
21762 if test "x$ac_cv_type_sighandler_t" = xyes; then :
21765 HAVE_SIGHANDLER_T=0
21770 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
21771 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21773 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21774 if eval \${$as_gl_Symbol+:} false; then :
21775 $as_echo_n "(cached) " >&6
21777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21778 /* end confdefs.h. */
21779 #include <signal.h>
21790 if ac_fn_c_try_compile "$LINENO"; then :
21791 eval "$as_gl_Symbol=yes"
21793 eval "$as_gl_Symbol=no"
21795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797 eval ac_res=\$$as_gl_Symbol
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21799 $as_echo "$ac_res" >&6; }
21800 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21801 cat >>confdefs.h <<_ACEOF
21802 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21805 eval ac_cv_have_decl_$gl_func=yes
21813 if test $gl_cv_type_sigset_t = yes; then
21814 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21815 if test "x$ac_cv_func_sigprocmask" = xyes; then :
21816 gl_cv_func_sigprocmask=1
21820 if test -z "$gl_cv_func_sigprocmask"; then
21821 HAVE_POSIX_SIGNALBLOCKING=0
21824 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21833 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21842 GNULIB_SIGPROCMASK=1
21848 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
21853 for ac_header in stdint.h
21855 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21856 if test "x$ac_cv_header_stdint_h" = xyes; then :
21857 cat >>confdefs.h <<_ACEOF
21858 #define HAVE_STDINT_H 1
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
21866 $as_echo_n "checking for SIZE_MAX... " >&6; }
21867 if ${gl_cv_size_max+:} false; then :
21868 $as_echo_n "(cached) " >&6
21872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21873 /* end confdefs.h. */
21875 #include <limits.h>
21877 #include <stdint.h>
21884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21885 $EGREP "Found it" >/dev/null 2>&1; then :
21890 if test -z "$gl_cv_size_max"; then
21891 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
21892 #include <limits.h>"; then :
21895 size_t_bits_minus_1=
21898 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
21904 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
21905 if test $fits_in_uint = 1; then
21906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21907 /* end confdefs.h. */
21908 #include <stddef.h>
21910 extern unsigned long foo;
21920 if ac_fn_c_try_compile "$LINENO"; then :
21923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21925 if test $fits_in_uint = 1; then
21926 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
21928 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
21931 gl_cv_size_max='((size_t)~(size_t)0)'
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
21937 $as_echo "$gl_cv_size_max" >&6; }
21938 if test "$gl_cv_size_max" != yes; then
21940 cat >>confdefs.h <<_ACEOF
21941 #define SIZE_MAX $gl_cv_size_max
21949 gl_cv_func_snprintf_usable=no
21950 for ac_func in snprintf
21952 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
21953 if test "x$ac_cv_func_snprintf" = xyes; then :
21954 cat >>confdefs.h <<_ACEOF
21955 #define HAVE_SNPRINTF 1
21961 if test $ac_cv_func_snprintf = yes; then
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
21966 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
21967 if ${gl_cv_func_snprintf_size1+:} false; then :
21968 $as_echo_n "(cached) " >&6
21971 if test "$cross_compiling" = yes; then :
21972 gl_cv_func_snprintf_size1="guessing yes"
21974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21975 /* end confdefs.h. */
21979 # define my_snprintf snprintf
21981 # include <stdarg.h>
21982 static int my_snprintf (char *buf, int size, const char *format, ...)
21986 va_start (args, format);
21987 ret = vsnprintf (buf, size, format, args);
21994 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
21995 my_snprintf (buf, 1, "%d", 12345);
21996 return buf[1] != 'E';
21999 if ac_fn_c_try_run "$LINENO"; then :
22000 gl_cv_func_snprintf_size1=yes
22002 gl_cv_func_snprintf_size1=no
22004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22005 conftest.$ac_objext conftest.beam conftest.$ac_ext
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
22011 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
22013 case "$gl_cv_func_snprintf_size1" in
22016 case "$gl_cv_func_snprintf_retval_c99" in
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
22021 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
22022 if ${gl_cv_func_printf_positions+:} false; then :
22023 $as_echo_n "(cached) " >&6
22026 if test "$cross_compiling" = yes; then :
22029 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
22030 gl_cv_func_printf_positions="guessing no";;
22031 beos*) gl_cv_func_printf_positions="guessing no";;
22032 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
22033 *) gl_cv_func_printf_positions="guessing yes";;
22037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22038 /* end confdefs.h. */
22041 #include <string.h>
22042 /* The string "%2$d %1$d", with dollar characters protected from the shell's
22043 dollar expansion (possibly an autoconf bug). */
22044 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22045 static char buf[100];
22048 sprintf (buf, format, 33, 55);
22049 return (strcmp (buf, "55 33") != 0);
22052 if ac_fn_c_try_run "$LINENO"; then :
22053 gl_cv_func_printf_positions=yes
22055 gl_cv_func_printf_positions=no
22057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22058 conftest.$ac_objext conftest.beam conftest.$ac_ext
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
22064 $as_echo "$gl_cv_func_printf_positions" >&6; }
22066 case "$gl_cv_func_printf_positions" in
22068 gl_cv_func_snprintf_usable=yes
22076 if test $gl_cv_func_snprintf_usable = no; then
22087 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
22089 if test $ac_cv_func_snprintf = yes; then
22102 if test $ac_cv_have_decl_snprintf = no; then
22103 HAVE_DECL_SNPRINTF=0
22117 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
22123 cat >>confdefs.h <<_ACEOF
22124 #define GNULIB_SNPRINTF 1
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22130 $as_echo_n "checking for ssize_t... " >&6; }
22131 if ${gt_cv_ssize_t+:} false; then :
22132 $as_echo_n "(cached) " >&6
22134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22135 /* end confdefs.h. */
22136 #include <sys/types.h>
22140 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22146 if ac_fn_c_try_compile "$LINENO"; then :
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22154 $as_echo "$gt_cv_ssize_t" >&6; }
22155 if test $gt_cv_ssize_t = no; then
22157 $as_echo "#define ssize_t int" >>confdefs.h
22163 NEXT_STDARG_H='<stdarg.h>'
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22165 $as_echo_n "checking for va_copy... " >&6; }
22166 if ${gl_cv_func_va_copy+:} false; then :
22167 $as_echo_n "(cached) " >&6
22170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22171 /* end confdefs.h. */
22172 #include <stdarg.h>
22178 void (*func) (va_list, va_list) = va_copy;
22185 if ac_fn_c_try_compile "$LINENO"; then :
22186 gl_cv_func_va_copy=yes
22188 gl_cv_func_va_copy=no
22190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22194 $as_echo "$gl_cv_func_va_copy" >&6; }
22195 if test $gl_cv_func_va_copy = no; then
22196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22197 /* end confdefs.h. */
22198 #if defined _AIX && !defined __GNUC__
22203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22204 $EGREP "vaccine" >/dev/null 2>&1; then :
22211 if test $gl_aixcc = yes; then
22221 if test $gl_cv_have_include_next = yes; then
22222 gl_cv_next_stdarg_h='<'stdarg.h'>'
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22225 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22226 if ${gl_cv_next_stdarg_h+:} false; then :
22227 $as_echo_n "(cached) " >&6
22230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22231 /* end confdefs.h. */
22232 #include <stdarg.h>
22236 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22237 *) gl_absname_cpp="$ac_cpp" ;;
22242 gl_dirsep_regex='[/\\]'
22245 gl_dirsep_regex='\/'
22248 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22250 gl_header_literal_regex=`echo 'stdarg.h' \
22251 | sed -e "$gl_make_literal_regex_sed"`
22252 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22253 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22258 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22259 sed -n "$gl_absolute_header_sed"`'"'
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22264 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22266 NEXT_STDARG_H=$gl_cv_next_stdarg_h
22268 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22269 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22270 gl_next_as_first_directive='<'stdarg.h'>'
22272 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22273 gl_next_as_first_directive=$gl_cv_next_stdarg_h
22275 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
22280 if test "$gl_cv_next_stdarg_h" = '""'; then
22281 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
22282 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
22286 saved_as_echo_n="$as_echo_n"
22288 if ${gl_cv_func___va_copy+:} false; then :
22289 $as_echo_n "(cached) " >&6
22292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22293 /* end confdefs.h. */
22294 #include <stdarg.h>
22307 if ac_fn_c_try_compile "$LINENO"; then :
22308 gl_cv_func___va_copy=yes
22310 gl_cv_func___va_copy=no
22312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22315 as_echo_n="$saved_as_echo_n"
22317 if test $gl_cv_func___va_copy = yes; then
22319 $as_echo "#define va_copy __va_copy" >>confdefs.h
22324 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22330 if test -n "$STDARG_H"; then
22331 GL_GENERATE_STDARG_H_TRUE=
22332 GL_GENERATE_STDARG_H_FALSE='#'
22334 GL_GENERATE_STDARG_H_TRUE='#'
22335 GL_GENERATE_STDARG_H_FALSE=
22343 # Define two additional variables used in the Makefile substitution.
22345 if test "$ac_cv_header_stdbool_h" = yes; then
22348 STDBOOL_H='stdbool.h'
22351 if test -n "$STDBOOL_H"; then
22352 GL_GENERATE_STDBOOL_H_TRUE=
22353 GL_GENERATE_STDBOOL_H_FALSE='#'
22355 GL_GENERATE_STDBOOL_H_TRUE='#'
22356 GL_GENERATE_STDBOOL_H_FALSE=
22360 if test "$ac_cv_type__Bool" = yes; then
22371 if test $gt_cv_c_wchar_t = no; then
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22376 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22377 if ${gl_cv_decl_null_works+:} false; then :
22378 $as_echo_n "(cached) " >&6
22380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22381 /* end confdefs.h. */
22382 #include <stddef.h>
22383 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22393 if ac_fn_c_try_compile "$LINENO"; then :
22394 gl_cv_decl_null_works=yes
22396 gl_cv_decl_null_works=no
22398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22401 $as_echo "$gl_cv_decl_null_works" >&6; }
22402 if test $gl_cv_decl_null_works = no; then
22407 if test -n "$STDDEF_H"; then
22408 GL_GENERATE_STDDEF_H_TRUE=
22409 GL_GENERATE_STDDEF_H_FALSE='#'
22411 GL_GENERATE_STDDEF_H_TRUE='#'
22412 GL_GENERATE_STDDEF_H_FALSE=
22415 if test -n "$STDDEF_H"; then
22424 if test $gl_cv_have_include_next = yes; then
22425 gl_cv_next_stddef_h='<'stddef.h'>'
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22428 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22429 if ${gl_cv_next_stddef_h+:} false; then :
22430 $as_echo_n "(cached) " >&6
22433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22434 /* end confdefs.h. */
22435 #include <stddef.h>
22439 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22440 *) gl_absname_cpp="$ac_cpp" ;;
22445 gl_dirsep_regex='[/\\]'
22448 gl_dirsep_regex='\/'
22451 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22453 gl_header_literal_regex=`echo 'stddef.h' \
22454 | sed -e "$gl_make_literal_regex_sed"`
22455 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22456 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22461 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22462 sed -n "$gl_absolute_header_sed"`'"'
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22467 $as_echo "$gl_cv_next_stddef_h" >&6; }
22469 NEXT_STDDEF_H=$gl_cv_next_stddef_h
22471 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22472 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22473 gl_next_as_first_directive='<'stddef.h'>'
22475 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22476 gl_next_as_first_directive=$gl_cv_next_stddef_h
22478 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22496 if test $gl_cv_have_include_next = yes; then
22497 gl_cv_next_stdio_h='<'stdio.h'>'
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22500 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22501 if ${gl_cv_next_stdio_h+:} false; then :
22502 $as_echo_n "(cached) " >&6
22505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22506 /* end confdefs.h. */
22511 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22512 *) gl_absname_cpp="$ac_cpp" ;;
22517 gl_dirsep_regex='[/\\]'
22520 gl_dirsep_regex='\/'
22523 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22525 gl_header_literal_regex=`echo 'stdio.h' \
22526 | sed -e "$gl_make_literal_regex_sed"`
22527 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22528 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22533 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22534 sed -n "$gl_absolute_header_sed"`'"'
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22539 $as_echo "$gl_cv_next_stdio_h" >&6; }
22541 NEXT_STDIO_H=$gl_cv_next_stdio_h
22543 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22544 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22545 gl_next_as_first_directive='<'stdio.h'>'
22547 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22548 gl_next_as_first_directive=$gl_cv_next_stdio_h
22550 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
22559 cat >>confdefs.h <<_ACEOF
22560 #define GNULIB_FSCANF 1
22567 cat >>confdefs.h <<_ACEOF
22568 #define GNULIB_SCANF 1
22593 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
22594 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22596 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22597 if eval \${$as_gl_Symbol+:} false; then :
22598 $as_echo_n "(cached) " >&6
22600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22601 /* end confdefs.h. */
22613 if ac_fn_c_try_compile "$LINENO"; then :
22614 eval "$as_gl_Symbol=yes"
22616 eval "$as_gl_Symbol=no"
22618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22620 eval ac_res=\$$as_gl_Symbol
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22622 $as_echo "$ac_res" >&6; }
22623 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22624 cat >>confdefs.h <<_ACEOF
22625 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22628 eval ac_cv_have_decl_$gl_func=yes
22643 if test $gl_cv_have_include_next = yes; then
22644 gl_cv_next_stdlib_h='<'stdlib.h'>'
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22647 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22648 if ${gl_cv_next_stdlib_h+:} false; then :
22649 $as_echo_n "(cached) " >&6
22652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22653 /* end confdefs.h. */
22654 #include <stdlib.h>
22658 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22659 *) gl_absname_cpp="$ac_cpp" ;;
22664 gl_dirsep_regex='[/\\]'
22667 gl_dirsep_regex='\/'
22670 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22672 gl_header_literal_regex=`echo 'stdlib.h' \
22673 | sed -e "$gl_make_literal_regex_sed"`
22674 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22675 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22680 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22681 sed -n "$gl_absolute_header_sed"`'"'
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22686 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22688 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
22690 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22691 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22692 gl_next_as_first_directive='<'stdlib.h'>'
22694 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22695 gl_next_as_first_directive=$gl_cv_next_stdlib_h
22697 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
22704 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
22705 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22707 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22708 if eval \${$as_gl_Symbol+:} false; then :
22709 $as_echo_n "(cached) " >&6
22711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22712 /* end confdefs.h. */
22713 #include <stdlib.h>
22714 #if HAVE_SYS_LOADAVG_H
22715 # include <sys/loadavg.h>
22718 # include <random.h>
22730 if ac_fn_c_try_compile "$LINENO"; then :
22731 eval "$as_gl_Symbol=yes"
22733 eval "$as_gl_Symbol=no"
22735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22737 eval ac_res=\$$as_gl_Symbol
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22739 $as_echo "$ac_res" >&6; }
22740 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22741 cat >>confdefs.h <<_ACEOF
22742 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22745 eval ac_cv_have_decl_$gl_func=yes
22755 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
22757 $as_echo_n "checking for working strerror function... " >&6; }
22758 if ${gl_cv_func_working_strerror+:} false; then :
22759 $as_echo_n "(cached) " >&6
22761 if test "$cross_compiling" = yes; then :
22763 # Guess yes on glibc systems.
22764 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
22765 # If we don't know, assume the worst.
22766 *) gl_cv_func_working_strerror="guessing no" ;;
22770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22771 /* end confdefs.h. */
22772 #include <string.h>
22777 if (!*strerror (-2)) return 1;
22782 if ac_fn_c_try_run "$LINENO"; then :
22783 gl_cv_func_working_strerror=yes
22785 gl_cv_func_working_strerror=no
22787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22788 conftest.$ac_objext conftest.beam conftest.$ac_ext
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
22794 $as_echo "$gl_cv_func_working_strerror" >&6; }
22795 case "$gl_cv_func_working_strerror" in
22806 if test $REPLACE_STRERROR = 1; then
22815 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
22820 cat >>confdefs.h <<_ACEOF
22821 #define GNULIB_STRERROR 1
22836 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
22842 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
22851 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
22863 if test $ac_cv_header_sys_socket_h != yes; then
22864 for ac_header in winsock2.h
22866 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22867 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22868 cat >>confdefs.h <<_ACEOF
22869 #define HAVE_WINSOCK2_H 1
22877 if test "$ac_cv_header_winsock2_h" = yes; then
22879 UNISTD_H_HAVE_WINSOCK2_H=1
22880 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22908 if test $ac_cv_have_decl_strndup = no; then
22909 HAVE_DECL_STRNDUP=0
22912 if test $ac_cv_func_strndup = yes; then
22914 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
22916 $as_echo_n "checking for working strndup... " >&6; }
22917 if ${gl_cv_func_strndup_works+:} false; then :
22918 $as_echo_n "(cached) " >&6
22920 if test "$cross_compiling" = yes; then :
22923 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
22924 *) gl_cv_func_strndup_works="guessing yes";;
22928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22929 /* end confdefs.h. */
22931 #include <string.h>
22932 #include <stdlib.h>
22937 #if !HAVE_DECL_STRNDUP
22942 char *strndup (const char *, size_t);
22945 s = strndup ("some longer string", 15);
22947 s = strndup ("shorter string", 13);
22948 return s[13] != '\0';
22953 if ac_fn_c_try_run "$LINENO"; then :
22954 gl_cv_func_strndup_works=yes
22956 gl_cv_func_strndup_works=no
22958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22959 conftest.$ac_objext conftest.beam conftest.$ac_ext
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
22964 $as_echo "$gl_cv_func_strndup_works" >&6; }
22965 case $gl_cv_func_strndup_works in
22966 *no) REPLACE_STRNDUP=1 ;;
22972 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
22981 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
22995 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
23011 if test $ac_cv_have_decl_strnlen = no; then
23012 HAVE_DECL_STRNLEN=0
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
23016 $as_echo_n "checking for working strnlen... " >&6; }
23017 if ${ac_cv_func_strnlen_working+:} false; then :
23018 $as_echo_n "(cached) " >&6
23020 if test "$cross_compiling" = yes; then :
23021 # Guess no on AIX systems, yes otherwise.
23023 aix*) ac_cv_func_strnlen_working=no;;
23024 *) ac_cv_func_strnlen_working=yes;;
23027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h. */
23029 $ac_includes_default
23035 #define S_LEN (sizeof S - 1)
23037 /* At least one implementation is buggy: that of AIX 4.3 would
23038 give strnlen (S, 1) == 3. */
23041 for (i = 0; i < S_LEN + 1; ++i)
23043 int expected = i <= S_LEN ? i : S_LEN;
23044 if (strnlen (S, i) != expected)
23053 if ac_fn_c_try_run "$LINENO"; then :
23054 ac_cv_func_strnlen_working=yes
23056 ac_cv_func_strnlen_working=no
23058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23059 conftest.$ac_objext conftest.beam conftest.$ac_ext
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
23064 $as_echo "$ac_cv_func_strnlen_working" >&6; }
23065 test $ac_cv_func_strnlen_working = no && :
23068 if test $ac_cv_func_strnlen_working = no; then
23073 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
23082 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
23097 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
23113 if test $ac_cv_have_decl_strsignal = no; then
23114 HAVE_DECL_STRSIGNAL=0
23117 for ac_func in strsignal
23119 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
23120 if test "x$ac_cv_func_strsignal" = xyes; then :
23121 cat >>confdefs.h <<_ACEOF
23122 #define HAVE_STRSIGNAL 1
23128 if test $ac_cv_func_strsignal = yes; then
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
23131 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
23132 if ${gl_cv_func_working_strsignal+:} false; then :
23133 $as_echo_n "(cached) " >&6
23135 if test "$cross_compiling" = yes; then :
23137 solaris* | aix*) gl_cv_func_working_strsignal=no;;
23138 *) gl_cv_func_working_strsignal="guessing yes";;
23141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23142 /* end confdefs.h. */
23143 #include <string.h>
23144 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
23150 char *s = strsignal (-1);
23151 if (s == (char *) 0)
23153 if (s == (char *) -1)
23161 if ac_fn_c_try_run "$LINENO"; then :
23162 gl_cv_func_working_strsignal=yes
23164 gl_cv_func_working_strsignal=no
23166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23167 conftest.$ac_objext conftest.beam conftest.$ac_ext
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
23172 $as_echo "$gl_cv_func_working_strsignal" >&6; }
23173 if test "$gl_cv_func_working_strsignal" = no; then
23174 REPLACE_STRSIGNAL=1
23180 if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
23189 gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
23200 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
23202 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
23208 cat >>confdefs.h <<_ACEOF
23209 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
23225 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23233 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23234 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
23235 $as_echo_n "(cached) " >&6
23238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23239 /* end confdefs.h. */
23240 #include <sys/select.h>
23249 if ac_fn_c_try_compile "$LINENO"; then :
23250 gl_cv_header_sys_select_h_selfcontained=yes
23252 gl_cv_header_sys_select_h_selfcontained=no
23254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23255 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23257 /* end confdefs.h. */
23258 #include <sys/select.h>
23262 int memset; int bzero;
23268 if ac_fn_c_try_compile "$LINENO"; then :
23269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23270 /* end confdefs.h. */
23271 #include <sys/select.h>
23277 #define memset nonexistent_memset
23282 void *memset (void *, int, unsigned long);
23284 #define bzero nonexistent_bzero
23289 void bzero (void *, unsigned long);
23298 if ac_fn_c_try_link "$LINENO"; then :
23301 gl_cv_header_sys_select_h_selfcontained=no
23303 rm -f core conftest.err conftest.$ac_objext \
23304 conftest$ac_exeext conftest.$ac_ext
23307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23312 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23328 if test $gl_cv_have_include_next = yes; then
23329 gl_cv_next_sys_select_h='<'sys/select.h'>'
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23332 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23333 if ${gl_cv_next_sys_select_h+:} false; then :
23334 $as_echo_n "(cached) " >&6
23337 if test $ac_cv_header_sys_select_h = yes; then
23340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23341 /* end confdefs.h. */
23342 #include <sys/select.h>
23346 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23347 *) gl_absname_cpp="$ac_cpp" ;;
23352 gl_dirsep_regex='[/\\]'
23355 gl_dirsep_regex='\/'
23358 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23360 gl_header_literal_regex=`echo 'sys/select.h' \
23361 | sed -e "$gl_make_literal_regex_sed"`
23362 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23363 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23368 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23369 sed -n "$gl_absolute_header_sed"`'"'
23371 gl_cv_next_sys_select_h='<'sys/select.h'>'
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23377 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23379 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23381 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23382 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23383 gl_next_as_first_directive='<'sys/select.h'>'
23385 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23386 gl_next_as_first_directive=$gl_cv_next_sys_select_h
23388 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23393 if test $ac_cv_header_sys_select_h = yes; then
23394 HAVE_SYS_SELECT_H=1
23396 HAVE_SYS_SELECT_H=0
23409 if test $ac_cv_header_sys_socket_h != yes; then
23410 for ac_header in winsock2.h
23412 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23413 if test "x$ac_cv_header_winsock2_h" = xyes; then :
23414 cat >>confdefs.h <<_ACEOF
23415 #define HAVE_WINSOCK2_H 1
23423 if test "$ac_cv_header_winsock2_h" = yes; then
23425 UNISTD_H_HAVE_WINSOCK2_H=1
23426 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23434 for gl_func in pselect select; do
23435 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23437 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23438 if eval \${$as_gl_Symbol+:} false; then :
23439 $as_echo_n "(cached) " >&6
23441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23442 /* end confdefs.h. */
23444 /* Some systems require prerequisite headers. */
23445 #include <sys/types.h>
23446 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
23447 # include <sys/time.h>
23449 #include <sys/select.h>
23460 if ac_fn_c_try_compile "$LINENO"; then :
23461 eval "$as_gl_Symbol=yes"
23463 eval "$as_gl_Symbol=no"
23465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23467 eval ac_res=\$$as_gl_Symbol
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23469 $as_echo "$ac_res" >&6; }
23470 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23471 cat >>confdefs.h <<_ACEOF
23472 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23475 eval ac_cv_have_decl_$gl_func=yes
23501 if test $gl_cv_have_include_next = yes; then
23502 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23505 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23506 if ${gl_cv_next_sys_stat_h+:} false; then :
23507 $as_echo_n "(cached) " >&6
23510 if test $ac_cv_header_sys_stat_h = yes; then
23513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23514 /* end confdefs.h. */
23515 #include <sys/stat.h>
23519 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23520 *) gl_absname_cpp="$ac_cpp" ;;
23525 gl_dirsep_regex='[/\\]'
23528 gl_dirsep_regex='\/'
23531 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23533 gl_header_literal_regex=`echo 'sys/stat.h' \
23534 | sed -e "$gl_make_literal_regex_sed"`
23535 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23536 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23541 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23542 sed -n "$gl_absolute_header_sed"`'"'
23544 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23550 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23552 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23554 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23555 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23556 gl_next_as_first_directive='<'sys/stat.h'>'
23558 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23559 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23561 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23570 WINDOWS_64_BIT_ST_SIZE=0
23573 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23575 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23579 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23580 #include <sys/stat.h>
23582 if test "x$ac_cv_type_nlink_t" = xyes; then :
23586 $as_echo "#define nlink_t int" >>confdefs.h
23592 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
23593 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23595 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23596 if eval \${$as_gl_Symbol+:} false; then :
23597 $as_echo_n "(cached) " >&6
23599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23600 /* end confdefs.h. */
23601 #include <sys/stat.h>
23612 if ac_fn_c_try_compile "$LINENO"; then :
23613 eval "$as_gl_Symbol=yes"
23615 eval "$as_gl_Symbol=no"
23617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23619 eval ac_res=\$$as_gl_Symbol
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23621 $as_echo "$ac_res" >&6; }
23622 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23623 cat >>confdefs.h <<_ACEOF
23624 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23627 eval ac_cv_have_decl_$gl_func=yes
23657 if test $gl_cv_have_include_next = yes; then
23658 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
23661 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
23662 if ${gl_cv_next_sys_wait_h+:} false; then :
23663 $as_echo_n "(cached) " >&6
23666 if test $ac_cv_header_sys_wait_h = yes; then
23669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23670 /* end confdefs.h. */
23671 #include <sys/wait.h>
23675 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23676 *) gl_absname_cpp="$ac_cpp" ;;
23681 gl_dirsep_regex='[/\\]'
23684 gl_dirsep_regex='\/'
23687 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23689 gl_header_literal_regex=`echo 'sys/wait.h' \
23690 | sed -e "$gl_make_literal_regex_sed"`
23691 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23692 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23697 gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23698 sed -n "$gl_absolute_header_sed"`'"'
23700 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
23706 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
23708 NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
23710 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23711 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23712 gl_next_as_first_directive='<'sys/wait.h'>'
23714 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23715 gl_next_as_first_directive=$gl_cv_next_sys_wait_h
23717 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
23726 for gl_func in waitpid; do
23727 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23729 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23730 if eval \${$as_gl_Symbol+:} false; then :
23731 $as_echo_n "(cached) " >&6
23733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23734 /* end confdefs.h. */
23735 #include <sys/wait.h>
23745 if ac_fn_c_try_compile "$LINENO"; then :
23746 eval "$as_gl_Symbol=yes"
23748 eval "$as_gl_Symbol=no"
23750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23752 eval ac_res=\$$as_gl_Symbol
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23754 $as_echo "$ac_res" >&6; }
23755 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23756 cat >>confdefs.h <<_ACEOF
23757 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23760 eval ac_cv_have_decl_$gl_func=yes
23794 if test $gl_cv_have_include_next = yes; then
23795 gl_cv_next_unistd_h='<'unistd.h'>'
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23798 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23799 if ${gl_cv_next_unistd_h+:} false; then :
23800 $as_echo_n "(cached) " >&6
23803 if test $ac_cv_header_unistd_h = yes; then
23806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23807 /* end confdefs.h. */
23808 #include <unistd.h>
23812 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23813 *) gl_absname_cpp="$ac_cpp" ;;
23818 gl_dirsep_regex='[/\\]'
23821 gl_dirsep_regex='\/'
23824 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23826 gl_header_literal_regex=`echo 'unistd.h' \
23827 | sed -e "$gl_make_literal_regex_sed"`
23828 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23829 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23834 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23835 sed -n "$gl_absolute_header_sed"`'"'
23837 gl_cv_next_unistd_h='<'unistd.h'>'
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23843 $as_echo "$gl_cv_next_unistd_h" >&6; }
23845 NEXT_UNISTD_H=$gl_cv_next_unistd_h
23847 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23848 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23849 gl_next_as_first_directive='<'unistd.h'>'
23851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23852 gl_next_as_first_directive=$gl_cv_next_unistd_h
23854 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
23859 if test $ac_cv_header_unistd_h = yes; then
23871 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
23872 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23874 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23875 if eval \${$as_gl_Symbol+:} false; then :
23876 $as_echo_n "(cached) " >&6
23878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23879 /* end confdefs.h. */
23882 # include <unistd.h>
23884 /* Some systems declare various items in the wrong headers. */
23885 #if !(defined __GLIBC__ && !defined __UCLIBC__)
23886 # include <fcntl.h>
23887 # include <stdio.h>
23888 # include <stdlib.h>
23889 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
23903 if ac_fn_c_try_compile "$LINENO"; then :
23904 eval "$as_gl_Symbol=yes"
23906 eval "$as_gl_Symbol=no"
23908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23910 eval ac_res=\$$as_gl_Symbol
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23912 $as_echo "$ac_res" >&6; }
23913 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23914 cat >>confdefs.h <<_ACEOF
23915 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23918 eval ac_cv_have_decl_$gl_func=yes
23932 if test $ac_cv_have_decl_unsetenv = no; then
23933 HAVE_DECL_UNSETENV=0
23935 for ac_func in unsetenv
23937 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
23938 if test "x$ac_cv_func_unsetenv" = xyes; then :
23939 cat >>confdefs.h <<_ACEOF
23940 #define HAVE_UNSETENV 1
23946 if test $ac_cv_func_unsetenv = no; then
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
23951 $as_echo_n "checking for unsetenv() return type... " >&6; }
23952 if ${gt_cv_func_unsetenv_ret+:} false; then :
23953 $as_echo_n "(cached) " >&6
23955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23956 /* end confdefs.h. */
23959 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
23960 #include <stdlib.h>
23965 int unsetenv (const char *name);
23975 if ac_fn_c_try_compile "$LINENO"; then :
23976 gt_cv_func_unsetenv_ret='int'
23978 gt_cv_func_unsetenv_ret='void'
23980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
23983 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
23984 if test $gt_cv_func_unsetenv_ret = 'void'; then
23986 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
23992 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
23993 if ${gl_cv_func_unsetenv_works+:} false; then :
23994 $as_echo_n "(cached) " >&6
23996 if test "$cross_compiling" = yes; then :
23998 # Guess yes on glibc systems.
23999 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
24000 # If we don't know, assume the worst.
24001 *) gl_cv_func_unsetenv_works="guessing no" ;;
24005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24006 /* end confdefs.h. */
24008 #include <stdlib.h>
24010 extern char **environ;
24016 char entry1[] = "a=1";
24017 char entry2[] = "b=2";
24018 char *env[] = { entry1, entry2, NULL };
24019 if (putenv ((char *) "a=1")) return 1;
24020 if (putenv (entry2)) return 2;
24023 if (getenv ("a")) return 3;
24024 if (!unsetenv ("") || errno != EINVAL) return 4;
24027 if (!getenv ("a")) return 5;
24030 if (getenv ("a")) return 6;
24036 if ac_fn_c_try_run "$LINENO"; then :
24037 gl_cv_func_unsetenv_works=yes
24039 gl_cv_func_unsetenv_works=no
24041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24042 conftest.$ac_objext conftest.beam conftest.$ac_ext
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
24047 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
24048 case "$gl_cv_func_unsetenv_works" in
24056 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
24065 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
24089 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
24101 if test $ac_cv_func_vasnprintf = no; then
24118 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
24128 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
24138 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
24148 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
24150 if test $ac_cv_func_vasnprintf = yes; then
24152 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
24166 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24167 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
24171 $as_echo "#define ptrdiff_t long" >>confdefs.h
24185 for ac_func in vasprintf
24187 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
24188 if test "x$ac_cv_func_vasprintf" = xyes; then :
24189 cat >>confdefs.h <<_ACEOF
24190 #define HAVE_VASPRINTF 1
24196 if test $ac_cv_func_vasprintf = no; then
24206 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
24216 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
24219 if test $ac_cv_func_vasprintf = yes; then
24220 REPLACE_VASPRINTF=1
24245 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
24251 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
24255 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
24261 mingw*) HAVE_WAITPID=0 ;;
24264 if test $HAVE_WAITPID = 0; then
24273 gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
24287 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
24309 if test $gl_cv_have_include_next = yes; then
24310 gl_cv_next_wchar_h='<'wchar.h'>'
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24313 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24314 if ${gl_cv_next_wchar_h+:} false; then :
24315 $as_echo_n "(cached) " >&6
24318 if test $ac_cv_header_wchar_h = yes; then
24321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24322 /* end confdefs.h. */
24327 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24328 *) gl_absname_cpp="$ac_cpp" ;;
24333 gl_dirsep_regex='[/\\]'
24336 gl_dirsep_regex='\/'
24339 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24341 gl_header_literal_regex=`echo 'wchar.h' \
24342 | sed -e "$gl_make_literal_regex_sed"`
24343 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24344 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24349 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24350 sed -n "$gl_absolute_header_sed"`'"'
24352 gl_cv_next_wchar_h='<'wchar.h'>'
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
24358 $as_echo "$gl_cv_next_wchar_h" >&6; }
24360 NEXT_WCHAR_H=$gl_cv_next_wchar_h
24362 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24363 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24364 gl_next_as_first_directive='<'wchar.h'>'
24366 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24367 gl_next_as_first_directive=$gl_cv_next_wchar_h
24369 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24374 if test $ac_cv_header_wchar_h = yes; then
24384 if test $gt_cv_c_wint_t = yes; then
24392 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
24393 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24395 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24396 if eval \${$as_gl_Symbol+:} false; then :
24397 $as_echo_n "(cached) " >&6
24399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24400 /* end confdefs.h. */
24402 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24404 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24405 included before <wchar.h>. */
24406 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24407 # include <stddef.h>
24408 # include <stdio.h>
24422 if ac_fn_c_try_compile "$LINENO"; then :
24423 eval "$as_gl_Symbol=yes"
24425 eval "$as_gl_Symbol=no"
24427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24429 eval ac_res=\$$as_gl_Symbol
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24431 $as_echo "$ac_res" >&6; }
24432 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24433 cat >>confdefs.h <<_ACEOF
24434 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24437 eval ac_cv_have_decl_$gl_func=yes
24445 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24451 if test $REPLACE_WRITE = 1; then
24460 gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
24475 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
24482 for ac_header in stdint.h
24484 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
24485 if test "x$ac_cv_header_stdint_h" = xyes; then :
24486 cat >>confdefs.h <<_ACEOF
24487 #define HAVE_STDINT_H 1
24503 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
24505 # End of code from modules
24526 gl_source_base='tests'
24527 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
24529 gl_module_indicator_condition=$gltests_WITNESS
24540 for ac_header in fcntl.h
24542 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
24543 if test "x$ac_cv_header_fcntl_h" = xyes; then :
24544 cat >>confdefs.h <<_ACEOF
24545 #define HAVE_FCNTL_H 1
24552 for ac_func in clearenv
24554 ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
24555 if test "x$ac_cv_func_clearenv" = xyes; then :
24556 cat >>confdefs.h <<_ACEOF
24557 #define HAVE_CLEARENV 1
24564 # Checks for structures and compiler characteristics.
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
24566 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
24567 if ${ac_cv_c_const+:} false; then :
24568 $as_echo_n "(cached) " >&6
24570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24571 /* end confdefs.h. */
24577 #ifndef __cplusplus
24578 /* Ultrix mips cc rejects this sort of thing. */
24579 typedef int charset[2];
24580 const charset cs = { 0, 0 };
24581 /* SunOS 4.1.1 cc rejects this. */
24582 char const *const *pcpcc;
24584 /* NEC SVR4.0.2 mips cc rejects this. */
24585 struct point {int x, y;};
24586 static struct point const zero = {0,0};
24587 /* AIX XL C 1.02.0.0 rejects this.
24588 It does not let you subtract one const X* pointer from another in
24589 an arm of an if-expression whose if-part is not a constant
24591 const char *g = "string";
24592 pcpcc = &g + (g ? g-g : 0);
24593 /* HPUX 7.0 cc rejects these. */
24595 ppc = (char**) pcpcc;
24596 pcpcc = (char const *const *) ppc;
24597 { /* SCO 3.2v4 cc rejects this sort of thing. */
24600 char const *s = 0 ? (char *) 0 : (char const *) 0;
24605 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24606 int x[] = {25, 17};
24607 const int *foo = &x[0];
24610 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24611 typedef const int *iptr;
24615 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
24616 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24617 struct s { int j; const int *ap[3]; } bx;
24618 struct s *b = &bx; b->j = 5;
24620 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24621 const int foo = 10;
24622 if (!foo) return 0;
24624 return !cs[0] && !zero.x;
24631 if ac_fn_c_try_compile "$LINENO"; then :
24636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
24639 $as_echo "$ac_cv_c_const" >&6; }
24640 if test $ac_cv_c_const = no; then
24642 $as_echo "#define const /**/" >>confdefs.h
24646 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24647 if test "x$ac_cv_type_pid_t" = xyes; then :
24651 cat >>confdefs.h <<_ACEOF
24657 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24658 if test "x$ac_cv_type_size_t" = xyes; then :
24662 cat >>confdefs.h <<_ACEOF
24663 #define size_t unsigned int
24669 # We must have fork(2) support.
24670 for ac_header in vfork.h
24672 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24673 if test "x$ac_cv_header_vfork_h" = xyes; then :
24674 cat >>confdefs.h <<_ACEOF
24675 #define HAVE_VFORK_H 1
24682 for ac_func in fork vfork
24684 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24685 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24686 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24687 cat >>confdefs.h <<_ACEOF
24688 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24694 if test "x$ac_cv_func_fork" = xyes; then
24695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24696 $as_echo_n "checking for working fork... " >&6; }
24697 if ${ac_cv_func_fork_works+:} false; then :
24698 $as_echo_n "(cached) " >&6
24700 if test "$cross_compiling" = yes; then :
24701 ac_cv_func_fork_works=cross
24703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24704 /* end confdefs.h. */
24705 $ac_includes_default
24710 /* By Ruediger Kuhlmann. */
24711 return fork () < 0;
24717 if ac_fn_c_try_run "$LINENO"; then :
24718 ac_cv_func_fork_works=yes
24720 ac_cv_func_fork_works=no
24722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24723 conftest.$ac_objext conftest.beam conftest.$ac_ext
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24728 $as_echo "$ac_cv_func_fork_works" >&6; }
24731 ac_cv_func_fork_works=$ac_cv_func_fork
24733 if test "x$ac_cv_func_fork_works" = xcross; then
24735 *-*-amigaos* | *-*-msdosdjgpp*)
24736 # Override, as these systems have only a dummy fork() stub
24737 ac_cv_func_fork_works=no
24740 ac_cv_func_fork_works=yes
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24744 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24746 ac_cv_func_vfork_works=$ac_cv_func_vfork
24747 if test "x$ac_cv_func_vfork" = xyes; then
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24749 $as_echo_n "checking for working vfork... " >&6; }
24750 if ${ac_cv_func_vfork_works+:} false; then :
24751 $as_echo_n "(cached) " >&6
24753 if test "$cross_compiling" = yes; then :
24754 ac_cv_func_vfork_works=cross
24756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24757 /* end confdefs.h. */
24758 /* Thanks to Paul Eggert for this test. */
24759 $ac_includes_default
24760 #include <sys/wait.h>
24761 #ifdef HAVE_VFORK_H
24762 # include <vfork.h>
24764 /* On some sparc systems, changes by the child to local and incoming
24765 argument registers are propagated back to the parent. The compiler
24766 is told about this with #include <vfork.h>, but some compilers
24767 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24768 static variable whose address is put into a register that is
24769 clobbered by the vfork. */
24772 sparc_address_test (int arg)
24774 sparc_address_test (arg) int arg;
24777 static pid_t child;
24795 pid_t parent = getpid ();
24798 sparc_address_test (0);
24803 /* Here is another test for sparc vfork register problems. This
24804 test uses lots of local variables, at least as many local
24805 variables as main has allocated so far including compiler
24806 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24807 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24808 reuse the register of parent for one of the local variables,
24809 since it will think that parent can't possibly be used any more
24810 in this routine. Assigning to the local variable will thus
24811 munge parent in the parent process. */
24813 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24814 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24815 /* Convince the compiler that p..p7 are live; otherwise, it might
24816 use the same hardware register for all 8 local variables. */
24817 if (p != p1 || p != p2 || p != p3 || p != p4
24818 || p != p5 || p != p6 || p != p7)
24821 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24822 from child file descriptors. If the child closes a descriptor
24823 before it execs or exits, this munges the parent's descriptor
24824 as well. Test for this by closing stdout in the child. */
24825 _exit(close(fileno(stdout)) != 0);
24830 while (wait(&status) != child)
24833 /* Was there some problem with vforking? */
24836 /* Did the child fail? (This shouldn't happen.) */
24839 /* Did the vfork/compiler bug occur? */
24840 || parent != getpid()
24842 /* Did the file descriptor bug occur? */
24843 || fstat(fileno(stdout), &st) != 0
24848 if ac_fn_c_try_run "$LINENO"; then :
24849 ac_cv_func_vfork_works=yes
24851 ac_cv_func_vfork_works=no
24853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24854 conftest.$ac_objext conftest.beam conftest.$ac_ext
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24859 $as_echo "$ac_cv_func_vfork_works" >&6; }
24862 if test "x$ac_cv_func_fork_works" = xcross; then
24863 ac_cv_func_vfork_works=$ac_cv_func_vfork
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24865 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24868 if test "x$ac_cv_func_vfork_works" = xyes; then
24870 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24874 $as_echo "#define vfork fork" >>confdefs.h
24877 if test "x$ac_cv_func_fork_works" = xyes; then
24879 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24883 if test "x$ac_cv_func_fork_works" != xyes; then
24884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24886 as_fn_error $? "cannot use libpipeline on systems without fork
24887 See \`config.log' for more details" "$LINENO" 5; }
24890 # Check for socketpair(2) as fast replacement for pipe(2).
24891 # Check whether --enable-socketpair-pipe was given.
24892 if test "${enable_socketpair_pipe+set}" = set; then :
24893 enableval=$enable_socketpair_pipe; if test "$enableval" = "yes"
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
24896 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
24897 if ${pipeline_cv_socketpair_pipe+:} false; then :
24898 $as_echo_n "(cached) " >&6
24901 if test "$cross_compiling" = yes; then :
24902 pipeline_cv_socketpair_pipe=no
24904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24905 /* end confdefs.h. */
24908 #include <netinet/in.h>
24909 #include <signal.h>
24910 #include <sys/socket.h>
24911 #include <sys/types.h>
24912 #include <sys/wait.h>
24913 #include <unistd.h>
24921 static void sigpipe(int sig)
24928 const char test[] = "May use socketpair(2) instead of pipe(2)\n";
24932 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
24934 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
24936 if ((pid = fork()) < 0)
24941 if (read(sfd[0],buf,sizeof(buf)) < 0)
24945 write(sfd[1],test,sizeof(test) - 1);
24949 signal(SIGPIPE, sigpipe);
24950 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
24952 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
24955 write(sfd[1],test,sizeof(test) - 1);
24959 if ac_fn_c_try_run "$LINENO"; then :
24960 pipeline_cv_socketpair_pipe=yes
24962 pipeline_cv_socketpair_pipe=no
24964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24965 conftest.$ac_objext conftest.beam conftest.$ac_ext
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
24972 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
24973 if test "$pipeline_cv_socketpair_pipe" = yes; then
24975 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
24979 if test "$pipeline_cv_socketpair_pipe" = yes; then
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
24981 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
24982 if ${pipeline_cv_socketpair_mode+:} false; then :
24983 $as_echo_n "(cached) " >&6
24986 if test "$cross_compiling" = yes; then :
24987 pipeline_cv_socketpair_mode=no
24989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24990 /* end confdefs.h. */
24993 #include <netinet/in.h>
24994 #include <sys/stat.h>
24995 #include <sys/socket.h>
24996 #include <sys/types.h>
24997 #include <unistd.h>
25009 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
25011 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
25013 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
25015 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
25017 if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
25019 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
25021 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
25026 if ac_fn_c_try_run "$LINENO"; then :
25027 pipeline_cv_socketpair_mode=yes
25029 pipeline_cv_socketpair_mode=no
25031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25032 conftest.$ac_objext conftest.beam conftest.$ac_ext
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
25039 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
25040 if test "$pipeline_cv_socketpair_mode" = yes; then
25042 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
25053 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
25055 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
25057 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
25059 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
25061 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
25063 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
25065 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
25067 cat >confcache <<\_ACEOF
25068 # This file is a shell script that caches the results of configure
25069 # tests run on this system so they can be shared between configure
25070 # scripts and configure runs, see configure's option --config-cache.
25071 # It is not useful on other systems. If it contains results you don't
25072 # want to keep, you may remove or edit it.
25074 # config.status only pays attention to the cache file if you give it
25075 # the --recheck option to rerun configure.
25077 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25078 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25079 # following values.
25083 # The following way of writing the cache mishandles newlines in values,
25084 # but we know of no workaround that is simple, portable, and efficient.
25085 # So, we kill variables containing newlines.
25086 # Ultrix sh set writes to stderr and can't be redirected directly,
25087 # and sets the high bit in the cache file unless we assign to the vars.
25089 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25090 eval ac_val=\$$ac_var
25094 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25095 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25098 _ | IFS | as_nl) ;; #(
25099 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25100 *) { eval $ac_var=; unset $ac_var;} ;;
25106 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25107 *${as_nl}ac_space=\ *)
25108 # `set' does not quote correctly, so add quotes: double-quote
25109 # substitution turns \\\\ into \\, and sed turns \\ into \.
25112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25115 # `set' quotes correctly as required by POSIX, so do not add quotes.
25116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25125 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25127 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25129 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25130 if test -w "$cache_file"; then
25131 if test "x$cache_file" != "x/dev/null"; then
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25133 $as_echo "$as_me: updating cache $cache_file" >&6;}
25134 if test ! -f "$cache_file" || test -h "$cache_file"; then
25135 cat confcache >"$cache_file"
25137 case $cache_file in #(
25139 mv -f confcache "$cache_file"$$ &&
25140 mv -f "$cache_file"$$ "$cache_file" ;; #(
25142 mv -f confcache "$cache_file" ;;
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25148 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25153 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25154 # Let make expand exec_prefix.
25155 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25157 DEFS=-DHAVE_CONFIG_H
25162 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25163 # 1. Remove the extension, and $U if already installed.
25164 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25165 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25166 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25167 # will be set to the directory where LIBOBJS objects are built.
25168 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25169 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25171 LIBOBJS=$ac_libobjs
25173 LTLIBOBJS=$ac_ltlibobjs
25176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25177 $as_echo_n "checking that generated files are newer than configure... " >&6; }
25178 if test -n "$am_sleep_pid"; then
25179 # Hide warnings about reused PIDs.
25180 wait $am_sleep_pid 2>/dev/null
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
25183 $as_echo "done" >&6; }
25184 if test -n "$EXEEXT"; then
25186 am__EXEEXT_FALSE='#'
25188 am__EXEEXT_TRUE='#'
25192 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25193 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25196 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25197 as_fn_error $? "conditional \"AMDEP\" was never defined.
25198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25200 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25201 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25204 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25205 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25208 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
25209 as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
25210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25212 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25213 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
25214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25216 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25217 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25220 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
25221 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
25222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25224 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
25225 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
25226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25228 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
25229 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
25230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25232 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25233 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25236 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25237 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25240 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25241 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
25242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25248 if test -n "$gl_LIBOBJS"; then
25249 # Remove the extension.
25250 sed_drop_objext='s/\.o$//;s/\.obj$//'
25251 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25252 gl_libobjs="$gl_libobjs $i.$ac_objext"
25253 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25256 gl_LIBOBJS=$gl_libobjs
25258 gl_LTLIBOBJS=$gl_ltlibobjs
25264 if test -n "$gltests_LIBOBJS"; then
25265 # Remove the extension.
25266 sed_drop_objext='s/\.o$//;s/\.obj$//'
25267 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25268 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25269 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25272 gltests_LIBOBJS=$gltests_libobjs
25274 gltests_LTLIBOBJS=$gltests_ltlibobjs
25278 : "${CONFIG_STATUS=./config.status}"
25280 ac_clean_files_save=$ac_clean_files
25281 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25283 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25285 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25287 # Generated by $as_me.
25288 # Run this file to recreate the current configuration.
25289 # Compiler output produced by configure, useful for debugging
25290 # configure, is in config.log if it exists.
25293 ac_cs_recheck=false
25296 SHELL=\${CONFIG_SHELL-$SHELL}
25299 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25300 ## -------------------- ##
25301 ## M4sh Initialization. ##
25302 ## -------------------- ##
25304 # Be more Bourne compatible
25305 DUALCASE=1; export DUALCASE # for MKS sh
25306 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25309 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25310 # is contrary to our usage. Disable this feature.
25311 alias -g '${1+"$@"}'='"$@"'
25312 setopt NO_GLOB_SUBST
25314 case `(set -o) 2>/dev/null` in #(
25326 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25327 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25328 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25329 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25330 # Prefer a ksh shell builtin over an external printf program on Solaris,
25331 # but without wasting forks for bash or zsh.
25332 if test -z "$BASH_VERSION$ZSH_VERSION" \
25333 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25334 as_echo='print -r --'
25335 as_echo_n='print -rn --'
25336 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25337 as_echo='printf %s\n'
25338 as_echo_n='printf %s'
25340 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25341 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25342 as_echo_n='/usr/ucb/echo -n'
25344 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25345 as_echo_n_body='eval
25349 expr "X$arg" : "X\\(.*\\)$as_nl";
25350 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25352 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25354 export as_echo_n_body
25355 as_echo_n='sh -c $as_echo_n_body as_echo'
25357 export as_echo_body
25358 as_echo='sh -c $as_echo_body as_echo'
25361 # The user is always right.
25362 if test "${PATH_SEPARATOR+set}" != set; then
25364 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25365 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25372 # We need space, tab and new line, in precisely that order. Quoting is
25373 # there to prevent editors from complaining about space-tab.
25374 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25375 # splitting by setting IFS to empty value.)
25378 # Find who we are. Look in the path if we contain no directory separator.
25381 *[\\/]* ) as_myself=$0 ;;
25382 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25383 for as_dir in $PATH
25386 test -z "$as_dir" && as_dir=.
25387 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25393 # We did not find ourselves, most probably we were run as `sh COMMAND'
25394 # in which case we are not to be found in the path.
25395 if test "x$as_myself" = x; then
25398 if test ! -f "$as_myself"; then
25399 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25403 # Unset variables that we do not need and which cause bugs (e.g. in
25404 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25405 # suppresses any "Segmentation fault" message there. '((' could
25406 # trigger a bug in pdksh 5.2.14.
25407 for as_var in BASH_ENV ENV MAIL MAILPATH
25408 do eval test x\${$as_var+set} = xset \
25409 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25422 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25426 # ----------------------------------------
25427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25429 # script with STATUS, using 1 if that was 0.
25432 as_status=$1; test $as_status -eq 0 && as_status=1
25434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25435 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25437 $as_echo "$as_me: error: $2" >&2
25438 as_fn_exit $as_status
25442 # as_fn_set_status STATUS
25443 # -----------------------
25444 # Set $? to STATUS, without forking.
25445 as_fn_set_status ()
25448 } # as_fn_set_status
25450 # as_fn_exit STATUS
25451 # -----------------
25452 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25456 as_fn_set_status $1
25462 # Portably unset VAR.
25465 { eval $1=; unset $1;}
25467 as_unset=as_fn_unset
25468 # as_fn_append VAR VALUE
25469 # ----------------------
25470 # Append the text in VALUE to the end of the definition contained in VAR. Take
25471 # advantage of any shell optimizations that allow amortized linear growth over
25472 # repeated appends, instead of the typical quadratic growth present in naive
25474 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25475 eval 'as_fn_append ()
25486 # as_fn_arith ARG...
25487 # ------------------
25488 # Perform arithmetic evaluation on the ARGs, and store the result in the
25489 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25490 # must be portable across $(()) and expr.
25491 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25492 eval 'as_fn_arith ()
25499 as_val=`expr "$@" || test $? -eq 1`
25504 if expr a : '\(a\)' >/dev/null 2>&1 &&
25505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25511 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25512 as_basename=basename
25517 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25523 as_me=`$as_basename -- "$0" ||
25524 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25525 X"$0" : 'X\(//\)$' \| \
25526 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25528 sed '/^.*\/\([^/][^/]*\)\/*$/{
25542 # Avoid depending upon Character Ranges.
25543 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25544 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25545 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25546 as_cr_digits='0123456789'
25547 as_cr_alnum=$as_cr_Letters$as_cr_digits
25549 ECHO_C= ECHO_N= ECHO_T=
25550 case `echo -n x` in #(((((
25552 case `echo 'xy\c'` in
25553 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25555 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25562 rm -f conf$$ conf$$.exe conf$$.file
25563 if test -d conf$$.dir; then
25564 rm -f conf$$.dir/conf$$.file
25567 mkdir conf$$.dir 2>/dev/null
25569 if (echo >conf$$.file) 2>/dev/null; then
25570 if ln -s conf$$.file conf$$ 2>/dev/null; then
25572 # ... but there are two gotchas:
25573 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25574 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25575 # In both cases, we have to default to `cp -pR'.
25576 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25578 elif ln conf$$.file conf$$ 2>/dev/null; then
25586 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25587 rmdir conf$$.dir 2>/dev/null
25592 # Create "$as_dir" as a directory, including parents if necessary.
25597 -*) as_dir=./$as_dir;;
25599 test -d "$as_dir" || eval $as_mkdir_p || {
25603 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25604 *) as_qdir=$as_dir;;
25606 as_dirs="'$as_qdir' $as_dirs"
25607 as_dir=`$as_dirname -- "$as_dir" ||
25608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25609 X"$as_dir" : 'X\(//\)[^/]' \| \
25610 X"$as_dir" : 'X\(//\)$' \| \
25611 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25612 $as_echo X"$as_dir" |
25613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25617 /^X\(\/\/\)[^/].*/{
25630 test -d "$as_dir" && break
25632 test -z "$as_dirs" || eval "mkdir $as_dirs"
25633 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25637 if mkdir -p . 2>/dev/null; then
25638 as_mkdir_p='mkdir -p "$as_dir"'
25640 test -d ./-p && rmdir ./-p
25645 # as_fn_executable_p FILE
25646 # -----------------------
25647 # Test if FILE is an executable regular file.
25648 as_fn_executable_p ()
25650 test -f "$1" && test -x "$1"
25651 } # as_fn_executable_p
25652 as_test_x='test -x'
25653 as_executable_p=as_fn_executable_p
25655 # Sed expression to map a string onto a valid CPP name.
25656 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25658 # Sed expression to map a string onto a valid variable name.
25659 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25663 ## ----------------------------------- ##
25664 ## Main body of $CONFIG_STATUS script. ##
25665 ## ----------------------------------- ##
25667 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25670 # Save the log message, to keep $0 and so on meaningful, and to
25671 # report actual input values of CONFIG_FILES etc. instead of their
25672 # values after options handling.
25674 This file was extended by libpipeline $as_me 1.2.4, which was
25675 generated by GNU Autoconf 2.69. Invocation command line was
25677 CONFIG_FILES = $CONFIG_FILES
25678 CONFIG_HEADERS = $CONFIG_HEADERS
25679 CONFIG_LINKS = $CONFIG_LINKS
25680 CONFIG_COMMANDS = $CONFIG_COMMANDS
25683 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25688 case $ac_config_files in *"
25689 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25692 case $ac_config_headers in *"
25693 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25698 # Files that config.status was made for.
25699 config_files="$ac_config_files"
25700 config_headers="$ac_config_headers"
25701 config_commands="$ac_config_commands"
25705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25707 \`$as_me' instantiates files and other configuration actions
25708 from templates according to the current configuration. Unless the files
25709 and actions are specified as TAGs, all are instantiated by default.
25711 Usage: $0 [OPTION]... [TAG]...
25713 -h, --help print this help, then exit
25714 -V, --version print version number and configuration settings, then exit
25715 --config print configuration, then exit
25716 -q, --quiet, --silent
25717 do not print progress messages
25718 -d, --debug don't remove temporary files
25719 --recheck update $as_me by reconfiguring in the same conditions
25720 --file=FILE[:TEMPLATE]
25721 instantiate the configuration file FILE
25722 --header=FILE[:TEMPLATE]
25723 instantiate the configuration header FILE
25725 Configuration files:
25728 Configuration headers:
25731 Configuration commands:
25734 Report bugs to <cjwatson@debian.org>."
25737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25738 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25740 libpipeline config.status 1.2.4
25741 configured by $0, generated by GNU Autoconf 2.69,
25742 with options \\"\$ac_cs_config\\"
25744 Copyright (C) 2012 Free Software Foundation, Inc.
25745 This config.status script is free software; the Free Software Foundation
25746 gives unlimited permission to copy, distribute and modify it."
25753 test -n "\$AWK" || AWK=awk
25756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25757 # The default lists apply if the user does not specify any file.
25763 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25764 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25768 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25780 # Handling of the options.
25781 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25783 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25784 $as_echo "$ac_cs_version"; exit ;;
25785 --config | --confi | --conf | --con | --co | --c )
25786 $as_echo "$ac_cs_config"; exit ;;
25787 --debug | --debu | --deb | --de | --d | -d )
25789 --file | --fil | --fi | --f )
25792 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25793 '') as_fn_error $? "missing file argument" ;;
25795 as_fn_append CONFIG_FILES " '$ac_optarg'"
25796 ac_need_defaults=false;;
25797 --header | --heade | --head | --hea )
25800 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25802 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25803 ac_need_defaults=false;;
25805 # Conflict between --help and --header
25806 as_fn_error $? "ambiguous option: \`$1'
25807 Try \`$0 --help' for more information.";;
25808 --help | --hel | -h )
25809 $as_echo "$ac_cs_usage"; exit ;;
25810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25811 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25814 # This is an error.
25815 -*) as_fn_error $? "unrecognized option: \`$1'
25816 Try \`$0 --help' for more information." ;;
25818 *) as_fn_append ac_config_targets " $1"
25819 ac_need_defaults=false ;;
25825 ac_configure_extra_args=
25827 if $ac_cs_silent; then
25829 ac_configure_extra_args="$ac_configure_extra_args --silent"
25833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25834 if \$ac_cs_recheck; then
25835 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25837 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25838 CONFIG_SHELL='$SHELL'
25839 export CONFIG_SHELL
25844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25848 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25849 ## Running $as_me. ##
25855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25859 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25862 # The HP-UX ksh and POSIX shell print the target directory to stdout
25863 # if CDPATH is set.
25864 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25866 sed_quote_subst='$sed_quote_subst'
25867 double_quote_subst='$double_quote_subst'
25868 delay_variable_subst='$delay_variable_subst'
25869 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25870 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25871 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25872 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25873 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25874 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25875 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25876 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25877 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25878 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25879 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25880 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25881 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25882 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25883 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25884 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25885 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25886 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25887 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25888 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25889 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25890 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25891 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25892 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25893 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25894 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25895 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25896 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25897 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25898 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25899 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25900 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25901 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25902 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25903 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25904 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25905 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25906 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25907 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25908 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25909 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25910 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25911 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25912 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25913 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25914 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25915 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25916 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25917 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25918 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25919 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25920 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25921 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25922 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25923 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25924 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25925 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"`'
25926 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25927 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25928 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25929 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25930 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25931 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25932 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25933 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25934 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25935 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25936 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25937 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25938 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25939 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25940 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25941 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25942 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25943 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25944 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25945 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25946 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25947 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25948 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25949 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25950 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25951 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25952 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25953 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25954 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25955 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25956 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25957 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25958 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25959 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25960 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25961 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25962 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25963 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25964 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25965 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25966 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25967 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25968 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25969 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25970 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25971 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25972 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25973 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25974 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25975 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25976 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25977 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25978 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25979 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25980 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25981 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25982 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25983 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25984 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25985 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25986 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25987 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25988 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25989 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25990 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25991 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25992 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25993 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25994 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25995 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25996 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25997 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25998 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26001 LTCFLAGS='$LTCFLAGS'
26002 compiler='$compiler_DEFAULT'
26004 # A function that is used when there is no print builtin or printf.
26005 func_fallback_echo ()
26007 eval 'cat <<_LTECHO_EOF
26012 # Quote evaled strings.
26027 deplibs_check_method \
26032 sharedlib_from_linklib_cmd \
26035 archiver_list_spec \
26041 lt_cv_sys_global_symbol_pipe \
26042 lt_cv_sys_global_symbol_to_cdecl \
26043 lt_cv_sys_global_symbol_to_c_name_address \
26044 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26045 nm_file_list_spec \
26046 lt_prog_compiler_no_builtin_flag \
26047 lt_prog_compiler_pic \
26048 lt_prog_compiler_wl \
26049 lt_prog_compiler_static \
26050 lt_cv_prog_compiler_c_o \
26059 export_dynamic_flag_spec \
26060 whole_archive_flag_spec \
26061 compiler_needs_object \
26063 allow_undefined_flag \
26064 no_undefined_flag \
26065 hardcode_libdir_flag_spec \
26066 hardcode_libdir_separator \
26070 variables_saved_for_relink \
26072 library_names_spec \
26074 install_override_mode \
26078 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26079 *[\\\\\\\`\\"\\\$]*)
26080 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26083 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26088 # Double-quote double-evaled strings.
26089 for var in reload_cmds \
26090 old_postinstall_cmds \
26091 old_postuninstall_cmds \
26093 extract_expsyms_cmds \
26094 old_archive_from_new_cmds \
26095 old_archive_from_expsyms_cmds \
26097 archive_expsym_cmds \
26099 module_expsym_cmds \
26100 export_symbols_cmds \
26104 postuninstall_cmds \
26106 sys_lib_search_path_spec \
26107 sys_lib_dlsearch_path_spec; do
26108 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26109 *[\\\\\\\`\\"\\\$]*)
26110 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26113 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26118 ac_aux_dir='$ac_aux_dir'
26119 xsi_shell='$xsi_shell'
26120 lt_shell_append='$lt_shell_append'
26122 # See if we are running on zsh, and set the options which allow our
26123 # commands through without removal of \ escapes INIT.
26124 if test -n "\${ZSH_VERSION+set}" ; then
26125 setopt NO_GLOB_SUBST
26131 TIMESTAMP='$TIMESTAMP'
26140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26142 # Handling of arguments.
26143 for ac_config_target in $ac_config_targets
26145 case $ac_config_target in
26146 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26147 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26148 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26149 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26150 "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
26151 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26152 "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
26153 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26154 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
26156 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26161 # If the user did not use the arguments to specify the items to instantiate,
26162 # then the envvar interface is used. Set only those that are not.
26163 # We use the long form for the default assignment because of an extremely
26164 # bizarre bug on SunOS 4.1.3.
26165 if $ac_need_defaults; then
26166 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26167 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26168 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26171 # Have a temporary directory for convenience. Make it in the build tree
26172 # simply because there is no reason against having it here, and in addition,
26173 # creating and moving files from /tmp can sometimes cause problems.
26174 # Hook for its removal unless debugging.
26175 # Note that there is a small window in which the directory will not be cleaned:
26176 # after its creation but before its name has been assigned to `$tmp'.
26180 trap 'exit_status=$?
26181 : "${ac_tmp:=$tmp}"
26182 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26184 trap 'as_fn_exit 1' 1 2 13 15
26186 # Create a (secure) tmp directory for tmp files.
26189 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26193 tmp=./conf$$-$RANDOM
26194 (umask 077 && mkdir "$tmp")
26195 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26198 # Set up the scripts for CONFIG_FILES section.
26199 # No need to generate them if there are no CONFIG_FILES.
26200 # This happens for instance with `./config.status config.h'.
26201 if test -n "$CONFIG_FILES"; then
26204 ac_cr=`echo X | tr X '\015'`
26205 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26206 # But we know of no other shell where ac_cr would be empty at this
26207 # point, so we can use a bashism as a fallback.
26208 if test "x$ac_cr" = x; then
26209 eval ac_cr=\$\'\\r\'
26211 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26212 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26215 ac_cs_awk_cr=$ac_cr
26218 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26223 echo "cat >conf$$subs.awk <<_ACEOF" &&
26224 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26226 } >conf$$subs.sh ||
26227 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26228 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26230 for ac_last_try in false false false false false :; do
26231 . ./conf$$subs.sh ||
26232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26234 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26235 if test $ac_delim_n = $ac_delim_num; then
26237 elif $ac_last_try; then
26238 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26243 rm -f conf$$subs.sh
26245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26246 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26250 s/^/S["/; s/!.*/"]=/
26260 s/\(.\{148\}\)..*/\1/
26262 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26267 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26274 s/\(.\{148\}\)..*/\1/
26276 s/["\\]/\\&/g; s/^/"/; s/$/"/
26280 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26285 ' <conf$$subs.awk | sed '
26290 ' >>$CONFIG_STATUS || ac_write_fail=1
26291 rm -f conf$$subs.awk
26292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26294 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26295 for (key in S) S_is_set[key] = 1
26301 nfields = split(line, field, "@")
26303 len = length(field[1])
26304 for (i = 2; i < nfields; i++) {
26306 keylen = length(key)
26307 if (S_is_set[key]) {
26309 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26310 len += length(value) + length(field[++i])
26321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26322 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26323 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26326 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26327 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26330 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26331 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26332 # trailing colons and then remove the whole line if VPATH becomes empty
26333 # (actually we leave an empty line to preserve line numbers).
26334 if test "x$srcdir" = x.; then
26335 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26354 fi # test -n "$CONFIG_FILES"
26356 # Set up the scripts for CONFIG_HEADERS section.
26357 # No need to generate them if there are no CONFIG_HEADERS.
26358 # This happens for instance with `./config.status Makefile'.
26359 if test -n "$CONFIG_HEADERS"; then
26360 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26364 # Transform confdefs.h into an awk script `defines.awk', embedded as
26365 # here-document in config.status, that substitutes the proper values into
26366 # config.h.in to produce config.h.
26368 # Create a delimiter string that does not exist in confdefs.h, to ease
26369 # handling of long lines.
26371 for ac_last_try in false false :; do
26372 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26373 if test -z "$ac_tt"; then
26375 elif $ac_last_try; then
26376 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26382 # For the awk script, D is an array of macro values keyed by name,
26383 # likewise P contains macro parameters if any. Preserve backslash
26384 # newline sequences.
26386 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26388 s/.\{148\}/&'"$ac_delim"'/g
26391 s/^[ ]*#[ ]*define[ ][ ]*/ /
26398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26400 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26404 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26405 D["\1"]=" \3\\\\\\n"\\/p
26407 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26412 s/.\{148\}/&'"$ac_delim"'/g
26417 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26420 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26422 ' <confdefs.h | sed '
26423 s/'"$ac_delim"'/"\\\
26424 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26427 for (key in D) D_is_set[key] = 1
26430 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26432 split(line, arg, " ")
26433 if (arg[1] == "#") {
26437 defundef = substr(arg[1], 2)
26440 split(mac1, mac2, "(") #)
26442 prefix = substr(line, 1, index(line, defundef) - 1)
26443 if (D_is_set[macro]) {
26444 # Preserve the white space surrounding the "#".
26445 print prefix "define", macro P[macro] D[macro]
26448 # Replace #undef with comments. This is necessary, for example,
26449 # in the case of _POSIX_SOURCE, which is predefined and required
26450 # on some systems where configure will not decide to define it.
26451 if (defundef == "undef") {
26452 print "/*", prefix defundef, macro, "*/"
26460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26461 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26462 fi # test -n "$CONFIG_HEADERS"
26465 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26470 :[FHLC]) ac_mode=$ac_tag; continue;;
26472 case $ac_mode$ac_tag in
26474 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26475 :[FH]-) ac_tag=-:-;;
26476 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26493 -) ac_f="$ac_tmp/stdin";;
26494 *) # Look for the file first in the build tree, then in the source tree
26495 # (if the path is not absolute). The absolute path cannot be DOS-style,
26496 # because $ac_f cannot contain `:'.
26500 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26502 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26504 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26505 as_fn_append ac_file_inputs " '$ac_f'"
26508 # Let's still pretend it is `configure' which instantiates (i.e., don't
26509 # use $as_me), people would be surprised to read:
26510 # /* config.h. Generated by config.status. */
26511 configure_input='Generated from '`
26512 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26514 if test x"$ac_file" != x-; then
26515 configure_input="$ac_file. $configure_input"
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26517 $as_echo "$as_me: creating $ac_file" >&6;}
26519 # Neutralize special characters interpreted by sed in replacement strings.
26520 case $configure_input in #(
26521 *\&* | *\|* | *\\* )
26522 ac_sed_conf_input=`$as_echo "$configure_input" |
26523 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26524 *) ac_sed_conf_input=$configure_input;;
26528 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26534 ac_dir=`$as_dirname -- "$ac_file" ||
26535 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26536 X"$ac_file" : 'X\(//\)[^/]' \| \
26537 X"$ac_file" : 'X\(//\)$' \| \
26538 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26539 $as_echo X"$ac_file" |
26540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26544 /^X\(\/\/\)[^/].*/{
26557 as_dir="$ac_dir"; as_fn_mkdir_p
26561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26564 # A ".." for each directory in $ac_dir_suffix.
26565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26566 case $ac_top_builddir_sub in
26567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26571 ac_abs_top_builddir=$ac_pwd
26572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26573 # for backward compatibility:
26574 ac_top_builddir=$ac_top_build_prefix
26577 .) # We are building in place.
26579 ac_top_srcdir=$ac_top_builddir_sub
26580 ac_abs_top_srcdir=$ac_pwd ;;
26581 [\\/]* | ?:[\\/]* ) # Absolute name.
26582 ac_srcdir=$srcdir$ac_dir_suffix;
26583 ac_top_srcdir=$srcdir
26584 ac_abs_top_srcdir=$srcdir ;;
26585 *) # Relative name.
26586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26587 ac_top_srcdir=$ac_top_build_prefix$srcdir
26588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26600 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26601 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26603 ac_MKDIR_P=$MKDIR_P
26605 [\\/$]* | ?:[\\/]* ) ;;
26606 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26611 # If the template does not know about datarootdir, expand it.
26612 # FIXME: This hack should be removed a few years after 2.60.
26613 ac_datarootdir_hack=; ac_datarootdir_seen=
26624 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26625 *datarootdir*) ac_datarootdir_seen=yes;;
26626 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26628 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26631 ac_datarootdir_hack='
26632 s&@datadir@&$datadir&g
26633 s&@docdir@&$docdir&g
26634 s&@infodir@&$infodir&g
26635 s&@localedir@&$localedir&g
26636 s&@mandir@&$mandir&g
26637 s&\\\${datarootdir}&$datarootdir&g' ;;
26641 # Neutralize VPATH when `$srcdir' = `.'.
26642 # Shell code in configure.ac might set extrasub.
26643 # FIXME: do we really want to maintain this feature?
26644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26645 ac_sed_extra="$ac_vpsub
26648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26651 s|@configure_input@|$ac_sed_conf_input|;t t
26652 s&@top_builddir@&$ac_top_builddir_sub&;t t
26653 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26654 s&@srcdir@&$ac_srcdir&;t t
26655 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26656 s&@top_srcdir@&$ac_top_srcdir&;t t
26657 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26658 s&@builddir@&$ac_builddir&;t t
26659 s&@abs_builddir@&$ac_abs_builddir&;t t
26660 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26661 s&@INSTALL@&$ac_INSTALL&;t t
26662 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26663 $ac_datarootdir_hack
26665 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26666 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26668 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26669 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26670 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26671 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26673 which seems to be undefined. Please make sure it is defined" >&5
26674 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26675 which seems to be undefined. Please make sure it is defined" >&2;}
26677 rm -f "$ac_tmp/stdin"
26679 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26680 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26682 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26688 if test x"$ac_file" != x-; then
26690 $as_echo "/* $configure_input */" \
26691 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26692 } >"$ac_tmp/config.h" \
26693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26694 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26695 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26696 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26699 mv "$ac_tmp/config.h" "$ac_file" \
26700 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26703 $as_echo "/* $configure_input */" \
26704 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26705 || as_fn_error $? "could not create -" "$LINENO" 5
26707 # Compute "$ac_file"'s index in $config_headers.
26710 for _am_header in $config_headers :; do
26711 case $_am_header in
26712 $_am_arg | $_am_arg:* )
26715 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26718 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26719 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26720 X"$_am_arg" : 'X\(//\)[^/]' \| \
26721 X"$_am_arg" : 'X\(//\)$' \| \
26722 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26723 $as_echo X"$_am_arg" |
26724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26728 /^X\(\/\/\)[^/].*/{
26740 s/.*/./; q'`/stamp-h$_am_stamp_count
26743 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26744 $as_echo "$as_me: executing $ac_file commands" >&6;}
26749 case $ac_file$ac_mode in
26750 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26751 # Older Autoconf quotes --file arguments for eval, but not when files
26752 # are listed without --file. Let's play safe and only enable the eval
26753 # if we detect the quoting.
26754 case $CONFIG_FILES in
26755 *\'*) eval set x "$CONFIG_FILES" ;;
26756 *) set x $CONFIG_FILES ;;
26761 # Strip MF so we end up with the name of the file.
26762 mf=`echo "$mf" | sed -e 's/:.*$//'`
26763 # Check whether this is an Automake generated Makefile or not.
26764 # We used to match only the files named 'Makefile.in', but
26765 # some people rename them; so instead we look at the file content.
26766 # Grep'ing the first line is not enough: some people post-process
26767 # each Makefile.in and add a new line on top of each file to say so.
26768 # Grep'ing the whole file is not good either: AIX grep has a line
26769 # limit of 2048, but all sed's we know have understand at least 4000.
26770 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26771 dirpart=`$as_dirname -- "$mf" ||
26772 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26773 X"$mf" : 'X\(//\)[^/]' \| \
26774 X"$mf" : 'X\(//\)$' \| \
26775 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26781 /^X\(\/\/\)[^/].*/{
26797 # Extract the definition of DEPDIR, am__include, and am__quote
26798 # from the Makefile without running 'make'.
26799 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26800 test -z "$DEPDIR" && continue
26801 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26802 test -z "$am__include" && continue
26803 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26804 # Find all dependency output files, they are included files with
26805 # $(DEPDIR) in their names. We invoke sed twice because it is the
26806 # simplest approach to changing $(DEPDIR) to its actual value in the
26808 for file in `sed -n "
26809 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26810 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
26811 # Make sure the directory exists.
26812 test -f "$dirpart/$file" && continue
26813 fdir=`$as_dirname -- "$file" ||
26814 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26815 X"$file" : 'X\(//\)[^/]' \| \
26816 X"$file" : 'X\(//\)$' \| \
26817 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26818 $as_echo X"$file" |
26819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26823 /^X\(\/\/\)[^/].*/{
26836 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26837 # echo "creating $dirpart/$file"
26838 echo '# dummy' > "$dirpart/$file"
26845 # See if we are running on zsh, and set the options which allow our
26846 # commands through without removal of \ escapes.
26847 if test -n "${ZSH_VERSION+set}" ; then
26848 setopt NO_GLOB_SUBST
26851 cfgfile="${ofile}T"
26852 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26855 cat <<_LT_EOF >> "$cfgfile"
26858 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26859 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26860 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26861 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26863 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26864 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26866 # Written by Gordon Matzigkeit, 1996
26868 # This file is part of GNU Libtool.
26870 # GNU Libtool is free software; you can redistribute it and/or
26871 # modify it under the terms of the GNU General Public License as
26872 # published by the Free Software Foundation; either version 2 of
26873 # the License, or (at your option) any later version.
26875 # As a special exception to the GNU General Public License,
26876 # if you distribute this file as part of a program or library that
26877 # is built using GNU Libtool, you may include this file under the
26878 # same distribution terms that you use for the rest of that program.
26880 # GNU Libtool is distributed in the hope that it will be useful,
26881 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26882 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26883 # GNU General Public License for more details.
26885 # You should have received a copy of the GNU General Public License
26886 # along with GNU Libtool; see the file COPYING. If not, a copy
26887 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26888 # obtained by writing to the Free Software Foundation, Inc.,
26889 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26892 # The names of the tagged configurations supported by this script.
26895 # ### BEGIN LIBTOOL CONFIG
26897 # Which release of libtool.m4 was used?
26898 macro_version=$macro_version
26899 macro_revision=$macro_revision
26901 # Whether or not to build static libraries.
26902 build_old_libs=$enable_static
26904 # Whether or not to build shared libraries.
26905 build_libtool_libs=$enable_shared
26907 # What type of objects to build.
26910 # Whether or not to optimize for fast installation.
26911 fast_install=$enable_fast_install
26913 # Shell to use when invoking shell scripts.
26916 # An echo program that protects backslashes.
26919 # The PATH separator for the build system.
26920 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26923 host_alias=$host_alias
26927 # The build system.
26928 build_alias=$build_alias
26932 # A sed program that does not truncate output.
26935 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26936 Xsed="\$SED -e 1s/^X//"
26938 # A grep program that handles long lines.
26944 # A literal string matcher.
26947 # A BSD- or MS-compatible name lister.
26950 # Whether we need soft or hard links.
26953 # What is the maximum length of a command?
26954 max_cmd_len=$max_cmd_len
26956 # Object file suffix (normally "o").
26959 # Executable file suffix (normally "").
26962 # whether the shell understands "unset".
26965 # turn spaces into newlines.
26968 # turn newlines into spaces.
26971 # convert \$build file names to \$host format.
26972 to_host_file_cmd=$lt_cv_to_host_file_cmd
26974 # convert \$build files to toolchain format.
26975 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26977 # An object symbol dumper.
26978 OBJDUMP=$lt_OBJDUMP
26980 # Method to check whether dependent libraries are shared objects.
26981 deplibs_check_method=$lt_deplibs_check_method
26983 # Command to use when deplibs_check_method = "file_magic".
26984 file_magic_cmd=$lt_file_magic_cmd
26986 # How to find potential files when deplibs_check_method = "file_magic".
26987 file_magic_glob=$lt_file_magic_glob
26989 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26990 want_nocaseglob=$lt_want_nocaseglob
26992 # DLL creation program.
26993 DLLTOOL=$lt_DLLTOOL
26995 # Command to associate shared and link libraries.
26996 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27001 # Flags to create an archive.
27002 AR_FLAGS=$lt_AR_FLAGS
27004 # How to feed a file listing to the archiver.
27005 archiver_list_spec=$lt_archiver_list_spec
27007 # A symbol stripping program.
27010 # Commands used to install an old-style archive.
27012 old_postinstall_cmds=$lt_old_postinstall_cmds
27013 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27015 # Whether to use a lock for old archive extraction.
27016 lock_old_archive_extraction=$lock_old_archive_extraction
27021 # LTCC compiler flags.
27022 LTCFLAGS=$lt_CFLAGS
27024 # Take the output of nm and produce a listing of raw symbols and C names.
27025 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27027 # Transform the output of nm in a proper C declaration.
27028 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27030 # Transform the output of nm in a C name address pair.
27031 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27033 # Transform the output of nm in a C name address pair when lib prefix is needed.
27034 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27036 # Specify filename containing input files for \$NM.
27037 nm_file_list_spec=$lt_nm_file_list_spec
27039 # The root where to search for dependent libraries,and in which our libraries should be installed.
27040 lt_sysroot=$lt_sysroot
27042 # The name of the directory that contains temporary libtool files.
27045 # Used to examine libraries when file_magic_cmd begins with "file".
27046 MAGIC_CMD=$MAGIC_CMD
27048 # Must we lock files when doing compilation?
27049 need_locks=$lt_need_locks
27052 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27054 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27055 DSYMUTIL=$lt_DSYMUTIL
27057 # Tool to change global to local symbols on Mac OS X.
27060 # Tool to manipulate fat objects and archives on Mac OS X.
27063 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27066 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27067 OTOOL64=$lt_OTOOL64
27069 # Old archive suffix (normally "a").
27072 # Shared library suffix (normally ".so").
27073 shrext_cmds=$lt_shrext_cmds
27075 # The commands to extract the exported symbol list from a shared archive.
27076 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27078 # Variables whose values should be saved in libtool wrapper scripts and
27079 # restored at link time.
27080 variables_saved_for_relink=$lt_variables_saved_for_relink
27082 # Do we need the "lib" prefix for modules?
27083 need_lib_prefix=$need_lib_prefix
27085 # Do we need a version for libraries?
27086 need_version=$need_version
27088 # Library versioning type.
27089 version_type=$version_type
27091 # Shared library runtime path variable.
27092 runpath_var=$runpath_var
27094 # Shared library path variable.
27095 shlibpath_var=$shlibpath_var
27097 # Is shlibpath searched before the hard-coded library search path?
27098 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27100 # Format of library name prefix.
27101 libname_spec=$lt_libname_spec
27103 # List of archive names. First name is the real one, the rest are links.
27104 # The last name is the one that the linker finds with -lNAME
27105 library_names_spec=$lt_library_names_spec
27107 # The coded name of the library, if different from the real name.
27108 soname_spec=$lt_soname_spec
27110 # Permission mode override for installation of shared libraries.
27111 install_override_mode=$lt_install_override_mode
27113 # Command to use after installation of a shared archive.
27114 postinstall_cmds=$lt_postinstall_cmds
27116 # Command to use after uninstallation of a shared archive.
27117 postuninstall_cmds=$lt_postuninstall_cmds
27119 # Commands used to finish a libtool library installation in a directory.
27120 finish_cmds=$lt_finish_cmds
27122 # As "finish_cmds", except a single script fragment to be evaled but
27124 finish_eval=$lt_finish_eval
27126 # Whether we should hardcode library paths into libraries.
27127 hardcode_into_libs=$hardcode_into_libs
27129 # Compile-time system search path for libraries.
27130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27132 # Run-time system search path for libraries.
27133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27135 # Whether dlopen is supported.
27136 dlopen_support=$enable_dlopen
27138 # Whether dlopen of programs is supported.
27139 dlopen_self=$enable_dlopen_self
27141 # Whether dlopen of statically linked programs is supported.
27142 dlopen_self_static=$enable_dlopen_self_static
27144 # Commands to strip libraries.
27145 old_striplib=$lt_old_striplib
27146 striplib=$lt_striplib
27149 # The linker used to build libraries.
27152 # How to create reloadable object files.
27153 reload_flag=$lt_reload_flag
27154 reload_cmds=$lt_reload_cmds
27156 # Commands used to build an old-style archive.
27157 old_archive_cmds=$lt_old_archive_cmds
27159 # A language specific compiler.
27162 # Is the compiler the GNU compiler?
27165 # Compiler flag to turn off builtin functions.
27166 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27168 # Additional compiler flags for building library objects.
27169 pic_flag=$lt_lt_prog_compiler_pic
27171 # How to pass a linker flag through the compiler.
27172 wl=$lt_lt_prog_compiler_wl
27174 # Compiler flag to prevent dynamic linking.
27175 link_static_flag=$lt_lt_prog_compiler_static
27177 # Does compiler simultaneously support -c and -o options?
27178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27180 # Whether or not to add -lc for building shared libraries.
27181 build_libtool_need_lc=$archive_cmds_need_lc
27183 # Whether or not to disallow shared libs when runtime libs are static.
27184 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27186 # Compiler flag to allow reflexive dlopens.
27187 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27189 # Compiler flag to generate shared objects directly from archives.
27190 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27192 # Whether the compiler copes with passing no objects directly.
27193 compiler_needs_object=$lt_compiler_needs_object
27195 # Create an old-style archive from a shared archive.
27196 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27198 # Create a temporary old-style archive to link instead of a shared archive.
27199 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27201 # Commands used to build a shared archive.
27202 archive_cmds=$lt_archive_cmds
27203 archive_expsym_cmds=$lt_archive_expsym_cmds
27205 # Commands used to build a loadable module if different from building
27206 # a shared archive.
27207 module_cmds=$lt_module_cmds
27208 module_expsym_cmds=$lt_module_expsym_cmds
27210 # Whether we are building with GNU ld or not.
27211 with_gnu_ld=$lt_with_gnu_ld
27213 # Flag that allows shared libraries with undefined symbols to be built.
27214 allow_undefined_flag=$lt_allow_undefined_flag
27216 # Flag that enforces no undefined symbols.
27217 no_undefined_flag=$lt_no_undefined_flag
27219 # Flag to hardcode \$libdir into a binary during linking.
27220 # This must work even if \$libdir does not exist
27221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27223 # Whether we need a single "-rpath" flag with a separated argument.
27224 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27226 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27227 # DIR into the resulting binary.
27228 hardcode_direct=$hardcode_direct
27230 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27231 # DIR into the resulting binary and the resulting library dependency is
27232 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27233 # library is relocated.
27234 hardcode_direct_absolute=$hardcode_direct_absolute
27236 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27237 # into the resulting binary.
27238 hardcode_minus_L=$hardcode_minus_L
27240 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27241 # into the resulting binary.
27242 hardcode_shlibpath_var=$hardcode_shlibpath_var
27244 # Set to "yes" if building a shared library automatically hardcodes DIR
27245 # into the library and all subsequent libraries and executables linked
27247 hardcode_automatic=$hardcode_automatic
27249 # Set to yes if linker adds runtime paths of dependent libraries
27250 # to runtime path list.
27251 inherit_rpath=$inherit_rpath
27253 # Whether libtool must link a program against all its dependency libraries.
27254 link_all_deplibs=$link_all_deplibs
27256 # Set to "yes" if exported symbols are required.
27257 always_export_symbols=$always_export_symbols
27259 # The commands to list exported symbols.
27260 export_symbols_cmds=$lt_export_symbols_cmds
27262 # Symbols that should not be listed in the preloaded symbols.
27263 exclude_expsyms=$lt_exclude_expsyms
27265 # Symbols that must always be exported.
27266 include_expsyms=$lt_include_expsyms
27268 # Commands necessary for linking programs (against libraries) with templates.
27269 prelink_cmds=$lt_prelink_cmds
27271 # Commands necessary for finishing linking programs.
27272 postlink_cmds=$lt_postlink_cmds
27274 # Specify filename containing input files.
27275 file_list_spec=$lt_file_list_spec
27277 # How to hardcode a shared library path into an executable.
27278 hardcode_action=$hardcode_action
27280 # ### END LIBTOOL CONFIG
27286 cat <<\_LT_EOF >> "$cfgfile"
27287 # AIX sometimes has problems with the GCC collect2 program. For some
27288 # reason, if we set the COLLECT_NAMES environment variable, the problems
27289 # vanish in a puff of smoke.
27290 if test "X${COLLECT_NAMES+set}" != Xset; then
27292 export COLLECT_NAMES
27299 ltmain="$ac_aux_dir/ltmain.sh"
27302 # We use sed instead of cat because bash on DJGPP gets confused if
27303 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27304 # text mode, it properly converts lines to CR/LF. This bash problem
27305 # is reportedly fixed, but why not run on old versions too?
27306 sed '$q' "$ltmain" >> "$cfgfile" \
27307 || (rm -f "$cfgfile"; exit 1)
27309 if test x"$xsi_shell" = xyes; then
27310 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27314 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27315 \ * ) func_dirname_result="${3}" ;;\
27317 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27318 && mv -f "$cfgfile.tmp" "$cfgfile" \
27319 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27320 test 0 -eq $? || _lt_function_replace_fail=:
27323 sed -e '/^func_basename ()$/,/^} # func_basename /c\
27326 \ func_basename_result="${1##*/}"\
27327 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27328 && mv -f "$cfgfile.tmp" "$cfgfile" \
27329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27330 test 0 -eq $? || _lt_function_replace_fail=:
27333 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27334 func_dirname_and_basename ()\
27337 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27338 \ * ) func_dirname_result="${3}" ;;\
27340 \ func_basename_result="${1##*/}"\
27341 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27342 && mv -f "$cfgfile.tmp" "$cfgfile" \
27343 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27344 test 0 -eq $? || _lt_function_replace_fail=:
27347 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27350 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27351 \ # positional parameters, so assign one to ordinary parameter first.\
27352 \ func_stripname_result=${3}\
27353 \ func_stripname_result=${func_stripname_result#"${1}"}\
27354 \ func_stripname_result=${func_stripname_result%"${2}"}\
27355 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27356 && mv -f "$cfgfile.tmp" "$cfgfile" \
27357 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27358 test 0 -eq $? || _lt_function_replace_fail=:
27361 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27362 func_split_long_opt ()\
27364 \ func_split_long_opt_name=${1%%=*}\
27365 \ func_split_long_opt_arg=${1#*=}\
27366 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27367 && mv -f "$cfgfile.tmp" "$cfgfile" \
27368 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27369 test 0 -eq $? || _lt_function_replace_fail=:
27372 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27373 func_split_short_opt ()\
27375 \ func_split_short_opt_arg=${1#??}\
27376 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27377 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27378 && mv -f "$cfgfile.tmp" "$cfgfile" \
27379 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27380 test 0 -eq $? || _lt_function_replace_fail=:
27383 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27387 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27388 \ *) func_lo2o_result=${1} ;;\
27390 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27391 && mv -f "$cfgfile.tmp" "$cfgfile" \
27392 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27393 test 0 -eq $? || _lt_function_replace_fail=:
27396 sed -e '/^func_xform ()$/,/^} # func_xform /c\
27399 func_xform_result=${1%.*}.lo\
27400 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27401 && mv -f "$cfgfile.tmp" "$cfgfile" \
27402 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27403 test 0 -eq $? || _lt_function_replace_fail=:
27406 sed -e '/^func_arith ()$/,/^} # func_arith /c\
27409 func_arith_result=$(( $* ))\
27410 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27411 && mv -f "$cfgfile.tmp" "$cfgfile" \
27412 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27413 test 0 -eq $? || _lt_function_replace_fail=:
27416 sed -e '/^func_len ()$/,/^} # func_len /c\
27419 func_len_result=${#1}\
27420 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27421 && mv -f "$cfgfile.tmp" "$cfgfile" \
27422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27423 test 0 -eq $? || _lt_function_replace_fail=:
27427 if test x"$lt_shell_append" = xyes; then
27428 sed -e '/^func_append ()$/,/^} # func_append /c\
27431 eval "${1}+=\\${2}"\
27432 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27433 && mv -f "$cfgfile.tmp" "$cfgfile" \
27434 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27435 test 0 -eq $? || _lt_function_replace_fail=:
27438 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27439 func_append_quoted ()\
27441 \ func_quote_for_eval "${2}"\
27442 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27443 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27444 && mv -f "$cfgfile.tmp" "$cfgfile" \
27445 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27446 test 0 -eq $? || _lt_function_replace_fail=:
27449 # Save a `func_append' function call where possible by direct use of '+='
27450 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27451 && mv -f "$cfgfile.tmp" "$cfgfile" \
27452 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27453 test 0 -eq $? || _lt_function_replace_fail=:
27455 # Save a `func_append' function call even when '+=' is not available
27456 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27457 && mv -f "$cfgfile.tmp" "$cfgfile" \
27458 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27459 test 0 -eq $? || _lt_function_replace_fail=:
27462 if test x"$_lt_function_replace_fail" = x":"; then
27463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27464 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27468 mv -f "$cfgfile" "$ofile" ||
27469 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27480 ac_clean_files=$ac_clean_files_save
27482 test $ac_write_fail = 0 ||
27483 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27486 # configure is writing to config.log, and then calls config.status.
27487 # config.status does its own redirection, appending to config.log.
27488 # Unfortunately, on DOS this fails, as config.log is still kept open
27489 # by configure, so config.status won't be able to write to it; its
27490 # output is simply discarded. So we exec the FD to /dev/null,
27491 # effectively closing config.log, so it can be properly (re)opened and
27492 # appended to by config.status. When coming back to configure, we
27493 # need to make the FD available again.
27494 if test "$no_create" != yes; then
27496 ac_config_status_args=
27497 test "$silent" = yes &&
27498 ac_config_status_args="$ac_config_status_args --quiet"
27500 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27502 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27503 # would make configure fail if this is the last instruction.
27504 $ac_cs_success || as_fn_exit 1
27506 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27508 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}