2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpipeline 1.2.3.
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.3'
594 PACKAGE_STRING='libpipeline 1.2.3'
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
766 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
768 REPLACE_STRUCT_TIMEVAL
774 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
810 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
817 NEXT_AS_FIRST_DIRECTIVE_STRING_H
820 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
822 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
824 GL_GENERATE_STDINT_H_FALSE
825 GL_GENERATE_STDINT_H_TRUE
834 HAVE_SIGNED_SIG_ATOMIC_T
837 BITSIZEOF_SIG_ATOMIC_T
843 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
848 HAVE_UNSIGNED_LONG_LONG_INT
850 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
852 GL_GENERATE_STDDEF_H_FALSE
853 GL_GENERATE_STDDEF_H_TRUE
858 GL_GENERATE_STDBOOL_H_FALSE
859 GL_GENERATE_STDBOOL_H_TRUE
861 GL_GENERATE_STDARG_H_FALSE
862 GL_GENERATE_STDARG_H_TRUE
864 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
873 REPLACE_STDIO_WRITE_FUNCS
874 REPLACE_STDIO_READ_FUNCS
883 REPLACE_OBSTACK_PRINTF
908 HAVE_DECL_OBSTACK_PRINTF
914 GNULIB_VSPRINTF_POSIX
918 GNULIB_VFPRINTF_POSIX
925 GNULIB_STDIO_H_SIGPIPE
926 GNULIB_STDIO_H_NONBLOCKING
941 GNULIB_OBSTACK_PRINTF_POSIX
942 GNULIB_OBSTACK_PRINTF
967 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
970 REPLACE_PTHREAD_SIGMASK
972 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
973 HAVE_STRUCT_SIGACTION_SA_SIGACTION
979 HAVE_POSIX_SIGNALBLOCKING
982 GNULIB_SIGNAL_H_SIGPIPE
984 GNULIB_PTHREAD_SIGMASK
985 APPLE_UNIVERSAL_BUILD
986 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1004 HAVE_DECL_STRERROR_R
1072 REPLACE_CANONICALIZE_FILE_NAME
1077 HAVE_STRUCT_RANDOM_DATA
1098 HAVE_DECL_GETLOADAVG
1099 HAVE_CANONICALIZE_FILE_NAME
1112 GNULIB_REALLOC_POSIX
1129 GNULIB_CANONICALIZE_FILE_NAME
1140 IGNORE_UNUSED_LIBRARIES_CFLAGS
1144 GL_GENERATE_FLOAT_H_FALSE
1145 GL_GENERATE_FLOAT_H_TRUE
1147 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1155 GL_GENERATE_ERRNO_H_FALSE
1156 GL_GENERATE_ERRNO_H_TRUE
1158 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1161 PRAGMA_SYSTEM_HEADER
1162 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1164 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1165 UNISTD_H_HAVE_WINSOCK2_H
1186 REPLACE_GETDOMAINNAME
1196 HAVE_DECL_SETHOSTNAME
1197 HAVE_DECL_GETUSERSHELL
1198 HAVE_DECL_GETPAGESIZE
1199 HAVE_DECL_GETLOGIN_R
1200 HAVE_DECL_GETDOMAINNAME
1239 GNULIB_UNISTD_H_SIGPIPE
1240 GNULIB_UNISTD_H_NONBLOCKING
1266 GNULIB_GETDTABLESIZE
1267 GNULIB_GETDOMAINNAME
1283 GL_GENERATE_ALLOCA_H_FALSE
1284 GL_GENERATE_ALLOCA_H_TRUE
1287 GL_COND_LIBTOOL_FALSE
1288 GL_COND_LIBTOOL_TRUE
1345 AM_DEFAULT_VERBOSITY
1349 MAINTAINER_MODE_FALSE
1350 MAINTAINER_MODE_TRUE
1359 INSTALL_STRIP_PROGRAM
1401 program_transform_name
1414 enable_option_checking
1415 enable_maintainer_mode
1417 enable_dependency_tracking
1428 enable_socketpair_pipe
1430 ac_precious_vars='build_alias
1446 # Initialize some variables set by options.
1448 ac_init_version=false
1449 ac_unrecognized_opts=
1450 ac_unrecognized_sep=
1451 # The variables have the same names as the options, with
1452 # dashes changed to underlines.
1453 cache_file=/dev/null
1460 program_transform_name=s,x,x,
1468 # Installation directory options.
1469 # These are left unexpanded so users can "make install exec_prefix=/foo"
1470 # and all the variables that are supposed to be based on exec_prefix
1471 # by default will actually change.
1472 # Use braces instead of parens because sh, perl, etc. also accept them.
1473 # (The list follows the same order as the GNU Coding Standards.)
1474 bindir='${exec_prefix}/bin'
1475 sbindir='${exec_prefix}/sbin'
1476 libexecdir='${exec_prefix}/libexec'
1477 datarootdir='${prefix}/share'
1478 datadir='${datarootdir}'
1479 sysconfdir='${prefix}/etc'
1480 sharedstatedir='${prefix}/com'
1481 localstatedir='${prefix}/var'
1482 includedir='${prefix}/include'
1483 oldincludedir='/usr/include'
1484 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1485 infodir='${datarootdir}/info'
1490 libdir='${exec_prefix}/lib'
1491 localedir='${datarootdir}/locale'
1492 mandir='${datarootdir}/man'
1498 # If the previous option needs an argument, assign it.
1499 if test -n "$ac_prev"; then
1500 eval $ac_prev=\$ac_option
1506 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1511 # Accept the important Cygnus configure options, so we can diagnose typos.
1513 case $ac_dashdash$ac_option in
1517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1520 bindir=$ac_optarg ;;
1522 -build | --build | --buil | --bui | --bu)
1523 ac_prev=build_alias ;;
1524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1525 build_alias=$ac_optarg ;;
1527 -cache-file | --cache-file | --cache-fil | --cache-fi \
1528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1529 ac_prev=cache_file ;;
1530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1532 cache_file=$ac_optarg ;;
1534 --config-cache | -C)
1535 cache_file=config.cache ;;
1537 -datadir | --datadir | --datadi | --datad)
1539 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1540 datadir=$ac_optarg ;;
1542 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1543 | --dataroo | --dataro | --datar)
1544 ac_prev=datarootdir ;;
1545 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1546 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1547 datarootdir=$ac_optarg ;;
1549 -disable-* | --disable-*)
1550 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1551 # Reject names that are not valid shell variable names.
1552 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1553 as_fn_error $? "invalid feature name: $ac_useropt"
1554 ac_useropt_orig=$ac_useropt
1555 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1556 case $ac_user_opts in
1558 "enable_$ac_useropt"
1560 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1561 ac_unrecognized_sep=', ';;
1563 eval enable_$ac_useropt=no ;;
1565 -docdir | --docdir | --docdi | --doc | --do)
1567 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1568 docdir=$ac_optarg ;;
1570 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1572 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1573 dvidir=$ac_optarg ;;
1575 -enable-* | --enable-*)
1576 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1577 # Reject names that are not valid shell variable names.
1578 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1579 as_fn_error $? "invalid feature name: $ac_useropt"
1580 ac_useropt_orig=$ac_useropt
1581 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1582 case $ac_user_opts in
1584 "enable_$ac_useropt"
1586 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1587 ac_unrecognized_sep=', ';;
1589 eval enable_$ac_useropt=\$ac_optarg ;;
1591 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1592 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1593 | --exec | --exe | --ex)
1594 ac_prev=exec_prefix ;;
1595 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1596 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1597 | --exec=* | --exe=* | --ex=*)
1598 exec_prefix=$ac_optarg ;;
1600 -gas | --gas | --ga | --g)
1601 # Obsolete; use --with-gas.
1604 -help | --help | --hel | --he | -h)
1605 ac_init_help=long ;;
1606 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1607 ac_init_help=recursive ;;
1608 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1609 ac_init_help=short ;;
1611 -host | --host | --hos | --ho)
1612 ac_prev=host_alias ;;
1613 -host=* | --host=* | --hos=* | --ho=*)
1614 host_alias=$ac_optarg ;;
1616 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1618 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1620 htmldir=$ac_optarg ;;
1622 -includedir | --includedir | --includedi | --included | --include \
1623 | --includ | --inclu | --incl | --inc)
1624 ac_prev=includedir ;;
1625 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1626 | --includ=* | --inclu=* | --incl=* | --inc=*)
1627 includedir=$ac_optarg ;;
1629 -infodir | --infodir | --infodi | --infod | --info | --inf)
1631 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1632 infodir=$ac_optarg ;;
1634 -libdir | --libdir | --libdi | --libd)
1636 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1637 libdir=$ac_optarg ;;
1639 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1640 | --libexe | --libex | --libe)
1641 ac_prev=libexecdir ;;
1642 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1643 | --libexe=* | --libex=* | --libe=*)
1644 libexecdir=$ac_optarg ;;
1646 -localedir | --localedir | --localedi | --localed | --locale)
1647 ac_prev=localedir ;;
1648 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1649 localedir=$ac_optarg ;;
1651 -localstatedir | --localstatedir | --localstatedi | --localstated \
1652 | --localstate | --localstat | --localsta | --localst | --locals)
1653 ac_prev=localstatedir ;;
1654 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1655 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1656 localstatedir=$ac_optarg ;;
1658 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1660 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1661 mandir=$ac_optarg ;;
1663 -nfp | --nfp | --nf)
1664 # Obsolete; use --without-fp.
1667 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1668 | --no-cr | --no-c | -n)
1671 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1672 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1675 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1676 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1677 | --oldin | --oldi | --old | --ol | --o)
1678 ac_prev=oldincludedir ;;
1679 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1680 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1681 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1682 oldincludedir=$ac_optarg ;;
1684 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1686 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1687 prefix=$ac_optarg ;;
1689 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1690 | --program-pre | --program-pr | --program-p)
1691 ac_prev=program_prefix ;;
1692 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1693 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1694 program_prefix=$ac_optarg ;;
1696 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1697 | --program-suf | --program-su | --program-s)
1698 ac_prev=program_suffix ;;
1699 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1700 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1701 program_suffix=$ac_optarg ;;
1703 -program-transform-name | --program-transform-name \
1704 | --program-transform-nam | --program-transform-na \
1705 | --program-transform-n | --program-transform- \
1706 | --program-transform | --program-transfor \
1707 | --program-transfo | --program-transf \
1708 | --program-trans | --program-tran \
1709 | --progr-tra | --program-tr | --program-t)
1710 ac_prev=program_transform_name ;;
1711 -program-transform-name=* | --program-transform-name=* \
1712 | --program-transform-nam=* | --program-transform-na=* \
1713 | --program-transform-n=* | --program-transform-=* \
1714 | --program-transform=* | --program-transfor=* \
1715 | --program-transfo=* | --program-transf=* \
1716 | --program-trans=* | --program-tran=* \
1717 | --progr-tra=* | --program-tr=* | --program-t=*)
1718 program_transform_name=$ac_optarg ;;
1720 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1722 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1723 pdfdir=$ac_optarg ;;
1725 -psdir | --psdir | --psdi | --psd | --ps)
1727 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1731 | -silent | --silent | --silen | --sile | --sil)
1734 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1736 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1738 sbindir=$ac_optarg ;;
1740 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1741 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1742 | --sharedst | --shareds | --shared | --share | --shar \
1744 ac_prev=sharedstatedir ;;
1745 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1746 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1747 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1749 sharedstatedir=$ac_optarg ;;
1751 -site | --site | --sit)
1753 -site=* | --site=* | --sit=*)
1756 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1758 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1759 srcdir=$ac_optarg ;;
1761 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1762 | --syscon | --sysco | --sysc | --sys | --sy)
1763 ac_prev=sysconfdir ;;
1764 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1765 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1766 sysconfdir=$ac_optarg ;;
1768 -target | --target | --targe | --targ | --tar | --ta | --t)
1769 ac_prev=target_alias ;;
1770 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1771 target_alias=$ac_optarg ;;
1773 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1776 -version | --version | --versio | --versi | --vers | -V)
1777 ac_init_version=: ;;
1780 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1781 # Reject names that are not valid shell variable names.
1782 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1783 as_fn_error $? "invalid package name: $ac_useropt"
1784 ac_useropt_orig=$ac_useropt
1785 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1786 case $ac_user_opts in
1790 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1791 ac_unrecognized_sep=', ';;
1793 eval with_$ac_useropt=\$ac_optarg ;;
1795 -without-* | --without-*)
1796 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1797 # Reject names that are not valid shell variable names.
1798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1799 as_fn_error $? "invalid package name: $ac_useropt"
1800 ac_useropt_orig=$ac_useropt
1801 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1802 case $ac_user_opts in
1806 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1807 ac_unrecognized_sep=', ';;
1809 eval with_$ac_useropt=no ;;
1812 # Obsolete; use --with-x.
1815 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1816 | --x-incl | --x-inc | --x-in | --x-i)
1817 ac_prev=x_includes ;;
1818 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1819 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1820 x_includes=$ac_optarg ;;
1822 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1823 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1824 ac_prev=x_libraries ;;
1825 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1826 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1827 x_libraries=$ac_optarg ;;
1829 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1830 Try \`$0 --help' for more information"
1834 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1835 # Reject names that are not valid shell variable names.
1836 case $ac_envvar in #(
1837 '' | [0-9]* | *[!_$as_cr_alnum]* )
1838 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1840 eval $ac_envvar=\$ac_optarg
1841 export $ac_envvar ;;
1844 # FIXME: should be removed in autoconf 3.0.
1845 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1846 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1847 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1848 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1854 if test -n "$ac_prev"; then
1855 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1856 as_fn_error $? "missing argument to $ac_option"
1859 if test -n "$ac_unrecognized_opts"; then
1860 case $enable_option_checking in
1862 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1863 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1867 # Check all directory arguments for consistency.
1868 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1869 datadir sysconfdir sharedstatedir localstatedir includedir \
1870 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1871 libdir localedir mandir
1873 eval ac_val=\$$ac_var
1874 # Remove trailing slashes.
1877 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1878 eval $ac_var=\$ac_val;;
1880 # Be sure to have absolute directory names.
1882 [\\/$]* | ?:[\\/]* ) continue;;
1883 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1885 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1888 # There might be people who depend on the old broken behavior: `$host'
1889 # used to hold the argument of --host etc.
1890 # FIXME: To remove some day.
1893 target=$target_alias
1895 # FIXME: To remove some day.
1896 if test "x$host_alias" != x; then
1897 if test "x$build_alias" = x; then
1898 cross_compiling=maybe
1899 elif test "x$build_alias" != "x$host_alias"; then
1905 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1907 test "$silent" = yes && exec 6>/dev/null
1910 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1911 ac_ls_di=`ls -di .` &&
1912 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1913 as_fn_error $? "working directory cannot be determined"
1914 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1915 as_fn_error $? "pwd does not report name of working directory"
1918 # Find the source files, if location was not specified.
1919 if test -z "$srcdir"; then
1920 ac_srcdir_defaulted=yes
1921 # Try the directory containing this script, then the parent directory.
1922 ac_confdir=`$as_dirname -- "$as_myself" ||
1923 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1924 X"$as_myself" : 'X\(//\)[^/]' \| \
1925 X"$as_myself" : 'X\(//\)$' \| \
1926 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1927 $as_echo X"$as_myself" |
1928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1946 if test ! -r "$srcdir/$ac_unique_file"; then
1950 ac_srcdir_defaulted=no
1952 if test ! -r "$srcdir/$ac_unique_file"; then
1953 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1954 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1956 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1958 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1960 # When building in place, set srcdir=.
1961 if test "$ac_abs_confdir" = "$ac_pwd"; then
1964 # Remove unnecessary trailing slashes from srcdir.
1965 # Double slashes in file names in object file debugging info
1966 # mess up M-x gdb in Emacs.
1968 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1970 for ac_var in $ac_precious_vars; do
1971 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1972 eval ac_env_${ac_var}_value=\$${ac_var}
1973 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1974 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1978 # Report the --help message.
1980 if test "$ac_init_help" = "long"; then
1981 # Omit some internal or obsolete options to make the list less imposing.
1982 # This message is too long to be a string in the A/UX 3.1 sh.
1984 \`configure' configures libpipeline 1.2.3 to adapt to many kinds of systems.
1986 Usage: $0 [OPTION]... [VAR=VALUE]...
1988 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1989 VAR=VALUE. See below for descriptions of some of the useful variables.
1991 Defaults for the options are specified in brackets.
1994 -h, --help display this help and exit
1995 --help=short display options specific to this package
1996 --help=recursive display the short help of all the included packages
1997 -V, --version display version information and exit
1998 -q, --quiet, --silent do not print \`checking ...' messages
1999 --cache-file=FILE cache test results in FILE [disabled]
2000 -C, --config-cache alias for \`--cache-file=config.cache'
2001 -n, --no-create do not create output files
2002 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2004 Installation directories:
2005 --prefix=PREFIX install architecture-independent files in PREFIX
2006 [$ac_default_prefix]
2007 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2010 By default, \`make install' will install all the files in
2011 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2012 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2013 for instance \`--prefix=\$HOME'.
2015 For better control, use the options below.
2017 Fine tuning of the installation directories:
2018 --bindir=DIR user executables [EPREFIX/bin]
2019 --sbindir=DIR system admin executables [EPREFIX/sbin]
2020 --libexecdir=DIR program executables [EPREFIX/libexec]
2021 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2022 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2023 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2024 --libdir=DIR object code libraries [EPREFIX/lib]
2025 --includedir=DIR C header files [PREFIX/include]
2026 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2027 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2028 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2029 --infodir=DIR info documentation [DATAROOTDIR/info]
2030 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2031 --mandir=DIR man documentation [DATAROOTDIR/man]
2032 --docdir=DIR documentation root [DATAROOTDIR/doc/libpipeline]
2033 --htmldir=DIR html documentation [DOCDIR]
2034 --dvidir=DIR dvi documentation [DOCDIR]
2035 --pdfdir=DIR pdf documentation [DOCDIR]
2036 --psdir=DIR ps documentation [DOCDIR]
2042 --program-prefix=PREFIX prepend PREFIX to installed program names
2043 --program-suffix=SUFFIX append SUFFIX to installed program names
2044 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2047 --build=BUILD configure for building on BUILD [guessed]
2048 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2052 if test -n "$ac_init_help"; then
2053 case $ac_init_help in
2054 short | recursive ) echo "Configuration of libpipeline 1.2.3:";;
2059 --disable-option-checking ignore unrecognized --enable/--with options
2060 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2061 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2062 --enable-maintainer-mode enable make rules and dependencies not useful
2063 (and sometimes confusing) to the casual installer
2064 --enable-silent-rules less verbose build output (undo: `make V=1')
2065 --disable-silent-rules verbose build output (undo: `make V=0')
2066 --disable-dependency-tracking speeds up one-time build
2067 --enable-dependency-tracking do not reject slow dependency extractors
2068 --enable-static[=PKGS] build static libraries [default=no]
2069 --enable-shared[=PKGS] build shared libraries [default=yes]
2070 --enable-fast-install[=PKGS]
2071 optimize for fast installation [default=yes]
2072 --disable-libtool-lock avoid locking (might break parallel builds)
2073 --enable-threads={posix|solaris|pth|windows}
2074 specify multithreading API
2075 --disable-threads build without multithread safety
2076 --disable-rpath do not hardcode runtime library paths
2077 --enable-socketpair-pipe
2078 Use socketpair(2) as fast replacement for pipe(2)
2081 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2082 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2083 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2085 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2086 --with-sysroot=DIR Search for dependent libraries within DIR
2087 (or the compiler's sysroot if not specified).
2088 --with-gnu-ld assume the C compiler uses GNU ld default=no
2089 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2090 --without-libpth-prefix don't search for libpth in includedir and libdir
2092 Some influential environment variables:
2093 CC C compiler command
2094 CFLAGS C compiler flags
2095 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2096 nonstandard directory <lib dir>
2097 LIBS libraries to pass to the linker, e.g. -l<library>
2098 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2099 you have headers in a nonstandard directory <include dir>
2101 PKG_CONFIG path to pkg-config utility
2103 directories to add to pkg-config's search path
2105 path overriding pkg-config's built-in search path
2107 C compiler flags for CHECK, overriding pkg-config
2108 CHECK_LIBS linker flags for CHECK, overriding pkg-config
2110 Use these variables to override the choices made by `configure' or to help
2111 it to find libraries and programs with nonstandard names/locations.
2113 Report bugs to <cjwatson@debian.org>.
2118 if test "$ac_init_help" = "recursive"; then
2119 # If there are subdirs, report their specific --help.
2120 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2121 test -d "$ac_dir" ||
2122 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2127 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2129 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2130 # A ".." for each directory in $ac_dir_suffix.
2131 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2132 case $ac_top_builddir_sub in
2133 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2134 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2137 ac_abs_top_builddir=$ac_pwd
2138 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2139 # for backward compatibility:
2140 ac_top_builddir=$ac_top_build_prefix
2143 .) # We are building in place.
2145 ac_top_srcdir=$ac_top_builddir_sub
2146 ac_abs_top_srcdir=$ac_pwd ;;
2147 [\\/]* | ?:[\\/]* ) # Absolute name.
2148 ac_srcdir=$srcdir$ac_dir_suffix;
2149 ac_top_srcdir=$srcdir
2150 ac_abs_top_srcdir=$srcdir ;;
2152 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2153 ac_top_srcdir=$ac_top_build_prefix$srcdir
2154 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2156 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2158 cd "$ac_dir" || { ac_status=$?; continue; }
2159 # Check for guested configure.
2160 if test -f "$ac_srcdir/configure.gnu"; then
2162 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2163 elif test -f "$ac_srcdir/configure"; then
2165 $SHELL "$ac_srcdir/configure" --help=recursive
2167 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2169 cd "$ac_pwd" || { ac_status=$?; break; }
2173 test -n "$ac_init_help" && exit $ac_status
2174 if $ac_init_version; then
2176 libpipeline configure 1.2.3
2177 generated by GNU Autoconf 2.69
2179 Copyright (C) 2012 Free Software Foundation, Inc.
2180 This configure script is free software; the Free Software Foundation
2181 gives unlimited permission to copy, distribute and modify it.
2186 ## ------------------------ ##
2187 ## Autoconf initialization. ##
2188 ## ------------------------ ##
2190 # ac_fn_c_try_compile LINENO
2191 # --------------------------
2192 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2193 ac_fn_c_try_compile ()
2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196 rm -f conftest.$ac_objext
2197 if { { ac_try="$ac_compile"
2199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200 *) ac_try_echo=$ac_try;;
2202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2203 $as_echo "$ac_try_echo"; } >&5
2204 (eval "$ac_compile") 2>conftest.err
2206 if test -s conftest.err; then
2207 grep -v '^ *+' conftest.err >conftest.er1
2208 cat conftest.er1 >&5
2209 mv -f conftest.er1 conftest.err
2211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2212 test $ac_status = 0; } && {
2213 test -z "$ac_c_werror_flag" ||
2214 test ! -s conftest.err
2215 } && test -s conftest.$ac_objext; then :
2218 $as_echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224 as_fn_set_status $ac_retval
2226 } # ac_fn_c_try_compile
2228 # ac_fn_c_try_cpp LINENO
2229 # ----------------------
2230 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 if { { ac_try="$ac_cpp conftest.$ac_ext"
2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237 *) ac_try_echo=$ac_try;;
2239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240 $as_echo "$ac_try_echo"; } >&5
2241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2243 if test -s conftest.err; then
2244 grep -v '^ *+' conftest.err >conftest.er1
2245 cat conftest.er1 >&5
2246 mv -f conftest.er1 conftest.err
2248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249 test $ac_status = 0; } > conftest.i && {
2250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2251 test ! -s conftest.err
2255 $as_echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261 as_fn_set_status $ac_retval
2265 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2266 # -------------------------------------------------------
2267 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2268 # the include files in INCLUDES and setting the cache variable VAR
2270 ac_fn_c_check_header_mongrel ()
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 if eval \${$3+:} false; then :
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275 $as_echo_n "checking for $2... " >&6; }
2276 if eval \${$3+:} false; then :
2277 $as_echo_n "(cached) " >&6
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281 $as_echo "$ac_res" >&6; }
2283 # Is the header compilable?
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2285 $as_echo_n "checking $2 usability... " >&6; }
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292 ac_header_compiler=yes
2294 ac_header_compiler=no
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2298 $as_echo "$ac_header_compiler" >&6; }
2300 # Is the header present?
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2302 $as_echo_n "checking $2 presence... " >&6; }
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2307 if ac_fn_c_try_cpp "$LINENO"; then :
2308 ac_header_preproc=yes
2310 ac_header_preproc=no
2312 rm -f conftest.err conftest.i conftest.$ac_ext
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2314 $as_echo "$ac_header_preproc" >&6; }
2316 # So? What about this header?
2317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2320 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2322 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2326 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2328 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2330 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2332 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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;}
2335 ( $as_echo "## ---------------------------------- ##
2336 ## Report this to cjwatson@debian.org ##
2337 ## ---------------------------------- ##"
2338 ) | sed "s/^/$as_me: WARNING: /" >&2
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if eval \${$3+:} false; then :
2344 $as_echo_n "(cached) " >&6
2346 eval "$3=\$ac_header_compiler"
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354 } # ac_fn_c_check_header_mongrel
2356 # ac_fn_c_try_run LINENO
2357 # ----------------------
2358 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2359 # that executables *can* be run.
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 if { { ac_try="$ac_link"
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_link") 2>&5
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2374 { { case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_try") 2>&5
2382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2383 test $ac_status = 0; }; }; then :
2386 $as_echo "$as_me: program exited with status $ac_status" >&5
2387 $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2390 ac_retval=$ac_status
2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2394 as_fn_set_status $ac_retval
2398 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2399 # -------------------------------------------------------
2400 # Tests whether HEADER exists and can be compiled using the include files in
2401 # INCLUDES, setting the cache variable VAR accordingly.
2402 ac_fn_c_check_header_compile ()
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2406 $as_echo_n "checking for $2... " >&6; }
2407 if eval \${$3+:} false; then :
2408 $as_echo_n "(cached) " >&6
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2415 if ac_fn_c_try_compile "$LINENO"; then :
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2424 $as_echo "$ac_res" >&6; }
2425 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2427 } # ac_fn_c_check_header_compile
2429 # ac_fn_c_try_link LINENO
2430 # -----------------------
2431 # Try to link conftest.$ac_ext, and return whether this succeeded.
2434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435 rm -f conftest.$ac_objext conftest$ac_exeext
2436 if { { ac_try="$ac_link"
2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439 *) ac_try_echo=$ac_try;;
2441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2442 $as_echo "$ac_try_echo"; } >&5
2443 (eval "$ac_link") 2>conftest.err
2445 if test -s conftest.err; then
2446 grep -v '^ *+' conftest.err >conftest.er1
2447 cat conftest.er1 >&5
2448 mv -f conftest.er1 conftest.err
2450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2451 test $ac_status = 0; } && {
2452 test -z "$ac_c_werror_flag" ||
2453 test ! -s conftest.err
2454 } && test -s conftest$ac_exeext && {
2455 test "$cross_compiling" = yes ||
2456 test -x conftest$ac_exeext
2460 $as_echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2465 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2466 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2467 # interfere with the next link command; also delete a directory that is
2468 # left behind by Apple's compiler. We do this before executing the actions.
2469 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2470 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2471 as_fn_set_status $ac_retval
2473 } # ac_fn_c_try_link
2475 # ac_fn_c_check_func LINENO FUNC VAR
2476 # ----------------------------------
2477 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2478 ac_fn_c_check_func ()
2480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2482 $as_echo_n "checking for $2... " >&6; }
2483 if eval \${$3+:} false; then :
2484 $as_echo_n "(cached) " >&6
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2488 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2490 #define $2 innocuous_$2
2492 /* System header to define __stub macros and hopefully few prototypes,
2493 which can conflict with char $2 (); below.
2494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2495 <limits.h> exists even on freestanding compilers. */
2498 # include <limits.h>
2500 # include <assert.h>
2505 /* Override any GCC internal prototype to avoid an error.
2506 Use char because int might match the return type of a GCC
2507 builtin and then its argument prototype would still apply. */
2512 /* The GNU C library defines this for functions which it implements
2513 to always fail with ENOSYS. Some functions are actually named
2514 something starting with __ and the normal name is an alias. */
2515 #if defined __stub_$2 || defined __stub___$2
2527 if ac_fn_c_try_link "$LINENO"; then :
2532 rm -f core conftest.err conftest.$ac_objext \
2533 conftest$ac_exeext conftest.$ac_ext
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2540 } # ac_fn_c_check_func
2542 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2543 # -------------------------------------------
2544 # Tests whether TYPE exists after having included INCLUDES, setting cache
2545 # variable VAR accordingly.
2546 ac_fn_c_check_type ()
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if eval \${$3+:} false; then :
2552 $as_echo_n "(cached) " >&6
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2567 if ac_fn_c_try_compile "$LINENO"; then :
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2580 if ac_fn_c_try_compile "$LINENO"; then :
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2591 $as_echo "$ac_res" >&6; }
2592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2594 } # ac_fn_c_check_type
2596 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2597 # --------------------------------------------
2598 # Tries to find the compile-time value of EXPR in a program that includes
2599 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2601 ac_fn_c_compute_int ()
2603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604 if test "$cross_compiling" = yes; then
2605 # Depending upon the size, compute the lo and hi bounds.
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2612 static int test_array [1 - 2 * !(($2) >= 0)];
2614 return test_array [0];
2620 if ac_fn_c_try_compile "$LINENO"; then :
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2629 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2631 return test_array [0];
2637 if ac_fn_c_try_compile "$LINENO"; then :
2638 ac_hi=$ac_mid; break
2640 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2641 if test $ac_lo -le $ac_mid; then
2645 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651 /* end confdefs.h. */
2656 static int test_array [1 - 2 * !(($2) < 0)];
2658 return test_array [0];
2664 if ac_fn_c_try_compile "$LINENO"; then :
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h. */
2673 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2675 return test_array [0];
2681 if ac_fn_c_try_compile "$LINENO"; then :
2682 ac_lo=$ac_mid; break
2684 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2685 if test $ac_mid -le $ac_hi; then
2689 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699 # Binary search between lo and hi bounds.
2700 while test "x$ac_lo" != "x$ac_hi"; do
2701 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703 /* end confdefs.h. */
2708 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2710 return test_array [0];
2716 if ac_fn_c_try_compile "$LINENO"; then :
2719 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h. */
2731 static long int longval () { return $2; }
2732 static unsigned long int ulongval () { return $2; }
2739 FILE *f = fopen ("conftest.val", "w");
2744 long int i = longval ();
2747 fprintf (f, "%ld", i);
2751 unsigned long int i = ulongval ();
2754 fprintf (f, "%lu", i);
2756 /* Do not output a trailing newline, as this causes \r\n confusion
2757 on some platforms. */
2758 return ferror (f) || fclose (f) != 0;
2764 if ac_fn_c_try_run "$LINENO"; then :
2765 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2770 conftest.$ac_objext conftest.beam conftest.$ac_ext
2774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2775 as_fn_set_status $ac_retval
2777 } # ac_fn_c_compute_int
2779 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2780 # ---------------------------------------------
2781 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2783 ac_fn_c_check_decl ()
2785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2786 as_decl_name=`echo $2|sed 's/ *(.*//'`
2787 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2789 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2790 if eval \${$3+:} false; then :
2791 $as_echo_n "(cached) " >&6
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2799 #ifndef $as_decl_name
2801 (void) $as_decl_use;
2803 (void) $as_decl_name;
2811 if ac_fn_c_try_compile "$LINENO"; then :
2816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2820 $as_echo "$ac_res" >&6; }
2821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2823 } # ac_fn_c_check_decl
2825 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2826 # ----------------------------------------------------
2827 # Tries to find if the field MEMBER exists in type AGGR, after including
2828 # INCLUDES, setting cache variable VAR accordingly.
2829 ac_fn_c_check_member ()
2831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2833 $as_echo_n "checking for $2.$3... " >&6; }
2834 if eval \${$4+:} false; then :
2835 $as_echo_n "(cached) " >&6
2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838 /* end confdefs.h. */
2850 if ac_fn_c_try_compile "$LINENO"; then :
2853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854 /* end confdefs.h. */
2860 if (sizeof ac_aggr.$3)
2866 if ac_fn_c_try_compile "$LINENO"; then :
2871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2877 $as_echo "$ac_res" >&6; }
2878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2880 } # ac_fn_c_check_member
2881 cat >config.log <<_ACEOF
2882 This file contains any messages produced by compilers while
2883 running configure, to aid debugging if configure makes a mistake.
2885 It was created by libpipeline $as_me 1.2.3, which was
2886 generated by GNU Autoconf 2.69. Invocation command line was
2898 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2899 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2900 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2901 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2902 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2904 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2905 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2907 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2908 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2909 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2910 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2911 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2912 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2913 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 test -z "$as_dir" && as_dir=.
2922 $as_echo "PATH: $as_dir"
2938 # Keep a trace of the command line.
2939 # Strip out --no-create and --no-recursion so they do not pile up.
2940 # Strip out --silent because we don't want to record it for future runs.
2941 # Also quote any args containing shell meta-characters.
2942 # Make two passes to allow for proper duplicate-argument suppression.
2946 ac_must_keep_next=false
2952 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2954 | -silent | --silent | --silen | --sile | --sil)
2957 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2960 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2962 as_fn_append ac_configure_args1 " '$ac_arg'"
2963 if test $ac_must_keep_next = true; then
2964 ac_must_keep_next=false # Got value, back to normal.
2967 *=* | --config-cache | -C | -disable-* | --disable-* \
2968 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2969 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2970 | -with-* | --with-* | -without-* | --without-* | --x)
2971 case "$ac_configure_args0 " in
2972 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2975 -* ) ac_must_keep_next=true ;;
2978 as_fn_append ac_configure_args " '$ac_arg'"
2983 { ac_configure_args0=; unset ac_configure_args0;}
2984 { ac_configure_args1=; unset ac_configure_args1;}
2986 # When interrupted or exit'd, cleanup temporary files, and complete
2987 # config.log. We remove comments because anyway the quotes in there
2988 # would cause problems or look ugly.
2989 # WARNING: Use '\'' to represent an apostrophe within the trap.
2990 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2991 trap 'exit_status=$?
2992 # Save into config.log some information that might help in debugging.
2996 $as_echo "## ---------------- ##
2997 ## Cache variables. ##
2998 ## ---------------- ##"
3000 # The following way of writing the cache mishandles newlines in values,
3002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3003 eval ac_val=\$$ac_var
3007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3011 _ | IFS | as_nl) ;; #(
3012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3013 *) { eval $ac_var=; unset $ac_var;} ;;
3018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3019 *${as_nl}ac_space=\ *)
3021 "s/'\''/'\''\\\\'\'''\''/g;
3022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3032 $as_echo "## ----------------- ##
3033 ## Output variables. ##
3034 ## ----------------- ##"
3036 for ac_var in $ac_subst_vars
3038 eval ac_val=\$$ac_var
3040 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3042 $as_echo "$ac_var='\''$ac_val'\''"
3046 if test -n "$ac_subst_files"; then
3047 $as_echo "## ------------------- ##
3048 ## File substitutions. ##
3049 ## ------------------- ##"
3051 for ac_var in $ac_subst_files
3053 eval ac_val=\$$ac_var
3055 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3057 $as_echo "$ac_var='\''$ac_val'\''"
3062 if test -s confdefs.h; then
3063 $as_echo "## ----------- ##
3070 test "$ac_signal" != 0 &&
3071 $as_echo "$as_me: caught signal $ac_signal"
3072 $as_echo "$as_me: exit $exit_status"
3074 rm -f core *.core core.conftest.* &&
3075 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3078 for ac_signal in 1 2 13 15; do
3079 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3083 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3084 rm -f -r conftest* confdefs.h
3086 $as_echo "/* confdefs.h */" > confdefs.h
3088 # Predefined preprocessor variables.
3090 cat >>confdefs.h <<_ACEOF
3091 #define PACKAGE_NAME "$PACKAGE_NAME"
3094 cat >>confdefs.h <<_ACEOF
3095 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3098 cat >>confdefs.h <<_ACEOF
3099 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3102 cat >>confdefs.h <<_ACEOF
3103 #define PACKAGE_STRING "$PACKAGE_STRING"
3106 cat >>confdefs.h <<_ACEOF
3107 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3110 cat >>confdefs.h <<_ACEOF
3111 #define PACKAGE_URL "$PACKAGE_URL"
3115 # Let the site file select an alternate cache file if it wants to.
3116 # Prefer an explicitly selected file to automatically selected ones.
3119 if test -n "$CONFIG_SITE"; then
3120 # We do not want a PATH search for config.site.
3121 case $CONFIG_SITE in #((
3122 -*) ac_site_file1=./$CONFIG_SITE;;
3123 */*) ac_site_file1=$CONFIG_SITE;;
3124 *) ac_site_file1=./$CONFIG_SITE;;
3126 elif test "x$prefix" != xNONE; then
3127 ac_site_file1=$prefix/share/config.site
3128 ac_site_file2=$prefix/etc/config.site
3130 ac_site_file1=$ac_default_prefix/share/config.site
3131 ac_site_file2=$ac_default_prefix/etc/config.site
3133 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3135 test "x$ac_site_file" = xNONE && continue
3136 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3138 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3139 sed 's/^/| /' "$ac_site_file" >&5
3141 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143 as_fn_error $? "failed to load site script $ac_site_file
3144 See \`config.log' for more details" "$LINENO" 5; }
3148 if test -r "$cache_file"; then
3149 # Some versions of bash will fail to source /dev/null (special files
3150 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3151 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3153 $as_echo "$as_me: loading cache $cache_file" >&6;}
3155 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3156 *) . "./$cache_file";;
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3161 $as_echo "$as_me: creating cache $cache_file" >&6;}
3165 gl_header_list="$gl_header_list unistd.h"
3166 gl_header_list="$gl_header_list sys/mman.h"
3167 gl_func_list="$gl_func_list mprotect"
3168 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3169 gl_func_list="$gl_func_list setenv"
3170 gl_func_list="$gl_func_list sigaction"
3171 gl_func_list="$gl_func_list sigaltstack"
3172 gl_func_list="$gl_func_list siginterrupt"
3173 gl_func_list="$gl_func_list snprintf"
3174 gl_header_list="$gl_header_list wchar.h"
3175 gl_header_list="$gl_header_list stdint.h"
3176 gl_header_list="$gl_header_list sys/socket.h"
3177 gl_func_list="$gl_func_list strndup"
3178 gl_header_list="$gl_header_list sys/select.h"
3179 gl_header_list="$gl_header_list sys/stat.h"
3180 gl_header_list="$gl_header_list sys/time.h"
3181 gl_header_list="$gl_header_list sys/wait.h"
3182 gl_func_list="$gl_func_list vasnprintf"
3183 gl_header_list="$gl_header_list features.h"
3184 # Check that the precious variables saved in the cache have kept the same
3186 ac_cache_corrupted=false
3187 for ac_var in $ac_precious_vars; do
3188 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3189 eval ac_new_set=\$ac_env_${ac_var}_set
3190 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3191 eval ac_new_val=\$ac_env_${ac_var}_value
3192 case $ac_old_set,$ac_new_set in
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3195 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3196 ac_cache_corrupted=: ;;
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3199 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3200 ac_cache_corrupted=: ;;
3203 if test "x$ac_old_val" != "x$ac_new_val"; then
3204 # differences in whitespace do not lead to failure.
3205 ac_old_val_w=`echo x $ac_old_val`
3206 ac_new_val_w=`echo x $ac_new_val`
3207 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3209 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3210 ac_cache_corrupted=:
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3213 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3214 eval $ac_var=\$ac_old_val
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3217 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3219 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3222 # Pass precious variables to config.status.
3223 if test "$ac_new_set" = set; then
3225 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3226 *) ac_arg=$ac_var=$ac_new_val ;;
3228 case " $ac_configure_args " in
3229 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3230 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3234 if $ac_cache_corrupted; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3238 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3239 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3241 ## -------------------- ##
3242 ## Main body of script. ##
3243 ## -------------------- ##
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253 for ac_dir in tools "$srcdir"/tools; do
3254 if test -f "$ac_dir/install-sh"; then
3256 ac_install_sh="$ac_aux_dir/install-sh -c"
3258 elif test -f "$ac_dir/install.sh"; then
3260 ac_install_sh="$ac_aux_dir/install.sh -c"
3262 elif test -f "$ac_dir/shtool"; then
3264 ac_install_sh="$ac_aux_dir/shtool install -c"
3268 if test -z "$ac_aux_dir"; then
3269 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3272 # These three variables are undocumented and unsupported,
3273 # and are intended to be withdrawn in a future Autoconf release.
3274 # They can cause serious problems if a builder's source tree is in a directory
3275 # whose full name contains unusual characters.
3276 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3277 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3278 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3281 am__api_version='1.11'
3283 # Find a good install program. We prefer a C program (faster),
3284 # so one script is as good as another. But avoid the broken or
3285 # incompatible versions:
3286 # SysV /etc/install, /usr/sbin/install
3287 # SunOS /usr/etc/install
3288 # IRIX /sbin/install
3290 # AmigaOS /C/install, which installs bootblocks on floppy discs
3291 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3294 # OS/2's system install, which has a completely different semantic
3295 # ./install, which can be erroneously created by make from ./install.sh.
3296 # Reject install programs that cannot install multiple files.
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3298 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3299 if test -z "$INSTALL"; then
3300 if ${ac_cv_path_install+:} false; then :
3301 $as_echo_n "(cached) " >&6
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 test -z "$as_dir" && as_dir=.
3308 # Account for people who put trailing slashes in PATH elements.
3309 case $as_dir/ in #((
3310 ./ | .// | /[cC]/* | \
3311 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3312 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3315 # OSF1 and SCO ODT 3.0 have their own names for install.
3316 # Don't use installbsd from OSF since it installs stuff as root
3318 for ac_prog in ginstall scoinst install; do
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3321 if test $ac_prog = install &&
3322 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3323 # AIX install. It has an incompatible calling convention.
3325 elif test $ac_prog = install &&
3326 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3327 # program-specific install script used by HP pwplus--don't use.
3330 rm -rf conftest.one conftest.two conftest.dir
3331 echo one > conftest.one
3332 echo two > conftest.two
3334 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3335 test -s conftest.one && test -s conftest.two &&
3336 test -s conftest.dir/conftest.one &&
3337 test -s conftest.dir/conftest.two
3339 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3352 rm -rf conftest.one conftest.two conftest.dir
3355 if test "${ac_cv_path_install+set}" = set; then
3356 INSTALL=$ac_cv_path_install
3358 # As a last resort, use the slow shell script. Don't cache a
3359 # value for INSTALL within a source directory, because that will
3360 # break other packages using the cache if that directory is
3361 # removed, or if the value is a relative name.
3362 INSTALL=$ac_install_sh
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3366 $as_echo "$INSTALL" >&6; }
3368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3369 # It thinks the first close brace ends the variable substitution.
3370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3374 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3377 $as_echo_n "checking whether build environment is sane... " >&6; }
3380 echo timestamp > conftest.file
3381 # Reject unsafe characters in $srcdir or the absolute working directory
3382 # name. Accept space and tab only in the latter.
3386 *[\\\"\#\$\&\'\`$am_lf]*)
3387 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3390 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3391 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3394 # Do `set' in a subshell so we don't clobber the current shell's
3395 # arguments. Must try -L first in case configure is actually a
3396 # symlink; some systems play weird games with the mod time of symlinks
3397 # (eg FreeBSD returns the mod time of the symlink's containing
3400 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3401 if test "$*" = "X"; then
3403 set X `ls -t "$srcdir/configure" conftest.file`
3406 if test "$*" != "X $srcdir/configure conftest.file" \
3407 && test "$*" != "X conftest.file $srcdir/configure"; then
3409 # If neither matched, then we have a broken ls. This can happen
3410 # if, for instance, CONFIG_SHELL is bash and it inherits a
3411 # broken ls alias from the environment. This has actually
3412 # happened. Such a system could not be considered "sane".
3413 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3414 alias in your environment" "$LINENO" 5
3417 test "$2" = conftest.file
3423 as_fn_error $? "newly created file is older than distributed files!
3424 Check your system clock" "$LINENO" 5
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3427 $as_echo "yes" >&6; }
3428 test "$program_prefix" != NONE &&
3429 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3430 # Use a double $ so make ignores it.
3431 test "$program_suffix" != NONE &&
3432 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3433 # Double any \ or $.
3434 # By default was `s,x,x', remove it if useless.
3435 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3436 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3438 # expand $ac_aux_dir to an absolute path
3439 am_aux_dir=`cd $ac_aux_dir && pwd`
3441 if test x"${MISSING+set}" != xset; then
3444 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3446 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3449 # Use eval to expand $SHELL
3450 if eval "$MISSING --run true"; then
3451 am_missing_run="$MISSING --run "
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3455 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3458 if test x"${install_sh}" != xset; then
3461 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3463 install_sh="\${SHELL} $am_aux_dir/install-sh"
3467 # Installed binaries are usually stripped using `strip' when the user
3468 # run `make install-strip'. However `strip' might not be the right
3469 # tool to use in cross-compilation environments, therefore Automake
3470 # will honor the `STRIP' environment variable to overrule this program.
3471 if test "$cross_compiling" != no; then
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}strip; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if ${ac_cv_prog_STRIP+:} false; then :
3478 $as_echo_n "(cached) " >&6
3480 if test -n "$STRIP"; then
3481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 STRIP=$ac_cv_prog_STRIP
3501 if test -n "$STRIP"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3503 $as_echo "$STRIP" >&6; }
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3511 if test -z "$ac_cv_prog_STRIP"; then
3513 # Extract the first word of "strip", so it can be a program name with args.
3514 set dummy strip; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3518 $as_echo_n "(cached) " >&6
3520 if test -n "$ac_ct_STRIP"; then
3521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_ac_ct_STRIP="strip"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3541 if test -n "$ac_ct_STRIP"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3543 $as_echo "$ac_ct_STRIP" >&6; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3549 if test "x$ac_ct_STRIP" = x; then
3552 case $cross_compiling:$ac_tool_warned in
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3556 ac_tool_warned=yes ;;
3561 STRIP="$ac_cv_prog_STRIP"
3565 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3568 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3569 if test -z "$MKDIR_P"; then
3570 if ${ac_cv_path_mkdir+:} false; then :
3571 $as_echo_n "(cached) " >&6
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3577 test -z "$as_dir" && as_dir=.
3578 for ac_prog in mkdir gmkdir; do
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3581 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3582 'mkdir (GNU coreutils) '* | \
3583 'mkdir (coreutils) '* | \
3584 'mkdir (fileutils) '4.1*)
3585 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3595 test -d ./--version && rmdir ./--version
3596 if test "${ac_cv_path_mkdir+set}" = set; then
3597 MKDIR_P="$ac_cv_path_mkdir -p"
3599 # As a last resort, use the slow shell script. Don't cache a
3600 # value for MKDIR_P within a source directory, because that will
3601 # break other packages using the cache if that directory is
3602 # removed, or if the value is a relative name.
3603 MKDIR_P="$ac_install_sh -d"
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3607 $as_echo "$MKDIR_P" >&6; }
3612 [\\/$]* | ?:[\\/]*) ;;
3613 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3616 for ac_prog in gawk mawk nawk awk
3618 # Extract the first word of "$ac_prog", so it can be a program name with args.
3619 set dummy $ac_prog; ac_word=$2
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if ${ac_cv_prog_AWK+:} false; then :
3623 $as_echo_n "(cached) " >&6
3625 if test -n "$AWK"; then
3626 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635 ac_cv_prog_AWK="$ac_prog"
3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 if test -n "$AWK"; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3648 $as_echo "$AWK" >&6; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3655 test -n "$AWK" && break
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3659 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3661 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3662 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3663 $as_echo_n "(cached) " >&6
3665 cat >conftest.make <<\_ACEOF
3668 @echo '@@@%%%=$(MAKE)=@@@%%%'
3670 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3671 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3673 eval ac_cv_prog_make_${ac_make}_set=yes;;
3675 eval ac_cv_prog_make_${ac_make}_set=no;;
3679 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3681 $as_echo "yes" >&6; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3686 SET_MAKE="MAKE=${MAKE-make}"
3689 rm -rf .tst 2>/dev/null
3690 mkdir .tst 2>/dev/null
3691 if test -d .tst; then
3696 rmdir .tst 2>/dev/null
3698 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3699 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3700 # is not polluted with repeated "-I."
3701 am__isrc=' -I$(srcdir)'
3702 # test to see if srcdir already configured
3703 if test -f $srcdir/config.status; then
3704 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3708 # test whether we have cygpath
3709 if test -z "$CYGPATH_W"; then
3710 if (cygpath --version) >/dev/null 2>/dev/null; then
3711 CYGPATH_W='cygpath -w'
3718 # Define the identity of the package.
3719 PACKAGE='libpipeline'
3723 cat >>confdefs.h <<_ACEOF
3724 #define PACKAGE "$PACKAGE"
3728 cat >>confdefs.h <<_ACEOF
3729 #define VERSION "$VERSION"
3732 # Some tools Automake needs.
3734 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3737 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3740 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3743 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3746 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3748 # We need awk for the "check" target. The system "awk" is bad on
3750 # Always define AMTAR for backward compatibility. Yes, it's still used
3751 # in the wild :-( We should find a proper way to deprecate it ...
3754 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3762 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3763 # Check whether --enable-maintainer-mode was given.
3764 if test "${enable_maintainer_mode+set}" = set; then :
3765 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3767 USE_MAINTAINER_MODE=no
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3771 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3772 if test $USE_MAINTAINER_MODE = yes; then
3773 MAINTAINER_MODE_TRUE=
3774 MAINTAINER_MODE_FALSE='#'
3776 MAINTAINER_MODE_TRUE='#'
3777 MAINTAINER_MODE_FALSE=
3780 MAINT=$MAINTAINER_MODE_TRUE
3783 # Check whether --enable-silent-rules was given.
3784 if test "${enable_silent_rules+set}" = set; then :
3785 enableval=$enable_silent_rules;
3788 case $enable_silent_rules in
3789 yes) AM_DEFAULT_VERBOSITY=0;;
3790 no) AM_DEFAULT_VERBOSITY=1;;
3791 *) AM_DEFAULT_VERBOSITY=0;;
3793 am_make=${MAKE-make}
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3795 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3796 if ${am_cv_make_support_nested_variables+:} false; then :
3797 $as_echo_n "(cached) " >&6
3799 if $as_echo 'TRUE=$(BAR$(V))
3805 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3806 am_cv_make_support_nested_variables=yes
3808 am_cv_make_support_nested_variables=no
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3812 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3813 if test $am_cv_make_support_nested_variables = yes; then
3815 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3817 AM_V=$AM_DEFAULT_VERBOSITY
3818 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3824 # Make sure we can run config.sub.
3825 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3826 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3829 $as_echo_n "checking build system type... " >&6; }
3830 if ${ac_cv_build+:} false; then :
3831 $as_echo_n "(cached) " >&6
3833 ac_build_alias=$build_alias
3834 test "x$ac_build_alias" = x &&
3835 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3836 test "x$ac_build_alias" = x &&
3837 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3838 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3843 $as_echo "$ac_cv_build" >&6; }
3844 case $ac_cv_build in
3846 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3849 ac_save_IFS=$IFS; IFS='-'
3855 # Remember, the first character of IFS is used to create $*,
3856 # except with old shells:
3859 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3863 $as_echo_n "checking host system type... " >&6; }
3864 if ${ac_cv_host+:} false; then :
3865 $as_echo_n "(cached) " >&6
3867 if test "x$host_alias" = x; then
3868 ac_cv_host=$ac_cv_build
3870 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3871 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3876 $as_echo "$ac_cv_host" >&6; }
3879 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3882 ac_save_IFS=$IFS; IFS='-'
3888 # Remember, the first character of IFS is used to create $*,
3889 # except with old shells:
3892 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3895 DEPDIR="${am__leading_dot}deps"
3897 ac_config_commands="$ac_config_commands depfiles"
3900 am_make=${MAKE-make}
3901 cat > confinc << 'END'
3903 @echo this is the am__doit target
3906 # If we don't find an include directive, just comment out the code.
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3908 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3912 # First try GNU make style include.
3913 echo "include confinc" > confmf
3914 # Ignore all kinds of additional output from `make'.
3915 case `$am_make -s -f confmf 2> /dev/null` in #(
3916 *the\ am__doit\ target*)
3922 # Now try BSD make style include.
3923 if test "$am__include" = "#"; then
3924 echo '.include "confinc"' > confmf
3925 case `$am_make -s -f confmf 2> /dev/null` in #(
3926 *the\ am__doit\ target*)
3927 am__include=.include
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3936 $as_echo "$_am_result" >&6; }
3937 rm -f confinc confmf
3939 # Check whether --enable-dependency-tracking was given.
3940 if test "${enable_dependency_tracking+set}" = set; then :
3941 enableval=$enable_dependency_tracking;
3944 if test "x$enable_dependency_tracking" != xno; then
3945 am_depcomp="$ac_aux_dir/depcomp"
3949 if test "x$enable_dependency_tracking" != xno; then
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 if test -n "$ac_tool_prefix"; then
3964 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3965 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if ${ac_cv_prog_CC+:} false; then :
3969 $as_echo_n "(cached) " >&6
3971 if test -n "$CC"; then
3972 ac_cv_prog_CC="$CC" # Let the user override the test.
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 if test -n "$CC"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3994 $as_echo "$CC" >&6; }
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
4002 if test -z "$ac_cv_prog_CC"; then
4004 # Extract the first word of "gcc", so it can be a program name with args.
4005 set dummy gcc; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4009 $as_echo_n "(cached) " >&6
4011 if test -n "$ac_ct_CC"; then
4012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_ac_ct_CC="gcc"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4032 if test -n "$ac_ct_CC"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4034 $as_echo "$ac_ct_CC" >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4040 if test "x$ac_ct_CC" = x; then
4043 case $cross_compiling:$ac_tool_warned in
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4047 ac_tool_warned=yes ;;
4055 if test -z "$CC"; then
4056 if test -n "$ac_tool_prefix"; then
4057 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4058 set dummy ${ac_tool_prefix}cc; ac_word=$2
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060 $as_echo_n "checking for $ac_word... " >&6; }
4061 if ${ac_cv_prog_CC+:} false; then :
4062 $as_echo_n "(cached) " >&6
4064 if test -n "$CC"; then
4065 ac_cv_prog_CC="$CC" # Let the user override the test.
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 test -z "$as_dir" && as_dir=.
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074 ac_cv_prog_CC="${ac_tool_prefix}cc"
4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 if test -n "$CC"; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4087 $as_echo "$CC" >&6; }
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4096 if test -z "$CC"; then
4097 # Extract the first word of "cc", so it can be a program name with args.
4098 set dummy cc; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if ${ac_cv_prog_CC+:} false; then :
4102 $as_echo_n "(cached) " >&6
4104 if test -n "$CC"; then
4105 ac_cv_prog_CC="$CC" # Let the user override the test.
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4116 ac_prog_rejected=yes
4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 if test $ac_prog_rejected = yes; then
4128 # We found a bogon in the path, so make sure we never use it.
4129 set dummy $ac_cv_prog_CC
4131 if test $# != 0; then
4132 # We chose a different compiler from the bogus one.
4133 # However, it has the same basename, so the bogon will be chosen
4134 # first if we set CC to just the basename; use the full file name.
4136 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4142 if test -n "$CC"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4144 $as_echo "$CC" >&6; }
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4152 if test -z "$CC"; then
4153 if test -n "$ac_tool_prefix"; then
4154 for ac_prog in cl.exe
4156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if ${ac_cv_prog_CC+:} false; then :
4161 $as_echo_n "(cached) " >&6
4163 if test -n "$CC"; then
4164 ac_cv_prog_CC="$CC" # Let the user override the test.
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 if test -n "$CC"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186 $as_echo "$CC" >&6; }
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4193 test -n "$CC" && break
4196 if test -z "$CC"; then
4198 for ac_prog in cl.exe
4200 # Extract the first word of "$ac_prog", so it can be a program name with args.
4201 set dummy $ac_prog; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4205 $as_echo_n "(cached) " >&6
4207 if test -n "$ac_ct_CC"; then
4208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_ac_ct_CC="$ac_prog"
4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4228 if test -n "$ac_ct_CC"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4230 $as_echo "$ac_ct_CC" >&6; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4237 test -n "$ac_ct_CC" && break
4240 if test "x$ac_ct_CC" = x; then
4243 case $cross_compiling:$ac_tool_warned in
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4247 ac_tool_warned=yes ;;
4256 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4258 as_fn_error $? "no acceptable C compiler found in \$PATH
4259 See \`config.log' for more details" "$LINENO" 5; }
4261 # Provide some information about the compiler.
4262 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4265 for ac_option in --version -v -V -qversion; do
4266 { { ac_try="$ac_compiler $ac_option >&5"
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4272 $as_echo "$ac_try_echo"; } >&5
4273 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4275 if test -s conftest.err; then
4277 ... rest of stderr output deleted ...
4278 10q' conftest.err >conftest.er1
4279 cat conftest.er1 >&5
4281 rm -f conftest.er1 conftest.err
4282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283 test $ac_status = 0; }
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4297 ac_clean_files_save=$ac_clean_files
4298 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4299 # Try to create an executable without -o first, disregard a.out.
4300 # It will help us diagnose broken compilers, and finding out an intuition
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4303 $as_echo_n "checking whether the C compiler works... " >&6; }
4304 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4306 # The possible output files:
4307 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4310 for ac_file in $ac_files
4313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4314 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4319 if { { ac_try="$ac_link_default"
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325 $as_echo "$ac_try_echo"; } >&5
4326 (eval "$ac_link_default") 2>&5
4328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329 test $ac_status = 0; }; then :
4330 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4332 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4333 # so that the user can short-circuit this test for compilers unknown to
4335 for ac_file in $ac_files ''
4337 test -f "$ac_file" || continue
4339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4342 # We found the default executable, but exeext='' is most
4346 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4348 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4350 # We set ac_cv_exeext here because the later test for it is not
4351 # safe: cross compilers may not add the suffix if given an `-o'
4352 # argument, so we may need to know it at that point already.
4353 # Even if this section looks crufty: it has the advantage of
4360 test "$ac_cv_exeext" = no && ac_cv_exeext=
4365 if test -z "$ac_file"; then :
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4368 $as_echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4373 as_fn_error 77 "C compiler cannot create executables
4374 See \`config.log' for more details" "$LINENO" 5; }
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4377 $as_echo "yes" >&6; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4380 $as_echo_n "checking for C compiler default output file name... " >&6; }
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4382 $as_echo "$ac_file" >&6; }
4383 ac_exeext=$ac_cv_exeext
4385 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4386 ac_clean_files=$ac_clean_files_save
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4388 $as_echo_n "checking for suffix of executables... " >&6; }
4389 if { { ac_try="$ac_link"
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4395 $as_echo "$ac_try_echo"; } >&5
4396 (eval "$ac_link") 2>&5
4398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4399 test $ac_status = 0; }; then :
4400 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4401 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4402 # work properly (i.e., refer to `conftest.exe'), while it won't with
4404 for ac_file in conftest.exe conftest conftest.*; do
4405 test -f "$ac_file" || continue
4407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4408 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4417 See \`config.log' for more details" "$LINENO" 5; }
4419 rm -f conftest conftest$ac_cv_exeext
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4421 $as_echo "$ac_cv_exeext" >&6; }
4423 rm -f conftest.$ac_ext
4424 EXEEXT=$ac_cv_exeext
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4432 FILE *f = fopen ("conftest.out", "w");
4433 return ferror (f) || fclose (f) != 0;
4439 ac_clean_files="$ac_clean_files conftest.out"
4440 # Check that the compiler produces executables we can run. If not, either
4441 # the compiler is broken, or we cross compile.
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4443 $as_echo_n "checking whether we are cross compiling... " >&6; }
4444 if test "$cross_compiling" != yes; then
4445 { { ac_try="$ac_link"
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4451 $as_echo "$ac_try_echo"; } >&5
4452 (eval "$ac_link") 2>&5
4454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4455 test $ac_status = 0; }
4456 if { ac_try='./conftest$ac_cv_exeext'
4457 { { case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462 $as_echo "$ac_try_echo"; } >&5
4463 (eval "$ac_try") 2>&5
4465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466 test $ac_status = 0; }; }; then
4469 if test "$cross_compiling" = maybe; then
4472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4474 as_fn_error $? "cannot run C compiled programs.
4475 If you meant to cross compile, use \`--host'.
4476 See \`config.log' for more details" "$LINENO" 5; }
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4481 $as_echo "$cross_compiling" >&6; }
4483 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4484 ac_clean_files=$ac_clean_files_save
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4486 $as_echo_n "checking for suffix of object files... " >&6; }
4487 if ${ac_cv_objext+:} false; then :
4488 $as_echo_n "(cached) " >&6
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4501 rm -f conftest.o conftest.obj
4502 if { { ac_try="$ac_compile"
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4508 $as_echo "$ac_try_echo"; } >&5
4509 (eval "$ac_compile") 2>&5
4511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4512 test $ac_status = 0; }; then :
4513 for ac_file in conftest.o conftest.obj conftest.*; do
4514 test -f "$ac_file" || continue;
4516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4517 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4522 $as_echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4527 as_fn_error $? "cannot compute suffix of object files: cannot compile
4528 See \`config.log' for more details" "$LINENO" 5; }
4530 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4533 $as_echo "$ac_cv_objext" >&6; }
4534 OBJEXT=$ac_cv_objext
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4537 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4538 if ${ac_cv_c_compiler_gnu+:} false; then :
4539 $as_echo_n "(cached) " >&6
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4555 if ac_fn_c_try_compile "$LINENO"; then :
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4565 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4566 if test $ac_compiler_gnu = yes; then
4571 ac_test_CFLAGS=${CFLAGS+set}
4572 ac_save_CFLAGS=$CFLAGS
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4574 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4575 if ${ac_cv_prog_cc_g+:} false; then :
4576 $as_echo_n "(cached) " >&6
4578 ac_save_c_werror_flag=$ac_c_werror_flag
4579 ac_c_werror_flag=yes
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4593 if ac_fn_c_try_compile "$LINENO"; then :
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4608 if ac_fn_c_try_compile "$LINENO"; then :
4611 ac_c_werror_flag=$ac_save_c_werror_flag
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4624 if ac_fn_c_try_compile "$LINENO"; then :
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 ac_c_werror_flag=$ac_save_c_werror_flag
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4635 $as_echo "$ac_cv_prog_cc_g" >&6; }
4636 if test "$ac_test_CFLAGS" = set; then
4637 CFLAGS=$ac_save_CFLAGS
4638 elif test $ac_cv_prog_cc_g = yes; then
4639 if test "$GCC" = yes; then
4645 if test "$GCC" = yes; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4652 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4653 if ${ac_cv_prog_cc_c89+:} false; then :
4654 $as_echo_n "(cached) " >&6
4656 ac_cv_prog_cc_c89=no
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4663 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4664 struct buf { int x; };
4665 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4666 static char *e (p, i)
4672 static char *f (char * (*g) (char **, int), char **p, ...)
4677 s = g (p, va_arg (v,int));
4682 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4683 function prototypes and stuff, but not '\xHH' hex character constants.
4684 These don't provoke an error unfortunately, instead are silently treated
4685 as 'x'. The following induces an error, until -std is added to get
4686 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4687 array size at least. It's necessary to write '\x00'==0 to get something
4688 that's true only with -std. */
4689 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4691 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4692 inside strings and character constants. */
4694 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4696 int test (int i, double x);
4697 struct s1 {int (*f) (int a);};
4698 struct s2 {int (*f) (double a);};
4699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4705 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4710 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4711 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4713 CC="$ac_save_CC $ac_arg"
4714 if ac_fn_c_try_compile "$LINENO"; then :
4715 ac_cv_prog_cc_c89=$ac_arg
4717 rm -f core conftest.err conftest.$ac_objext
4718 test "x$ac_cv_prog_cc_c89" != "xno" && break
4720 rm -f conftest.$ac_ext
4725 case "x$ac_cv_prog_cc_c89" in
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4728 $as_echo "none needed" >&6; } ;;
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4731 $as_echo "unsupported" >&6; } ;;
4733 CC="$CC $ac_cv_prog_cc_c89"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4735 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4737 if test "x$ac_cv_prog_cc_c89" != xno; then :
4742 ac_cpp='$CPP $CPPFLAGS'
4743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4747 depcc="$CC" am_compiler_list=
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4750 $as_echo_n "checking dependency style of $depcc... " >&6; }
4751 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4752 $as_echo_n "(cached) " >&6
4754 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4755 # We make a subdir and do the tests there. Otherwise we can end up
4756 # making bogus files that we don't know about and never remove. For
4757 # instance it was reported that on HP-UX the gcc test will end up
4758 # making a dummy file named `D' -- because `-MD' means `put the output
4762 # Copy depcomp to subdir because otherwise we won't find it if we're
4763 # using a relative directory.
4764 cp "$am_depcomp" conftest.dir
4766 # We will build objects and dependencies in a subdirectory because
4767 # it helps to detect inapplicable dependency modes. For instance
4768 # both Tru64's cc and ICC support -MD to output dependencies as a
4769 # side effect of compilation, but ICC will put the dependencies in
4770 # the current directory while Tru64 will put them in the object
4774 am_cv_CC_dependencies_compiler_type=none
4775 if test "$am_compiler_list" = ""; then
4776 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4779 case " $depcc " in #(
4780 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4783 for depmode in $am_compiler_list; do
4784 # Setup a source with many dependencies, because some compilers
4785 # like to wrap large dependency lists on column 80 (with \), and
4786 # we should not choose a depcomp mode which is confused by this.
4788 # We need to recreate these files for each test, as the compiler may
4789 # overwrite some of them when testing with obscure command lines.
4790 # This happens at least with the AIX C compiler.
4792 for i in 1 2 3 4 5 6; do
4793 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4794 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4795 # Solaris 8's {/usr,}/bin/sh.
4796 touch sub/conftst$i.h
4798 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4800 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4801 # mode. It turns out that the SunPro C++ compiler does not properly
4802 # handle `-M -o', and we need to detect this. Also, some Intel
4803 # versions had trouble with output in subdirs
4804 am__obj=sub/conftest.${OBJEXT-o}
4805 am__minus_obj="-o $am__obj"
4808 # This depmode causes a compiler race in universal mode.
4809 test "$am__universal" = false || continue
4812 # after this tag, mechanisms are not by side-effect, so they'll
4813 # only be used when explicitly requested
4814 if test "x$enable_dependency_tracking" = xyes; then
4820 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4821 # This compiler won't grok `-c -o', but also, the minuso test has
4822 # not run yet. These depmodes are late enough in the game, and
4823 # so weak that their functioning should not be impacted.
4824 am__obj=conftest.${OBJEXT-o}
4829 if depmode=$depmode \
4830 source=sub/conftest.c object=$am__obj \
4831 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4832 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4833 >/dev/null 2>conftest.err &&
4834 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4835 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4836 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4837 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4838 # icc doesn't choke on unknown options, it will just issue warnings
4839 # or remarks (even with -Werror). So we grep stderr for any message
4840 # that says an option was ignored or not supported.
4841 # When given -MP, icc 7.0 and 7.1 complain thusly:
4842 # icc: Command line warning: ignoring option '-M'; no argument required
4843 # The diagnosis changed in icc 8.0:
4844 # icc: Command line remark: option '-MP' not supported
4845 if (grep 'ignoring option' conftest.err ||
4846 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4847 am_cv_CC_dependencies_compiler_type=$depmode
4856 am_cv_CC_dependencies_compiler_type=none
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4861 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4862 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4865 test "x$enable_dependency_tracking" != xno \
4866 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4868 am__fastdepCC_FALSE='#'
4870 am__fastdepCC_TRUE='#'
4871 am__fastdepCC_FALSE=
4877 ac_cpp='$CPP $CPPFLAGS'
4878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4882 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4883 # On Suns, sometimes $CPP names a directory.
4884 if test -n "$CPP" && test -d "$CPP"; then
4887 if test -z "$CPP"; then
4888 if ${ac_cv_prog_CPP+:} false; then :
4889 $as_echo_n "(cached) " >&6
4891 # Double quotes because CPP needs to be expanded
4892 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4895 for ac_c_preproc_warn_flag in '' yes
4897 # Use a header file that comes with gcc, so configuring glibc
4898 # with a fresh cross-compiler works.
4899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4900 # <limits.h> exists even on freestanding compilers.
4901 # On the NeXT, cc -E runs the code through the compiler's parser,
4902 # not just through cpp. "Syntax error" is here to catch this case.
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4906 # include <limits.h>
4908 # include <assert.h>
4912 if ac_fn_c_try_cpp "$LINENO"; then :
4915 # Broken: fails on valid input.
4918 rm -f conftest.err conftest.i conftest.$ac_ext
4920 # OK, works on sane cases. Now check whether nonexistent headers
4921 # can be detected and how.
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 #include <ac_nonexistent.h>
4926 if ac_fn_c_try_cpp "$LINENO"; then :
4927 # Broken: success on invalid input.
4930 # Passes both tests.
4934 rm -f conftest.err conftest.i conftest.$ac_ext
4937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4938 rm -f conftest.i conftest.err conftest.$ac_ext
4939 if $ac_preproc_ok; then :
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4952 $as_echo "$CPP" >&6; }
4954 for ac_c_preproc_warn_flag in '' yes
4956 # Use a header file that comes with gcc, so configuring glibc
4957 # with a fresh cross-compiler works.
4958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4959 # <limits.h> exists even on freestanding compilers.
4960 # On the NeXT, cc -E runs the code through the compiler's parser,
4961 # not just through cpp. "Syntax error" is here to catch this case.
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4965 # include <limits.h>
4967 # include <assert.h>
4971 if ac_fn_c_try_cpp "$LINENO"; then :
4974 # Broken: fails on valid input.
4977 rm -f conftest.err conftest.i conftest.$ac_ext
4979 # OK, works on sane cases. Now check whether nonexistent headers
4980 # can be detected and how.
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4983 #include <ac_nonexistent.h>
4985 if ac_fn_c_try_cpp "$LINENO"; then :
4986 # Broken: success on invalid input.
4989 # Passes both tests.
4993 rm -f conftest.err conftest.i conftest.$ac_ext
4996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4997 rm -f conftest.i conftest.err conftest.$ac_ext
4998 if $ac_preproc_ok; then :
5001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5003 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5004 See \`config.log' for more details" "$LINENO" 5; }
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5015 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5016 if ${ac_cv_path_GREP+:} false; then :
5017 $as_echo_n "(cached) " >&6
5019 if test -z "$GREP"; then
5020 ac_path_GREP_found=false
5021 # Loop through the user's path and test for each of PROGNAME-LIST
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5026 test -z "$as_dir" && as_dir=.
5027 for ac_prog in grep ggrep; do
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5030 as_fn_executable_p "$ac_path_GREP" || continue
5031 # Check for GNU ac_path_GREP and select it if it is found.
5032 # Check for GNU $ac_path_GREP
5033 case `"$ac_path_GREP" --version 2>&1` in
5035 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5038 $as_echo_n 0123456789 >"conftest.in"
5041 cat "conftest.in" "conftest.in" >"conftest.tmp"
5042 mv "conftest.tmp" "conftest.in"
5043 cp "conftest.in" "conftest.nl"
5044 $as_echo 'GREP' >> "conftest.nl"
5045 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5047 as_fn_arith $ac_count + 1 && ac_count=$as_val
5048 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5049 # Best one so far, save it but keep looking for a better one
5050 ac_cv_path_GREP="$ac_path_GREP"
5051 ac_path_GREP_max=$ac_count
5053 # 10*(2^10) chars as input seems more than enough
5054 test $ac_count -gt 10 && break
5056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5059 $ac_path_GREP_found && break 3
5064 if test -z "$ac_cv_path_GREP"; then
5065 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5068 ac_cv_path_GREP=$GREP
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5073 $as_echo "$ac_cv_path_GREP" >&6; }
5074 GREP="$ac_cv_path_GREP"
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5078 $as_echo_n "checking for egrep... " >&6; }
5079 if ${ac_cv_path_EGREP+:} false; then :
5080 $as_echo_n "(cached) " >&6
5082 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5083 then ac_cv_path_EGREP="$GREP -E"
5085 if test -z "$EGREP"; then
5086 ac_path_EGREP_found=false
5087 # Loop through the user's path and test for each of PROGNAME-LIST
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5092 test -z "$as_dir" && as_dir=.
5093 for ac_prog in egrep; do
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5096 as_fn_executable_p "$ac_path_EGREP" || continue
5097 # Check for GNU ac_path_EGREP and select it if it is found.
5098 # Check for GNU $ac_path_EGREP
5099 case `"$ac_path_EGREP" --version 2>&1` in
5101 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5104 $as_echo_n 0123456789 >"conftest.in"
5107 cat "conftest.in" "conftest.in" >"conftest.tmp"
5108 mv "conftest.tmp" "conftest.in"
5109 cp "conftest.in" "conftest.nl"
5110 $as_echo 'EGREP' >> "conftest.nl"
5111 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5113 as_fn_arith $ac_count + 1 && ac_count=$as_val
5114 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5115 # Best one so far, save it but keep looking for a better one
5116 ac_cv_path_EGREP="$ac_path_EGREP"
5117 ac_path_EGREP_max=$ac_count
5119 # 10*(2^10) chars as input seems more than enough
5120 test $ac_count -gt 10 && break
5122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5125 $ac_path_EGREP_found && break 3
5130 if test -z "$ac_cv_path_EGREP"; then
5131 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5134 ac_cv_path_EGREP=$EGREP
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5140 $as_echo "$ac_cv_path_EGREP" >&6; }
5141 EGREP="$ac_cv_path_EGREP"
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5145 $as_echo_n "checking for ANSI C header files... " >&6; }
5146 if ${ac_cv_header_stdc+:} false; then :
5147 $as_echo_n "(cached) " >&6
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5164 if ac_fn_c_try_compile "$LINENO"; then :
5165 ac_cv_header_stdc=yes
5167 ac_cv_header_stdc=no
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 if test $ac_cv_header_stdc = yes; then
5172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5179 $EGREP "memchr" >/dev/null 2>&1; then :
5182 ac_cv_header_stdc=no
5188 if test $ac_cv_header_stdc = yes; then
5189 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5196 $EGREP "free" >/dev/null 2>&1; then :
5199 ac_cv_header_stdc=no
5205 if test $ac_cv_header_stdc = yes; then
5206 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5207 if test "$cross_compiling" = yes; then :
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5214 #if ((' ' & 0x0FF) == 0x020)
5215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5218 # define ISLOWER(c) \
5219 (('a' <= (c) && (c) <= 'i') \
5220 || ('j' <= (c) && (c) <= 'r') \
5221 || ('s' <= (c) && (c) <= 'z'))
5222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5230 for (i = 0; i < 256; i++)
5231 if (XOR (islower (i), ISLOWER (i))
5232 || toupper (i) != TOUPPER (i))
5237 if ac_fn_c_try_run "$LINENO"; then :
5240 ac_cv_header_stdc=no
5242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5243 conftest.$ac_objext conftest.beam conftest.$ac_ext
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5249 $as_echo "$ac_cv_header_stdc" >&6; }
5250 if test $ac_cv_header_stdc = yes; then
5252 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5258 inttypes.h stdint.h unistd.h
5260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5263 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5264 cat >>confdefs.h <<_ACEOF
5265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5276 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5277 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5284 if test "$MINIX" = yes; then
5286 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5289 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5292 $as_echo "#define _MINIX 1" >>confdefs.h
5299 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5306 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5307 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5308 $as_echo_n "(cached) " >&6
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5313 # define __EXTENSIONS__ 1
5314 $ac_includes_default
5323 if ac_fn_c_try_compile "$LINENO"; then :
5324 ac_cv_safe_to_define___extensions__=yes
5326 ac_cv_safe_to_define___extensions__=no
5328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5331 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5332 test $ac_cv_safe_to_define___extensions__ = yes &&
5333 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5335 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5337 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5339 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5341 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5343 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5347 if test -n "$ac_tool_prefix"; then
5348 for ac_prog in ar lib "link -lib"
5350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if ${ac_cv_prog_AR+:} false; then :
5355 $as_echo_n "(cached) " >&6
5357 if test -n "$AR"; then
5358 ac_cv_prog_AR="$AR" # Let the user override the test.
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 if test -n "$AR"; then
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5380 $as_echo "$AR" >&6; }
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5387 test -n "$AR" && break
5390 if test -z "$AR"; then
5392 for ac_prog in ar lib "link -lib"
5394 # Extract the first word of "$ac_prog", so it can be a program name with args.
5395 set dummy $ac_prog; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5399 $as_echo_n "(cached) " >&6
5401 if test -n "$ac_ct_AR"; then
5402 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_prog_ac_ct_AR="$ac_prog"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5422 if test -n "$ac_ct_AR"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5424 $as_echo "$ac_ct_AR" >&6; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5431 test -n "$ac_ct_AR" && break
5434 if test "x$ac_ct_AR" = x; then
5437 case $cross_compiling:$ac_tool_warned in
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5441 ac_tool_warned=yes ;;
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5450 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5451 if ${am_cv_ar_interface+:} false; then :
5452 $as_echo_n "(cached) " >&6
5454 am_cv_ar_interface=ar
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 int some_variable = 0;
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5462 (eval $am_ar_try) 2>&5
5464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5465 test $ac_status = 0; }
5466 if test "$ac_status" -eq 0; then
5467 am_cv_ar_interface=ar
5469 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5471 (eval $am_ar_try) 2>&5
5473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5474 test $ac_status = 0; }
5475 if test "$ac_status" -eq 0; then
5476 am_cv_ar_interface=lib
5478 am_cv_ar_interface=unknown
5481 rm -f conftest.lib libconftest.a
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5488 $as_echo "$am_cv_ar_interface" >&6; }
5490 case $am_cv_ar_interface in
5494 # Microsoft lib, so override with the ar-lib wrapper script.
5495 # FIXME: It is wrong to rewrite AR.
5496 # But if we don't then we get into trouble of one sort or another.
5497 # A longer-term fix would be to have automake use am__AR in this case,
5498 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5500 AR="$am_aux_dir/ar-lib $AR"
5503 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5510 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5515 macro_version='2.4.2'
5516 macro_revision='1.3337'
5530 ltmain="$ac_aux_dir/ltmain.sh"
5532 # Backslashify metacharacters that are still active within
5533 # double-quoted strings.
5534 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5536 # Same as above, but do not quote variable references.
5537 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5539 # Sed substitution to delay expansion of an escaped shell variable in a
5540 # double_quote_subst'ed string.
5541 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5543 # Sed substitution to delay expansion of an escaped single quote.
5544 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5546 # Sed substitution to avoid accidental globbing in evaled expressions
5547 no_glob_subst='s/\*/\\\*/g'
5549 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5550 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5551 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5554 $as_echo_n "checking how to print strings... " >&6; }
5555 # Test print first, because it will be a builtin if present.
5556 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5557 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5559 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5562 # Use this function as a fallback that always works.
5563 func_fallback_echo ()
5565 eval 'cat <<_LTECHO_EOF
5569 ECHO='func_fallback_echo'
5572 # func_echo_all arg...
5573 # Invoke $ECHO with all args, space-separated.
5580 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5581 $as_echo "printf" >&6; } ;;
5582 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5583 $as_echo "print -r" >&6; } ;;
5584 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5585 $as_echo "cat" >&6; } ;;
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5602 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5603 if ${ac_cv_path_SED+:} false; then :
5604 $as_echo_n "(cached) " >&6
5606 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5607 for ac_i in 1 2 3 4 5 6 7; do
5608 ac_script="$ac_script$as_nl$ac_script"
5610 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5611 { ac_script=; unset ac_script;}
5612 if test -z "$SED"; then
5613 ac_path_SED_found=false
5614 # Loop through the user's path and test for each of PROGNAME-LIST
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_prog in sed gsed; do
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5623 as_fn_executable_p "$ac_path_SED" || continue
5624 # Check for GNU ac_path_SED and select it if it is found.
5625 # Check for GNU $ac_path_SED
5626 case `"$ac_path_SED" --version 2>&1` in
5628 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5631 $as_echo_n 0123456789 >"conftest.in"
5634 cat "conftest.in" "conftest.in" >"conftest.tmp"
5635 mv "conftest.tmp" "conftest.in"
5636 cp "conftest.in" "conftest.nl"
5637 $as_echo '' >> "conftest.nl"
5638 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5640 as_fn_arith $ac_count + 1 && ac_count=$as_val
5641 if test $ac_count -gt ${ac_path_SED_max-0}; then
5642 # Best one so far, save it but keep looking for a better one
5643 ac_cv_path_SED="$ac_path_SED"
5644 ac_path_SED_max=$ac_count
5646 # 10*(2^10) chars as input seems more than enough
5647 test $ac_count -gt 10 && break
5649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5652 $ac_path_SED_found && break 3
5657 if test -z "$ac_cv_path_SED"; then
5658 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5666 $as_echo "$ac_cv_path_SED" >&6; }
5667 SED="$ac_cv_path_SED"
5670 test -z "$SED" && SED=sed
5671 Xsed="$SED -e 1s/^X//"
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5684 $as_echo_n "checking for fgrep... " >&6; }
5685 if ${ac_cv_path_FGREP+:} false; then :
5686 $as_echo_n "(cached) " >&6
5688 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5689 then ac_cv_path_FGREP="$GREP -F"
5691 if test -z "$FGREP"; then
5692 ac_path_FGREP_found=false
5693 # Loop through the user's path and test for each of PROGNAME-LIST
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5698 test -z "$as_dir" && as_dir=.
5699 for ac_prog in fgrep; do
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5702 as_fn_executable_p "$ac_path_FGREP" || continue
5703 # Check for GNU ac_path_FGREP and select it if it is found.
5704 # Check for GNU $ac_path_FGREP
5705 case `"$ac_path_FGREP" --version 2>&1` in
5707 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5710 $as_echo_n 0123456789 >"conftest.in"
5713 cat "conftest.in" "conftest.in" >"conftest.tmp"
5714 mv "conftest.tmp" "conftest.in"
5715 cp "conftest.in" "conftest.nl"
5716 $as_echo 'FGREP' >> "conftest.nl"
5717 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5719 as_fn_arith $ac_count + 1 && ac_count=$as_val
5720 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5721 # Best one so far, save it but keep looking for a better one
5722 ac_cv_path_FGREP="$ac_path_FGREP"
5723 ac_path_FGREP_max=$ac_count
5725 # 10*(2^10) chars as input seems more than enough
5726 test $ac_count -gt 10 && break
5728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5731 $ac_path_FGREP_found && break 3
5736 if test -z "$ac_cv_path_FGREP"; then
5737 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5740 ac_cv_path_FGREP=$FGREP
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5746 $as_echo "$ac_cv_path_FGREP" >&6; }
5747 FGREP="$ac_cv_path_FGREP"
5750 test -z "$GREP" && GREP=grep
5770 # Check whether --with-gnu-ld was given.
5771 if test "${with_gnu_ld+set}" = set; then :
5772 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5778 if test "$GCC" = yes; then
5779 # Check if gcc -print-prog-name=ld gives a path.
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5781 $as_echo_n "checking for ld used by $CC... " >&6; }
5784 # gcc leaves a trailing carriage return which upsets mingw
5785 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5787 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5790 # Accept absolute paths.
5792 re_direlt='/[^/][^/]*/\.\./'
5793 # Canonicalize the pathname of ld
5794 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5795 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5796 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5798 test -z "$LD" && LD="$ac_prog"
5801 # If it fails, then pretend we aren't using GCC.
5805 # If it is relative, then search for the first ld in PATH.
5809 elif test "$with_gnu_ld" = yes; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5811 $as_echo_n "checking for GNU ld... " >&6; }
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5814 $as_echo_n "checking for non-GNU ld... " >&6; }
5816 if ${lt_cv_path_LD+:} false; then :
5817 $as_echo_n "(cached) " >&6
5819 if test -z "$LD"; then
5820 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5821 for ac_dir in $PATH; do
5823 test -z "$ac_dir" && ac_dir=.
5824 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5825 lt_cv_path_LD="$ac_dir/$ac_prog"
5826 # Check to see if the program is GNU ld. I'd rather use --version,
5827 # but apparently some variants of GNU ld only accept -v.
5828 # Break only if it was the GNU/non-GNU ld that we prefer.
5829 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5830 *GNU* | *'with BFD'*)
5831 test "$with_gnu_ld" != no && break
5834 test "$with_gnu_ld" != yes && break
5841 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5846 if test -n "$LD"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5848 $as_echo "$LD" >&6; }
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5853 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5855 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5856 if ${lt_cv_prog_gnu_ld+:} false; then :
5857 $as_echo_n "(cached) " >&6
5859 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5860 case `$LD -v 2>&1 </dev/null` in
5861 *GNU* | *'with BFD'*)
5862 lt_cv_prog_gnu_ld=yes
5865 lt_cv_prog_gnu_ld=no
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5870 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5871 with_gnu_ld=$lt_cv_prog_gnu_ld
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5882 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5883 if ${lt_cv_path_NM+:} false; then :
5884 $as_echo_n "(cached) " >&6
5886 if test -n "$NM"; then
5887 # Let the user override the test.
5890 lt_nm_to_check="${ac_tool_prefix}nm"
5891 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5892 lt_nm_to_check="$lt_nm_to_check nm"
5894 for lt_tmp_nm in $lt_nm_to_check; do
5895 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5896 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5898 test -z "$ac_dir" && ac_dir=.
5899 tmp_nm="$ac_dir/$lt_tmp_nm"
5900 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5901 # Check to see if the nm accepts a BSD-compat flag.
5902 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5903 # nm: unknown option "B" ignored
5904 # Tru64's nm complains that /dev/null is an invalid object file
5905 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5906 */dev/null* | *'Invalid file or object type'*)
5907 lt_cv_path_NM="$tmp_nm -B"
5911 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5913 lt_cv_path_NM="$tmp_nm -p"
5917 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5918 continue # so that we can try to find one that supports BSD flags
5927 : ${lt_cv_path_NM=no}
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5931 $as_echo "$lt_cv_path_NM" >&6; }
5932 if test "$lt_cv_path_NM" != "no"; then
5935 # Didn't find any BSD compatible name lister, look for dumpbin.
5936 if test -n "$DUMPBIN"; then :
5937 # Let the user override the test.
5939 if test -n "$ac_tool_prefix"; then
5940 for ac_prog in dumpbin "link -dump"
5942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_prog_DUMPBIN+:} false; then :
5947 $as_echo_n "(cached) " >&6
5949 if test -n "$DUMPBIN"; then
5950 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 DUMPBIN=$ac_cv_prog_DUMPBIN
5970 if test -n "$DUMPBIN"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5972 $as_echo "$DUMPBIN" >&6; }
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5979 test -n "$DUMPBIN" && break
5982 if test -z "$DUMPBIN"; then
5983 ac_ct_DUMPBIN=$DUMPBIN
5984 for ac_prog in dumpbin "link -dump"
5986 # Extract the first word of "$ac_prog", so it can be a program name with args.
5987 set dummy $ac_prog; ac_word=$2
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5989 $as_echo_n "checking for $ac_word... " >&6; }
5990 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5991 $as_echo_n "(cached) " >&6
5993 if test -n "$ac_ct_DUMPBIN"; then
5994 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6003 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6014 if test -n "$ac_ct_DUMPBIN"; then
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6016 $as_echo "$ac_ct_DUMPBIN" >&6; }
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019 $as_echo "no" >&6; }
6023 test -n "$ac_ct_DUMPBIN" && break
6026 if test "x$ac_ct_DUMPBIN" = x; then
6029 case $cross_compiling:$ac_tool_warned in
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6033 ac_tool_warned=yes ;;
6035 DUMPBIN=$ac_ct_DUMPBIN
6039 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6041 DUMPBIN="$DUMPBIN -symbols"
6049 if test "$DUMPBIN" != ":"; then
6053 test -z "$NM" && NM=nm
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6061 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6062 if ${lt_cv_nm_interface+:} false; then :
6063 $as_echo_n "(cached) " >&6
6065 lt_cv_nm_interface="BSD nm"
6066 echo "int some_variable = 0;" > conftest.$ac_ext
6067 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6068 (eval "$ac_compile" 2>conftest.err)
6069 cat conftest.err >&5
6070 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6071 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6072 cat conftest.err >&5
6073 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6074 cat conftest.out >&5
6075 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6076 lt_cv_nm_interface="MS dumpbin"
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6081 $as_echo "$lt_cv_nm_interface" >&6; }
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6084 $as_echo_n "checking whether ln -s works... " >&6; }
6086 if test "$LN_S" = "ln -s"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6088 $as_echo "yes" >&6; }
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6091 $as_echo "no, using $LN_S" >&6; }
6094 # find the maximum length of command line arguments
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6096 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6097 if ${lt_cv_sys_max_cmd_len+:} false; then :
6098 $as_echo_n "(cached) " >&6
6105 # On DJGPP, this test can blow up pretty badly due to problems in libc
6106 # (any single argument exceeding 2000 bytes causes a buffer overrun
6107 # during glob expansion). Even if it were fixed, the result of this
6108 # check would be larger than it should be.
6109 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6113 # Under GNU Hurd, this test is not required because there is
6114 # no limit to the length of command line arguments.
6115 # Libtool will interpret -1 as no limit whatsoever
6116 lt_cv_sys_max_cmd_len=-1;
6119 cygwin* | mingw* | cegcc*)
6120 # On Win9x/ME, this test blows up -- it succeeds, but takes
6121 # about 5 minutes as the teststring grows exponentially.
6122 # Worse, since 9x/ME are not pre-emptively multitasking,
6123 # you end up with a "frozen" computer, even though with patience
6124 # the test eventually succeeds (with a max line length of 256k).
6125 # Instead, let's just punt: use the minimum linelength reported by
6126 # all of the supported platforms: 8192 (on NT/2K/XP).
6127 lt_cv_sys_max_cmd_len=8192;
6131 # On MiNT this can take a long time and run out of memory.
6132 lt_cv_sys_max_cmd_len=8192;
6136 # On AmigaOS with pdksh, this test takes hours, literally.
6137 # So we just punt and use a minimum line length of 8192.
6138 lt_cv_sys_max_cmd_len=8192;
6141 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6142 # This has been around since 386BSD, at least. Likely further.
6143 if test -x /sbin/sysctl; then
6144 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6145 elif test -x /usr/sbin/sysctl; then
6146 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6148 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6150 # And add a safety zone
6151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6156 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6157 lt_cv_sys_max_cmd_len=196608
6161 # The test takes a long time on OS/2.
6162 lt_cv_sys_max_cmd_len=8192
6166 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6167 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6168 # nice to cause kernel panics so lets avoid the loop below.
6169 # First set a reasonable default.
6170 lt_cv_sys_max_cmd_len=16384
6172 if test -x /sbin/sysconfig; then
6173 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6174 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6179 lt_cv_sys_max_cmd_len=102400
6181 sysv5* | sco5v6* | sysv4.2uw2*)
6182 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6183 if test -n "$kargmax"; then
6184 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6186 lt_cv_sys_max_cmd_len=32768
6190 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6191 if test -n "$lt_cv_sys_max_cmd_len" && \
6192 test undefined != "$lt_cv_sys_max_cmd_len"; then
6193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6196 # Make teststring a little bigger before we do anything with it.
6197 # a 1K string should be a reasonable start.
6198 for i in 1 2 3 4 5 6 7 8 ; do
6199 teststring=$teststring$teststring
6201 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6202 # If test is not a shell built-in, we'll probably end up computing a
6203 # maximum length that is only half of the actual maximum length, but
6205 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6206 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6207 test $i != 17 # 1/2 MB should be enough
6210 teststring=$teststring$teststring
6212 # Only check the string length outside the loop.
6213 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6215 # Add a significant safety factor because C++ compilers can tack on
6216 # massive amounts of additional arguments before passing them to the
6217 # linker. It appears as though 1/2 is a usable value.
6218 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6225 if test -n $lt_cv_sys_max_cmd_len ; then
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6227 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6230 $as_echo "none" >&6; }
6232 max_cmd_len=$lt_cv_sys_max_cmd_len
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6244 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6245 # Try some XSI features
6248 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6250 && eval 'test $(( 1 + 1 )) -eq 2 \
6251 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6254 $as_echo "$xsi_shell" >&6; }
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6258 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6260 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6262 && lt_shell_append=yes
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6264 $as_echo "$lt_shell_append" >&6; }
6267 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6277 # test EBCDIC or ASCII
6278 case `echo X|tr X '\101'` in
6279 A) # ASCII based system
6280 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6281 lt_SP2NL='tr \040 \012'
6282 lt_NL2SP='tr \015\012 \040\040'
6284 *) # EBCDIC based system
6285 lt_SP2NL='tr \100 \n'
6286 lt_NL2SP='tr \r\n \100\100'
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6299 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6300 if ${lt_cv_to_host_file_cmd+:} false; then :
6301 $as_echo_n "(cached) " >&6
6306 *-*-mingw* ) # actually msys
6307 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6310 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6312 * ) # otherwise, assume *nix
6313 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6319 *-*-mingw* ) # actually msys
6320 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6323 lt_cv_to_host_file_cmd=func_convert_file_noop
6325 * ) # otherwise, assume *nix
6326 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6330 * ) # unhandled hosts (and "normal" native builds)
6331 lt_cv_to_host_file_cmd=func_convert_file_noop
6337 to_host_file_cmd=$lt_cv_to_host_file_cmd
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6339 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6346 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6347 if ${lt_cv_to_tool_file_cmd+:} false; then :
6348 $as_echo_n "(cached) " >&6
6350 #assume ordinary cross tools, or native build.
6351 lt_cv_to_tool_file_cmd=func_convert_file_noop
6355 *-*-mingw* ) # actually msys
6356 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6364 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6366 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6373 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6374 if ${lt_cv_ld_reload_flag+:} false; then :
6375 $as_echo_n "(cached) " >&6
6377 lt_cv_ld_reload_flag='-r'
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6380 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6381 reload_flag=$lt_cv_ld_reload_flag
6382 case $reload_flag in
6384 *) reload_flag=" $reload_flag" ;;
6386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6388 cygwin* | mingw* | pw32* | cegcc*)
6389 if test "$GCC" != yes; then
6394 if test "$GCC" = yes; then
6395 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6397 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6410 if test -n "$ac_tool_prefix"; then
6411 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6412 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if ${ac_cv_prog_OBJDUMP+:} false; then :
6416 $as_echo_n "(cached) " >&6
6418 if test -n "$OBJDUMP"; then
6419 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 OBJDUMP=$ac_cv_prog_OBJDUMP
6439 if test -n "$OBJDUMP"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6441 $as_echo "$OBJDUMP" >&6; }
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6449 if test -z "$ac_cv_prog_OBJDUMP"; then
6450 ac_ct_OBJDUMP=$OBJDUMP
6451 # Extract the first word of "objdump", so it can be a program name with args.
6452 set dummy objdump; ac_word=$2
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6456 $as_echo_n "(cached) " >&6
6458 if test -n "$ac_ct_OBJDUMP"; then
6459 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6468 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6479 if test -n "$ac_ct_OBJDUMP"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6481 $as_echo "$ac_ct_OBJDUMP" >&6; }
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6487 if test "x$ac_ct_OBJDUMP" = x; then
6490 case $cross_compiling:$ac_tool_warned in
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6494 ac_tool_warned=yes ;;
6496 OBJDUMP=$ac_ct_OBJDUMP
6499 OBJDUMP="$ac_cv_prog_OBJDUMP"
6502 test -z "$OBJDUMP" && OBJDUMP=objdump
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6513 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6514 if ${lt_cv_deplibs_check_method+:} false; then :
6515 $as_echo_n "(cached) " >&6
6517 lt_cv_file_magic_cmd='$MAGIC_CMD'
6518 lt_cv_file_magic_test_file=
6519 lt_cv_deplibs_check_method='unknown'
6520 # Need to set the preceding variable on all platforms that support
6521 # interlibrary dependencies.
6522 # 'none' -- dependencies not supported.
6523 # `unknown' -- same as none, but documents that we really don't know.
6524 # 'pass_all' -- all dependencies passed with no checks.
6525 # 'test_compile' -- check by making test program.
6526 # 'file_magic [[regex]]' -- check by looking for files in library path
6527 # which responds to the $file_magic_cmd with a given extended regex.
6528 # If you have `file' or equivalent on your system and you're not sure
6529 # whether `pass_all' will *always* work, you probably want this one.
6533 lt_cv_deplibs_check_method=pass_all
6537 lt_cv_deplibs_check_method=pass_all
6541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6542 lt_cv_file_magic_cmd='/usr/bin/file -L'
6543 lt_cv_file_magic_test_file=/shlib/libc.so
6547 # func_win32_libid is a shell function defined in ltmain.sh
6548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6549 lt_cv_file_magic_cmd='func_win32_libid'
6553 # Base MSYS/MinGW do not provide the 'file' command needed by
6554 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6555 # unless we find 'file', for example because we are cross-compiling.
6556 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6557 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6558 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6559 lt_cv_file_magic_cmd='func_win32_libid'
6561 # Keep this pattern in sync with the one in func_win32_libid.
6562 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6563 lt_cv_file_magic_cmd='$OBJDUMP -f'
6568 # use the weaker test based on 'objdump'. See mingw*.
6569 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6570 lt_cv_file_magic_cmd='$OBJDUMP -f'
6573 darwin* | rhapsody*)
6574 lt_cv_deplibs_check_method=pass_all
6577 freebsd* | dragonfly*)
6578 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6581 # Not sure whether the presence of OpenBSD here was a mistake.
6582 # Let's accept both of them until this is cleared up.
6583 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6584 lt_cv_file_magic_cmd=/usr/bin/file
6585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6589 lt_cv_deplibs_check_method=pass_all
6594 lt_cv_deplibs_check_method=pass_all
6597 hpux10.20* | hpux11*)
6598 lt_cv_file_magic_cmd=/usr/bin/file
6601 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6602 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6605 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]'
6606 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6609 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6610 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6616 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6620 irix5* | irix6* | nonstopux*)
6622 *-32|*"-32 ") libmagic=32-bit;;
6623 *-n32|*"-n32 ") libmagic=N32;;
6624 *-64|*"-64 ") libmagic=64-bit;;
6625 *) libmagic=never-match;;
6627 lt_cv_deplibs_check_method=pass_all
6630 # This must be glibc/ELF.
6631 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6632 lt_cv_deplibs_check_method=pass_all
6635 netbsd* | netbsdelf*-gnu)
6636 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6645 lt_cv_file_magic_cmd=/usr/bin/file
6646 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6650 lt_cv_deplibs_check_method=pass_all
6654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6661 osf3* | osf4* | osf5*)
6662 lt_cv_deplibs_check_method=pass_all
6666 lt_cv_deplibs_check_method=pass_all
6670 lt_cv_deplibs_check_method=pass_all
6673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6674 lt_cv_deplibs_check_method=pass_all
6678 case $host_vendor in
6680 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]'
6681 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6684 lt_cv_deplibs_check_method=pass_all
6687 lt_cv_file_magic_cmd='/bin/file'
6688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6691 lt_cv_file_magic_cmd='/bin/file'
6692 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6693 lt_cv_file_magic_test_file=/lib/libc.so
6696 lt_cv_deplibs_check_method=pass_all
6699 lt_cv_deplibs_check_method=pass_all
6705 lt_cv_deplibs_check_method=pass_all
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6711 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6715 if test "$build" = "$host"; then
6718 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6721 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6727 file_magic_cmd=$lt_cv_file_magic_cmd
6728 deplibs_check_method=$lt_cv_deplibs_check_method
6729 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6752 if test -n "$ac_tool_prefix"; then
6753 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6754 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if ${ac_cv_prog_DLLTOOL+:} false; then :
6758 $as_echo_n "(cached) " >&6
6760 if test -n "$DLLTOOL"; then
6761 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6770 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 DLLTOOL=$ac_cv_prog_DLLTOOL
6781 if test -n "$DLLTOOL"; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6783 $as_echo "$DLLTOOL" >&6; }
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6791 if test -z "$ac_cv_prog_DLLTOOL"; then
6792 ac_ct_DLLTOOL=$DLLTOOL
6793 # Extract the first word of "dlltool", so it can be a program name with args.
6794 set dummy dlltool; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 if test -n "$ac_ct_DLLTOOL"; then
6801 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6821 if test -n "$ac_ct_DLLTOOL"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6823 $as_echo "$ac_ct_DLLTOOL" >&6; }
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6829 if test "x$ac_ct_DLLTOOL" = x; then
6832 case $cross_compiling:$ac_tool_warned in
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6836 ac_tool_warned=yes ;;
6838 DLLTOOL=$ac_ct_DLLTOOL
6841 DLLTOOL="$ac_cv_prog_DLLTOOL"
6844 test -z "$DLLTOOL" && DLLTOOL=dlltool
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6856 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6857 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6858 $as_echo_n "(cached) " >&6
6860 lt_cv_sharedlib_from_linklib_cmd='unknown'
6863 cygwin* | mingw* | pw32* | cegcc*)
6864 # two different shell functions defined in ltmain.sh
6865 # decide which to use based on capabilities of $DLLTOOL
6866 case `$DLLTOOL --help 2>&1` in
6867 *--identify-strict*)
6868 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6871 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6876 # fallback: assume linklib IS sharedlib
6877 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6883 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6884 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6885 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6893 if test -n "$ac_tool_prefix"; then
6896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_prog_AR+:} false; then :
6901 $as_echo_n "(cached) " >&6
6903 if test -n "$AR"; then
6904 ac_cv_prog_AR="$AR" # Let the user override the test.
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 if test -n "$AR"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6926 $as_echo "$AR" >&6; }
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6933 test -n "$AR" && break
6936 if test -z "$AR"; then
6940 # Extract the first word of "$ac_prog", so it can be a program name with args.
6941 set dummy $ac_prog; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6945 $as_echo_n "(cached) " >&6
6947 if test -n "$ac_ct_AR"; then
6948 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957 ac_cv_prog_ac_ct_AR="$ac_prog"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6968 if test -n "$ac_ct_AR"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6970 $as_echo "$ac_ct_AR" >&6; }
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6977 test -n "$ac_ct_AR" && break
6980 if test "x$ac_ct_AR" = x; then
6983 case $cross_compiling:$ac_tool_warned in
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987 ac_tool_warned=yes ;;
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7007 $as_echo_n "checking for archiver @FILE support... " >&6; }
7008 if ${lt_cv_ar_at_file+:} false; then :
7009 $as_echo_n "(cached) " >&6
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7023 if ac_fn_c_try_compile "$LINENO"; then :
7024 echo conftest.$ac_objext > conftest.lst
7025 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7027 (eval $lt_ar_try) 2>&5
7029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7030 test $ac_status = 0; }
7031 if test "$ac_status" -eq 0; then
7032 # Ensure the archiver fails upon bogus file names.
7033 rm -f conftest.$ac_objext libconftest.a
7034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7035 (eval $lt_ar_try) 2>&5
7037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7038 test $ac_status = 0; }
7039 if test "$ac_status" -ne 0; then
7043 rm -f conftest.* libconftest.a
7046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7050 $as_echo "$lt_cv_ar_at_file" >&6; }
7052 if test "x$lt_cv_ar_at_file" = xno; then
7055 archiver_list_spec=$lt_cv_ar_at_file
7064 if test -n "$ac_tool_prefix"; then
7065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7066 set dummy ${ac_tool_prefix}strip; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if ${ac_cv_prog_STRIP+:} false; then :
7070 $as_echo_n "(cached) " >&6
7072 if test -n "$STRIP"; then
7073 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 STRIP=$ac_cv_prog_STRIP
7093 if test -n "$STRIP"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7095 $as_echo "$STRIP" >&6; }
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7103 if test -z "$ac_cv_prog_STRIP"; then
7105 # Extract the first word of "strip", so it can be a program name with args.
7106 set dummy strip; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7110 $as_echo_n "(cached) " >&6
7112 if test -n "$ac_ct_STRIP"; then
7113 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122 ac_cv_prog_ac_ct_STRIP="strip"
7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7133 if test -n "$ac_ct_STRIP"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7135 $as_echo "$ac_ct_STRIP" >&6; }
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7141 if test "x$ac_ct_STRIP" = x; then
7144 case $cross_compiling:$ac_tool_warned in
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7148 ac_tool_warned=yes ;;
7153 STRIP="$ac_cv_prog_STRIP"
7156 test -z "$STRIP" && STRIP=:
7163 if test -n "$ac_tool_prefix"; then
7164 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7165 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if ${ac_cv_prog_RANLIB+:} false; then :
7169 $as_echo_n "(cached) " >&6
7171 if test -n "$RANLIB"; then
7172 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 RANLIB=$ac_cv_prog_RANLIB
7192 if test -n "$RANLIB"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7194 $as_echo "$RANLIB" >&6; }
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7202 if test -z "$ac_cv_prog_RANLIB"; then
7203 ac_ct_RANLIB=$RANLIB
7204 # Extract the first word of "ranlib", so it can be a program name with args.
7205 set dummy ranlib; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7209 $as_echo_n "(cached) " >&6
7211 if test -n "$ac_ct_RANLIB"; then
7212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221 ac_cv_prog_ac_ct_RANLIB="ranlib"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7232 if test -n "$ac_ct_RANLIB"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7234 $as_echo "$ac_ct_RANLIB" >&6; }
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7240 if test "x$ac_ct_RANLIB" = x; then
7243 case $cross_compiling:$ac_tool_warned in
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247 ac_tool_warned=yes ;;
7249 RANLIB=$ac_ct_RANLIB
7252 RANLIB="$ac_cv_prog_RANLIB"
7255 test -z "$RANLIB" && RANLIB=:
7262 # Determine commands to create old-style static archives.
7263 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7264 old_postinstall_cmds='chmod 644 $oldlib'
7265 old_postuninstall_cmds=
7267 if test -n "$RANLIB"; then
7270 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7273 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7276 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7281 lock_old_archive_extraction=yes ;;
7283 lock_old_archive_extraction=no ;;
7324 # If no C compiler was specified, use CC.
7327 # If no C compiler flags were specified, use CFLAGS.
7328 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7330 # Allow CC to be a program name with arguments.
7334 # Check for command to grab the raw symbol name followed by C symbol from nm.
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7336 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7337 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7338 $as_echo_n "(cached) " >&6
7341 # These are sane defaults that work on at least a few old systems.
7342 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7344 # Character class describing NM global symbol codes.
7345 symcode='[BCDEGRST]'
7347 # Regexp to match symbols that can be accessed directly from C.
7348 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7350 # Define system-specific variables.
7355 cygwin* | mingw* | pw32* | cegcc*)
7356 symcode='[ABCDGISTW]'
7359 if test "$host_cpu" = ia64; then
7360 symcode='[ABCDEGRST]'
7364 symcode='[BCDEGRST]'
7367 symcode='[BCDEGQRST]'
7378 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7386 # If we're using GNU nm, then use its standard symbol codes.
7387 case `$NM -V 2>&1` in
7388 *GNU* | *'with BFD'*)
7389 symcode='[ABCDGIRSTW]' ;;
7392 # Transform an extracted symbol line into a proper C declaration.
7393 # Some systems (esp. on ia64) link data and code symbols differently,
7394 # so use this general approach.
7395 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7397 # Transform an extracted symbol line into symbol name and symbol address
7398 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7399 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'"
7401 # Handle CRLF in mingw tool chain
7405 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7409 # Try without a prefix underscore, then with it.
7410 for ac_symprfx in "" "_"; do
7412 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7413 symxfrm="\\1 $ac_symprfx\\2 \\2"
7415 # Write the raw and C identifiers.
7416 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7417 # Fake it for dumpbin and say T for any non-static function
7418 # and D for any global variable.
7419 # Also find C++ and __fastcall symbols from MSVC++,
7420 # which start with @ or ?.
7421 lt_cv_sys_global_symbol_pipe="$AWK '"\
7422 " {last_section=section; section=\$ 3};"\
7423 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7424 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7425 " \$ 0!~/External *\|/{next};"\
7426 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7427 " {if(hide[section]) next};"\
7428 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7429 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7430 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7431 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7432 " ' prfx=^$ac_symprfx"
7434 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7436 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7438 # Check to see that the pipe works correctly.
7442 cat > conftest.$ac_ext <<_LT_EOF
7447 void nm_test_func(void);
7448 void nm_test_func(void){}
7452 int main(){nm_test_var='a';nm_test_func();return(0);}
7455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7456 (eval $ac_compile) 2>&5
7458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7459 test $ac_status = 0; }; then
7460 # Now try to grab the symbols.
7462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7463 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7466 test $ac_status = 0; } && test -s "$nlist"; then
7467 # Try sorting and uniquifying the output.
7468 if sort "$nlist" | uniq > "$nlist"T; then
7469 mv -f "$nlist"T "$nlist"
7474 # Make sure that we snagged all the symbols we need.
7475 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7476 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7477 cat <<_LT_EOF > conftest.$ac_ext
7478 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7479 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7480 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7481 relocations are performed -- see ld's documentation on pseudo-relocs. */
7482 # define LT_DLSYM_CONST
7483 #elif defined(__osf__)
7484 /* This system does not cope well with relocations in const data. */
7485 # define LT_DLSYM_CONST
7487 # define LT_DLSYM_CONST const
7495 # Now generate the symbol file.
7496 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7498 cat <<_LT_EOF >> conftest.$ac_ext
7500 /* The mapping between symbol names and symbols. */
7501 LT_DLSYM_CONST struct {
7505 lt__PROGRAM__LTX_preloaded_symbols[] =
7507 { "@PROGRAM@", (void *) 0 },
7509 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7510 cat <<\_LT_EOF >> conftest.$ac_ext
7514 /* This works around a problem in FreeBSD linker */
7515 #ifdef FREEBSD_WORKAROUND
7516 static const void *lt_preloaded_setup() {
7517 return lt__PROGRAM__LTX_preloaded_symbols;
7525 # Now try linking the two files.
7526 mv conftest.$ac_objext conftstm.$ac_objext
7527 lt_globsym_save_LIBS=$LIBS
7528 lt_globsym_save_CFLAGS=$CFLAGS
7529 LIBS="conftstm.$ac_objext"
7530 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7532 (eval $ac_link) 2>&5
7534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7535 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7538 LIBS=$lt_globsym_save_LIBS
7539 CFLAGS=$lt_globsym_save_CFLAGS
7541 echo "cannot find nm_test_func in $nlist" >&5
7544 echo "cannot find nm_test_var in $nlist" >&5
7547 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7550 echo "$progname: failed program was:" >&5
7551 cat conftest.$ac_ext >&5
7553 rm -rf conftest* conftst*
7555 # Do not use the global_symbol_pipe unless it works.
7556 if test "$pipe_works" = yes; then
7559 lt_cv_sys_global_symbol_pipe=
7565 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7566 lt_cv_sys_global_symbol_to_cdecl=
7568 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7570 $as_echo "failed" >&6; }
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7573 $as_echo "ok" >&6; }
7576 # Response file support.
7577 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7578 nm_file_list_spec='@'
7579 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7580 nm_file_list_spec='@'
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7610 $as_echo_n "checking for sysroot... " >&6; }
7612 # Check whether --with-sysroot was given.
7613 if test "${with_sysroot+set}" = set; then :
7614 withval=$with_sysroot;
7621 case ${with_sysroot} in #(
7623 if test "$GCC" = yes; then
7624 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7628 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7634 $as_echo "${with_sysroot}" >&6; }
7635 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7640 $as_echo "${lt_sysroot:-no}" >&6; }
7646 # Check whether --enable-libtool-lock was given.
7647 if test "${enable_libtool_lock+set}" = set; then :
7648 enableval=$enable_libtool_lock;
7651 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7653 # Some flags need to be propagated to the compiler or linker for good
7657 # Find out which ABI we are using.
7658 echo 'int i;' > conftest.$ac_ext
7659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7660 (eval $ac_compile) 2>&5
7662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7663 test $ac_status = 0; }; then
7664 case `/usr/bin/file conftest.$ac_objext` in
7676 # Find out which ABI we are using.
7677 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7679 (eval $ac_compile) 2>&5
7681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7682 test $ac_status = 0; }; then
7683 if test "$lt_cv_prog_gnu_ld" = yes; then
7684 case `/usr/bin/file conftest.$ac_objext` in
7686 LD="${LD-ld} -melf32bsmip"
7689 LD="${LD-ld} -melf32bmipn32"
7692 LD="${LD-ld} -melf64bmip"
7696 case `/usr/bin/file conftest.$ac_objext` in
7712 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7713 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7714 # Find out which ABI we are using.
7715 echo 'int i;' > conftest.$ac_ext
7716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7717 (eval $ac_compile) 2>&5
7719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720 test $ac_status = 0; }; then
7721 case `/usr/bin/file conftest.o` in
7724 x86_64-*kfreebsd*-gnu)
7725 LD="${LD-ld} -m elf_i386_fbsd"
7728 case `/usr/bin/file conftest.o` in
7730 LD="${LD-ld} -m elf32_x86_64"
7733 LD="${LD-ld} -m elf_i386"
7737 ppc64-*linux*|powerpc64-*linux*)
7738 LD="${LD-ld} -m elf32ppclinux"
7741 LD="${LD-ld} -m elf_s390"
7744 LD="${LD-ld} -m elf32_sparc"
7750 x86_64-*kfreebsd*-gnu)
7751 LD="${LD-ld} -m elf_x86_64_fbsd"
7754 LD="${LD-ld} -m elf_x86_64"
7756 ppc*-*linux*|powerpc*-*linux*)
7757 LD="${LD-ld} -m elf64ppc"
7759 s390*-*linux*|s390*-*tpf*)
7760 LD="${LD-ld} -m elf64_s390"
7763 LD="${LD-ld} -m elf64_sparc"
7773 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7774 SAVE_CFLAGS="$CFLAGS"
7775 CFLAGS="$CFLAGS -belf"
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7777 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7778 if ${lt_cv_cc_needs_belf+:} false; then :
7779 $as_echo_n "(cached) " >&6
7782 ac_cpp='$CPP $CPPFLAGS'
7783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7798 if ac_fn_c_try_link "$LINENO"; then :
7799 lt_cv_cc_needs_belf=yes
7801 lt_cv_cc_needs_belf=no
7803 rm -f core conftest.err conftest.$ac_objext \
7804 conftest$ac_exeext conftest.$ac_ext
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7813 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7814 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7815 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7816 CFLAGS="$SAVE_CFLAGS"
7820 # Find out which ABI we are using.
7821 echo 'int i;' > conftest.$ac_ext
7822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7823 (eval $ac_compile) 2>&5
7825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826 test $ac_status = 0; }; then
7827 case `/usr/bin/file conftest.o` in
7829 case $lt_cv_prog_gnu_ld in
7833 LD="${LD-ld} -m elf_x86_64"
7836 LD="${LD-ld} -m elf64_sparc"
7839 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7840 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7845 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7857 need_locks="$enable_libtool_lock"
7859 if test -n "$ac_tool_prefix"; then
7860 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7861 set dummy ${ac_tool_prefix}mt; ac_word=$2
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863 $as_echo_n "checking for $ac_word... " >&6; }
7864 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7865 $as_echo_n "(cached) " >&6
7867 if test -n "$MANIFEST_TOOL"; then
7868 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7888 if test -n "$MANIFEST_TOOL"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7890 $as_echo "$MANIFEST_TOOL" >&6; }
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7898 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7899 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7900 # Extract the first word of "mt", so it can be a program name with args.
7901 set dummy mt; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7905 $as_echo_n "(cached) " >&6
7907 if test -n "$ac_ct_MANIFEST_TOOL"; then
7908 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7917 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7928 if test -n "$ac_ct_MANIFEST_TOOL"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7930 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7936 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7939 case $cross_compiling:$ac_tool_warned in
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7943 ac_tool_warned=yes ;;
7945 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7948 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7951 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7953 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7954 if ${lt_cv_path_mainfest_tool+:} false; then :
7955 $as_echo_n "(cached) " >&6
7957 lt_cv_path_mainfest_tool=no
7958 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7959 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7960 cat conftest.err >&5
7961 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7962 lt_cv_path_mainfest_tool=yes
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7967 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7968 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7978 rhapsody* | darwin*)
7979 if test -n "$ac_tool_prefix"; then
7980 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7981 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7985 $as_echo_n "(cached) " >&6
7987 if test -n "$DSYMUTIL"; then
7988 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8008 if test -n "$DSYMUTIL"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8010 $as_echo "$DSYMUTIL" >&6; }
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8018 if test -z "$ac_cv_prog_DSYMUTIL"; then
8019 ac_ct_DSYMUTIL=$DSYMUTIL
8020 # Extract the first word of "dsymutil", so it can be a program name with args.
8021 set dummy dsymutil; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8025 $as_echo_n "(cached) " >&6
8027 if test -n "$ac_ct_DSYMUTIL"; then
8028 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8037 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8048 if test -n "$ac_ct_DSYMUTIL"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8050 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8056 if test "x$ac_ct_DSYMUTIL" = x; then
8059 case $cross_compiling:$ac_tool_warned in
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063 ac_tool_warned=yes ;;
8065 DSYMUTIL=$ac_ct_DSYMUTIL
8068 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8071 if test -n "$ac_tool_prefix"; then
8072 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8073 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if ${ac_cv_prog_NMEDIT+:} false; then :
8077 $as_echo_n "(cached) " >&6
8079 if test -n "$NMEDIT"; then
8080 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099 NMEDIT=$ac_cv_prog_NMEDIT
8100 if test -n "$NMEDIT"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8102 $as_echo "$NMEDIT" >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8110 if test -z "$ac_cv_prog_NMEDIT"; then
8111 ac_ct_NMEDIT=$NMEDIT
8112 # Extract the first word of "nmedit", so it can be a program name with args.
8113 set dummy nmedit; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8117 $as_echo_n "(cached) " >&6
8119 if test -n "$ac_ct_NMEDIT"; then
8120 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8129 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8140 if test -n "$ac_ct_NMEDIT"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8142 $as_echo "$ac_ct_NMEDIT" >&6; }
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8148 if test "x$ac_ct_NMEDIT" = x; then
8151 case $cross_compiling:$ac_tool_warned in
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8155 ac_tool_warned=yes ;;
8157 NMEDIT=$ac_ct_NMEDIT
8160 NMEDIT="$ac_cv_prog_NMEDIT"
8163 if test -n "$ac_tool_prefix"; then
8164 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8165 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if ${ac_cv_prog_LIPO+:} false; then :
8169 $as_echo_n "(cached) " >&6
8171 if test -n "$LIPO"; then
8172 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 test -z "$as_dir" && as_dir=.
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8181 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 LIPO=$ac_cv_prog_LIPO
8192 if test -n "$LIPO"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8194 $as_echo "$LIPO" >&6; }
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8202 if test -z "$ac_cv_prog_LIPO"; then
8204 # Extract the first word of "lipo", so it can be a program name with args.
8205 set dummy lipo; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8209 $as_echo_n "(cached) " >&6
8211 if test -n "$ac_ct_LIPO"; then
8212 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8221 ac_cv_prog_ac_ct_LIPO="lipo"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8232 if test -n "$ac_ct_LIPO"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8234 $as_echo "$ac_ct_LIPO" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8240 if test "x$ac_ct_LIPO" = x; then
8243 case $cross_compiling:$ac_tool_warned in
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8247 ac_tool_warned=yes ;;
8252 LIPO="$ac_cv_prog_LIPO"
8255 if test -n "$ac_tool_prefix"; then
8256 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8257 set dummy ${ac_tool_prefix}otool; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if ${ac_cv_prog_OTOOL+:} false; then :
8261 $as_echo_n "(cached) " >&6
8263 if test -n "$OTOOL"; then
8264 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8273 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 OTOOL=$ac_cv_prog_OTOOL
8284 if test -n "$OTOOL"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8286 $as_echo "$OTOOL" >&6; }
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8294 if test -z "$ac_cv_prog_OTOOL"; then
8296 # Extract the first word of "otool", so it can be a program name with args.
8297 set dummy otool; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8301 $as_echo_n "(cached) " >&6
8303 if test -n "$ac_ct_OTOOL"; then
8304 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8313 ac_cv_prog_ac_ct_OTOOL="otool"
8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8324 if test -n "$ac_ct_OTOOL"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8326 $as_echo "$ac_ct_OTOOL" >&6; }
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8332 if test "x$ac_ct_OTOOL" = x; then
8335 case $cross_compiling:$ac_tool_warned in
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8339 ac_tool_warned=yes ;;
8344 OTOOL="$ac_cv_prog_OTOOL"
8347 if test -n "$ac_tool_prefix"; then
8348 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8349 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if ${ac_cv_prog_OTOOL64+:} false; then :
8353 $as_echo_n "(cached) " >&6
8355 if test -n "$OTOOL64"; then
8356 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8365 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 OTOOL64=$ac_cv_prog_OTOOL64
8376 if test -n "$OTOOL64"; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8378 $as_echo "$OTOOL64" >&6; }
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8386 if test -z "$ac_cv_prog_OTOOL64"; then
8387 ac_ct_OTOOL64=$OTOOL64
8388 # Extract the first word of "otool64", so it can be a program name with args.
8389 set dummy otool64; ac_word=$2
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391 $as_echo_n "checking for $ac_word... " >&6; }
8392 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8393 $as_echo_n "(cached) " >&6
8395 if test -n "$ac_ct_OTOOL64"; then
8396 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8405 ac_cv_prog_ac_ct_OTOOL64="otool64"
8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8416 if test -n "$ac_ct_OTOOL64"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8418 $as_echo "$ac_ct_OTOOL64" >&6; }
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8424 if test "x$ac_ct_OTOOL64" = x; then
8427 case $cross_compiling:$ac_tool_warned in
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8431 ac_tool_warned=yes ;;
8433 OTOOL64=$ac_ct_OTOOL64
8436 OTOOL64="$ac_cv_prog_OTOOL64"
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8466 $as_echo_n "checking for -single_module linker flag... " >&6; }
8467 if ${lt_cv_apple_cc_single_mod+:} false; then :
8468 $as_echo_n "(cached) " >&6
8470 lt_cv_apple_cc_single_mod=no
8471 if test -z "${LT_MULTI_MODULE}"; then
8472 # By default we will add the -single_module flag. You can override
8473 # by either setting the environment variable LT_MULTI_MODULE
8474 # non-empty at configure time, or by adding -multi_module to the
8476 rm -rf libconftest.dylib*
8477 echo "int foo(void){return 1;}" > conftest.c
8478 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8479 -dynamiclib -Wl,-single_module conftest.c" >&5
8480 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8481 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8483 # If there is a non-empty error log, and "single_module"
8484 # appears in it, assume the flag caused a linker warning
8485 if test -s conftest.err && $GREP single_module conftest.err; then
8486 cat conftest.err >&5
8487 # Otherwise, if the output was created with a 0 exit code from
8488 # the compiler, it worked.
8489 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8490 lt_cv_apple_cc_single_mod=yes
8492 cat conftest.err >&5
8494 rm -rf libconftest.dylib*
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8499 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8502 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8503 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8504 $as_echo_n "(cached) " >&6
8506 lt_cv_ld_exported_symbols_list=no
8507 save_LDFLAGS=$LDFLAGS
8508 echo "_main" > conftest.sym
8509 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8521 if ac_fn_c_try_link "$LINENO"; then :
8522 lt_cv_ld_exported_symbols_list=yes
8524 lt_cv_ld_exported_symbols_list=no
8526 rm -f core conftest.err conftest.$ac_objext \
8527 conftest$ac_exeext conftest.$ac_ext
8528 LDFLAGS="$save_LDFLAGS"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8532 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8535 $as_echo_n "checking for -force_load linker flag... " >&6; }
8536 if ${lt_cv_ld_force_load+:} false; then :
8537 $as_echo_n "(cached) " >&6
8539 lt_cv_ld_force_load=no
8540 cat > conftest.c << _LT_EOF
8541 int forced_loaded() { return 2;}
8543 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8544 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8545 echo "$AR cru libconftest.a conftest.o" >&5
8546 $AR cru libconftest.a conftest.o 2>&5
8547 echo "$RANLIB libconftest.a" >&5
8548 $RANLIB libconftest.a 2>&5
8549 cat > conftest.c << _LT_EOF
8550 int main() { return 0;}
8552 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8553 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8555 if test -s conftest.err && $GREP force_load conftest.err; then
8556 cat conftest.err >&5
8557 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8558 lt_cv_ld_force_load=yes
8560 cat conftest.err >&5
8562 rm -f conftest.err libconftest.a conftest conftest.c
8563 rm -rf conftest.dSYM
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8567 $as_echo "$lt_cv_ld_force_load" >&6; }
8569 rhapsody* | darwin1.[012])
8570 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8572 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8573 darwin*) # darwin 5.x on
8574 # if running on 10.5 or later, the deployment target defaults
8575 # to the OS version, if on x86, and 10.4, the deployment
8576 # target defaults to 10.4. Don't you love it?
8577 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8578 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8579 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8581 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8583 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8587 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8588 _lt_dar_single_mod='$single_module'
8590 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8591 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8593 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8595 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8596 _lt_dsymutil='~$DSYMUTIL $lib || :'
8603 for ac_header in dlfcn.h
8605 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8607 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8608 cat >>confdefs.h <<_ACEOF
8609 #define HAVE_DLFCN_H 1
8621 # Check whether --enable-static was given.
8622 if test "${enable_static+set}" = set; then :
8623 enableval=$enable_static; p=${PACKAGE-default}
8625 yes) enable_static=yes ;;
8626 no) enable_static=no ;;
8629 # Look at the argument we got. We use all the common list separators.
8630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8631 for pkg in $enableval; do
8633 if test "X$pkg" = "X$p"; then
8659 # Check whether --enable-shared was given.
8660 if test "${enable_shared+set}" = set; then :
8661 enableval=$enable_shared; p=${PACKAGE-default}
8663 yes) enable_shared=yes ;;
8664 no) enable_shared=no ;;
8667 # Look at the argument we got. We use all the common list separators.
8668 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8669 for pkg in $enableval; do
8671 if test "X$pkg" = "X$p"; then
8692 # Check whether --with-pic was given.
8693 if test "${with_pic+set}" = set; then :
8694 withval=$with_pic; lt_p=${PACKAGE-default}
8696 yes|no) pic_mode=$withval ;;
8699 # Look at the argument we got. We use all the common list separators.
8700 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8701 for lt_pkg in $withval; do
8703 if test "X$lt_pkg" = "X$lt_p"; then
8715 test -z "$pic_mode" && pic_mode=default
8723 # Check whether --enable-fast-install was given.
8724 if test "${enable_fast_install+set}" = set; then :
8725 enableval=$enable_fast_install; p=${PACKAGE-default}
8727 yes) enable_fast_install=yes ;;
8728 no) enable_fast_install=no ;;
8730 enable_fast_install=no
8731 # Look at the argument we got. We use all the common list separators.
8732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8733 for pkg in $enableval; do
8735 if test "X$pkg" = "X$p"; then
8736 enable_fast_install=yes
8743 enable_fast_install=yes
8756 # This can be used to rebuild libtool when needed
8757 LIBTOOL_DEPS="$ltmain"
8759 # Always use our own libtool.
8760 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8791 test -z "$LN_S" && LN_S="ln -s"
8806 if test -n "${ZSH_VERSION+set}" ; then
8807 setopt NO_GLOB_SUBST
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8811 $as_echo_n "checking for objdir... " >&6; }
8812 if ${lt_cv_objdir+:} false; then :
8813 $as_echo_n "(cached) " >&6
8815 rm -f .libs 2>/dev/null
8816 mkdir .libs 2>/dev/null
8817 if test -d .libs; then
8820 # MS-DOS does not allow filenames that begin with a dot.
8823 rmdir .libs 2>/dev/null
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8826 $as_echo "$lt_cv_objdir" >&6; }
8827 objdir=$lt_cv_objdir
8833 cat >>confdefs.h <<_ACEOF
8834 #define LT_OBJDIR "$lt_cv_objdir/"
8842 # AIX sometimes has problems with the GCC collect2 program. For some
8843 # reason, if we set the COLLECT_NAMES environment variable, the problems
8844 # vanish in a puff of smoke.
8845 if test "X${COLLECT_NAMES+set}" != Xset; then
8847 export COLLECT_NAMES
8854 can_build_shared=yes
8856 # All known linkers require a `.a' archive for static linking (except MSVC,
8857 # which needs '.lib').
8860 with_gnu_ld="$lt_cv_prog_gnu_ld"
8863 old_CFLAGS="$CFLAGS"
8865 # Set sane defaults for various variables
8866 test -z "$CC" && CC=cc
8867 test -z "$LTCC" && LTCC=$CC
8868 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8869 test -z "$LD" && LD=ld
8870 test -z "$ac_objext" && ac_objext=o
8872 for cc_temp in $compiler""; do
8874 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8875 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8880 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8883 # Only perform the check for file, if the check method requires it
8884 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8885 case $deplibs_check_method in
8887 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8889 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8890 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8891 $as_echo_n "(cached) " >&6
8895 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8898 lt_save_MAGIC_CMD="$MAGIC_CMD"
8899 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8900 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8901 for ac_dir in $ac_dummy; do
8903 test -z "$ac_dir" && ac_dir=.
8904 if test -f $ac_dir/${ac_tool_prefix}file; then
8905 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8906 if test -n "$file_magic_test_file"; then
8907 case $deplibs_check_method in
8909 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8910 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8911 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8912 $EGREP "$file_magic_regex" > /dev/null; then
8917 *** Warning: the command libtool uses to detect shared libraries,
8918 *** $file_magic_cmd, produces output that libtool cannot recognize.
8919 *** The result is that libtool may fail to recognize shared libraries
8920 *** as such. This will affect the creation of libtool libraries that
8921 *** depend on shared libraries, but programs linked with such libtool
8922 *** libraries will work regardless of this problem. Nevertheless, you
8923 *** may want to report the problem to your system manager and/or to
8924 *** bug-libtool@gnu.org
8934 MAGIC_CMD="$lt_save_MAGIC_CMD"
8939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8940 if test -n "$MAGIC_CMD"; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8942 $as_echo "$MAGIC_CMD" >&6; }
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945 $as_echo "no" >&6; }
8952 if test -z "$lt_cv_path_MAGIC_CMD"; then
8953 if test -n "$ac_tool_prefix"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8955 $as_echo_n "checking for file... " >&6; }
8956 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8957 $as_echo_n "(cached) " >&6
8961 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8964 lt_save_MAGIC_CMD="$MAGIC_CMD"
8965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8966 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8967 for ac_dir in $ac_dummy; do
8969 test -z "$ac_dir" && ac_dir=.
8970 if test -f $ac_dir/file; then
8971 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8972 if test -n "$file_magic_test_file"; then
8973 case $deplibs_check_method in
8975 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8977 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8978 $EGREP "$file_magic_regex" > /dev/null; then
8983 *** Warning: the command libtool uses to detect shared libraries,
8984 *** $file_magic_cmd, produces output that libtool cannot recognize.
8985 *** The result is that libtool may fail to recognize shared libraries
8986 *** as such. This will affect the creation of libtool libraries that
8987 *** depend on shared libraries, but programs linked with such libtool
8988 *** libraries will work regardless of this problem. Nevertheless, you
8989 *** may want to report the problem to your system manager and/or to
8990 *** bug-libtool@gnu.org
9000 MAGIC_CMD="$lt_save_MAGIC_CMD"
9005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9006 if test -n "$MAGIC_CMD"; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9008 $as_echo "$MAGIC_CMD" >&6; }
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011 $as_echo "no" >&6; }
9024 # Use C for the default configuration in the libtool script
9028 ac_cpp='$CPP $CPPFLAGS'
9029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9034 # Source file extension for C test sources.
9037 # Object file extension for compiled C test sources.
9041 # Code to be used in simple compile tests
9042 lt_simple_compile_test_code="int some_variable = 0;"
9044 # Code to be used in simple link tests
9045 lt_simple_link_test_code='int main(){return(0);}'
9053 # If no C compiler was specified, use CC.
9056 # If no C compiler flags were specified, use CFLAGS.
9057 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9059 # Allow CC to be a program name with arguments.
9062 # Save the default compiler, since it gets overwritten when the other
9063 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9064 compiler_DEFAULT=$CC
9066 # save warnings/boilerplate of simple test code
9067 ac_outfile=conftest.$ac_objext
9068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9070 _lt_compiler_boilerplate=`cat conftest.err`
9073 ac_outfile=conftest.$ac_objext
9074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9076 _lt_linker_boilerplate=`cat conftest.err`
9081 ## There is no encapsulation within the following macros, do not change
9082 ## the running order or otherwise move them around unless you know exactly
9083 ## what you are doing...
9084 if test -n "$compiler"; then
9086 lt_prog_compiler_no_builtin_flag=
9088 if test "$GCC" = yes; then
9089 case $cc_basename in
9091 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9093 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9097 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9098 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9099 $as_echo_n "(cached) " >&6
9101 lt_cv_prog_compiler_rtti_exceptions=no
9102 ac_outfile=conftest.$ac_objext
9103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9104 lt_compiler_flag="-fno-rtti -fno-exceptions"
9105 # Insert the option either (1) after the last *FLAGS variable, or
9106 # (2) before a word containing "conftest.", or (3) at the end.
9107 # Note that $ac_compile itself does not contain backslashes and begins
9108 # with a dollar sign (not a hyphen), so the echo should work correctly.
9109 # The option is referenced via a variable to avoid confusing sed.
9110 lt_compile=`echo "$ac_compile" | $SED \
9111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9113 -e 's:$: $lt_compiler_flag:'`
9114 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9115 (eval "$lt_compile" 2>conftest.err)
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 if (exit $ac_status) && test -s "$ac_outfile"; then
9120 # The compiler can only warn and ignore the option if not recognized
9121 # So say no if there are warnings other than the usual output.
9122 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9124 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9125 lt_cv_prog_compiler_rtti_exceptions=yes
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9132 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9134 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9135 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9147 lt_prog_compiler_wl=
9148 lt_prog_compiler_pic=
9149 lt_prog_compiler_static=
9152 if test "$GCC" = yes; then
9153 lt_prog_compiler_wl='-Wl,'
9154 lt_prog_compiler_static='-static'
9158 # All AIX code is PIC.
9159 if test "$host_cpu" = ia64; then
9160 # AIX 5 now supports IA64 processor
9161 lt_prog_compiler_static='-Bstatic'
9168 # see comment about AmigaOS4 .so support
9169 lt_prog_compiler_pic='-fPIC'
9172 # FIXME: we need at least 68020 code to build shared libraries, but
9173 # adding the `-m68020' flag to GCC prevents building anything better,
9175 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9180 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9181 # PIC is the default for these OSes.
9184 mingw* | cygwin* | pw32* | os2* | cegcc*)
9185 # This hack is so that the source file can tell whether it is being
9186 # built for inclusion in a dll (and should export symbols for example).
9187 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9188 # (--disable-auto-import) libraries
9189 lt_prog_compiler_pic='-DDLL_EXPORT'
9192 darwin* | rhapsody*)
9193 # PIC is the default on this platform
9194 # Common symbols not allowed in MH_DYLIB files
9195 lt_prog_compiler_pic='-fno-common'
9199 # PIC is the default for Haiku.
9200 # The "-static" flag exists, but is broken.
9201 lt_prog_compiler_static=
9205 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9206 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9207 # sets the default TLS model and affects inlining.
9213 lt_prog_compiler_pic='-fPIC'
9219 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9220 # Instead, we relocate shared libraries at runtime.
9224 # Just because we use GCC doesn't mean we suddenly get shared libraries
9225 # on systems that don't support them.
9226 lt_prog_compiler_can_build_shared=no
9231 # QNX uses GNU C++, but need to define -shared option too, otherwise
9233 lt_prog_compiler_pic='-fPIC -shared'
9237 if test -d /usr/nec; then
9238 lt_prog_compiler_pic=-Kconform_pic
9243 lt_prog_compiler_pic='-fPIC'
9247 case $cc_basename in
9248 nvcc*) # Cuda Compiler Driver 2.2
9249 lt_prog_compiler_wl='-Xlinker '
9250 if test -n "$lt_prog_compiler_pic"; then
9251 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9256 # PORTME Check for flag to pass linker flags through the system compiler.
9259 lt_prog_compiler_wl='-Wl,'
9260 if test "$host_cpu" = ia64; then
9261 # AIX 5 now supports IA64 processor
9262 lt_prog_compiler_static='-Bstatic'
9264 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9268 mingw* | cygwin* | pw32* | os2* | cegcc*)
9269 # This hack is so that the source file can tell whether it is being
9270 # built for inclusion in a dll (and should export symbols for example).
9271 lt_prog_compiler_pic='-DDLL_EXPORT'
9274 hpux9* | hpux10* | hpux11*)
9275 lt_prog_compiler_wl='-Wl,'
9276 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9283 lt_prog_compiler_pic='+Z'
9286 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9287 lt_prog_compiler_static='${wl}-a ${wl}archive'
9290 irix5* | irix6* | nonstopux*)
9291 lt_prog_compiler_wl='-Wl,'
9292 # PIC (with -KPIC) is the default.
9293 lt_prog_compiler_static='-non_shared'
9296 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9297 case $cc_basename in
9298 # old Intel for x86_64 which still supported -KPIC.
9300 lt_prog_compiler_wl='-Wl,'
9301 lt_prog_compiler_pic='-KPIC'
9302 lt_prog_compiler_static='-static'
9304 # icc used to be incompatible with GCC.
9305 # ICC 10 doesn't accept -KPIC any more.
9307 lt_prog_compiler_wl='-Wl,'
9308 lt_prog_compiler_pic='-fPIC'
9309 lt_prog_compiler_static='-static'
9311 # Lahey Fortran 8.1.
9313 lt_prog_compiler_wl='-Wl,'
9314 lt_prog_compiler_pic='--shared'
9315 lt_prog_compiler_static='--static'
9318 # NAG Fortran compiler
9319 lt_prog_compiler_wl='-Wl,-Wl,,'
9320 lt_prog_compiler_pic='-PIC'
9321 lt_prog_compiler_static='-Bstatic'
9323 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9324 # Portland Group compilers (*not* the Pentium gcc compiler,
9325 # which looks to be a dead project)
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='-fpic'
9328 lt_prog_compiler_static='-Bstatic'
9331 lt_prog_compiler_wl='-Wl,'
9332 # All Alpha code is PIC.
9333 lt_prog_compiler_static='-non_shared'
9335 xl* | bgxl* | bgf* | mpixl*)
9336 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9337 lt_prog_compiler_wl='-Wl,'
9338 lt_prog_compiler_pic='-qpic'
9339 lt_prog_compiler_static='-qstaticlink'
9342 case `$CC -V 2>&1 | sed 5q` in
9343 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9344 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9345 lt_prog_compiler_pic='-KPIC'
9346 lt_prog_compiler_static='-Bstatic'
9347 lt_prog_compiler_wl=''
9349 *Sun\ F* | *Sun*Fortran*)
9350 lt_prog_compiler_pic='-KPIC'
9351 lt_prog_compiler_static='-Bstatic'
9352 lt_prog_compiler_wl='-Qoption ld '
9356 lt_prog_compiler_pic='-KPIC'
9357 lt_prog_compiler_static='-Bstatic'
9358 lt_prog_compiler_wl='-Wl,'
9360 *Intel*\ [CF]*Compiler*)
9361 lt_prog_compiler_wl='-Wl,'
9362 lt_prog_compiler_pic='-fPIC'
9363 lt_prog_compiler_static='-static'
9366 lt_prog_compiler_wl='-Wl,'
9367 lt_prog_compiler_pic='-fpic'
9368 lt_prog_compiler_static='-Bstatic'
9376 lt_prog_compiler_pic='-KPIC'
9377 lt_prog_compiler_static='-Bstatic'
9381 # QNX uses GNU C++, but need to define -shared option too, otherwise
9383 lt_prog_compiler_pic='-fPIC -shared'
9386 osf3* | osf4* | osf5*)
9387 lt_prog_compiler_wl='-Wl,'
9388 # All OSF/1 code is PIC.
9389 lt_prog_compiler_static='-non_shared'
9393 lt_prog_compiler_static='-non_shared'
9397 lt_prog_compiler_pic='-KPIC'
9398 lt_prog_compiler_static='-Bstatic'
9399 case $cc_basename in
9400 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9401 lt_prog_compiler_wl='-Qoption ld ';;
9403 lt_prog_compiler_wl='-Wl,';;
9408 lt_prog_compiler_wl='-Qoption ld '
9409 lt_prog_compiler_pic='-PIC'
9410 lt_prog_compiler_static='-Bstatic'
9413 sysv4 | sysv4.2uw2* | sysv4.3*)
9414 lt_prog_compiler_wl='-Wl,'
9415 lt_prog_compiler_pic='-KPIC'
9416 lt_prog_compiler_static='-Bstatic'
9420 if test -d /usr/nec ;then
9421 lt_prog_compiler_pic='-Kconform_pic'
9422 lt_prog_compiler_static='-Bstatic'
9426 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9427 lt_prog_compiler_wl='-Wl,'
9428 lt_prog_compiler_pic='-KPIC'
9429 lt_prog_compiler_static='-Bstatic'
9433 lt_prog_compiler_wl='-Wl,'
9434 lt_prog_compiler_can_build_shared=no
9438 lt_prog_compiler_pic='-pic'
9439 lt_prog_compiler_static='-Bstatic'
9443 lt_prog_compiler_can_build_shared=no
9449 # For platforms which do not support PIC, -DPIC is meaningless:
9451 lt_prog_compiler_pic=
9454 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9459 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9460 if ${lt_cv_prog_compiler_pic+:} false; then :
9461 $as_echo_n "(cached) " >&6
9463 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9466 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9467 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9470 # Check to make sure the PIC flag actually works.
9472 if test -n "$lt_prog_compiler_pic"; then
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9474 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9475 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9476 $as_echo_n "(cached) " >&6
9478 lt_cv_prog_compiler_pic_works=no
9479 ac_outfile=conftest.$ac_objext
9480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9481 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9482 # Insert the option either (1) after the last *FLAGS variable, or
9483 # (2) before a word containing "conftest.", or (3) at the end.
9484 # Note that $ac_compile itself does not contain backslashes and begins
9485 # with a dollar sign (not a hyphen), so the echo should work correctly.
9486 # The option is referenced via a variable to avoid confusing sed.
9487 lt_compile=`echo "$ac_compile" | $SED \
9488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9490 -e 's:$: $lt_compiler_flag:'`
9491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9492 (eval "$lt_compile" 2>conftest.err)
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 if (exit $ac_status) && test -s "$ac_outfile"; then
9497 # The compiler can only warn and ignore the option if not recognized
9498 # So say no if there are warnings other than the usual output.
9499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9502 lt_cv_prog_compiler_pic_works=yes
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9509 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9511 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9512 case $lt_prog_compiler_pic in
9514 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9517 lt_prog_compiler_pic=
9518 lt_prog_compiler_can_build_shared=no
9534 # Check to make sure the static flag actually works.
9536 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9538 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9539 if ${lt_cv_prog_compiler_static_works+:} false; then :
9540 $as_echo_n "(cached) " >&6
9542 lt_cv_prog_compiler_static_works=no
9543 save_LDFLAGS="$LDFLAGS"
9544 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9545 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9546 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9547 # The linker can only warn and ignore the option if not recognized
9548 # So say no if there are warnings
9549 if test -s conftest.err; then
9550 # Append any errors to the config.log.
9551 cat conftest.err 1>&5
9552 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9554 if diff conftest.exp conftest.er2 >/dev/null; then
9555 lt_cv_prog_compiler_static_works=yes
9558 lt_cv_prog_compiler_static_works=yes
9562 LDFLAGS="$save_LDFLAGS"
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9566 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9568 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9571 lt_prog_compiler_static=
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9581 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9582 if ${lt_cv_prog_compiler_c_o+:} false; then :
9583 $as_echo_n "(cached) " >&6
9585 lt_cv_prog_compiler_c_o=no
9586 $RM -r conftest 2>/dev/null
9590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9592 lt_compiler_flag="-o out/conftest2.$ac_objext"
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 lt_compile=`echo "$ac_compile" | $SED \
9598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9600 -e 's:$: $lt_compiler_flag:'`
9601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9602 (eval "$lt_compile" 2>out/conftest.err)
9604 cat out/conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9608 # The compiler can only warn and ignore the option if not recognized
9609 # So say no if there are warnings
9610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9613 lt_cv_prog_compiler_c_o=yes
9618 # SGI C++ compiler will create directory out/ii_files/ for
9619 # template instantiation
9620 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9621 $RM out/* && rmdir out
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9628 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9636 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9637 if ${lt_cv_prog_compiler_c_o+:} false; then :
9638 $as_echo_n "(cached) " >&6
9640 lt_cv_prog_compiler_c_o=no
9641 $RM -r conftest 2>/dev/null
9645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9647 lt_compiler_flag="-o out/conftest2.$ac_objext"
9648 # Insert the option either (1) after the last *FLAGS variable, or
9649 # (2) before a word containing "conftest.", or (3) at the end.
9650 # Note that $ac_compile itself does not contain backslashes and begins
9651 # with a dollar sign (not a hyphen), so the echo should work correctly.
9652 lt_compile=`echo "$ac_compile" | $SED \
9653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9655 -e 's:$: $lt_compiler_flag:'`
9656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9657 (eval "$lt_compile" 2>out/conftest.err)
9659 cat out/conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9663 # The compiler can only warn and ignore the option if not recognized
9664 # So say no if there are warnings
9665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9666 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9667 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9668 lt_cv_prog_compiler_c_o=yes
9673 # SGI C++ compiler will create directory out/ii_files/ for
9674 # template instantiation
9675 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9676 $RM out/* && rmdir out
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9683 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9688 hard_links="nottested"
9689 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9690 # do not overwrite the value of need_locks provided by the user
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9692 $as_echo_n "checking if we can lock with hard links... " >&6; }
9695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9697 ln conftest.a conftest.b 2>&5 || hard_links=no
9698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9700 $as_echo "$hard_links" >&6; }
9701 if test "$hard_links" = no; then
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9703 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9716 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9719 allow_undefined_flag=
9720 always_export_symbols=no
9722 archive_expsym_cmds=
9723 compiler_needs_object=no
9724 enable_shared_with_static_runtimes=no
9725 export_dynamic_flag_spec=
9726 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9727 hardcode_automatic=no
9729 hardcode_direct_absolute=no
9730 hardcode_libdir_flag_spec=
9731 hardcode_libdir_separator=
9733 hardcode_shlibpath_var=unsupported
9735 link_all_deplibs=unknown
9738 old_archive_from_new_cmds=
9739 old_archive_from_expsyms_cmds=
9740 thread_safe_flag_spec=
9741 whole_archive_flag_spec=
9742 # include_expsyms should be a list of space-separated symbols to be *always*
9743 # included in the symbol list
9745 # exclude_expsyms can be an extended regexp of symbols to exclude
9746 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9747 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9748 # as well as any symbol that contains `d'.
9749 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9750 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9751 # platforms (ab)use it in PIC code, but their linkers get confused if
9752 # the symbol is explicitly referenced. Since portable code cannot
9753 # rely on this symbol name, it's probably fine to never include it in
9754 # preloaded symbol tables.
9755 # Exclude shared library initialization/finalization symbols.
9756 extract_expsyms_cmds=
9759 cygwin* | mingw* | pw32* | cegcc*)
9760 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9761 # When not using gcc, we currently assume that we are using
9762 # Microsoft Visual C++.
9763 if test "$GCC" != yes; then
9768 # we just hope/assume this is gcc and not c89 (= MSVC++)
9774 linux* | k*bsd*-gnu | gnu*)
9781 # On some targets, GNU ld is compatible enough with the native linker
9782 # that we're better off using the native interface for both.
9783 lt_use_gnu_ld_interface=no
9784 if test "$with_gnu_ld" = yes; then
9787 # The AIX port of GNU ld has always aspired to compatibility
9788 # with the native linker. However, as the warning in the GNU ld
9789 # block says, versions before 2.19.5* couldn't really create working
9790 # shared libraries, regardless of the interface used.
9791 case `$LD -v 2>&1` in
9792 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9793 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9794 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9796 lt_use_gnu_ld_interface=yes
9801 lt_use_gnu_ld_interface=yes
9806 if test "$lt_use_gnu_ld_interface" = yes; then
9807 # If archive_cmds runs LD, not CC, wlarc should be empty
9810 # Set some defaults for GNU ld with shared library support. These
9811 # are reset later if shared libraries are not supported. Putting them
9812 # here allows them to be overridden if necessary.
9813 runpath_var=LD_RUN_PATH
9814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9815 export_dynamic_flag_spec='${wl}--export-dynamic'
9816 # ancient GNU ld didn't support --whole-archive et. al.
9817 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9818 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9820 whole_archive_flag_spec=
9822 supports_anon_versioning=no
9823 case `$LD -v 2>&1` in
9824 *GNU\ gold*) supports_anon_versioning=yes ;;
9825 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9826 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9827 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9828 *\ 2.11.*) ;; # other 2.11 versions
9829 *) supports_anon_versioning=yes ;;
9832 # See if GNU ld supports shared libraries.
9835 # On AIX/PPC, the GNU linker is very broken
9836 if test "$host_cpu" != ia64; then
9840 *** Warning: the GNU linker, at least up to release 2.19, is reported
9841 *** to be unable to reliably create shared libraries on AIX.
9842 *** Therefore, libtool is disabling shared libraries support. If you
9843 *** really care for shared libraries, you may want to install binutils
9844 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9845 *** You will then need to restart the configuration process.
9854 # see comment about AmigaOS4 .so support
9855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9856 archive_expsym_cmds=''
9859 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)'
9860 hardcode_libdir_flag_spec='-L$libdir'
9861 hardcode_minus_L=yes
9867 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9868 allow_undefined_flag=unsupported
9869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9870 # support --undefined. This deserves some investigation. FIXME
9871 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9877 cygwin* | mingw* | pw32* | cegcc*)
9878 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9879 # as there is no search path for DLLs.
9880 hardcode_libdir_flag_spec='-L$libdir'
9881 export_dynamic_flag_spec='${wl}--export-all-symbols'
9882 allow_undefined_flag=unsupported
9883 always_export_symbols=no
9884 enable_shared_with_static_runtimes=yes
9885 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'
9886 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9888 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9890 # If the export-symbols file already is a .def file (1st line
9891 # is EXPORTS), use it as is; otherwise, prepend...
9892 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9893 cp $export_symbols $output_objdir/$soname.def;
9895 echo EXPORTS > $output_objdir/$soname.def;
9896 cat $export_symbols >> $output_objdir/$soname.def;
9898 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9906 link_all_deplibs=yes
9911 hardcode_shlibpath_var=no
9912 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9913 export_dynamic_flag_spec='${wl}-E'
9914 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9915 # Instead, shared libraries are loaded at an image base (0x10000000 by
9916 # default) and relocated if they conflict, which is a slow very memory
9917 # consuming and fragmenting process. To avoid this, we pick a random,
9918 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9919 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9920 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9921 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'
9924 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9926 if test "$host_os" = linux-dietlibc; then
9927 case $cc_basename in
9928 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9931 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9932 && test "$tmp_diet" = no
9934 tmp_addflag=' $pic_flag'
9935 tmp_sharedflag='-shared'
9936 case $cc_basename,$host_cpu in
9937 pgcc*) # Portland Group C compiler
9938 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'
9939 tmp_addflag=' $pic_flag'
9941 pgf77* | pgf90* | pgf95* | pgfortran*)
9942 # Portland Group f77 and f90 compilers
9943 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'
9944 tmp_addflag=' $pic_flag -Mnomain' ;;
9945 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9946 tmp_addflag=' -i_dynamic' ;;
9947 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9948 tmp_addflag=' -i_dynamic -nofor_main' ;;
9949 ifc* | ifort*) # Intel Fortran compiler
9950 tmp_addflag=' -nofor_main' ;;
9951 lf95*) # Lahey Fortran 8.1
9952 whole_archive_flag_spec=
9953 tmp_sharedflag='--shared' ;;
9954 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9955 tmp_sharedflag='-qmkshrobj'
9957 nvcc*) # Cuda Compiler Driver 2.2
9958 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'
9959 compiler_needs_object=yes
9962 case `$CC -V 2>&1 | sed 5q` in
9963 *Sun\ C*) # Sun C 5.9
9964 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'
9965 compiler_needs_object=yes
9966 tmp_sharedflag='-G' ;;
9967 *Sun\ F*) # Sun Fortran 8.3
9968 tmp_sharedflag='-G' ;;
9970 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9972 if test "x$supports_anon_versioning" = xyes; then
9973 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9974 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9975 echo "local: *; };" >> $output_objdir/$libname.ver~
9976 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9979 case $cc_basename in
9980 xlf* | bgf* | bgxlf* | mpixlf*)
9981 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9982 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9984 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9985 if test "x$supports_anon_versioning" = xyes; then
9986 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9988 echo "local: *; };" >> $output_objdir/$libname.ver~
9989 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9998 netbsd* | netbsdelf*-gnu)
9999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10000 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10003 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10004 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10009 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10013 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10014 *** create shared libraries on Solaris systems. Therefore, libtool
10015 *** is disabling shared libraries support. We urge you to upgrade GNU
10016 *** binutils to release 2.9.1 or newer. Another option is to modify
10017 *** your PATH or compiler configuration so that the native linker is
10018 *** used, and then restart.
10021 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10022 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10023 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10029 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10030 case `$LD -v 2>&1` in
10031 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10035 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10036 *** reliably create shared libraries on SCO systems. Therefore, libtool
10037 *** is disabling shared libraries support. We urge you to upgrade GNU
10038 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10039 *** your PATH or compiler configuration so that the native linker is
10040 *** used, and then restart.
10045 # For security reasons, it is highly recommended that you always
10046 # use absolute paths for naming shared libraries, and exclude the
10047 # DT_RUNPATH tag from executables and libraries. But doing so
10048 # requires that you compile everything twice, which is a pain.
10049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10061 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10063 hardcode_direct=yes
10064 hardcode_shlibpath_var=no
10068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10069 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10070 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10077 if test "$ld_shlibs" = no; then
10079 hardcode_libdir_flag_spec=
10080 export_dynamic_flag_spec=
10081 whole_archive_flag_spec=
10084 # PORTME fill in a description of your system's linker (not GNU ld)
10087 allow_undefined_flag=unsupported
10088 always_export_symbols=yes
10089 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'
10090 # Note: this linker hardcodes the directories in LIBPATH if there
10091 # are no directories specified by -L.
10092 hardcode_minus_L=yes
10093 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10094 # Neither direct hardcoding nor static linking is supported with a
10096 hardcode_direct=unsupported
10101 if test "$host_cpu" = ia64; then
10102 # On IA64, the linker does run time linking by default, so we don't
10103 # have to do anything special.
10104 aix_use_runtimelinking=no
10105 exp_sym_flag='-Bexport'
10108 # If we're using GNU nm, then we don't want the "-C" option.
10109 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10110 # Also, AIX nm treats weak defined symbols like other global
10111 # defined symbols, whereas GNU nm marks them as "W".
10112 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10113 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'
10115 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'
10117 aix_use_runtimelinking=no
10119 # Test if we are trying to use run time linking or normal
10120 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10121 # need to do runtime linking.
10122 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10123 for ld_flag in $LDFLAGS; do
10124 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10125 aix_use_runtimelinking=yes
10132 exp_sym_flag='-bexport'
10133 no_entry_flag='-bnoentry'
10136 # When large executables or shared objects are built, AIX ld can
10137 # have problems creating the table of contents. If linking a library
10138 # or program results in "error TOC overflow" add -mminimal-toc to
10139 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10140 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10143 hardcode_direct=yes
10144 hardcode_direct_absolute=yes
10145 hardcode_libdir_separator=':'
10146 link_all_deplibs=yes
10147 file_list_spec='${wl}-f,'
10149 if test "$GCC" = yes; then
10150 case $host_os in aix4.[012]|aix4.[012].*)
10151 # We only want to do this on AIX 4.2 and lower, the check
10152 # below for broken collect2 doesn't work under 4.3+
10153 collect2name=`${CC} -print-prog-name=collect2`
10154 if test -f "$collect2name" &&
10155 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10157 # We have reworked collect2
10160 # We have old collect2
10161 hardcode_direct=unsupported
10162 # It fails to find uninstalled libraries when the uninstalled
10163 # path is not listed in the libpath. Setting hardcode_minus_L
10164 # to unsupported forces relinking
10165 hardcode_minus_L=yes
10166 hardcode_libdir_flag_spec='-L$libdir'
10167 hardcode_libdir_separator=
10171 shared_flag='-shared'
10172 if test "$aix_use_runtimelinking" = yes; then
10173 shared_flag="$shared_flag "'${wl}-G'
10175 link_all_deplibs=no
10178 if test "$host_cpu" = ia64; then
10179 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10180 # chokes on -Wl,-G. The following line is correct:
10183 if test "$aix_use_runtimelinking" = yes; then
10184 shared_flag='${wl}-G'
10186 shared_flag='${wl}-bM:SRE'
10191 export_dynamic_flag_spec='${wl}-bexpall'
10192 # It seems that -bexpall does not export symbols beginning with
10193 # underscore (_), so it is better to generate a list of symbols to export.
10194 always_export_symbols=yes
10195 if test "$aix_use_runtimelinking" = yes; then
10196 # Warning - without using the other runtime loading flags (-brtl),
10197 # -berok will link without error, but may produce a broken library.
10198 allow_undefined_flag='-berok'
10199 # Determine the default libpath from the value encoded in an
10200 # empty executable.
10201 if test "${lt_cv_aix_libpath+set}" = set; then
10202 aix_libpath=$lt_cv_aix_libpath
10204 if ${lt_cv_aix_libpath_+:} false; then :
10205 $as_echo_n "(cached) " >&6
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10218 if ac_fn_c_try_link "$LINENO"; then :
10220 lt_aix_libpath_sed='
10221 /Import File Strings/,/^$/ {
10223 s/^0 *\([^ ]*\) *$/\1/
10227 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10228 # Check for a 64-bit object if we didn't find anything.
10229 if test -z "$lt_cv_aix_libpath_"; then
10230 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10233 rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235 if test -z "$lt_cv_aix_libpath_"; then
10236 lt_cv_aix_libpath_="/usr/lib:/lib"
10241 aix_libpath=$lt_cv_aix_libpath_
10244 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10245 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"
10247 if test "$host_cpu" = ia64; then
10248 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10249 allow_undefined_flag="-z nodefs"
10250 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"
10252 # Determine the default libpath from the value encoded in an
10253 # empty executable.
10254 if test "${lt_cv_aix_libpath+set}" = set; then
10255 aix_libpath=$lt_cv_aix_libpath
10257 if ${lt_cv_aix_libpath_+:} false; then :
10258 $as_echo_n "(cached) " >&6
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h. */
10271 if ac_fn_c_try_link "$LINENO"; then :
10273 lt_aix_libpath_sed='
10274 /Import File Strings/,/^$/ {
10276 s/^0 *\([^ ]*\) *$/\1/
10280 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10281 # Check for a 64-bit object if we didn't find anything.
10282 if test -z "$lt_cv_aix_libpath_"; then
10283 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10286 rm -f core conftest.err conftest.$ac_objext \
10287 conftest$ac_exeext conftest.$ac_ext
10288 if test -z "$lt_cv_aix_libpath_"; then
10289 lt_cv_aix_libpath_="/usr/lib:/lib"
10294 aix_libpath=$lt_cv_aix_libpath_
10297 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10298 # Warning - without using the other run time loading flags,
10299 # -berok will link without error, but may produce a broken library.
10300 no_undefined_flag=' ${wl}-bernotok'
10301 allow_undefined_flag=' ${wl}-berok'
10302 if test "$with_gnu_ld" = yes; then
10303 # We only use this code for GNU lds that support --whole-archive.
10304 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10306 # Exported symbols can be pulled into shared objects from archives
10307 whole_archive_flag_spec='$convenience'
10309 archive_cmds_need_lc=yes
10310 # This is similar to how AIX traditionally builds its shared libraries.
10311 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'
10319 # see comment about AmigaOS4 .so support
10320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10321 archive_expsym_cmds=''
10324 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)'
10325 hardcode_libdir_flag_spec='-L$libdir'
10326 hardcode_minus_L=yes
10332 export_dynamic_flag_spec=-rdynamic
10335 cygwin* | mingw* | pw32* | cegcc*)
10336 # When not using gcc, we currently assume that we are using
10337 # Microsoft Visual C++.
10338 # hardcode_libdir_flag_spec is actually meaningless, as there is
10339 # no search path for DLLs.
10340 case $cc_basename in
10343 hardcode_libdir_flag_spec=' '
10344 allow_undefined_flag=unsupported
10345 always_export_symbols=yes
10347 # Tell ltmain to make .lib files, not .a files.
10349 # Tell ltmain to make .dll files, not .so files.
10351 # FIXME: Setting linknames here is a bad hack.
10352 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10353 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10354 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10356 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10358 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10360 # The linker will not automatically build a static lib if we build a DLL.
10361 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10362 enable_shared_with_static_runtimes=yes
10363 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10364 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10366 old_postinstall_cmds='chmod 644 $oldlib'
10367 postlink_cmds='lt_outputfile="@OUTPUT@"~
10368 lt_tool_outputfile="@TOOL_OUTPUT@"~
10369 case $lt_outputfile in
10372 lt_outputfile="$lt_outputfile.exe"
10373 lt_tool_outputfile="$lt_tool_outputfile.exe"
10376 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10377 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10378 $RM "$lt_outputfile.manifest";
10382 # Assume MSVC wrapper
10383 hardcode_libdir_flag_spec=' '
10384 allow_undefined_flag=unsupported
10385 # Tell ltmain to make .lib files, not .a files.
10387 # Tell ltmain to make .dll files, not .so files.
10389 # FIXME: Setting linknames here is a bad hack.
10390 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10391 # The linker will automatically build a .lib file if we build a DLL.
10392 old_archive_from_new_cmds='true'
10393 # FIXME: Should let the user specify the lib program.
10394 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10395 enable_shared_with_static_runtimes=yes
10400 darwin* | rhapsody*)
10403 archive_cmds_need_lc=no
10405 hardcode_automatic=yes
10406 hardcode_shlibpath_var=unsupported
10407 if test "$lt_cv_ld_force_load" = "yes"; then
10408 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\"`'
10411 whole_archive_flag_spec=''
10413 link_all_deplibs=yes
10414 allow_undefined_flag="$_lt_dar_allow_undefined"
10415 case $cc_basename in
10416 ifort*) _lt_dar_can_shared=yes ;;
10417 *) _lt_dar_can_shared=$GCC ;;
10419 if test "$_lt_dar_can_shared" = "yes"; then
10420 output_verbose_link_cmd=func_echo_all
10421 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10422 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10423 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}"
10424 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}"
10433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10434 hardcode_libdir_flag_spec='-L$libdir'
10435 hardcode_shlibpath_var=no
10438 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10439 # support. Future versions do this automatically, but an explicit c++rt0.o
10440 # does not break anything, and helps significantly (at the cost of a little
10443 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10444 hardcode_libdir_flag_spec='-R$libdir'
10445 hardcode_direct=yes
10446 hardcode_shlibpath_var=no
10449 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10451 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10452 hardcode_direct=yes
10453 hardcode_minus_L=yes
10454 hardcode_shlibpath_var=no
10457 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10458 freebsd* | dragonfly*)
10459 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10460 hardcode_libdir_flag_spec='-R$libdir'
10461 hardcode_direct=yes
10462 hardcode_shlibpath_var=no
10466 if test "$GCC" = yes; then
10467 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'
10469 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'
10471 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10472 hardcode_libdir_separator=:
10473 hardcode_direct=yes
10475 # hardcode_minus_L: Not really in the search PATH,
10476 # but as the default location of the library.
10477 hardcode_minus_L=yes
10478 export_dynamic_flag_spec='${wl}-E'
10482 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10483 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10485 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10487 if test "$with_gnu_ld" = no; then
10488 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10489 hardcode_libdir_separator=:
10490 hardcode_direct=yes
10491 hardcode_direct_absolute=yes
10492 export_dynamic_flag_spec='${wl}-E'
10493 # hardcode_minus_L: Not really in the search PATH,
10494 # but as the default location of the library.
10495 hardcode_minus_L=yes
10500 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10503 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10506 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10509 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10515 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10518 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10522 # Older versions of the 11.00 compiler do not understand -b yet
10523 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10525 $as_echo_n "checking if $CC understands -b... " >&6; }
10526 if ${lt_cv_prog_compiler__b+:} false; then :
10527 $as_echo_n "(cached) " >&6
10529 lt_cv_prog_compiler__b=no
10530 save_LDFLAGS="$LDFLAGS"
10531 LDFLAGS="$LDFLAGS -b"
10532 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10533 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10534 # The linker can only warn and ignore the option if not recognized
10535 # So say no if there are warnings
10536 if test -s conftest.err; then
10537 # Append any errors to the config.log.
10538 cat conftest.err 1>&5
10539 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10541 if diff conftest.exp conftest.er2 >/dev/null; then
10542 lt_cv_prog_compiler__b=yes
10545 lt_cv_prog_compiler__b=yes
10549 LDFLAGS="$save_LDFLAGS"
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10553 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10555 if test x"$lt_cv_prog_compiler__b" = xyes; then
10556 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10558 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10564 if test "$with_gnu_ld" = no; then
10565 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10566 hardcode_libdir_separator=:
10571 hardcode_shlibpath_var=no
10574 hardcode_direct=yes
10575 hardcode_direct_absolute=yes
10576 export_dynamic_flag_spec='${wl}-E'
10578 # hardcode_minus_L: Not really in the search PATH,
10579 # but as the default location of the library.
10580 hardcode_minus_L=yes
10586 irix5* | irix6* | nonstopux*)
10587 if test "$GCC" = yes; then
10588 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'
10589 # Try to use the -exported_symbol ld option, if it does not
10590 # work, assume that -exports_file does not work either and
10591 # implicitly export all symbols.
10592 # This should be the same for all languages, so no per-tag cache variable.
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10594 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10595 if ${lt_cv_irix_exported_symbol+:} false; then :
10596 $as_echo_n "(cached) " >&6
10598 save_LDFLAGS="$LDFLAGS"
10599 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10602 int foo (void) { return 0; }
10604 if ac_fn_c_try_link "$LINENO"; then :
10605 lt_cv_irix_exported_symbol=yes
10607 lt_cv_irix_exported_symbol=no
10609 rm -f core conftest.err conftest.$ac_objext \
10610 conftest$ac_exeext conftest.$ac_ext
10611 LDFLAGS="$save_LDFLAGS"
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10614 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10615 if test "$lt_cv_irix_exported_symbol" = yes; then
10616 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'
10619 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'
10620 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'
10622 archive_cmds_need_lc='no'
10623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10624 hardcode_libdir_separator=:
10626 link_all_deplibs=yes
10629 netbsd* | netbsdelf*-gnu)
10630 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10633 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10635 hardcode_libdir_flag_spec='-R$libdir'
10636 hardcode_direct=yes
10637 hardcode_shlibpath_var=no
10641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10642 hardcode_direct=yes
10643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10644 hardcode_libdir_separator=:
10645 hardcode_shlibpath_var=no
10652 if test -f /usr/libexec/ld.so; then
10653 hardcode_direct=yes
10654 hardcode_shlibpath_var=no
10655 hardcode_direct_absolute=yes
10656 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10657 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10658 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10659 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10660 export_dynamic_flag_spec='${wl}-E'
10663 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10665 hardcode_libdir_flag_spec='-R$libdir'
10668 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10679 hardcode_libdir_flag_spec='-L$libdir'
10680 hardcode_minus_L=yes
10681 allow_undefined_flag=unsupported
10682 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'
10683 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10687 if test "$GCC" = yes; then
10688 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10689 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'
10691 allow_undefined_flag=' -expect_unresolved \*'
10692 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'
10694 archive_cmds_need_lc='no'
10695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10696 hardcode_libdir_separator=:
10699 osf4* | osf5*) # as osf3* with the addition of -msym flag
10700 if test "$GCC" = yes; then
10701 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10702 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'
10703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10705 allow_undefined_flag=' -expect_unresolved \*'
10706 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'
10707 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~
10708 $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'
10710 # Both c and cxx compiler support -rpath directly
10711 hardcode_libdir_flag_spec='-rpath $libdir'
10713 archive_cmds_need_lc='no'
10714 hardcode_libdir_separator=:
10718 no_undefined_flag=' -z defs'
10719 if test "$GCC" = yes; then
10721 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10722 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10723 $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'
10725 case `$CC -V 2>&1` in
10728 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10729 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10730 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10734 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10735 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10736 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10740 hardcode_libdir_flag_spec='-R$libdir'
10741 hardcode_shlibpath_var=no
10743 solaris2.[0-5] | solaris2.[0-5].*) ;;
10745 # The compiler driver will combine and reorder linker options,
10746 # but understands `-z linker_flag'. GCC discards it without `$wl',
10747 # but is careful enough not to reorder.
10748 # Supported since Solaris 2.6 (maybe 2.5.1?)
10749 if test "$GCC" = yes; then
10750 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10752 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10756 link_all_deplibs=yes
10760 if test "x$host_vendor" = xsequent; then
10761 # Use $CC to link under sequent, because it throws in some extra .o
10762 # files that make .init and .fini sections work.
10763 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10765 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10767 hardcode_libdir_flag_spec='-L$libdir'
10768 hardcode_direct=yes
10769 hardcode_minus_L=yes
10770 hardcode_shlibpath_var=no
10774 case $host_vendor in
10776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10777 hardcode_direct=yes # is this really true???
10780 ## LD is ld it makes a PLAMLIB
10781 ## CC just makes a GrossModule.
10782 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10783 reload_cmds='$CC -r -o $output$reload_objs'
10787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10788 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10791 runpath_var='LD_RUN_PATH'
10792 hardcode_shlibpath_var=no
10796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10797 hardcode_shlibpath_var=no
10798 export_dynamic_flag_spec='-Bexport'
10802 if test -d /usr/nec; then
10803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10804 hardcode_shlibpath_var=no
10805 runpath_var=LD_RUN_PATH
10806 hardcode_runpath_var=yes
10811 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10812 no_undefined_flag='${wl}-z,text'
10813 archive_cmds_need_lc=no
10814 hardcode_shlibpath_var=no
10815 runpath_var='LD_RUN_PATH'
10817 if test "$GCC" = yes; then
10818 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10819 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10821 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10822 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10826 sysv5* | sco3.2v5* | sco5v6*)
10827 # Note: We can NOT use -z defs as we might desire, because we do not
10828 # link with -lc, and that would cause any symbols used from libc to
10829 # always be unresolved, which means just about no library would
10830 # ever link correctly. If we're not using GNU ld we use -z text
10831 # though, which does catch some bad symbols but isn't as heavy-handed
10833 no_undefined_flag='${wl}-z,text'
10834 allow_undefined_flag='${wl}-z,nodefs'
10835 archive_cmds_need_lc=no
10836 hardcode_shlibpath_var=no
10837 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10838 hardcode_libdir_separator=':'
10839 link_all_deplibs=yes
10840 export_dynamic_flag_spec='${wl}-Bexport'
10841 runpath_var='LD_RUN_PATH'
10843 if test "$GCC" = yes; then
10844 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10845 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10847 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10848 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10854 hardcode_libdir_flag_spec='-L$libdir'
10855 hardcode_shlibpath_var=no
10863 if test x$host_vendor = xsni; then
10865 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10866 export_dynamic_flag_spec='${wl}-Blargedynsym'
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10873 $as_echo "$ld_shlibs" >&6; }
10874 test "$ld_shlibs" = no && can_build_shared=no
10876 with_gnu_ld=$with_gnu_ld
10893 # Do we need to explicitly link libc?
10895 case "x$archive_cmds_need_lc" in
10897 # Assume -lc should be added
10898 archive_cmds_need_lc=yes
10900 if test "$enable_shared" = yes && test "$GCC" = yes; then
10901 case $archive_cmds in
10903 # FIXME: we may have to deal with multi-command sequences.
10906 # Test whether the compiler implicitly links with -lc since on some
10907 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10908 # to ld, don't add -lc before -lgcc.
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10910 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10911 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10912 $as_echo_n "(cached) " >&6
10915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10918 (eval $ac_compile) 2>&5
10920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10921 test $ac_status = 0; } 2>conftest.err; then
10924 libobjs=conftest.$ac_objext
10926 wl=$lt_prog_compiler_wl
10927 pic_flag=$lt_prog_compiler_pic
10933 lt_save_allow_undefined_flag=$allow_undefined_flag
10934 allow_undefined_flag=
10935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10936 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10939 test $ac_status = 0; }
10941 lt_cv_archive_cmds_need_lc=no
10943 lt_cv_archive_cmds_need_lc=yes
10945 allow_undefined_flag=$lt_save_allow_undefined_flag
10947 cat conftest.err 1>&5
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10953 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10954 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11113 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11115 if test "$GCC" = yes; then
11117 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11118 *) lt_awk_arg="/^libraries:/" ;;
11121 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11122 *) lt_sed_strip_eq="s,=/,/,g" ;;
11124 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11125 case $lt_search_path_spec in
11127 # if the path contains ";" then we assume it to be the separator
11128 # otherwise default to the standard path separator (i.e. ":") - it is
11129 # assumed that no part of a normal pathname contains ";" but that should
11130 # okay in the real world where ";" in dirpaths is itself problematic.
11131 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11134 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11137 # Ok, now we have the path, separated by spaces, we can step through it
11138 # and add multilib dir if necessary.
11139 lt_tmp_lt_search_path_spec=
11140 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11141 for lt_sys_path in $lt_search_path_spec; do
11142 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11143 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11145 test -d "$lt_sys_path" && \
11146 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11149 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11150 BEGIN {RS=" "; FS="/|\n";} {
11153 for (lt_i = NF; lt_i > 0; lt_i--) {
11154 if ($lt_i != "" && $lt_i != ".") {
11155 if ($lt_i == "..") {
11158 if (lt_count == 0) {
11159 lt_foo="/" $lt_i lt_foo;
11166 if (lt_foo != "") { lt_freq[lt_foo]++; }
11167 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11169 # AWK program above erroneously prepends '/' to C:/dos/paths
11172 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11173 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11175 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11177 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11179 library_names_spec=
11180 libname_spec='lib$name'
11184 postuninstall_cmds=
11188 shlibpath_overrides_runpath=unknown
11190 dynamic_linker="$host_os ld.so"
11191 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11192 need_lib_prefix=unknown
11193 hardcode_into_libs=no
11195 # when you set need_version to no, make sure it does not cause -set_version
11196 # flags to be left without arguments
11197 need_version=unknown
11201 version_type=linux # correct to gnu/linux during the next big refactor
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11203 shlibpath_var=LIBPATH
11205 # AIX 3 has no versioning support, so we append a major version to the name.
11206 soname_spec='${libname}${release}${shared_ext}$major'
11210 version_type=linux # correct to gnu/linux during the next big refactor
11213 hardcode_into_libs=yes
11214 if test "$host_cpu" = ia64; then
11215 # AIX 5 supports IA64
11216 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11217 shlibpath_var=LD_LIBRARY_PATH
11219 # With GCC up to 2.95.x, collect2 would create an import file
11220 # for dependence libraries. The import file would start with
11221 # the line `#! .'. This would cause the generated library to
11222 # depend on `.', always an invalid library. This was fixed in
11223 # development snapshots of GCC prior to 3.0.
11225 aix4 | aix4.[01] | aix4.[01].*)
11226 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11228 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11231 can_build_shared=no
11235 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11236 # soname into executable. Probably we can add versioning support to
11237 # collect2, so additional links can be useful in future.
11238 if test "$aix_use_runtimelinking" = yes; then
11239 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11240 # instead of lib<name>.a to let people know that these are not
11241 # typical AIX shared libraries.
11242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11244 # We preserve .a as extension for shared libraries through AIX4.2
11245 # and later when we are not doing run time linking.
11246 library_names_spec='${libname}${release}.a $libname.a'
11247 soname_spec='${libname}${release}${shared_ext}$major'
11249 shlibpath_var=LIBPATH
11256 # Since July 2007 AmigaOS4 officially supports .so libraries.
11257 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11261 library_names_spec='$libname.ixlibrary $libname.a'
11262 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11263 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'
11269 library_names_spec='${libname}${shared_ext}'
11270 dynamic_linker="$host_os ld.so"
11271 shlibpath_var=LIBRARY_PATH
11275 version_type=linux # correct to gnu/linux during the next big refactor
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11280 shlibpath_var=LD_LIBRARY_PATH
11281 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11282 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11283 # the default ld.so.conf also contains /usr/contrib/lib and
11284 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11285 # libtool to hard-code these into programs
11288 cygwin* | mingw* | pw32* | cegcc*)
11289 version_type=windows
11294 case $GCC,$cc_basename in
11297 library_names_spec='$libname.dll.a'
11298 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11299 postinstall_cmds='base_file=`basename \${file}`~
11300 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11301 dldir=$destdir/`dirname \$dlpath`~
11302 test -d \$dldir || mkdir -p \$dldir~
11303 $install_prog $dir/$dlname \$dldir/$dlname~
11304 chmod a+x \$dldir/$dlname~
11305 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11306 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11308 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11309 dlpath=$dir/\$dldll~
11311 shlibpath_overrides_runpath=yes
11315 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11316 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11318 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11321 # MinGW DLLs use traditional 'lib' prefix
11322 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11325 # pw32 DLLs use 'pw' prefix rather than 'lib'
11326 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11329 dynamic_linker='Win32 ld.exe'
11334 libname_spec='$name'
11335 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11336 library_names_spec='${libname}.dll.lib'
11340 sys_lib_search_path_spec=
11343 for lt_path in $LIB
11346 # Let DOS variable expansion print the short 8.3 style file name.
11347 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11348 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11351 # Convert to MSYS style.
11352 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11355 # Convert to unix form, then to dos form, then back to unix form
11356 # but this time dos style (no spaces!) so that the unix form looks
11357 # like /cygdrive/c/PROGRA~1:/cygdr...
11358 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11359 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11360 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11363 sys_lib_search_path_spec="$LIB"
11364 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11365 # It is most probably a Windows format PATH.
11366 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11368 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11370 # FIXME: find the short name or the path components, as spaces are
11371 # common. (e.g. "Program Files" -> "PROGRA~1")
11375 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11376 postinstall_cmds='base_file=`basename \${file}`~
11377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11378 dldir=$destdir/`dirname \$dlpath`~
11379 test -d \$dldir || mkdir -p \$dldir~
11380 $install_prog $dir/$dlname \$dldir/$dlname'
11381 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11382 dlpath=$dir/\$dldll~
11384 shlibpath_overrides_runpath=yes
11385 dynamic_linker='Win32 link.exe'
11389 # Assume MSVC wrapper
11390 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11391 dynamic_linker='Win32 ld.exe'
11394 # FIXME: first we should search . and the directory the executable is in
11398 darwin* | rhapsody*)
11399 dynamic_linker="$host_os dyld"
11400 version_type=darwin
11403 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11404 soname_spec='${libname}${release}${major}$shared_ext'
11405 shlibpath_overrides_runpath=yes
11406 shlibpath_var=DYLD_LIBRARY_PATH
11407 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11409 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11410 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11414 version_type=linux # correct to gnu/linux during the next big refactor
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11418 soname_spec='${libname}${release}${shared_ext}$major'
11419 shlibpath_var=LD_LIBRARY_PATH
11422 freebsd* | dragonfly*)
11423 # DragonFly does not have aout. When/if they implement a new
11424 # versioning mechanism, adjust this.
11425 if test -x /usr/bin/objformat; then
11426 objformat=`/usr/bin/objformat`
11429 freebsd[23].*) objformat=aout ;;
11430 *) objformat=elf ;;
11433 version_type=freebsd-$objformat
11434 case $version_type in
11436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11445 shlibpath_var=LD_LIBRARY_PATH
11448 shlibpath_overrides_runpath=yes
11450 freebsd3.[01]* | freebsdelf3.[01]*)
11451 shlibpath_overrides_runpath=yes
11452 hardcode_into_libs=yes
11454 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11455 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11456 shlibpath_overrides_runpath=no
11457 hardcode_into_libs=yes
11459 *) # from 4.6 on, and DragonFly
11460 shlibpath_overrides_runpath=yes
11461 hardcode_into_libs=yes
11467 version_type=linux # correct to gnu/linux during the next big refactor
11470 dynamic_linker="$host_os runtime_loader"
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 shlibpath_var=LIBRARY_PATH
11474 shlibpath_overrides_runpath=yes
11475 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11476 hardcode_into_libs=yes
11479 hpux9* | hpux10* | hpux11*)
11480 # Give a soname corresponding to the major version so that dld.sl refuses to
11481 # link against other versions.
11488 hardcode_into_libs=yes
11489 dynamic_linker="$host_os dld.so"
11490 shlibpath_var=LD_LIBRARY_PATH
11491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11493 soname_spec='${libname}${release}${shared_ext}$major'
11494 if test "X$HPUX_IA64_MODE" = X32; then
11495 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11497 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11503 hardcode_into_libs=yes
11504 dynamic_linker="$host_os dld.sl"
11505 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508 soname_spec='${libname}${release}${shared_ext}$major'
11509 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11514 dynamic_linker="$host_os dld.sl"
11515 shlibpath_var=SHLIB_PATH
11516 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518 soname_spec='${libname}${release}${shared_ext}$major'
11521 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11522 postinstall_cmds='chmod 555 $lib'
11523 # or fails outright, so override atomically:
11524 install_override_mode=555
11528 version_type=linux # correct to gnu/linux during the next big refactor
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11532 soname_spec='${libname}${release}${shared_ext}$major'
11533 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 shlibpath_overrides_runpath=no
11536 hardcode_into_libs=yes
11539 irix5* | irix6* | nonstopux*)
11541 nonstopux*) version_type=nonstopux ;;
11543 if test "$lt_cv_prog_gnu_ld" = yes; then
11544 version_type=linux # correct to gnu/linux during the next big refactor
11551 soname_spec='${libname}${release}${shared_ext}$major'
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11554 irix5* | nonstopux*)
11555 libsuff= shlibsuff=
11558 case $LD in # libtool.m4 will add one of these switches to LD
11559 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11560 libsuff= shlibsuff= libmagic=32-bit;;
11561 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11562 libsuff=32 shlibsuff=N32 libmagic=N32;;
11563 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11564 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11565 *) libsuff= shlibsuff= libmagic=never-match;;
11569 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11570 shlibpath_overrides_runpath=no
11571 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11572 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11573 hardcode_into_libs=yes
11576 # No shared lib support for Linux oldld, aout, or coff.
11577 linux*oldld* | linux*aout* | linux*coff*)
11581 # This must be glibc/ELF.
11582 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11583 version_type=linux # correct to gnu/linux during the next big refactor
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587 soname_spec='${libname}${release}${shared_ext}$major'
11588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11589 shlibpath_var=LD_LIBRARY_PATH
11590 shlibpath_overrides_runpath=no
11592 # Some binutils ld are patched to set DT_RUNPATH
11593 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11594 $as_echo_n "(cached) " >&6
11596 lt_cv_shlibpath_overrides_runpath=no
11597 save_LDFLAGS=$LDFLAGS
11598 save_libdir=$libdir
11599 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11600 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11612 if ac_fn_c_try_link "$LINENO"; then :
11613 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11614 lt_cv_shlibpath_overrides_runpath=yes
11617 rm -f core conftest.err conftest.$ac_objext \
11618 conftest$ac_exeext conftest.$ac_ext
11619 LDFLAGS=$save_LDFLAGS
11620 libdir=$save_libdir
11624 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11626 # This implies no fast_install, which is unacceptable.
11627 # Some rework will be needed to allow for fast_install
11628 # before this can be enabled.
11629 hardcode_into_libs=yes
11631 # Append ld.so.conf contents to the search path
11632 if test -f /etc/ld.so.conf; then
11633 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' ' '`
11634 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11637 # We used to test for /lib/ld.so.1 and disable shared libraries on
11638 # powerpc, because MkLinux only supported shared libraries with the
11639 # GNU dynamic linker. Since this was broken with cross compilers,
11640 # most powerpc-linux boxes support dynamic linking these days and
11641 # people can always --disable-shared, the test was removed, and we
11642 # assume the GNU/Linux dynamic linker is in use.
11643 dynamic_linker='GNU/Linux ld.so'
11650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11651 soname_spec='${libname}${release}${shared_ext}$major'
11652 shlibpath_var=LD_LIBRARY_PATH
11653 shlibpath_overrides_runpath=no
11654 hardcode_into_libs=yes
11655 dynamic_linker='NetBSD ld.elf_so'
11662 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11665 dynamic_linker='NetBSD (a.out) ld.so'
11667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11668 soname_spec='${libname}${release}${shared_ext}$major'
11669 dynamic_linker='NetBSD ld.elf_so'
11671 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=yes
11673 hardcode_into_libs=yes
11677 version_type=linux # correct to gnu/linux during the next big refactor
11678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11679 shlibpath_var=LD_LIBRARY_PATH
11680 shlibpath_overrides_runpath=yes
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688 soname_spec='${libname}${release}${shared_ext}$major'
11689 shlibpath_var=LD_LIBRARY_PATH
11690 shlibpath_overrides_runpath=no
11691 hardcode_into_libs=yes
11692 dynamic_linker='ldqnx.so'
11697 sys_lib_dlsearch_path_spec="/usr/lib"
11699 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11701 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11702 *) need_version=no ;;
11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11709 openbsd2.[89] | openbsd2.[89].*)
11710 shlibpath_overrides_runpath=no
11713 shlibpath_overrides_runpath=yes
11717 shlibpath_overrides_runpath=yes
11722 libname_spec='$name'
11725 library_names_spec='$libname${shared_ext} $libname.a'
11726 dynamic_linker='OS/2 ld.exe'
11727 shlibpath_var=LIBPATH
11730 osf3* | osf4* | osf5*)
11734 soname_spec='${libname}${release}${shared_ext}$major'
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736 shlibpath_var=LD_LIBRARY_PATH
11737 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11738 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11746 version_type=linux # correct to gnu/linux during the next big refactor
11749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750 soname_spec='${libname}${release}${shared_ext}$major'
11751 shlibpath_var=LD_LIBRARY_PATH
11752 shlibpath_overrides_runpath=yes
11753 hardcode_into_libs=yes
11754 # ldd complains unless libraries are executable
11755 postinstall_cmds='chmod +x $lib'
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11761 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11762 shlibpath_var=LD_LIBRARY_PATH
11763 shlibpath_overrides_runpath=yes
11764 if test "$with_gnu_ld" = yes; then
11771 version_type=linux # correct to gnu/linux during the next big refactor
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11773 soname_spec='${libname}${release}${shared_ext}$major'
11774 shlibpath_var=LD_LIBRARY_PATH
11775 case $host_vendor in
11777 shlibpath_overrides_runpath=no
11779 runpath_var=LD_RUN_PATH
11787 shlibpath_overrides_runpath=no
11788 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11794 if test -d /usr/nec ;then
11795 version_type=linux # correct to gnu/linux during the next big refactor
11796 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11797 soname_spec='$libname${shared_ext}.$major'
11798 shlibpath_var=LD_LIBRARY_PATH
11802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11803 version_type=freebsd-elf
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11807 soname_spec='${libname}${release}${shared_ext}$major'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 shlibpath_overrides_runpath=yes
11810 hardcode_into_libs=yes
11811 if test "$with_gnu_ld" = yes; then
11812 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11814 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11817 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11821 sys_lib_dlsearch_path_spec='/usr/lib'
11825 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11826 version_type=linux # correct to gnu/linux during the next big refactor
11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 shlibpath_overrides_runpath=no
11832 hardcode_into_libs=yes
11836 version_type=linux # correct to gnu/linux during the next big refactor
11837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11838 soname_spec='${libname}${release}${shared_ext}$major'
11839 shlibpath_var=LD_LIBRARY_PATH
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11847 $as_echo "$dynamic_linker" >&6; }
11848 test "$dynamic_linker" = no && can_build_shared=no
11850 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11851 if test "$GCC" = yes; then
11852 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11855 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11856 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11858 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11859 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11954 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11956 if test -n "$hardcode_libdir_flag_spec" ||
11957 test -n "$runpath_var" ||
11958 test "X$hardcode_automatic" = "Xyes" ; then
11960 # We can hardcode non-existent directories.
11961 if test "$hardcode_direct" != no &&
11962 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11963 # have to relink, otherwise we might link with an installed library
11964 # when we should be linking with a yet-to-be-installed one
11965 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11966 test "$hardcode_minus_L" != no; then
11967 # Linking always hardcodes the temporary library directory.
11968 hardcode_action=relink
11970 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11971 hardcode_action=immediate
11974 # We cannot hardcode anything, or else we can only hardcode existing
11976 hardcode_action=unsupported
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11979 $as_echo "$hardcode_action" >&6; }
11981 if test "$hardcode_action" = relink ||
11982 test "$inherit_rpath" = yes; then
11983 # Fast installation is not supported
11984 enable_fast_install=no
11985 elif test "$shlibpath_overrides_runpath" = yes ||
11986 test "$enable_shared" = no; then
11987 # Fast installation is not necessary
11988 enable_fast_install=needless
11996 if test "x$enable_dlopen" != xyes; then
11997 enable_dlopen=unknown
11998 enable_dlopen_self=unknown
11999 enable_dlopen_self_static=unknown
12006 lt_cv_dlopen="load_add_on"
12008 lt_cv_dlopen_self=yes
12011 mingw* | pw32* | cegcc*)
12012 lt_cv_dlopen="LoadLibrary"
12017 lt_cv_dlopen="dlopen"
12022 # if libdl is installed we need to link against it
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12024 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12025 if ${ac_cv_lib_dl_dlopen+:} false; then :
12026 $as_echo_n "(cached) " >&6
12028 ac_check_lib_save_LIBS=$LIBS
12030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031 /* end confdefs.h. */
12033 /* Override any GCC internal prototype to avoid an error.
12034 Use char because int might match the return type of a GCC
12035 builtin and then its argument prototype would still apply. */
12048 if ac_fn_c_try_link "$LINENO"; then :
12049 ac_cv_lib_dl_dlopen=yes
12051 ac_cv_lib_dl_dlopen=no
12053 rm -f core conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12055 LIBS=$ac_check_lib_save_LIBS
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12058 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12059 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12063 lt_cv_dlopen="dyld"
12065 lt_cv_dlopen_self=yes
12072 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12073 if test "x$ac_cv_func_shl_load" = xyes; then :
12074 lt_cv_dlopen="shl_load"
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12077 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12078 if ${ac_cv_lib_dld_shl_load+:} false; then :
12079 $as_echo_n "(cached) " >&6
12081 ac_check_lib_save_LIBS=$LIBS
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12086 /* Override any GCC internal prototype to avoid an error.
12087 Use char because int might match the return type of a GCC
12088 builtin and then its argument prototype would still apply. */
12096 return shl_load ();
12101 if ac_fn_c_try_link "$LINENO"; then :
12102 ac_cv_lib_dld_shl_load=yes
12104 ac_cv_lib_dld_shl_load=no
12106 rm -f core conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12111 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12112 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12113 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12115 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12116 if test "x$ac_cv_func_dlopen" = xyes; then :
12117 lt_cv_dlopen="dlopen"
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12120 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12121 if ${ac_cv_lib_dl_dlopen+:} false; then :
12122 $as_echo_n "(cached) " >&6
12124 ac_check_lib_save_LIBS=$LIBS
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12129 /* Override any GCC internal prototype to avoid an error.
12130 Use char because int might match the return type of a GCC
12131 builtin and then its argument prototype would still apply. */
12144 if ac_fn_c_try_link "$LINENO"; then :
12145 ac_cv_lib_dl_dlopen=yes
12147 ac_cv_lib_dl_dlopen=no
12149 rm -f core conftest.err conftest.$ac_objext \
12150 conftest$ac_exeext conftest.$ac_ext
12151 LIBS=$ac_check_lib_save_LIBS
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12154 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12155 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12156 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12159 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12160 if ${ac_cv_lib_svld_dlopen+:} false; then :
12161 $as_echo_n "(cached) " >&6
12163 ac_check_lib_save_LIBS=$LIBS
12164 LIBS="-lsvld $LIBS"
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12168 /* Override any GCC internal prototype to avoid an error.
12169 Use char because int might match the return type of a GCC
12170 builtin and then its argument prototype would still apply. */
12183 if ac_fn_c_try_link "$LINENO"; then :
12184 ac_cv_lib_svld_dlopen=yes
12186 ac_cv_lib_svld_dlopen=no
12188 rm -f core conftest.err conftest.$ac_objext \
12189 conftest$ac_exeext conftest.$ac_ext
12190 LIBS=$ac_check_lib_save_LIBS
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12193 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12194 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12195 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12198 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12199 if ${ac_cv_lib_dld_dld_link+:} false; then :
12200 $as_echo_n "(cached) " >&6
12202 ac_check_lib_save_LIBS=$LIBS
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12207 /* Override any GCC internal prototype to avoid an error.
12208 Use char because int might match the return type of a GCC
12209 builtin and then its argument prototype would still apply. */
12217 return dld_link ();
12222 if ac_fn_c_try_link "$LINENO"; then :
12223 ac_cv_lib_dld_dld_link=yes
12225 ac_cv_lib_dld_dld_link=no
12227 rm -f core conftest.err conftest.$ac_objext \
12228 conftest$ac_exeext conftest.$ac_ext
12229 LIBS=$ac_check_lib_save_LIBS
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12232 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12233 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12234 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12255 if test "x$lt_cv_dlopen" != xno; then
12261 case $lt_cv_dlopen in
12263 save_CPPFLAGS="$CPPFLAGS"
12264 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12266 save_LDFLAGS="$LDFLAGS"
12267 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12270 LIBS="$lt_cv_dlopen_libs $LIBS"
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12273 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12274 if ${lt_cv_dlopen_self+:} false; then :
12275 $as_echo_n "(cached) " >&6
12277 if test "$cross_compiling" = yes; then :
12278 lt_cv_dlopen_self=cross
12280 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12281 lt_status=$lt_dlunknown
12282 cat > conftest.$ac_ext <<_LT_EOF
12283 #line $LINENO "configure"
12284 #include "confdefs.h"
12293 # define LT_DLGLOBAL RTLD_GLOBAL
12296 # define LT_DLGLOBAL DL_GLOBAL
12298 # define LT_DLGLOBAL 0
12302 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12303 find out it does not work in some platform. */
12304 #ifndef LT_DLLAZY_OR_NOW
12306 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12309 # define LT_DLLAZY_OR_NOW DL_LAZY
12312 # define LT_DLLAZY_OR_NOW RTLD_NOW
12315 # define LT_DLLAZY_OR_NOW DL_NOW
12317 # define LT_DLLAZY_OR_NOW 0
12324 /* When -fvisbility=hidden is used, assume the code has been annotated
12325 correspondingly for the symbols needed. */
12326 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12327 int fnord () __attribute__((visibility("default")));
12330 int fnord () { return 42; }
12333 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12334 int status = $lt_dlunknown;
12338 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12341 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12342 else puts (dlerror ());
12344 /* dlclose (self); */
12352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12353 (eval $ac_link) 2>&5
12355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12356 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12357 (./conftest; exit; ) >&5 2>/dev/null
12359 case x$lt_status in
12360 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12361 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12362 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12365 # compilation failed
12366 lt_cv_dlopen_self=no
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12374 $as_echo "$lt_cv_dlopen_self" >&6; }
12376 if test "x$lt_cv_dlopen_self" = xyes; then
12377 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12379 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12380 if ${lt_cv_dlopen_self_static+:} false; then :
12381 $as_echo_n "(cached) " >&6
12383 if test "$cross_compiling" = yes; then :
12384 lt_cv_dlopen_self_static=cross
12386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12387 lt_status=$lt_dlunknown
12388 cat > conftest.$ac_ext <<_LT_EOF
12389 #line $LINENO "configure"
12390 #include "confdefs.h"
12399 # define LT_DLGLOBAL RTLD_GLOBAL
12402 # define LT_DLGLOBAL DL_GLOBAL
12404 # define LT_DLGLOBAL 0
12408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12409 find out it does not work in some platform. */
12410 #ifndef LT_DLLAZY_OR_NOW
12412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12415 # define LT_DLLAZY_OR_NOW DL_LAZY
12418 # define LT_DLLAZY_OR_NOW RTLD_NOW
12421 # define LT_DLLAZY_OR_NOW DL_NOW
12423 # define LT_DLLAZY_OR_NOW 0
12430 /* When -fvisbility=hidden is used, assume the code has been annotated
12431 correspondingly for the symbols needed. */
12432 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12433 int fnord () __attribute__((visibility("default")));
12436 int fnord () { return 42; }
12439 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12440 int status = $lt_dlunknown;
12444 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12447 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12448 else puts (dlerror ());
12450 /* dlclose (self); */
12458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12459 (eval $ac_link) 2>&5
12461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12462 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12463 (./conftest; exit; ) >&5 2>/dev/null
12465 case x$lt_status in
12466 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12467 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12468 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12471 # compilation failed
12472 lt_cv_dlopen_self_static=no
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12480 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12483 CPPFLAGS="$save_CPPFLAGS"
12484 LDFLAGS="$save_LDFLAGS"
12489 case $lt_cv_dlopen_self in
12490 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12491 *) enable_dlopen_self=unknown ;;
12494 case $lt_cv_dlopen_self_static in
12495 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12496 *) enable_dlopen_self_static=unknown ;;
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12519 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12520 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12521 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12522 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12524 $as_echo "yes" >&6; }
12526 # FIXME - insert some real tests, host_os isn't really good enough
12529 if test -n "$STRIP" ; then
12530 striplib="$STRIP -x"
12531 old_striplib="$STRIP -S"
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12533 $as_echo "yes" >&6; }
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12557 # Report which library types will actually be built
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12559 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12561 $as_echo "$can_build_shared" >&6; }
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12564 $as_echo_n "checking whether to build shared libraries... " >&6; }
12565 test "$can_build_shared" = "no" && enable_shared=no
12567 # On AIX, shared libraries and static libraries use the same namespace, and
12568 # are all built from PIC.
12571 test "$enable_shared" = yes && enable_static=no
12572 if test -n "$RANLIB"; then
12573 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12574 postinstall_cmds='$RANLIB $lib'
12579 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12580 test "$enable_shared" = yes && enable_static=no
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12585 $as_echo "$enable_shared" >&6; }
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12588 $as_echo_n "checking whether to build static libraries... " >&6; }
12589 # Make sure either enable_shared or enable_static is yes.
12590 test "$enable_shared" = yes || enable_static=yes
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12592 $as_echo "$enable_static" >&6; }
12599 ac_cpp='$CPP $CPPFLAGS'
12600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12620 ac_config_commands="$ac_config_commands libtool"
12625 # Only expand once:
12629 ac_config_headers="$ac_config_headers config.h"
12633 # Check $PATH for the following programs and append suitable options.
12635 ac_cpp='$CPP $CPPFLAGS'
12636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12639 if test -n "$ac_tool_prefix"; then
12640 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643 $as_echo_n "checking for $ac_word... " >&6; }
12644 if ${ac_cv_prog_CC+:} false; then :
12645 $as_echo_n "(cached) " >&6
12647 if test -n "$CC"; then
12648 ac_cv_prog_CC="$CC" # Let the user override the test.
12650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651 for as_dir in $PATH
12654 test -z "$as_dir" && as_dir=.
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12657 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12668 if test -n "$CC"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12670 $as_echo "$CC" >&6; }
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673 $as_echo "no" >&6; }
12678 if test -z "$ac_cv_prog_CC"; then
12680 # Extract the first word of "gcc", so it can be a program name with args.
12681 set dummy gcc; ac_word=$2
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12683 $as_echo_n "checking for $ac_word... " >&6; }
12684 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12685 $as_echo_n "(cached) " >&6
12687 if test -n "$ac_ct_CC"; then
12688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12691 for as_dir in $PATH
12694 test -z "$as_dir" && as_dir=.
12695 for ac_exec_ext in '' $ac_executable_extensions; do
12696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12697 ac_cv_prog_ac_ct_CC="gcc"
12698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12708 if test -n "$ac_ct_CC"; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12710 $as_echo "$ac_ct_CC" >&6; }
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12716 if test "x$ac_ct_CC" = x; then
12719 case $cross_compiling:$ac_tool_warned in
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12723 ac_tool_warned=yes ;;
12728 CC="$ac_cv_prog_CC"
12731 if test -z "$CC"; then
12732 if test -n "$ac_tool_prefix"; then
12733 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12734 set dummy ${ac_tool_prefix}cc; ac_word=$2
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736 $as_echo_n "checking for $ac_word... " >&6; }
12737 if ${ac_cv_prog_CC+:} false; then :
12738 $as_echo_n "(cached) " >&6
12740 if test -n "$CC"; then
12741 ac_cv_prog_CC="$CC" # Let the user override the test.
12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744 for as_dir in $PATH
12747 test -z "$as_dir" && as_dir=.
12748 for ac_exec_ext in '' $ac_executable_extensions; do
12749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12750 ac_cv_prog_CC="${ac_tool_prefix}cc"
12751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761 if test -n "$CC"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12763 $as_echo "$CC" >&6; }
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12772 if test -z "$CC"; then
12773 # Extract the first word of "cc", so it can be a program name with args.
12774 set dummy cc; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if ${ac_cv_prog_CC+:} false; then :
12778 $as_echo_n "(cached) " >&6
12780 if test -n "$CC"; then
12781 ac_cv_prog_CC="$CC" # Let the user override the test.
12783 ac_prog_rejected=no
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12792 ac_prog_rejected=yes
12796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12803 if test $ac_prog_rejected = yes; then
12804 # We found a bogon in the path, so make sure we never use it.
12805 set dummy $ac_cv_prog_CC
12807 if test $# != 0; then
12808 # We chose a different compiler from the bogus one.
12809 # However, it has the same basename, so the bogon will be chosen
12810 # first if we set CC to just the basename; use the full file name.
12812 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12818 if test -n "$CC"; then
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12820 $as_echo "$CC" >&6; }
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823 $as_echo "no" >&6; }
12828 if test -z "$CC"; then
12829 if test -n "$ac_tool_prefix"; then
12830 for ac_prog in cl.exe
12832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12835 $as_echo_n "checking for $ac_word... " >&6; }
12836 if ${ac_cv_prog_CC+:} false; then :
12837 $as_echo_n "(cached) " >&6
12839 if test -n "$CC"; then
12840 ac_cv_prog_CC="$CC" # Let the user override the test.
12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12846 test -z "$as_dir" && as_dir=.
12847 for ac_exec_ext in '' $ac_executable_extensions; do
12848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12860 if test -n "$CC"; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12862 $as_echo "$CC" >&6; }
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 $as_echo "no" >&6; }
12869 test -n "$CC" && break
12872 if test -z "$CC"; then
12874 for ac_prog in cl.exe
12876 # Extract the first word of "$ac_prog", so it can be a program name with args.
12877 set dummy $ac_prog; ac_word=$2
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12879 $as_echo_n "checking for $ac_word... " >&6; }
12880 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12881 $as_echo_n "(cached) " >&6
12883 if test -n "$ac_ct_CC"; then
12884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887 for as_dir in $PATH
12890 test -z "$as_dir" && as_dir=.
12891 for ac_exec_ext in '' $ac_executable_extensions; do
12892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12893 ac_cv_prog_ac_ct_CC="$ac_prog"
12894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12904 if test -n "$ac_ct_CC"; then
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12906 $as_echo "$ac_ct_CC" >&6; }
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909 $as_echo "no" >&6; }
12913 test -n "$ac_ct_CC" && break
12916 if test "x$ac_ct_CC" = x; then
12919 case $cross_compiling:$ac_tool_warned in
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12923 ac_tool_warned=yes ;;
12932 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12934 as_fn_error $? "no acceptable C compiler found in \$PATH
12935 See \`config.log' for more details" "$LINENO" 5; }
12937 # Provide some information about the compiler.
12938 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12941 for ac_option in --version -v -V -qversion; do
12942 { { ac_try="$ac_compiler $ac_option >&5"
12943 case "(($ac_try" in
12944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945 *) ac_try_echo=$ac_try;;
12947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12948 $as_echo "$ac_try_echo"; } >&5
12949 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12951 if test -s conftest.err; then
12953 ... rest of stderr output deleted ...
12954 10q' conftest.err >conftest.er1
12955 cat conftest.er1 >&5
12957 rm -f conftest.er1 conftest.err
12958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12959 test $ac_status = 0; }
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12963 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12964 if ${ac_cv_c_compiler_gnu+:} false; then :
12965 $as_echo_n "(cached) " >&6
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12981 if ac_fn_c_try_compile "$LINENO"; then :
12982 ac_compiler_gnu=yes
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12991 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12992 if test $ac_compiler_gnu = yes; then
12997 ac_test_CFLAGS=${CFLAGS+set}
12998 ac_save_CFLAGS=$CFLAGS
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13000 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13001 if ${ac_cv_prog_cc_g+:} false; then :
13002 $as_echo_n "(cached) " >&6
13004 ac_save_c_werror_flag=$ac_c_werror_flag
13005 ac_c_werror_flag=yes
13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13019 if ac_fn_c_try_compile "$LINENO"; then :
13020 ac_cv_prog_cc_g=yes
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13034 if ac_fn_c_try_compile "$LINENO"; then :
13037 ac_c_werror_flag=$ac_save_c_werror_flag
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13050 if ac_fn_c_try_compile "$LINENO"; then :
13051 ac_cv_prog_cc_g=yes
13053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13058 ac_c_werror_flag=$ac_save_c_werror_flag
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13061 $as_echo "$ac_cv_prog_cc_g" >&6; }
13062 if test "$ac_test_CFLAGS" = set; then
13063 CFLAGS=$ac_save_CFLAGS
13064 elif test $ac_cv_prog_cc_g = yes; then
13065 if test "$GCC" = yes; then
13071 if test "$GCC" = yes; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13078 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13079 if ${ac_cv_prog_cc_c89+:} false; then :
13080 $as_echo_n "(cached) " >&6
13082 ac_cv_prog_cc_c89=no
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13086 #include <stdarg.h>
13089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13090 struct buf { int x; };
13091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13092 static char *e (p, i)
13098 static char *f (char * (*g) (char **, int), char **p, ...)
13103 s = g (p, va_arg (v,int));
13108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13109 function prototypes and stuff, but not '\xHH' hex character constants.
13110 These don't provoke an error unfortunately, instead are silently treated
13111 as 'x'. The following induces an error, until -std is added to get
13112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13113 array size at least. It's necessary to write '\x00'==0 to get something
13114 that's true only with -std. */
13115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13118 inside strings and character constants. */
13120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13122 int test (int i, double x);
13123 struct s1 {int (*f) (int a);};
13124 struct s2 {int (*f) (double a);};
13125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13139 CC="$ac_save_CC $ac_arg"
13140 if ac_fn_c_try_compile "$LINENO"; then :
13141 ac_cv_prog_cc_c89=$ac_arg
13143 rm -f core conftest.err conftest.$ac_objext
13144 test "x$ac_cv_prog_cc_c89" != "xno" && break
13146 rm -f conftest.$ac_ext
13151 case "x$ac_cv_prog_cc_c89" in
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13154 $as_echo "none needed" >&6; } ;;
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13157 $as_echo "unsupported" >&6; } ;;
13159 CC="$CC $ac_cv_prog_cc_c89"
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13161 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13163 if test "x$ac_cv_prog_cc_c89" != xno; then :
13168 ac_cpp='$CPP $CPPFLAGS'
13169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13173 depcc="$CC" am_compiler_list=
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13176 $as_echo_n "checking dependency style of $depcc... " >&6; }
13177 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13178 $as_echo_n "(cached) " >&6
13180 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13181 # We make a subdir and do the tests there. Otherwise we can end up
13182 # making bogus files that we don't know about and never remove. For
13183 # instance it was reported that on HP-UX the gcc test will end up
13184 # making a dummy file named `D' -- because `-MD' means `put the output
13186 rm -rf conftest.dir
13188 # Copy depcomp to subdir because otherwise we won't find it if we're
13189 # using a relative directory.
13190 cp "$am_depcomp" conftest.dir
13192 # We will build objects and dependencies in a subdirectory because
13193 # it helps to detect inapplicable dependency modes. For instance
13194 # both Tru64's cc and ICC support -MD to output dependencies as a
13195 # side effect of compilation, but ICC will put the dependencies in
13196 # the current directory while Tru64 will put them in the object
13200 am_cv_CC_dependencies_compiler_type=none
13201 if test "$am_compiler_list" = ""; then
13202 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13204 am__universal=false
13205 case " $depcc " in #(
13206 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13209 for depmode in $am_compiler_list; do
13210 # Setup a source with many dependencies, because some compilers
13211 # like to wrap large dependency lists on column 80 (with \), and
13212 # we should not choose a depcomp mode which is confused by this.
13214 # We need to recreate these files for each test, as the compiler may
13215 # overwrite some of them when testing with obscure command lines.
13216 # This happens at least with the AIX C compiler.
13218 for i in 1 2 3 4 5 6; do
13219 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13220 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13221 # Solaris 8's {/usr,}/bin/sh.
13222 touch sub/conftst$i.h
13224 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13226 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13227 # mode. It turns out that the SunPro C++ compiler does not properly
13228 # handle `-M -o', and we need to detect this. Also, some Intel
13229 # versions had trouble with output in subdirs
13230 am__obj=sub/conftest.${OBJEXT-o}
13231 am__minus_obj="-o $am__obj"
13234 # This depmode causes a compiler race in universal mode.
13235 test "$am__universal" = false || continue
13238 # after this tag, mechanisms are not by side-effect, so they'll
13239 # only be used when explicitly requested
13240 if test "x$enable_dependency_tracking" = xyes; then
13246 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13247 # This compiler won't grok `-c -o', but also, the minuso test has
13248 # not run yet. These depmodes are late enough in the game, and
13249 # so weak that their functioning should not be impacted.
13250 am__obj=conftest.${OBJEXT-o}
13255 if depmode=$depmode \
13256 source=sub/conftest.c object=$am__obj \
13257 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13258 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13259 >/dev/null 2>conftest.err &&
13260 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13261 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13262 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13263 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13264 # icc doesn't choke on unknown options, it will just issue warnings
13265 # or remarks (even with -Werror). So we grep stderr for any message
13266 # that says an option was ignored or not supported.
13267 # When given -MP, icc 7.0 and 7.1 complain thusly:
13268 # icc: Command line warning: ignoring option '-M'; no argument required
13269 # The diagnosis changed in icc 8.0:
13270 # icc: Command line remark: option '-MP' not supported
13271 if (grep 'ignoring option' conftest.err ||
13272 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13273 am_cv_CC_dependencies_compiler_type=$depmode
13280 rm -rf conftest.dir
13282 am_cv_CC_dependencies_compiler_type=none
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13287 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13288 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13291 test "x$enable_dependency_tracking" != xno \
13292 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13293 am__fastdepCC_TRUE=
13294 am__fastdepCC_FALSE='#'
13296 am__fastdepCC_TRUE='#'
13297 am__fastdepCC_FALSE=
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
13304 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
13305 if ${gl_cv_c_amsterdam_compiler+:} false; then :
13306 $as_echo_n "(cached) " >&6
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h. */
13317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13318 $EGREP "Amsterdam" >/dev/null 2>&1; then :
13319 gl_cv_c_amsterdam_compiler=yes
13321 gl_cv_c_amsterdam_compiler=no
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
13328 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
13329 if test -z "$AR"; then
13330 if test $gl_cv_c_amsterdam_compiler = yes; then
13332 if test -z "$ARFLAGS"; then
13336 if test -n "$ac_tool_prefix"; then
13337 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13338 set dummy ${ac_tool_prefix}ar; ac_word=$2
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13340 $as_echo_n "checking for $ac_word... " >&6; }
13341 if ${ac_cv_prog_AR+:} false; then :
13342 $as_echo_n "(cached) " >&6
13344 if test -n "$AR"; then
13345 ac_cv_prog_AR="$AR" # Let the user override the test.
13347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13348 for as_dir in $PATH
13351 test -z "$as_dir" && as_dir=.
13352 for ac_exec_ext in '' $ac_executable_extensions; do
13353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13354 ac_cv_prog_AR="${ac_tool_prefix}ar"
13355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13365 if test -n "$AR"; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13367 $as_echo "$AR" >&6; }
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13375 if test -z "$ac_cv_prog_AR"; then
13377 # Extract the first word of "ar", so it can be a program name with args.
13378 set dummy ar; ac_word=$2
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13380 $as_echo_n "checking for $ac_word... " >&6; }
13381 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13382 $as_echo_n "(cached) " >&6
13384 if test -n "$ac_ct_AR"; then
13385 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $PATH
13391 test -z "$as_dir" && as_dir=.
13392 for ac_exec_ext in '' $ac_executable_extensions; do
13393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13394 ac_cv_prog_ac_ct_AR="ar"
13395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13404 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13405 if test -n "$ac_ct_AR"; then
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13407 $as_echo "$ac_ct_AR" >&6; }
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 $as_echo "no" >&6; }
13413 if test "x$ac_ct_AR" = x; then
13416 case $cross_compiling:$ac_tool_warned in
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13420 ac_tool_warned=yes ;;
13425 AR="$ac_cv_prog_AR"
13428 if test -z "$ARFLAGS"; then
13433 if test -z "$ARFLAGS"; then
13439 if test -z "$RANLIB"; then
13440 if test $gl_cv_c_amsterdam_compiler = yes; then
13443 if test -n "$ac_tool_prefix"; then
13444 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13445 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13447 $as_echo_n "checking for $ac_word... " >&6; }
13448 if ${ac_cv_prog_RANLIB+:} false; then :
13449 $as_echo_n "(cached) " >&6
13451 if test -n "$RANLIB"; then
13452 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13455 for as_dir in $PATH
13458 test -z "$as_dir" && as_dir=.
13459 for ac_exec_ext in '' $ac_executable_extensions; do
13460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13461 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13471 RANLIB=$ac_cv_prog_RANLIB
13472 if test -n "$RANLIB"; then
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13474 $as_echo "$RANLIB" >&6; }
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13482 if test -z "$ac_cv_prog_RANLIB"; then
13483 ac_ct_RANLIB=$RANLIB
13484 # Extract the first word of "ranlib", so it can be a program name with args.
13485 set dummy ranlib; ac_word=$2
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13487 $as_echo_n "checking for $ac_word... " >&6; }
13488 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13489 $as_echo_n "(cached) " >&6
13491 if test -n "$ac_ct_RANLIB"; then
13492 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13495 for as_dir in $PATH
13498 test -z "$as_dir" && as_dir=.
13499 for ac_exec_ext in '' $ac_executable_extensions; do
13500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13501 ac_cv_prog_ac_ct_RANLIB="ranlib"
13502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13511 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13512 if test -n "$ac_ct_RANLIB"; then
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13514 $as_echo "$ac_ct_RANLIB" >&6; }
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517 $as_echo "no" >&6; }
13520 if test "x$ac_ct_RANLIB" = x; then
13523 case $cross_compiling:$ac_tool_warned in
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13527 ac_tool_warned=yes ;;
13529 RANLIB=$ac_ct_RANLIB
13532 RANLIB="$ac_cv_prog_RANLIB"
13539 if test "x$CC" != xcc; then
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
13541 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
13544 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
13546 set dummy $CC; ac_cc=`$as_echo "$2" |
13547 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13548 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
13549 $as_echo_n "(cached) " >&6
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13562 # Make sure it works both with $CC and with simple cc.
13563 # We do the test twice because some compilers refuse to overwrite an
13564 # existing .o file with -o, though they will create one.
13565 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13567 if { { case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13572 $as_echo "$ac_try_echo"; } >&5
13573 (eval "$ac_try") 2>&5
13575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13576 test $ac_status = 0; } &&
13577 test -f conftest2.$ac_objext && { { case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13582 $as_echo "$ac_try_echo"; } >&5
13583 (eval "$ac_try") 2>&5
13585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13586 test $ac_status = 0; };
13588 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
13589 if test "x$CC" != xcc; then
13590 # Test first that cc exists at all.
13591 if { ac_try='cc -c conftest.$ac_ext >&5'
13592 { { case "(($ac_try" in
13593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13594 *) ac_try_echo=$ac_try;;
13596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13597 $as_echo "$ac_try_echo"; } >&5
13598 (eval "$ac_try") 2>&5
13600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13601 test $ac_status = 0; }; }; then
13602 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13604 if { { case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13609 $as_echo "$ac_try_echo"; } >&5
13610 (eval "$ac_try") 2>&5
13612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13613 test $ac_status = 0; } &&
13614 test -f conftest2.$ac_objext && { { case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13619 $as_echo "$ac_try_echo"; } >&5
13620 (eval "$ac_try") 2>&5
13622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13623 test $ac_status = 0; };
13628 # cc exists but doesn't like -o.
13629 eval ac_cv_prog_cc_${ac_cc}_c_o=no
13634 eval ac_cv_prog_cc_${ac_cc}_c_o=no
13636 rm -f core conftest*
13639 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13641 $as_echo "yes" >&6; }
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644 $as_echo "no" >&6; }
13646 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
13650 # FIXME: we rely on the cache variable name because
13651 # there is no other way.
13653 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13654 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
13655 if test "$am_t" != yes; then
13656 # Losing compiler, so override with the script.
13657 # FIXME: It is wrong to rewrite CC.
13658 # But if we don't then we get into trouble of one sort or another.
13659 # A longer-term fix would be to have automake use am__CC in this case,
13660 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13661 CC="$am_aux_dir/compile $CC"
13670 case $ac_cv_prog_cc_stdc in #(
13672 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
13675 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
13676 if ${ac_cv_prog_cc_c99+:} false; then :
13677 $as_echo_n "(cached) " >&6
13679 ac_cv_prog_cc_c99=no
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 #include <stdarg.h>
13684 #include <stdbool.h>
13685 #include <stdlib.h>
13689 // Check varargs macros. These examples are taken from C99 6.10.3.5.
13690 #define debug(...) fprintf (stderr, __VA_ARGS__)
13691 #define showlist(...) puts (#__VA_ARGS__)
13692 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
13694 test_varargs_macros (void)
13699 debug ("X = %d\n", x);
13700 showlist (The first, second, and third items.);
13701 report (x>y, "x is %d but y is %d", x, y);
13704 // Check long long types.
13705 #define BIG64 18446744073709551615ull
13706 #define BIG32 4294967295ul
13707 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
13709 your preprocessor is broken;
13713 your preprocessor is broken;
13715 static long long int bignum = -9223372036854775807LL;
13716 static unsigned long long int ubignum = BIG64;
13718 struct incomplete_array
13724 struct named_init {
13726 const wchar_t *name;
13730 typedef const char *ccp;
13733 test_restrict (ccp restrict text)
13735 // See if C++-style comments work.
13736 // Iterate through items via the restricted pointer.
13737 // Also check for declarations in for loops.
13738 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
13743 // Check varargs and va_copy.
13745 test_varargs (const char *format, ...)
13748 va_start (args, format);
13750 va_copy (args_copy, args);
13760 case 's': // string
13761 str = va_arg (args_copy, const char *);
13764 number = va_arg (args_copy, int);
13767 fnumber = va_arg (args_copy, double);
13773 va_end (args_copy);
13782 _Bool success = false;
13785 if (test_restrict ("String literal") == 0)
13787 char *restrict newvar = "Another string";
13790 test_varargs ("s, d' f .", "string", 65, 34.234);
13791 test_varargs_macros ();
13793 // Check flexible array members.
13794 struct incomplete_array *ia =
13795 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13797 for (int i = 0; i < ia->datasize; ++i)
13798 ia->data[i] = i * 1.234;
13800 // Check named initializers.
13801 struct named_init ni = {
13803 .name = L"Test wide string",
13804 .average = 543.34343,
13809 int dynamic_array[ni.number];
13810 dynamic_array[ni.number - 1] = 543;
13812 // work around unused variable warnings
13813 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13814 || dynamic_array[ni.number - 1] != 543);
13820 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13822 CC="$ac_save_CC $ac_arg"
13823 if ac_fn_c_try_compile "$LINENO"; then :
13824 ac_cv_prog_cc_c99=$ac_arg
13826 rm -f core conftest.err conftest.$ac_objext
13827 test "x$ac_cv_prog_cc_c99" != "xno" && break
13829 rm -f conftest.$ac_ext
13834 case "x$ac_cv_prog_cc_c99" in
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13837 $as_echo "none needed" >&6; } ;;
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13840 $as_echo "unsupported" >&6; } ;;
13842 CC="$CC $ac_cv_prog_cc_c99"
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13844 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13846 if test "x$ac_cv_prog_cc_c99" != xno; then :
13847 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13850 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13851 if ${ac_cv_prog_cc_c89+:} false; then :
13852 $as_echo_n "(cached) " >&6
13854 ac_cv_prog_cc_c89=no
13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857 /* end confdefs.h. */
13858 #include <stdarg.h>
13861 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13862 struct buf { int x; };
13863 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13864 static char *e (p, i)
13870 static char *f (char * (*g) (char **, int), char **p, ...)
13875 s = g (p, va_arg (v,int));
13880 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13881 function prototypes and stuff, but not '\xHH' hex character constants.
13882 These don't provoke an error unfortunately, instead are silently treated
13883 as 'x'. The following induces an error, until -std is added to get
13884 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13885 array size at least. It's necessary to write '\x00'==0 to get something
13886 that's true only with -std. */
13887 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13889 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13890 inside strings and character constants. */
13892 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13894 int test (int i, double x);
13895 struct s1 {int (*f) (int a);};
13896 struct s2 {int (*f) (double a);};
13897 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13903 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13908 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13909 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13911 CC="$ac_save_CC $ac_arg"
13912 if ac_fn_c_try_compile "$LINENO"; then :
13913 ac_cv_prog_cc_c89=$ac_arg
13915 rm -f core conftest.err conftest.$ac_objext
13916 test "x$ac_cv_prog_cc_c89" != "xno" && break
13918 rm -f conftest.$ac_ext
13923 case "x$ac_cv_prog_cc_c89" in
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13926 $as_echo "none needed" >&6; } ;;
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13929 $as_echo "unsupported" >&6; } ;;
13931 CC="$CC $ac_cv_prog_cc_c89"
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13933 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13935 if test "x$ac_cv_prog_cc_c89" != xno; then :
13936 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13938 ac_cv_prog_cc_stdc=no
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
13945 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
13946 if ${ac_cv_prog_cc_stdc+:} false; then :
13947 $as_echo_n "(cached) " >&6
13950 case $ac_cv_prog_cc_stdc in #(
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13953 $as_echo "unsupported" >&6; } ;; #(
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13956 $as_echo "none needed" >&6; } ;; #(
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
13959 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
13967 # Check whether --enable-threads was given.
13968 if test "${enable_threads+set}" = set; then :
13969 enableval=$enable_threads; gl_use_threads=$enableval
13971 if test -n "$gl_use_threads_default"; then
13972 gl_use_threads="$gl_use_threads_default"
13975 osf*) gl_use_threads=no ;;
13978 1.[0-5].*) gl_use_threads=no ;;
13979 *) gl_use_threads=yes ;;
13982 *) gl_use_threads=yes ;;
13988 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
13989 # For using <pthread.h>:
13992 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
13993 # groks <pthread.h>. cc also understands the flag -pthread, but
13994 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
13995 # 2. putting a flag into CPPFLAGS that has an effect on the linker
13996 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
13997 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
13998 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
14001 # Some systems optimize for single-threaded programs by default, and
14002 # need special flags to disable these optimizations. For example, the
14003 # definition of 'errno' in <errno.h>.
14005 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
14006 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
14013 # Code from module alloca-opt:
14014 # Code from module dirname:
14015 # Code from module dirname-lgpl:
14016 # Code from module dosname:
14017 # Code from module double-slash-root:
14018 # Code from module environ:
14019 # Code from module errno:
14020 # Code from module error:
14021 # Code from module exitfail:
14022 # Code from module extensions:
14024 # Code from module float:
14025 # Code from module full-write:
14026 # Code from module gettext-h:
14027 # Code from module havelib:
14028 # Code from module include_next:
14029 # Code from module inline:
14030 # Code from module intprops:
14031 # Code from module lib-ignore:
14032 # Code from module lock:
14033 # Code from module malloc-posix:
14034 # Code from module malloca:
14035 # Code from module memchr:
14036 # Code from module msvc-inval:
14037 # Code from module msvc-nothrow:
14038 # Code from module multiarch:
14039 # Code from module raise:
14040 # Code from module read:
14041 # Code from module safe-read:
14042 # Code from module safe-write:
14043 # Code from module setenv:
14044 # Code from module sigaction:
14045 # Code from module signal:
14046 # Code from module signal-h:
14047 # Code from module sigprocmask:
14048 # Code from module size_max:
14049 # Code from module snippet/_Noreturn:
14050 # Code from module snippet/arg-nonnull:
14051 # Code from module snippet/c++defs:
14052 # Code from module snippet/warn-on-use:
14053 # Code from module snprintf:
14054 # Code from module ssize_t:
14055 # Code from module stdarg:
14059 # Code from module stdbool:
14060 # Code from module stddef:
14061 # Code from module stdint:
14062 # Code from module stdio:
14063 # Code from module stdlib:
14064 # Code from module strerror:
14065 # Code from module strerror-override:
14066 # Code from module string:
14067 # Code from module strndup:
14068 # Code from module strnlen:
14069 # Code from module strsignal:
14070 # Code from module sys_select:
14071 # Code from module sys_stat:
14072 # Code from module sys_time:
14073 # Code from module sys_wait:
14074 # Code from module threadlib:
14078 # Code from module time:
14079 # Code from module tls:
14080 # Code from module unistd:
14081 # Code from module unsetenv:
14082 # Code from module vasnprintf:
14083 # Code from module vasprintf:
14084 # Code from module verify:
14085 # Code from module waitpid:
14086 # Code from module wchar:
14087 # Code from module write:
14088 # Code from module xalloc:
14089 # Code from module xalloc-die:
14090 # Code from module xalloc-oversized:
14091 # Code from module xsize:
14092 # Code from module xstrndup:
14093 # Code from module xvasprintf:
14096 ac_cpp='$CPP $CPPFLAGS'
14097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14101 $as_echo_n "checking how to run the C preprocessor... " >&6; }
14102 # On Suns, sometimes $CPP names a directory.
14103 if test -n "$CPP" && test -d "$CPP"; then
14106 if test -z "$CPP"; then
14107 if ${ac_cv_prog_CPP+:} false; then :
14108 $as_echo_n "(cached) " >&6
14110 # Double quotes because CPP needs to be expanded
14111 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14113 ac_preproc_ok=false
14114 for ac_c_preproc_warn_flag in '' yes
14116 # Use a header file that comes with gcc, so configuring glibc
14117 # with a fresh cross-compiler works.
14118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14119 # <limits.h> exists even on freestanding compilers.
14120 # On the NeXT, cc -E runs the code through the compiler's parser,
14121 # not just through cpp. "Syntax error" is here to catch this case.
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14125 # include <limits.h>
14127 # include <assert.h>
14131 if ac_fn_c_try_cpp "$LINENO"; then :
14134 # Broken: fails on valid input.
14137 rm -f conftest.err conftest.i conftest.$ac_ext
14139 # OK, works on sane cases. Now check whether nonexistent headers
14140 # can be detected and how.
14141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h. */
14143 #include <ac_nonexistent.h>
14145 if ac_fn_c_try_cpp "$LINENO"; then :
14146 # Broken: success on invalid input.
14149 # Passes both tests.
14153 rm -f conftest.err conftest.i conftest.$ac_ext
14156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14157 rm -f conftest.i conftest.err conftest.$ac_ext
14158 if $ac_preproc_ok; then :
14163 ac_cv_prog_CPP=$CPP
14166 CPP=$ac_cv_prog_CPP
14168 ac_cv_prog_CPP=$CPP
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14171 $as_echo "$CPP" >&6; }
14172 ac_preproc_ok=false
14173 for ac_c_preproc_warn_flag in '' yes
14175 # Use a header file that comes with gcc, so configuring glibc
14176 # with a fresh cross-compiler works.
14177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14178 # <limits.h> exists even on freestanding compilers.
14179 # On the NeXT, cc -E runs the code through the compiler's parser,
14180 # not just through cpp. "Syntax error" is here to catch this case.
14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14184 # include <limits.h>
14186 # include <assert.h>
14190 if ac_fn_c_try_cpp "$LINENO"; then :
14193 # Broken: fails on valid input.
14196 rm -f conftest.err conftest.i conftest.$ac_ext
14198 # OK, works on sane cases. Now check whether nonexistent headers
14199 # can be detected and how.
14200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14201 /* end confdefs.h. */
14202 #include <ac_nonexistent.h>
14204 if ac_fn_c_try_cpp "$LINENO"; then :
14205 # Broken: success on invalid input.
14208 # Passes both tests.
14212 rm -f conftest.err conftest.i conftest.$ac_ext
14215 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14216 rm -f conftest.i conftest.err conftest.$ac_ext
14217 if $ac_preproc_ok; then :
14220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14222 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14223 See \`config.log' for more details" "$LINENO" 5; }
14227 ac_cpp='$CPP $CPPFLAGS'
14228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14232 CFLAGS="$CFLAGS -Wall"
14233 if test "$GCC" = yes
14235 pipeline_saved_CFLAGS="$CFLAGS"
14236 CFLAGS="$CFLAGS -W"
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -W" >&5
14238 $as_echo_n "checking that GCC supports -W... " >&6; }
14239 if ${pipeline_cv_gcc_warning_+:} false; then :
14240 $as_echo_n "(cached) " >&6
14242 pipeline_cv_gcc_warning_=no
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14254 if ac_fn_c_try_compile "$LINENO"; then :
14255 pipeline_cv_gcc_warning_=yes
14257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_" >&5
14260 $as_echo "$pipeline_cv_gcc_warning_" >&6; }
14261 if test "$pipeline_cv_gcc_warning_" = no; then
14262 CFLAGS="$pipeline_saved_CFLAGS"
14264 pipeline_saved_CFLAGS="$CFLAGS"
14265 CFLAGS="$CFLAGS -Wpointer-arith"
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -Wpointer-arith" >&5
14267 $as_echo_n "checking that GCC supports -Wpointer-arith... " >&6; }
14268 if ${pipeline_cv_gcc_warning_pointer_arith+:} false; then :
14269 $as_echo_n "(cached) " >&6
14271 pipeline_cv_gcc_warning_pointer_arith=no
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14283 if ac_fn_c_try_compile "$LINENO"; then :
14284 pipeline_cv_gcc_warning_pointer_arith=yes
14286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_pointer_arith" >&5
14289 $as_echo "$pipeline_cv_gcc_warning_pointer_arith" >&6; }
14290 if test "$pipeline_cv_gcc_warning_pointer_arith" = no; then
14291 CFLAGS="$pipeline_saved_CFLAGS"
14293 pipeline_saved_CFLAGS="$CFLAGS"
14294 CFLAGS="$CFLAGS -Wwrite-strings"
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -Wwrite-strings" >&5
14296 $as_echo_n "checking that GCC supports -Wwrite-strings... " >&6; }
14297 if ${pipeline_cv_gcc_warning_write_strings+:} false; then :
14298 $as_echo_n "(cached) " >&6
14300 pipeline_cv_gcc_warning_write_strings=no
14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14312 if ac_fn_c_try_compile "$LINENO"; then :
14313 pipeline_cv_gcc_warning_write_strings=yes
14315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_write_strings" >&5
14318 $as_echo "$pipeline_cv_gcc_warning_write_strings" >&6; }
14319 if test "$pipeline_cv_gcc_warning_write_strings" = no; then
14320 CFLAGS="$pipeline_saved_CFLAGS"
14322 pipeline_saved_CFLAGS="$CFLAGS"
14323 CFLAGS="$CFLAGS -Wstrict-prototypes"
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -Wstrict-prototypes" >&5
14325 $as_echo_n "checking that GCC supports -Wstrict-prototypes... " >&6; }
14326 if ${pipeline_cv_gcc_warning_strict_prototypes+:} false; then :
14327 $as_echo_n "(cached) " >&6
14329 pipeline_cv_gcc_warning_strict_prototypes=no
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14341 if ac_fn_c_try_compile "$LINENO"; then :
14342 pipeline_cv_gcc_warning_strict_prototypes=yes
14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_strict_prototypes" >&5
14347 $as_echo "$pipeline_cv_gcc_warning_strict_prototypes" >&6; }
14348 if test "$pipeline_cv_gcc_warning_strict_prototypes" = no; then
14349 CFLAGS="$pipeline_saved_CFLAGS"
14351 pipeline_saved_CFLAGS="$CFLAGS"
14352 CFLAGS="$CFLAGS -Wshadow"
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -Wshadow" >&5
14354 $as_echo_n "checking that GCC supports -Wshadow... " >&6; }
14355 if ${pipeline_cv_gcc_warning_shadow+:} false; then :
14356 $as_echo_n "(cached) " >&6
14358 pipeline_cv_gcc_warning_shadow=no
14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14370 if ac_fn_c_try_compile "$LINENO"; then :
14371 pipeline_cv_gcc_warning_shadow=yes
14373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_shadow" >&5
14376 $as_echo "$pipeline_cv_gcc_warning_shadow" >&6; }
14377 if test "$pipeline_cv_gcc_warning_shadow" = no; then
14378 CFLAGS="$pipeline_saved_CFLAGS"
14380 pipeline_saved_CFLAGS="$CFLAGS"
14381 CFLAGS="$CFLAGS -Wformat-security"
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -Wformat-security" >&5
14383 $as_echo_n "checking that GCC supports -Wformat-security... " >&6; }
14384 if ${pipeline_cv_gcc_warning_format_security+:} false; then :
14385 $as_echo_n "(cached) " >&6
14387 pipeline_cv_gcc_warning_format_security=no
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14399 if ac_fn_c_try_compile "$LINENO"; then :
14400 pipeline_cv_gcc_warning_format_security=yes
14402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_format_security" >&5
14405 $as_echo "$pipeline_cv_gcc_warning_format_security" >&6; }
14406 if test "$pipeline_cv_gcc_warning_format_security" = no; then
14407 CFLAGS="$pipeline_saved_CFLAGS"
14409 pipeline_saved_CFLAGS="$CFLAGS"
14410 CFLAGS="$CFLAGS -Wredundant-decls"
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -Wredundant-decls" >&5
14412 $as_echo_n "checking that GCC supports -Wredundant-decls... " >&6; }
14413 if ${pipeline_cv_gcc_warning_redundant_decls+:} false; then :
14414 $as_echo_n "(cached) " >&6
14416 pipeline_cv_gcc_warning_redundant_decls=no
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14428 if ac_fn_c_try_compile "$LINENO"; then :
14429 pipeline_cv_gcc_warning_redundant_decls=yes
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_redundant_decls" >&5
14434 $as_echo "$pipeline_cv_gcc_warning_redundant_decls" >&6; }
14435 if test "$pipeline_cv_gcc_warning_redundant_decls" = no; then
14436 CFLAGS="$pipeline_saved_CFLAGS"
14438 pipeline_saved_CFLAGS="$CFLAGS"
14439 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -Wno-missing-field-initializers" >&5
14441 $as_echo_n "checking that GCC supports -Wno-missing-field-initializers... " >&6; }
14442 if ${pipeline_cv_gcc_warning_no_missing_field_initializers+:} false; then :
14443 $as_echo_n "(cached) " >&6
14445 pipeline_cv_gcc_warning_no_missing_field_initializers=no
14446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447 /* end confdefs.h. */
14457 if ac_fn_c_try_compile "$LINENO"; then :
14458 pipeline_cv_gcc_warning_no_missing_field_initializers=yes
14460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_no_missing_field_initializers" >&5
14463 $as_echo "$pipeline_cv_gcc_warning_no_missing_field_initializers" >&6; }
14464 if test "$pipeline_cv_gcc_warning_no_missing_field_initializers" = no; then
14465 CFLAGS="$pipeline_saved_CFLAGS"
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14469 $as_echo_n "checking whether ln -s works... " >&6; }
14471 if test "$LN_S" = "ln -s"; then
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14473 $as_echo "yes" >&6; }
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14476 $as_echo "no, using $LN_S" >&6; }
14486 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14487 if test -n "$ac_tool_prefix"; then
14488 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14489 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14491 $as_echo_n "checking for $ac_word... " >&6; }
14492 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14493 $as_echo_n "(cached) " >&6
14495 case $PKG_CONFIG in
14497 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14501 for as_dir in $PATH
14504 test -z "$as_dir" && as_dir=.
14505 for ac_exec_ext in '' $ac_executable_extensions; do
14506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14507 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14518 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14519 if test -n "$PKG_CONFIG"; then
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14521 $as_echo "$PKG_CONFIG" >&6; }
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524 $as_echo "no" >&6; }
14529 if test -z "$ac_cv_path_PKG_CONFIG"; then
14530 ac_pt_PKG_CONFIG=$PKG_CONFIG
14531 # Extract the first word of "pkg-config", so it can be a program name with args.
14532 set dummy pkg-config; ac_word=$2
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14534 $as_echo_n "checking for $ac_word... " >&6; }
14535 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14536 $as_echo_n "(cached) " >&6
14538 case $ac_pt_PKG_CONFIG in
14540 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14544 for as_dir in $PATH
14547 test -z "$as_dir" && as_dir=.
14548 for ac_exec_ext in '' $ac_executable_extensions; do
14549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14550 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14561 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14562 if test -n "$ac_pt_PKG_CONFIG"; then
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14564 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14567 $as_echo "no" >&6; }
14570 if test "x$ac_pt_PKG_CONFIG" = x; then
14573 case $cross_compiling:$ac_tool_warned in
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14577 ac_tool_warned=yes ;;
14579 PKG_CONFIG=$ac_pt_PKG_CONFIG
14582 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14586 if test -n "$PKG_CONFIG"; then
14587 _pkg_min_version=0.9.0
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14589 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14590 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14592 $as_echo "yes" >&6; }
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14595 $as_echo "no" >&6; }
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
14602 $as_echo_n "checking for CHECK... " >&6; }
14604 if test -n "$CHECK_CFLAGS"; then
14605 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
14606 elif test -n "$PKG_CONFIG"; then
14607 if test -n "$PKG_CONFIG" && \
14608 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
14609 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
14611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14612 test $ac_status = 0; }; then
14613 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
14614 test "x$?" != "x0" && pkg_failed=yes
14621 if test -n "$CHECK_LIBS"; then
14622 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
14623 elif test -n "$PKG_CONFIG"; then
14624 if test -n "$PKG_CONFIG" && \
14625 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
14626 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
14628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14629 test $ac_status = 0; }; then
14630 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
14631 test "x$?" != "x0" && pkg_failed=yes
14641 if test $pkg_failed = yes; then
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14643 $as_echo "no" >&6; }
14645 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14646 _pkg_short_errors_supported=yes
14648 _pkg_short_errors_supported=no
14650 if test $_pkg_short_errors_supported = yes; then
14651 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
14653 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
14655 # Put the nasty error message in config.log where it belongs
14656 echo "$CHECK_PKG_ERRORS" >&5
14659 elif test $pkg_failed = untried; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14661 $as_echo "no" >&6; }
14664 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
14665 CHECK_LIBS=$pkg_cv_CHECK_LIBS
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14667 $as_echo "yes" >&6; }
14670 if test "x$run_tests" = xyes; then
14672 RUN_TESTS_FALSE='#'
14679 # Check for various header files and associated libraries.
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
14681 $as_echo_n "checking for library containing strerror... " >&6; }
14682 if ${ac_cv_search_strerror+:} false; then :
14683 $as_echo_n "(cached) " >&6
14685 ac_func_search_save_LIBS=$LIBS
14686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687 /* end confdefs.h. */
14689 /* Override any GCC internal prototype to avoid an error.
14690 Use char because int might match the return type of a GCC
14691 builtin and then its argument prototype would still apply. */
14699 return strerror ();
14704 for ac_lib in '' cposix; do
14705 if test -z "$ac_lib"; then
14706 ac_res="none required"
14709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14711 if ac_fn_c_try_link "$LINENO"; then :
14712 ac_cv_search_strerror=$ac_res
14714 rm -f core conftest.err conftest.$ac_objext \
14716 if ${ac_cv_search_strerror+:} false; then :
14720 if ${ac_cv_search_strerror+:} false; then :
14723 ac_cv_search_strerror=no
14725 rm conftest.$ac_ext
14726 LIBS=$ac_func_search_save_LIBS
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
14729 $as_echo "$ac_cv_search_strerror" >&6; }
14730 ac_res=$ac_cv_search_strerror
14731 if test "$ac_res" != no; then :
14732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14741 LIBC_FATAL_STDERR_=1
14742 export LIBC_FATAL_STDERR_
14744 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14745 if test "x$ac_cv_type_size_t" = xyes; then :
14749 cat >>confdefs.h <<_ACEOF
14750 #define size_t unsigned int
14755 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14756 # for constant arguments. Useless!
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14758 $as_echo_n "checking for working alloca.h... " >&6; }
14759 if ${ac_cv_working_alloca_h+:} false; then :
14760 $as_echo_n "(cached) " >&6
14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763 /* end confdefs.h. */
14764 #include <alloca.h>
14768 char *p = (char *) alloca (2 * sizeof (int));
14774 if ac_fn_c_try_link "$LINENO"; then :
14775 ac_cv_working_alloca_h=yes
14777 ac_cv_working_alloca_h=no
14779 rm -f core conftest.err conftest.$ac_objext \
14780 conftest$ac_exeext conftest.$ac_ext
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14783 $as_echo "$ac_cv_working_alloca_h" >&6; }
14784 if test $ac_cv_working_alloca_h = yes; then
14786 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14791 $as_echo_n "checking for alloca... " >&6; }
14792 if ${ac_cv_func_alloca_works+:} false; then :
14793 $as_echo_n "(cached) " >&6
14795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796 /* end confdefs.h. */
14798 # define alloca __builtin_alloca
14801 # include <malloc.h>
14802 # define alloca _alloca
14804 # ifdef HAVE_ALLOCA_H
14805 # include <alloca.h>
14810 # ifndef alloca /* predefined by HP cc +Olibcalls */
14811 void *alloca (size_t);
14821 char *p = (char *) alloca (1);
14827 if ac_fn_c_try_link "$LINENO"; then :
14828 ac_cv_func_alloca_works=yes
14830 ac_cv_func_alloca_works=no
14832 rm -f core conftest.err conftest.$ac_objext \
14833 conftest$ac_exeext conftest.$ac_ext
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14836 $as_echo "$ac_cv_func_alloca_works" >&6; }
14838 if test $ac_cv_func_alloca_works = yes; then
14840 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14843 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14844 # that cause trouble. Some versions do not even contain alloca or
14845 # contain a buggy version. If you still want to use their alloca,
14846 # use ar to extract alloca.o from them instead of compiling alloca.c.
14852 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14854 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14858 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14859 if ${ac_cv_os_cray+:} false; then :
14860 $as_echo_n "(cached) " >&6
14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h. */
14864 #if defined CRAY && ! defined CRAY2
14871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14872 $EGREP "webecray" >/dev/null 2>&1; then :
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14881 $as_echo "$ac_cv_os_cray" >&6; }
14882 if test $ac_cv_os_cray = yes; then
14883 for ac_func in _getb67 GETB67 getb67; do
14884 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14885 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14886 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14888 cat >>confdefs.h <<_ACEOF
14889 #define CRAY_STACKSEG_END $ac_func
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14899 $as_echo_n "checking stack direction for C alloca... " >&6; }
14900 if ${ac_cv_c_stack_direction+:} false; then :
14901 $as_echo_n "(cached) " >&6
14903 if test "$cross_compiling" = yes; then :
14904 ac_cv_c_stack_direction=0
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 $ac_includes_default
14910 find_stack_direction (int *addr, int depth)
14912 int dir, dummy = 0;
14915 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14916 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14917 return dir + dummy;
14921 main (int argc, char **argv)
14923 return find_stack_direction (0, argc + !argv + 20) < 0;
14926 if ac_fn_c_try_run "$LINENO"; then :
14927 ac_cv_c_stack_direction=1
14929 ac_cv_c_stack_direction=-1
14931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14932 conftest.$ac_objext conftest.beam conftest.$ac_ext
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14937 $as_echo "$ac_cv_c_stack_direction" >&6; }
14938 cat >>confdefs.h <<_ACEOF
14939 #define STACK_DIRECTION $ac_cv_c_stack_direction
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
14948 $as_echo_n "checking whether // is distinct from /... " >&6; }
14949 if ${gl_cv_double_slash_root+:} false; then :
14950 $as_echo_n "(cached) " >&6
14952 if test x"$cross_compiling" = xyes ; then
14953 # When cross-compiling, there is no way to tell whether // is special
14954 # short of a list of hosts. However, the only known hosts to date
14955 # that have a distinct // are Apollo DomainOS (too old to port to),
14956 # Cygwin, and z/OS. If anyone knows of another system for which // has
14957 # special semantics and is distinct from /, please report it to
14958 # <bug-gnulib@gnu.org>.
14960 *-cygwin | i370-ibm-openedition)
14961 gl_cv_double_slash_root=yes ;;
14963 # Be optimistic and assume that / and // are the same when we
14965 gl_cv_double_slash_root='unknown, assuming no' ;;
14968 set x `ls -di / // 2>/dev/null`
14969 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
14970 gl_cv_double_slash_root=no
14972 gl_cv_double_slash_root=yes
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
14977 $as_echo "$gl_cv_double_slash_root" >&6; }
14978 if test "$gl_cv_double_slash_root" = yes; then
14980 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
14996 GNULIB_EUIDACCESS=0;
14997 GNULIB_FACCESSAT=0;
15000 GNULIB_FDATASYNC=0;
15002 GNULIB_FTRUNCATE=0;
15004 GNULIB_GETDOMAINNAME=0;
15005 GNULIB_GETDTABLESIZE=0;
15006 GNULIB_GETGROUPS=0;
15007 GNULIB_GETHOSTNAME=0;
15009 GNULIB_GETLOGIN_R=0;
15010 GNULIB_GETPAGESIZE=0;
15011 GNULIB_GETUSERSHELL=0;
15012 GNULIB_GROUP_MEMBER=0;
15024 GNULIB_READLINKAT=0;
15026 GNULIB_SETHOSTNAME=0;
15029 GNULIB_SYMLINKAT=0;
15030 GNULIB_TTYNAME_R=0;
15031 GNULIB_UNISTD_H_NONBLOCKING=0;
15032 GNULIB_UNISTD_H_SIGPIPE=0;
15047 HAVE_GETDTABLESIZE=1;
15049 HAVE_GETHOSTNAME=1;
15051 HAVE_GETPAGESIZE=1;
15052 HAVE_GROUP_MEMBER=1;
15062 HAVE_SETHOSTNAME=1;
15068 HAVE_DECL_ENVIRON=1;
15069 HAVE_DECL_FCHDIR=1;
15070 HAVE_DECL_FDATASYNC=1;
15071 HAVE_DECL_GETDOMAINNAME=1;
15072 HAVE_DECL_GETLOGIN_R=1;
15073 HAVE_DECL_GETPAGESIZE=1;
15074 HAVE_DECL_GETUSERSHELL=1;
15075 HAVE_DECL_SETHOSTNAME=1;
15076 HAVE_DECL_TTYNAME_R=1;
15078 HAVE_SYS_PARAM_H=0;
15083 REPLACE_FCHOWNAT=0;
15085 REPLACE_GETDOMAINNAME=0;
15086 REPLACE_GETLOGIN_R=0;
15087 REPLACE_GETGROUPS=0;
15088 REPLACE_GETPAGESIZE=0;
15097 REPLACE_READLINK=0;
15101 REPLACE_TTYNAME_R=0;
15103 REPLACE_UNLINKAT=0;
15106 UNISTD_H_HAVE_WINSOCK2_H=0;
15107 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15114 for ac_header in $gl_header_list
15116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15117 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15118 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15119 cat >>confdefs.h <<_ACEOF
15120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
15145 $as_echo_n "checking if environ is properly declared... " >&6; }
15146 if ${gt_cv_var_environ_declaration+:} false; then :
15147 $as_echo_n "(cached) " >&6
15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151 /* end confdefs.h. */
15153 #include <unistd.h>
15155 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
15156 #include <stdlib.h>
15158 extern struct { int foo; } environ;
15167 if ac_fn_c_try_compile "$LINENO"; then :
15168 gt_cv_var_environ_declaration=no
15170 gt_cv_var_environ_declaration=yes
15172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
15176 $as_echo "$gt_cv_var_environ_declaration" >&6; }
15177 if test $gt_cv_var_environ_declaration = yes; then
15179 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
15184 if test $gt_cv_var_environ_declaration != yes; then
15185 HAVE_DECL_ENVIRON=0
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15191 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15192 if ${gl_cv_have_include_next+:} false; then :
15193 $as_echo_n "(cached) " >&6
15195 rm -rf conftestd1a conftestd1b conftestd2
15196 mkdir conftestd1a conftestd1b conftestd2
15197 cat <<EOF > conftestd1a/conftest.h
15198 #define DEFINED_IN_CONFTESTD1
15199 #include_next <conftest.h>
15200 #ifdef DEFINED_IN_CONFTESTD2
15203 #error "include_next doesn't work"
15206 cat <<EOF > conftestd1b/conftest.h
15207 #define DEFINED_IN_CONFTESTD1
15209 #include_next <conftest.h>
15210 #ifdef DEFINED_IN_CONFTESTD2
15213 #error "include_next doesn't work"
15216 cat <<EOF > conftestd2/conftest.h
15217 #ifndef DEFINED_IN_CONFTESTD1
15218 #error "include_next test doesn't work"
15220 #define DEFINED_IN_CONFTESTD2
15222 gl_save_CPPFLAGS="$CPPFLAGS"
15223 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 /* end confdefs.h. */
15226 #include <conftest.h>
15228 if ac_fn_c_try_compile "$LINENO"; then :
15229 gl_cv_have_include_next=yes
15231 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h. */
15234 #include <conftest.h>
15236 if ac_fn_c_try_compile "$LINENO"; then :
15237 gl_cv_have_include_next=buggy
15239 gl_cv_have_include_next=no
15241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15245 CPPFLAGS="$gl_save_CPPFLAGS"
15246 rm -rf conftestd1a conftestd1b conftestd2
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15250 $as_echo "$gl_cv_have_include_next" >&6; }
15251 PRAGMA_SYSTEM_HEADER=
15252 if test $gl_cv_have_include_next = yes; then
15253 INCLUDE_NEXT=include_next
15254 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15255 if test -n "$GCC"; then
15256 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15259 if test $gl_cv_have_include_next = buggy; then
15260 INCLUDE_NEXT=include
15261 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15263 INCLUDE_NEXT=include
15264 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15271 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15272 if ${gl_cv_pragma_columns+:} false; then :
15273 $as_echo_n "(cached) " >&6
15275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15276 /* end confdefs.h. */
15283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15284 $EGREP "choke me" >/dev/null 2>&1; then :
15285 gl_cv_pragma_columns=yes
15287 gl_cv_pragma_columns=no
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15294 $as_echo "$gl_cv_pragma_columns" >&6; }
15295 if test $gl_cv_pragma_columns = yes; then
15296 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
15305 $as_echo_n "checking for complete errno.h... " >&6; }
15306 if ${gl_cv_header_errno_h_complete+:} false; then :
15307 $as_echo_n "(cached) " >&6
15310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h. */
15314 #if !defined ENOMSG
15320 #if !defined ENOLINK
15323 #if !defined EPROTO
15326 #if !defined EMULTIHOP
15329 #if !defined EBADMSG
15332 #if !defined EOVERFLOW
15335 #if !defined ENOTSUP
15338 #if !defined ENETRESET
15341 #if !defined ECONNABORTED
15344 #if !defined ESTALE
15347 #if !defined EDQUOT
15350 #if !defined ECANCELED
15355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15356 $EGREP "booboo" >/dev/null 2>&1; then :
15357 gl_cv_header_errno_h_complete=no
15359 gl_cv_header_errno_h_complete=yes
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
15366 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
15367 if test $gl_cv_header_errno_h_complete = yes; then
15378 if test $gl_cv_have_include_next = yes; then
15379 gl_cv_next_errno_h='<'errno.h'>'
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
15382 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
15383 if ${gl_cv_next_errno_h+:} false; then :
15384 $as_echo_n "(cached) " >&6
15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h. */
15393 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15394 *) gl_absname_cpp="$ac_cpp" ;;
15399 gl_dirsep_regex='[/\\]'
15402 gl_dirsep_regex='\/'
15405 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15407 gl_header_literal_regex=`echo 'errno.h' \
15408 | sed -e "$gl_make_literal_regex_sed"`
15409 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15410 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15415 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15416 sed -n "$gl_absolute_header_sed"`'"'
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
15421 $as_echo "$gl_cv_next_errno_h" >&6; }
15423 NEXT_ERRNO_H=$gl_cv_next_errno_h
15425 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15426 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15427 gl_next_as_first_directive='<'errno.h'>'
15429 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15430 gl_next_as_first_directive=$gl_cv_next_errno_h
15432 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
15440 if test -n "$ERRNO_H"; then
15441 GL_GENERATE_ERRNO_H_TRUE=
15442 GL_GENERATE_ERRNO_H_FALSE='#'
15444 GL_GENERATE_ERRNO_H_TRUE='#'
15445 GL_GENERATE_ERRNO_H_FALSE=
15449 if test -n "$ERRNO_H"; then
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
15451 $as_echo_n "checking for EMULTIHOP value... " >&6; }
15452 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
15453 $as_echo_n "(cached) " >&6
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15466 $EGREP "yes" >/dev/null 2>&1; then :
15467 gl_cv_header_errno_h_EMULTIHOP=yes
15469 gl_cv_header_errno_h_EMULTIHOP=no
15473 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h. */
15477 #define _XOPEN_SOURCE_EXTENDED 1
15484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15485 $EGREP "yes" >/dev/null 2>&1; then :
15486 gl_cv_header_errno_h_EMULTIHOP=hidden
15490 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
15491 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
15492 #define _XOPEN_SOURCE_EXTENDED 1
15494 /* The following two lines are a workaround against an autoconf-2.52 bug. */
15496 #include <stdlib.h>
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
15506 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
15507 case $gl_cv_header_errno_h_EMULTIHOP in
15509 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
15512 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
15520 if test -n "$ERRNO_H"; then
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
15522 $as_echo_n "checking for ENOLINK value... " >&6; }
15523 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
15524 $as_echo_n "(cached) " >&6
15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h. */
15536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15537 $EGREP "yes" >/dev/null 2>&1; then :
15538 gl_cv_header_errno_h_ENOLINK=yes
15540 gl_cv_header_errno_h_ENOLINK=no
15544 if test $gl_cv_header_errno_h_ENOLINK = no; then
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15548 #define _XOPEN_SOURCE_EXTENDED 1
15555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15556 $EGREP "yes" >/dev/null 2>&1; then :
15557 gl_cv_header_errno_h_ENOLINK=hidden
15561 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
15562 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
15563 #define _XOPEN_SOURCE_EXTENDED 1
15565 /* The following two lines are a workaround against an autoconf-2.52 bug. */
15567 #include <stdlib.h>
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
15577 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
15578 case $gl_cv_header_errno_h_ENOLINK in
15580 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
15583 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
15591 if test -n "$ERRNO_H"; then
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
15593 $as_echo_n "checking for EOVERFLOW value... " >&6; }
15594 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
15595 $as_echo_n "(cached) " >&6
15598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15608 $EGREP "yes" >/dev/null 2>&1; then :
15609 gl_cv_header_errno_h_EOVERFLOW=yes
15611 gl_cv_header_errno_h_EOVERFLOW=no
15615 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
15616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h. */
15619 #define _XOPEN_SOURCE_EXTENDED 1
15626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15627 $EGREP "yes" >/dev/null 2>&1; then :
15628 gl_cv_header_errno_h_EOVERFLOW=hidden
15632 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
15633 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
15634 #define _XOPEN_SOURCE_EXTENDED 1
15636 /* The following two lines are a workaround against an autoconf-2.52 bug. */
15638 #include <stdlib.h>
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
15648 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
15649 case $gl_cv_header_errno_h_EOVERFLOW in
15651 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
15654 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
15662 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
15663 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
15669 cat >>confdefs.h <<_ACEOF
15670 #define HAVE_DECL_STRERROR_R $ac_have_decl
15673 for ac_func in strerror_r
15675 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15676 if test "x$ac_cv_func_strerror_r" = xyes; then :
15677 cat >>confdefs.h <<_ACEOF
15678 #define HAVE_STRERROR_R 1
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15685 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
15686 if ${ac_cv_func_strerror_r_char_p+:} false; then :
15687 $as_echo_n "(cached) " >&6
15690 ac_cv_func_strerror_r_char_p=no
15691 if test $ac_cv_have_decl_strerror_r = yes; then
15692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693 /* end confdefs.h. */
15694 $ac_includes_default
15700 char x = *strerror_r (0, buf, sizeof buf);
15701 char *p = strerror_r (0, buf, sizeof buf);
15708 if ac_fn_c_try_compile "$LINENO"; then :
15709 ac_cv_func_strerror_r_char_p=yes
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713 # strerror_r is not declared. Choose between
15714 # systems that have relatively inaccessible declarations for the
15715 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15716 # former has a strerror_r that returns char*, while the latter
15717 # has a strerror_r that returns `int'.
15718 # This test should segfault on the DEC system.
15719 if test "$cross_compiling" = yes; then :
15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h. */
15724 $ac_includes_default
15725 extern char *strerror_r ();
15730 char x = *strerror_r (0, buf, sizeof buf);
15731 return ! isalpha (x);
15736 if ac_fn_c_try_run "$LINENO"; then :
15737 ac_cv_func_strerror_r_char_p=yes
15739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15740 conftest.$ac_objext conftest.beam conftest.$ac_ext
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
15747 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
15748 if test $ac_cv_func_strerror_r_char_p = yes; then
15750 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15755 $as_echo_n "checking for inline... " >&6; }
15756 if ${ac_cv_c_inline+:} false; then :
15757 $as_echo_n "(cached) " >&6
15760 for ac_kw in inline __inline__ __inline; do
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15763 #ifndef __cplusplus
15765 static $ac_kw foo_t static_foo () {return 0; }
15766 $ac_kw foo_t foo () {return 0; }
15770 if ac_fn_c_try_compile "$LINENO"; then :
15771 ac_cv_c_inline=$ac_kw
15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774 test "$ac_cv_c_inline" != no && break
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15779 $as_echo "$ac_cv_c_inline" >&6; }
15781 case $ac_cv_c_inline in
15784 case $ac_cv_c_inline in
15786 *) ac_val=$ac_cv_c_inline;;
15788 cat >>confdefs.h <<_ACEOF
15789 #ifndef __cplusplus
15790 #define inline $ac_val
15797 XGETTEXT_EXTRA_OPTIONS=
15800 if test "X$prefix" = "XNONE"; then
15801 acl_final_prefix="$ac_default_prefix"
15803 acl_final_prefix="$prefix"
15805 if test "X$exec_prefix" = "XNONE"; then
15806 acl_final_exec_prefix='${prefix}'
15808 acl_final_exec_prefix="$exec_prefix"
15810 acl_save_prefix="$prefix"
15811 prefix="$acl_final_prefix"
15812 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15813 prefix="$acl_save_prefix"
15816 # Check whether --with-gnu-ld was given.
15817 if test "${with_gnu_ld+set}" = set; then :
15818 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15823 # Prepare PATH_SEPARATOR.
15824 # The user is always right.
15825 if test "${PATH_SEPARATOR+set}" != set; then
15826 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15827 # contains only /bin. Note that ksh looks also at the FPATH variable,
15828 # so we have to set that as well for the test.
15830 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15831 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15832 || PATH_SEPARATOR=';'
15836 if test "$GCC" = yes; then
15837 # Check if gcc -print-prog-name=ld gives a path.
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15839 $as_echo_n "checking for ld used by GCC... " >&6; }
15842 # gcc leaves a trailing carriage return which upsets mingw
15843 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15845 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15848 # Accept absolute paths.
15849 [\\/]* | [A-Za-z]:[\\/]*)
15850 re_direlt='/[^/][^/]*/\.\./'
15851 # Canonicalize the path of ld
15852 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15853 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15854 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15856 test -z "$LD" && LD="$ac_prog"
15859 # If it fails, then pretend we aren't using GCC.
15863 # If it is relative, then search for the first ld in PATH.
15864 with_gnu_ld=unknown
15867 elif test "$with_gnu_ld" = yes; then
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15869 $as_echo_n "checking for GNU ld... " >&6; }
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15872 $as_echo_n "checking for non-GNU ld... " >&6; }
15874 if ${acl_cv_path_LD+:} false; then :
15875 $as_echo_n "(cached) " >&6
15877 if test -z "$LD"; then
15878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15879 for ac_dir in $PATH; do
15880 test -z "$ac_dir" && ac_dir=.
15881 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15882 acl_cv_path_LD="$ac_dir/$ac_prog"
15883 # Check to see if the program is GNU ld. I'd rather use --version,
15884 # but apparently some GNU ld's only accept -v.
15885 # Break only if it was the GNU/non-GNU ld that we prefer.
15886 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15887 *GNU* | *'with BFD'*)
15888 test "$with_gnu_ld" != no && break ;;
15890 test "$with_gnu_ld" != yes && break ;;
15896 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15900 LD="$acl_cv_path_LD"
15901 if test -n "$LD"; then
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15903 $as_echo "$LD" >&6; }
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15906 $as_echo "no" >&6; }
15908 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15910 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15911 if ${acl_cv_prog_gnu_ld+:} false; then :
15912 $as_echo_n "(cached) " >&6
15914 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15915 case `$LD -v 2>&1 </dev/null` in
15916 *GNU* | *'with BFD'*)
15917 acl_cv_prog_gnu_ld=yes ;;
15919 acl_cv_prog_gnu_ld=no ;;
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15923 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15924 with_gnu_ld=$acl_cv_prog_gnu_ld
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15930 $as_echo_n "checking for shared library run path origin... " >&6; }
15931 if ${acl_cv_rpath+:} false; then :
15932 $as_echo_n "(cached) " >&6
15935 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15936 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15938 rm -f ./conftest.sh
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15943 $as_echo "$acl_cv_rpath" >&6; }
15945 acl_libext="$acl_cv_libext"
15946 acl_shlibext="$acl_cv_shlibext"
15947 acl_libname_spec="$acl_cv_libname_spec"
15948 acl_library_names_spec="$acl_cv_library_names_spec"
15949 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15950 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15951 acl_hardcode_direct="$acl_cv_hardcode_direct"
15952 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15953 # Check whether --enable-rpath was given.
15954 if test "${enable_rpath+set}" = set; then :
15955 enableval=$enable_rpath; :
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15968 $as_echo_n "checking for 64-bit host... " >&6; }
15969 if ${gl_cv_solaris_64bit+:} false; then :
15970 $as_echo_n "(cached) " >&6
15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h. */
15980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15981 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
15982 gl_cv_solaris_64bit=yes
15984 gl_cv_solaris_64bit=no
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15991 $as_echo "$gl_cv_solaris_64bit" >&6; }
15992 if test $gl_cv_solaris_64bit = yes; then
15993 acl_libdirstem=lib/64
15994 case "$host_cpu" in
15995 sparc*) acl_libdirstem2=lib/sparcv9 ;;
15996 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16001 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16002 if test -n "$searchpath"; then
16003 acl_save_IFS="${IFS= }"; IFS=":"
16004 for searchdir in $searchpath; do
16005 if test -d "$searchdir"; then
16006 case "$searchdir" in
16007 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16009 # Better ignore directories of this form. They are misleading.
16011 *) searchdir=`cd "$searchdir" && pwd`
16012 case "$searchdir" in
16013 */lib64 ) acl_libdirstem=lib64 ;;
16018 IFS="$acl_save_IFS"
16022 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16026 gl_threads_api=none
16031 if test "$gl_use_threads" != no; then
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16033 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16034 if ${gl_cv_have_weak+:} false; then :
16035 $as_echo_n "(cached) " >&6
16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h. */
16040 extern void xyzzy ();
16050 if ac_fn_c_try_link "$LINENO"; then :
16051 gl_cv_have_weak=maybe
16053 rm -f core conftest.err conftest.$ac_objext \
16054 conftest$ac_exeext conftest.$ac_ext
16055 if test $gl_cv_have_weak = maybe; then
16056 if test "$cross_compiling" = yes; then :
16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h. */
16060 Extensible Linking Format
16064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16065 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
16066 gl_cv_have_weak="guessing yes"
16068 gl_cv_have_weak="guessing no"
16074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075 /* end confdefs.h. */
16081 return (fputs == NULL);
16084 if ac_fn_c_try_run "$LINENO"; then :
16085 gl_cv_have_weak=yes
16089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16090 conftest.$ac_objext conftest.beam conftest.$ac_ext
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16097 $as_echo "$gl_cv_have_weak" >&6; }
16098 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16099 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16100 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16101 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16102 if test "x$ac_cv_header_pthread_h" = xyes; then :
16103 gl_have_pthread_h=yes
16105 gl_have_pthread_h=no
16109 if test "$gl_have_pthread_h" = yes; then
16110 # Other possible tests:
16111 # -lpthreads (FSU threads, PCthreads)
16114 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16115 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16116 # the second one only in libpthread, and lock.c needs it.
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16119 #include <pthread.h>
16123 pthread_mutex_lock((pthread_mutex_t*)0);
16124 pthread_mutexattr_init((pthread_mutexattr_t*)0);
16129 if ac_fn_c_try_link "$LINENO"; then :
16130 gl_have_pthread=yes
16132 rm -f core conftest.err conftest.$ac_objext \
16133 conftest$ac_exeext conftest.$ac_ext
16134 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16135 # since it is defined as a macro on OSF/1.)
16136 if test -n "$gl_have_pthread"; then
16137 # The program links fine without libpthread. But it may actually
16138 # need to link with libpthread in order to create multiple threads.
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16140 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16141 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16142 $as_echo_n "(cached) " >&6
16144 ac_check_lib_save_LIBS=$LIBS
16145 LIBS="-lpthread $LIBS"
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h. */
16149 /* Override any GCC internal prototype to avoid an error.
16150 Use char because int might match the return type of a GCC
16151 builtin and then its argument prototype would still apply. */
16155 char pthread_kill ();
16159 return pthread_kill ();
16164 if ac_fn_c_try_link "$LINENO"; then :
16165 ac_cv_lib_pthread_pthread_kill=yes
16167 ac_cv_lib_pthread_pthread_kill=no
16169 rm -f core conftest.err conftest.$ac_objext \
16170 conftest$ac_exeext conftest.$ac_ext
16171 LIBS=$ac_check_lib_save_LIBS
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16174 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16175 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16176 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16177 # On Solaris and HP-UX, most pthread functions exist also in libc.
16178 # Therefore pthread_in_use() needs to actually try to create a
16179 # thread: pthread_create from libc will fail, whereas
16180 # pthread_create will actually create a thread.
16184 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
16191 # Some library is needed. Try libpthread and libc_r.
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16193 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16194 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16195 $as_echo_n "(cached) " >&6
16197 ac_check_lib_save_LIBS=$LIBS
16198 LIBS="-lpthread $LIBS"
16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h. */
16202 /* Override any GCC internal prototype to avoid an error.
16203 Use char because int might match the return type of a GCC
16204 builtin and then its argument prototype would still apply. */
16208 char pthread_kill ();
16212 return pthread_kill ();
16217 if ac_fn_c_try_link "$LINENO"; then :
16218 ac_cv_lib_pthread_pthread_kill=yes
16220 ac_cv_lib_pthread_pthread_kill=no
16222 rm -f core conftest.err conftest.$ac_objext \
16223 conftest$ac_exeext conftest.$ac_ext
16224 LIBS=$ac_check_lib_save_LIBS
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16227 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16228 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16229 gl_have_pthread=yes
16230 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
16231 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16234 if test -z "$gl_have_pthread"; then
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
16237 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
16238 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
16239 $as_echo_n "(cached) " >&6
16241 ac_check_lib_save_LIBS=$LIBS
16243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h. */
16246 /* Override any GCC internal prototype to avoid an error.
16247 Use char because int might match the return type of a GCC
16248 builtin and then its argument prototype would still apply. */
16252 char pthread_kill ();
16256 return pthread_kill ();
16261 if ac_fn_c_try_link "$LINENO"; then :
16262 ac_cv_lib_c_r_pthread_kill=yes
16264 ac_cv_lib_c_r_pthread_kill=no
16266 rm -f core conftest.err conftest.$ac_objext \
16267 conftest$ac_exeext conftest.$ac_ext
16268 LIBS=$ac_check_lib_save_LIBS
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
16271 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
16272 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
16273 gl_have_pthread=yes
16274 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
16275 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
16280 if test -n "$gl_have_pthread"; then
16281 gl_threads_api=posix
16283 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
16285 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16286 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16288 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
16297 if test -z "$gl_have_pthread"; then
16298 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
16299 gl_have_solaristhread=
16300 gl_save_LIBS="$LIBS"
16301 LIBS="$LIBS -lthread"
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16305 #include <thread.h>
16316 if ac_fn_c_try_link "$LINENO"; then :
16317 gl_have_solaristhread=yes
16319 rm -f core conftest.err conftest.$ac_objext \
16320 conftest$ac_exeext conftest.$ac_ext
16321 LIBS="$gl_save_LIBS"
16322 if test -n "$gl_have_solaristhread"; then
16323 gl_threads_api=solaris
16325 LTLIBTHREAD=-lthread
16326 LIBMULTITHREAD="$LIBTHREAD"
16327 LTLIBMULTITHREAD="$LTLIBTHREAD"
16329 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
16331 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16333 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
16341 if test "$gl_use_threads" = pth; then
16342 gl_save_CPPFLAGS="$CPPFLAGS"
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
16349 $as_echo_n "checking how to link with libpth... " >&6; }
16350 if ${ac_cv_libpth_libs+:} false; then :
16351 $as_echo_n "(cached) " >&6
16363 acl_save_prefix="$prefix"
16364 prefix="$acl_final_prefix"
16365 acl_save_exec_prefix="$exec_prefix"
16366 exec_prefix="$acl_final_exec_prefix"
16368 eval additional_includedir=\"$includedir\"
16369 eval additional_libdir=\"$libdir\"
16371 exec_prefix="$acl_save_exec_prefix"
16372 prefix="$acl_save_prefix"
16375 # Check whether --with-libpth-prefix was given.
16376 if test "${with_libpth_prefix+set}" = set; then :
16377 withval=$with_libpth_prefix;
16378 if test "X$withval" = "Xno"; then
16381 if test "X$withval" = "X"; then
16383 acl_save_prefix="$prefix"
16384 prefix="$acl_final_prefix"
16385 acl_save_exec_prefix="$exec_prefix"
16386 exec_prefix="$acl_final_exec_prefix"
16388 eval additional_includedir=\"$includedir\"
16389 eval additional_libdir=\"$libdir\"
16391 exec_prefix="$acl_save_exec_prefix"
16392 prefix="$acl_save_prefix"
16395 additional_includedir="$withval/include"
16396 additional_libdir="$withval/$acl_libdirstem"
16397 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16398 && ! test -d "$withval/$acl_libdirstem"; then
16399 additional_libdir="$withval/$acl_libdirstem2"
16413 names_already_handled=
16414 names_next_round='pth '
16415 while test -n "$names_next_round"; do
16416 names_this_round="$names_next_round"
16418 for name in $names_this_round; do
16420 for n in $names_already_handled; do
16421 if test "$n" = "$name"; then
16422 already_handled=yes
16426 if test -z "$already_handled"; then
16427 names_already_handled="$names_already_handled $name"
16428 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16429 eval value=\"\$HAVE_LIB$uppername\"
16430 if test -n "$value"; then
16431 if test "$value" = yes; then
16432 eval value=\"\$LIB$uppername\"
16433 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
16434 eval value=\"\$LTLIB$uppername\"
16435 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
16444 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16445 if test -n "$acl_shlibext"; then
16446 shrext=".$acl_shlibext" # typically: shrext=.so
16450 if test $use_additional = yes; then
16451 dir="$additional_libdir"
16452 if test -n "$acl_shlibext"; then
16453 if test -f "$dir/$libname$shrext"; then
16455 found_so="$dir/$libname$shrext"
16457 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16458 ver=`(cd "$dir" && \
16459 for f in "$libname$shrext".*; do echo "$f"; done \
16460 | sed -e "s,^$libname$shrext\\\\.,," \
16461 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16462 | sed 1q ) 2>/dev/null`
16463 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16465 found_so="$dir/$libname$shrext.$ver"
16468 eval library_names=\"$acl_library_names_spec\"
16469 for f in $library_names; do
16470 if test -f "$dir/$f"; then
16479 if test "X$found_dir" = "X"; then
16480 if test -f "$dir/$libname.$acl_libext"; then
16482 found_a="$dir/$libname.$acl_libext"
16485 if test "X$found_dir" != "X"; then
16486 if test -f "$dir/$libname.la"; then
16487 found_la="$dir/$libname.la"
16491 if test "X$found_dir" = "X"; then
16492 for x in $LDFLAGS $LTLIBPTH; do
16494 acl_save_prefix="$prefix"
16495 prefix="$acl_final_prefix"
16496 acl_save_exec_prefix="$exec_prefix"
16497 exec_prefix="$acl_final_exec_prefix"
16499 exec_prefix="$acl_save_exec_prefix"
16500 prefix="$acl_save_prefix"
16504 dir=`echo "X$x" | sed -e 's/^X-L//'`
16505 if test -n "$acl_shlibext"; then
16506 if test -f "$dir/$libname$shrext"; then
16508 found_so="$dir/$libname$shrext"
16510 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16511 ver=`(cd "$dir" && \
16512 for f in "$libname$shrext".*; do echo "$f"; done \
16513 | sed -e "s,^$libname$shrext\\\\.,," \
16514 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16515 | sed 1q ) 2>/dev/null`
16516 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16518 found_so="$dir/$libname$shrext.$ver"
16521 eval library_names=\"$acl_library_names_spec\"
16522 for f in $library_names; do
16523 if test -f "$dir/$f"; then
16532 if test "X$found_dir" = "X"; then
16533 if test -f "$dir/$libname.$acl_libext"; then
16535 found_a="$dir/$libname.$acl_libext"
16538 if test "X$found_dir" != "X"; then
16539 if test -f "$dir/$libname.la"; then
16540 found_la="$dir/$libname.la"
16545 if test "X$found_dir" != "X"; then
16550 if test "X$found_dir" != "X"; then
16551 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
16552 if test "X$found_so" != "X"; then
16553 if test "$enable_rpath" = no \
16554 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16555 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16556 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16559 for x in $ltrpathdirs; do
16560 if test "X$x" = "X$found_dir"; then
16565 if test -z "$haveit"; then
16566 ltrpathdirs="$ltrpathdirs $found_dir"
16568 if test "$acl_hardcode_direct" = yes; then
16569 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16571 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16572 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16574 for x in $rpathdirs; do
16575 if test "X$x" = "X$found_dir"; then
16580 if test -z "$haveit"; then
16581 rpathdirs="$rpathdirs $found_dir"
16585 for x in $LDFLAGS $LIBPTH; do
16587 acl_save_prefix="$prefix"
16588 prefix="$acl_final_prefix"
16589 acl_save_exec_prefix="$exec_prefix"
16590 exec_prefix="$acl_final_exec_prefix"
16592 exec_prefix="$acl_save_exec_prefix"
16593 prefix="$acl_save_prefix"
16595 if test "X$x" = "X-L$found_dir"; then
16600 if test -z "$haveit"; then
16601 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
16603 if test "$acl_hardcode_minus_L" != no; then
16604 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16606 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
16612 if test "X$found_a" != "X"; then
16613 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
16615 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
16618 additional_includedir=
16619 case "$found_dir" in
16620 */$acl_libdirstem | */$acl_libdirstem/)
16621 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16622 if test "$name" = 'pth'; then
16623 LIBPTH_PREFIX="$basedir"
16625 additional_includedir="$basedir/include"
16627 */$acl_libdirstem2 | */$acl_libdirstem2/)
16628 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16629 if test "$name" = 'pth'; then
16630 LIBPTH_PREFIX="$basedir"
16632 additional_includedir="$basedir/include"
16635 if test "X$additional_includedir" != "X"; then
16636 if test "X$additional_includedir" != "X/usr/include"; then
16638 if test "X$additional_includedir" = "X/usr/local/include"; then
16639 if test -n "$GCC"; then
16641 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16645 if test -z "$haveit"; then
16646 for x in $CPPFLAGS $INCPTH; do
16648 acl_save_prefix="$prefix"
16649 prefix="$acl_final_prefix"
16650 acl_save_exec_prefix="$exec_prefix"
16651 exec_prefix="$acl_final_exec_prefix"
16653 exec_prefix="$acl_save_exec_prefix"
16654 prefix="$acl_save_prefix"
16656 if test "X$x" = "X-I$additional_includedir"; then
16661 if test -z "$haveit"; then
16662 if test -d "$additional_includedir"; then
16663 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
16669 if test -n "$found_la"; then
16670 save_libdir="$libdir"
16671 case "$found_la" in
16672 */* | *\\*) . "$found_la" ;;
16673 *) . "./$found_la" ;;
16675 libdir="$save_libdir"
16676 for dep in $dependency_libs; do
16679 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16680 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16681 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16683 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16684 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16685 if test -n "$GCC"; then
16687 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16691 if test -z "$haveit"; then
16693 for x in $LDFLAGS $LIBPTH; do
16695 acl_save_prefix="$prefix"
16696 prefix="$acl_final_prefix"
16697 acl_save_exec_prefix="$exec_prefix"
16698 exec_prefix="$acl_final_exec_prefix"
16700 exec_prefix="$acl_save_exec_prefix"
16701 prefix="$acl_save_prefix"
16703 if test "X$x" = "X-L$additional_libdir"; then
16708 if test -z "$haveit"; then
16709 if test -d "$additional_libdir"; then
16710 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
16714 for x in $LDFLAGS $LTLIBPTH; do
16716 acl_save_prefix="$prefix"
16717 prefix="$acl_final_prefix"
16718 acl_save_exec_prefix="$exec_prefix"
16719 exec_prefix="$acl_final_exec_prefix"
16721 exec_prefix="$acl_save_exec_prefix"
16722 prefix="$acl_save_prefix"
16724 if test "X$x" = "X-L$additional_libdir"; then
16729 if test -z "$haveit"; then
16730 if test -d "$additional_libdir"; then
16731 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
16738 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16739 if test "$enable_rpath" != no; then
16741 for x in $rpathdirs; do
16742 if test "X$x" = "X$dir"; then
16747 if test -z "$haveit"; then
16748 rpathdirs="$rpathdirs $dir"
16751 for x in $ltrpathdirs; do
16752 if test "X$x" = "X$dir"; then
16757 if test -z "$haveit"; then
16758 ltrpathdirs="$ltrpathdirs $dir"
16763 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16766 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16769 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
16770 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
16776 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
16777 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
16783 if test "X$rpathdirs" != "X"; then
16784 if test -n "$acl_hardcode_libdir_separator"; then
16786 for found_dir in $rpathdirs; do
16787 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16789 acl_save_libdir="$libdir"
16791 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16792 libdir="$acl_save_libdir"
16793 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
16795 for found_dir in $rpathdirs; do
16796 acl_save_libdir="$libdir"
16797 libdir="$found_dir"
16798 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16799 libdir="$acl_save_libdir"
16800 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
16804 if test "X$ltrpathdirs" != "X"; then
16805 for found_dir in $ltrpathdirs; do
16806 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
16815 ac_cv_libpth_libs="$LIBPTH"
16816 ac_cv_libpth_ltlibs="$LTLIBPTH"
16817 ac_cv_libpth_cppflags="$INCPTH"
16818 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
16822 $as_echo "$ac_cv_libpth_libs" >&6; }
16823 LIBPTH="$ac_cv_libpth_libs"
16824 LTLIBPTH="$ac_cv_libpth_ltlibs"
16825 INCPTH="$ac_cv_libpth_cppflags"
16826 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
16828 for element in $INCPTH; do
16830 for x in $CPPFLAGS; do
16832 acl_save_prefix="$prefix"
16833 prefix="$acl_final_prefix"
16834 acl_save_exec_prefix="$exec_prefix"
16835 exec_prefix="$acl_final_exec_prefix"
16837 exec_prefix="$acl_save_exec_prefix"
16838 prefix="$acl_save_prefix"
16840 if test "X$x" = "X$element"; then
16845 if test -z "$haveit"; then
16846 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16858 gl_save_LIBS="$LIBS"
16859 LIBS="$LIBS $LIBPTH"
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h. */
16871 if ac_fn_c_try_link "$LINENO"; then :
16874 rm -f core conftest.err conftest.$ac_objext \
16875 conftest$ac_exeext conftest.$ac_ext
16876 LIBS="$gl_save_LIBS"
16877 if test -n "$gl_have_pth"; then
16879 LIBTHREAD="$LIBPTH"
16880 LTLIBTHREAD="$LTLIBPTH"
16881 LIBMULTITHREAD="$LIBTHREAD"
16882 LTLIBMULTITHREAD="$LTLIBTHREAD"
16884 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
16886 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16887 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16889 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
16896 CPPFLAGS="$gl_save_CPPFLAGS"
16899 if test -z "$gl_have_pthread"; then
16900 case "$gl_use_threads" in
16901 yes | windows | win32) # The 'win32' is for backward compatibility.
16902 if { case "$host_os" in
16907 gl_threads_api=windows
16909 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
16917 $as_echo_n "checking for multithread API to use... " >&6; }
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
16919 $as_echo "$gl_threads_api" >&6; }
16932 GNULIB_CALLOC_POSIX=0;
16933 GNULIB_CANONICALIZE_FILE_NAME=0;
16934 GNULIB_GETLOADAVG=0;
16935 GNULIB_GETSUBOPT=0;
16937 GNULIB_MALLOC_POSIX=0;
16941 GNULIB_MKOSTEMPS=0;
16944 GNULIB_POSIX_OPENPT=0;
16946 GNULIB_PTSNAME_R=0;
16950 GNULIB_REALLOC_POSIX=0;
16957 GNULIB_SYSTEM_POSIX=0;
16963 HAVE_CANONICALIZE_FILE_NAME=1;
16964 HAVE_DECL_GETLOADAVG=1;
16972 HAVE_POSIX_OPENPT=1;
16981 HAVE_DECL_SETENV=1;
16985 HAVE_STRUCT_RANDOM_DATA=1;
16986 HAVE_SYS_LOADAVG_H=0;
16988 HAVE_DECL_UNSETENV=1;
16990 REPLACE_CANONICALIZE_FILE_NAME=0;
16994 REPLACE_PTSNAME_R=0;
16996 REPLACE_RANDOM_R=0;
16998 REPLACE_REALPATH=0;
17001 REPLACE_UNSETENV=0;
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17006 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17007 if ${gl_cv_func_malloc_posix+:} false; then :
17008 $as_echo_n "(cached) " >&6
17011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17012 /* end confdefs.h. */
17017 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17025 if ac_fn_c_try_compile "$LINENO"; then :
17026 gl_cv_func_malloc_posix=yes
17028 gl_cv_func_malloc_posix=no
17030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
17034 $as_echo "$gl_cv_func_malloc_posix" >&6; }
17037 for ac_header in stdlib.h
17039 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17040 if test "x$ac_cv_header_stdlib_h" = xyes; then :
17041 cat >>confdefs.h <<_ACEOF
17042 #define HAVE_STDLIB_H 1
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17050 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17051 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
17052 $as_echo_n "(cached) " >&6
17054 if test "$cross_compiling" = yes; then :
17055 ac_cv_func_malloc_0_nonnull=no
17057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h. */
17059 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17060 # include <stdlib.h>
17068 return ! malloc (0);
17073 if ac_fn_c_try_run "$LINENO"; then :
17074 ac_cv_func_malloc_0_nonnull=yes
17076 ac_cv_func_malloc_0_nonnull=no
17078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17079 conftest.$ac_objext conftest.beam conftest.$ac_ext
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17084 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17085 if test $ac_cv_func_malloc_0_nonnull = yes; then :
17086 gl_cv_func_malloc_0_nonnull=1
17088 gl_cv_func_malloc_0_nonnull=0
17092 cat >>confdefs.h <<_ACEOF
17093 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17099 $as_echo_n "checking for unsigned long long int... " >&6; }
17100 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17101 $as_echo_n "(cached) " >&6
17103 ac_cv_type_unsigned_long_long_int=yes
17104 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h. */
17108 /* For now, do not test the preprocessor; as of 2007 there are too many
17109 implementations with broken preprocessors. Perhaps this can
17110 be revisited in 2012. In the meantime, code should not expect
17111 #if to work with literals wider than 32 bits. */
17112 /* Test literals. */
17113 long long int ll = 9223372036854775807ll;
17114 long long int nll = -9223372036854775807LL;
17115 unsigned long long int ull = 18446744073709551615ULL;
17116 /* Test constant expressions. */
17117 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17119 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17125 /* Test availability of runtime routines for shift and division. */
17126 long long int llmax = 9223372036854775807ll;
17127 unsigned long long int ullmax = 18446744073709551615ull;
17128 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17129 | (llmax / ll) | (llmax % ll)
17130 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17131 | (ullmax / ull) | (ullmax % ull));
17137 if ac_fn_c_try_link "$LINENO"; then :
17140 ac_cv_type_unsigned_long_long_int=no
17142 rm -f core conftest.err conftest.$ac_objext \
17143 conftest$ac_exeext conftest.$ac_ext
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17147 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17148 if test $ac_cv_type_unsigned_long_long_int = yes; then
17150 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17157 $as_echo_n "checking for long long int... " >&6; }
17158 if ${ac_cv_type_long_long_int+:} false; then :
17159 $as_echo_n "(cached) " >&6
17161 ac_cv_type_long_long_int=yes
17162 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17163 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17164 if test $ac_cv_type_long_long_int = yes; then
17165 if test "$cross_compiling" = yes; then :
17168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17169 /* end confdefs.h. */
17170 #include <limits.h>
17173 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17174 # define LLONG_MAX (HALF - 1 + HALF)
17179 long long int n = 1;
17183 long long int m = n << i;
17186 if (LLONG_MAX / 2 < m)
17194 if ac_fn_c_try_run "$LINENO"; then :
17197 ac_cv_type_long_long_int=no
17199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17200 conftest.$ac_objext conftest.beam conftest.$ac_ext
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17207 $as_echo "$ac_cv_type_long_long_int" >&6; }
17208 if test $ac_cv_type_long_long_int = yes; then
17210 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17223 for ac_func in $gl_func_list
17225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17226 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17227 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17228 cat >>confdefs.h <<_ACEOF
17229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17246 GNULIB_RAWMEMCHR=0;
17249 GNULIB_STRCHRNUL=0;
17257 GNULIB_STRCASESTR=0;
17264 GNULIB_MBSCASECMP=0;
17265 GNULIB_MBSNCASECMP=0;
17266 GNULIB_MBSPCASECMP=0;
17267 GNULIB_MBSCASESTR=0;
17274 GNULIB_STRERROR_R=0;
17275 GNULIB_STRSIGNAL=0;
17276 GNULIB_STRVERSCMP=0;
17281 HAVE_DECL_MEMMEM=1;
17283 HAVE_DECL_MEMRCHR=1;
17288 HAVE_DECL_STRDUP=1;
17289 HAVE_DECL_STRNDUP=1;
17290 HAVE_DECL_STRNLEN=1;
17294 HAVE_DECL_STRTOK_R=1;
17295 HAVE_DECL_STRERROR_R=1;
17296 HAVE_DECL_STRSIGNAL=1;
17303 REPLACE_STRCASESTR=0;
17304 REPLACE_STRCHRNUL=0;
17305 REPLACE_STRERROR=0;
17306 REPLACE_STRERROR_R=0;
17310 REPLACE_STRSIGNAL=0;
17311 REPLACE_STRTOK_R=0;
17312 UNDEFINE_STRTOK_R=0;
17318 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
17319 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
17320 # irrelevant for anonymous mappings.
17321 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
17322 if test "x$ac_cv_func_mmap" = xyes; then :
17329 # Try to allow MAP_ANONYMOUS.
17330 gl_have_mmap_anonymous=no
17331 if test $gl_have_mmap = yes; then
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
17333 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
17334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17335 /* end confdefs.h. */
17337 #include <sys/mman.h>
17338 #ifdef MAP_ANONYMOUS
17339 I cant identify this map
17343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17344 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
17345 gl_have_mmap_anonymous=yes
17349 if test $gl_have_mmap_anonymous != yes; then
17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351 /* end confdefs.h. */
17353 #include <sys/mman.h>
17355 I cant identify this map
17359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17360 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
17362 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
17364 gl_have_mmap_anonymous=yes
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
17370 $as_echo "$gl_have_mmap_anonymous" >&6; }
17371 if test $gl_have_mmap_anonymous = yes; then
17373 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
17395 if test $HAVE_MEMCHR = 1; then
17396 # Detect platform-specific bugs in some versions of glibc:
17397 # memchr should not dereference anything with length 0
17398 # http://bugzilla.redhat.com/499689
17399 # memchr should not dereference overestimated length after a match
17400 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
17401 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
17402 # Assume that memchr works on platforms that lack mprotect.
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
17404 $as_echo_n "checking whether memchr works... " >&6; }
17405 if ${gl_cv_func_memchr_works+:} false; then :
17406 $as_echo_n "(cached) " >&6
17408 if test "$cross_compiling" = yes; then :
17409 gl_cv_func_memchr_works="guessing no"
17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17412 /* end confdefs.h. */
17414 #include <string.h>
17415 #if HAVE_SYS_MMAN_H
17416 # include <fcntl.h>
17417 # include <unistd.h>
17418 # include <sys/types.h>
17419 # include <sys/mman.h>
17421 # define MAP_FILE 0
17430 char *fence = NULL;
17431 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17432 # if HAVE_MAP_ANONYMOUS
17433 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17435 # else /* !HAVE_MAP_ANONYMOUS */
17436 const int flags = MAP_FILE | MAP_PRIVATE;
17437 int fd = open ("/dev/zero", O_RDONLY, 0666);
17441 int pagesize = getpagesize ();
17443 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17445 if (two_pages != (char *)(-1)
17446 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17447 fence = two_pages + pagesize;
17452 if (memchr (fence, 0, 0))
17454 strcpy (fence - 9, "12345678");
17455 if (memchr (fence - 9, 0, 79) != fence - 1)
17457 if (memchr (fence - 1, 0, 3) != fence - 1)
17466 if ac_fn_c_try_run "$LINENO"; then :
17467 gl_cv_func_memchr_works=yes
17469 gl_cv_func_memchr_works=no
17471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17472 conftest.$ac_objext conftest.beam conftest.$ac_ext
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
17477 $as_echo "$gl_cv_func_memchr_works" >&6; }
17478 if test "$gl_cv_func_memchr_works" != yes; then
17489 gl_cv_c_multiarch=no
17490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491 /* end confdefs.h. */
17492 #ifndef __APPLE_CC__
17493 not a universal capable compiler
17498 if ac_fn_c_try_compile "$LINENO"; then :
17502 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17503 if test -n "$prev"; then
17505 i?86 | x86_64 | ppc | ppc64)
17506 if test -z "$arch" || test "$arch" = "$word"; then
17509 gl_cv_c_multiarch=yes
17515 if test "x$word" = "x-arch"; then
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523 if test $gl_cv_c_multiarch = yes; then
17524 APPLE_UNIVERSAL_BUILD=1
17526 APPLE_UNIVERSAL_BUILD=0
17531 GNULIB_PTHREAD_SIGMASK=0;
17533 GNULIB_SIGNAL_H_SIGPIPE=0;
17534 GNULIB_SIGPROCMASK=0;
17535 GNULIB_SIGACTION=0;
17536 HAVE_POSIX_SIGNALBLOCKING=1;
17537 HAVE_PTHREAD_SIGMASK=1;
17542 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
17544 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
17546 HAVE_SIGHANDLER_T=1;
17547 REPLACE_PTHREAD_SIGMASK=0;
17551 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
17552 #include <signal.h>
17553 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
17554 #include <sys/types.h>
17557 if test "x$ac_cv_type_sigset_t" = xyes; then :
17559 cat >>confdefs.h <<_ACEOF
17560 #define HAVE_SIGSET_T 1
17563 gl_cv_type_sigset_t=yes
17565 gl_cv_type_sigset_t=no
17568 if test $gl_cv_type_sigset_t != yes; then
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17574 $as_echo_n "checking for ssize_t... " >&6; }
17575 if ${gt_cv_ssize_t+:} false; then :
17576 $as_echo_n "(cached) " >&6
17578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h. */
17580 #include <sys/types.h>
17584 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17590 if ac_fn_c_try_compile "$LINENO"; then :
17595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17598 $as_echo "$gt_cv_ssize_t" >&6; }
17599 if test $gt_cv_ssize_t = no; then
17601 $as_echo "#define ssize_t int" >>confdefs.h
17606 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
17607 if test "x$ac_cv_have_decl_setenv" = xyes; then :
17613 cat >>confdefs.h <<_ACEOF
17614 #define HAVE_DECL_SETENV $ac_have_decl
17632 if test $ac_cv_have_decl_setenv = no; then
17652 for ac_header in search.h
17654 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
17655 if test "x$ac_cv_header_search_h" = xyes; then :
17656 cat >>confdefs.h <<_ACEOF
17657 #define HAVE_SEARCH_H 1
17664 for ac_func in tsearch
17666 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
17667 if test "x$ac_cv_func_tsearch" = xyes; then :
17668 cat >>confdefs.h <<_ACEOF
17669 #define HAVE_TSEARCH 1
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17683 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17684 if ${ac_cv_c_restrict+:} false; then :
17685 $as_echo_n "(cached) " >&6
17687 ac_cv_c_restrict=no
17688 # The order here caters to the fact that C++ does not require restrict.
17689 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h. */
17692 typedef int * int_ptr;
17693 int foo (int_ptr $ac_kw ip) {
17700 int * $ac_kw t = s;
17707 if ac_fn_c_try_compile "$LINENO"; then :
17708 ac_cv_c_restrict=$ac_kw
17710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17711 test "$ac_cv_c_restrict" != no && break
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17716 $as_echo "$ac_cv_c_restrict" >&6; }
17718 case $ac_cv_c_restrict in
17720 no) $as_echo "#define restrict /**/" >>confdefs.h
17722 *) cat >>confdefs.h <<_ACEOF
17723 #define restrict $ac_cv_c_restrict
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17729 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17730 if ${ac_cv_type_uid_t+:} false; then :
17731 $as_echo_n "(cached) " >&6
17733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17734 /* end confdefs.h. */
17735 #include <sys/types.h>
17738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17739 $EGREP "uid_t" >/dev/null 2>&1; then :
17740 ac_cv_type_uid_t=yes
17742 ac_cv_type_uid_t=no
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17748 $as_echo "$ac_cv_type_uid_t" >&6; }
17749 if test $ac_cv_type_uid_t = no; then
17751 $as_echo "#define uid_t int" >>confdefs.h
17754 $as_echo "#define gid_t int" >>confdefs.h
17771 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17772 if test "x$ac_cv_type_pid_t" = xyes; then :
17776 cat >>confdefs.h <<_ACEOF
17791 GNULIB_FPRINTF_POSIX=0;
17807 GNULIB_OBSTACK_PRINTF=0;
17808 GNULIB_OBSTACK_PRINTF_POSIX=0;
17813 GNULIB_PRINTF_POSIX=0;
17822 GNULIB_SPRINTF_POSIX=0;
17823 GNULIB_STDIO_H_NONBLOCKING=0;
17824 GNULIB_STDIO_H_SIGPIPE=0;
17826 GNULIB_VASPRINTF=0;
17831 GNULIB_VFPRINTF_POSIX=0;
17833 GNULIB_VPRINTF_POSIX=0;
17834 GNULIB_VSNPRINTF=0;
17835 GNULIB_VSPRINTF_POSIX=0;
17836 HAVE_DECL_FPURGE=1;
17837 HAVE_DECL_FSEEKO=1;
17838 HAVE_DECL_FTELLO=1;
17839 HAVE_DECL_GETDELIM=1;
17840 HAVE_DECL_GETLINE=1;
17841 HAVE_DECL_OBSTACK_PRINTF=1;
17842 HAVE_DECL_SNPRINTF=1;
17843 HAVE_DECL_VSNPRINTF=1;
17864 REPLACE_GETDELIM=0;
17866 REPLACE_OBSTACK_PRINTF=0;
17872 REPLACE_RENAMEAT=0;
17873 REPLACE_SNPRINTF=0;
17875 REPLACE_STDIO_READ_FUNCS=0;
17876 REPLACE_STDIO_WRITE_FUNCS=0;
17878 REPLACE_VASPRINTF=0;
17879 REPLACE_VDPRINTF=0;
17880 REPLACE_VFPRINTF=0;
17882 REPLACE_VSNPRINTF=0;
17883 REPLACE_VSPRINTF=0;
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
17903 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
17904 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
17905 $as_echo_n "(cached) " >&6
17908 if test "$cross_compiling" = yes; then :
17911 # Guess yes on glibc systems.
17912 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17913 # Guess yes on FreeBSD >= 5.
17914 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
17915 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17916 # Guess yes on MacOS X >= 10.3.
17917 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
17918 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17919 # Guess yes on OpenBSD >= 3.9.
17920 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
17921 gl_cv_func_snprintf_retval_c99="guessing no";;
17922 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17923 # Guess yes on Solaris >= 2.10.
17924 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
17925 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
17926 # Guess yes on AIX >= 4.
17927 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
17928 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17929 # Guess yes on NetBSD >= 3.
17930 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
17931 gl_cv_func_snprintf_retval_c99="guessing no";;
17932 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17933 # Guess yes on BeOS.
17934 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17935 # If we don't know, assume the worst.
17936 *) gl_cv_func_snprintf_retval_c99="guessing no";;
17940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17941 /* end confdefs.h. */
17944 #include <string.h>
17946 # define my_snprintf snprintf
17948 # include <stdarg.h>
17949 static int my_snprintf (char *buf, int size, const char *format, ...)
17953 va_start (args, format);
17954 ret = vsnprintf (buf, size, format, args);
17959 static char buf[100];
17962 strcpy (buf, "ABCDEF");
17963 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
17965 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
17967 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
17972 if ac_fn_c_try_run "$LINENO"; then :
17973 gl_cv_func_snprintf_retval_c99=yes
17975 gl_cv_func_snprintf_retval_c99=no
17977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17978 conftest.$ac_objext conftest.beam conftest.$ac_ext
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
17984 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
17987 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
17988 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
17994 cat >>confdefs.h <<_ACEOF
17995 #define HAVE_DECL_SNPRINTF $ac_have_decl
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18000 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18001 if ${ac_cv_header_stdbool_h+:} false; then :
18002 $as_echo_n "(cached) " >&6
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h. */
18007 #include <stdbool.h>
18009 "error: bool is not defined"
18012 "error: false is not defined"
18015 "error: false is not 0"
18018 "error: true is not defined"
18021 "error: true is not 1"
18023 #ifndef __bool_true_false_are_defined
18024 "error: __bool_true_false_are_defined is not defined"
18027 struct s { _Bool s: 1; _Bool t; } s;
18029 char a[true == 1 ? 1 : -1];
18030 char b[false == 0 ? 1 : -1];
18031 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18032 char d[(bool) 0.5 == true ? 1 : -1];
18033 /* See body of main program for 'e'. */
18034 char f[(_Bool) 0.0 == false ? 1 : -1];
18036 char h[sizeof (_Bool)];
18037 char i[sizeof s.t];
18038 enum { j = false, k = true, l = false * true, m = true * 256 };
18039 /* The following fails for
18040 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18042 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18043 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18044 /* Catch a bug in an HP-UX C compiler. See
18045 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18046 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18058 /* Refer to every declared value, to avoid compiler optimizations. */
18059 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18060 + !m + !n + !o + !p + !q + !pq);
18066 if ac_fn_c_try_compile "$LINENO"; then :
18067 ac_cv_header_stdbool_h=yes
18069 ac_cv_header_stdbool_h=no
18071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18074 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18075 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18076 if test "x$ac_cv_type__Bool" = xyes; then :
18078 cat >>confdefs.h <<_ACEOF
18079 #define HAVE__BOOL 1
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18092 $as_echo_n "checking for wchar_t... " >&6; }
18093 if ${gt_cv_c_wchar_t+:} false; then :
18094 $as_echo_n "(cached) " >&6
18096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097 /* end confdefs.h. */
18098 #include <stddef.h>
18099 wchar_t foo = (wchar_t)'\0';
18108 if ac_fn_c_try_compile "$LINENO"; then :
18109 gt_cv_c_wchar_t=yes
18113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18116 $as_echo "$gt_cv_c_wchar_t" >&6; }
18117 if test $gt_cv_c_wchar_t = yes; then
18119 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18136 if test $ac_cv_type_long_long_int = yes; then
18137 HAVE_LONG_LONG_INT=1
18139 HAVE_LONG_LONG_INT=0
18143 if test $ac_cv_type_unsigned_long_long_int = yes; then
18144 HAVE_UNSIGNED_LONG_LONG_INT=1
18146 HAVE_UNSIGNED_LONG_LONG_INT=0
18157 if test $ac_cv_header_wchar_h = yes; then
18164 if test $ac_cv_header_inttypes_h = yes; then
18171 if test $ac_cv_header_sys_types_h = yes; then
18193 if test $gl_cv_have_include_next = yes; then
18194 gl_cv_next_stdint_h='<'stdint.h'>'
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18197 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18198 if ${gl_cv_next_stdint_h+:} false; then :
18199 $as_echo_n "(cached) " >&6
18202 if test $ac_cv_header_stdint_h = yes; then
18205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18206 /* end confdefs.h. */
18207 #include <stdint.h>
18211 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18212 *) gl_absname_cpp="$ac_cpp" ;;
18217 gl_dirsep_regex='[/\\]'
18220 gl_dirsep_regex='\/'
18223 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18225 gl_header_literal_regex=`echo 'stdint.h' \
18226 | sed -e "$gl_make_literal_regex_sed"`
18227 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18228 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18233 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18234 sed -n "$gl_absolute_header_sed"`'"'
18236 gl_cv_next_stdint_h='<'stdint.h'>'
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18242 $as_echo "$gl_cv_next_stdint_h" >&6; }
18244 NEXT_STDINT_H=$gl_cv_next_stdint_h
18246 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18247 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18248 gl_next_as_first_directive='<'stdint.h'>'
18250 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18251 gl_next_as_first_directive=$gl_cv_next_stdint_h
18253 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18258 if test $ac_cv_header_stdint_h = yes; then
18265 if test $ac_cv_header_stdint_h = yes; then
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18267 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18268 if ${gl_cv_header_working_stdint_h+:} false; then :
18269 $as_echo_n "(cached) " >&6
18271 gl_cv_header_working_stdint_h=no
18272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h. */
18276 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18277 #include <stdint.h>
18278 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18279 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18280 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18284 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18285 included before <wchar.h>. */
18286 #include <stddef.h>
18287 #include <signal.h>
18289 # include <stdio.h>
18291 # include <wchar.h>
18296 int8_t a1 = INT8_MAX;
18297 int8_t a1min = INT8_MIN;
18300 int16_t a2 = INT16_MAX;
18301 int16_t a2min = INT16_MIN;
18304 int32_t a3 = INT32_MAX;
18305 int32_t a3min = INT32_MIN;
18308 int64_t a4 = INT64_MAX;
18309 int64_t a4min = INT64_MIN;
18312 uint8_t b1 = UINT8_MAX;
18314 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18317 uint16_t b2 = UINT16_MAX;
18320 uint32_t b3 = UINT32_MAX;
18323 uint64_t b4 = UINT64_MAX;
18325 int_least8_t c1 = INT8_C (0x7f);
18326 int_least8_t c1max = INT_LEAST8_MAX;
18327 int_least8_t c1min = INT_LEAST8_MIN;
18328 int_least16_t c2 = INT16_C (0x7fff);
18329 int_least16_t c2max = INT_LEAST16_MAX;
18330 int_least16_t c2min = INT_LEAST16_MIN;
18331 int_least32_t c3 = INT32_C (0x7fffffff);
18332 int_least32_t c3max = INT_LEAST32_MAX;
18333 int_least32_t c3min = INT_LEAST32_MIN;
18334 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18335 int_least64_t c4max = INT_LEAST64_MAX;
18336 int_least64_t c4min = INT_LEAST64_MIN;
18337 uint_least8_t d1 = UINT8_C (0xff);
18338 uint_least8_t d1max = UINT_LEAST8_MAX;
18339 uint_least16_t d2 = UINT16_C (0xffff);
18340 uint_least16_t d2max = UINT_LEAST16_MAX;
18341 uint_least32_t d3 = UINT32_C (0xffffffff);
18342 uint_least32_t d3max = UINT_LEAST32_MAX;
18343 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18344 uint_least64_t d4max = UINT_LEAST64_MAX;
18345 int_fast8_t e1 = INT_FAST8_MAX;
18346 int_fast8_t e1min = INT_FAST8_MIN;
18347 int_fast16_t e2 = INT_FAST16_MAX;
18348 int_fast16_t e2min = INT_FAST16_MIN;
18349 int_fast32_t e3 = INT_FAST32_MAX;
18350 int_fast32_t e3min = INT_FAST32_MIN;
18351 int_fast64_t e4 = INT_FAST64_MAX;
18352 int_fast64_t e4min = INT_FAST64_MIN;
18353 uint_fast8_t f1 = UINT_FAST8_MAX;
18354 uint_fast16_t f2 = UINT_FAST16_MAX;
18355 uint_fast32_t f3 = UINT_FAST32_MAX;
18356 uint_fast64_t f4 = UINT_FAST64_MAX;
18358 intptr_t g = INTPTR_MAX;
18359 intptr_t gmin = INTPTR_MIN;
18362 uintptr_t h = UINTPTR_MAX;
18364 intmax_t i = INTMAX_MAX;
18365 uintmax_t j = UINTMAX_MAX;
18367 #include <limits.h> /* for CHAR_BIT */
18368 #define TYPE_MINIMUM(t) \
18369 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18370 #define TYPE_MAXIMUM(t) \
18371 ((t) ((t) 0 < (t) -1 \
18373 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18376 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18377 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18379 /* Detect bug in FreeBSD 6.0 / ia64. */
18380 int check_SIG_ATOMIC:
18381 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18382 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18384 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18386 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18387 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18389 /* Detect bug in mingw. */
18391 WINT_MIN == TYPE_MINIMUM (wint_t)
18392 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18395 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18397 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18398 int check_UINT16_C:
18399 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18401 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18403 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18406 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18409 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18412 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18414 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18415 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18416 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18417 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18418 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18419 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18420 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18421 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18422 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18423 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18424 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18435 if ac_fn_c_try_compile "$LINENO"; then :
18436 if test "$cross_compiling" = yes; then :
18437 gl_cv_header_working_stdint_h=yes
18440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18441 /* end confdefs.h. */
18444 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18445 #include <stdint.h>
18448 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18449 included before <wchar.h>. */
18450 #include <stddef.h>
18451 #include <signal.h>
18453 # include <stdio.h>
18455 # include <wchar.h>
18460 #include <string.h>
18461 #define MVAL(macro) MVAL1(macro)
18462 #define MVAL1(expression) #expression
18463 static const char *macro_values[] =
18497 for (mv = macro_values; *mv != NULL; mv++)
18499 const char *value = *mv;
18500 /* Test whether it looks like a cast expression. */
18501 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18502 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18503 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18504 || strncmp (value, "((int)"/*)*/, 6) == 0
18505 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18506 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18507 return mv - macro_values + 1;
18515 if ac_fn_c_try_run "$LINENO"; then :
18516 gl_cv_header_working_stdint_h=yes
18518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18519 conftest.$ac_objext conftest.beam conftest.$ac_ext
18524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18528 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18530 if test "$gl_cv_header_working_stdint_h" = yes; then
18533 for ac_header in sys/inttypes.h sys/bitypes.h
18535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18536 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18537 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18538 cat >>confdefs.h <<_ACEOF
18539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18546 if test $ac_cv_header_sys_inttypes_h = yes; then
18547 HAVE_SYS_INTTYPES_H=1
18549 HAVE_SYS_INTTYPES_H=0
18552 if test $ac_cv_header_sys_bitypes_h = yes; then
18553 HAVE_SYS_BITYPES_H=1
18555 HAVE_SYS_BITYPES_H=0
18561 if test $APPLE_UNIVERSAL_BUILD = 0; then
18564 for gltype in ptrdiff_t size_t ; do
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18566 $as_echo_n "checking for bit size of $gltype... " >&6; }
18567 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18568 $as_echo_n "(cached) " >&6
18570 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18571 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18572 included before <wchar.h>. */
18573 #include <stddef.h>
18574 #include <signal.h>
18576 # include <stdio.h>
18578 # include <wchar.h>
18581 #include <limits.h>"; then :
18587 eval gl_cv_bitsizeof_${gltype}=\$result
18590 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18592 $as_echo "$ac_res" >&6; }
18593 eval result=\$gl_cv_bitsizeof_${gltype}
18594 if test $result = unknown; then
18597 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18598 cat >>confdefs.h <<_ACEOF
18599 #define BITSIZEOF_${GLTYPE} $result
18602 eval BITSIZEOF_${GLTYPE}=\$result
18609 for gltype in sig_atomic_t wchar_t wint_t ; do
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18611 $as_echo_n "checking for bit size of $gltype... " >&6; }
18612 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18613 $as_echo_n "(cached) " >&6
18615 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18616 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18617 included before <wchar.h>. */
18618 #include <stddef.h>
18619 #include <signal.h>
18621 # include <stdio.h>
18623 # include <wchar.h>
18626 #include <limits.h>"; then :
18632 eval gl_cv_bitsizeof_${gltype}=\$result
18635 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18637 $as_echo "$ac_res" >&6; }
18638 eval result=\$gl_cv_bitsizeof_${gltype}
18639 if test $result = unknown; then
18642 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18643 cat >>confdefs.h <<_ACEOF
18644 #define BITSIZEOF_${GLTYPE} $result
18647 eval BITSIZEOF_${GLTYPE}=\$result
18653 for gltype in sig_atomic_t wchar_t wint_t ; do
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18655 $as_echo_n "checking whether $gltype is signed... " >&6; }
18656 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
18657 $as_echo_n "(cached) " >&6
18659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660 /* end confdefs.h. */
18662 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18663 included before <wchar.h>. */
18664 #include <stddef.h>
18665 #include <signal.h>
18667 # include <stdio.h>
18669 # include <wchar.h>
18672 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18681 if ac_fn_c_try_compile "$LINENO"; then :
18686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18687 eval gl_cv_type_${gltype}_signed=\$result
18690 eval ac_res=\$gl_cv_type_${gltype}_signed
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18692 $as_echo "$ac_res" >&6; }
18693 eval result=\$gl_cv_type_${gltype}_signed
18694 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18695 if test "$result" = yes; then
18696 cat >>confdefs.h <<_ACEOF
18697 #define HAVE_SIGNED_${GLTYPE} 1
18700 eval HAVE_SIGNED_${GLTYPE}=1
18702 eval HAVE_SIGNED_${GLTYPE}=0
18707 gl_cv_type_ptrdiff_t_signed=yes
18708 gl_cv_type_size_t_signed=no
18709 if test $APPLE_UNIVERSAL_BUILD = 0; then
18712 for gltype in ptrdiff_t size_t ; do
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18714 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18715 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18716 $as_echo_n "(cached) " >&6
18718 eval gl_cv_type_${gltype}_suffix=no
18719 eval result=\$gl_cv_type_${gltype}_signed
18720 if test "$result" = yes; then
18725 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18727 '') gltype1='int';;
18728 l) gltype1='long int';;
18729 ll) gltype1='long long int';;
18730 i64) gltype1='__int64';;
18731 u) gltype1='unsigned int';;
18732 ul) gltype1='unsigned long int';;
18733 ull) gltype1='unsigned long long int';;
18734 ui64)gltype1='unsigned __int64';;
18736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18737 /* end confdefs.h. */
18739 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18740 included before <wchar.h>. */
18741 #include <stddef.h>
18742 #include <signal.h>
18744 # include <stdio.h>
18746 # include <wchar.h>
18749 extern $gltype foo;
18750 extern $gltype1 foo;
18759 if ac_fn_c_try_compile "$LINENO"; then :
18760 eval gl_cv_type_${gltype}_suffix=\$glsuf
18762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18763 eval result=\$gl_cv_type_${gltype}_suffix
18764 test "$result" != no && break
18767 eval ac_res=\$gl_cv_type_${gltype}_suffix
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18769 $as_echo "$ac_res" >&6; }
18770 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18771 eval result=\$gl_cv_type_${gltype}_suffix
18772 test "$result" = no && result=
18773 eval ${GLTYPE}_SUFFIX=\$result
18774 cat >>confdefs.h <<_ACEOF
18775 #define ${GLTYPE}_SUFFIX $result
18784 for gltype in sig_atomic_t wchar_t wint_t ; do
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18786 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18787 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18788 $as_echo_n "(cached) " >&6
18790 eval gl_cv_type_${gltype}_suffix=no
18791 eval result=\$gl_cv_type_${gltype}_signed
18792 if test "$result" = yes; then
18797 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18799 '') gltype1='int';;
18800 l) gltype1='long int';;
18801 ll) gltype1='long long int';;
18802 i64) gltype1='__int64';;
18803 u) gltype1='unsigned int';;
18804 ul) gltype1='unsigned long int';;
18805 ull) gltype1='unsigned long long int';;
18806 ui64)gltype1='unsigned __int64';;
18808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18809 /* end confdefs.h. */
18811 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18812 included before <wchar.h>. */
18813 #include <stddef.h>
18814 #include <signal.h>
18816 # include <stdio.h>
18818 # include <wchar.h>
18821 extern $gltype foo;
18822 extern $gltype1 foo;
18831 if ac_fn_c_try_compile "$LINENO"; then :
18832 eval gl_cv_type_${gltype}_suffix=\$glsuf
18834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18835 eval result=\$gl_cv_type_${gltype}_suffix
18836 test "$result" != no && break
18839 eval ac_res=\$gl_cv_type_${gltype}_suffix
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18841 $as_echo "$ac_res" >&6; }
18842 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18843 eval result=\$gl_cv_type_${gltype}_suffix
18844 test "$result" = no && result=
18845 eval ${GLTYPE}_SUFFIX=\$result
18846 cat >>confdefs.h <<_ACEOF
18847 #define ${GLTYPE}_SUFFIX $result
18854 if test $BITSIZEOF_WINT_T -lt 32; then
18855 BITSIZEOF_WINT_T=32
18861 if test -n "$STDINT_H"; then
18862 GL_GENERATE_STDINT_H_TRUE=
18863 GL_GENERATE_STDINT_H_FALSE='#'
18865 GL_GENERATE_STDINT_H_TRUE='#'
18866 GL_GENERATE_STDINT_H_FALSE=
18871 REPLACE_STRERROR_0=0
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
18873 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
18874 if ${gl_cv_func_strerror_0_works+:} false; then :
18875 $as_echo_n "(cached) " >&6
18877 if test "$cross_compiling" = yes; then :
18878 gl_cv_func_strerror_0_works="guessing no"
18880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18881 /* end confdefs.h. */
18882 #include <string.h>
18891 str = strerror (0);
18892 if (!*str) result |= 1;
18893 if (errno) result |= 2;
18894 if (strstr (str, "nknown") || strstr (str, "ndefined"))
18901 if ac_fn_c_try_run "$LINENO"; then :
18902 gl_cv_func_strerror_0_works=yes
18904 gl_cv_func_strerror_0_works=no
18906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18907 conftest.$ac_objext conftest.beam conftest.$ac_ext
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
18913 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
18914 if test "$gl_cv_func_strerror_0_works" != yes; then
18915 REPLACE_STRERROR_0=1
18917 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
18937 if test $gl_cv_have_include_next = yes; then
18938 gl_cv_next_string_h='<'string.h'>'
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
18941 $as_echo_n "checking absolute name of <string.h>... " >&6; }
18942 if ${gl_cv_next_string_h+:} false; then :
18943 $as_echo_n "(cached) " >&6
18946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947 /* end confdefs.h. */
18948 #include <string.h>
18952 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18953 *) gl_absname_cpp="$ac_cpp" ;;
18958 gl_dirsep_regex='[/\\]'
18961 gl_dirsep_regex='\/'
18964 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18966 gl_header_literal_regex=`echo 'string.h' \
18967 | sed -e "$gl_make_literal_regex_sed"`
18968 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18969 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18974 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18975 sed -n "$gl_absolute_header_sed"`'"'
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
18980 $as_echo "$gl_cv_next_string_h" >&6; }
18982 NEXT_STRING_H=$gl_cv_next_string_h
18984 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18985 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18986 gl_next_as_first_directive='<'string.h'>'
18988 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18989 gl_next_as_first_directive=$gl_cv_next_string_h
18991 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
18998 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
18999 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19001 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19002 if eval \${$as_gl_Symbol+:} false; then :
19003 $as_echo_n "(cached) " >&6
19005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19006 /* end confdefs.h. */
19007 #include <string.h>
19018 if ac_fn_c_try_compile "$LINENO"; then :
19019 eval "$as_gl_Symbol=yes"
19021 eval "$as_gl_Symbol=no"
19023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19025 eval ac_res=\$$as_gl_Symbol
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19027 $as_echo "$ac_res" >&6; }
19028 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19029 cat >>confdefs.h <<_ACEOF
19030 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19033 eval ac_cv_have_decl_$gl_func=yes
19039 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
19040 if test "x$ac_cv_have_decl_strndup" = xyes; then :
19046 cat >>confdefs.h <<_ACEOF
19047 #define HAVE_DECL_STRNDUP $ac_have_decl
19057 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
19058 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
19064 cat >>confdefs.h <<_ACEOF
19065 #define HAVE_DECL_STRNLEN $ac_have_decl
19070 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
19071 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
19077 cat >>confdefs.h <<_ACEOF
19078 #define HAVE_DECL_STRSIGNAL $ac_have_decl
19082 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
19083 /* NetBSD declares sys_siglist in unistd.h. */
19084 #ifdef HAVE_UNISTD_H
19085 # include <unistd.h>
19089 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
19095 cat >>confdefs.h <<_ACEOF
19096 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
19125 GNULIB_UTIMENSAT=0;
19139 REPLACE_FUTIMENS=0;
19145 REPLACE_UTIMENSAT=0;
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19148 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19149 if ${ac_cv_header_stat_broken+:} false; then :
19150 $as_echo_n "(cached) " >&6
19152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19153 /* end confdefs.h. */
19154 #include <sys/types.h>
19155 #include <sys/stat.h>
19157 #if defined S_ISBLK && defined S_IFDIR
19158 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19161 #if defined S_ISBLK && defined S_IFCHR
19162 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19165 #if defined S_ISLNK && defined S_IFREG
19166 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19169 #if defined S_ISSOCK && defined S_IFREG
19170 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19174 if ac_fn_c_try_compile "$LINENO"; then :
19175 ac_cv_header_stat_broken=no
19177 ac_cv_header_stat_broken=yes
19179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19182 $as_echo "$ac_cv_header_stat_broken" >&6; }
19183 if test $ac_cv_header_stat_broken = yes; then
19185 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19194 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19195 if test "x$ac_cv_type_mode_t" = xyes; then :
19199 cat >>confdefs.h <<_ACEOF
19206 GNULIB_GETTIMEOFDAY=0;
19207 HAVE_GETTIMEOFDAY=1;
19208 HAVE_STRUCT_TIMEVAL=1;
19210 REPLACE_GETTIMEOFDAY=0;
19211 REPLACE_STRUCT_TIMEVAL=0;
19243 if test $gl_cv_have_include_next = yes; then
19244 gl_cv_next_sys_time_h='<'sys/time.h'>'
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19247 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19248 if ${gl_cv_next_sys_time_h+:} false; then :
19249 $as_echo_n "(cached) " >&6
19252 if test $ac_cv_header_sys_time_h = yes; then
19255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19256 /* end confdefs.h. */
19257 #include <sys/time.h>
19261 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19262 *) gl_absname_cpp="$ac_cpp" ;;
19267 gl_dirsep_regex='[/\\]'
19270 gl_dirsep_regex='\/'
19273 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19275 gl_header_literal_regex=`echo 'sys/time.h' \
19276 | sed -e "$gl_make_literal_regex_sed"`
19277 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19278 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19283 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19284 sed -n "$gl_absolute_header_sed"`'"'
19286 gl_cv_next_sys_time_h='<'sys/time.h'>'
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19292 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19294 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
19296 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19297 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19298 gl_next_as_first_directive='<'sys/time.h'>'
19300 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19301 gl_next_as_first_directive=$gl_cv_next_sys_time_h
19303 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
19309 if test $ac_cv_header_sys_time_h != yes; then
19323 if test $ac_cv_header_sys_socket_h != yes; then
19324 for ac_header in winsock2.h
19326 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19327 if test "x$ac_cv_header_winsock2_h" = xyes; then :
19328 cat >>confdefs.h <<_ACEOF
19329 #define HAVE_WINSOCK2_H 1
19337 if test "$ac_cv_header_winsock2_h" = yes; then
19339 UNISTD_H_HAVE_WINSOCK2_H=1
19340 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19347 $as_echo_n "checking for struct timeval... " >&6; }
19348 if ${gl_cv_sys_struct_timeval+:} false; then :
19349 $as_echo_n "(cached) " >&6
19351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h. */
19353 #if HAVE_SYS_TIME_H
19354 #include <sys/time.h>
19357 #if HAVE_WINSOCK2_H
19358 # include <winsock2.h>
19364 static struct timeval x; x.tv_sec = x.tv_usec;
19369 if ac_fn_c_try_compile "$LINENO"; then :
19370 gl_cv_sys_struct_timeval=yes
19372 gl_cv_sys_struct_timeval=no
19374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19378 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19379 if test $gl_cv_sys_struct_timeval != yes; then
19380 HAVE_STRUCT_TIMEVAL=0
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct struct timeval.tv_sec member" >&5
19383 $as_echo_n "checking for correct struct timeval.tv_sec member... " >&6; }
19384 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
19385 $as_echo_n "(cached) " >&6
19387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19388 /* end confdefs.h. */
19389 #if HAVE_SYS_TIME_H
19390 #include <sys/time.h>
19393 #if HAVE_WINSOCK2_H
19394 # include <winsock2.h>
19400 static struct timeval x;
19401 typedef int verify_tv_sec_type[sizeof (x.tv_sec) == sizeof (time_t) ? 1 : -1];
19407 if ac_fn_c_try_compile "$LINENO"; then :
19408 gl_cv_sys_struct_timeval_tv_sec=yes
19410 gl_cv_sys_struct_timeval_tv_sec=no
19412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19416 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19417 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19418 REPLACE_STRUCT_TIMEVAL=1
19423 for gl_func in gettimeofday; do
19424 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19426 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19427 if eval \${$as_gl_Symbol+:} false; then :
19428 $as_echo_n "(cached) " >&6
19430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19431 /* end confdefs.h. */
19433 #if HAVE_SYS_TIME_H
19434 # include <sys/time.h>
19447 if ac_fn_c_try_compile "$LINENO"; then :
19448 eval "$as_gl_Symbol=yes"
19450 eval "$as_gl_Symbol=no"
19452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19454 eval ac_res=\$$as_gl_Symbol
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19456 $as_echo "$ac_res" >&6; }
19457 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19458 cat >>confdefs.h <<_ACEOF
19459 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19462 eval ac_cv_have_decl_$gl_func=yes
19477 GNULIB_NANOSLEEP=0;
19481 HAVE_DECL_LOCALTIME_R=1;
19485 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19486 REPLACE_MKTIME=GNULIB_PORTCHECK;
19487 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19488 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19499 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19500 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
19501 $as_echo_n "(cached) " >&6
19503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19504 /* end confdefs.h. */
19510 static struct timespec x; x.tv_sec = x.tv_nsec;
19515 if ac_fn_c_try_compile "$LINENO"; then :
19516 gl_cv_sys_struct_timespec_in_time_h=yes
19518 gl_cv_sys_struct_timespec_in_time_h=no
19520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19523 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19525 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19526 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19527 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19528 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19529 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19532 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19533 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
19534 $as_echo_n "(cached) " >&6
19536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19537 /* end confdefs.h. */
19538 #include <sys/time.h>
19543 static struct timespec x; x.tv_sec = x.tv_nsec;
19548 if ac_fn_c_try_compile "$LINENO"; then :
19549 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19551 gl_cv_sys_struct_timespec_in_sys_time_h=no
19553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19556 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19557 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19558 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19561 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19562 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
19563 $as_echo_n "(cached) " >&6
19565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19566 /* end confdefs.h. */
19567 #include <pthread.h>
19572 static struct timespec x; x.tv_sec = x.tv_nsec;
19577 if ac_fn_c_try_compile "$LINENO"; then :
19578 gl_cv_sys_struct_timespec_in_pthread_h=yes
19580 gl_cv_sys_struct_timespec_in_pthread_h=no
19582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19585 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19586 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19587 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19606 if test $gl_cv_have_include_next = yes; then
19607 gl_cv_next_time_h='<'time.h'>'
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19610 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19611 if ${gl_cv_next_time_h+:} false; then :
19612 $as_echo_n "(cached) " >&6
19615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19616 /* end confdefs.h. */
19621 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19622 *) gl_absname_cpp="$ac_cpp" ;;
19627 gl_dirsep_regex='[/\\]'
19630 gl_dirsep_regex='\/'
19633 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19635 gl_header_literal_regex=`echo 'time.h' \
19636 | sed -e "$gl_make_literal_regex_sed"`
19637 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19638 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19643 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19644 sed -n "$gl_absolute_header_sed"`'"'
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19649 $as_echo "$gl_cv_next_time_h" >&6; }
19651 NEXT_TIME_H=$gl_cv_next_time_h
19653 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19654 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19655 gl_next_as_first_directive='<'time.h'>'
19657 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19658 gl_next_as_first_directive=$gl_cv_next_time_h
19660 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19668 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
19669 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
19675 cat >>confdefs.h <<_ACEOF
19676 #define HAVE_DECL_UNSETENV $ac_have_decl
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19687 $as_echo_n "checking for wint_t... " >&6; }
19688 if ${gt_cv_c_wint_t+:} false; then :
19689 $as_echo_n "(cached) " >&6
19691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19692 /* end confdefs.h. */
19694 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19696 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
19697 before <wchar.h>. */
19698 #include <stddef.h>
19702 wint_t foo = (wchar_t)'\0';
19711 if ac_fn_c_try_compile "$LINENO"; then :
19716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19719 $as_echo "$gt_cv_c_wint_t" >&6; }
19720 if test $gt_cv_c_wint_t = yes; then
19722 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19739 if test $ac_cv_header_features_h = yes; then
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19748 $as_echo_n "checking for inttypes.h... " >&6; }
19749 if ${gl_cv_header_inttypes_h+:} false; then :
19750 $as_echo_n "(cached) " >&6
19752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19753 /* end confdefs.h. */
19755 #include <sys/types.h>
19756 #include <inttypes.h>
19761 uintmax_t i = (uintmax_t) -1; return !i;
19766 if ac_fn_c_try_compile "$LINENO"; then :
19767 gl_cv_header_inttypes_h=yes
19769 gl_cv_header_inttypes_h=no
19771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19774 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19775 if test $gl_cv_header_inttypes_h = yes; then
19777 cat >>confdefs.h <<_ACEOF
19778 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19785 $as_echo_n "checking for stdint.h... " >&6; }
19786 if ${gl_cv_header_stdint_h+:} false; then :
19787 $as_echo_n "(cached) " >&6
19789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h. */
19791 #include <sys/types.h>
19792 #include <stdint.h>
19796 uintmax_t i = (uintmax_t) -1; return !i;
19801 if ac_fn_c_try_compile "$LINENO"; then :
19802 gl_cv_header_stdint_h=yes
19804 gl_cv_header_stdint_h=no
19806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19809 $as_echo "$gl_cv_header_stdint_h" >&6; }
19810 if test $gl_cv_header_stdint_h = yes; then
19812 cat >>confdefs.h <<_ACEOF
19813 #define HAVE_STDINT_H_WITH_UINTMAX 1
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19822 $as_echo_n "checking for intmax_t... " >&6; }
19823 if ${gt_cv_c_intmax_t+:} false; then :
19824 $as_echo_n "(cached) " >&6
19826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19827 /* end confdefs.h. */
19829 #include <stddef.h>
19830 #include <stdlib.h>
19831 #if HAVE_STDINT_H_WITH_UINTMAX
19832 #include <stdint.h>
19834 #if HAVE_INTTYPES_H_WITH_UINTMAX
19835 #include <inttypes.h>
19841 intmax_t x = -1; return !x;
19846 if ac_fn_c_try_compile "$LINENO"; then :
19847 gt_cv_c_intmax_t=yes
19849 gt_cv_c_intmax_t=no
19851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19854 $as_echo "$gt_cv_c_intmax_t" >&6; }
19855 if test $gt_cv_c_intmax_t = yes; then
19857 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19861 test $ac_cv_type_long_long_int = yes \
19862 && ac_type='long long' \
19865 cat >>confdefs.h <<_ACEOF
19866 #define intmax_t $ac_type
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
19873 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
19874 if ${gl_cv_cc_double_expbit0+:} false; then :
19875 $as_echo_n "(cached) " >&6
19878 if test "$cross_compiling" = yes; then :
19880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19881 /* end confdefs.h. */
19883 #if defined arm || defined __arm || defined __arm__
19888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19889 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
19890 gl_cv_cc_double_expbit0="unknown"
19894 if ${ac_cv_c_bigendian+:} false; then :
19895 $as_echo_n "(cached) " >&6
19897 ac_cv_c_bigendian=unknown
19898 # See if we're dealing with a universal compiler.
19899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19900 /* end confdefs.h. */
19901 #ifndef __APPLE_CC__
19902 not a universal capable compiler
19907 if ac_fn_c_try_compile "$LINENO"; then :
19909 # Check for potential -arch flags. It is not universal unless
19910 # there are at least two -arch flags with different values.
19913 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19914 if test -n "$ac_prev"; then
19916 i?86 | x86_64 | ppc | ppc64)
19917 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19920 ac_cv_c_bigendian=universal
19926 elif test "x$ac_word" = "x-arch"; then
19931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19932 if test $ac_cv_c_bigendian = unknown; then
19933 # See if sys/param.h defines the BYTE_ORDER macro.
19934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935 /* end confdefs.h. */
19936 #include <sys/types.h>
19937 #include <sys/param.h>
19942 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19943 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19945 bogus endian macros
19952 if ac_fn_c_try_compile "$LINENO"; then :
19953 # It does; now see whether it defined to BIG_ENDIAN or not.
19954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19955 /* end confdefs.h. */
19956 #include <sys/types.h>
19957 #include <sys/param.h>
19962 #if BYTE_ORDER != BIG_ENDIAN
19970 if ac_fn_c_try_compile "$LINENO"; then :
19971 ac_cv_c_bigendian=yes
19973 ac_cv_c_bigendian=no
19975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19979 if test $ac_cv_c_bigendian = unknown; then
19980 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
19981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19982 /* end confdefs.h. */
19983 #include <limits.h>
19988 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
19989 bogus endian macros
19996 if ac_fn_c_try_compile "$LINENO"; then :
19997 # It does; now see whether it defined to _BIG_ENDIAN or not.
19998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19999 /* end confdefs.h. */
20000 #include <limits.h>
20005 #ifndef _BIG_ENDIAN
20013 if ac_fn_c_try_compile "$LINENO"; then :
20014 ac_cv_c_bigendian=yes
20016 ac_cv_c_bigendian=no
20018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20022 if test $ac_cv_c_bigendian = unknown; then
20023 # Compile a test program.
20024 if test "$cross_compiling" = yes; then :
20025 # Try to guess by grepping values from an object file.
20026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027 /* end confdefs.h. */
20028 short int ascii_mm[] =
20029 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20030 short int ascii_ii[] =
20031 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20032 int use_ascii (int i) {
20033 return ascii_mm[i] + ascii_ii[i];
20035 short int ebcdic_ii[] =
20036 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20037 short int ebcdic_mm[] =
20038 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20039 int use_ebcdic (int i) {
20040 return ebcdic_mm[i] + ebcdic_ii[i];
20047 return use_ascii (foo) == use_ebcdic (foo);
20052 if ac_fn_c_try_compile "$LINENO"; then :
20053 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20054 ac_cv_c_bigendian=yes
20056 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20057 if test "$ac_cv_c_bigendian" = unknown; then
20058 ac_cv_c_bigendian=no
20060 # finding both strings is unlikely to happen, but who knows?
20061 ac_cv_c_bigendian=unknown
20065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20068 /* end confdefs.h. */
20069 $ac_includes_default
20074 /* Are we little or big endian? From Harbison&Steele. */
20078 char c[sizeof (long int)];
20081 return u.c[sizeof (long int) - 1] == 1;
20087 if ac_fn_c_try_run "$LINENO"; then :
20088 ac_cv_c_bigendian=no
20090 ac_cv_c_bigendian=yes
20092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20093 conftest.$ac_objext conftest.beam conftest.$ac_ext
20099 case $ac_cv_c_bigendian in #(
20101 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
20103 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
20106 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20110 gl_cv_cc_double_expbit0="unknown" ;;
20119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20120 /* end confdefs.h. */
20123 #include <stddef.h>
20125 #include <string.h>
20127 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20128 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
20129 static unsigned int ored_words[NWORDS];
20130 static unsigned int anded_words[NWORDS];
20131 static void add_to_ored_words (double x)
20135 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
20136 memset (&m, 0, sizeof (memory_double));
20138 for (i = 0; i < NWORDS; i++)
20140 ored_words[i] |= m.word[i];
20141 anded_words[i] &= m.word[i];
20147 FILE *fp = fopen ("conftest.out", "w");
20150 for (j = 0; j < NWORDS; j++)
20151 anded_words[j] = ~ (unsigned int) 0;
20152 add_to_ored_words (0.25);
20153 add_to_ored_words (0.5);
20154 add_to_ored_words (1.0);
20155 add_to_ored_words (2.0);
20156 add_to_ored_words (4.0);
20157 /* Remove bits that are common (e.g. if representation of the first mantissa
20158 bit is explicit). */
20159 for (j = 0; j < NWORDS; j++)
20160 ored_words[j] &= ~anded_words[j];
20161 /* Now find the nonzero word. */
20162 for (j = 0; j < NWORDS; j++)
20163 if (ored_words[j] != 0)
20168 for (i = j + 1; i < NWORDS; i++)
20169 if (ored_words[i] != 0)
20171 fprintf (fp, "unknown");
20172 return (fclose (fp) != 0);
20175 if ((ored_words[j] >> i) & 1)
20177 fprintf (fp, "word %d bit %d", (int) j, (int) i);
20178 return (fclose (fp) != 0);
20181 fprintf (fp, "unknown");
20182 return (fclose (fp) != 0);
20186 if ac_fn_c_try_run "$LINENO"; then :
20187 gl_cv_cc_double_expbit0=`cat conftest.out`
20189 gl_cv_cc_double_expbit0="unknown"
20191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20192 conftest.$ac_objext conftest.beam conftest.$ac_ext
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
20199 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
20200 case "$gl_cv_cc_double_expbit0" in
20202 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20203 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
20205 cat >>confdefs.h <<_ACEOF
20206 #define DBL_EXPBIT0_WORD $word
20210 cat >>confdefs.h <<_ACEOF
20211 #define DBL_EXPBIT0_BIT $bit
20223 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
20225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20226 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20227 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20228 cat >>confdefs.h <<_ACEOF
20229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20235 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
20237 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
20243 cat >>confdefs.h <<_ACEOF
20244 #define HAVE_DECL__SNPRINTF $ac_have_decl
20249 case "$gl_cv_func_snprintf_retval_c99" in
20252 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
20263 GNULIB_MBSRTOWCS=0;
20264 GNULIB_MBSNRTOWCS=0;
20266 GNULIB_WCSRTOMBS=0;
20267 GNULIB_WCSNRTOMBS=0;
20284 GNULIB_WCSCASECMP=0;
20285 GNULIB_WCSNCASECMP=0;
20322 HAVE_WCSNCASECMP=1;
20335 HAVE_DECL_WCWIDTH=1;
20336 REPLACE_MBSTATE_T=0;
20342 REPLACE_MBSRTOWCS=0;
20343 REPLACE_MBSNRTOWCS=0;
20345 REPLACE_WCSRTOMBS=0;
20346 REPLACE_WCSNRTOMBS=0;
20348 REPLACE_WCSWIDTH=0;
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
20352 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
20353 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
20354 $as_echo_n "(cached) " >&6
20356 gl_cv_header_wchar_h_correct_inline=yes
20357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20358 /* end confdefs.h. */
20360 #define wcstod renamed_wcstod
20361 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20363 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20364 included before <wchar.h>. */
20365 #include <stddef.h>
20369 extern int zero (void);
20370 int main () { return zero(); }
20373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20374 (eval $ac_compile) 2>&5
20376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20377 test $ac_status = 0; }; then
20378 mv conftest.$ac_objext conftest1.$ac_objext
20379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20380 /* end confdefs.h. */
20382 #define wcstod renamed_wcstod
20383 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20385 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20386 included before <wchar.h>. */
20387 #include <stddef.h>
20391 int zero (void) { return 0; }
20394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20395 (eval $ac_compile) 2>&5
20397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20398 test $ac_status = 0; }; then
20399 mv conftest.$ac_objext conftest2.$ac_objext
20400 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
20403 gl_cv_header_wchar_h_correct_inline=no
20407 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
20411 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
20412 if test $gl_cv_header_wchar_h_correct_inline = no; then
20413 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
20414 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
20415 C99 mode. You have four options:
20416 - Add the flag -fgnu89-inline to CC and reconfigure, or
20417 - Fix your include files, using parts of
20418 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
20419 - Use a gcc version older than 4.3, or
20420 - Don't use the flags -std=c99 or -std=gnu99.
20421 Configuration aborted." "$LINENO" 5
20426 GL_COND_LIBTOOL_TRUE=
20427 GL_COND_LIBTOOL_FALSE='#'
20429 GL_COND_LIBTOOL_TRUE='#'
20430 GL_COND_LIBTOOL_FALSE=
20433 gl_cond_libtool=true
20434 gl_m4_base='gnulib/m4'
20444 gl_source_base='gnulib/lib'
20447 if test $ac_cv_func_alloca_works = no; then
20451 # Define an additional variable used in the Makefile substitution.
20452 if test $ac_cv_working_alloca_h = yes; then
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20454 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20455 if ${gl_cv_rpl_alloca+:} false; then :
20456 $as_echo_n "(cached) " >&6
20459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20460 /* end confdefs.h. */
20462 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20468 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20469 gl_cv_rpl_alloca=yes
20471 gl_cv_rpl_alloca=no
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20478 $as_echo "$gl_cv_rpl_alloca" >&6; }
20479 if test $gl_cv_rpl_alloca = yes; then
20481 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20491 if test -n "$ALLOCA_H"; then
20492 GL_GENERATE_ALLOCA_H_TRUE=
20493 GL_GENERATE_ALLOCA_H_FALSE='#'
20495 GL_GENERATE_ALLOCA_H_TRUE='#'
20496 GL_GENERATE_ALLOCA_H_FALSE=
20505 cat >>confdefs.h <<_ACEOF
20506 #define GNULIB_DIRNAME 1
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
20517 $as_echo_n "checking whether // is distinct from /... " >&6; }
20518 if ${gl_cv_double_slash_root+:} false; then :
20519 $as_echo_n "(cached) " >&6
20521 if test x"$cross_compiling" = xyes ; then
20522 # When cross-compiling, there is no way to tell whether // is special
20523 # short of a list of hosts. However, the only known hosts to date
20524 # that have a distinct // are Apollo DomainOS (too old to port to),
20525 # Cygwin, and z/OS. If anyone knows of another system for which // has
20526 # special semantics and is distinct from /, please report it to
20527 # <bug-gnulib@gnu.org>.
20529 *-cygwin | i370-ibm-openedition)
20530 gl_cv_double_slash_root=yes ;;
20532 # Be optimistic and assume that / and // are the same when we
20534 gl_cv_double_slash_root='unknown, assuming no' ;;
20537 set x `ls -di / // 2>/dev/null`
20538 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
20539 gl_cv_double_slash_root=no
20541 gl_cv_double_slash_root=yes
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
20546 $as_echo "$gl_cv_double_slash_root" >&6; }
20547 if test "$gl_cv_double_slash_root" = yes; then
20549 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
20565 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
20572 $as_echo_n "checking for error_at_line... " >&6; }
20573 if ${ac_cv_lib_error_at_line+:} false; then :
20574 $as_echo_n "(cached) " >&6
20576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20577 /* end confdefs.h. */
20582 error_at_line (0, 0, "", 0, "an error occurred");
20587 if ac_fn_c_try_link "$LINENO"; then :
20588 ac_cv_lib_error_at_line=yes
20590 ac_cv_lib_error_at_line=no
20592 rm -f core conftest.err conftest.$ac_objext \
20593 conftest$ac_exeext conftest.$ac_ext
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
20596 $as_echo "$ac_cv_lib_error_at_line" >&6; }
20598 if test $ac_cv_lib_error_at_line = no; then
20607 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
20617 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
20621 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
20627 REPLACE_FLOAT_LDBL=0
20629 aix* | beos* | openbsd* | mirbsd* | irix*)
20633 case "$host_cpu" in
20638 # On x86_64 systems, the C compiler may still be generating
20640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641 /* end confdefs.h. */
20642 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
20646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20647 $EGREP "yes" >/dev/null 2>&1; then :
20658 case "$host_cpu" in
20666 aix* | freebsd* | linux*)
20667 if test -n "$FLOAT_H"; then
20668 REPLACE_FLOAT_LDBL=1
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
20675 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
20676 if ${gl_cv_func_itold_works+:} false; then :
20677 $as_echo_n "(cached) " >&6
20680 if test "$cross_compiling" = yes; then :
20683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20684 /* end confdefs.h. */
20685 #if defined __LP64__ || defined __arch64__
20689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20690 $EGREP "yes" >/dev/null 2>&1; then :
20691 gl_cv_func_itold_works="guessing no"
20693 gl_cv_func_itold_works="guessing yes"
20698 *) gl_cv_func_itold_works="guessing yes" ;;
20702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20703 /* end confdefs.h. */
20706 volatile long double ld;
20715 if ac_fn_c_try_run "$LINENO"; then :
20716 gl_cv_func_itold_works=yes
20718 gl_cv_func_itold_works=no
20720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20721 conftest.$ac_objext conftest.beam conftest.$ac_ext
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
20727 $as_echo "$gl_cv_func_itold_works" >&6; }
20728 case "$gl_cv_func_itold_works" in
20735 if test -n "$FLOAT_H"; then
20744 if test $gl_cv_have_include_next = yes; then
20745 gl_cv_next_float_h='<'float.h'>'
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
20748 $as_echo_n "checking absolute name of <float.h>... " >&6; }
20749 if ${gl_cv_next_float_h+:} false; then :
20750 $as_echo_n "(cached) " >&6
20753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20754 /* end confdefs.h. */
20759 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20760 *) gl_absname_cpp="$ac_cpp" ;;
20765 gl_dirsep_regex='[/\\]'
20768 gl_dirsep_regex='\/'
20771 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20773 gl_header_literal_regex=`echo 'float.h' \
20774 | sed -e "$gl_make_literal_regex_sed"`
20775 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20776 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20781 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20782 sed -n "$gl_absolute_header_sed"`'"'
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
20787 $as_echo "$gl_cv_next_float_h" >&6; }
20789 NEXT_FLOAT_H=$gl_cv_next_float_h
20791 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20792 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20793 gl_next_as_first_directive='<'float.h'>'
20795 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20796 gl_next_as_first_directive=$gl_cv_next_float_h
20798 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
20805 if test -n "$FLOAT_H"; then
20806 GL_GENERATE_FLOAT_H_TRUE=
20807 GL_GENERATE_FLOAT_H_FALSE='#'
20809 GL_GENERATE_FLOAT_H_TRUE='#'
20810 GL_GENERATE_FLOAT_H_FALSE=
20815 if test $REPLACE_FLOAT_LDBL = 1; then
20824 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
20827 if test $REPLACE_ITOLD = 1; then
20836 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
20844 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
20845 if ${gl_cv_c_inline_effective+:} false; then :
20846 $as_echo_n "(cached) " >&6
20848 if test $ac_cv_c_inline = no; then
20849 gl_cv_c_inline_effective=no
20851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20852 /* end confdefs.h. */
20857 #ifdef __NO_INLINE__
20858 #error "inline is not effective"
20864 if ac_fn_c_try_compile "$LINENO"; then :
20865 gl_cv_c_inline_effective=yes
20867 gl_cv_c_inline_effective=no
20869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
20874 $as_echo "$gl_cv_c_inline_effective" >&6; }
20875 if test $gl_cv_c_inline_effective = yes; then
20877 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
20883 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
20884 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
20885 $as_echo_n "(cached) " >&6
20887 gl_cv_prog_c_ignore_unused_libraries=none
20888 gl_saved_ldflags=$LDFLAGS
20889 gl_saved_libs=$LIBS
20890 # Link with -lm to detect binutils 2.16 bug with --as-needed; see
20891 # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
20893 # Use long option sequences like '-z ignore' to test for the feature,
20894 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
20895 # GCC + binutils likes '-Wl,--as-needed'.
20896 # GCC + Solaris ld likes '-Wl,-z,ignore'.
20897 # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
20898 # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
20899 # native cc issues annoying warnings and then ignores it,
20900 # which would cause us to incorrectly conclude that it worked.
20901 for gl_flags in '-Wl,--as-needed' \
20906 LDFLAGS="$gl_flags $LDFLAGS"
20907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20908 /* end confdefs.h. */
20918 if ac_fn_c_try_link "$LINENO"; then :
20919 gl_cv_prog_c_ignore_unused_libraries=$gl_flags
20921 rm -f core conftest.err conftest.$ac_objext \
20922 conftest$ac_exeext conftest.$ac_ext
20923 LDFLAGS=$gl_saved_ldflags
20924 test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
20927 LIBS=$gl_saved_libs
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
20931 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
20932 IGNORE_UNUSED_LIBRARIES_CFLAGS=
20933 if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
20934 IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
20940 if test "$gl_threads_api" = posix; then
20941 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
20942 # pthread_rwlock_* functions.
20943 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
20945 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
20947 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
20951 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
20952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20953 /* end confdefs.h. */
20955 #include <pthread.h>
20960 #if __FreeBSD__ == 4
20961 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
20963 int x = (int)PTHREAD_MUTEX_RECURSIVE;
20971 if ac_fn_c_try_compile "$LINENO"; then :
20973 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
20976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20985 if test $gl_cv_func_malloc_posix = yes; then
20987 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
20993 if test $REPLACE_MALLOC = 1; then
21002 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
21010 GNULIB_MALLOC_POSIX=1
21016 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
21025 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
21034 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
21037 for ac_header in bp-sym.h
21039 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21040 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
21041 cat >>confdefs.h <<_ACEOF
21042 #define HAVE_BP_SYM_H 1
21062 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21074 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
21075 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
21077 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
21080 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
21084 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21093 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
21099 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21108 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
21116 for ac_func in raise
21118 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
21119 if test "x$ac_cv_func_raise" = xyes; then :
21120 cat >>confdefs.h <<_ACEOF
21121 #define HAVE_RAISE 1
21127 if test $ac_cv_func_raise = no; then
21130 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21137 if test $gl_cv_type_sigset_t = yes; then
21138 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21139 if test "x$ac_cv_func_sigprocmask" = xyes; then :
21140 gl_cv_func_sigprocmask=1
21144 if test -z "$gl_cv_func_sigprocmask"; then
21145 HAVE_POSIX_SIGNALBLOCKING=0
21148 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21154 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
21163 gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
21180 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
21187 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21192 if test $REPLACE_READ = 1; then
21201 gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
21218 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
21232 if test $ac_cv_func_setenv = no; then
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
21236 $as_echo_n "checking whether setenv validates arguments... " >&6; }
21237 if ${gl_cv_func_setenv_works+:} false; then :
21238 $as_echo_n "(cached) " >&6
21240 if test "$cross_compiling" = yes; then :
21241 gl_cv_func_setenv_works="guessing no"
21243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21244 /* end confdefs.h. */
21246 #include <stdlib.h>
21248 #include <string.h>
21256 if (setenv ("", "", 0) != -1)
21258 else if (errno != EINVAL)
21262 if (setenv ("a", "=", 1) != 0)
21264 else if (strcmp (getenv ("a"), "=") != 0)
21273 if ac_fn_c_try_run "$LINENO"; then :
21274 gl_cv_func_setenv_works=yes
21276 gl_cv_func_setenv_works=no
21278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21279 conftest.$ac_objext conftest.beam conftest.$ac_ext
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
21284 $as_echo "$gl_cv_func_setenv_works" >&6; }
21285 if test "$gl_cv_func_setenv_works" != yes; then
21290 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
21299 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
21313 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
21326 if test $ac_cv_func_sigaction = yes; then
21327 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
21329 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
21331 cat >>confdefs.h <<_ACEOF
21332 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
21338 if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
21339 HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
21345 if test $HAVE_SIGACTION = 0; then
21354 gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
21371 ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
21372 #include <signal.h>
21375 if test "x$ac_cv_type_siginfo_t" = xyes; then :
21377 cat >>confdefs.h <<_ACEOF
21378 #define HAVE_SIGINFO_T 1
21384 if test $ac_cv_type_siginfo_t = no; then
21400 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
21415 if test $gl_cv_have_include_next = yes; then
21416 gl_cv_next_signal_h='<'signal.h'>'
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21419 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21420 if ${gl_cv_next_signal_h+:} false; then :
21421 $as_echo_n "(cached) " >&6
21424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21425 /* end confdefs.h. */
21426 #include <signal.h>
21430 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21431 *) gl_absname_cpp="$ac_cpp" ;;
21436 gl_dirsep_regex='[/\\]'
21439 gl_dirsep_regex='\/'
21442 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21444 gl_header_literal_regex=`echo 'signal.h' \
21445 | sed -e "$gl_make_literal_regex_sed"`
21446 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21447 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21452 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21453 sed -n "$gl_absolute_header_sed"`'"'
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21458 $as_echo "$gl_cv_next_signal_h" >&6; }
21460 NEXT_SIGNAL_H=$gl_cv_next_signal_h
21462 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21463 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21464 gl_next_as_first_directive='<'signal.h'>'
21466 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21467 gl_next_as_first_directive=$gl_cv_next_signal_h
21469 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
21475 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21476 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21477 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21478 #include <signal.h>
21481 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
21484 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
21493 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21494 #include <signal.h>
21497 if test "x$ac_cv_type_sighandler_t" = xyes; then :
21500 HAVE_SIGHANDLER_T=0
21505 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
21506 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21508 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21509 if eval \${$as_gl_Symbol+:} false; then :
21510 $as_echo_n "(cached) " >&6
21512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21513 /* end confdefs.h. */
21514 #include <signal.h>
21525 if ac_fn_c_try_compile "$LINENO"; then :
21526 eval "$as_gl_Symbol=yes"
21528 eval "$as_gl_Symbol=no"
21530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21532 eval ac_res=\$$as_gl_Symbol
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21534 $as_echo "$ac_res" >&6; }
21535 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21536 cat >>confdefs.h <<_ACEOF
21537 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21540 eval ac_cv_have_decl_$gl_func=yes
21548 if test $gl_cv_type_sigset_t = yes; then
21549 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21550 if test "x$ac_cv_func_sigprocmask" = xyes; then :
21551 gl_cv_func_sigprocmask=1
21555 if test -z "$gl_cv_func_sigprocmask"; then
21556 HAVE_POSIX_SIGNALBLOCKING=0
21559 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21568 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21579 GNULIB_SIGPROCMASK=1
21585 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
21590 for ac_header in stdint.h
21592 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21593 if test "x$ac_cv_header_stdint_h" = xyes; then :
21594 cat >>confdefs.h <<_ACEOF
21595 #define HAVE_STDINT_H 1
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
21603 $as_echo_n "checking for SIZE_MAX... " >&6; }
21604 if ${gl_cv_size_max+:} false; then :
21605 $as_echo_n "(cached) " >&6
21609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610 /* end confdefs.h. */
21612 #include <limits.h>
21614 #include <stdint.h>
21621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21622 $EGREP "Found it" >/dev/null 2>&1; then :
21627 if test -z "$gl_cv_size_max"; then
21628 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
21629 #include <limits.h>"; then :
21632 size_t_bits_minus_1=
21635 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
21641 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
21642 if test $fits_in_uint = 1; then
21643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21644 /* end confdefs.h. */
21645 #include <stddef.h>
21647 extern unsigned long foo;
21657 if ac_fn_c_try_compile "$LINENO"; then :
21660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21662 if test $fits_in_uint = 1; then
21663 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
21665 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
21668 gl_cv_size_max='((size_t)~(size_t)0)'
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
21674 $as_echo "$gl_cv_size_max" >&6; }
21675 if test "$gl_cv_size_max" != yes; then
21677 cat >>confdefs.h <<_ACEOF
21678 #define SIZE_MAX $gl_cv_size_max
21686 gl_cv_func_snprintf_usable=no
21687 for ac_func in snprintf
21689 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
21690 if test "x$ac_cv_func_snprintf" = xyes; then :
21691 cat >>confdefs.h <<_ACEOF
21692 #define HAVE_SNPRINTF 1
21698 if test $ac_cv_func_snprintf = yes; then
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
21703 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
21704 if ${gl_cv_func_snprintf_size1+:} false; then :
21705 $as_echo_n "(cached) " >&6
21708 if test "$cross_compiling" = yes; then :
21709 gl_cv_func_snprintf_size1="guessing yes"
21711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21712 /* end confdefs.h. */
21716 # define my_snprintf snprintf
21718 # include <stdarg.h>
21719 static int my_snprintf (char *buf, int size, const char *format, ...)
21723 va_start (args, format);
21724 ret = vsnprintf (buf, size, format, args);
21731 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
21732 my_snprintf (buf, 1, "%d", 12345);
21733 return buf[1] != 'E';
21736 if ac_fn_c_try_run "$LINENO"; then :
21737 gl_cv_func_snprintf_size1=yes
21739 gl_cv_func_snprintf_size1=no
21741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21742 conftest.$ac_objext conftest.beam conftest.$ac_ext
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
21748 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
21750 case "$gl_cv_func_snprintf_size1" in
21753 case "$gl_cv_func_snprintf_retval_c99" in
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
21758 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
21759 if ${gl_cv_func_printf_positions+:} false; then :
21760 $as_echo_n "(cached) " >&6
21763 if test "$cross_compiling" = yes; then :
21766 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
21767 gl_cv_func_printf_positions="guessing no";;
21768 beos*) gl_cv_func_printf_positions="guessing no";;
21769 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
21770 *) gl_cv_func_printf_positions="guessing yes";;
21774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21775 /* end confdefs.h. */
21778 #include <string.h>
21779 /* The string "%2$d %1$d", with dollar characters protected from the shell's
21780 dollar expansion (possibly an autoconf bug). */
21781 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
21782 static char buf[100];
21785 sprintf (buf, format, 33, 55);
21786 return (strcmp (buf, "55 33") != 0);
21789 if ac_fn_c_try_run "$LINENO"; then :
21790 gl_cv_func_printf_positions=yes
21792 gl_cv_func_printf_positions=no
21794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21795 conftest.$ac_objext conftest.beam conftest.$ac_ext
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
21801 $as_echo "$gl_cv_func_printf_positions" >&6; }
21803 case "$gl_cv_func_printf_positions" in
21805 gl_cv_func_snprintf_usable=yes
21813 if test $gl_cv_func_snprintf_usable = no; then
21824 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
21826 if test $ac_cv_func_snprintf = yes; then
21839 if test $ac_cv_have_decl_snprintf = no; then
21840 HAVE_DECL_SNPRINTF=0
21854 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
21860 cat >>confdefs.h <<_ACEOF
21861 #define GNULIB_SNPRINTF 1
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21867 $as_echo_n "checking for ssize_t... " >&6; }
21868 if ${gt_cv_ssize_t+:} false; then :
21869 $as_echo_n "(cached) " >&6
21871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21872 /* end confdefs.h. */
21873 #include <sys/types.h>
21877 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21883 if ac_fn_c_try_compile "$LINENO"; then :
21888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21891 $as_echo "$gt_cv_ssize_t" >&6; }
21892 if test $gt_cv_ssize_t = no; then
21894 $as_echo "#define ssize_t int" >>confdefs.h
21900 NEXT_STDARG_H='<stdarg.h>'
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
21902 $as_echo_n "checking for va_copy... " >&6; }
21903 if ${gl_cv_func_va_copy+:} false; then :
21904 $as_echo_n "(cached) " >&6
21907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h. */
21909 #include <stdarg.h>
21915 void (*func) (va_list, va_list) = va_copy;
21922 if ac_fn_c_try_compile "$LINENO"; then :
21923 gl_cv_func_va_copy=yes
21925 gl_cv_func_va_copy=no
21927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21931 $as_echo "$gl_cv_func_va_copy" >&6; }
21932 if test $gl_cv_func_va_copy = no; then
21933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21934 /* end confdefs.h. */
21935 #if defined _AIX && !defined __GNUC__
21940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21941 $EGREP "vaccine" >/dev/null 2>&1; then :
21948 if test $gl_aixcc = yes; then
21958 if test $gl_cv_have_include_next = yes; then
21959 gl_cv_next_stdarg_h='<'stdarg.h'>'
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21962 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21963 if ${gl_cv_next_stdarg_h+:} false; then :
21964 $as_echo_n "(cached) " >&6
21967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21968 /* end confdefs.h. */
21969 #include <stdarg.h>
21973 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21974 *) gl_absname_cpp="$ac_cpp" ;;
21979 gl_dirsep_regex='[/\\]'
21982 gl_dirsep_regex='\/'
21985 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21987 gl_header_literal_regex=`echo 'stdarg.h' \
21988 | sed -e "$gl_make_literal_regex_sed"`
21989 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21990 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21995 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21996 sed -n "$gl_absolute_header_sed"`'"'
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22001 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22003 NEXT_STDARG_H=$gl_cv_next_stdarg_h
22005 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22006 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22007 gl_next_as_first_directive='<'stdarg.h'>'
22009 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22010 gl_next_as_first_directive=$gl_cv_next_stdarg_h
22012 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
22017 if test "$gl_cv_next_stdarg_h" = '""'; then
22018 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
22019 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
22023 saved_as_echo_n="$as_echo_n"
22025 if ${gl_cv_func___va_copy+:} false; then :
22026 $as_echo_n "(cached) " >&6
22029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22030 /* end confdefs.h. */
22031 #include <stdarg.h>
22044 if ac_fn_c_try_compile "$LINENO"; then :
22045 gl_cv_func___va_copy=yes
22047 gl_cv_func___va_copy=no
22049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22052 as_echo_n="$saved_as_echo_n"
22054 if test $gl_cv_func___va_copy = yes; then
22056 $as_echo "#define va_copy __va_copy" >>confdefs.h
22061 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22067 if test -n "$STDARG_H"; then
22068 GL_GENERATE_STDARG_H_TRUE=
22069 GL_GENERATE_STDARG_H_FALSE='#'
22071 GL_GENERATE_STDARG_H_TRUE='#'
22072 GL_GENERATE_STDARG_H_FALSE=
22080 # Define two additional variables used in the Makefile substitution.
22082 if test "$ac_cv_header_stdbool_h" = yes; then
22085 STDBOOL_H='stdbool.h'
22088 if test -n "$STDBOOL_H"; then
22089 GL_GENERATE_STDBOOL_H_TRUE=
22090 GL_GENERATE_STDBOOL_H_FALSE='#'
22092 GL_GENERATE_STDBOOL_H_TRUE='#'
22093 GL_GENERATE_STDBOOL_H_FALSE=
22097 if test "$ac_cv_type__Bool" = yes; then
22108 if test $gt_cv_c_wchar_t = no; then
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22113 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22114 if ${gl_cv_decl_null_works+:} false; then :
22115 $as_echo_n "(cached) " >&6
22117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22118 /* end confdefs.h. */
22119 #include <stddef.h>
22120 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22130 if ac_fn_c_try_compile "$LINENO"; then :
22131 gl_cv_decl_null_works=yes
22133 gl_cv_decl_null_works=no
22135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22138 $as_echo "$gl_cv_decl_null_works" >&6; }
22139 if test $gl_cv_decl_null_works = no; then
22144 if test -n "$STDDEF_H"; then
22145 GL_GENERATE_STDDEF_H_TRUE=
22146 GL_GENERATE_STDDEF_H_FALSE='#'
22148 GL_GENERATE_STDDEF_H_TRUE='#'
22149 GL_GENERATE_STDDEF_H_FALSE=
22152 if test -n "$STDDEF_H"; then
22161 if test $gl_cv_have_include_next = yes; then
22162 gl_cv_next_stddef_h='<'stddef.h'>'
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22165 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22166 if ${gl_cv_next_stddef_h+:} false; then :
22167 $as_echo_n "(cached) " >&6
22170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22171 /* end confdefs.h. */
22172 #include <stddef.h>
22176 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22177 *) gl_absname_cpp="$ac_cpp" ;;
22182 gl_dirsep_regex='[/\\]'
22185 gl_dirsep_regex='\/'
22188 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22190 gl_header_literal_regex=`echo 'stddef.h' \
22191 | sed -e "$gl_make_literal_regex_sed"`
22192 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22193 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22198 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22199 sed -n "$gl_absolute_header_sed"`'"'
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22204 $as_echo "$gl_cv_next_stddef_h" >&6; }
22206 NEXT_STDDEF_H=$gl_cv_next_stddef_h
22208 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22209 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22210 gl_next_as_first_directive='<'stddef.h'>'
22212 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22213 gl_next_as_first_directive=$gl_cv_next_stddef_h
22215 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22234 if test $gl_cv_have_include_next = yes; then
22235 gl_cv_next_stdio_h='<'stdio.h'>'
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22238 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22239 if ${gl_cv_next_stdio_h+:} false; then :
22240 $as_echo_n "(cached) " >&6
22243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22244 /* end confdefs.h. */
22249 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22250 *) gl_absname_cpp="$ac_cpp" ;;
22255 gl_dirsep_regex='[/\\]'
22258 gl_dirsep_regex='\/'
22261 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22263 gl_header_literal_regex=`echo 'stdio.h' \
22264 | sed -e "$gl_make_literal_regex_sed"`
22265 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22266 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22271 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22272 sed -n "$gl_absolute_header_sed"`'"'
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22277 $as_echo "$gl_cv_next_stdio_h" >&6; }
22279 NEXT_STDIO_H=$gl_cv_next_stdio_h
22281 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22282 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22283 gl_next_as_first_directive='<'stdio.h'>'
22285 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22286 gl_next_as_first_directive=$gl_cv_next_stdio_h
22288 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
22317 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
22318 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22320 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22321 if eval \${$as_gl_Symbol+:} false; then :
22322 $as_echo_n "(cached) " >&6
22324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22325 /* end confdefs.h. */
22337 if ac_fn_c_try_compile "$LINENO"; then :
22338 eval "$as_gl_Symbol=yes"
22340 eval "$as_gl_Symbol=no"
22342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22344 eval ac_res=\$$as_gl_Symbol
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22346 $as_echo "$ac_res" >&6; }
22347 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22348 cat >>confdefs.h <<_ACEOF
22349 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22352 eval ac_cv_have_decl_$gl_func=yes
22367 if test $gl_cv_have_include_next = yes; then
22368 gl_cv_next_stdlib_h='<'stdlib.h'>'
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22371 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22372 if ${gl_cv_next_stdlib_h+:} false; then :
22373 $as_echo_n "(cached) " >&6
22376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22377 /* end confdefs.h. */
22378 #include <stdlib.h>
22382 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22383 *) gl_absname_cpp="$ac_cpp" ;;
22388 gl_dirsep_regex='[/\\]'
22391 gl_dirsep_regex='\/'
22394 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22396 gl_header_literal_regex=`echo 'stdlib.h' \
22397 | sed -e "$gl_make_literal_regex_sed"`
22398 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22399 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22404 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22405 sed -n "$gl_absolute_header_sed"`'"'
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22410 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22412 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
22414 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22415 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22416 gl_next_as_first_directive='<'stdlib.h'>'
22418 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22419 gl_next_as_first_directive=$gl_cv_next_stdlib_h
22421 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
22428 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 setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
22429 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22431 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22432 if eval \${$as_gl_Symbol+:} false; then :
22433 $as_echo_n "(cached) " >&6
22435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22436 /* end confdefs.h. */
22437 #include <stdlib.h>
22438 #if HAVE_SYS_LOADAVG_H
22439 # include <sys/loadavg.h>
22442 # include <random.h>
22454 if ac_fn_c_try_compile "$LINENO"; then :
22455 eval "$as_gl_Symbol=yes"
22457 eval "$as_gl_Symbol=no"
22459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22461 eval ac_res=\$$as_gl_Symbol
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22463 $as_echo "$ac_res" >&6; }
22464 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22465 cat >>confdefs.h <<_ACEOF
22466 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22469 eval ac_cv_have_decl_$gl_func=yes
22479 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
22481 $as_echo_n "checking for working strerror function... " >&6; }
22482 if ${gl_cv_func_working_strerror+:} false; then :
22483 $as_echo_n "(cached) " >&6
22485 if test "$cross_compiling" = yes; then :
22486 gl_cv_func_working_strerror="guessing no"
22488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489 /* end confdefs.h. */
22490 #include <string.h>
22495 if (!*strerror (-2)) return 1;
22500 if ac_fn_c_try_run "$LINENO"; then :
22501 gl_cv_func_working_strerror=yes
22503 gl_cv_func_working_strerror=no
22505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22506 conftest.$ac_objext conftest.beam conftest.$ac_ext
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
22512 $as_echo "$gl_cv_func_working_strerror" >&6; }
22513 if test "$gl_cv_func_working_strerror" != yes; then
22521 if test $REPLACE_STRERROR = 1; then
22530 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
22535 cat >>confdefs.h <<_ACEOF
22536 #define GNULIB_STRERROR 1
22551 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
22557 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
22566 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
22578 if test $ac_cv_header_sys_socket_h != yes; then
22579 for ac_header in winsock2.h
22581 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22582 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22583 cat >>confdefs.h <<_ACEOF
22584 #define HAVE_WINSOCK2_H 1
22592 if test "$ac_cv_header_winsock2_h" = yes; then
22594 UNISTD_H_HAVE_WINSOCK2_H=1
22595 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22623 if test $ac_cv_have_decl_strndup = no; then
22624 HAVE_DECL_STRNDUP=0
22627 if test $ac_cv_func_strndup = yes; then
22629 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
22631 $as_echo_n "checking for working strndup... " >&6; }
22632 if ${gl_cv_func_strndup_works+:} false; then :
22633 $as_echo_n "(cached) " >&6
22635 if test "$cross_compiling" = yes; then :
22638 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
22639 *) gl_cv_func_strndup_works="guessing yes";;
22643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644 /* end confdefs.h. */
22646 #include <string.h>
22647 #include <stdlib.h>
22652 #ifndef HAVE_DECL_STRNDUP
22657 char *strndup (const char *, size_t);
22660 s = strndup ("some longer string", 15);
22662 s = strndup ("shorter string", 13);
22663 return s[13] != '\0';
22668 if ac_fn_c_try_run "$LINENO"; then :
22669 gl_cv_func_strndup_works=yes
22671 gl_cv_func_strndup_works=no
22673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22674 conftest.$ac_objext conftest.beam conftest.$ac_ext
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
22679 $as_echo "$gl_cv_func_strndup_works" >&6; }
22680 case $gl_cv_func_strndup_works in
22681 *no) REPLACE_STRNDUP=1 ;;
22687 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
22696 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
22710 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
22726 if test $ac_cv_have_decl_strnlen = no; then
22727 HAVE_DECL_STRNLEN=0
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
22731 $as_echo_n "checking for working strnlen... " >&6; }
22732 if ${ac_cv_func_strnlen_working+:} false; then :
22733 $as_echo_n "(cached) " >&6
22735 if test "$cross_compiling" = yes; then :
22736 # Guess no on AIX systems, yes otherwise.
22738 aix*) ac_cv_func_strnlen_working=no;;
22739 *) ac_cv_func_strnlen_working=yes;;
22742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22743 /* end confdefs.h. */
22744 $ac_includes_default
22750 #define S_LEN (sizeof S - 1)
22752 /* At least one implementation is buggy: that of AIX 4.3 would
22753 give strnlen (S, 1) == 3. */
22756 for (i = 0; i < S_LEN + 1; ++i)
22758 int expected = i <= S_LEN ? i : S_LEN;
22759 if (strnlen (S, i) != expected)
22768 if ac_fn_c_try_run "$LINENO"; then :
22769 ac_cv_func_strnlen_working=yes
22771 ac_cv_func_strnlen_working=no
22773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22774 conftest.$ac_objext conftest.beam conftest.$ac_ext
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
22779 $as_echo "$ac_cv_func_strnlen_working" >&6; }
22780 test $ac_cv_func_strnlen_working = no && :
22783 if test $ac_cv_func_strnlen_working = no; then
22788 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
22797 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
22812 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
22828 if test $ac_cv_have_decl_strsignal = no; then
22829 HAVE_DECL_STRSIGNAL=0
22832 for ac_func in strsignal
22834 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
22835 if test "x$ac_cv_func_strsignal" = xyes; then :
22836 cat >>confdefs.h <<_ACEOF
22837 #define HAVE_STRSIGNAL 1
22843 if test $ac_cv_func_strsignal = yes; then
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
22846 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
22847 if ${gl_cv_func_working_strsignal+:} false; then :
22848 $as_echo_n "(cached) " >&6
22850 if test "$cross_compiling" = yes; then :
22852 solaris* | aix*) gl_cv_func_working_strsignal=no;;
22853 *) gl_cv_func_working_strsignal="guessing yes";;
22856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22857 /* end confdefs.h. */
22858 #include <string.h>
22859 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
22865 char *s = strsignal (-1);
22866 if (s == (char *) 0)
22868 if (s == (char *) -1)
22876 if ac_fn_c_try_run "$LINENO"; then :
22877 gl_cv_func_working_strsignal=yes
22879 gl_cv_func_working_strsignal=no
22881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22882 conftest.$ac_objext conftest.beam conftest.$ac_ext
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
22887 $as_echo "$gl_cv_func_working_strsignal" >&6; }
22888 if test "$gl_cv_func_working_strsignal" = no; then
22889 REPLACE_STRSIGNAL=1
22895 if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
22904 gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
22915 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
22917 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
22923 cat >>confdefs.h <<_ACEOF
22924 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
22940 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
22948 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
22949 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
22950 $as_echo_n "(cached) " >&6
22953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22954 /* end confdefs.h. */
22955 #include <sys/select.h>
22964 if ac_fn_c_try_compile "$LINENO"; then :
22965 gl_cv_header_sys_select_h_selfcontained=yes
22967 gl_cv_header_sys_select_h_selfcontained=no
22969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22970 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
22971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22972 /* end confdefs.h. */
22973 #include <sys/select.h>
22977 int memset; int bzero;
22983 if ac_fn_c_try_compile "$LINENO"; then :
22984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22985 /* end confdefs.h. */
22986 #include <sys/select.h>
22992 #define memset nonexistent_memset
22997 void *memset (void *, int, unsigned long);
22999 #define bzero nonexistent_bzero
23004 void bzero (void *, unsigned long);
23013 if ac_fn_c_try_link "$LINENO"; then :
23016 gl_cv_header_sys_select_h_selfcontained=no
23018 rm -f core conftest.err conftest.$ac_objext \
23019 conftest$ac_exeext conftest.$ac_ext
23022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23027 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23043 if test $gl_cv_have_include_next = yes; then
23044 gl_cv_next_sys_select_h='<'sys/select.h'>'
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23047 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23048 if ${gl_cv_next_sys_select_h+:} false; then :
23049 $as_echo_n "(cached) " >&6
23052 if test $ac_cv_header_sys_select_h = yes; then
23055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h. */
23057 #include <sys/select.h>
23061 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23062 *) gl_absname_cpp="$ac_cpp" ;;
23067 gl_dirsep_regex='[/\\]'
23070 gl_dirsep_regex='\/'
23073 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23075 gl_header_literal_regex=`echo 'sys/select.h' \
23076 | sed -e "$gl_make_literal_regex_sed"`
23077 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23078 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23083 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23084 sed -n "$gl_absolute_header_sed"`'"'
23086 gl_cv_next_sys_select_h='<'sys/select.h'>'
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23092 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23094 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23096 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23097 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23098 gl_next_as_first_directive='<'sys/select.h'>'
23100 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23101 gl_next_as_first_directive=$gl_cv_next_sys_select_h
23103 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23108 if test $ac_cv_header_sys_select_h = yes; then
23109 HAVE_SYS_SELECT_H=1
23111 HAVE_SYS_SELECT_H=0
23124 if test $ac_cv_header_sys_socket_h != yes; then
23125 for ac_header in winsock2.h
23127 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23128 if test "x$ac_cv_header_winsock2_h" = xyes; then :
23129 cat >>confdefs.h <<_ACEOF
23130 #define HAVE_WINSOCK2_H 1
23138 if test "$ac_cv_header_winsock2_h" = yes; then
23140 UNISTD_H_HAVE_WINSOCK2_H=1
23141 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23149 for gl_func in pselect select; do
23150 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23152 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23153 if eval \${$as_gl_Symbol+:} false; then :
23154 $as_echo_n "(cached) " >&6
23156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23157 /* end confdefs.h. */
23159 /* Some systems require prerequisite headers. */
23160 #include <sys/types.h>
23161 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
23162 # include <sys/time.h>
23164 #include <sys/select.h>
23175 if ac_fn_c_try_compile "$LINENO"; then :
23176 eval "$as_gl_Symbol=yes"
23178 eval "$as_gl_Symbol=no"
23180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23182 eval ac_res=\$$as_gl_Symbol
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23184 $as_echo "$ac_res" >&6; }
23185 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23186 cat >>confdefs.h <<_ACEOF
23187 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23190 eval ac_cv_have_decl_$gl_func=yes
23218 if test $gl_cv_have_include_next = yes; then
23219 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23222 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23223 if ${gl_cv_next_sys_stat_h+:} false; then :
23224 $as_echo_n "(cached) " >&6
23227 if test $ac_cv_header_sys_stat_h = yes; then
23230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23231 /* end confdefs.h. */
23232 #include <sys/stat.h>
23236 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23237 *) gl_absname_cpp="$ac_cpp" ;;
23242 gl_dirsep_regex='[/\\]'
23245 gl_dirsep_regex='\/'
23248 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23250 gl_header_literal_regex=`echo 'sys/stat.h' \
23251 | sed -e "$gl_make_literal_regex_sed"`
23252 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23253 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23258 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23259 sed -n "$gl_absolute_header_sed"`'"'
23261 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23267 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23269 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23271 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23272 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23273 gl_next_as_first_directive='<'sys/stat.h'>'
23275 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23276 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23278 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23286 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23287 #include <sys/stat.h>
23289 if test "x$ac_cv_type_nlink_t" = xyes; then :
23293 $as_echo "#define nlink_t int" >>confdefs.h
23299 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
23300 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23302 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23303 if eval \${$as_gl_Symbol+:} false; then :
23304 $as_echo_n "(cached) " >&6
23306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23307 /* end confdefs.h. */
23308 #include <sys/stat.h>
23319 if ac_fn_c_try_compile "$LINENO"; then :
23320 eval "$as_gl_Symbol=yes"
23322 eval "$as_gl_Symbol=no"
23324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23326 eval ac_res=\$$as_gl_Symbol
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23328 $as_echo "$ac_res" >&6; }
23329 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23330 cat >>confdefs.h <<_ACEOF
23331 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23334 eval ac_cv_have_decl_$gl_func=yes
23362 if test $gl_cv_have_include_next = yes; then
23363 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
23366 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
23367 if ${gl_cv_next_sys_wait_h+:} false; then :
23368 $as_echo_n "(cached) " >&6
23371 if test $ac_cv_header_sys_wait_h = yes; then
23374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23375 /* end confdefs.h. */
23376 #include <sys/wait.h>
23380 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23381 *) gl_absname_cpp="$ac_cpp" ;;
23386 gl_dirsep_regex='[/\\]'
23389 gl_dirsep_regex='\/'
23392 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23394 gl_header_literal_regex=`echo 'sys/wait.h' \
23395 | sed -e "$gl_make_literal_regex_sed"`
23396 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23397 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23402 gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23403 sed -n "$gl_absolute_header_sed"`'"'
23405 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
23411 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
23413 NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
23415 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23416 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23417 gl_next_as_first_directive='<'sys/wait.h'>'
23419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23420 gl_next_as_first_directive=$gl_cv_next_sys_wait_h
23422 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
23431 for gl_func in waitpid; do
23432 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23434 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23435 if eval \${$as_gl_Symbol+:} false; then :
23436 $as_echo_n "(cached) " >&6
23438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23439 /* end confdefs.h. */
23440 #include <sys/wait.h>
23450 if ac_fn_c_try_compile "$LINENO"; then :
23451 eval "$as_gl_Symbol=yes"
23453 eval "$as_gl_Symbol=no"
23455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23457 eval ac_res=\$$as_gl_Symbol
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23459 $as_echo "$ac_res" >&6; }
23460 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23461 cat >>confdefs.h <<_ACEOF
23462 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23465 eval ac_cv_have_decl_$gl_func=yes
23500 if test $gl_cv_have_include_next = yes; then
23501 gl_cv_next_unistd_h='<'unistd.h'>'
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23504 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23505 if ${gl_cv_next_unistd_h+:} false; then :
23506 $as_echo_n "(cached) " >&6
23509 if test $ac_cv_header_unistd_h = yes; then
23512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23513 /* end confdefs.h. */
23514 #include <unistd.h>
23518 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23519 *) gl_absname_cpp="$ac_cpp" ;;
23524 gl_dirsep_regex='[/\\]'
23527 gl_dirsep_regex='\/'
23530 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23532 gl_header_literal_regex=`echo 'unistd.h' \
23533 | sed -e "$gl_make_literal_regex_sed"`
23534 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23535 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23540 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23541 sed -n "$gl_absolute_header_sed"`'"'
23543 gl_cv_next_unistd_h='<'unistd.h'>'
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23549 $as_echo "$gl_cv_next_unistd_h" >&6; }
23551 NEXT_UNISTD_H=$gl_cv_next_unistd_h
23553 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23554 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23555 gl_next_as_first_directive='<'unistd.h'>'
23557 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23558 gl_next_as_first_directive=$gl_cv_next_unistd_h
23560 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
23565 if test $ac_cv_header_unistd_h = yes; then
23575 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
23576 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23578 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23579 if eval \${$as_gl_Symbol+:} false; then :
23580 $as_echo_n "(cached) " >&6
23582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23583 /* end confdefs.h. */
23586 # include <unistd.h>
23588 /* Some systems declare various items in the wrong headers. */
23589 #if !(defined __GLIBC__ && !defined __UCLIBC__)
23590 # include <fcntl.h>
23591 # include <stdio.h>
23592 # include <stdlib.h>
23593 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
23607 if ac_fn_c_try_compile "$LINENO"; then :
23608 eval "$as_gl_Symbol=yes"
23610 eval "$as_gl_Symbol=no"
23612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23614 eval ac_res=\$$as_gl_Symbol
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23616 $as_echo "$ac_res" >&6; }
23617 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23618 cat >>confdefs.h <<_ACEOF
23619 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23622 eval ac_cv_have_decl_$gl_func=yes
23636 if test $ac_cv_have_decl_unsetenv = no; then
23637 HAVE_DECL_UNSETENV=0
23639 for ac_func in unsetenv
23641 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
23642 if test "x$ac_cv_func_unsetenv" = xyes; then :
23643 cat >>confdefs.h <<_ACEOF
23644 #define HAVE_UNSETENV 1
23650 if test $ac_cv_func_unsetenv = no; then
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
23655 $as_echo_n "checking for unsetenv() return type... " >&6; }
23656 if ${gt_cv_func_unsetenv_ret+:} false; then :
23657 $as_echo_n "(cached) " >&6
23659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23660 /* end confdefs.h. */
23663 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
23664 #include <stdlib.h>
23669 int unsetenv (const char *name);
23679 if ac_fn_c_try_compile "$LINENO"; then :
23680 gt_cv_func_unsetenv_ret='int'
23682 gt_cv_func_unsetenv_ret='void'
23684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
23687 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
23688 if test $gt_cv_func_unsetenv_ret = 'void'; then
23690 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
23696 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
23697 if ${gl_cv_func_unsetenv_works+:} false; then :
23698 $as_echo_n "(cached) " >&6
23700 if test "$cross_compiling" = yes; then :
23701 gl_cv_func_unsetenv_works="guessing no"
23703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23704 /* end confdefs.h. */
23706 #include <stdlib.h>
23708 extern char **environ;
23714 char entry1[] = "a=1";
23715 char entry2[] = "b=2";
23716 char *env[] = { entry1, entry2, NULL };
23717 if (putenv ((char *) "a=1")) return 1;
23718 if (putenv (entry2)) return 2;
23721 if (getenv ("a")) return 3;
23722 if (!unsetenv ("") || errno != EINVAL) return 4;
23725 if (!getenv ("a")) return 5;
23728 if (getenv ("a")) return 6;
23734 if ac_fn_c_try_run "$LINENO"; then :
23735 gl_cv_func_unsetenv_works=yes
23737 gl_cv_func_unsetenv_works=no
23739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23740 conftest.$ac_objext conftest.beam conftest.$ac_ext
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
23745 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
23746 if test "$gl_cv_func_unsetenv_works" != yes; then
23751 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
23760 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
23784 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
23796 if test $ac_cv_func_vasnprintf = no; then
23813 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
23823 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
23833 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
23843 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
23845 if test $ac_cv_func_vasnprintf = yes; then
23847 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
23861 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23862 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23866 $as_echo "#define ptrdiff_t long" >>confdefs.h
23880 for ac_func in vasprintf
23882 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
23883 if test "x$ac_cv_func_vasprintf" = xyes; then :
23884 cat >>confdefs.h <<_ACEOF
23885 #define HAVE_VASPRINTF 1
23891 if test $ac_cv_func_vasprintf = no; then
23901 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
23911 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
23914 if test $ac_cv_func_vasprintf = yes; then
23915 REPLACE_VASPRINTF=1
23940 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
23946 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
23950 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
23956 mingw*) HAVE_WAITPID=0 ;;
23959 if test $HAVE_WAITPID = 0; then
23968 gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
23982 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
24004 if test $gl_cv_have_include_next = yes; then
24005 gl_cv_next_wchar_h='<'wchar.h'>'
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24008 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24009 if ${gl_cv_next_wchar_h+:} false; then :
24010 $as_echo_n "(cached) " >&6
24013 if test $ac_cv_header_wchar_h = yes; then
24016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24017 /* end confdefs.h. */
24022 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24023 *) gl_absname_cpp="$ac_cpp" ;;
24028 gl_dirsep_regex='[/\\]'
24031 gl_dirsep_regex='\/'
24034 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24036 gl_header_literal_regex=`echo 'wchar.h' \
24037 | sed -e "$gl_make_literal_regex_sed"`
24038 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24039 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24044 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24045 sed -n "$gl_absolute_header_sed"`'"'
24047 gl_cv_next_wchar_h='<'wchar.h'>'
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
24053 $as_echo "$gl_cv_next_wchar_h" >&6; }
24055 NEXT_WCHAR_H=$gl_cv_next_wchar_h
24057 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24058 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24059 gl_next_as_first_directive='<'wchar.h'>'
24061 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24062 gl_next_as_first_directive=$gl_cv_next_wchar_h
24064 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24069 if test $ac_cv_header_wchar_h = yes; then
24079 if test $gt_cv_c_wint_t = yes; then
24087 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
24088 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24090 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24091 if eval \${$as_gl_Symbol+:} false; then :
24092 $as_echo_n "(cached) " >&6
24094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24095 /* end confdefs.h. */
24097 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24099 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24100 included before <wchar.h>. */
24101 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24102 # include <stddef.h>
24103 # include <stdio.h>
24117 if ac_fn_c_try_compile "$LINENO"; then :
24118 eval "$as_gl_Symbol=yes"
24120 eval "$as_gl_Symbol=no"
24122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24124 eval ac_res=\$$as_gl_Symbol
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24126 $as_echo "$ac_res" >&6; }
24127 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24128 cat >>confdefs.h <<_ACEOF
24129 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24132 eval ac_cv_have_decl_$gl_func=yes
24140 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24146 if test $REPLACE_WRITE = 1; then
24155 gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
24172 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
24188 for ac_header in stdint.h
24190 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
24191 if test "x$ac_cv_header_stdint_h" = xyes; then :
24192 cat >>confdefs.h <<_ACEOF
24193 #define HAVE_STDINT_H 1
24211 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
24213 # End of code from modules
24234 gl_source_base='tests'
24235 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
24237 gl_module_indicator_condition=$gltests_WITNESS
24248 for ac_header in fcntl.h
24250 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
24251 if test "x$ac_cv_header_fcntl_h" = xyes; then :
24252 cat >>confdefs.h <<_ACEOF
24253 #define HAVE_FCNTL_H 1
24261 # Checks for structures and compiler characteristics.
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
24263 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
24264 if ${ac_cv_c_const+:} false; then :
24265 $as_echo_n "(cached) " >&6
24267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24268 /* end confdefs.h. */
24274 #ifndef __cplusplus
24275 /* Ultrix mips cc rejects this sort of thing. */
24276 typedef int charset[2];
24277 const charset cs = { 0, 0 };
24278 /* SunOS 4.1.1 cc rejects this. */
24279 char const *const *pcpcc;
24281 /* NEC SVR4.0.2 mips cc rejects this. */
24282 struct point {int x, y;};
24283 static struct point const zero = {0,0};
24284 /* AIX XL C 1.02.0.0 rejects this.
24285 It does not let you subtract one const X* pointer from another in
24286 an arm of an if-expression whose if-part is not a constant
24288 const char *g = "string";
24289 pcpcc = &g + (g ? g-g : 0);
24290 /* HPUX 7.0 cc rejects these. */
24292 ppc = (char**) pcpcc;
24293 pcpcc = (char const *const *) ppc;
24294 { /* SCO 3.2v4 cc rejects this sort of thing. */
24297 char const *s = 0 ? (char *) 0 : (char const *) 0;
24302 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24303 int x[] = {25, 17};
24304 const int *foo = &x[0];
24307 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24308 typedef const int *iptr;
24312 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
24313 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24314 struct s { int j; const int *ap[3]; } bx;
24315 struct s *b = &bx; b->j = 5;
24317 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24318 const int foo = 10;
24319 if (!foo) return 0;
24321 return !cs[0] && !zero.x;
24328 if ac_fn_c_try_compile "$LINENO"; then :
24333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
24336 $as_echo "$ac_cv_c_const" >&6; }
24337 if test $ac_cv_c_const = no; then
24339 $as_echo "#define const /**/" >>confdefs.h
24343 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24344 if test "x$ac_cv_type_pid_t" = xyes; then :
24348 cat >>confdefs.h <<_ACEOF
24354 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24355 if test "x$ac_cv_type_size_t" = xyes; then :
24359 cat >>confdefs.h <<_ACEOF
24360 #define size_t unsigned int
24366 # We must have fork(2) support.
24367 for ac_header in vfork.h
24369 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24370 if test "x$ac_cv_header_vfork_h" = xyes; then :
24371 cat >>confdefs.h <<_ACEOF
24372 #define HAVE_VFORK_H 1
24379 for ac_func in fork vfork
24381 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24382 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24383 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24384 cat >>confdefs.h <<_ACEOF
24385 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24391 if test "x$ac_cv_func_fork" = xyes; then
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24393 $as_echo_n "checking for working fork... " >&6; }
24394 if ${ac_cv_func_fork_works+:} false; then :
24395 $as_echo_n "(cached) " >&6
24397 if test "$cross_compiling" = yes; then :
24398 ac_cv_func_fork_works=cross
24400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24401 /* end confdefs.h. */
24402 $ac_includes_default
24407 /* By Ruediger Kuhlmann. */
24408 return fork () < 0;
24414 if ac_fn_c_try_run "$LINENO"; then :
24415 ac_cv_func_fork_works=yes
24417 ac_cv_func_fork_works=no
24419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24420 conftest.$ac_objext conftest.beam conftest.$ac_ext
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24425 $as_echo "$ac_cv_func_fork_works" >&6; }
24428 ac_cv_func_fork_works=$ac_cv_func_fork
24430 if test "x$ac_cv_func_fork_works" = xcross; then
24432 *-*-amigaos* | *-*-msdosdjgpp*)
24433 # Override, as these systems have only a dummy fork() stub
24434 ac_cv_func_fork_works=no
24437 ac_cv_func_fork_works=yes
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24441 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24443 ac_cv_func_vfork_works=$ac_cv_func_vfork
24444 if test "x$ac_cv_func_vfork" = xyes; then
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24446 $as_echo_n "checking for working vfork... " >&6; }
24447 if ${ac_cv_func_vfork_works+:} false; then :
24448 $as_echo_n "(cached) " >&6
24450 if test "$cross_compiling" = yes; then :
24451 ac_cv_func_vfork_works=cross
24453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24454 /* end confdefs.h. */
24455 /* Thanks to Paul Eggert for this test. */
24456 $ac_includes_default
24457 #include <sys/wait.h>
24458 #ifdef HAVE_VFORK_H
24459 # include <vfork.h>
24461 /* On some sparc systems, changes by the child to local and incoming
24462 argument registers are propagated back to the parent. The compiler
24463 is told about this with #include <vfork.h>, but some compilers
24464 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24465 static variable whose address is put into a register that is
24466 clobbered by the vfork. */
24469 sparc_address_test (int arg)
24471 sparc_address_test (arg) int arg;
24474 static pid_t child;
24492 pid_t parent = getpid ();
24495 sparc_address_test (0);
24500 /* Here is another test for sparc vfork register problems. This
24501 test uses lots of local variables, at least as many local
24502 variables as main has allocated so far including compiler
24503 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24504 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24505 reuse the register of parent for one of the local variables,
24506 since it will think that parent can't possibly be used any more
24507 in this routine. Assigning to the local variable will thus
24508 munge parent in the parent process. */
24510 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24511 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24512 /* Convince the compiler that p..p7 are live; otherwise, it might
24513 use the same hardware register for all 8 local variables. */
24514 if (p != p1 || p != p2 || p != p3 || p != p4
24515 || p != p5 || p != p6 || p != p7)
24518 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24519 from child file descriptors. If the child closes a descriptor
24520 before it execs or exits, this munges the parent's descriptor
24521 as well. Test for this by closing stdout in the child. */
24522 _exit(close(fileno(stdout)) != 0);
24527 while (wait(&status) != child)
24530 /* Was there some problem with vforking? */
24533 /* Did the child fail? (This shouldn't happen.) */
24536 /* Did the vfork/compiler bug occur? */
24537 || parent != getpid()
24539 /* Did the file descriptor bug occur? */
24540 || fstat(fileno(stdout), &st) != 0
24545 if ac_fn_c_try_run "$LINENO"; then :
24546 ac_cv_func_vfork_works=yes
24548 ac_cv_func_vfork_works=no
24550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24551 conftest.$ac_objext conftest.beam conftest.$ac_ext
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24556 $as_echo "$ac_cv_func_vfork_works" >&6; }
24559 if test "x$ac_cv_func_fork_works" = xcross; then
24560 ac_cv_func_vfork_works=$ac_cv_func_vfork
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24562 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24565 if test "x$ac_cv_func_vfork_works" = xyes; then
24567 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24571 $as_echo "#define vfork fork" >>confdefs.h
24574 if test "x$ac_cv_func_fork_works" = xyes; then
24576 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24580 if test "x$ac_cv_func_fork_works" != xyes; then
24581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24583 as_fn_error $? "cannot use libpipeline on systems without fork
24584 See \`config.log' for more details" "$LINENO" 5; }
24587 # Check for socketpair(2) as fast replacement for pipe(2).
24588 # Check whether --enable-socketpair-pipe was given.
24589 if test "${enable_socketpair_pipe+set}" = set; then :
24590 enableval=$enable_socketpair_pipe; if test "$enableval" = "yes"
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
24593 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
24594 if ${pipeline_cv_socketpair_pipe+:} false; then :
24595 $as_echo_n "(cached) " >&6
24598 if test "$cross_compiling" = yes; then :
24599 pipeline_cv_socketpair_pipe=no
24601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24602 /* end confdefs.h. */
24605 #include <netinet/in.h>
24606 #include <signal.h>
24607 #include <sys/socket.h>
24608 #include <sys/types.h>
24609 #include <sys/wait.h>
24610 #include <unistd.h>
24618 static void sigpipe(int sig)
24625 const char test[] = "May use socketpair(2) instead of pipe(2)\n";
24629 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
24631 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
24633 if ((pid = fork()) < 0)
24638 if (read(sfd[0],buf,sizeof(buf)) < 0)
24642 write(sfd[1],test,sizeof(test) - 1);
24646 signal(SIGPIPE, sigpipe);
24647 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
24649 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
24652 write(sfd[1],test,sizeof(test) - 1);
24656 if ac_fn_c_try_run "$LINENO"; then :
24657 pipeline_cv_socketpair_pipe=yes
24659 pipeline_cv_socketpair_pipe=no
24661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24662 conftest.$ac_objext conftest.beam conftest.$ac_ext
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
24669 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
24670 if test "$pipeline_cv_socketpair_pipe" = yes; then
24672 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
24676 if test "$pipeline_cv_socketpair_pipe" = yes; then
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
24678 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
24679 if ${pipeline_cv_socketpair_mode+:} false; then :
24680 $as_echo_n "(cached) " >&6
24683 if test "$cross_compiling" = yes; then :
24684 pipeline_cv_socketpair_mode=no
24686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24687 /* end confdefs.h. */
24690 #include <netinet/in.h>
24691 #include <sys/stat.h>
24692 #include <sys/socket.h>
24693 #include <sys/types.h>
24694 #include <unistd.h>
24706 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
24708 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
24710 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
24712 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
24714 if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
24716 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
24718 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
24723 if ac_fn_c_try_run "$LINENO"; then :
24724 pipeline_cv_socketpair_mode=yes
24726 pipeline_cv_socketpair_mode=no
24728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24729 conftest.$ac_objext conftest.beam conftest.$ac_ext
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
24736 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
24737 if test "$pipeline_cv_socketpair_mode" = yes; then
24739 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
24750 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
24752 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
24754 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
24756 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
24758 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
24760 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
24762 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
24764 cat >confcache <<\_ACEOF
24765 # This file is a shell script that caches the results of configure
24766 # tests run on this system so they can be shared between configure
24767 # scripts and configure runs, see configure's option --config-cache.
24768 # It is not useful on other systems. If it contains results you don't
24769 # want to keep, you may remove or edit it.
24771 # config.status only pays attention to the cache file if you give it
24772 # the --recheck option to rerun configure.
24774 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24775 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24776 # following values.
24780 # The following way of writing the cache mishandles newlines in values,
24781 # but we know of no workaround that is simple, portable, and efficient.
24782 # So, we kill variables containing newlines.
24783 # Ultrix sh set writes to stderr and can't be redirected directly,
24784 # and sets the high bit in the cache file unless we assign to the vars.
24786 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24787 eval ac_val=\$$ac_var
24791 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24792 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24795 _ | IFS | as_nl) ;; #(
24796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24797 *) { eval $ac_var=; unset $ac_var;} ;;
24803 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24804 *${as_nl}ac_space=\ *)
24805 # `set' does not quote correctly, so add quotes: double-quote
24806 # substitution turns \\\\ into \\, and sed turns \\ into \.
24809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24812 # `set' quotes correctly as required by POSIX, so do not add quotes.
24813 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24822 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24824 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24826 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24827 if test -w "$cache_file"; then
24828 if test "x$cache_file" != "x/dev/null"; then
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24830 $as_echo "$as_me: updating cache $cache_file" >&6;}
24831 if test ! -f "$cache_file" || test -h "$cache_file"; then
24832 cat confcache >"$cache_file"
24834 case $cache_file in #(
24836 mv -f confcache "$cache_file"$$ &&
24837 mv -f "$cache_file"$$ "$cache_file" ;; #(
24839 mv -f confcache "$cache_file" ;;
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24845 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24850 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24851 # Let make expand exec_prefix.
24852 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24854 DEFS=-DHAVE_CONFIG_H
24859 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24860 # 1. Remove the extension, and $U if already installed.
24861 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24862 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24863 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24864 # will be set to the directory where LIBOBJS objects are built.
24865 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24866 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24868 LIBOBJS=$ac_libobjs
24870 LTLIBOBJS=$ac_ltlibobjs
24873 if test -n "$EXEEXT"; then
24875 am__EXEEXT_FALSE='#'
24877 am__EXEEXT_TRUE='#'
24881 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24882 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
24883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24885 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24886 as_fn_error $? "conditional \"AMDEP\" was never defined.
24887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24889 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24890 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24893 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24894 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24897 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
24898 as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
24899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24901 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24902 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
24903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24905 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24906 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24909 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
24910 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
24911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24913 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
24914 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
24915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24917 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24918 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24921 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24922 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24925 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24926 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24929 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24930 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24937 if test -n "$gl_LIBOBJS"; then
24938 # Remove the extension.
24939 sed_drop_objext='s/\.o$//;s/\.obj$//'
24940 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24941 gl_libobjs="$gl_libobjs $i.$ac_objext"
24942 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24945 gl_LIBOBJS=$gl_libobjs
24947 gl_LTLIBOBJS=$gl_ltlibobjs
24953 if test -n "$gltests_LIBOBJS"; then
24954 # Remove the extension.
24955 sed_drop_objext='s/\.o$//;s/\.obj$//'
24956 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24957 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24958 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24961 gltests_LIBOBJS=$gltests_libobjs
24963 gltests_LTLIBOBJS=$gltests_ltlibobjs
24967 : "${CONFIG_STATUS=./config.status}"
24969 ac_clean_files_save=$ac_clean_files
24970 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24972 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24974 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24976 # Generated by $as_me.
24977 # Run this file to recreate the current configuration.
24978 # Compiler output produced by configure, useful for debugging
24979 # configure, is in config.log if it exists.
24982 ac_cs_recheck=false
24985 SHELL=\${CONFIG_SHELL-$SHELL}
24988 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24989 ## -------------------- ##
24990 ## M4sh Initialization. ##
24991 ## -------------------- ##
24993 # Be more Bourne compatible
24994 DUALCASE=1; export DUALCASE # for MKS sh
24995 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24998 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24999 # is contrary to our usage. Disable this feature.
25000 alias -g '${1+"$@"}'='"$@"'
25001 setopt NO_GLOB_SUBST
25003 case `(set -o) 2>/dev/null` in #(
25015 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25016 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25017 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25018 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25019 # Prefer a ksh shell builtin over an external printf program on Solaris,
25020 # but without wasting forks for bash or zsh.
25021 if test -z "$BASH_VERSION$ZSH_VERSION" \
25022 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25023 as_echo='print -r --'
25024 as_echo_n='print -rn --'
25025 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25026 as_echo='printf %s\n'
25027 as_echo_n='printf %s'
25029 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25030 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25031 as_echo_n='/usr/ucb/echo -n'
25033 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25034 as_echo_n_body='eval
25038 expr "X$arg" : "X\\(.*\\)$as_nl";
25039 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25041 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25043 export as_echo_n_body
25044 as_echo_n='sh -c $as_echo_n_body as_echo'
25046 export as_echo_body
25047 as_echo='sh -c $as_echo_body as_echo'
25050 # The user is always right.
25051 if test "${PATH_SEPARATOR+set}" != set; then
25053 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25054 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25061 # We need space, tab and new line, in precisely that order. Quoting is
25062 # there to prevent editors from complaining about space-tab.
25063 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25064 # splitting by setting IFS to empty value.)
25067 # Find who we are. Look in the path if we contain no directory separator.
25070 *[\\/]* ) as_myself=$0 ;;
25071 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25072 for as_dir in $PATH
25075 test -z "$as_dir" && as_dir=.
25076 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25082 # We did not find ourselves, most probably we were run as `sh COMMAND'
25083 # in which case we are not to be found in the path.
25084 if test "x$as_myself" = x; then
25087 if test ! -f "$as_myself"; then
25088 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25092 # Unset variables that we do not need and which cause bugs (e.g. in
25093 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25094 # suppresses any "Segmentation fault" message there. '((' could
25095 # trigger a bug in pdksh 5.2.14.
25096 for as_var in BASH_ENV ENV MAIL MAILPATH
25097 do eval test x\${$as_var+set} = xset \
25098 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25111 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25114 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25115 # ----------------------------------------
25116 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25117 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25118 # script with STATUS, using 1 if that was 0.
25121 as_status=$1; test $as_status -eq 0 && as_status=1
25123 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25124 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25126 $as_echo "$as_me: error: $2" >&2
25127 as_fn_exit $as_status
25131 # as_fn_set_status STATUS
25132 # -----------------------
25133 # Set $? to STATUS, without forking.
25134 as_fn_set_status ()
25137 } # as_fn_set_status
25139 # as_fn_exit STATUS
25140 # -----------------
25141 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25145 as_fn_set_status $1
25151 # Portably unset VAR.
25154 { eval $1=; unset $1;}
25156 as_unset=as_fn_unset
25157 # as_fn_append VAR VALUE
25158 # ----------------------
25159 # Append the text in VALUE to the end of the definition contained in VAR. Take
25160 # advantage of any shell optimizations that allow amortized linear growth over
25161 # repeated appends, instead of the typical quadratic growth present in naive
25163 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25164 eval 'as_fn_append ()
25175 # as_fn_arith ARG...
25176 # ------------------
25177 # Perform arithmetic evaluation on the ARGs, and store the result in the
25178 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25179 # must be portable across $(()) and expr.
25180 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25181 eval 'as_fn_arith ()
25188 as_val=`expr "$@" || test $? -eq 1`
25193 if expr a : '\(a\)' >/dev/null 2>&1 &&
25194 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25200 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25201 as_basename=basename
25206 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25212 as_me=`$as_basename -- "$0" ||
25213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25214 X"$0" : 'X\(//\)$' \| \
25215 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25217 sed '/^.*\/\([^/][^/]*\)\/*$/{
25231 # Avoid depending upon Character Ranges.
25232 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25233 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25234 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25235 as_cr_digits='0123456789'
25236 as_cr_alnum=$as_cr_Letters$as_cr_digits
25238 ECHO_C= ECHO_N= ECHO_T=
25239 case `echo -n x` in #(((((
25241 case `echo 'xy\c'` in
25242 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25244 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25251 rm -f conf$$ conf$$.exe conf$$.file
25252 if test -d conf$$.dir; then
25253 rm -f conf$$.dir/conf$$.file
25256 mkdir conf$$.dir 2>/dev/null
25258 if (echo >conf$$.file) 2>/dev/null; then
25259 if ln -s conf$$.file conf$$ 2>/dev/null; then
25261 # ... but there are two gotchas:
25262 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25263 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25264 # In both cases, we have to default to `cp -pR'.
25265 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25267 elif ln conf$$.file conf$$ 2>/dev/null; then
25275 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25276 rmdir conf$$.dir 2>/dev/null
25281 # Create "$as_dir" as a directory, including parents if necessary.
25286 -*) as_dir=./$as_dir;;
25288 test -d "$as_dir" || eval $as_mkdir_p || {
25292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25293 *) as_qdir=$as_dir;;
25295 as_dirs="'$as_qdir' $as_dirs"
25296 as_dir=`$as_dirname -- "$as_dir" ||
25297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25298 X"$as_dir" : 'X\(//\)[^/]' \| \
25299 X"$as_dir" : 'X\(//\)$' \| \
25300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25301 $as_echo X"$as_dir" |
25302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25306 /^X\(\/\/\)[^/].*/{
25319 test -d "$as_dir" && break
25321 test -z "$as_dirs" || eval "mkdir $as_dirs"
25322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25326 if mkdir -p . 2>/dev/null; then
25327 as_mkdir_p='mkdir -p "$as_dir"'
25329 test -d ./-p && rmdir ./-p
25334 # as_fn_executable_p FILE
25335 # -----------------------
25336 # Test if FILE is an executable regular file.
25337 as_fn_executable_p ()
25339 test -f "$1" && test -x "$1"
25340 } # as_fn_executable_p
25341 as_test_x='test -x'
25342 as_executable_p=as_fn_executable_p
25344 # Sed expression to map a string onto a valid CPP name.
25345 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25347 # Sed expression to map a string onto a valid variable name.
25348 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25352 ## ----------------------------------- ##
25353 ## Main body of $CONFIG_STATUS script. ##
25354 ## ----------------------------------- ##
25356 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25359 # Save the log message, to keep $0 and so on meaningful, and to
25360 # report actual input values of CONFIG_FILES etc. instead of their
25361 # values after options handling.
25363 This file was extended by libpipeline $as_me 1.2.3, which was
25364 generated by GNU Autoconf 2.69. Invocation command line was
25366 CONFIG_FILES = $CONFIG_FILES
25367 CONFIG_HEADERS = $CONFIG_HEADERS
25368 CONFIG_LINKS = $CONFIG_LINKS
25369 CONFIG_COMMANDS = $CONFIG_COMMANDS
25372 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25377 case $ac_config_files in *"
25378 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25381 case $ac_config_headers in *"
25382 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25387 # Files that config.status was made for.
25388 config_files="$ac_config_files"
25389 config_headers="$ac_config_headers"
25390 config_commands="$ac_config_commands"
25394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25396 \`$as_me' instantiates files and other configuration actions
25397 from templates according to the current configuration. Unless the files
25398 and actions are specified as TAGs, all are instantiated by default.
25400 Usage: $0 [OPTION]... [TAG]...
25402 -h, --help print this help, then exit
25403 -V, --version print version number and configuration settings, then exit
25404 --config print configuration, then exit
25405 -q, --quiet, --silent
25406 do not print progress messages
25407 -d, --debug don't remove temporary files
25408 --recheck update $as_me by reconfiguring in the same conditions
25409 --file=FILE[:TEMPLATE]
25410 instantiate the configuration file FILE
25411 --header=FILE[:TEMPLATE]
25412 instantiate the configuration header FILE
25414 Configuration files:
25417 Configuration headers:
25420 Configuration commands:
25423 Report bugs to <cjwatson@debian.org>."
25426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25427 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25429 libpipeline config.status 1.2.3
25430 configured by $0, generated by GNU Autoconf 2.69,
25431 with options \\"\$ac_cs_config\\"
25433 Copyright (C) 2012 Free Software Foundation, Inc.
25434 This config.status script is free software; the Free Software Foundation
25435 gives unlimited permission to copy, distribute and modify it."
25442 test -n "\$AWK" || AWK=awk
25445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25446 # The default lists apply if the user does not specify any file.
25452 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25453 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25457 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25469 # Handling of the options.
25470 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25472 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25473 $as_echo "$ac_cs_version"; exit ;;
25474 --config | --confi | --conf | --con | --co | --c )
25475 $as_echo "$ac_cs_config"; exit ;;
25476 --debug | --debu | --deb | --de | --d | -d )
25478 --file | --fil | --fi | --f )
25481 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25482 '') as_fn_error $? "missing file argument" ;;
25484 as_fn_append CONFIG_FILES " '$ac_optarg'"
25485 ac_need_defaults=false;;
25486 --header | --heade | --head | --hea )
25489 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25491 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25492 ac_need_defaults=false;;
25494 # Conflict between --help and --header
25495 as_fn_error $? "ambiguous option: \`$1'
25496 Try \`$0 --help' for more information.";;
25497 --help | --hel | -h )
25498 $as_echo "$ac_cs_usage"; exit ;;
25499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25500 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25503 # This is an error.
25504 -*) as_fn_error $? "unrecognized option: \`$1'
25505 Try \`$0 --help' for more information." ;;
25507 *) as_fn_append ac_config_targets " $1"
25508 ac_need_defaults=false ;;
25514 ac_configure_extra_args=
25516 if $ac_cs_silent; then
25518 ac_configure_extra_args="$ac_configure_extra_args --silent"
25522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25523 if \$ac_cs_recheck; then
25524 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25526 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25527 CONFIG_SHELL='$SHELL'
25528 export CONFIG_SHELL
25533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25537 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25538 ## Running $as_me. ##
25544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25548 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25551 # The HP-UX ksh and POSIX shell print the target directory to stdout
25552 # if CDPATH is set.
25553 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25555 sed_quote_subst='$sed_quote_subst'
25556 double_quote_subst='$double_quote_subst'
25557 delay_variable_subst='$delay_variable_subst'
25558 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25559 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25560 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25561 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25562 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25563 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25564 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25565 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25566 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25567 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25568 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25569 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25570 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25571 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25572 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25573 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25574 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25575 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25576 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25577 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25578 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25579 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25580 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25581 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25582 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25583 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25584 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25585 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25586 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25587 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25588 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25589 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25590 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25591 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25592 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25593 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25594 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25595 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25596 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25597 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25598 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25599 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25600 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25601 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25602 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25603 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25604 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25605 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25606 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25607 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25608 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25609 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25610 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25611 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25612 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25613 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25614 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"`'
25615 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25616 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25617 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25618 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25619 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25620 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25621 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25622 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25623 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25624 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25625 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25626 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25627 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25628 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25629 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25630 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25631 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25632 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25633 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25634 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25635 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25636 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25637 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25638 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25639 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25640 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25641 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25642 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25643 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25644 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25645 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25646 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25647 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25648 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25649 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25650 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25651 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25652 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25653 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25654 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25655 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25656 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25657 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25658 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25659 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25660 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25661 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25662 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25663 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25664 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25665 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25666 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25667 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25668 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25669 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25670 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25671 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25672 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25673 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25674 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25675 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25676 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25677 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25678 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25679 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25680 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25681 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25682 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25683 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25684 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25685 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25686 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25687 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25690 LTCFLAGS='$LTCFLAGS'
25691 compiler='$compiler_DEFAULT'
25693 # A function that is used when there is no print builtin or printf.
25694 func_fallback_echo ()
25696 eval 'cat <<_LTECHO_EOF
25701 # Quote evaled strings.
25716 deplibs_check_method \
25721 sharedlib_from_linklib_cmd \
25724 archiver_list_spec \
25730 lt_cv_sys_global_symbol_pipe \
25731 lt_cv_sys_global_symbol_to_cdecl \
25732 lt_cv_sys_global_symbol_to_c_name_address \
25733 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25734 nm_file_list_spec \
25735 lt_prog_compiler_no_builtin_flag \
25736 lt_prog_compiler_pic \
25737 lt_prog_compiler_wl \
25738 lt_prog_compiler_static \
25739 lt_cv_prog_compiler_c_o \
25748 export_dynamic_flag_spec \
25749 whole_archive_flag_spec \
25750 compiler_needs_object \
25752 allow_undefined_flag \
25753 no_undefined_flag \
25754 hardcode_libdir_flag_spec \
25755 hardcode_libdir_separator \
25759 variables_saved_for_relink \
25761 library_names_spec \
25763 install_override_mode \
25767 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25768 *[\\\\\\\`\\"\\\$]*)
25769 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25772 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25777 # Double-quote double-evaled strings.
25778 for var in reload_cmds \
25779 old_postinstall_cmds \
25780 old_postuninstall_cmds \
25782 extract_expsyms_cmds \
25783 old_archive_from_new_cmds \
25784 old_archive_from_expsyms_cmds \
25786 archive_expsym_cmds \
25788 module_expsym_cmds \
25789 export_symbols_cmds \
25793 postuninstall_cmds \
25795 sys_lib_search_path_spec \
25796 sys_lib_dlsearch_path_spec; do
25797 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25798 *[\\\\\\\`\\"\\\$]*)
25799 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25802 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25807 ac_aux_dir='$ac_aux_dir'
25808 xsi_shell='$xsi_shell'
25809 lt_shell_append='$lt_shell_append'
25811 # See if we are running on zsh, and set the options which allow our
25812 # commands through without removal of \ escapes INIT.
25813 if test -n "\${ZSH_VERSION+set}" ; then
25814 setopt NO_GLOB_SUBST
25820 TIMESTAMP='$TIMESTAMP'
25829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25831 # Handling of arguments.
25832 for ac_config_target in $ac_config_targets
25834 case $ac_config_target in
25835 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25836 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25837 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25838 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25839 "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
25840 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25841 "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
25842 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
25843 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
25845 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25850 # If the user did not use the arguments to specify the items to instantiate,
25851 # then the envvar interface is used. Set only those that are not.
25852 # We use the long form for the default assignment because of an extremely
25853 # bizarre bug on SunOS 4.1.3.
25854 if $ac_need_defaults; then
25855 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25856 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25857 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25860 # Have a temporary directory for convenience. Make it in the build tree
25861 # simply because there is no reason against having it here, and in addition,
25862 # creating and moving files from /tmp can sometimes cause problems.
25863 # Hook for its removal unless debugging.
25864 # Note that there is a small window in which the directory will not be cleaned:
25865 # after its creation but before its name has been assigned to `$tmp'.
25869 trap 'exit_status=$?
25870 : "${ac_tmp:=$tmp}"
25871 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25873 trap 'as_fn_exit 1' 1 2 13 15
25875 # Create a (secure) tmp directory for tmp files.
25878 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25882 tmp=./conf$$-$RANDOM
25883 (umask 077 && mkdir "$tmp")
25884 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25887 # Set up the scripts for CONFIG_FILES section.
25888 # No need to generate them if there are no CONFIG_FILES.
25889 # This happens for instance with `./config.status config.h'.
25890 if test -n "$CONFIG_FILES"; then
25893 ac_cr=`echo X | tr X '\015'`
25894 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25895 # But we know of no other shell where ac_cr would be empty at this
25896 # point, so we can use a bashism as a fallback.
25897 if test "x$ac_cr" = x; then
25898 eval ac_cr=\$\'\\r\'
25900 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25901 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25904 ac_cs_awk_cr=$ac_cr
25907 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25912 echo "cat >conf$$subs.awk <<_ACEOF" &&
25913 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25915 } >conf$$subs.sh ||
25916 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25917 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25919 for ac_last_try in false false false false false :; do
25920 . ./conf$$subs.sh ||
25921 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25923 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25924 if test $ac_delim_n = $ac_delim_num; then
25926 elif $ac_last_try; then
25927 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25932 rm -f conf$$subs.sh
25934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25935 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25939 s/^/S["/; s/!.*/"]=/
25949 s/\(.\{148\}\)..*/\1/
25951 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25956 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25963 s/\(.\{148\}\)..*/\1/
25965 s/["\\]/\\&/g; s/^/"/; s/$/"/
25969 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25974 ' <conf$$subs.awk | sed '
25979 ' >>$CONFIG_STATUS || ac_write_fail=1
25980 rm -f conf$$subs.awk
25981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25983 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25984 for (key in S) S_is_set[key] = 1
25990 nfields = split(line, field, "@")
25992 len = length(field[1])
25993 for (i = 2; i < nfields; i++) {
25995 keylen = length(key)
25996 if (S_is_set[key]) {
25998 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25999 len += length(value) + length(field[++i])
26010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26011 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26012 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26015 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26016 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26019 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26020 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26021 # trailing colons and then remove the whole line if VPATH becomes empty
26022 # (actually we leave an empty line to preserve line numbers).
26023 if test "x$srcdir" = x.; then
26024 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26043 fi # test -n "$CONFIG_FILES"
26045 # Set up the scripts for CONFIG_HEADERS section.
26046 # No need to generate them if there are no CONFIG_HEADERS.
26047 # This happens for instance with `./config.status Makefile'.
26048 if test -n "$CONFIG_HEADERS"; then
26049 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26053 # Transform confdefs.h into an awk script `defines.awk', embedded as
26054 # here-document in config.status, that substitutes the proper values into
26055 # config.h.in to produce config.h.
26057 # Create a delimiter string that does not exist in confdefs.h, to ease
26058 # handling of long lines.
26060 for ac_last_try in false false :; do
26061 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26062 if test -z "$ac_tt"; then
26064 elif $ac_last_try; then
26065 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26067 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26071 # For the awk script, D is an array of macro values keyed by name,
26072 # likewise P contains macro parameters if any. Preserve backslash
26073 # newline sequences.
26075 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26077 s/.\{148\}/&'"$ac_delim"'/g
26080 s/^[ ]*#[ ]*define[ ][ ]*/ /
26087 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26089 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26093 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26094 D["\1"]=" \3\\\\\\n"\\/p
26096 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26101 s/.\{148\}/&'"$ac_delim"'/g
26106 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26109 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26111 ' <confdefs.h | sed '
26112 s/'"$ac_delim"'/"\\\
26113 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26116 for (key in D) D_is_set[key] = 1
26119 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26121 split(line, arg, " ")
26122 if (arg[1] == "#") {
26126 defundef = substr(arg[1], 2)
26129 split(mac1, mac2, "(") #)
26131 prefix = substr(line, 1, index(line, defundef) - 1)
26132 if (D_is_set[macro]) {
26133 # Preserve the white space surrounding the "#".
26134 print prefix "define", macro P[macro] D[macro]
26137 # Replace #undef with comments. This is necessary, for example,
26138 # in the case of _POSIX_SOURCE, which is predefined and required
26139 # on some systems where configure will not decide to define it.
26140 if (defundef == "undef") {
26141 print "/*", prefix defundef, macro, "*/"
26149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26150 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26151 fi # test -n "$CONFIG_HEADERS"
26154 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26159 :[FHLC]) ac_mode=$ac_tag; continue;;
26161 case $ac_mode$ac_tag in
26163 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26164 :[FH]-) ac_tag=-:-;;
26165 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26182 -) ac_f="$ac_tmp/stdin";;
26183 *) # Look for the file first in the build tree, then in the source tree
26184 # (if the path is not absolute). The absolute path cannot be DOS-style,
26185 # because $ac_f cannot contain `:'.
26189 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26191 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26193 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26194 as_fn_append ac_file_inputs " '$ac_f'"
26197 # Let's still pretend it is `configure' which instantiates (i.e., don't
26198 # use $as_me), people would be surprised to read:
26199 # /* config.h. Generated by config.status. */
26200 configure_input='Generated from '`
26201 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26203 if test x"$ac_file" != x-; then
26204 configure_input="$ac_file. $configure_input"
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26206 $as_echo "$as_me: creating $ac_file" >&6;}
26208 # Neutralize special characters interpreted by sed in replacement strings.
26209 case $configure_input in #(
26210 *\&* | *\|* | *\\* )
26211 ac_sed_conf_input=`$as_echo "$configure_input" |
26212 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26213 *) ac_sed_conf_input=$configure_input;;
26217 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26218 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26223 ac_dir=`$as_dirname -- "$ac_file" ||
26224 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26225 X"$ac_file" : 'X\(//\)[^/]' \| \
26226 X"$ac_file" : 'X\(//\)$' \| \
26227 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26228 $as_echo X"$ac_file" |
26229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26233 /^X\(\/\/\)[^/].*/{
26246 as_dir="$ac_dir"; as_fn_mkdir_p
26250 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26252 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26253 # A ".." for each directory in $ac_dir_suffix.
26254 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26255 case $ac_top_builddir_sub in
26256 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26257 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26260 ac_abs_top_builddir=$ac_pwd
26261 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26262 # for backward compatibility:
26263 ac_top_builddir=$ac_top_build_prefix
26266 .) # We are building in place.
26268 ac_top_srcdir=$ac_top_builddir_sub
26269 ac_abs_top_srcdir=$ac_pwd ;;
26270 [\\/]* | ?:[\\/]* ) # Absolute name.
26271 ac_srcdir=$srcdir$ac_dir_suffix;
26272 ac_top_srcdir=$srcdir
26273 ac_abs_top_srcdir=$srcdir ;;
26274 *) # Relative name.
26275 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26276 ac_top_srcdir=$ac_top_build_prefix$srcdir
26277 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26279 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26289 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26290 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26292 ac_MKDIR_P=$MKDIR_P
26294 [\\/$]* | ?:[\\/]* ) ;;
26295 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26300 # If the template does not know about datarootdir, expand it.
26301 # FIXME: This hack should be removed a few years after 2.60.
26302 ac_datarootdir_hack=; ac_datarootdir_seen=
26313 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26314 *datarootdir*) ac_datarootdir_seen=yes;;
26315 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26317 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26320 ac_datarootdir_hack='
26321 s&@datadir@&$datadir&g
26322 s&@docdir@&$docdir&g
26323 s&@infodir@&$infodir&g
26324 s&@localedir@&$localedir&g
26325 s&@mandir@&$mandir&g
26326 s&\\\${datarootdir}&$datarootdir&g' ;;
26330 # Neutralize VPATH when `$srcdir' = `.'.
26331 # Shell code in configure.ac might set extrasub.
26332 # FIXME: do we really want to maintain this feature?
26333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26334 ac_sed_extra="$ac_vpsub
26337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26339 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26340 s|@configure_input@|$ac_sed_conf_input|;t t
26341 s&@top_builddir@&$ac_top_builddir_sub&;t t
26342 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26343 s&@srcdir@&$ac_srcdir&;t t
26344 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26345 s&@top_srcdir@&$ac_top_srcdir&;t t
26346 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26347 s&@builddir@&$ac_builddir&;t t
26348 s&@abs_builddir@&$ac_abs_builddir&;t t
26349 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26350 s&@INSTALL@&$ac_INSTALL&;t t
26351 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26352 $ac_datarootdir_hack
26354 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26355 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26357 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26358 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26359 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26360 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26362 which seems to be undefined. Please make sure it is defined" >&5
26363 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26364 which seems to be undefined. Please make sure it is defined" >&2;}
26366 rm -f "$ac_tmp/stdin"
26368 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26369 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26371 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26377 if test x"$ac_file" != x-; then
26379 $as_echo "/* $configure_input */" \
26380 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26381 } >"$ac_tmp/config.h" \
26382 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26383 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26385 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26388 mv "$ac_tmp/config.h" "$ac_file" \
26389 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26392 $as_echo "/* $configure_input */" \
26393 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26394 || as_fn_error $? "could not create -" "$LINENO" 5
26396 # Compute "$ac_file"'s index in $config_headers.
26399 for _am_header in $config_headers :; do
26400 case $_am_header in
26401 $_am_arg | $_am_arg:* )
26404 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26407 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26408 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26409 X"$_am_arg" : 'X\(//\)[^/]' \| \
26410 X"$_am_arg" : 'X\(//\)$' \| \
26411 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26412 $as_echo X"$_am_arg" |
26413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26417 /^X\(\/\/\)[^/].*/{
26429 s/.*/./; q'`/stamp-h$_am_stamp_count
26432 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26433 $as_echo "$as_me: executing $ac_file commands" >&6;}
26438 case $ac_file$ac_mode in
26439 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26440 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26441 # are listed without --file. Let's play safe and only enable the eval
26442 # if we detect the quoting.
26443 case $CONFIG_FILES in
26444 *\'*) eval set x "$CONFIG_FILES" ;;
26445 *) set x $CONFIG_FILES ;;
26450 # Strip MF so we end up with the name of the file.
26451 mf=`echo "$mf" | sed -e 's/:.*$//'`
26452 # Check whether this is an Automake generated Makefile or not.
26453 # We used to match only the files named `Makefile.in', but
26454 # some people rename them; so instead we look at the file content.
26455 # Grep'ing the first line is not enough: some people post-process
26456 # each Makefile.in and add a new line on top of each file to say so.
26457 # Grep'ing the whole file is not good either: AIX grep has a line
26458 # limit of 2048, but all sed's we know have understand at least 4000.
26459 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26460 dirpart=`$as_dirname -- "$mf" ||
26461 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26462 X"$mf" : 'X\(//\)[^/]' \| \
26463 X"$mf" : 'X\(//\)$' \| \
26464 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26470 /^X\(\/\/\)[^/].*/{
26486 # Extract the definition of DEPDIR, am__include, and am__quote
26487 # from the Makefile without running `make'.
26488 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26489 test -z "$DEPDIR" && continue
26490 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26491 test -z "am__include" && continue
26492 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26493 # When using ansi2knr, U may be empty or an underscore; expand it
26494 U=`sed -n 's/^U = //p' < "$mf"`
26495 # Find all dependency output files, they are included files with
26496 # $(DEPDIR) in their names. We invoke sed twice because it is the
26497 # simplest approach to changing $(DEPDIR) to its actual value in the
26499 for file in `sed -n "
26500 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26501 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26502 # Make sure the directory exists.
26503 test -f "$dirpart/$file" && continue
26504 fdir=`$as_dirname -- "$file" ||
26505 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26506 X"$file" : 'X\(//\)[^/]' \| \
26507 X"$file" : 'X\(//\)$' \| \
26508 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26509 $as_echo X"$file" |
26510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26514 /^X\(\/\/\)[^/].*/{
26527 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26528 # echo "creating $dirpart/$file"
26529 echo '# dummy' > "$dirpart/$file"
26536 # See if we are running on zsh, and set the options which allow our
26537 # commands through without removal of \ escapes.
26538 if test -n "${ZSH_VERSION+set}" ; then
26539 setopt NO_GLOB_SUBST
26542 cfgfile="${ofile}T"
26543 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26546 cat <<_LT_EOF >> "$cfgfile"
26549 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26550 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26551 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26552 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26554 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26555 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26557 # Written by Gordon Matzigkeit, 1996
26559 # This file is part of GNU Libtool.
26561 # GNU Libtool is free software; you can redistribute it and/or
26562 # modify it under the terms of the GNU General Public License as
26563 # published by the Free Software Foundation; either version 2 of
26564 # the License, or (at your option) any later version.
26566 # As a special exception to the GNU General Public License,
26567 # if you distribute this file as part of a program or library that
26568 # is built using GNU Libtool, you may include this file under the
26569 # same distribution terms that you use for the rest of that program.
26571 # GNU Libtool is distributed in the hope that it will be useful,
26572 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26573 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26574 # GNU General Public License for more details.
26576 # You should have received a copy of the GNU General Public License
26577 # along with GNU Libtool; see the file COPYING. If not, a copy
26578 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26579 # obtained by writing to the Free Software Foundation, Inc.,
26580 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26583 # The names of the tagged configurations supported by this script.
26586 # ### BEGIN LIBTOOL CONFIG
26588 # Which release of libtool.m4 was used?
26589 macro_version=$macro_version
26590 macro_revision=$macro_revision
26592 # Whether or not to build static libraries.
26593 build_old_libs=$enable_static
26595 # Whether or not to build shared libraries.
26596 build_libtool_libs=$enable_shared
26598 # What type of objects to build.
26601 # Whether or not to optimize for fast installation.
26602 fast_install=$enable_fast_install
26604 # Shell to use when invoking shell scripts.
26607 # An echo program that protects backslashes.
26610 # The PATH separator for the build system.
26611 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26614 host_alias=$host_alias
26618 # The build system.
26619 build_alias=$build_alias
26623 # A sed program that does not truncate output.
26626 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26627 Xsed="\$SED -e 1s/^X//"
26629 # A grep program that handles long lines.
26635 # A literal string matcher.
26638 # A BSD- or MS-compatible name lister.
26641 # Whether we need soft or hard links.
26644 # What is the maximum length of a command?
26645 max_cmd_len=$max_cmd_len
26647 # Object file suffix (normally "o").
26650 # Executable file suffix (normally "").
26653 # whether the shell understands "unset".
26656 # turn spaces into newlines.
26659 # turn newlines into spaces.
26662 # convert \$build file names to \$host format.
26663 to_host_file_cmd=$lt_cv_to_host_file_cmd
26665 # convert \$build files to toolchain format.
26666 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26668 # An object symbol dumper.
26669 OBJDUMP=$lt_OBJDUMP
26671 # Method to check whether dependent libraries are shared objects.
26672 deplibs_check_method=$lt_deplibs_check_method
26674 # Command to use when deplibs_check_method = "file_magic".
26675 file_magic_cmd=$lt_file_magic_cmd
26677 # How to find potential files when deplibs_check_method = "file_magic".
26678 file_magic_glob=$lt_file_magic_glob
26680 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26681 want_nocaseglob=$lt_want_nocaseglob
26683 # DLL creation program.
26684 DLLTOOL=$lt_DLLTOOL
26686 # Command to associate shared and link libraries.
26687 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26692 # Flags to create an archive.
26693 AR_FLAGS=$lt_AR_FLAGS
26695 # How to feed a file listing to the archiver.
26696 archiver_list_spec=$lt_archiver_list_spec
26698 # A symbol stripping program.
26701 # Commands used to install an old-style archive.
26703 old_postinstall_cmds=$lt_old_postinstall_cmds
26704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26706 # Whether to use a lock for old archive extraction.
26707 lock_old_archive_extraction=$lock_old_archive_extraction
26712 # LTCC compiler flags.
26713 LTCFLAGS=$lt_CFLAGS
26715 # Take the output of nm and produce a listing of raw symbols and C names.
26716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26718 # Transform the output of nm in a proper C declaration.
26719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26721 # Transform the output of nm in a C name address pair.
26722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26724 # Transform the output of nm in a C name address pair when lib prefix is needed.
26725 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26727 # Specify filename containing input files for \$NM.
26728 nm_file_list_spec=$lt_nm_file_list_spec
26730 # The root where to search for dependent libraries,and in which our libraries should be installed.
26731 lt_sysroot=$lt_sysroot
26733 # The name of the directory that contains temporary libtool files.
26736 # Used to examine libraries when file_magic_cmd begins with "file".
26737 MAGIC_CMD=$MAGIC_CMD
26739 # Must we lock files when doing compilation?
26740 need_locks=$lt_need_locks
26743 MANIFEST_TOOL=$lt_MANIFEST_TOOL
26745 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26746 DSYMUTIL=$lt_DSYMUTIL
26748 # Tool to change global to local symbols on Mac OS X.
26751 # Tool to manipulate fat objects and archives on Mac OS X.
26754 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26757 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26758 OTOOL64=$lt_OTOOL64
26760 # Old archive suffix (normally "a").
26763 # Shared library suffix (normally ".so").
26764 shrext_cmds=$lt_shrext_cmds
26766 # The commands to extract the exported symbol list from a shared archive.
26767 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26769 # Variables whose values should be saved in libtool wrapper scripts and
26770 # restored at link time.
26771 variables_saved_for_relink=$lt_variables_saved_for_relink
26773 # Do we need the "lib" prefix for modules?
26774 need_lib_prefix=$need_lib_prefix
26776 # Do we need a version for libraries?
26777 need_version=$need_version
26779 # Library versioning type.
26780 version_type=$version_type
26782 # Shared library runtime path variable.
26783 runpath_var=$runpath_var
26785 # Shared library path variable.
26786 shlibpath_var=$shlibpath_var
26788 # Is shlibpath searched before the hard-coded library search path?
26789 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26791 # Format of library name prefix.
26792 libname_spec=$lt_libname_spec
26794 # List of archive names. First name is the real one, the rest are links.
26795 # The last name is the one that the linker finds with -lNAME
26796 library_names_spec=$lt_library_names_spec
26798 # The coded name of the library, if different from the real name.
26799 soname_spec=$lt_soname_spec
26801 # Permission mode override for installation of shared libraries.
26802 install_override_mode=$lt_install_override_mode
26804 # Command to use after installation of a shared archive.
26805 postinstall_cmds=$lt_postinstall_cmds
26807 # Command to use after uninstallation of a shared archive.
26808 postuninstall_cmds=$lt_postuninstall_cmds
26810 # Commands used to finish a libtool library installation in a directory.
26811 finish_cmds=$lt_finish_cmds
26813 # As "finish_cmds", except a single script fragment to be evaled but
26815 finish_eval=$lt_finish_eval
26817 # Whether we should hardcode library paths into libraries.
26818 hardcode_into_libs=$hardcode_into_libs
26820 # Compile-time system search path for libraries.
26821 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26823 # Run-time system search path for libraries.
26824 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26826 # Whether dlopen is supported.
26827 dlopen_support=$enable_dlopen
26829 # Whether dlopen of programs is supported.
26830 dlopen_self=$enable_dlopen_self
26832 # Whether dlopen of statically linked programs is supported.
26833 dlopen_self_static=$enable_dlopen_self_static
26835 # Commands to strip libraries.
26836 old_striplib=$lt_old_striplib
26837 striplib=$lt_striplib
26840 # The linker used to build libraries.
26843 # How to create reloadable object files.
26844 reload_flag=$lt_reload_flag
26845 reload_cmds=$lt_reload_cmds
26847 # Commands used to build an old-style archive.
26848 old_archive_cmds=$lt_old_archive_cmds
26850 # A language specific compiler.
26853 # Is the compiler the GNU compiler?
26856 # Compiler flag to turn off builtin functions.
26857 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26859 # Additional compiler flags for building library objects.
26860 pic_flag=$lt_lt_prog_compiler_pic
26862 # How to pass a linker flag through the compiler.
26863 wl=$lt_lt_prog_compiler_wl
26865 # Compiler flag to prevent dynamic linking.
26866 link_static_flag=$lt_lt_prog_compiler_static
26868 # Does compiler simultaneously support -c and -o options?
26869 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26871 # Whether or not to add -lc for building shared libraries.
26872 build_libtool_need_lc=$archive_cmds_need_lc
26874 # Whether or not to disallow shared libs when runtime libs are static.
26875 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26877 # Compiler flag to allow reflexive dlopens.
26878 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26880 # Compiler flag to generate shared objects directly from archives.
26881 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26883 # Whether the compiler copes with passing no objects directly.
26884 compiler_needs_object=$lt_compiler_needs_object
26886 # Create an old-style archive from a shared archive.
26887 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26889 # Create a temporary old-style archive to link instead of a shared archive.
26890 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26892 # Commands used to build a shared archive.
26893 archive_cmds=$lt_archive_cmds
26894 archive_expsym_cmds=$lt_archive_expsym_cmds
26896 # Commands used to build a loadable module if different from building
26897 # a shared archive.
26898 module_cmds=$lt_module_cmds
26899 module_expsym_cmds=$lt_module_expsym_cmds
26901 # Whether we are building with GNU ld or not.
26902 with_gnu_ld=$lt_with_gnu_ld
26904 # Flag that allows shared libraries with undefined symbols to be built.
26905 allow_undefined_flag=$lt_allow_undefined_flag
26907 # Flag that enforces no undefined symbols.
26908 no_undefined_flag=$lt_no_undefined_flag
26910 # Flag to hardcode \$libdir into a binary during linking.
26911 # This must work even if \$libdir does not exist
26912 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26914 # Whether we need a single "-rpath" flag with a separated argument.
26915 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26917 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26918 # DIR into the resulting binary.
26919 hardcode_direct=$hardcode_direct
26921 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26922 # DIR into the resulting binary and the resulting library dependency is
26923 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26924 # library is relocated.
26925 hardcode_direct_absolute=$hardcode_direct_absolute
26927 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26928 # into the resulting binary.
26929 hardcode_minus_L=$hardcode_minus_L
26931 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26932 # into the resulting binary.
26933 hardcode_shlibpath_var=$hardcode_shlibpath_var
26935 # Set to "yes" if building a shared library automatically hardcodes DIR
26936 # into the library and all subsequent libraries and executables linked
26938 hardcode_automatic=$hardcode_automatic
26940 # Set to yes if linker adds runtime paths of dependent libraries
26941 # to runtime path list.
26942 inherit_rpath=$inherit_rpath
26944 # Whether libtool must link a program against all its dependency libraries.
26945 link_all_deplibs=$link_all_deplibs
26947 # Set to "yes" if exported symbols are required.
26948 always_export_symbols=$always_export_symbols
26950 # The commands to list exported symbols.
26951 export_symbols_cmds=$lt_export_symbols_cmds
26953 # Symbols that should not be listed in the preloaded symbols.
26954 exclude_expsyms=$lt_exclude_expsyms
26956 # Symbols that must always be exported.
26957 include_expsyms=$lt_include_expsyms
26959 # Commands necessary for linking programs (against libraries) with templates.
26960 prelink_cmds=$lt_prelink_cmds
26962 # Commands necessary for finishing linking programs.
26963 postlink_cmds=$lt_postlink_cmds
26965 # Specify filename containing input files.
26966 file_list_spec=$lt_file_list_spec
26968 # How to hardcode a shared library path into an executable.
26969 hardcode_action=$hardcode_action
26971 # ### END LIBTOOL CONFIG
26977 cat <<\_LT_EOF >> "$cfgfile"
26978 # AIX sometimes has problems with the GCC collect2 program. For some
26979 # reason, if we set the COLLECT_NAMES environment variable, the problems
26980 # vanish in a puff of smoke.
26981 if test "X${COLLECT_NAMES+set}" != Xset; then
26983 export COLLECT_NAMES
26990 ltmain="$ac_aux_dir/ltmain.sh"
26993 # We use sed instead of cat because bash on DJGPP gets confused if
26994 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26995 # text mode, it properly converts lines to CR/LF. This bash problem
26996 # is reportedly fixed, but why not run on old versions too?
26997 sed '$q' "$ltmain" >> "$cfgfile" \
26998 || (rm -f "$cfgfile"; exit 1)
27000 if test x"$xsi_shell" = xyes; then
27001 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27005 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27006 \ * ) func_dirname_result="${3}" ;;\
27008 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27009 && mv -f "$cfgfile.tmp" "$cfgfile" \
27010 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27011 test 0 -eq $? || _lt_function_replace_fail=:
27014 sed -e '/^func_basename ()$/,/^} # func_basename /c\
27017 \ func_basename_result="${1##*/}"\
27018 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27019 && mv -f "$cfgfile.tmp" "$cfgfile" \
27020 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27021 test 0 -eq $? || _lt_function_replace_fail=:
27024 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27025 func_dirname_and_basename ()\
27028 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27029 \ * ) func_dirname_result="${3}" ;;\
27031 \ func_basename_result="${1##*/}"\
27032 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27033 && mv -f "$cfgfile.tmp" "$cfgfile" \
27034 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27035 test 0 -eq $? || _lt_function_replace_fail=:
27038 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27041 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27042 \ # positional parameters, so assign one to ordinary parameter first.\
27043 \ func_stripname_result=${3}\
27044 \ func_stripname_result=${func_stripname_result#"${1}"}\
27045 \ func_stripname_result=${func_stripname_result%"${2}"}\
27046 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27047 && mv -f "$cfgfile.tmp" "$cfgfile" \
27048 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27049 test 0 -eq $? || _lt_function_replace_fail=:
27052 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27053 func_split_long_opt ()\
27055 \ func_split_long_opt_name=${1%%=*}\
27056 \ func_split_long_opt_arg=${1#*=}\
27057 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27058 && mv -f "$cfgfile.tmp" "$cfgfile" \
27059 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27060 test 0 -eq $? || _lt_function_replace_fail=:
27063 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27064 func_split_short_opt ()\
27066 \ func_split_short_opt_arg=${1#??}\
27067 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27068 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27069 && mv -f "$cfgfile.tmp" "$cfgfile" \
27070 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27071 test 0 -eq $? || _lt_function_replace_fail=:
27074 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27078 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27079 \ *) func_lo2o_result=${1} ;;\
27081 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27082 && mv -f "$cfgfile.tmp" "$cfgfile" \
27083 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27084 test 0 -eq $? || _lt_function_replace_fail=:
27087 sed -e '/^func_xform ()$/,/^} # func_xform /c\
27090 func_xform_result=${1%.*}.lo\
27091 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27092 && mv -f "$cfgfile.tmp" "$cfgfile" \
27093 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27094 test 0 -eq $? || _lt_function_replace_fail=:
27097 sed -e '/^func_arith ()$/,/^} # func_arith /c\
27100 func_arith_result=$(( $* ))\
27101 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27102 && mv -f "$cfgfile.tmp" "$cfgfile" \
27103 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27104 test 0 -eq $? || _lt_function_replace_fail=:
27107 sed -e '/^func_len ()$/,/^} # func_len /c\
27110 func_len_result=${#1}\
27111 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27112 && mv -f "$cfgfile.tmp" "$cfgfile" \
27113 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27114 test 0 -eq $? || _lt_function_replace_fail=:
27118 if test x"$lt_shell_append" = xyes; then
27119 sed -e '/^func_append ()$/,/^} # func_append /c\
27122 eval "${1}+=\\${2}"\
27123 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27124 && mv -f "$cfgfile.tmp" "$cfgfile" \
27125 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27126 test 0 -eq $? || _lt_function_replace_fail=:
27129 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27130 func_append_quoted ()\
27132 \ func_quote_for_eval "${2}"\
27133 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27134 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27135 && mv -f "$cfgfile.tmp" "$cfgfile" \
27136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27137 test 0 -eq $? || _lt_function_replace_fail=:
27140 # Save a `func_append' function call where possible by direct use of '+='
27141 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27142 && mv -f "$cfgfile.tmp" "$cfgfile" \
27143 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27144 test 0 -eq $? || _lt_function_replace_fail=:
27146 # Save a `func_append' function call even when '+=' is not available
27147 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27148 && mv -f "$cfgfile.tmp" "$cfgfile" \
27149 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27150 test 0 -eq $? || _lt_function_replace_fail=:
27153 if test x"$_lt_function_replace_fail" = x":"; then
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27155 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27159 mv -f "$cfgfile" "$ofile" ||
27160 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27171 ac_clean_files=$ac_clean_files_save
27173 test $ac_write_fail = 0 ||
27174 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27177 # configure is writing to config.log, and then calls config.status.
27178 # config.status does its own redirection, appending to config.log.
27179 # Unfortunately, on DOS this fails, as config.log is still kept open
27180 # by configure, so config.status won't be able to write to it; its
27181 # output is simply discarded. So we exec the FD to /dev/null,
27182 # effectively closing config.log, so it can be properly (re)opened and
27183 # appended to by config.status. When coming back to configure, we
27184 # need to make the FD available again.
27185 if test "$no_create" != yes; then
27187 ac_config_status_args=
27188 test "$silent" = yes &&
27189 ac_config_status_args="$ac_config_status_args --quiet"
27191 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27193 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27194 # would make configure fail if this is the last instruction.
27195 $ac_cs_success || as_fn_exit 1
27197 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27199 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}