2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libgpg-error 1.10.
5 # Report bugs to <bug-gnupg@gnupg.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: bug-gnupg@gnupg.org about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
241 SHELL=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir=./$as_dir;;
286 test -d "$as_dir" || eval $as_mkdir_p || {
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 as_val=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status=$?; test $as_status -eq 0 && as_status=1
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 elif ln conf$$.file conf$$ 2>/dev/null; then
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
496 test -d ./-p && rmdir ./-p
500 if test -x / >/dev/null 2>&1; then
503 if ls -dL / >/dev/null 2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
542 if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
545 elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $ECHO works!
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569 if test -z "$lt_ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
591 # So, first we look for a working echo in the user's PATH.
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
606 if test "X$ECHO" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
637 ECHO="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 ECHO="$CONFIG_SHELL $0 --fallback-echo"
644 # maybe with a smaller string...
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660 # Oops. We lost completely, so just stick with echo.
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 exec 7<&0 </dev/null 6>&1
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
699 PACKAGE_NAME='libgpg-error'
700 PACKAGE_TARNAME='libgpg-error'
701 PACKAGE_VERSION='1.10'
702 PACKAGE_STRING='libgpg-error 1.10'
703 PACKAGE_BUGREPORT='bug-gnupg@gnupg.org'
706 ac_unique_file="src/err-sources.h.in"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
720 # ifdef HAVE_STDLIB_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
744 ac_subst_vars='LTLIBOBJS
748 HAVE_W32CE_SYSTEM_FALSE
749 HAVE_W32CE_SYSTEM_TRUE
750 HAVE_W32_SYSTEM_FALSE
754 GPG_ERROR_CONFIG_ISUBDIRAFTER
755 GPG_ERROR_CONFIG_CFLAGS
756 GPG_ERROR_CONFIG_LIBS
764 XGETTEXT_EXTRA_OPTIONS
772 GETTEXT_MACRO_VERSION
823 MAINTAINER_MODE_FALSE
833 INSTALL_STRIP_PROGRAM
848 LIBGPG_ERROR_LT_REVISION
850 LIBGPG_ERROR_LT_CURRENT
878 program_transform_name
891 enable_option_checking
892 enable_maintainer_mode
893 enable_dependency_tracking
906 ac_precious_vars='build_alias
918 # Initialize some variables set by options.
920 ac_init_version=false
921 ac_unrecognized_opts=
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
932 program_transform_name=s,x,x,
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir='${exec_prefix}/bin'
947 sbindir='${exec_prefix}/sbin'
948 libexecdir='${exec_prefix}/libexec'
949 datarootdir='${prefix}/share'
950 datadir='${datarootdir}'
951 sysconfdir='${prefix}/etc'
952 sharedstatedir='${prefix}/com'
953 localstatedir='${prefix}/var'
954 includedir='${prefix}/include'
955 oldincludedir='/usr/include'
956 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
957 infodir='${datarootdir}/info'
962 libdir='${exec_prefix}/lib'
963 localedir='${datarootdir}/locale'
964 mandir='${datarootdir}/man'
970 # If the previous option needs an argument, assign it.
971 if test -n "$ac_prev"; then
972 eval $ac_prev=\$ac_option
978 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 # Accept the important Cygnus configure options, so we can diagnose typos.
984 case $ac_dashdash$ac_option in
988 -bindir | --bindir | --bindi | --bind | --bin | --bi)
990 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993 -build | --build | --buil | --bui | --bu)
994 ac_prev=build_alias ;;
995 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996 build_alias=$ac_optarg ;;
998 -cache-file | --cache-file | --cache-fil | --cache-fi \
999 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000 ac_prev=cache_file ;;
1001 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003 cache_file=$ac_optarg ;;
1005 --config-cache | -C)
1006 cache_file=config.cache ;;
1008 -datadir | --datadir | --datadi | --datad)
1010 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011 datadir=$ac_optarg ;;
1013 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014 | --dataroo | --dataro | --datar)
1015 ac_prev=datarootdir ;;
1016 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018 datarootdir=$ac_optarg ;;
1020 -disable-* | --disable-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error "invalid feature name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1029 "enable_$ac_useropt"
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1034 eval enable_$ac_useropt=no ;;
1036 -docdir | --docdir | --docdi | --doc | --do)
1038 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1039 docdir=$ac_optarg ;;
1041 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1044 dvidir=$ac_optarg ;;
1046 -enable-* | --enable-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error "invalid feature name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_$ac_useropt"
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1060 eval enable_$ac_useropt=\$ac_optarg ;;
1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064 | --exec | --exe | --ex)
1065 ac_prev=exec_prefix ;;
1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068 | --exec=* | --exe=* | --ex=*)
1069 exec_prefix=$ac_optarg ;;
1071 -gas | --gas | --ga | --g)
1072 # Obsolete; use --with-gas.
1075 -help | --help | --hel | --he | -h)
1076 ac_init_help=long ;;
1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078 ac_init_help=recursive ;;
1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080 ac_init_help=short ;;
1082 -host | --host | --hos | --ho)
1083 ac_prev=host_alias ;;
1084 -host=* | --host=* | --hos=* | --ho=*)
1085 host_alias=$ac_optarg ;;
1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091 htmldir=$ac_optarg ;;
1093 -includedir | --includedir | --includedi | --included | --include \
1094 | --includ | --inclu | --incl | --inc)
1095 ac_prev=includedir ;;
1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097 | --includ=* | --inclu=* | --incl=* | --inc=*)
1098 includedir=$ac_optarg ;;
1100 -infodir | --infodir | --infodi | --infod | --info | --inf)
1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103 infodir=$ac_optarg ;;
1105 -libdir | --libdir | --libdi | --libd)
1107 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108 libdir=$ac_optarg ;;
1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111 | --libexe | --libex | --libe)
1112 ac_prev=libexecdir ;;
1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114 | --libexe=* | --libex=* | --libe=*)
1115 libexecdir=$ac_optarg ;;
1117 -localedir | --localedir | --localedi | --localed | --locale)
1118 ac_prev=localedir ;;
1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120 localedir=$ac_optarg ;;
1122 -localstatedir | --localstatedir | --localstatedi | --localstated \
1123 | --localstate | --localstat | --localsta | --localst | --locals)
1124 ac_prev=localstatedir ;;
1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127 localstatedir=$ac_optarg ;;
1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132 mandir=$ac_optarg ;;
1134 -nfp | --nfp | --nf)
1135 # Obsolete; use --without-fp.
1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139 | --no-cr | --no-c | -n)
1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148 | --oldin | --oldi | --old | --ol | --o)
1149 ac_prev=oldincludedir ;;
1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153 oldincludedir=$ac_optarg ;;
1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158 prefix=$ac_optarg ;;
1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161 | --program-pre | --program-pr | --program-p)
1162 ac_prev=program_prefix ;;
1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165 program_prefix=$ac_optarg ;;
1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168 | --program-suf | --program-su | --program-s)
1169 ac_prev=program_suffix ;;
1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172 program_suffix=$ac_optarg ;;
1174 -program-transform-name | --program-transform-name \
1175 | --program-transform-nam | --program-transform-na \
1176 | --program-transform-n | --program-transform- \
1177 | --program-transform | --program-transfor \
1178 | --program-transfo | --program-transf \
1179 | --program-trans | --program-tran \
1180 | --progr-tra | --program-tr | --program-t)
1181 ac_prev=program_transform_name ;;
1182 -program-transform-name=* | --program-transform-name=* \
1183 | --program-transform-nam=* | --program-transform-na=* \
1184 | --program-transform-n=* | --program-transform-=* \
1185 | --program-transform=* | --program-transfor=* \
1186 | --program-transfo=* | --program-transf=* \
1187 | --program-trans=* | --program-tran=* \
1188 | --progr-tra=* | --program-tr=* | --program-t=*)
1189 program_transform_name=$ac_optarg ;;
1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194 pdfdir=$ac_optarg ;;
1196 -psdir | --psdir | --psdi | --psd | --ps)
1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209 sbindir=$ac_optarg ;;
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220 sharedstatedir=$ac_optarg ;;
1222 -site | --site | --sit)
1224 -site=* | --site=* | --sit=*)
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1264 eval with_$ac_useropt=\$ac_optarg ;;
1266 -without-* | --without-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error "invalid package name: $ac_useropt"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1280 eval with_$ac_useropt=no ;;
1283 # Obsolete; use --with-x.
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1300 -*) as_fn_error "unrecognized option: \`$ac_option'
1301 Try \`$0 --help' for more information."
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 case $ac_envvar in #(
1308 '' | [0-9]* | *[!_$as_cr_alnum]* )
1309 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1315 # FIXME: should be removed in autoconf 3.0.
1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1325 if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 as_fn_error "missing argument to $ac_option"
1330 if test -n "$ac_unrecognized_opts"; then
1331 case $enable_option_checking in
1333 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1334 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 # Check all directory arguments for consistency.
1339 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir
1344 eval ac_val=\$$ac_var
1345 # Remove trailing slashes.
1348 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349 eval $ac_var=\$ac_val;;
1351 # Be sure to have absolute directory names.
1353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1364 target=$target_alias
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380 test "$silent" = yes && exec 6>/dev/null
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 as_fn_error "working directory cannot be determined"
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388 as_fn_error "pwd does not report name of working directory"
1391 # Find the source files, if location was not specified.
1392 if test -z "$srcdir"; then
1393 ac_srcdir_defaulted=yes
1394 # Try the directory containing this script, then the parent directory.
1395 ac_confdir=`$as_dirname -- "$as_myself" ||
1396 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397 X"$as_myself" : 'X\(//\)[^/]' \| \
1398 X"$as_myself" : 'X\(//\)$' \| \
1399 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400 $as_echo X"$as_myself" |
1401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1423 ac_srcdir_defaulted=no
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1429 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1433 # When building in place, set srcdir=.
1434 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 # Remove unnecessary trailing slashes from srcdir.
1438 # Double slashes in file names in object file debugging info
1439 # mess up M-x gdb in Emacs.
1441 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 for ac_var in $ac_precious_vars; do
1444 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_env_${ac_var}_value=\$${ac_var}
1446 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451 # Report the --help message.
1453 if test "$ac_init_help" = "long"; then
1454 # Omit some internal or obsolete options to make the list less imposing.
1455 # This message is too long to be a string in the A/UX 3.1 sh.
1457 \`configure' configures libgpg-error 1.10 to adapt to many kinds of systems.
1459 Usage: $0 [OPTION]... [VAR=VALUE]...
1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462 VAR=VALUE. See below for descriptions of some of the useful variables.
1464 Defaults for the options are specified in brackets.
1467 -h, --help display this help and exit
1468 --help=short display options specific to this package
1469 --help=recursive display the short help of all the included packages
1470 -V, --version display version information and exit
1471 -q, --quiet, --silent do not print \`checking...' messages
1472 --cache-file=FILE cache test results in FILE [disabled]
1473 -C, --config-cache alias for \`--cache-file=config.cache'
1474 -n, --no-create do not create output files
1475 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1477 Installation directories:
1478 --prefix=PREFIX install architecture-independent files in PREFIX
1479 [$ac_default_prefix]
1480 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1483 By default, \`make install' will install all the files in
1484 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1485 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486 for instance \`--prefix=\$HOME'.
1488 For better control, use the options below.
1490 Fine tuning of the installation directories:
1491 --bindir=DIR user executables [EPREFIX/bin]
1492 --sbindir=DIR system admin executables [EPREFIX/sbin]
1493 --libexecdir=DIR program executables [EPREFIX/libexec]
1494 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1495 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1496 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1497 --libdir=DIR object code libraries [EPREFIX/lib]
1498 --includedir=DIR C header files [PREFIX/include]
1499 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1500 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1501 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1502 --infodir=DIR info documentation [DATAROOTDIR/info]
1503 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1504 --mandir=DIR man documentation [DATAROOTDIR/man]
1505 --docdir=DIR documentation root [DATAROOTDIR/doc/libgpg-error]
1506 --htmldir=DIR html documentation [DOCDIR]
1507 --dvidir=DIR dvi documentation [DOCDIR]
1508 --pdfdir=DIR pdf documentation [DOCDIR]
1509 --psdir=DIR ps documentation [DOCDIR]
1515 --program-prefix=PREFIX prepend PREFIX to installed program names
1516 --program-suffix=SUFFIX append SUFFIX to installed program names
1517 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive ) echo "Configuration of libgpg-error 1.10:";;
1532 --disable-option-checking ignore unrecognized --enable/--with options
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1535 --enable-maintainer-mode enable make rules and dependencies not useful
1536 (and sometimes confusing) to the casual installer
1537 --disable-dependency-tracking speeds up one-time build
1538 --enable-dependency-tracking do not reject slow dependency extractors
1539 --enable-static[=PKGS] build static libraries [default=no]
1540 --enable-shared[=PKGS] build shared libraries [default=yes]
1541 --enable-fast-install[=PKGS]
1542 optimize for fast installation [default=yes]
1543 --disable-libtool-lock avoid locking (might break parallel builds)
1544 --disable-nls do not use Native Language Support
1545 --disable-rpath do not hardcode runtime library paths
1546 --disable-languages do not build support for other languages than C
1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1551 --with-pic try to use only PIC/non-PIC objects [default=use
1553 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1554 --with-gnu-ld assume the C compiler uses GNU ld default=no
1555 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1556 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1557 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1558 --without-libintl-prefix don't search for libintl in includedir and libdir
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1570 build system C compiler
1572 Use these variables to override the choices made by `configure' or to help
1573 it to find libraries and programs with nonstandard names/locations.
1575 Report bugs to <bug-gnupg@gnupg.org>.
1580 if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583 test -d "$ac_dir" ||
1584 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592 # A ".." for each directory in $ac_dir_suffix.
1593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594 case $ac_top_builddir_sub in
1595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599 ac_abs_top_builddir=$ac_pwd
1600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir=$ac_top_build_prefix
1605 .) # We are building in place.
1607 ac_top_srcdir=$ac_top_builddir_sub
1608 ac_abs_top_srcdir=$ac_pwd ;;
1609 [\\/]* | ?:[\\/]* ) # Absolute name.
1610 ac_srcdir=$srcdir$ac_dir_suffix;
1611 ac_top_srcdir=$srcdir
1612 ac_abs_top_srcdir=$srcdir ;;
1614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615 ac_top_srcdir=$ac_top_build_prefix$srcdir
1616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620 cd "$ac_dir" || { ac_status=$?; continue; }
1621 # Check for guested configure.
1622 if test -f "$ac_srcdir/configure.gnu"; then
1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625 elif test -f "$ac_srcdir/configure"; then
1627 $SHELL "$ac_srcdir/configure" --help=recursive
1629 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631 cd "$ac_pwd" || { ac_status=$?; break; }
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1638 libgpg-error configure 1.10
1639 generated by GNU Autoconf 2.64
1641 Copyright (C) 2009 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1648 ## ------------------------ ##
1649 ## Autoconf initialization. ##
1650 ## ------------------------ ##
1652 # ac_fn_c_try_compile LINENO
1653 # --------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_compile ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext
1659 if { { ac_try="$ac_compile"
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_compile") 2>conftest.err
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest.$ac_objext; then :
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 } # ac_fn_c_try_compile
1690 # ac_fn_c_try_cpp LINENO
1691 # ----------------------
1692 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_cpp conftest.$ac_ext"
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } >/dev/null && {
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1730 # the include files in INCLUDES and setting the cache variable VAR
1732 ac_fn_c_check_header_mongrel ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1739 $as_echo_n "(cached) " >&6
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1745 # Is the header compilable?
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1747 $as_echo_n "checking $2 usability... " >&6; }
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 ac_header_compiler=yes
1756 ac_header_compiler=no
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1760 $as_echo "$ac_header_compiler" >&6; }
1762 # Is the header present?
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1764 $as_echo_n "checking $2 presence... " >&6; }
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1769 if ac_fn_c_try_cpp "$LINENO"; then :
1770 ac_header_preproc=yes
1772 ac_header_preproc=no
1774 rm -f conftest.err conftest.$ac_ext
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1776 $as_echo "$ac_header_preproc" >&6; }
1778 # So? What about this header?
1779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1782 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1784 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1788 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1790 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1792 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1794 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1798 ## ---------------------------------- ##
1799 ## Report this to bug-gnupg@gnupg.org ##
1800 ## ---------------------------------- ##
1802 ) | sed "s/^/$as_me: WARNING: /" >&2
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1808 $as_echo_n "(cached) " >&6
1810 eval "$3=\$ac_header_compiler"
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818 } # ac_fn_c_check_header_mongrel
1820 # ac_fn_c_try_run LINENO
1821 # ----------------------
1822 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1823 # that executables *can* be run.
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_link"
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_link") 2>&5
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1838 { { case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_try") 2>&5
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; }; }; then :
1850 $as_echo "$as_me: program exited with status $ac_status" >&5
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1854 ac_retval=$ac_status
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1863 # -------------------------------------------------------
1864 # Tests whether HEADER exists and can be compiled using the include files in
1865 # INCLUDES, setting the cache variable VAR accordingly.
1866 ac_fn_c_check_header_compile ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1872 $as_echo_n "(cached) " >&6
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1879 if ac_fn_c_try_compile "$LINENO"; then :
1884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891 } # ac_fn_c_check_header_compile
1893 # ac_fn_c_try_link LINENO
1894 # -----------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 $as_test_x conftest$ac_exeext
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1937 } # ac_fn_c_try_link
1939 # ac_fn_c_check_func LINENO FUNC VAR
1940 # ----------------------------------
1941 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1942 ac_fn_c_check_func ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948 $as_echo_n "(cached) " >&6
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1954 #define $2 innocuous_$2
1956 /* System header to define __stub macros and hopefully few prototypes,
1957 which can conflict with char $2 (); below.
1958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1959 <limits.h> exists even on freestanding compilers. */
1962 # include <limits.h>
1964 # include <assert.h>
1969 /* Override any GCC internal prototype to avoid an error.
1970 Use char because int might match the return type of a GCC
1971 builtin and then its argument prototype would still apply. */
1976 /* The GNU C library defines this for functions which it implements
1977 to always fail with ENOSYS. Some functions are actually named
1978 something starting with __ and the normal name is an alias. */
1979 #if defined __stub_$2 || defined __stub___$2
1991 if ac_fn_c_try_link "$LINENO"; then :
1996 rm -f core conftest.err conftest.$ac_objext \
1997 conftest$ac_exeext conftest.$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004 } # ac_fn_c_check_func
2006 # ac_fn_c_check_decl LINENO SYMBOL VAR
2007 # ------------------------------------
2008 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2009 ac_fn_c_check_decl ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2013 $as_echo_n "checking whether $2 is declared... " >&6; }
2014 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015 $as_echo_n "(cached) " >&6
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2031 if ac_fn_c_try_compile "$LINENO"; then :
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043 } # ac_fn_c_check_decl
2044 cat >config.log <<_ACEOF
2045 This file contains any messages produced by compilers while
2046 running configure, to aid debugging if configure makes a mistake.
2048 It was created by libgpg-error $as_me 1.10, which was
2049 generated by GNU Autoconf 2.64. Invocation command line was
2061 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2062 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2063 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2064 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2065 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2067 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2068 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2070 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2071 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2072 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2073 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2074 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2075 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2076 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 test -z "$as_dir" && as_dir=.
2085 $as_echo "PATH: $as_dir"
2101 # Keep a trace of the command line.
2102 # Strip out --no-create and --no-recursion so they do not pile up.
2103 # Strip out --silent because we don't want to record it for future runs.
2104 # Also quote any args containing shell meta-characters.
2105 # Make two passes to allow for proper duplicate-argument suppression.
2109 ac_must_keep_next=false
2115 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2117 | -silent | --silent | --silen | --sile | --sil)
2120 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2123 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2125 as_fn_append ac_configure_args1 " '$ac_arg'"
2126 if test $ac_must_keep_next = true; then
2127 ac_must_keep_next=false # Got value, back to normal.
2130 *=* | --config-cache | -C | -disable-* | --disable-* \
2131 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2132 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2133 | -with-* | --with-* | -without-* | --without-* | --x)
2134 case "$ac_configure_args0 " in
2135 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2138 -* ) ac_must_keep_next=true ;;
2141 as_fn_append ac_configure_args " '$ac_arg'"
2146 { ac_configure_args0=; unset ac_configure_args0;}
2147 { ac_configure_args1=; unset ac_configure_args1;}
2149 # When interrupted or exit'd, cleanup temporary files, and complete
2150 # config.log. We remove comments because anyway the quotes in there
2151 # would cause problems or look ugly.
2152 # WARNING: Use '\'' to represent an apostrophe within the trap.
2153 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2154 trap 'exit_status=$?
2155 # Save into config.log some information that might help in debugging.
2160 ## ---------------- ##
2161 ## Cache variables. ##
2162 ## ---------------- ##
2165 # The following way of writing the cache mishandles newlines in values,
2167 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2168 eval ac_val=\$$ac_var
2172 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2173 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2176 _ | IFS | as_nl) ;; #(
2177 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2178 *) { eval $ac_var=; unset $ac_var;} ;;
2183 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2184 *${as_nl}ac_space=\ *)
2186 "s/'\''/'\''\\\\'\'''\''/g;
2187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2190 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2198 ## ----------------- ##
2199 ## Output variables. ##
2200 ## ----------------- ##
2203 for ac_var in $ac_subst_vars
2205 eval ac_val=\$$ac_var
2207 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209 $as_echo "$ac_var='\''$ac_val'\''"
2213 if test -n "$ac_subst_files"; then
2215 ## ------------------- ##
2216 ## File substitutions. ##
2217 ## ------------------- ##
2220 for ac_var in $ac_subst_files
2222 eval ac_val=\$$ac_var
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226 $as_echo "$ac_var='\''$ac_val'\''"
2231 if test -s confdefs.h; then
2241 test "$ac_signal" != 0 &&
2242 $as_echo "$as_me: caught signal $ac_signal"
2243 $as_echo "$as_me: exit $exit_status"
2245 rm -f core *.core core.conftest.* &&
2246 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2249 for ac_signal in 1 2 13 15; do
2250 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2255 rm -f -r conftest* confdefs.h
2257 $as_echo "/* confdefs.h */" > confdefs.h
2259 # Predefined preprocessor variables.
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_NAME "$PACKAGE_NAME"
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_STRING "$PACKAGE_STRING"
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_URL "$PACKAGE_URL"
2286 # Let the site file select an alternate cache file if it wants to.
2287 # Prefer an explicitly selected file to automatically selected ones.
2290 if test -n "$CONFIG_SITE"; then
2291 ac_site_file1=$CONFIG_SITE
2292 elif test "x$prefix" != xNONE; then
2293 ac_site_file1=$prefix/share/config.site
2294 ac_site_file2=$prefix/etc/config.site
2296 ac_site_file1=$ac_default_prefix/share/config.site
2297 ac_site_file2=$ac_default_prefix/etc/config.site
2299 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2301 test "x$ac_site_file" = xNONE && continue
2302 if test -r "$ac_site_file"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2304 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2305 sed 's/^/| /' "$ac_site_file" >&5
2310 if test -r "$cache_file"; then
2311 # Some versions of bash will fail to source /dev/null (special
2312 # files actually), so we avoid doing that.
2313 if test -f "$cache_file"; then
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2315 $as_echo "$as_me: loading cache $cache_file" >&6;}
2317 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2318 *) . "./$cache_file";;
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2323 $as_echo "$as_me: creating cache $cache_file" >&6;}
2327 gt_needs="$gt_needs "
2328 # Check that the precious variables saved in the cache have kept the same
2330 ac_cache_corrupted=false
2331 for ac_var in $ac_precious_vars; do
2332 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2333 eval ac_new_set=\$ac_env_${ac_var}_set
2334 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2335 eval ac_new_val=\$ac_env_${ac_var}_value
2336 case $ac_old_set,$ac_new_set in
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2339 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2340 ac_cache_corrupted=: ;;
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2343 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2344 ac_cache_corrupted=: ;;
2347 if test "x$ac_old_val" != "x$ac_new_val"; then
2348 # differences in whitespace do not lead to failure.
2349 ac_old_val_w=`echo x $ac_old_val`
2350 ac_new_val_w=`echo x $ac_new_val`
2351 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2353 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2354 ac_cache_corrupted=:
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2357 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2358 eval $ac_var=\$ac_old_val
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2361 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2363 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2366 # Pass precious variables to config.status.
2367 if test "$ac_new_set" = set; then
2369 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2370 *) ac_arg=$ac_var=$ac_new_val ;;
2372 case " $ac_configure_args " in
2373 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2374 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2378 if $ac_cache_corrupted; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2382 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2383 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2385 ## -------------------- ##
2386 ## Main body of script. ##
2387 ## -------------------- ##
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 # LT Version numbers, remember to change them just *before* a release.
2397 # (Code changed: REVISION++)
2398 # (Interfaces added/removed/changed: CURRENT++, REVISION=0)
2399 # (Interfaces added: AGE++)
2400 # (Interfaces removed: AGE=0)
2401 # Note that added error codes don't constitute an interface change.
2402 LIBGPG_ERROR_LT_CURRENT=8
2403 LIBGPG_ERROR_LT_AGE=8
2404 LIBGPG_ERROR_LT_REVISION=0
2409 am__api_version='1.10'
2412 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2413 for ac_t in install-sh install.sh shtool; do
2414 if test -f "$ac_dir/$ac_t"; then
2416 ac_install_sh="$ac_aux_dir/$ac_t -c"
2421 if test -z "$ac_aux_dir"; then
2422 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2425 # These three variables are undocumented and unsupported,
2426 # and are intended to be withdrawn in a future Autoconf release.
2427 # They can cause serious problems if a builder's source tree is in a directory
2428 # whose full name contains unusual characters.
2429 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2430 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2431 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2434 # Find a good install program. We prefer a C program (faster),
2435 # so one script is as good as another. But avoid the broken or
2436 # incompatible versions:
2437 # SysV /etc/install, /usr/sbin/install
2438 # SunOS /usr/etc/install
2439 # IRIX /sbin/install
2441 # AmigaOS /C/install, which installs bootblocks on floppy discs
2442 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2443 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2444 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2445 # OS/2's system install, which has a completely different semantic
2446 # ./install, which can be erroneously created by make from ./install.sh.
2447 # Reject install programs that cannot install multiple files.
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2449 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2450 if test -z "$INSTALL"; then
2451 if test "${ac_cv_path_install+set}" = set; then :
2452 $as_echo_n "(cached) " >&6
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 test -z "$as_dir" && as_dir=.
2459 # Account for people who put trailing slashes in PATH elements.
2460 case $as_dir/ in #((
2461 ./ | .// | /[cC]/* | \
2462 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2463 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2466 # OSF1 and SCO ODT 3.0 have their own names for install.
2467 # Don't use installbsd from OSF since it installs stuff as root
2469 for ac_prog in ginstall scoinst install; do
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2472 if test $ac_prog = install &&
2473 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2474 # AIX install. It has an incompatible calling convention.
2476 elif test $ac_prog = install &&
2477 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2478 # program-specific install script used by HP pwplus--don't use.
2481 rm -rf conftest.one conftest.two conftest.dir
2482 echo one > conftest.one
2483 echo two > conftest.two
2485 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2486 test -s conftest.one && test -s conftest.two &&
2487 test -s conftest.dir/conftest.one &&
2488 test -s conftest.dir/conftest.two
2490 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2503 rm -rf conftest.one conftest.two conftest.dir
2506 if test "${ac_cv_path_install+set}" = set; then
2507 INSTALL=$ac_cv_path_install
2509 # As a last resort, use the slow shell script. Don't cache a
2510 # value for INSTALL within a source directory, because that will
2511 # break other packages using the cache if that directory is
2512 # removed, or if the value is a relative name.
2513 INSTALL=$ac_install_sh
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2517 $as_echo "$INSTALL" >&6; }
2519 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2520 # It thinks the first close brace ends the variable substitution.
2521 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2523 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2525 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2528 $as_echo_n "checking whether build environment is sane... " >&6; }
2531 echo timestamp > conftest.file
2532 # Do `set' in a subshell so we don't clobber the current shell's
2533 # arguments. Must try -L first in case configure is actually a
2534 # symlink; some systems play weird games with the mod time of symlinks
2535 # (eg FreeBSD returns the mod time of the symlink's containing
2538 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2539 if test "$*" = "X"; then
2541 set X `ls -t $srcdir/configure conftest.file`
2544 if test "$*" != "X $srcdir/configure conftest.file" \
2545 && test "$*" != "X conftest.file $srcdir/configure"; then
2547 # If neither matched, then we have a broken ls. This can happen
2548 # if, for instance, CONFIG_SHELL is bash and it inherits a
2549 # broken ls alias from the environment. This has actually
2550 # happened. Such a system could not be considered "sane".
2551 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2552 alias in your environment" "$LINENO" 5
2555 test "$2" = conftest.file
2561 as_fn_error "newly created file is older than distributed files!
2562 Check your system clock" "$LINENO" 5
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2565 $as_echo "yes" >&6; }
2566 test "$program_prefix" != NONE &&
2567 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2568 # Use a double $ so make ignores it.
2569 test "$program_suffix" != NONE &&
2570 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2571 # Double any \ or $.
2572 # By default was `s,x,x', remove it if useless.
2573 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2574 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2576 # expand $ac_aux_dir to an absolute path
2577 am_aux_dir=`cd $ac_aux_dir && pwd`
2579 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2580 # Use eval to expand $SHELL
2581 if eval "$MISSING --run true"; then
2582 am_missing_run="$MISSING --run "
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2586 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2590 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2591 if test -z "$MKDIR_P"; then
2592 if test "${ac_cv_path_mkdir+set}" = set; then :
2593 $as_echo_n "(cached) " >&6
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2599 test -z "$as_dir" && as_dir=.
2600 for ac_prog in mkdir gmkdir; do
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2603 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2604 'mkdir (GNU coreutils) '* | \
2605 'mkdir (coreutils) '* | \
2606 'mkdir (fileutils) '4.1*)
2607 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2617 if test "${ac_cv_path_mkdir+set}" = set; then
2618 MKDIR_P="$ac_cv_path_mkdir -p"
2620 # As a last resort, use the slow shell script. Don't cache a
2621 # value for MKDIR_P within a source directory, because that will
2622 # break other packages using the cache if that directory is
2623 # removed, or if the value is a relative name.
2624 test -d ./--version && rmdir ./--version
2625 MKDIR_P="$ac_install_sh -d"
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2629 $as_echo "$MKDIR_P" >&6; }
2633 [\\/$]* | ?:[\\/]*) ;;
2634 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2637 for ac_prog in gawk mawk nawk awk
2639 # Extract the first word of "$ac_prog", so it can be a program name with args.
2640 set dummy $ac_prog; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if test "${ac_cv_prog_AWK+set}" = set; then :
2644 $as_echo_n "(cached) " >&6
2646 if test -n "$AWK"; then
2647 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_AWK="$ac_prog"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 if test -n "$AWK"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2669 $as_echo "$AWK" >&6; }
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2676 test -n "$AWK" && break
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2680 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2682 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2683 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2684 $as_echo_n "(cached) " >&6
2686 cat >conftest.make <<\_ACEOF
2689 @echo '@@@%%%=$(MAKE)=@@@%%%'
2691 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2692 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2694 eval ac_cv_prog_make_${ac_make}_set=yes;;
2696 eval ac_cv_prog_make_${ac_make}_set=no;;
2700 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2702 $as_echo "yes" >&6; }
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706 $as_echo "no" >&6; }
2707 SET_MAKE="MAKE=${MAKE-make}"
2710 rm -rf .tst 2>/dev/null
2711 mkdir .tst 2>/dev/null
2712 if test -d .tst; then
2717 rmdir .tst 2>/dev/null
2719 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2720 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2721 # is not polluted with repeated "-I."
2722 am__isrc=' -I$(srcdir)'
2723 # test to see if srcdir already configured
2724 if test -f $srcdir/config.status; then
2725 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2729 # test whether we have cygpath
2730 if test -z "$CYGPATH_W"; then
2731 if (cygpath --version) >/dev/null 2>/dev/null; then
2732 CYGPATH_W='cygpath -w'
2739 # Define the identity of the package.
2740 PACKAGE='libgpg-error'
2744 cat >>confdefs.h <<_ACEOF
2745 #define PACKAGE "$PACKAGE"
2749 cat >>confdefs.h <<_ACEOF
2750 #define VERSION "$VERSION"
2753 # Some tools Automake needs.
2755 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2758 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2761 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2764 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2767 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2769 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2771 # Installed binaries are usually stripped using `strip' when the user
2772 # run `make install-strip'. However `strip' might not be the right
2773 # tool to use in cross-compilation environments, therefore Automake
2774 # will honor the `STRIP' environment variable to overrule this program.
2775 if test "$cross_compiling" != no; then
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2778 set dummy ${ac_tool_prefix}strip; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if test "${ac_cv_prog_STRIP+set}" = set; then :
2782 $as_echo_n "(cached) " >&6
2784 if test -n "$STRIP"; then
2785 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 STRIP=$ac_cv_prog_STRIP
2805 if test -n "$STRIP"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2807 $as_echo "$STRIP" >&6; }
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2815 if test -z "$ac_cv_prog_STRIP"; then
2817 # Extract the first word of "strip", so it can be a program name with args.
2818 set dummy strip; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2822 $as_echo_n "(cached) " >&6
2824 if test -n "$ac_ct_STRIP"; then
2825 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834 ac_cv_prog_ac_ct_STRIP="strip"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2845 if test -n "$ac_ct_STRIP"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2847 $as_echo "$ac_ct_STRIP" >&6; }
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2853 if test "x$ac_ct_STRIP" = x; then
2856 case $cross_compiling:$ac_tool_warned in
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860 ac_tool_warned=yes ;;
2865 STRIP="$ac_cv_prog_STRIP"
2869 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2871 # We need awk for the "check" target. The system "awk" is bad on
2873 # Always define AMTAR for backward compatibility.
2875 AMTAR=${AMTAR-"${am_missing_run}tar"}
2877 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2884 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2885 # Check whether --enable-maintainer-mode was given.
2886 if test "${enable_maintainer_mode+set}" = set; then :
2887 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2889 USE_MAINTAINER_MODE=no
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2893 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2894 if test $USE_MAINTAINER_MODE = yes; then
2895 MAINTAINER_MODE_TRUE=
2896 MAINTAINER_MODE_FALSE='#'
2898 MAINTAINER_MODE_TRUE='#'
2899 MAINTAINER_MODE_FALSE=
2902 MAINT=$MAINTAINER_MODE_TRUE
2906 ac_config_headers="$ac_config_headers config.h"
2910 # We need to know about the host architecture to avoid spurious
2912 # Make sure we can run config.sub.
2913 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2914 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2917 $as_echo_n "checking build system type... " >&6; }
2918 if test "${ac_cv_build+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
2921 ac_build_alias=$build_alias
2922 test "x$ac_build_alias" = x &&
2923 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2924 test "x$ac_build_alias" = x &&
2925 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2926 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2927 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2931 $as_echo "$ac_cv_build" >&6; }
2932 case $ac_cv_build in
2934 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2937 ac_save_IFS=$IFS; IFS='-'
2943 # Remember, the first character of IFS is used to create $*,
2944 # except with old shells:
2947 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2951 $as_echo_n "checking host system type... " >&6; }
2952 if test "${ac_cv_host+set}" = set; then :
2953 $as_echo_n "(cached) " >&6
2955 if test "x$host_alias" = x; then
2956 ac_cv_host=$ac_cv_build
2958 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2959 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2964 $as_echo "$ac_cv_host" >&6; }
2967 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2970 ac_save_IFS=$IFS; IFS='-'
2976 # Remember, the first character of IFS is used to create $*,
2977 # except with old shells:
2980 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
2988 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
2990 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
2992 if test "$hostname"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
2994 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
2997 date=`date +%Y%m%d-%H%M%S`
2998 if test "$?" != 0; then
3001 if test "$date"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3003 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3007 # Checks for programs.
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 if test -n "$ac_tool_prefix"; then
3014 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3015 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if test "${ac_cv_prog_CC+set}" = set; then :
3019 $as_echo_n "(cached) " >&6
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 if test -n "$CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3044 $as_echo "$CC" >&6; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3052 if test -z "$ac_cv_prog_CC"; then
3054 # Extract the first word of "gcc", so it can be a program name with args.
3055 set dummy gcc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3061 if test -n "$ac_ct_CC"; then
3062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 ac_cv_prog_ac_ct_CC="gcc"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3082 if test -n "$ac_ct_CC"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3084 $as_echo "$ac_ct_CC" >&6; }
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3090 if test "x$ac_ct_CC" = x; then
3093 case $cross_compiling:$ac_tool_warned in
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3097 ac_tool_warned=yes ;;
3105 if test -z "$CC"; then
3106 if test -n "$ac_tool_prefix"; then
3107 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3108 set dummy ${ac_tool_prefix}cc; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if test "${ac_cv_prog_CC+set}" = set; then :
3112 $as_echo_n "(cached) " >&6
3114 if test -n "$CC"; then
3115 ac_cv_prog_CC="$CC" # Let the user override the test.
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 ac_cv_prog_CC="${ac_tool_prefix}cc"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 if test -n "$CC"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3137 $as_echo "$CC" >&6; }
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3146 if test -z "$CC"; then
3147 # Extract the first word of "cc", so it can be a program name with args.
3148 set dummy cc; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if test "${ac_cv_prog_CC+set}" = set; then :
3152 $as_echo_n "(cached) " >&6
3154 if test -n "$CC"; then
3155 ac_cv_prog_CC="$CC" # Let the user override the test.
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3166 ac_prog_rejected=yes
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 if test $ac_prog_rejected = yes; then
3178 # We found a bogon in the path, so make sure we never use it.
3179 set dummy $ac_cv_prog_CC
3181 if test $# != 0; then
3182 # We chose a different compiler from the bogus one.
3183 # However, it has the same basename, so the bogon will be chosen
3184 # first if we set CC to just the basename; use the full file name.
3186 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3192 if test -n "$CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3202 if test -z "$CC"; then
3203 if test -n "$ac_tool_prefix"; then
3204 for ac_prog in cl.exe
3206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if test "${ac_cv_prog_CC+set}" = set; then :
3211 $as_echo_n "(cached) " >&6
3213 if test -n "$CC"; then
3214 ac_cv_prog_CC="$CC" # Let the user override the test.
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 if test -n "$CC"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3236 $as_echo "$CC" >&6; }
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3243 test -n "$CC" && break
3246 if test -z "$CC"; then
3248 for ac_prog in cl.exe
3250 # Extract the first word of "$ac_prog", so it can be a program name with args.
3251 set dummy $ac_prog; ac_word=$2
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3253 $as_echo_n "checking for $ac_word... " >&6; }
3254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3255 $as_echo_n "(cached) " >&6
3257 if test -n "$ac_ct_CC"; then
3258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3267 ac_cv_prog_ac_ct_CC="$ac_prog"
3268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3278 if test -n "$ac_ct_CC"; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3280 $as_echo "$ac_ct_CC" >&6; }
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3287 test -n "$ac_ct_CC" && break
3290 if test "x$ac_ct_CC" = x; then
3293 case $cross_compiling:$ac_tool_warned in
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297 ac_tool_warned=yes ;;
3306 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3308 as_fn_error "no acceptable C compiler found in \$PATH
3309 See \`config.log' for more details." "$LINENO" 5; }
3311 # Provide some information about the compiler.
3312 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3315 for ac_option in --version -v -V -qversion; do
3316 { { ac_try="$ac_compiler $ac_option >&5"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3325 if test -s conftest.err; then
3327 ... rest of stderr output deleted ...
3328 10q' conftest.err >conftest.er1
3329 cat conftest.er1 >&5
3330 rm -f conftest.er1 conftest.err
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3342 FILE *f = fopen ("conftest.out", "w");
3343 return ferror (f) || fclose (f) != 0;
3349 ac_clean_files_save=$ac_clean_files
3350 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3351 # Try to create an executable without -o first, disregard a.out.
3352 # It will help us diagnose broken compilers, and finding out an intuition
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3355 $as_echo_n "checking for C compiler default output file name... " >&6; }
3356 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3358 # The possible output files:
3359 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3362 for ac_file in $ac_files
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3366 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3371 if { { ac_try="$ac_link_default"
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_link_default") 2>&5
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }; then :
3382 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3383 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3384 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3385 # so that the user can short-circuit this test for compilers unknown to
3387 for ac_file in $ac_files ''
3389 test -f "$ac_file" || continue
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3394 # We found the default executable, but exeext='' is most
3398 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3400 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402 # We set ac_cv_exeext here because the later test for it is not
3403 # safe: cross compilers may not add the suffix if given an `-o'
3404 # argument, so we may need to know it at that point already.
3405 # Even if this section looks crufty: it has the advantage of
3412 test "$ac_cv_exeext" = no && ac_cv_exeext=
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3418 $as_echo "$ac_file" >&6; }
3419 if test -z "$ac_file"; then :
3420 $as_echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 { as_fn_set_status 77
3426 as_fn_error "C compiler cannot create executables
3427 See \`config.log' for more details." "$LINENO" 5; }; }
3429 ac_exeext=$ac_cv_exeext
3431 # Check that the compiler produces executables we can run. If not, either
3432 # the compiler is broken, or we cross compile.
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3434 $as_echo_n "checking whether the C compiler works... " >&6; }
3435 # If not cross compiling, check that we can run a simple program.
3436 if test "$cross_compiling" != yes; then
3437 if { ac_try='./$ac_file'
3438 { { case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_try") 2>&5
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; }; then
3450 if test "$cross_compiling" = maybe; then
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error "cannot run C compiled programs.
3456 If you meant to cross compile, use \`--host'.
3457 See \`config.log' for more details." "$LINENO" 5; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3462 $as_echo "yes" >&6; }
3464 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3465 ac_clean_files=$ac_clean_files_save
3466 # Check that the compiler produces executables we can run. If not, either
3467 # the compiler is broken, or we cross compile.
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3469 $as_echo_n "checking whether we are cross compiling... " >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3471 $as_echo "$cross_compiling" >&6; }
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3474 $as_echo_n "checking for suffix of executables... " >&6; }
3475 if { { ac_try="$ac_link"
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_link") 2>&5
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; then :
3486 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3487 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3488 # work properly (i.e., refer to `conftest.exe'), while it won't with
3490 for ac_file in conftest.exe conftest conftest.*; do
3491 test -f "$ac_file" || continue
3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3494 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error "cannot compute suffix of executables: cannot compile and link
3503 See \`config.log' for more details." "$LINENO" 5; }
3505 rm -f conftest$ac_cv_exeext
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3507 $as_echo "$ac_cv_exeext" >&6; }
3509 rm -f conftest.$ac_ext
3510 EXEEXT=$ac_cv_exeext
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3513 $as_echo_n "checking for suffix of object files... " >&6; }
3514 if test "${ac_cv_objext+set}" = set; then :
3515 $as_echo_n "(cached) " >&6
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3528 rm -f conftest.o conftest.obj
3529 if { { ac_try="$ac_compile"
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536 (eval "$ac_compile") 2>&5
3538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539 test $ac_status = 0; }; then :
3540 for ac_file in conftest.o conftest.obj conftest.*; do
3541 test -f "$ac_file" || continue;
3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3544 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3549 $as_echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554 as_fn_error "cannot compute suffix of object files: cannot compile
3555 See \`config.log' for more details." "$LINENO" 5; }
3557 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3560 $as_echo "$ac_cv_objext" >&6; }
3561 OBJEXT=$ac_cv_objext
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3564 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3565 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3582 if ac_fn_c_try_compile "$LINENO"; then :
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3592 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3593 if test $ac_compiler_gnu = yes; then
3598 ac_test_CFLAGS=${CFLAGS+set}
3599 ac_save_CFLAGS=$CFLAGS
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3601 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3602 if test "${ac_cv_prog_cc_g+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3605 ac_save_c_werror_flag=$ac_c_werror_flag
3606 ac_c_werror_flag=yes
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3620 if ac_fn_c_try_compile "$LINENO"; then :
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3635 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_c_werror_flag=$ac_save_c_werror_flag
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3651 if ac_fn_c_try_compile "$LINENO"; then :
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659 ac_c_werror_flag=$ac_save_c_werror_flag
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3662 $as_echo "$ac_cv_prog_cc_g" >&6; }
3663 if test "$ac_test_CFLAGS" = set; then
3664 CFLAGS=$ac_save_CFLAGS
3665 elif test $ac_cv_prog_cc_g = yes; then
3666 if test "$GCC" = yes; then
3672 if test "$GCC" = yes; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3679 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3680 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3683 ac_cv_prog_cc_c89=no
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3689 #include <sys/types.h>
3690 #include <sys/stat.h>
3691 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3692 struct buf { int x; };
3693 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3694 static char *e (p, i)
3700 static char *f (char * (*g) (char **, int), char **p, ...)
3705 s = g (p, va_arg (v,int));
3710 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3711 function prototypes and stuff, but not '\xHH' hex character constants.
3712 These don't provoke an error unfortunately, instead are silently treated
3713 as 'x'. The following induces an error, until -std is added to get
3714 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3715 array size at least. It's necessary to write '\x00'==0 to get something
3716 that's true only with -std. */
3717 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3719 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3720 inside strings and character constants. */
3722 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3724 int test (int i, double x);
3725 struct s1 {int (*f) (int a);};
3726 struct s2 {int (*f) (double a);};
3727 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3733 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3738 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3739 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3741 CC="$ac_save_CC $ac_arg"
3742 if ac_fn_c_try_compile "$LINENO"; then :
3743 ac_cv_prog_cc_c89=$ac_arg
3745 rm -f core conftest.err conftest.$ac_objext
3746 test "x$ac_cv_prog_cc_c89" != "xno" && break
3748 rm -f conftest.$ac_ext
3753 case "x$ac_cv_prog_cc_c89" in
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3756 $as_echo "none needed" >&6; } ;;
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3759 $as_echo "unsupported" >&6; } ;;
3761 CC="$CC $ac_cv_prog_cc_c89"
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3763 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3765 if test "x$ac_cv_prog_cc_c89" != xno; then :
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774 DEPDIR="${am__leading_dot}deps"
3776 ac_config_commands="$ac_config_commands depfiles"
3779 am_make=${MAKE-make}
3780 cat > confinc << 'END'
3785 # If we don't find an include directive, just comment out the code.
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3787 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3791 # First try GNU make style include.
3792 echo "include confinc" > confmf
3793 # We grep out `Entering directory' and `Leaving directory'
3794 # messages which can occur if `w' ends up in MAKEFLAGS.
3795 # In particular we don't look at `^make:' because GNU make might
3796 # be invoked under some other name (usually "gmake"), in which
3797 # case it prints its new name instead of `make'.
3798 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3803 # Now try BSD make style include.
3804 if test "$am__include" = "#"; then
3805 echo '.include "confinc"' > confmf
3806 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3807 am__include=.include
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3815 $as_echo "$_am_result" >&6; }
3816 rm -f confinc confmf
3818 # Check whether --enable-dependency-tracking was given.
3819 if test "${enable_dependency_tracking+set}" = set; then :
3820 enableval=$enable_dependency_tracking;
3823 if test "x$enable_dependency_tracking" != xno; then
3824 am_depcomp="$ac_aux_dir/depcomp"
3827 if test "x$enable_dependency_tracking" != xno; then
3837 depcc="$CC" am_compiler_list=
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3840 $as_echo_n "checking dependency style of $depcc... " >&6; }
3841 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3842 $as_echo_n "(cached) " >&6
3844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3845 # We make a subdir and do the tests there. Otherwise we can end up
3846 # making bogus files that we don't know about and never remove. For
3847 # instance it was reported that on HP-UX the gcc test will end up
3848 # making a dummy file named `D' -- because `-MD' means `put the output
3851 # Copy depcomp to subdir because otherwise we won't find it if we're
3852 # using a relative directory.
3853 cp "$am_depcomp" conftest.dir
3855 # We will build objects and dependencies in a subdirectory because
3856 # it helps to detect inapplicable dependency modes. For instance
3857 # both Tru64's cc and ICC support -MD to output dependencies as a
3858 # side effect of compilation, but ICC will put the dependencies in
3859 # the current directory while Tru64 will put them in the object
3863 am_cv_CC_dependencies_compiler_type=none
3864 if test "$am_compiler_list" = ""; then
3865 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3867 for depmode in $am_compiler_list; do
3868 # Setup a source with many dependencies, because some compilers
3869 # like to wrap large dependency lists on column 80 (with \), and
3870 # we should not choose a depcomp mode which is confused by this.
3872 # We need to recreate these files for each test, as the compiler may
3873 # overwrite some of them when testing with obscure command lines.
3874 # This happens at least with the AIX C compiler.
3876 for i in 1 2 3 4 5 6; do
3877 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3878 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3879 # Solaris 8's {/usr,}/bin/sh.
3880 touch sub/conftst$i.h
3882 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3886 # after this tag, mechanisms are not by side-effect, so they'll
3887 # only be used when explicitly requested
3888 if test "x$enable_dependency_tracking" = xyes; then
3896 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3897 # mode. It turns out that the SunPro C++ compiler does not properly
3898 # handle `-M -o', and we need to detect this.
3899 if depmode=$depmode \
3900 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3901 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3902 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3903 >/dev/null 2>conftest.err &&
3904 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3905 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3906 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3907 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3908 # icc doesn't choke on unknown options, it will just issue warnings
3909 # or remarks (even with -Werror). So we grep stderr for any message
3910 # that says an option was ignored or not supported.
3911 # When given -MP, icc 7.0 and 7.1 complain thusly:
3912 # icc: Command line warning: ignoring option '-M'; no argument required
3913 # The diagnosis changed in icc 8.0:
3914 # icc: Command line remark: option '-MP' not supported
3915 if (grep 'ignoring option' conftest.err ||
3916 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3917 am_cv_CC_dependencies_compiler_type=$depmode
3926 am_cv_CC_dependencies_compiler_type=none
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3931 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3932 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3935 test "x$enable_dependency_tracking" != xno \
3936 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3938 am__fastdepCC_FALSE='#'
3940 am__fastdepCC_TRUE='#'
3941 am__fastdepCC_FALSE=
3945 if test "x$CC" != xcc; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3947 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3950 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3952 set dummy $CC; ac_cc=`$as_echo "$2" |
3953 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3954 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
3955 $as_echo_n "(cached) " >&6
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3968 # Make sure it works both with $CC and with simple cc.
3969 # We do the test twice because some compilers refuse to overwrite an
3970 # existing .o file with -o, though they will create one.
3971 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3973 if { { case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978 $as_echo "$ac_try_echo"; } >&5
3979 (eval "$ac_try") 2>&5
3981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982 test $ac_status = 0; } &&
3983 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3988 $as_echo "$ac_try_echo"; } >&5
3989 (eval "$ac_try") 2>&5
3991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3992 test $ac_status = 0; };
3994 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3995 if test "x$CC" != xcc; then
3996 # Test first that cc exists at all.
3997 if { ac_try='cc -c conftest.$ac_ext >&5'
3998 { { case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_try") 2>&5
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; }; then
4008 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4010 if { { case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016 (eval "$ac_try") 2>&5
4018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; } &&
4020 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_try") 2>&5
4028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; };
4034 # cc exists but doesn't like -o.
4035 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4040 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4042 rm -f core conftest*
4045 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4047 $as_echo "yes" >&6; }
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4052 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4056 # FIXME: we rely on the cache variable name because
4057 # there is no other way.
4059 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4060 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4061 if test "$am_t" != yes; then
4062 # Losing compiler, so override with the script.
4063 # FIXME: It is wrong to rewrite CC.
4064 # But if we don't then we get into trouble of one sort or another.
4065 # A longer-term fix would be to have automake use am__CC in this case,
4066 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4067 CC="$am_aux_dir/compile $CC"
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4077 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4078 # On Suns, sometimes $CPP names a directory.
4079 if test -n "$CPP" && test -d "$CPP"; then
4082 if test -z "$CPP"; then
4083 if test "${ac_cv_prog_CPP+set}" = set; then :
4084 $as_echo_n "(cached) " >&6
4086 # Double quotes because CPP needs to be expanded
4087 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4090 for ac_c_preproc_warn_flag in '' yes
4092 # Use a header file that comes with gcc, so configuring glibc
4093 # with a fresh cross-compiler works.
4094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4095 # <limits.h> exists even on freestanding compilers.
4096 # On the NeXT, cc -E runs the code through the compiler's parser,
4097 # not just through cpp. "Syntax error" is here to catch this case.
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4101 # include <limits.h>
4103 # include <assert.h>
4107 if ac_fn_c_try_cpp "$LINENO"; then :
4110 # Broken: fails on valid input.
4113 rm -f conftest.err conftest.$ac_ext
4115 # OK, works on sane cases. Now check whether nonexistent headers
4116 # can be detected and how.
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119 #include <ac_nonexistent.h>
4121 if ac_fn_c_try_cpp "$LINENO"; then :
4122 # Broken: success on invalid input.
4125 # Passes both tests.
4129 rm -f conftest.err conftest.$ac_ext
4132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4133 rm -f conftest.err conftest.$ac_ext
4134 if $ac_preproc_ok; then :
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4147 $as_echo "$CPP" >&6; }
4149 for ac_c_preproc_warn_flag in '' yes
4151 # Use a header file that comes with gcc, so configuring glibc
4152 # with a fresh cross-compiler works.
4153 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4154 # <limits.h> exists even on freestanding compilers.
4155 # On the NeXT, cc -E runs the code through the compiler's parser,
4156 # not just through cpp. "Syntax error" is here to catch this case.
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4160 # include <limits.h>
4162 # include <assert.h>
4166 if ac_fn_c_try_cpp "$LINENO"; then :
4169 # Broken: fails on valid input.
4172 rm -f conftest.err conftest.$ac_ext
4174 # OK, works on sane cases. Now check whether nonexistent headers
4175 # can be detected and how.
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4178 #include <ac_nonexistent.h>
4180 if ac_fn_c_try_cpp "$LINENO"; then :
4181 # Broken: success on invalid input.
4184 # Passes both tests.
4188 rm -f conftest.err conftest.$ac_ext
4191 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4192 rm -f conftest.err conftest.$ac_ext
4193 if $ac_preproc_ok; then :
4196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4199 See \`config.log' for more details." "$LINENO" 5; }
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4208 for ac_prog in gawk mawk nawk awk
4210 # Extract the first word of "$ac_prog", so it can be a program name with args.
4211 set dummy $ac_prog; ac_word=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if test "${ac_cv_prog_AWK+set}" = set; then :
4215 $as_echo_n "(cached) " >&6
4217 if test -n "$AWK"; then
4218 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4227 ac_cv_prog_AWK="$ac_prog"
4228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 if test -n "$AWK"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4240 $as_echo "$AWK" >&6; }
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4247 test -n "$AWK" && break
4250 if test -n "$ac_tool_prefix"; then
4251 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4252 set dummy ${ac_tool_prefix}ar; ac_word=$2
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254 $as_echo_n "checking for $ac_word... " >&6; }
4255 if test "${ac_cv_prog_AR+set}" = set; then :
4256 $as_echo_n "(cached) " >&6
4258 if test -n "$AR"; then
4259 ac_cv_prog_AR="$AR" # Let the user override the test.
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 ac_cv_prog_AR="${ac_tool_prefix}ar"
4269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 if test -n "$AR"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4281 $as_echo "$AR" >&6; }
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4289 if test -z "$ac_cv_prog_AR"; then
4291 # Extract the first word of "ar", so it can be a program name with args.
4292 set dummy ar; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4298 if test -n "$ac_ct_AR"; then
4299 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4308 ac_cv_prog_ac_ct_AR="ar"
4309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4319 if test -n "$ac_ct_AR"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4321 $as_echo "$ac_ct_AR" >&6; }
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4327 if test "x$ac_ct_AR" = x; then
4330 case $cross_compiling:$ac_tool_warned in
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4334 ac_tool_warned=yes ;;
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4345 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4346 if test "${ac_cv_path_GREP+set}" = set; then :
4347 $as_echo_n "(cached) " >&6
4349 if test -z "$GREP"; then
4350 ac_path_GREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in grep ggrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4360 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4361 # Check for GNU ac_path_GREP and select it if it is found.
4362 # Check for GNU $ac_path_GREP
4363 case `"$ac_path_GREP" --version 2>&1` in
4365 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4368 $as_echo_n 0123456789 >"conftest.in"
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'GREP' >> "conftest.nl"
4375 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 as_fn_arith $ac_count + 1 && ac_count=$as_val
4378 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_GREP="$ac_path_GREP"
4381 ac_path_GREP_max=$ac_count
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4389 $ac_path_GREP_found && break 3
4394 if test -z "$ac_cv_path_GREP"; then
4395 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4398 ac_cv_path_GREP=$GREP
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4403 $as_echo "$ac_cv_path_GREP" >&6; }
4404 GREP="$ac_cv_path_GREP"
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4408 $as_echo_n "checking for egrep... " >&6; }
4409 if test "${ac_cv_path_EGREP+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4412 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4413 then ac_cv_path_EGREP="$GREP -E"
4415 if test -z "$EGREP"; then
4416 ac_path_EGREP_found=false
4417 # Loop through the user's path and test for each of PROGNAME-LIST
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4422 test -z "$as_dir" && as_dir=.
4423 for ac_prog in egrep; do
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4426 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4427 # Check for GNU ac_path_EGREP and select it if it is found.
4428 # Check for GNU $ac_path_EGREP
4429 case `"$ac_path_EGREP" --version 2>&1` in
4431 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4434 $as_echo_n 0123456789 >"conftest.in"
4437 cat "conftest.in" "conftest.in" >"conftest.tmp"
4438 mv "conftest.tmp" "conftest.in"
4439 cp "conftest.in" "conftest.nl"
4440 $as_echo 'EGREP' >> "conftest.nl"
4441 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4443 as_fn_arith $ac_count + 1 && ac_count=$as_val
4444 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4445 # Best one so far, save it but keep looking for a better one
4446 ac_cv_path_EGREP="$ac_path_EGREP"
4447 ac_path_EGREP_max=$ac_count
4449 # 10*(2^10) chars as input seems more than enough
4450 test $ac_count -gt 10 && break
4452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4455 $ac_path_EGREP_found && break 3
4460 if test -z "$ac_cv_path_EGREP"; then
4461 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4464 ac_cv_path_EGREP=$EGREP
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4470 $as_echo "$ac_cv_path_EGREP" >&6; }
4471 EGREP="$ac_cv_path_EGREP"
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4475 $as_echo_n "checking for ANSI C header files... " >&6; }
4476 if test "${ac_cv_header_stdc+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4494 if ac_fn_c_try_compile "$LINENO"; then :
4495 ac_cv_header_stdc=yes
4497 ac_cv_header_stdc=no
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 if test $ac_cv_header_stdc = yes; then
4502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4509 $EGREP "memchr" >/dev/null 2>&1; then :
4512 ac_cv_header_stdc=no
4518 if test $ac_cv_header_stdc = yes; then
4519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4526 $EGREP "free" >/dev/null 2>&1; then :
4529 ac_cv_header_stdc=no
4535 if test $ac_cv_header_stdc = yes; then
4536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4537 if test "$cross_compiling" = yes; then :
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4544 #if ((' ' & 0x0FF) == 0x020)
4545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4548 # define ISLOWER(c) \
4549 (('a' <= (c) && (c) <= 'i') \
4550 || ('j' <= (c) && (c) <= 'r') \
4551 || ('s' <= (c) && (c) <= 'z'))
4552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4560 for (i = 0; i < 256; i++)
4561 if (XOR (islower (i), ISLOWER (i))
4562 || toupper (i) != TOUPPER (i))
4567 if ac_fn_c_try_run "$LINENO"; then :
4570 ac_cv_header_stdc=no
4572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4573 conftest.$ac_objext conftest.beam conftest.$ac_ext
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4579 $as_echo "$ac_cv_header_stdc" >&6; }
4580 if test $ac_cv_header_stdc = yes; then
4582 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4586 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4587 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4588 inttypes.h stdint.h unistd.h
4590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4591 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4593 eval as_val=\$$as_ac_Header
4594 if test "x$as_val" = x""yes; then :
4595 cat >>confdefs.h <<_ACEOF
4596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4605 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4606 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4613 if test "$MINIX" = yes; then
4615 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4618 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4621 $as_echo "#define _MINIX 1" >>confdefs.h
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4627 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4628 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4634 # define __EXTENSIONS__ 1
4635 $ac_includes_default
4644 if ac_fn_c_try_compile "$LINENO"; then :
4645 ac_cv_safe_to_define___extensions__=yes
4647 ac_cv_safe_to_define___extensions__=no
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4652 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4653 test $ac_cv_safe_to_define___extensions__ = yes &&
4654 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4656 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4658 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4660 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4662 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4671 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4676 macro_version='2.2.6'
4677 macro_revision='1.3012'
4691 ltmain="$ac_aux_dir/ltmain.sh"
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4694 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4695 if test "${ac_cv_path_SED+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4698 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4699 for ac_i in 1 2 3 4 5 6 7; do
4700 ac_script="$ac_script$as_nl$ac_script"
4702 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4703 { ac_script=; unset ac_script;}
4704 if test -z "$SED"; then
4705 ac_path_SED_found=false
4706 # Loop through the user's path and test for each of PROGNAME-LIST
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 test -z "$as_dir" && as_dir=.
4712 for ac_prog in sed gsed; do
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4715 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4716 # Check for GNU ac_path_SED and select it if it is found.
4717 # Check for GNU $ac_path_SED
4718 case `"$ac_path_SED" --version 2>&1` in
4720 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4723 $as_echo_n 0123456789 >"conftest.in"
4726 cat "conftest.in" "conftest.in" >"conftest.tmp"
4727 mv "conftest.tmp" "conftest.in"
4728 cp "conftest.in" "conftest.nl"
4729 $as_echo '' >> "conftest.nl"
4730 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4732 as_fn_arith $ac_count + 1 && ac_count=$as_val
4733 if test $ac_count -gt ${ac_path_SED_max-0}; then
4734 # Best one so far, save it but keep looking for a better one
4735 ac_cv_path_SED="$ac_path_SED"
4736 ac_path_SED_max=$ac_count
4738 # 10*(2^10) chars as input seems more than enough
4739 test $ac_count -gt 10 && break
4741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4744 $ac_path_SED_found && break 3
4749 if test -z "$ac_cv_path_SED"; then
4750 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4758 $as_echo "$ac_cv_path_SED" >&6; }
4759 SED="$ac_cv_path_SED"
4762 test -z "$SED" && SED=sed
4763 Xsed="$SED -e 1s/^X//"
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4776 $as_echo_n "checking for fgrep... " >&6; }
4777 if test "${ac_cv_path_FGREP+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4780 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4781 then ac_cv_path_FGREP="$GREP -F"
4783 if test -z "$FGREP"; then
4784 ac_path_FGREP_found=false
4785 # Loop through the user's path and test for each of PROGNAME-LIST
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4790 test -z "$as_dir" && as_dir=.
4791 for ac_prog in fgrep; do
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4794 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4795 # Check for GNU ac_path_FGREP and select it if it is found.
4796 # Check for GNU $ac_path_FGREP
4797 case `"$ac_path_FGREP" --version 2>&1` in
4799 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4802 $as_echo_n 0123456789 >"conftest.in"
4805 cat "conftest.in" "conftest.in" >"conftest.tmp"
4806 mv "conftest.tmp" "conftest.in"
4807 cp "conftest.in" "conftest.nl"
4808 $as_echo 'FGREP' >> "conftest.nl"
4809 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4811 as_fn_arith $ac_count + 1 && ac_count=$as_val
4812 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4813 # Best one so far, save it but keep looking for a better one
4814 ac_cv_path_FGREP="$ac_path_FGREP"
4815 ac_path_FGREP_max=$ac_count
4817 # 10*(2^10) chars as input seems more than enough
4818 test $ac_count -gt 10 && break
4820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4823 $ac_path_FGREP_found && break 3
4828 if test -z "$ac_cv_path_FGREP"; then
4829 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4832 ac_cv_path_FGREP=$FGREP
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4838 $as_echo "$ac_cv_path_FGREP" >&6; }
4839 FGREP="$ac_cv_path_FGREP"
4842 test -z "$GREP" && GREP=grep
4862 # Check whether --with-gnu-ld was given.
4863 if test "${with_gnu_ld+set}" = set; then :
4864 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4870 if test "$GCC" = yes; then
4871 # Check if gcc -print-prog-name=ld gives a path.
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4873 $as_echo_n "checking for ld used by $CC... " >&6; }
4876 # gcc leaves a trailing carriage return which upsets mingw
4877 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4879 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4882 # Accept absolute paths.
4884 re_direlt='/[^/][^/]*/\.\./'
4885 # Canonicalize the pathname of ld
4886 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4887 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4888 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4890 test -z "$LD" && LD="$ac_prog"
4893 # If it fails, then pretend we aren't using GCC.
4897 # If it is relative, then search for the first ld in PATH.
4901 elif test "$with_gnu_ld" = yes; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4903 $as_echo_n "checking for GNU ld... " >&6; }
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4906 $as_echo_n "checking for non-GNU ld... " >&6; }
4908 if test "${lt_cv_path_LD+set}" = set; then :
4909 $as_echo_n "(cached) " >&6
4911 if test -z "$LD"; then
4912 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4913 for ac_dir in $PATH; do
4915 test -z "$ac_dir" && ac_dir=.
4916 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4917 lt_cv_path_LD="$ac_dir/$ac_prog"
4918 # Check to see if the program is GNU ld. I'd rather use --version,
4919 # but apparently some variants of GNU ld only accept -v.
4920 # Break only if it was the GNU/non-GNU ld that we prefer.
4921 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4922 *GNU* | *'with BFD'*)
4923 test "$with_gnu_ld" != no && break
4926 test "$with_gnu_ld" != yes && break
4933 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4938 if test -n "$LD"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4940 $as_echo "$LD" >&6; }
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4945 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4947 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4948 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4951 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4952 case `$LD -v 2>&1 </dev/null` in
4953 *GNU* | *'with BFD'*)
4954 lt_cv_prog_gnu_ld=yes
4957 lt_cv_prog_gnu_ld=no
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4962 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4963 with_gnu_ld=$lt_cv_prog_gnu_ld
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4974 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4975 if test "${lt_cv_path_NM+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4978 if test -n "$NM"; then
4979 # Let the user override the test.
4982 lt_nm_to_check="${ac_tool_prefix}nm"
4983 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4984 lt_nm_to_check="$lt_nm_to_check nm"
4986 for lt_tmp_nm in $lt_nm_to_check; do
4987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4988 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4990 test -z "$ac_dir" && ac_dir=.
4991 tmp_nm="$ac_dir/$lt_tmp_nm"
4992 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4993 # Check to see if the nm accepts a BSD-compat flag.
4994 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4995 # nm: unknown option "B" ignored
4996 # Tru64's nm complains that /dev/null is an invalid object file
4997 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4998 */dev/null* | *'Invalid file or object type'*)
4999 lt_cv_path_NM="$tmp_nm -B"
5003 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5005 lt_cv_path_NM="$tmp_nm -p"
5009 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5010 continue # so that we can try to find one that supports BSD flags
5019 : ${lt_cv_path_NM=no}
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5023 $as_echo "$lt_cv_path_NM" >&6; }
5024 if test "$lt_cv_path_NM" != "no"; then
5027 # Didn't find any BSD compatible name lister, look for dumpbin.
5028 if test -n "$ac_tool_prefix"; then
5029 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5038 if test -n "$DUMPBIN"; then
5039 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 DUMPBIN=$ac_cv_prog_DUMPBIN
5059 if test -n "$DUMPBIN"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5061 $as_echo "$DUMPBIN" >&6; }
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5068 test -n "$DUMPBIN" && break
5071 if test -z "$DUMPBIN"; then
5072 ac_ct_DUMPBIN=$DUMPBIN
5073 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5075 # Extract the first word of "$ac_prog", so it can be a program name with args.
5076 set dummy $ac_prog; ac_word=$2
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 $as_echo_n "checking for $ac_word... " >&6; }
5079 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5080 $as_echo_n "(cached) " >&6
5082 if test -n "$ac_ct_DUMPBIN"; then
5083 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 test -z "$as_dir" && as_dir=.
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5103 if test -n "$ac_ct_DUMPBIN"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5105 $as_echo "$ac_ct_DUMPBIN" >&6; }
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5112 test -n "$ac_ct_DUMPBIN" && break
5115 if test "x$ac_ct_DUMPBIN" = x; then
5118 case $cross_compiling:$ac_tool_warned in
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5122 ac_tool_warned=yes ;;
5124 DUMPBIN=$ac_ct_DUMPBIN
5129 if test "$DUMPBIN" != ":"; then
5133 test -z "$NM" && NM=nm
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5141 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5142 if test "${lt_cv_nm_interface+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5145 lt_cv_nm_interface="BSD nm"
5146 echo "int some_variable = 0;" > conftest.$ac_ext
5147 (eval echo "\"\$as_me:5147: $ac_compile\"" >&5)
5148 (eval "$ac_compile" 2>conftest.err)
5149 cat conftest.err >&5
5150 (eval echo "\"\$as_me:5150: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5151 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5152 cat conftest.err >&5
5153 (eval echo "\"\$as_me:5153: output\"" >&5)
5154 cat conftest.out >&5
5155 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5156 lt_cv_nm_interface="MS dumpbin"
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5161 $as_echo "$lt_cv_nm_interface" >&6; }
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5164 $as_echo_n "checking whether ln -s works... " >&6; }
5166 if test "$LN_S" = "ln -s"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5168 $as_echo "yes" >&6; }
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5171 $as_echo "no, using $LN_S" >&6; }
5174 # find the maximum length of command line arguments
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5176 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5177 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5185 # On DJGPP, this test can blow up pretty badly due to problems in libc
5186 # (any single argument exceeding 2000 bytes causes a buffer overrun
5187 # during glob expansion). Even if it were fixed, the result of this
5188 # check would be larger than it should be.
5189 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5193 # Under GNU Hurd, this test is not required because there is
5194 # no limit to the length of command line arguments.
5195 # Libtool will interpret -1 as no limit whatsoever
5196 lt_cv_sys_max_cmd_len=-1;
5199 cygwin* | mingw* | cegcc*)
5200 # On Win9x/ME, this test blows up -- it succeeds, but takes
5201 # about 5 minutes as the teststring grows exponentially.
5202 # Worse, since 9x/ME are not pre-emptively multitasking,
5203 # you end up with a "frozen" computer, even though with patience
5204 # the test eventually succeeds (with a max line length of 256k).
5205 # Instead, let's just punt: use the minimum linelength reported by
5206 # all of the supported platforms: 8192 (on NT/2K/XP).
5207 lt_cv_sys_max_cmd_len=8192;
5211 # On AmigaOS with pdksh, this test takes hours, literally.
5212 # So we just punt and use a minimum line length of 8192.
5213 lt_cv_sys_max_cmd_len=8192;
5216 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5217 # This has been around since 386BSD, at least. Likely further.
5218 if test -x /sbin/sysctl; then
5219 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5220 elif test -x /usr/sbin/sysctl; then
5221 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5223 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5225 # And add a safety zone
5226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5231 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5232 lt_cv_sys_max_cmd_len=196608
5236 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5237 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5238 # nice to cause kernel panics so lets avoid the loop below.
5239 # First set a reasonable default.
5240 lt_cv_sys_max_cmd_len=16384
5242 if test -x /sbin/sysconfig; then
5243 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5244 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5249 lt_cv_sys_max_cmd_len=102400
5251 sysv5* | sco5v6* | sysv4.2uw2*)
5252 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5253 if test -n "$kargmax"; then
5254 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5256 lt_cv_sys_max_cmd_len=32768
5260 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5261 if test -n "$lt_cv_sys_max_cmd_len"; then
5262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5265 # Make teststring a little bigger before we do anything with it.
5266 # a 1K string should be a reasonable start.
5267 for i in 1 2 3 4 5 6 7 8 ; do
5268 teststring=$teststring$teststring
5270 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5271 # If test is not a shell built-in, we'll probably end up computing a
5272 # maximum length that is only half of the actual maximum length, but
5274 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5275 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5276 test $i != 17 # 1/2 MB should be enough
5279 teststring=$teststring$teststring
5281 # Only check the string length outside the loop.
5282 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5284 # Add a significant safety factor because C++ compilers can tack on
5285 # massive amounts of additional arguments before passing them to the
5286 # linker. It appears as though 1/2 is a usable value.
5287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5294 if test -n $lt_cv_sys_max_cmd_len ; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5296 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5299 $as_echo "none" >&6; }
5301 max_cmd_len=$lt_cv_sys_max_cmd_len
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5313 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5314 # Try some XSI features
5317 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5319 && eval 'test $(( 1 + 1 )) -eq 2 \
5320 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5323 $as_echo "$xsi_shell" >&6; }
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5327 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5329 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5331 && lt_shell_append=yes
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5333 $as_echo "$lt_shell_append" >&6; }
5336 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5346 # test EBCDIC or ASCII
5347 case `echo X|tr X '\101'` in
5348 A) # ASCII based system
5349 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5350 lt_SP2NL='tr \040 \012'
5351 lt_NL2SP='tr \015\012 \040\040'
5353 *) # EBCDIC based system
5354 lt_SP2NL='tr \100 \n'
5355 lt_NL2SP='tr \r\n \100\100'
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5368 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5369 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5372 lt_cv_ld_reload_flag='-r'
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5375 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5376 reload_flag=$lt_cv_ld_reload_flag
5377 case $reload_flag in
5379 *) reload_flag=" $reload_flag" ;;
5381 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5384 if test "$GCC" = yes; then
5385 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5387 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5400 if test -n "$ac_tool_prefix"; then
5401 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5402 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5408 if test -n "$OBJDUMP"; then
5409 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 OBJDUMP=$ac_cv_prog_OBJDUMP
5429 if test -n "$OBJDUMP"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5431 $as_echo "$OBJDUMP" >&6; }
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5439 if test -z "$ac_cv_prog_OBJDUMP"; then
5440 ac_ct_OBJDUMP=$OBJDUMP
5441 # Extract the first word of "objdump", so it can be a program name with args.
5442 set dummy objdump; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5448 if test -n "$ac_ct_OBJDUMP"; then
5449 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5469 if test -n "$ac_ct_OBJDUMP"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5471 $as_echo "$ac_ct_OBJDUMP" >&6; }
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5477 if test "x$ac_ct_OBJDUMP" = x; then
5480 case $cross_compiling:$ac_tool_warned in
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5484 ac_tool_warned=yes ;;
5486 OBJDUMP=$ac_ct_OBJDUMP
5489 OBJDUMP="$ac_cv_prog_OBJDUMP"
5492 test -z "$OBJDUMP" && OBJDUMP=objdump
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5500 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5501 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5504 lt_cv_file_magic_cmd='$MAGIC_CMD'
5505 lt_cv_file_magic_test_file=
5506 lt_cv_deplibs_check_method='unknown'
5507 # Need to set the preceding variable on all platforms that support
5508 # interlibrary dependencies.
5509 # 'none' -- dependencies not supported.
5510 # `unknown' -- same as none, but documents that we really don't know.
5511 # 'pass_all' -- all dependencies passed with no checks.
5512 # 'test_compile' -- check by making test program.
5513 # 'file_magic [[regex]]' -- check by looking for files in library path
5514 # which responds to the $file_magic_cmd with a given extended regex.
5515 # If you have `file' or equivalent on your system and you're not sure
5516 # whether `pass_all' will *always* work, you probably want this one.
5520 lt_cv_deplibs_check_method=pass_all
5524 lt_cv_deplibs_check_method=pass_all
5528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5529 lt_cv_file_magic_cmd='/usr/bin/file -L'
5530 lt_cv_file_magic_test_file=/shlib/libc.so
5534 # func_win32_libid is a shell function defined in ltmain.sh
5535 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5536 lt_cv_file_magic_cmd='func_win32_libid'
5540 # Base MSYS/MinGW do not provide the 'file' command needed by
5541 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5542 # unless we find 'file', for example because we are cross-compiling.
5543 if ( file / ) >/dev/null 2>&1; then
5544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5545 lt_cv_file_magic_cmd='func_win32_libid'
5547 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5548 lt_cv_file_magic_cmd='$OBJDUMP -f'
5553 # use the weaker test based on 'objdump'. See mingw*.
5554 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5555 lt_cv_file_magic_cmd='$OBJDUMP -f'
5558 darwin* | rhapsody*)
5559 lt_cv_deplibs_check_method=pass_all
5562 freebsd* | dragonfly*)
5563 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5566 # Not sure whether the presence of OpenBSD here was a mistake.
5567 # Let's accept both of them until this is cleared up.
5568 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5569 lt_cv_file_magic_cmd=/usr/bin/file
5570 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5574 lt_cv_deplibs_check_method=pass_all
5579 lt_cv_deplibs_check_method=pass_all
5582 hpux10.20* | hpux11*)
5583 lt_cv_file_magic_cmd=/usr/bin/file
5586 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5587 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5591 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5594 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5595 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5601 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5605 irix5* | irix6* | nonstopux*)
5607 *-32|*"-32 ") libmagic=32-bit;;
5608 *-n32|*"-n32 ") libmagic=N32;;
5609 *-64|*"-64 ") libmagic=64-bit;;
5610 *) libmagic=never-match;;
5612 lt_cv_deplibs_check_method=pass_all
5615 # This must be Linux ELF.
5616 linux* | k*bsd*-gnu)
5617 lt_cv_deplibs_check_method=pass_all
5620 netbsd* | netbsdelf*-gnu)
5621 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5629 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5630 lt_cv_file_magic_cmd=/usr/bin/file
5631 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5635 lt_cv_deplibs_check_method=pass_all
5639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5646 osf3* | osf4* | osf5*)
5647 lt_cv_deplibs_check_method=pass_all
5651 lt_cv_deplibs_check_method=pass_all
5655 lt_cv_deplibs_check_method=pass_all
5658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5659 lt_cv_deplibs_check_method=pass_all
5663 case $host_vendor in
5665 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]'
5666 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5669 lt_cv_deplibs_check_method=pass_all
5672 lt_cv_file_magic_cmd='/bin/file'
5673 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5676 lt_cv_file_magic_cmd='/bin/file'
5677 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5678 lt_cv_file_magic_test_file=/lib/libc.so
5681 lt_cv_deplibs_check_method=pass_all
5684 lt_cv_deplibs_check_method=pass_all
5690 lt_cv_deplibs_check_method=pass_all
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5696 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5697 file_magic_cmd=$lt_cv_file_magic_cmd
5698 deplibs_check_method=$lt_cv_deplibs_check_method
5699 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5712 if test -n "$ac_tool_prefix"; then
5713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5714 set dummy ${ac_tool_prefix}ar; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if test "${ac_cv_prog_AR+set}" = set; then :
5718 $as_echo_n "(cached) " >&6
5720 if test -n "$AR"; then
5721 ac_cv_prog_AR="$AR" # Let the user override the test.
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5730 ac_cv_prog_AR="${ac_tool_prefix}ar"
5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 if test -n "$AR"; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5743 $as_echo "$AR" >&6; }
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5751 if test -z "$ac_cv_prog_AR"; then
5753 # Extract the first word of "ar", so it can be a program name with args.
5754 set dummy ar; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5760 if test -n "$ac_ct_AR"; then
5761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_prog_ac_ct_AR="ar"
5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5781 if test -n "$ac_ct_AR"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5783 $as_echo "$ac_ct_AR" >&6; }
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5789 if test "x$ac_ct_AR" = x; then
5792 case $cross_compiling:$ac_tool_warned in
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5796 ac_tool_warned=yes ;;
5804 test -z "$AR" && AR=ar
5805 test -z "$AR_FLAGS" && AR_FLAGS=cru
5817 if test -n "$ac_tool_prefix"; then
5818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5819 set dummy ${ac_tool_prefix}strip; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if test "${ac_cv_prog_STRIP+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
5825 if test -n "$STRIP"; then
5826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 STRIP=$ac_cv_prog_STRIP
5846 if test -n "$STRIP"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5848 $as_echo "$STRIP" >&6; }
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5856 if test -z "$ac_cv_prog_STRIP"; then
5858 # Extract the first word of "strip", so it can be a program name with args.
5859 set dummy strip; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5865 if test -n "$ac_ct_STRIP"; then
5866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875 ac_cv_prog_ac_ct_STRIP="strip"
5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5886 if test -n "$ac_ct_STRIP"; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5888 $as_echo "$ac_ct_STRIP" >&6; }
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5894 if test "x$ac_ct_STRIP" = x; then
5897 case $cross_compiling:$ac_tool_warned in
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5901 ac_tool_warned=yes ;;
5906 STRIP="$ac_cv_prog_STRIP"
5909 test -z "$STRIP" && STRIP=:
5916 if test -n "$ac_tool_prefix"; then
5917 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5918 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5924 if test -n "$RANLIB"; then
5925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5934 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 RANLIB=$ac_cv_prog_RANLIB
5945 if test -n "$RANLIB"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5947 $as_echo "$RANLIB" >&6; }
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5955 if test -z "$ac_cv_prog_RANLIB"; then
5956 ac_ct_RANLIB=$RANLIB
5957 # Extract the first word of "ranlib", so it can be a program name with args.
5958 set dummy ranlib; ac_word=$2
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960 $as_echo_n "checking for $ac_word... " >&6; }
5961 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5964 if test -n "$ac_ct_RANLIB"; then
5965 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 test -z "$as_dir" && as_dir=.
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5974 ac_cv_prog_ac_ct_RANLIB="ranlib"
5975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5985 if test -n "$ac_ct_RANLIB"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5987 $as_echo "$ac_ct_RANLIB" >&6; }
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5993 if test "x$ac_ct_RANLIB" = x; then
5996 case $cross_compiling:$ac_tool_warned in
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6000 ac_tool_warned=yes ;;
6002 RANLIB=$ac_ct_RANLIB
6005 RANLIB="$ac_cv_prog_RANLIB"
6008 test -z "$RANLIB" && RANLIB=:
6015 # Determine commands to create old-style static archives.
6016 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6017 old_postinstall_cmds='chmod 644 $oldlib'
6018 old_postuninstall_cmds=
6020 if test -n "$RANLIB"; then
6023 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6029 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6065 # If no C compiler was specified, use CC.
6068 # If no C compiler flags were specified, use CFLAGS.
6069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6071 # Allow CC to be a program name with arguments.
6075 # Check for command to grab the raw symbol name followed by C symbol from nm.
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6077 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6078 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6082 # These are sane defaults that work on at least a few old systems.
6083 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6085 # Character class describing NM global symbol codes.
6086 symcode='[BCDEGRST]'
6088 # Regexp to match symbols that can be accessed directly from C.
6089 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6091 # Define system-specific variables.
6096 cygwin* | mingw* | pw32* | cegcc*)
6097 symcode='[ABCDGISTW]'
6100 if test "$host_cpu" = ia64; then
6101 symcode='[ABCDEGRST]'
6105 symcode='[BCDEGRST]'
6108 symcode='[BCDEGQRST]'
6119 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6127 # If we're using GNU nm, then use its standard symbol codes.
6128 case `$NM -V 2>&1` in
6129 *GNU* | *'with BFD'*)
6130 symcode='[ABCDGIRSTW]' ;;
6133 # Transform an extracted symbol line into a proper C declaration.
6134 # Some systems (esp. on ia64) link data and code symbols differently,
6135 # so use this general approach.
6136 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6138 # Transform an extracted symbol line into symbol name and symbol address
6139 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6140 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'"
6142 # Handle CRLF in mingw tool chain
6146 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6150 # Try without a prefix underscore, then with it.
6151 for ac_symprfx in "" "_"; do
6153 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6154 symxfrm="\\1 $ac_symprfx\\2 \\2"
6156 # Write the raw and C identifiers.
6157 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6158 # Fake it for dumpbin and say T for any non-static function
6159 # and D for any global variable.
6160 # Also find C++ and __fastcall symbols from MSVC++,
6161 # which start with @ or ?.
6162 lt_cv_sys_global_symbol_pipe="$AWK '"\
6163 " {last_section=section; section=\$ 3};"\
6164 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6165 " \$ 0!~/External *\|/{next};"\
6166 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6167 " {if(hide[section]) next};"\
6168 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6169 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6170 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6171 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6172 " ' prfx=^$ac_symprfx"
6174 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6177 # Check to see that the pipe works correctly.
6181 cat > conftest.$ac_ext <<_LT_EOF
6186 void nm_test_func(void);
6187 void nm_test_func(void){}
6191 int main(){nm_test_var='a';nm_test_func();return(0);}
6194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6195 (eval $ac_compile) 2>&5
6197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198 test $ac_status = 0; }; then
6199 # Now try to grab the symbols.
6201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6202 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205 test $ac_status = 0; } && test -s "$nlist"; then
6206 # Try sorting and uniquifying the output.
6207 if sort "$nlist" | uniq > "$nlist"T; then
6208 mv -f "$nlist"T "$nlist"
6213 # Make sure that we snagged all the symbols we need.
6214 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6215 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6216 cat <<_LT_EOF > conftest.$ac_ext
6222 # Now generate the symbol file.
6223 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6225 cat <<_LT_EOF >> conftest.$ac_ext
6227 /* The mapping between symbol names and symbols. */
6232 lt__PROGRAM__LTX_preloaded_symbols[] =
6234 { "@PROGRAM@", (void *) 0 },
6236 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6237 cat <<\_LT_EOF >> conftest.$ac_ext
6241 /* This works around a problem in FreeBSD linker */
6242 #ifdef FREEBSD_WORKAROUND
6243 static const void *lt_preloaded_setup() {
6244 return lt__PROGRAM__LTX_preloaded_symbols;
6252 # Now try linking the two files.
6253 mv conftest.$ac_objext conftstm.$ac_objext
6254 lt_save_LIBS="$LIBS"
6255 lt_save_CFLAGS="$CFLAGS"
6256 LIBS="conftstm.$ac_objext"
6257 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6259 (eval $ac_link) 2>&5
6261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6262 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6265 LIBS="$lt_save_LIBS"
6266 CFLAGS="$lt_save_CFLAGS"
6268 echo "cannot find nm_test_func in $nlist" >&5
6271 echo "cannot find nm_test_var in $nlist" >&5
6274 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6277 echo "$progname: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6280 rm -rf conftest* conftst*
6282 # Do not use the global_symbol_pipe unless it works.
6283 if test "$pipe_works" = yes; then
6286 lt_cv_sys_global_symbol_pipe=
6292 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6293 lt_cv_sys_global_symbol_to_cdecl=
6295 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6297 $as_echo "failed" >&6; }
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6300 $as_echo "ok" >&6; }
6324 # Check whether --enable-libtool-lock was given.
6325 if test "${enable_libtool_lock+set}" = set; then :
6326 enableval=$enable_libtool_lock;
6329 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6331 # Some flags need to be propagated to the compiler or linker for good
6335 # Find out which ABI we are using.
6336 echo 'int i;' > conftest.$ac_ext
6337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6338 (eval $ac_compile) 2>&5
6340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341 test $ac_status = 0; }; then
6342 case `/usr/bin/file conftest.$ac_objext` in
6354 # Find out which ABI we are using.
6355 echo '#line 6355 "configure"' > conftest.$ac_ext
6356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6357 (eval $ac_compile) 2>&5
6359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6360 test $ac_status = 0; }; then
6361 if test "$lt_cv_prog_gnu_ld" = yes; then
6362 case `/usr/bin/file conftest.$ac_objext` in
6364 LD="${LD-ld} -melf32bsmip"
6367 LD="${LD-ld} -melf32bmipn32"
6370 LD="${LD-ld} -melf64bmip"
6374 case `/usr/bin/file conftest.$ac_objext` in
6390 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6391 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6392 # Find out which ABI we are using.
6393 echo 'int i;' > conftest.$ac_ext
6394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6395 (eval $ac_compile) 2>&5
6397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6398 test $ac_status = 0; }; then
6399 case `/usr/bin/file conftest.o` in
6402 x86_64-*kfreebsd*-gnu)
6403 LD="${LD-ld} -m elf_i386_fbsd"
6406 LD="${LD-ld} -m elf_i386"
6408 ppc64-*linux*|powerpc64-*linux*)
6409 LD="${LD-ld} -m elf32ppclinux"
6412 LD="${LD-ld} -m elf_s390"
6415 LD="${LD-ld} -m elf32_sparc"
6421 x86_64-*kfreebsd*-gnu)
6422 LD="${LD-ld} -m elf_x86_64_fbsd"
6425 LD="${LD-ld} -m elf_x86_64"
6427 ppc*-*linux*|powerpc*-*linux*)
6428 LD="${LD-ld} -m elf64ppc"
6430 s390*-*linux*|s390*-*tpf*)
6431 LD="${LD-ld} -m elf64_s390"
6434 LD="${LD-ld} -m elf64_sparc"
6444 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6445 SAVE_CFLAGS="$CFLAGS"
6446 CFLAGS="$CFLAGS -belf"
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6448 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6449 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6453 ac_cpp='$CPP $CPPFLAGS'
6454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6469 if ac_fn_c_try_link "$LINENO"; then :
6470 lt_cv_cc_needs_belf=yes
6472 lt_cv_cc_needs_belf=no
6474 rm -f core conftest.err conftest.$ac_objext \
6475 conftest$ac_exeext conftest.$ac_ext
6477 ac_cpp='$CPP $CPPFLAGS'
6478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6484 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6485 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6486 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6487 CFLAGS="$SAVE_CFLAGS"
6491 # Find out which ABI we are using.
6492 echo 'int i;' > conftest.$ac_ext
6493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6494 (eval $ac_compile) 2>&5
6496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6497 test $ac_status = 0; }; then
6498 case `/usr/bin/file conftest.o` in
6500 case $lt_cv_prog_gnu_ld in
6501 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6503 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6515 need_locks="$enable_libtool_lock"
6519 rhapsody* | darwin*)
6520 if test -n "$ac_tool_prefix"; then
6521 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6522 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6526 $as_echo_n "(cached) " >&6
6528 if test -n "$DSYMUTIL"; then
6529 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6549 if test -n "$DSYMUTIL"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6551 $as_echo "$DSYMUTIL" >&6; }
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6559 if test -z "$ac_cv_prog_DSYMUTIL"; then
6560 ac_ct_DSYMUTIL=$DSYMUTIL
6561 # Extract the first word of "dsymutil", so it can be a program name with args.
6562 set dummy dsymutil; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6566 $as_echo_n "(cached) " >&6
6568 if test -n "$ac_ct_DSYMUTIL"; then
6569 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6589 if test -n "$ac_ct_DSYMUTIL"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6591 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6597 if test "x$ac_ct_DSYMUTIL" = x; then
6600 case $cross_compiling:$ac_tool_warned in
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6604 ac_tool_warned=yes ;;
6606 DSYMUTIL=$ac_ct_DSYMUTIL
6609 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6612 if test -n "$ac_tool_prefix"; then
6613 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6614 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6620 if test -n "$NMEDIT"; then
6621 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 NMEDIT=$ac_cv_prog_NMEDIT
6641 if test -n "$NMEDIT"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6643 $as_echo "$NMEDIT" >&6; }
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6651 if test -z "$ac_cv_prog_NMEDIT"; then
6652 ac_ct_NMEDIT=$NMEDIT
6653 # Extract the first word of "nmedit", so it can be a program name with args.
6654 set dummy nmedit; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6658 $as_echo_n "(cached) " >&6
6660 if test -n "$ac_ct_NMEDIT"; then
6661 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6681 if test -n "$ac_ct_NMEDIT"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6683 $as_echo "$ac_ct_NMEDIT" >&6; }
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6689 if test "x$ac_ct_NMEDIT" = x; then
6692 case $cross_compiling:$ac_tool_warned in
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696 ac_tool_warned=yes ;;
6698 NMEDIT=$ac_ct_NMEDIT
6701 NMEDIT="$ac_cv_prog_NMEDIT"
6704 if test -n "$ac_tool_prefix"; then
6705 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6706 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if test "${ac_cv_prog_LIPO+set}" = set; then :
6710 $as_echo_n "(cached) " >&6
6712 if test -n "$LIPO"; then
6713 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 LIPO=$ac_cv_prog_LIPO
6733 if test -n "$LIPO"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6735 $as_echo "$LIPO" >&6; }
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6743 if test -z "$ac_cv_prog_LIPO"; then
6745 # Extract the first word of "lipo", so it can be a program name with args.
6746 set dummy lipo; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6750 $as_echo_n "(cached) " >&6
6752 if test -n "$ac_ct_LIPO"; then
6753 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762 ac_cv_prog_ac_ct_LIPO="lipo"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6773 if test -n "$ac_ct_LIPO"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6775 $as_echo "$ac_ct_LIPO" >&6; }
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6781 if test "x$ac_ct_LIPO" = x; then
6784 case $cross_compiling:$ac_tool_warned in
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6788 ac_tool_warned=yes ;;
6793 LIPO="$ac_cv_prog_LIPO"
6796 if test -n "$ac_tool_prefix"; then
6797 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6798 set dummy ${ac_tool_prefix}otool; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6802 $as_echo_n "(cached) " >&6
6804 if test -n "$OTOOL"; then
6805 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 OTOOL=$ac_cv_prog_OTOOL
6825 if test -n "$OTOOL"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6827 $as_echo "$OTOOL" >&6; }
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6835 if test -z "$ac_cv_prog_OTOOL"; then
6837 # Extract the first word of "otool", so it can be a program name with args.
6838 set dummy otool; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6842 $as_echo_n "(cached) " >&6
6844 if test -n "$ac_ct_OTOOL"; then
6845 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854 ac_cv_prog_ac_ct_OTOOL="otool"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6865 if test -n "$ac_ct_OTOOL"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6867 $as_echo "$ac_ct_OTOOL" >&6; }
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6873 if test "x$ac_ct_OTOOL" = x; then
6876 case $cross_compiling:$ac_tool_warned in
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880 ac_tool_warned=yes ;;
6885 OTOOL="$ac_cv_prog_OTOOL"
6888 if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6890 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6896 if test -n "$OTOOL64"; then
6897 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 OTOOL64=$ac_cv_prog_OTOOL64
6917 if test -n "$OTOOL64"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6919 $as_echo "$OTOOL64" >&6; }
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6927 if test -z "$ac_cv_prog_OTOOL64"; then
6928 ac_ct_OTOOL64=$OTOOL64
6929 # Extract the first word of "otool64", so it can be a program name with args.
6930 set dummy otool64; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6936 if test -n "$ac_ct_OTOOL64"; then
6937 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_prog_ac_ct_OTOOL64="otool64"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6957 if test -n "$ac_ct_OTOOL64"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6959 $as_echo "$ac_ct_OTOOL64" >&6; }
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6965 if test "x$ac_ct_OTOOL64" = x; then
6968 case $cross_compiling:$ac_tool_warned in
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6972 ac_tool_warned=yes ;;
6974 OTOOL64=$ac_ct_OTOOL64
6977 OTOOL64="$ac_cv_prog_OTOOL64"
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7007 $as_echo_n "checking for -single_module linker flag... " >&6; }
7008 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7009 $as_echo_n "(cached) " >&6
7011 lt_cv_apple_cc_single_mod=no
7012 if test -z "${LT_MULTI_MODULE}"; then
7013 # By default we will add the -single_module flag. You can override
7014 # by either setting the environment variable LT_MULTI_MODULE
7015 # non-empty at configure time, or by adding -multi_module to the
7017 rm -rf libconftest.dylib*
7018 echo "int foo(void){return 1;}" > conftest.c
7019 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7020 -dynamiclib -Wl,-single_module conftest.c" >&5
7021 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7022 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7024 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7025 lt_cv_apple_cc_single_mod=yes
7027 cat conftest.err >&5
7029 rm -rf libconftest.dylib*
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7034 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7036 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7037 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7038 $as_echo_n "(cached) " >&6
7040 lt_cv_ld_exported_symbols_list=no
7041 save_LDFLAGS=$LDFLAGS
7042 echo "_main" > conftest.sym
7043 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7055 if ac_fn_c_try_link "$LINENO"; then :
7056 lt_cv_ld_exported_symbols_list=yes
7058 lt_cv_ld_exported_symbols_list=no
7060 rm -f core conftest.err conftest.$ac_objext \
7061 conftest$ac_exeext conftest.$ac_ext
7062 LDFLAGS="$save_LDFLAGS"
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7066 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7068 rhapsody* | darwin1.[012])
7069 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7071 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7072 darwin*) # darwin 5.x on
7073 # if running on 10.5 or later, the deployment target defaults
7074 # to the OS version, if on x86, and 10.4, the deployment
7075 # target defaults to 10.4. Don't you love it?
7076 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7077 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7078 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7080 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7082 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7086 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7087 _lt_dar_single_mod='$single_module'
7089 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7090 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7092 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7094 if test "$DSYMUTIL" != ":"; then
7095 _lt_dsymutil='~$DSYMUTIL $lib || :'
7102 for ac_header in dlfcn.h
7104 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7106 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7107 cat >>confdefs.h <<_ACEOF
7108 #define HAVE_DLFCN_H 1
7118 enable_win32_dll=yes
7121 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7122 if test -n "$ac_tool_prefix"; then
7123 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7124 set dummy ${ac_tool_prefix}as; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if test "${ac_cv_prog_AS+set}" = set; then :
7128 $as_echo_n "(cached) " >&6
7130 if test -n "$AS"; then
7131 ac_cv_prog_AS="$AS" # Let the user override the test.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_prog_AS="${ac_tool_prefix}as"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 if test -n "$AS"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7153 $as_echo "$AS" >&6; }
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7161 if test -z "$ac_cv_prog_AS"; then
7163 # Extract the first word of "as", so it can be a program name with args.
7164 set dummy as; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7170 if test -n "$ac_ct_AS"; then
7171 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_prog_ac_ct_AS="as"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7191 if test -n "$ac_ct_AS"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7193 $as_echo "$ac_ct_AS" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7199 if test "x$ac_ct_AS" = x; then
7202 case $cross_compiling:$ac_tool_warned in
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7206 ac_tool_warned=yes ;;
7214 if test -n "$ac_tool_prefix"; then
7215 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7216 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7220 $as_echo_n "(cached) " >&6
7222 if test -n "$DLLTOOL"; then
7223 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7232 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 DLLTOOL=$ac_cv_prog_DLLTOOL
7243 if test -n "$DLLTOOL"; then
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7245 $as_echo "$DLLTOOL" >&6; }
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248 $as_echo "no" >&6; }
7253 if test -z "$ac_cv_prog_DLLTOOL"; then
7254 ac_ct_DLLTOOL=$DLLTOOL
7255 # Extract the first word of "dlltool", so it can be a program name with args.
7256 set dummy dlltool; ac_word=$2
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258 $as_echo_n "checking for $ac_word... " >&6; }
7259 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7260 $as_echo_n "(cached) " >&6
7262 if test -n "$ac_ct_DLLTOOL"; then
7263 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7272 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7283 if test -n "$ac_ct_DLLTOOL"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7285 $as_echo "$ac_ct_DLLTOOL" >&6; }
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7291 if test "x$ac_ct_DLLTOOL" = x; then
7294 case $cross_compiling:$ac_tool_warned in
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7298 ac_tool_warned=yes ;;
7300 DLLTOOL=$ac_ct_DLLTOOL
7303 DLLTOOL="$ac_cv_prog_DLLTOOL"
7306 if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7308 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7312 $as_echo_n "(cached) " >&6
7314 if test -n "$OBJDUMP"; then
7315 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7324 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 OBJDUMP=$ac_cv_prog_OBJDUMP
7335 if test -n "$OBJDUMP"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7337 $as_echo "$OBJDUMP" >&6; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7345 if test -z "$ac_cv_prog_OBJDUMP"; then
7346 ac_ct_OBJDUMP=$OBJDUMP
7347 # Extract the first word of "objdump", so it can be a program name with args.
7348 set dummy objdump; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7352 $as_echo_n "(cached) " >&6
7354 if test -n "$ac_ct_OBJDUMP"; then
7355 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7375 if test -n "$ac_ct_OBJDUMP"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7377 $as_echo "$ac_ct_OBJDUMP" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7383 if test "x$ac_ct_OBJDUMP" = x; then
7386 case $cross_compiling:$ac_tool_warned in
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7390 ac_tool_warned=yes ;;
7392 OBJDUMP=$ac_ct_OBJDUMP
7395 OBJDUMP="$ac_cv_prog_OBJDUMP"
7401 test -z "$AS" && AS=as
7407 test -z "$DLLTOOL" && DLLTOOL=dlltool
7413 test -z "$OBJDUMP" && OBJDUMP=objdump
7418 # Check whether --enable-static was given.
7419 if test "${enable_static+set}" = set; then :
7420 enableval=$enable_static; p=${PACKAGE-default}
7422 yes) enable_static=yes ;;
7423 no) enable_static=no ;;
7426 # Look at the argument we got. We use all the common list separators.
7427 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7428 for pkg in $enableval; do
7430 if test "X$pkg" = "X$p"; then
7454 # Check whether --enable-shared was given.
7455 if test "${enable_shared+set}" = set; then :
7456 enableval=$enable_shared; p=${PACKAGE-default}
7458 yes) enable_shared=yes ;;
7459 no) enable_shared=no ;;
7462 # Look at the argument we got. We use all the common list separators.
7463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7464 for pkg in $enableval; do
7466 if test "X$pkg" = "X$p"; then
7487 # Check whether --with-pic was given.
7488 if test "${with_pic+set}" = set; then :
7489 withval=$with_pic; pic_mode="$withval"
7495 test -z "$pic_mode" && pic_mode=default
7503 # Check whether --enable-fast-install was given.
7504 if test "${enable_fast_install+set}" = set; then :
7505 enableval=$enable_fast_install; p=${PACKAGE-default}
7507 yes) enable_fast_install=yes ;;
7508 no) enable_fast_install=no ;;
7510 enable_fast_install=no
7511 # Look at the argument we got. We use all the common list separators.
7512 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7513 for pkg in $enableval; do
7515 if test "X$pkg" = "X$p"; then
7516 enable_fast_install=yes
7523 enable_fast_install=yes
7536 # This can be used to rebuild libtool when needed
7537 LIBTOOL_DEPS="$ltmain"
7539 # Always use our own libtool.
7540 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7566 test -z "$LN_S" && LN_S="ln -s"
7581 if test -n "${ZSH_VERSION+set}" ; then
7582 setopt NO_GLOB_SUBST
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7586 $as_echo_n "checking for objdir... " >&6; }
7587 if test "${lt_cv_objdir+set}" = set; then :
7588 $as_echo_n "(cached) " >&6
7590 rm -f .libs 2>/dev/null
7591 mkdir .libs 2>/dev/null
7592 if test -d .libs; then
7595 # MS-DOS does not allow filenames that begin with a dot.
7598 rmdir .libs 2>/dev/null
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7601 $as_echo "$lt_cv_objdir" >&6; }
7602 objdir=$lt_cv_objdir
7608 cat >>confdefs.h <<_ACEOF
7609 #define LT_OBJDIR "$lt_cv_objdir/"
7630 # AIX sometimes has problems with the GCC collect2 program. For some
7631 # reason, if we set the COLLECT_NAMES environment variable, the problems
7632 # vanish in a puff of smoke.
7633 if test "X${COLLECT_NAMES+set}" != Xset; then
7635 export COLLECT_NAMES
7640 # Sed substitution that helps us do robust quoting. It backslashifies
7641 # metacharacters that are still active within double-quoted strings.
7642 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7644 # Same as above, but do not quote variable references.
7645 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7647 # Sed substitution to delay expansion of an escaped shell variable in a
7648 # double_quote_subst'ed string.
7649 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7651 # Sed substitution to delay expansion of an escaped single quote.
7652 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7654 # Sed substitution to avoid accidental globbing in evaled expressions
7655 no_glob_subst='s/\*/\\\*/g'
7659 can_build_shared=yes
7661 # All known linkers require a `.a' archive for static linking (except MSVC,
7662 # which needs '.lib').
7665 with_gnu_ld="$lt_cv_prog_gnu_ld"
7668 old_CFLAGS="$CFLAGS"
7670 # Set sane defaults for various variables
7671 test -z "$CC" && CC=cc
7672 test -z "$LTCC" && LTCC=$CC
7673 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7674 test -z "$LD" && LD=ld
7675 test -z "$ac_objext" && ac_objext=o
7677 for cc_temp in $compiler""; do
7679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7685 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7688 # Only perform the check for file, if the check method requires it
7689 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7690 case $deplibs_check_method in
7692 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7694 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
7700 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7703 lt_save_MAGIC_CMD="$MAGIC_CMD"
7704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7706 for ac_dir in $ac_dummy; do
7708 test -z "$ac_dir" && ac_dir=.
7709 if test -f $ac_dir/${ac_tool_prefix}file; then
7710 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7711 if test -n "$file_magic_test_file"; then
7712 case $deplibs_check_method in
7714 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7717 $EGREP "$file_magic_regex" > /dev/null; then
7722 *** Warning: the command libtool uses to detect shared libraries,
7723 *** $file_magic_cmd, produces output that libtool cannot recognize.
7724 *** The result is that libtool may fail to recognize shared libraries
7725 *** as such. This will affect the creation of libtool libraries that
7726 *** depend on shared libraries, but programs linked with such libtool
7727 *** libraries will work regardless of this problem. Nevertheless, you
7728 *** may want to report the problem to your system manager and/or to
7729 *** bug-libtool@gnu.org
7739 MAGIC_CMD="$lt_save_MAGIC_CMD"
7744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7745 if test -n "$MAGIC_CMD"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7747 $as_echo "$MAGIC_CMD" >&6; }
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7757 if test -z "$lt_cv_path_MAGIC_CMD"; then
7758 if test -n "$ac_tool_prefix"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7760 $as_echo_n "checking for file... " >&6; }
7761 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7766 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7769 lt_save_MAGIC_CMD="$MAGIC_CMD"
7770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7771 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7772 for ac_dir in $ac_dummy; do
7774 test -z "$ac_dir" && ac_dir=.
7775 if test -f $ac_dir/file; then
7776 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7777 if test -n "$file_magic_test_file"; then
7778 case $deplibs_check_method in
7780 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7781 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7782 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7783 $EGREP "$file_magic_regex" > /dev/null; then
7788 *** Warning: the command libtool uses to detect shared libraries,
7789 *** $file_magic_cmd, produces output that libtool cannot recognize.
7790 *** The result is that libtool may fail to recognize shared libraries
7791 *** as such. This will affect the creation of libtool libraries that
7792 *** depend on shared libraries, but programs linked with such libtool
7793 *** libraries will work regardless of this problem. Nevertheless, you
7794 *** may want to report the problem to your system manager and/or to
7795 *** bug-libtool@gnu.org
7805 MAGIC_CMD="$lt_save_MAGIC_CMD"
7810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7811 if test -n "$MAGIC_CMD"; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7813 $as_echo "$MAGIC_CMD" >&6; }
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7829 # Use C for the default configuration in the libtool script
7833 ac_cpp='$CPP $CPPFLAGS'
7834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7839 # Source file extension for C test sources.
7842 # Object file extension for compiled C test sources.
7846 # Code to be used in simple compile tests
7847 lt_simple_compile_test_code="int some_variable = 0;"
7849 # Code to be used in simple link tests
7850 lt_simple_link_test_code='int main(){return(0);}'
7858 # If no C compiler was specified, use CC.
7861 # If no C compiler flags were specified, use CFLAGS.
7862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7864 # Allow CC to be a program name with arguments.
7867 # Save the default compiler, since it gets overwritten when the other
7868 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7869 compiler_DEFAULT=$CC
7871 # save warnings/boilerplate of simple test code
7872 ac_outfile=conftest.$ac_objext
7873 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7875 _lt_compiler_boilerplate=`cat conftest.err`
7878 ac_outfile=conftest.$ac_objext
7879 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7881 _lt_linker_boilerplate=`cat conftest.err`
7886 ## There is no encapsulation within the following macros, do not change
7887 ## the running order or otherwise move them around unless you know exactly
7888 ## what you are doing...
7889 if test -n "$compiler"; then
7891 lt_prog_compiler_no_builtin_flag=
7893 if test "$GCC" = yes; then
7894 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7897 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7898 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
7901 lt_cv_prog_compiler_rtti_exceptions=no
7902 ac_outfile=conftest.$ac_objext
7903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7904 lt_compiler_flag="-fno-rtti -fno-exceptions"
7905 # Insert the option either (1) after the last *FLAGS variable, or
7906 # (2) before a word containing "conftest.", or (3) at the end.
7907 # Note that $ac_compile itself does not contain backslashes and begins
7908 # with a dollar sign (not a hyphen), so the echo should work correctly.
7909 # The option is referenced via a variable to avoid confusing sed.
7910 lt_compile=`echo "$ac_compile" | $SED \
7911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7913 -e 's:$: $lt_compiler_flag:'`
7914 (eval echo "\"\$as_me:7914: $lt_compile\"" >&5)
7915 (eval "$lt_compile" 2>conftest.err)
7917 cat conftest.err >&5
7918 echo "$as_me:7918: \$? = $ac_status" >&5
7919 if (exit $ac_status) && test -s "$ac_outfile"; then
7920 # The compiler can only warn and ignore the option if not recognized
7921 # So say no if there are warnings other than the usual output.
7922 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7925 lt_cv_prog_compiler_rtti_exceptions=yes
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7932 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7934 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7935 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7947 lt_prog_compiler_wl=
7948 lt_prog_compiler_pic=
7949 lt_prog_compiler_static=
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7952 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7954 if test "$GCC" = yes; then
7955 lt_prog_compiler_wl='-Wl,'
7956 lt_prog_compiler_static='-static'
7960 # All AIX code is PIC.
7961 if test "$host_cpu" = ia64; then
7962 # AIX 5 now supports IA64 processor
7963 lt_prog_compiler_static='-Bstatic'
7970 # see comment about AmigaOS4 .so support
7971 lt_prog_compiler_pic='-fPIC'
7974 # FIXME: we need at least 68020 code to build shared libraries, but
7975 # adding the `-m68020' flag to GCC prevents building anything better,
7977 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7982 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7983 # PIC is the default for these OSes.
7986 mingw* | cygwin* | pw32* | os2* | cegcc*)
7987 # This hack is so that the source file can tell whether it is being
7988 # built for inclusion in a dll (and should export symbols for example).
7989 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7990 # (--disable-auto-import) libraries
7991 lt_prog_compiler_pic='-DDLL_EXPORT'
7994 darwin* | rhapsody*)
7995 # PIC is the default on this platform
7996 # Common symbols not allowed in MH_DYLIB files
7997 lt_prog_compiler_pic='-fno-common'
8001 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8002 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8003 # sets the default TLS model and affects inlining.
8009 lt_prog_compiler_pic='-fPIC'
8015 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8016 # Instead, we relocate shared libraries at runtime.
8020 # Just because we use GCC doesn't mean we suddenly get shared libraries
8021 # on systems that don't support them.
8022 lt_prog_compiler_can_build_shared=no
8027 # QNX uses GNU C++, but need to define -shared option too, otherwise
8029 lt_prog_compiler_pic='-fPIC -shared'
8033 if test -d /usr/nec; then
8034 lt_prog_compiler_pic=-Kconform_pic
8039 lt_prog_compiler_pic='-fPIC'
8043 # PORTME Check for flag to pass linker flags through the system compiler.
8046 lt_prog_compiler_wl='-Wl,'
8047 if test "$host_cpu" = ia64; then
8048 # AIX 5 now supports IA64 processor
8049 lt_prog_compiler_static='-Bstatic'
8051 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8055 mingw* | cygwin* | pw32* | os2* | cegcc*)
8056 # This hack is so that the source file can tell whether it is being
8057 # built for inclusion in a dll (and should export symbols for example).
8058 lt_prog_compiler_pic='-DDLL_EXPORT'
8061 hpux9* | hpux10* | hpux11*)
8062 lt_prog_compiler_wl='-Wl,'
8063 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8070 lt_prog_compiler_pic='+Z'
8073 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8074 lt_prog_compiler_static='${wl}-a ${wl}archive'
8077 irix5* | irix6* | nonstopux*)
8078 lt_prog_compiler_wl='-Wl,'
8079 # PIC (with -KPIC) is the default.
8080 lt_prog_compiler_static='-non_shared'
8083 linux* | k*bsd*-gnu)
8084 case $cc_basename in
8085 # old Intel for x86_64 which still supported -KPIC.
8087 lt_prog_compiler_wl='-Wl,'
8088 lt_prog_compiler_pic='-KPIC'
8089 lt_prog_compiler_static='-static'
8091 # icc used to be incompatible with GCC.
8092 # ICC 10 doesn't accept -KPIC any more.
8094 lt_prog_compiler_wl='-Wl,'
8095 lt_prog_compiler_pic='-fPIC'
8096 lt_prog_compiler_static='-static'
8098 # Lahey Fortran 8.1.
8100 lt_prog_compiler_wl='-Wl,'
8101 lt_prog_compiler_pic='--shared'
8102 lt_prog_compiler_static='--static'
8104 pgcc* | pgf77* | pgf90* | pgf95*)
8105 # Portland Group compilers (*not* the Pentium gcc compiler,
8106 # which looks to be a dead project)
8107 lt_prog_compiler_wl='-Wl,'
8108 lt_prog_compiler_pic='-fpic'
8109 lt_prog_compiler_static='-Bstatic'
8112 lt_prog_compiler_wl='-Wl,'
8113 # All Alpha code is PIC.
8114 lt_prog_compiler_static='-non_shared'
8117 # IBM XL C 8.0/Fortran 10.1 on PPC
8118 lt_prog_compiler_wl='-Wl,'
8119 lt_prog_compiler_pic='-qpic'
8120 lt_prog_compiler_static='-qstaticlink'
8123 case `$CC -V 2>&1 | sed 5q` in
8126 lt_prog_compiler_pic='-KPIC'
8127 lt_prog_compiler_static='-Bstatic'
8128 lt_prog_compiler_wl='-Wl,'
8131 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8132 lt_prog_compiler_pic='-KPIC'
8133 lt_prog_compiler_static='-Bstatic'
8134 lt_prog_compiler_wl=''
8142 lt_prog_compiler_pic='-KPIC'
8143 lt_prog_compiler_static='-Bstatic'
8147 # QNX uses GNU C++, but need to define -shared option too, otherwise
8149 lt_prog_compiler_pic='-fPIC -shared'
8152 osf3* | osf4* | osf5*)
8153 lt_prog_compiler_wl='-Wl,'
8154 # All OSF/1 code is PIC.
8155 lt_prog_compiler_static='-non_shared'
8159 lt_prog_compiler_static='-non_shared'
8163 lt_prog_compiler_pic='-KPIC'
8164 lt_prog_compiler_static='-Bstatic'
8165 case $cc_basename in
8167 lt_prog_compiler_wl='-Qoption ld ';;
8169 lt_prog_compiler_wl='-Wl,';;
8174 lt_prog_compiler_wl='-Qoption ld '
8175 lt_prog_compiler_pic='-PIC'
8176 lt_prog_compiler_static='-Bstatic'
8179 sysv4 | sysv4.2uw2* | sysv4.3*)
8180 lt_prog_compiler_wl='-Wl,'
8181 lt_prog_compiler_pic='-KPIC'
8182 lt_prog_compiler_static='-Bstatic'
8186 if test -d /usr/nec ;then
8187 lt_prog_compiler_pic='-Kconform_pic'
8188 lt_prog_compiler_static='-Bstatic'
8192 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8193 lt_prog_compiler_wl='-Wl,'
8194 lt_prog_compiler_pic='-KPIC'
8195 lt_prog_compiler_static='-Bstatic'
8199 lt_prog_compiler_wl='-Wl,'
8200 lt_prog_compiler_can_build_shared=no
8204 lt_prog_compiler_pic='-pic'
8205 lt_prog_compiler_static='-Bstatic'
8209 lt_prog_compiler_can_build_shared=no
8215 # For platforms which do not support PIC, -DPIC is meaningless:
8217 lt_prog_compiler_pic=
8220 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8224 $as_echo "$lt_prog_compiler_pic" >&6; }
8232 # Check to make sure the PIC flag actually works.
8234 if test -n "$lt_prog_compiler_pic"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8236 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8237 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8240 lt_cv_prog_compiler_pic_works=no
8241 ac_outfile=conftest.$ac_objext
8242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8243 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8244 # Insert the option either (1) after the last *FLAGS variable, or
8245 # (2) before a word containing "conftest.", or (3) at the end.
8246 # Note that $ac_compile itself does not contain backslashes and begins
8247 # with a dollar sign (not a hyphen), so the echo should work correctly.
8248 # The option is referenced via a variable to avoid confusing sed.
8249 lt_compile=`echo "$ac_compile" | $SED \
8250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8252 -e 's:$: $lt_compiler_flag:'`
8253 (eval echo "\"\$as_me:8253: $lt_compile\"" >&5)
8254 (eval "$lt_compile" 2>conftest.err)
8256 cat conftest.err >&5
8257 echo "$as_me:8257: \$? = $ac_status" >&5
8258 if (exit $ac_status) && test -s "$ac_outfile"; then
8259 # The compiler can only warn and ignore the option if not recognized
8260 # So say no if there are warnings other than the usual output.
8261 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8264 lt_cv_prog_compiler_pic_works=yes
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8271 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8273 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8274 case $lt_prog_compiler_pic in
8276 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8279 lt_prog_compiler_pic=
8280 lt_prog_compiler_can_build_shared=no
8291 # Check to make sure the static flag actually works.
8293 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8295 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8296 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8297 $as_echo_n "(cached) " >&6
8299 lt_cv_prog_compiler_static_works=no
8300 save_LDFLAGS="$LDFLAGS"
8301 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8302 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8303 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8304 # The linker can only warn and ignore the option if not recognized
8305 # So say no if there are warnings
8306 if test -s conftest.err; then
8307 # Append any errors to the config.log.
8308 cat conftest.err 1>&5
8309 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8311 if diff conftest.exp conftest.er2 >/dev/null; then
8312 lt_cv_prog_compiler_static_works=yes
8315 lt_cv_prog_compiler_static_works=yes
8319 LDFLAGS="$save_LDFLAGS"
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8323 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8325 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8328 lt_prog_compiler_static=
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8339 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8340 $as_echo_n "(cached) " >&6
8342 lt_cv_prog_compiler_c_o=no
8343 $RM -r conftest 2>/dev/null
8347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8349 lt_compiler_flag="-o out/conftest2.$ac_objext"
8350 # Insert the option either (1) after the last *FLAGS variable, or
8351 # (2) before a word containing "conftest.", or (3) at the end.
8352 # Note that $ac_compile itself does not contain backslashes and begins
8353 # with a dollar sign (not a hyphen), so the echo should work correctly.
8354 lt_compile=`echo "$ac_compile" | $SED \
8355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8357 -e 's:$: $lt_compiler_flag:'`
8358 (eval echo "\"\$as_me:8358: $lt_compile\"" >&5)
8359 (eval "$lt_compile" 2>out/conftest.err)
8361 cat out/conftest.err >&5
8362 echo "$as_me:8362: \$? = $ac_status" >&5
8363 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8365 # The compiler can only warn and ignore the option if not recognized
8366 # So say no if there are warnings
8367 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8368 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8369 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8370 lt_cv_prog_compiler_c_o=yes
8375 # SGI C++ compiler will create directory out/ii_files/ for
8376 # template instantiation
8377 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8378 $RM out/* && rmdir out
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8385 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8393 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8394 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8397 lt_cv_prog_compiler_c_o=no
8398 $RM -r conftest 2>/dev/null
8402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8404 lt_compiler_flag="-o out/conftest2.$ac_objext"
8405 # Insert the option either (1) after the last *FLAGS variable, or
8406 # (2) before a word containing "conftest.", or (3) at the end.
8407 # Note that $ac_compile itself does not contain backslashes and begins
8408 # with a dollar sign (not a hyphen), so the echo should work correctly.
8409 lt_compile=`echo "$ac_compile" | $SED \
8410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8412 -e 's:$: $lt_compiler_flag:'`
8413 (eval echo "\"\$as_me:8413: $lt_compile\"" >&5)
8414 (eval "$lt_compile" 2>out/conftest.err)
8416 cat out/conftest.err >&5
8417 echo "$as_me:8417: \$? = $ac_status" >&5
8418 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8420 # The compiler can only warn and ignore the option if not recognized
8421 # So say no if there are warnings
8422 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8423 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8424 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8425 lt_cv_prog_compiler_c_o=yes
8430 # SGI C++ compiler will create directory out/ii_files/ for
8431 # template instantiation
8432 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8433 $RM out/* && rmdir out
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8440 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8445 hard_links="nottested"
8446 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8447 # do not overwrite the value of need_locks provided by the user
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8449 $as_echo_n "checking if we can lock with hard links... " >&6; }
8452 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8454 ln conftest.a conftest.b 2>&5 || hard_links=no
8455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8457 $as_echo "$hard_links" >&6; }
8458 if test "$hard_links" = no; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8460 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8473 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8476 allow_undefined_flag=
8477 always_export_symbols=no
8479 archive_expsym_cmds=
8480 compiler_needs_object=no
8481 enable_shared_with_static_runtimes=no
8482 export_dynamic_flag_spec=
8483 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8484 hardcode_automatic=no
8486 hardcode_direct_absolute=no
8487 hardcode_libdir_flag_spec=
8488 hardcode_libdir_flag_spec_ld=
8489 hardcode_libdir_separator=
8491 hardcode_shlibpath_var=unsupported
8493 link_all_deplibs=unknown
8496 old_archive_from_new_cmds=
8497 old_archive_from_expsyms_cmds=
8498 thread_safe_flag_spec=
8499 whole_archive_flag_spec=
8500 # include_expsyms should be a list of space-separated symbols to be *always*
8501 # included in the symbol list
8503 # exclude_expsyms can be an extended regexp of symbols to exclude
8504 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8505 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8506 # as well as any symbol that contains `d'.
8507 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8508 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8509 # platforms (ab)use it in PIC code, but their linkers get confused if
8510 # the symbol is explicitly referenced. Since portable code cannot
8511 # rely on this symbol name, it's probably fine to never include it in
8512 # preloaded symbol tables.
8513 # Exclude shared library initialization/finalization symbols.
8514 extract_expsyms_cmds=
8517 cygwin* | mingw* | pw32* | cegcc*)
8518 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8519 # When not using gcc, we currently assume that we are using
8520 # Microsoft Visual C++.
8521 if test "$GCC" != yes; then
8526 # we just hope/assume this is gcc and not c89 (= MSVC++)
8535 if test "$with_gnu_ld" = yes; then
8536 # If archive_cmds runs LD, not CC, wlarc should be empty
8539 # Set some defaults for GNU ld with shared library support. These
8540 # are reset later if shared libraries are not supported. Putting them
8541 # here allows them to be overridden if necessary.
8542 runpath_var=LD_RUN_PATH
8543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8544 export_dynamic_flag_spec='${wl}--export-dynamic'
8545 # ancient GNU ld didn't support --whole-archive et. al.
8546 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8547 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8549 whole_archive_flag_spec=
8551 supports_anon_versioning=no
8552 case `$LD -v 2>&1` in
8553 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8554 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8555 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8556 *\ 2.11.*) ;; # other 2.11 versions
8557 *) supports_anon_versioning=yes ;;
8560 # See if GNU ld supports shared libraries.
8563 # On AIX/PPC, the GNU linker is very broken
8564 if test "$host_cpu" != ia64; then
8568 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8569 *** to be unable to reliably create shared libraries on AIX.
8570 *** Therefore, libtool is disabling shared libraries support. If you
8571 *** really care for shared libraries, you may want to modify your PATH
8572 *** so that a non-GNU linker is found, and then restart.
8581 # see comment about AmigaOS4 .so support
8582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583 archive_expsym_cmds=''
8586 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)'
8587 hardcode_libdir_flag_spec='-L$libdir'
8588 hardcode_minus_L=yes
8594 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8595 allow_undefined_flag=unsupported
8596 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8597 # support --undefined. This deserves some investigation. FIXME
8598 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8604 cygwin* | mingw* | pw32* | cegcc*)
8605 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8606 # as there is no search path for DLLs.
8607 hardcode_libdir_flag_spec='-L$libdir'
8608 allow_undefined_flag=unsupported
8609 always_export_symbols=no
8610 enable_shared_with_static_runtimes=yes
8611 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8613 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8615 # If the export-symbols file already is a .def file (1st line
8616 # is EXPORTS), use it as is; otherwise, prepend...
8617 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8618 cp $export_symbols $output_objdir/$soname.def;
8620 echo EXPORTS > $output_objdir/$soname.def;
8621 cat $export_symbols >> $output_objdir/$soname.def;
8623 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8631 hardcode_shlibpath_var=no
8632 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8633 export_dynamic_flag_spec='${wl}-E'
8634 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8635 # Instead, shared libraries are loaded at an image base (0x10000000 by
8636 # default) and relocated if they conflict, which is a slow very memory
8637 # consuming and fragmenting process. To avoid this, we pick a random,
8638 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8639 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8640 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8641 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'
8644 gnu* | linux* | tpf* | k*bsd*-gnu)
8646 if test "$host_os" = linux-dietlibc; then
8647 case $cc_basename in
8648 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8651 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8652 && test "$tmp_diet" = no
8655 tmp_sharedflag='-shared'
8656 case $cc_basename,$host_cpu in
8657 pgcc*) # Portland Group C compiler
8658 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8659 tmp_addflag=' $pic_flag'
8661 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8662 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8663 tmp_addflag=' $pic_flag -Mnomain' ;;
8664 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8665 tmp_addflag=' -i_dynamic' ;;
8666 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8667 tmp_addflag=' -i_dynamic -nofor_main' ;;
8668 ifc* | ifort*) # Intel Fortran compiler
8669 tmp_addflag=' -nofor_main' ;;
8670 lf95*) # Lahey Fortran 8.1
8671 whole_archive_flag_spec=
8672 tmp_sharedflag='--shared' ;;
8673 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8674 tmp_sharedflag='-qmkshrobj'
8677 case `$CC -V 2>&1 | sed 5q` in
8678 *Sun\ C*) # Sun C 5.9
8679 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8680 compiler_needs_object=yes
8681 tmp_sharedflag='-G' ;;
8682 *Sun\ F*) # Sun Fortran 8.3
8683 tmp_sharedflag='-G' ;;
8685 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687 if test "x$supports_anon_versioning" = xyes; then
8688 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8689 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8690 echo "local: *; };" >> $output_objdir/$libname.ver~
8691 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8694 case $cc_basename in
8696 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8697 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8698 hardcode_libdir_flag_spec=
8699 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8700 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8701 if test "x$supports_anon_versioning" = xyes; then
8702 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8703 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8704 echo "local: *; };" >> $output_objdir/$libname.ver~
8705 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8714 netbsd* | netbsdelf*-gnu)
8715 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8716 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8720 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8725 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8729 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8730 *** create shared libraries on Solaris systems. Therefore, libtool
8731 *** is disabling shared libraries support. We urge you to upgrade GNU
8732 *** binutils to release 2.9.1 or newer. Another option is to modify
8733 *** your PATH or compiler configuration so that the native linker is
8734 *** used, and then restart.
8737 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8746 case `$LD -v 2>&1` in
8747 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8751 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8752 *** reliably create shared libraries on SCO systems. Therefore, libtool
8753 *** is disabling shared libraries support. We urge you to upgrade GNU
8754 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8755 *** your PATH or compiler configuration so that the native linker is
8756 *** used, and then restart.
8761 # For security reasons, it is highly recommended that you always
8762 # use absolute paths for naming shared libraries, and exclude the
8763 # DT_RUNPATH tag from executables and libraries. But doing so
8764 # requires that you compile everything twice, which is a pain.
8765 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8768 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8777 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8780 hardcode_shlibpath_var=no
8784 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8786 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8793 if test "$ld_shlibs" = no; then
8795 hardcode_libdir_flag_spec=
8796 export_dynamic_flag_spec=
8797 whole_archive_flag_spec=
8800 # PORTME fill in a description of your system's linker (not GNU ld)
8803 allow_undefined_flag=unsupported
8804 always_export_symbols=yes
8805 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'
8806 # Note: this linker hardcodes the directories in LIBPATH if there
8807 # are no directories specified by -L.
8808 hardcode_minus_L=yes
8809 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8810 # Neither direct hardcoding nor static linking is supported with a
8812 hardcode_direct=unsupported
8817 if test "$host_cpu" = ia64; then
8818 # On IA64, the linker does run time linking by default, so we don't
8819 # have to do anything special.
8820 aix_use_runtimelinking=no
8821 exp_sym_flag='-Bexport'
8824 # If we're using GNU nm, then we don't want the "-C" option.
8825 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8826 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8827 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8829 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'
8831 aix_use_runtimelinking=no
8833 # Test if we are trying to use run time linking or normal
8834 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8835 # need to do runtime linking.
8836 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8837 for ld_flag in $LDFLAGS; do
8838 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8839 aix_use_runtimelinking=yes
8846 exp_sym_flag='-bexport'
8847 no_entry_flag='-bnoentry'
8850 # When large executables or shared objects are built, AIX ld can
8851 # have problems creating the table of contents. If linking a library
8852 # or program results in "error TOC overflow" add -mminimal-toc to
8853 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8854 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8858 hardcode_direct_absolute=yes
8859 hardcode_libdir_separator=':'
8860 link_all_deplibs=yes
8861 file_list_spec='${wl}-f,'
8863 if test "$GCC" = yes; then
8864 case $host_os in aix4.[012]|aix4.[012].*)
8865 # We only want to do this on AIX 4.2 and lower, the check
8866 # below for broken collect2 doesn't work under 4.3+
8867 collect2name=`${CC} -print-prog-name=collect2`
8868 if test -f "$collect2name" &&
8869 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8871 # We have reworked collect2
8874 # We have old collect2
8875 hardcode_direct=unsupported
8876 # It fails to find uninstalled libraries when the uninstalled
8877 # path is not listed in the libpath. Setting hardcode_minus_L
8878 # to unsupported forces relinking
8879 hardcode_minus_L=yes
8880 hardcode_libdir_flag_spec='-L$libdir'
8881 hardcode_libdir_separator=
8885 shared_flag='-shared'
8886 if test "$aix_use_runtimelinking" = yes; then
8887 shared_flag="$shared_flag "'${wl}-G'
8892 if test "$host_cpu" = ia64; then
8893 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8894 # chokes on -Wl,-G. The following line is correct:
8897 if test "$aix_use_runtimelinking" = yes; then
8898 shared_flag='${wl}-G'
8900 shared_flag='${wl}-bM:SRE'
8905 export_dynamic_flag_spec='${wl}-bexpall'
8906 # It seems that -bexpall does not export symbols beginning with
8907 # underscore (_), so it is better to generate a list of symbols to export.
8908 always_export_symbols=yes
8909 if test "$aix_use_runtimelinking" = yes; then
8910 # Warning - without using the other runtime loading flags (-brtl),
8911 # -berok will link without error, but may produce a broken library.
8912 allow_undefined_flag='-berok'
8913 # Determine the default libpath from the value encoded in an
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8926 if ac_fn_c_try_link "$LINENO"; then :
8928 lt_aix_libpath_sed='
8929 /Import File Strings/,/^$/ {
8935 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8936 # Check for a 64-bit object if we didn't find anything.
8937 if test -z "$aix_libpath"; then
8938 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8941 rm -f core conftest.err conftest.$ac_objext \
8942 conftest$ac_exeext conftest.$ac_ext
8943 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8946 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8948 if test "$host_cpu" = ia64; then
8949 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8950 allow_undefined_flag="-z nodefs"
8951 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"
8953 # Determine the default libpath from the value encoded in an
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8966 if ac_fn_c_try_link "$LINENO"; then :
8968 lt_aix_libpath_sed='
8969 /Import File Strings/,/^$/ {
8975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8976 # Check for a 64-bit object if we didn't find anything.
8977 if test -z "$aix_libpath"; then
8978 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8981 rm -f core conftest.err conftest.$ac_objext \
8982 conftest$ac_exeext conftest.$ac_ext
8983 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8985 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8986 # Warning - without using the other run time loading flags,
8987 # -berok will link without error, but may produce a broken library.
8988 no_undefined_flag=' ${wl}-bernotok'
8989 allow_undefined_flag=' ${wl}-berok'
8990 # Exported symbols can be pulled into shared objects from archives
8991 whole_archive_flag_spec='$convenience'
8992 archive_cmds_need_lc=yes
8993 # This is similar to how AIX traditionally builds its shared libraries.
8994 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'
9002 # see comment about AmigaOS4 .so support
9003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9004 archive_expsym_cmds=''
9007 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)'
9008 hardcode_libdir_flag_spec='-L$libdir'
9009 hardcode_minus_L=yes
9015 export_dynamic_flag_spec=-rdynamic
9018 cygwin* | mingw* | pw32* | cegcc*)
9019 # When not using gcc, we currently assume that we are using
9020 # Microsoft Visual C++.
9021 # hardcode_libdir_flag_spec is actually meaningless, as there is
9022 # no search path for DLLs.
9023 hardcode_libdir_flag_spec=' '
9024 allow_undefined_flag=unsupported
9025 # Tell ltmain to make .lib files, not .a files.
9027 # Tell ltmain to make .dll files, not .so files.
9029 # FIXME: Setting linknames here is a bad hack.
9030 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9031 # The linker will automatically build a .lib file if we build a DLL.
9032 old_archive_from_new_cmds='true'
9033 # FIXME: Should let the user specify the lib program.
9034 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9035 fix_srcfile_path='`cygpath -w "$srcfile"`'
9036 enable_shared_with_static_runtimes=yes
9039 darwin* | rhapsody*)
9042 archive_cmds_need_lc=no
9044 hardcode_automatic=yes
9045 hardcode_shlibpath_var=unsupported
9046 whole_archive_flag_spec=''
9047 link_all_deplibs=yes
9048 allow_undefined_flag="$_lt_dar_allow_undefined"
9049 case $cc_basename in
9050 ifort*) _lt_dar_can_shared=yes ;;
9051 *) _lt_dar_can_shared=$GCC ;;
9053 if test "$_lt_dar_can_shared" = "yes"; then
9054 output_verbose_link_cmd=echo
9055 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9056 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9057 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}"
9058 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}"
9067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068 hardcode_libdir_flag_spec='-L$libdir'
9069 hardcode_shlibpath_var=no
9076 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9077 # support. Future versions do this automatically, but an explicit c++rt0.o
9078 # does not break anything, and helps significantly (at the cost of a little
9081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9082 hardcode_libdir_flag_spec='-R$libdir'
9084 hardcode_shlibpath_var=no
9087 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9091 hardcode_minus_L=yes
9092 hardcode_shlibpath_var=no
9095 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9096 freebsd* | dragonfly*)
9097 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9098 hardcode_libdir_flag_spec='-R$libdir'
9100 hardcode_shlibpath_var=no
9104 if test "$GCC" = yes; then
9105 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9107 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'
9109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9110 hardcode_libdir_separator=:
9113 # hardcode_minus_L: Not really in the search PATH,
9114 # but as the default location of the library.
9115 hardcode_minus_L=yes
9116 export_dynamic_flag_spec='${wl}-E'
9120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9121 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9123 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9125 if test "$with_gnu_ld" = no; then
9126 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9127 hardcode_libdir_flag_spec_ld='+b $libdir'
9128 hardcode_libdir_separator=:
9130 hardcode_direct_absolute=yes
9131 export_dynamic_flag_spec='${wl}-E'
9132 # hardcode_minus_L: Not really in the search PATH,
9133 # but as the default location of the library.
9134 hardcode_minus_L=yes
9139 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9142 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9145 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9148 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9154 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9157 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9160 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9164 if test "$with_gnu_ld" = no; then
9165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9166 hardcode_libdir_separator=:
9171 hardcode_shlibpath_var=no
9175 hardcode_direct_absolute=yes
9176 export_dynamic_flag_spec='${wl}-E'
9178 # hardcode_minus_L: Not really in the search PATH,
9179 # but as the default location of the library.
9180 hardcode_minus_L=yes
9186 irix5* | irix6* | nonstopux*)
9187 if test "$GCC" = yes; then
9188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9189 # Try to use the -exported_symbol ld option, if it does not
9190 # work, assume that -exports_file does not work either and
9191 # implicitly export all symbols.
9192 save_LDFLAGS="$LDFLAGS"
9193 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9198 if ac_fn_c_try_link "$LINENO"; then :
9199 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9202 rm -f core conftest.err conftest.$ac_objext \
9203 conftest$ac_exeext conftest.$ac_ext
9204 LDFLAGS="$save_LDFLAGS"
9206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9207 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9209 archive_cmds_need_lc='no'
9210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9211 hardcode_libdir_separator=:
9213 link_all_deplibs=yes
9216 netbsd* | netbsdelf*-gnu)
9217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9220 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9222 hardcode_libdir_flag_spec='-R$libdir'
9224 hardcode_shlibpath_var=no
9228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9231 hardcode_libdir_separator=:
9232 hardcode_shlibpath_var=no
9239 if test -f /usr/libexec/ld.so; then
9241 hardcode_shlibpath_var=no
9242 hardcode_direct_absolute=yes
9243 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9245 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9247 export_dynamic_flag_spec='${wl}-E'
9250 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9252 hardcode_libdir_flag_spec='-R$libdir'
9255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9266 hardcode_libdir_flag_spec='-L$libdir'
9267 hardcode_minus_L=yes
9268 allow_undefined_flag=unsupported
9269 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'
9270 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9274 if test "$GCC" = yes; then
9275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9276 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9278 allow_undefined_flag=' -expect_unresolved \*'
9279 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9281 archive_cmds_need_lc='no'
9282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9283 hardcode_libdir_separator=:
9286 osf4* | osf5*) # as osf3* with the addition of -msym flag
9287 if test "$GCC" = yes; then
9288 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9289 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292 allow_undefined_flag=' -expect_unresolved \*'
9293 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9294 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~
9295 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9297 # Both c and cxx compiler support -rpath directly
9298 hardcode_libdir_flag_spec='-rpath $libdir'
9300 archive_cmds_need_lc='no'
9301 hardcode_libdir_separator=:
9305 no_undefined_flag=' -z defs'
9306 if test "$GCC" = yes; then
9308 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9310 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9312 case `$CC -V 2>&1` in
9315 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9317 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9321 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9323 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9327 hardcode_libdir_flag_spec='-R$libdir'
9328 hardcode_shlibpath_var=no
9330 solaris2.[0-5] | solaris2.[0-5].*) ;;
9332 # The compiler driver will combine and reorder linker options,
9333 # but understands `-z linker_flag'. GCC discards it without `$wl',
9334 # but is careful enough not to reorder.
9335 # Supported since Solaris 2.6 (maybe 2.5.1?)
9336 if test "$GCC" = yes; then
9337 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9339 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9343 link_all_deplibs=yes
9347 if test "x$host_vendor" = xsequent; then
9348 # Use $CC to link under sequent, because it throws in some extra .o
9349 # files that make .init and .fini sections work.
9350 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9352 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9354 hardcode_libdir_flag_spec='-L$libdir'
9356 hardcode_minus_L=yes
9357 hardcode_shlibpath_var=no
9361 case $host_vendor in
9363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_direct=yes # is this really true???
9367 ## LD is ld it makes a PLAMLIB
9368 ## CC just makes a GrossModule.
9369 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9370 reload_cmds='$CC -r -o $output$reload_objs'
9374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9375 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9378 runpath_var='LD_RUN_PATH'
9379 hardcode_shlibpath_var=no
9383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384 hardcode_shlibpath_var=no
9385 export_dynamic_flag_spec='-Bexport'
9389 if test -d /usr/nec; then
9390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391 hardcode_shlibpath_var=no
9392 runpath_var=LD_RUN_PATH
9393 hardcode_runpath_var=yes
9398 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9399 no_undefined_flag='${wl}-z,text'
9400 archive_cmds_need_lc=no
9401 hardcode_shlibpath_var=no
9402 runpath_var='LD_RUN_PATH'
9404 if test "$GCC" = yes; then
9405 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413 sysv5* | sco3.2v5* | sco5v6*)
9414 # Note: We can NOT use -z defs as we might desire, because we do not
9415 # link with -lc, and that would cause any symbols used from libc to
9416 # always be unresolved, which means just about no library would
9417 # ever link correctly. If we're not using GNU ld we use -z text
9418 # though, which does catch some bad symbols but isn't as heavy-handed
9420 no_undefined_flag='${wl}-z,text'
9421 allow_undefined_flag='${wl}-z,nodefs'
9422 archive_cmds_need_lc=no
9423 hardcode_shlibpath_var=no
9424 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9425 hardcode_libdir_separator=':'
9426 link_all_deplibs=yes
9427 export_dynamic_flag_spec='${wl}-Bexport'
9428 runpath_var='LD_RUN_PATH'
9430 if test "$GCC" = yes; then
9431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9441 hardcode_libdir_flag_spec='-L$libdir'
9442 hardcode_shlibpath_var=no
9450 if test x$host_vendor = xsni; then
9452 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9453 export_dynamic_flag_spec='${wl}-Blargedynsym'
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9460 $as_echo "$ld_shlibs" >&6; }
9461 test "$ld_shlibs" = no && can_build_shared=no
9463 with_gnu_ld=$with_gnu_ld
9480 # Do we need to explicitly link libc?
9482 case "x$archive_cmds_need_lc" in
9484 # Assume -lc should be added
9485 archive_cmds_need_lc=yes
9487 if test "$enable_shared" = yes && test "$GCC" = yes; then
9488 case $archive_cmds in
9490 # FIXME: we may have to deal with multi-command sequences.
9493 # Test whether the compiler implicitly links with -lc since on some
9494 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9495 # to ld, don't add -lc before -lgcc.
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9497 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9502 (eval $ac_compile) 2>&5
9504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9505 test $ac_status = 0; } 2>conftest.err; then
9508 libobjs=conftest.$ac_objext
9510 wl=$lt_prog_compiler_wl
9511 pic_flag=$lt_prog_compiler_pic
9517 lt_save_allow_undefined_flag=$allow_undefined_flag
9518 allow_undefined_flag=
9519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9520 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9523 test $ac_status = 0; }
9525 archive_cmds_need_lc=no
9527 archive_cmds_need_lc=yes
9529 allow_undefined_flag=$lt_save_allow_undefined_flag
9531 cat conftest.err 1>&5
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9535 $as_echo "$archive_cmds_need_lc" >&6; }
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9699 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9701 if test "$GCC" = yes; then
9703 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9704 *) lt_awk_arg="/^libraries:/" ;;
9706 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9707 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9708 # if the path contains ";" then we assume it to be the separator
9709 # otherwise default to the standard path separator (i.e. ":") - it is
9710 # assumed that no part of a normal pathname contains ";" but that should
9711 # okay in the real world where ";" in dirpaths is itself problematic.
9712 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9714 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9716 # Ok, now we have the path, separated by spaces, we can step through it
9717 # and add multilib dir if necessary.
9718 lt_tmp_lt_search_path_spec=
9719 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9720 for lt_sys_path in $lt_search_path_spec; do
9721 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9722 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9724 test -d "$lt_sys_path" && \
9725 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9728 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9729 BEGIN {RS=" "; FS="/|\n";} {
9732 for (lt_i = NF; lt_i > 0; lt_i--) {
9733 if ($lt_i != "" && $lt_i != ".") {
9734 if ($lt_i == "..") {
9737 if (lt_count == 0) {
9738 lt_foo="/" $lt_i lt_foo;
9745 if (lt_foo != "") { lt_freq[lt_foo]++; }
9746 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9748 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9750 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9753 libname_spec='lib$name'
9761 shlibpath_overrides_runpath=unknown
9763 dynamic_linker="$host_os ld.so"
9764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9765 need_lib_prefix=unknown
9766 hardcode_into_libs=no
9768 # when you set need_version to no, make sure it does not cause -set_version
9769 # flags to be left without arguments
9770 need_version=unknown
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9776 shlibpath_var=LIBPATH
9778 # AIX 3 has no versioning support, so we append a major version to the name.
9779 soname_spec='${libname}${release}${shared_ext}$major'
9786 hardcode_into_libs=yes
9787 if test "$host_cpu" = ia64; then
9788 # AIX 5 supports IA64
9789 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9790 shlibpath_var=LD_LIBRARY_PATH
9792 # With GCC up to 2.95.x, collect2 would create an import file
9793 # for dependence libraries. The import file would start with
9794 # the line `#! .'. This would cause the generated library to
9795 # depend on `.', always an invalid library. This was fixed in
9796 # development snapshots of GCC prior to 3.0.
9798 aix4 | aix4.[01] | aix4.[01].*)
9799 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9801 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9808 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9809 # soname into executable. Probably we can add versioning support to
9810 # collect2, so additional links can be useful in future.
9811 if test "$aix_use_runtimelinking" = yes; then
9812 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9813 # instead of lib<name>.a to let people know that these are not
9814 # typical AIX shared libraries.
9815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817 # We preserve .a as extension for shared libraries through AIX4.2
9818 # and later when we are not doing run time linking.
9819 library_names_spec='${libname}${release}.a $libname.a'
9820 soname_spec='${libname}${release}${shared_ext}$major'
9822 shlibpath_var=LIBPATH
9829 # Since July 2007 AmigaOS4 officially supports .so libraries.
9830 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9834 library_names_spec='$libname.ixlibrary $libname.a'
9835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9836 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9842 library_names_spec='${libname}${shared_ext}'
9843 dynamic_linker="$host_os ld.so"
9844 shlibpath_var=LIBRARY_PATH
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9853 shlibpath_var=LD_LIBRARY_PATH
9854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9856 # the default ld.so.conf also contains /usr/contrib/lib and
9857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9858 # libtool to hard-code these into programs
9861 cygwin* | mingw* | pw32* | cegcc*)
9862 version_type=windows
9867 case $GCC,$host_os in
9868 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9869 library_names_spec='$libname.dll.a'
9870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9871 postinstall_cmds='base_file=`basename \${file}`~
9872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9873 dldir=$destdir/`dirname \$dlpath`~
9874 test -d \$dldir || mkdir -p \$dldir~
9875 $install_prog $dir/$dlname \$dldir/$dlname~
9876 chmod a+x \$dldir/$dlname~
9877 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9878 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9881 dlpath=$dir/\$dldll~
9883 shlibpath_overrides_runpath=yes
9887 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9888 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9889 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9892 # MinGW DLLs use traditional 'lib' prefix
9893 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9894 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9895 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9896 # It is most probably a Windows format PATH printed by
9897 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9898 # path with ; separators, and with drive letters. We can handle the
9899 # drive letters (cygwin fileutils understands them), so leave them,
9900 # especially as we might pass files found there to a mingw objdump,
9901 # which wouldn't understand a cygwinified path. Ahh.
9902 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9904 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9908 # pw32 DLLs use 'pw' prefix rather than 'lib'
9909 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9915 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9918 dynamic_linker='Win32 ld.exe'
9919 # FIXME: first we should search . and the directory the executable is in
9923 darwin* | rhapsody*)
9924 dynamic_linker="$host_os dyld"
9928 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9929 soname_spec='${libname}${release}${major}$shared_ext'
9930 shlibpath_overrides_runpath=yes
9931 shlibpath_var=DYLD_LIBRARY_PATH
9932 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9934 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9935 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9943 soname_spec='${libname}${release}${shared_ext}$major'
9944 shlibpath_var=LD_LIBRARY_PATH
9951 freebsd* | dragonfly*)
9952 # DragonFly does not have aout. When/if they implement a new
9953 # versioning mechanism, adjust this.
9954 if test -x /usr/bin/objformat; then
9955 objformat=`/usr/bin/objformat`
9958 freebsd[123]*) objformat=aout ;;
9962 version_type=freebsd-$objformat
9963 case $version_type in
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9974 shlibpath_var=LD_LIBRARY_PATH
9977 shlibpath_overrides_runpath=yes
9979 freebsd3.[01]* | freebsdelf3.[01]*)
9980 shlibpath_overrides_runpath=yes
9981 hardcode_into_libs=yes
9983 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9984 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9985 shlibpath_overrides_runpath=no
9986 hardcode_into_libs=yes
9988 *) # from 4.6 on, and DragonFly
9989 shlibpath_overrides_runpath=yes
9990 hardcode_into_libs=yes
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10000 soname_spec='${libname}${release}${shared_ext}$major'
10001 shlibpath_var=LD_LIBRARY_PATH
10002 hardcode_into_libs=yes
10005 hpux9* | hpux10* | hpux11*)
10006 # Give a soname corresponding to the major version so that dld.sl refuses to
10007 # link against other versions.
10014 hardcode_into_libs=yes
10015 dynamic_linker="$host_os dld.so"
10016 shlibpath_var=LD_LIBRARY_PATH
10017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 if test "X$HPUX_IA64_MODE" = X32; then
10021 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10023 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10029 hardcode_into_libs=yes
10030 dynamic_linker="$host_os dld.sl"
10031 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10034 soname_spec='${libname}${release}${shared_ext}$major'
10035 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10040 dynamic_linker="$host_os dld.sl"
10041 shlibpath_var=SHLIB_PATH
10042 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10047 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10048 postinstall_cmds='chmod 555 $lib'
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10058 shlibpath_var=LD_LIBRARY_PATH
10059 shlibpath_overrides_runpath=no
10060 hardcode_into_libs=yes
10063 irix5* | irix6* | nonstopux*)
10065 nonstopux*) version_type=nonstopux ;;
10067 if test "$lt_cv_prog_gnu_ld" = yes; then
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10078 irix5* | nonstopux*)
10079 libsuff= shlibsuff=
10082 case $LD in # libtool.m4 will add one of these switches to LD
10083 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10084 libsuff= shlibsuff= libmagic=32-bit;;
10085 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10086 libsuff=32 shlibsuff=N32 libmagic=N32;;
10087 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10088 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10089 *) libsuff= shlibsuff= libmagic=never-match;;
10093 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10094 shlibpath_overrides_runpath=no
10095 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10096 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10097 hardcode_into_libs=yes
10100 # No shared lib support for Linux oldld, aout, or coff.
10101 linux*oldld* | linux*aout* | linux*coff*)
10105 # This must be Linux ELF.
10106 linux* | k*bsd*-gnu)
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10113 shlibpath_var=LD_LIBRARY_PATH
10114 shlibpath_overrides_runpath=no
10115 # Some binutils ld are patched to set DT_RUNPATH
10116 save_LDFLAGS=$LDFLAGS
10117 save_libdir=$libdir
10118 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10119 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10131 if ac_fn_c_try_link "$LINENO"; then :
10132 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10133 shlibpath_overrides_runpath=yes
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LDFLAGS=$save_LDFLAGS
10139 libdir=$save_libdir
10141 # This implies no fast_install, which is unacceptable.
10142 # Some rework will be needed to allow for fast_install
10143 # before this can be enabled.
10144 hardcode_into_libs=yes
10146 # Append ld.so.conf contents to the search path
10147 if test -f /etc/ld.so.conf; then
10148 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;/^$/d' | tr '\n' ' '`
10149 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10152 # We used to test for /lib/ld.so.1 and disable shared libraries on
10153 # powerpc, because MkLinux only supported shared libraries with the
10154 # GNU dynamic linker. Since this was broken with cross compilers,
10155 # most powerpc-linux boxes support dynamic linking these days and
10156 # people can always --disable-shared, the test was removed, and we
10157 # assume the GNU/Linux dynamic linker is in use.
10158 dynamic_linker='GNU/Linux ld.so'
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10166 soname_spec='${libname}${release}${shared_ext}$major'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 shlibpath_overrides_runpath=no
10169 hardcode_into_libs=yes
10170 dynamic_linker='NetBSD ld.elf_so'
10177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10180 dynamic_linker='NetBSD (a.out) ld.so'
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 dynamic_linker='NetBSD ld.elf_so'
10186 shlibpath_var=LD_LIBRARY_PATH
10187 shlibpath_overrides_runpath=yes
10188 hardcode_into_libs=yes
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10194 shlibpath_var=LD_LIBRARY_PATH
10195 shlibpath_overrides_runpath=yes
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 shlibpath_overrides_runpath=no
10206 hardcode_into_libs=yes
10207 dynamic_linker='ldqnx.so'
10212 sys_lib_dlsearch_path_spec="/usr/lib"
10214 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10216 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10217 *) need_version=no ;;
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10224 openbsd2.[89] | openbsd2.[89].*)
10225 shlibpath_overrides_runpath=no
10228 shlibpath_overrides_runpath=yes
10232 shlibpath_overrides_runpath=yes
10237 libname_spec='$name'
10240 library_names_spec='$libname${shared_ext} $libname.a'
10241 dynamic_linker='OS/2 ld.exe'
10242 shlibpath_var=LIBPATH
10245 osf3* | osf4* | osf5*)
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251 shlibpath_var=LD_LIBRARY_PATH
10252 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10253 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 shlibpath_var=LD_LIBRARY_PATH
10267 shlibpath_overrides_runpath=yes
10268 hardcode_into_libs=yes
10269 # ldd complains unless libraries are executable
10270 postinstall_cmds='chmod +x $lib'
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10276 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 shlibpath_overrides_runpath=yes
10279 if test "$with_gnu_ld" = yes; then
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 case $host_vendor in
10292 shlibpath_overrides_runpath=no
10294 runpath_var=LD_RUN_PATH
10302 shlibpath_overrides_runpath=no
10303 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10309 if test -d /usr/nec ;then
10311 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10312 soname_spec='$libname${shared_ext}.$major'
10313 shlibpath_var=LD_LIBRARY_PATH
10317 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10318 version_type=freebsd-elf
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=yes
10325 hardcode_into_libs=yes
10326 if test "$with_gnu_ld" = yes; then
10327 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10329 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10332 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10336 sys_lib_dlsearch_path_spec='/usr/lib'
10340 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345 shlibpath_var=LD_LIBRARY_PATH
10346 shlibpath_overrides_runpath=no
10347 hardcode_into_libs=yes
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353 soname_spec='${libname}${release}${shared_ext}$major'
10354 shlibpath_var=LD_LIBRARY_PATH
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10362 $as_echo "$dynamic_linker" >&6; }
10363 test "$dynamic_linker" = no && can_build_shared=no
10365 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10366 if test "$GCC" = yes; then
10367 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10370 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10371 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10373 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10374 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10464 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10466 if test -n "$hardcode_libdir_flag_spec" ||
10467 test -n "$runpath_var" ||
10468 test "X$hardcode_automatic" = "Xyes" ; then
10470 # We can hardcode non-existent directories.
10471 if test "$hardcode_direct" != no &&
10472 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10473 # have to relink, otherwise we might link with an installed library
10474 # when we should be linking with a yet-to-be-installed one
10475 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10476 test "$hardcode_minus_L" != no; then
10477 # Linking always hardcodes the temporary library directory.
10478 hardcode_action=relink
10480 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10481 hardcode_action=immediate
10484 # We cannot hardcode anything, or else we can only hardcode existing
10486 hardcode_action=unsupported
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10489 $as_echo "$hardcode_action" >&6; }
10491 if test "$hardcode_action" = relink ||
10492 test "$inherit_rpath" = yes; then
10493 # Fast installation is not supported
10494 enable_fast_install=no
10495 elif test "$shlibpath_overrides_runpath" = yes ||
10496 test "$enable_shared" = no; then
10497 # Fast installation is not necessary
10498 enable_fast_install=needless
10506 if test "x$enable_dlopen" != xyes; then
10507 enable_dlopen=unknown
10508 enable_dlopen_self=unknown
10509 enable_dlopen_self_static=unknown
10516 lt_cv_dlopen="load_add_on"
10518 lt_cv_dlopen_self=yes
10521 mingw* | pw32* | cegcc*)
10522 lt_cv_dlopen="LoadLibrary"
10527 lt_cv_dlopen="dlopen"
10532 # if libdl is installed we need to link against it
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10534 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10535 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10536 $as_echo_n "(cached) " >&6
10538 ac_check_lib_save_LIBS=$LIBS
10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10543 /* Override any GCC internal prototype to avoid an error.
10544 Use char because int might match the return type of a GCC
10545 builtin and then its argument prototype would still apply. */
10558 if ac_fn_c_try_link "$LINENO"; then :
10559 ac_cv_lib_dl_dlopen=yes
10561 ac_cv_lib_dl_dlopen=no
10563 rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10565 LIBS=$ac_check_lib_save_LIBS
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10568 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10569 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10573 lt_cv_dlopen="dyld"
10575 lt_cv_dlopen_self=yes
10582 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10583 if test "x$ac_cv_func_shl_load" = x""yes; then :
10584 lt_cv_dlopen="shl_load"
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10587 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10588 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10589 $as_echo_n "(cached) " >&6
10591 ac_check_lib_save_LIBS=$LIBS
10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h. */
10596 /* Override any GCC internal prototype to avoid an error.
10597 Use char because int might match the return type of a GCC
10598 builtin and then its argument prototype would still apply. */
10606 return shl_load ();
10611 if ac_fn_c_try_link "$LINENO"; then :
10612 ac_cv_lib_dld_shl_load=yes
10614 ac_cv_lib_dld_shl_load=no
10616 rm -f core conftest.err conftest.$ac_objext \
10617 conftest$ac_exeext conftest.$ac_ext
10618 LIBS=$ac_check_lib_save_LIBS
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10621 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10622 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10623 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10625 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10626 if test "x$ac_cv_func_dlopen" = x""yes; then :
10627 lt_cv_dlopen="dlopen"
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10630 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10631 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10632 $as_echo_n "(cached) " >&6
10634 ac_check_lib_save_LIBS=$LIBS
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10639 /* Override any GCC internal prototype to avoid an error.
10640 Use char because int might match the return type of a GCC
10641 builtin and then its argument prototype would still apply. */
10654 if ac_fn_c_try_link "$LINENO"; then :
10655 ac_cv_lib_dl_dlopen=yes
10657 ac_cv_lib_dl_dlopen=no
10659 rm -f core conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
10661 LIBS=$ac_check_lib_save_LIBS
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10664 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10665 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10666 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10669 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10670 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10671 $as_echo_n "(cached) " >&6
10673 ac_check_lib_save_LIBS=$LIBS
10674 LIBS="-lsvld $LIBS"
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10678 /* Override any GCC internal prototype to avoid an error.
10679 Use char because int might match the return type of a GCC
10680 builtin and then its argument prototype would still apply. */
10693 if ac_fn_c_try_link "$LINENO"; then :
10694 ac_cv_lib_svld_dlopen=yes
10696 ac_cv_lib_svld_dlopen=no
10698 rm -f core conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
10700 LIBS=$ac_check_lib_save_LIBS
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10703 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10704 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10705 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10708 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10709 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10710 $as_echo_n "(cached) " >&6
10712 ac_check_lib_save_LIBS=$LIBS
10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715 /* end confdefs.h. */
10717 /* Override any GCC internal prototype to avoid an error.
10718 Use char because int might match the return type of a GCC
10719 builtin and then its argument prototype would still apply. */
10727 return dld_link ();
10732 if ac_fn_c_try_link "$LINENO"; then :
10733 ac_cv_lib_dld_dld_link=yes
10735 ac_cv_lib_dld_dld_link=no
10737 rm -f core conftest.err conftest.$ac_objext \
10738 conftest$ac_exeext conftest.$ac_ext
10739 LIBS=$ac_check_lib_save_LIBS
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10742 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10743 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10744 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10765 if test "x$lt_cv_dlopen" != xno; then
10771 case $lt_cv_dlopen in
10773 save_CPPFLAGS="$CPPFLAGS"
10774 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10776 save_LDFLAGS="$LDFLAGS"
10777 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10780 LIBS="$lt_cv_dlopen_libs $LIBS"
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10783 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10784 if test "${lt_cv_dlopen_self+set}" = set; then :
10785 $as_echo_n "(cached) " >&6
10787 if test "$cross_compiling" = yes; then :
10788 lt_cv_dlopen_self=cross
10790 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10791 lt_status=$lt_dlunknown
10792 cat > conftest.$ac_ext <<_LT_EOF
10793 #line 10793 "configure"
10794 #include "confdefs.h"
10803 # define LT_DLGLOBAL RTLD_GLOBAL
10806 # define LT_DLGLOBAL DL_GLOBAL
10808 # define LT_DLGLOBAL 0
10812 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10813 find out it does not work in some platform. */
10814 #ifndef LT_DLLAZY_OR_NOW
10816 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10819 # define LT_DLLAZY_OR_NOW DL_LAZY
10822 # define LT_DLLAZY_OR_NOW RTLD_NOW
10825 # define LT_DLLAZY_OR_NOW DL_NOW
10827 # define LT_DLLAZY_OR_NOW 0
10834 void fnord() { int i=42;}
10837 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10838 int status = $lt_dlunknown;
10842 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10843 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10844 /* dlclose (self); */
10852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10853 (eval $ac_link) 2>&5
10855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10856 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10857 (./conftest; exit; ) >&5 2>/dev/null
10859 case x$lt_status in
10860 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10861 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10862 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10865 # compilation failed
10866 lt_cv_dlopen_self=no
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10874 $as_echo "$lt_cv_dlopen_self" >&6; }
10876 if test "x$lt_cv_dlopen_self" = xyes; then
10877 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10879 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10880 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10881 $as_echo_n "(cached) " >&6
10883 if test "$cross_compiling" = yes; then :
10884 lt_cv_dlopen_self_static=cross
10886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10887 lt_status=$lt_dlunknown
10888 cat > conftest.$ac_ext <<_LT_EOF
10889 #line 10889 "configure"
10890 #include "confdefs.h"
10899 # define LT_DLGLOBAL RTLD_GLOBAL
10902 # define LT_DLGLOBAL DL_GLOBAL
10904 # define LT_DLGLOBAL 0
10908 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10909 find out it does not work in some platform. */
10910 #ifndef LT_DLLAZY_OR_NOW
10912 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10915 # define LT_DLLAZY_OR_NOW DL_LAZY
10918 # define LT_DLLAZY_OR_NOW RTLD_NOW
10921 # define LT_DLLAZY_OR_NOW DL_NOW
10923 # define LT_DLLAZY_OR_NOW 0
10930 void fnord() { int i=42;}
10933 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10934 int status = $lt_dlunknown;
10938 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10939 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10940 /* dlclose (self); */
10948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10949 (eval $ac_link) 2>&5
10951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10952 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10953 (./conftest; exit; ) >&5 2>/dev/null
10955 case x$lt_status in
10956 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10957 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10958 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10961 # compilation failed
10962 lt_cv_dlopen_self_static=no
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10970 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10973 CPPFLAGS="$save_CPPFLAGS"
10974 LDFLAGS="$save_LDFLAGS"
10979 case $lt_cv_dlopen_self in
10980 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10981 *) enable_dlopen_self=unknown ;;
10984 case $lt_cv_dlopen_self_static in
10985 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10986 *) enable_dlopen_self_static=unknown ;;
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11009 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11010 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11011 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11012 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11014 $as_echo "yes" >&6; }
11016 # FIXME - insert some real tests, host_os isn't really good enough
11019 if test -n "$STRIP" ; then
11020 striplib="$STRIP -x"
11021 old_striplib="$STRIP -S"
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11023 $as_echo "yes" >&6; }
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11026 $as_echo "no" >&6; }
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 $as_echo "no" >&6; }
11047 # Report which library types will actually be built
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11049 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11051 $as_echo "$can_build_shared" >&6; }
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11054 $as_echo_n "checking whether to build shared libraries... " >&6; }
11055 test "$can_build_shared" = "no" && enable_shared=no
11057 # On AIX, shared libraries and static libraries use the same namespace, and
11058 # are all built from PIC.
11061 test "$enable_shared" = yes && enable_static=no
11062 if test -n "$RANLIB"; then
11063 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11064 postinstall_cmds='$RANLIB $lib'
11069 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11070 test "$enable_shared" = yes && enable_static=no
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11075 $as_echo "$enable_shared" >&6; }
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11078 $as_echo_n "checking whether to build static libraries... " >&6; }
11079 # Make sure either enable_shared or enable_static is yes.
11080 test "$enable_shared" = yes || enable_static=yes
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11082 $as_echo "$enable_static" >&6; }
11089 ac_cpp='$CPP $CPPFLAGS'
11090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11108 ac_config_commands="$ac_config_commands libtool"
11113 # Only expand once:
11116 if test -n "$ac_tool_prefix"; then
11117 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
11118 set dummy ${ac_tool_prefix}windres; ac_word=$2
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120 $as_echo_n "checking for $ac_word... " >&6; }
11121 if test "${ac_cv_prog_RC+set}" = set; then :
11122 $as_echo_n "(cached) " >&6
11124 if test -n "$RC"; then
11125 ac_cv_prog_RC="$RC" # Let the user override the test.
11127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128 for as_dir in $PATH
11131 test -z "$as_dir" && as_dir=.
11132 for ac_exec_ext in '' $ac_executable_extensions; do
11133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11134 ac_cv_prog_RC="${ac_tool_prefix}windres"
11135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11145 if test -n "$RC"; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
11147 $as_echo "$RC" >&6; }
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150 $as_echo "no" >&6; }
11155 if test -z "$ac_cv_prog_RC"; then
11157 # Extract the first word of "windres", so it can be a program name with args.
11158 set dummy windres; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
11162 $as_echo_n "(cached) " >&6
11164 if test -n "$ac_ct_RC"; then
11165 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11174 ac_cv_prog_ac_ct_RC="windres"
11175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 ac_ct_RC=$ac_cv_prog_ac_ct_RC
11185 if test -n "$ac_ct_RC"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
11187 $as_echo "$ac_ct_RC" >&6; }
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190 $as_echo "no" >&6; }
11193 if test "x$ac_ct_RC" = x; then
11196 case $cross_compiling:$ac_tool_warned in
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11200 ac_tool_warned=yes ;;
11205 RC="$ac_cv_prog_RC"
11211 # Source file extension for RC test sources.
11214 # Object file extension for compiled RC test sources.
11218 # Code to be used in simple compile tests
11219 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
11221 # Code to be used in simple link tests
11222 lt_simple_link_test_code="$lt_simple_compile_test_code"
11224 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11231 # If no C compiler was specified, use CC.
11234 # If no C compiler flags were specified, use CFLAGS.
11235 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11237 # Allow CC to be a program name with arguments.
11241 # save warnings/boilerplate of simple test code
11242 ac_outfile=conftest.$ac_objext
11243 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11244 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11245 _lt_compiler_boilerplate=`cat conftest.err`
11248 ac_outfile=conftest.$ac_objext
11249 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11250 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11251 _lt_linker_boilerplate=`cat conftest.err`
11255 # Allow CC to be a program name with arguments.
11262 for cc_temp in $compiler""; do
11264 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11265 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11270 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11272 lt_cv_prog_compiler_c_o_RC=yes
11274 if test -n "$compiler"; then
11283 ac_cpp='$CPP $CPPFLAGS'
11284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11292 # We need to compile and run a program on the build machine.
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
11294 $as_echo_n "checking for cc for build... " >&6; }
11295 if test "$cross_compiling" = "yes"; then
11296 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
11298 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
11301 $as_echo "$CC_FOR_BUILD" >&6; }
11305 # Set some internal variables depending on the platform for later use.
11307 have_w32ce_system=no
11310 have_w32_system=yes
11311 have_w32ce_system=yes
11314 have_w32_system=yes
11324 # Note, that autogen.sh greps for the next line.
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11328 $as_echo_n "checking whether NLS is requested... " >&6; }
11329 # Check whether --enable-nls was given.
11330 if test "${enable_nls+set}" = set; then :
11331 enableval=$enable_nls; USE_NLS=$enableval
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11337 $as_echo "$USE_NLS" >&6; }
11342 GETTEXT_MACRO_VERSION=0.17
11347 # Prepare PATH_SEPARATOR.
11348 # The user is always right.
11349 if test "${PATH_SEPARATOR+set}" != set; then
11350 echo "#! /bin/sh" >conf$$.sh
11351 echo "exit 0" >>conf$$.sh
11353 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11361 # Find out how to test for executable files. Don't use a zero-byte file,
11362 # as systems may use methods other than mode bits to determine executability.
11363 cat >conf$$.file <<_ASEOF
11367 chmod +x conf$$.file
11368 if test -x conf$$.file >/dev/null 2>&1; then
11369 ac_executable_p="test -x"
11371 ac_executable_p="test -f"
11375 # Extract the first word of "msgfmt", so it can be a program name with args.
11376 set dummy msgfmt; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11384 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11387 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11388 for ac_dir in $PATH; do
11390 test -z "$ac_dir" && ac_dir=.
11391 for ac_exec_ext in '' $ac_executable_extensions; do
11392 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11393 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11394 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11395 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11396 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11403 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11407 MSGFMT="$ac_cv_path_MSGFMT"
11408 if test "$MSGFMT" != ":"; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11410 $as_echo "$MSGFMT" >&6; }
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11416 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11417 set dummy gmsgfmt; ac_word=$2
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11419 $as_echo_n "checking for $ac_word... " >&6; }
11420 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11421 $as_echo_n "(cached) " >&6
11425 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11429 for as_dir in $PATH
11432 test -z "$as_dir" && as_dir=.
11433 for ac_exec_ext in '' $ac_executable_extensions; do
11434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11435 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11443 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11447 GMSGFMT=$ac_cv_path_GMSGFMT
11448 if test -n "$GMSGFMT"; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11450 $as_echo "$GMSGFMT" >&6; }
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453 $as_echo "no" >&6; }
11458 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11459 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11460 *) MSGFMT_015=$MSGFMT ;;
11463 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11464 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11465 *) GMSGFMT_015=$GMSGFMT ;;
11470 # Prepare PATH_SEPARATOR.
11471 # The user is always right.
11472 if test "${PATH_SEPARATOR+set}" != set; then
11473 echo "#! /bin/sh" >conf$$.sh
11474 echo "exit 0" >>conf$$.sh
11476 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11484 # Find out how to test for executable files. Don't use a zero-byte file,
11485 # as systems may use methods other than mode bits to determine executability.
11486 cat >conf$$.file <<_ASEOF
11490 chmod +x conf$$.file
11491 if test -x conf$$.file >/dev/null 2>&1; then
11492 ac_executable_p="test -x"
11494 ac_executable_p="test -f"
11498 # Extract the first word of "xgettext", so it can be a program name with args.
11499 set dummy xgettext; ac_word=$2
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11501 $as_echo_n "checking for $ac_word... " >&6; }
11502 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
11505 case "$XGETTEXT" in
11507 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11510 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11511 for ac_dir in $PATH; do
11513 test -z "$ac_dir" && ac_dir=.
11514 for ac_exec_ext in '' $ac_executable_extensions; do
11515 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11516 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11517 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11518 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11519 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11526 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11530 XGETTEXT="$ac_cv_path_XGETTEXT"
11531 if test "$XGETTEXT" != ":"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11533 $as_echo "$XGETTEXT" >&6; }
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11541 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11542 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11543 *) XGETTEXT_015=$XGETTEXT ;;
11548 # Prepare PATH_SEPARATOR.
11549 # The user is always right.
11550 if test "${PATH_SEPARATOR+set}" != set; then
11551 echo "#! /bin/sh" >conf$$.sh
11552 echo "exit 0" >>conf$$.sh
11554 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11562 # Find out how to test for executable files. Don't use a zero-byte file,
11563 # as systems may use methods other than mode bits to determine executability.
11564 cat >conf$$.file <<_ASEOF
11568 chmod +x conf$$.file
11569 if test -x conf$$.file >/dev/null 2>&1; then
11570 ac_executable_p="test -x"
11572 ac_executable_p="test -f"
11576 # Extract the first word of "msgmerge", so it can be a program name with args.
11577 set dummy msgmerge; ac_word=$2
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579 $as_echo_n "checking for $ac_word... " >&6; }
11580 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11581 $as_echo_n "(cached) " >&6
11583 case "$MSGMERGE" in
11585 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11588 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11589 for ac_dir in $PATH; do
11591 test -z "$ac_dir" && ac_dir=.
11592 for ac_exec_ext in '' $ac_executable_extensions; do
11593 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11594 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11595 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11596 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11603 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11607 MSGMERGE="$ac_cv_path_MSGMERGE"
11608 if test "$MSGMERGE" != ":"; then
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11610 $as_echo "$MSGMERGE" >&6; }
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613 $as_echo "no" >&6; }
11617 test -n "$localedir" || localedir='${datadir}/locale'
11620 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
11623 ac_config_commands="$ac_config_commands po-directories"
11627 if test "X$prefix" = "XNONE"; then
11628 acl_final_prefix="$ac_default_prefix"
11630 acl_final_prefix="$prefix"
11632 if test "X$exec_prefix" = "XNONE"; then
11633 acl_final_exec_prefix='${prefix}'
11635 acl_final_exec_prefix="$exec_prefix"
11637 acl_save_prefix="$prefix"
11638 prefix="$acl_final_prefix"
11639 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11640 prefix="$acl_save_prefix"
11643 # Check whether --with-gnu-ld was given.
11644 if test "${with_gnu_ld+set}" = set; then :
11645 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11650 # Prepare PATH_SEPARATOR.
11651 # The user is always right.
11652 if test "${PATH_SEPARATOR+set}" != set; then
11653 echo "#! /bin/sh" >conf$$.sh
11654 echo "exit 0" >>conf$$.sh
11656 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11664 if test "$GCC" = yes; then
11665 # Check if gcc -print-prog-name=ld gives a path.
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11667 $as_echo_n "checking for ld used by GCC... " >&6; }
11670 # gcc leaves a trailing carriage return which upsets mingw
11671 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11673 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11676 # Accept absolute paths.
11677 [\\/]* | [A-Za-z]:[\\/]*)
11678 re_direlt='/[^/][^/]*/\.\./'
11679 # Canonicalize the path of ld
11680 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11681 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11682 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11684 test -z "$LD" && LD="$ac_prog"
11687 # If it fails, then pretend we aren't using GCC.
11691 # If it is relative, then search for the first ld in PATH.
11692 with_gnu_ld=unknown
11695 elif test "$with_gnu_ld" = yes; then
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11697 $as_echo_n "checking for GNU ld... " >&6; }
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11700 $as_echo_n "checking for non-GNU ld... " >&6; }
11702 if test "${acl_cv_path_LD+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
11705 if test -z "$LD"; then
11706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11707 for ac_dir in $PATH; do
11708 test -z "$ac_dir" && ac_dir=.
11709 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11710 acl_cv_path_LD="$ac_dir/$ac_prog"
11711 # Check to see if the program is GNU ld. I'd rather use --version,
11712 # but apparently some GNU ld's only accept -v.
11713 # Break only if it was the GNU/non-GNU ld that we prefer.
11714 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11715 *GNU* | *'with BFD'*)
11716 test "$with_gnu_ld" != no && break ;;
11718 test "$with_gnu_ld" != yes && break ;;
11724 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11728 LD="$acl_cv_path_LD"
11729 if test -n "$LD"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11731 $as_echo "$LD" >&6; }
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11736 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11738 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11739 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
11740 $as_echo_n "(cached) " >&6
11742 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11743 case `$LD -v 2>&1 </dev/null` in
11744 *GNU* | *'with BFD'*)
11745 acl_cv_prog_gnu_ld=yes ;;
11747 acl_cv_prog_gnu_ld=no ;;
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11751 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11752 with_gnu_ld=$acl_cv_prog_gnu_ld
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11758 $as_echo_n "checking for shared library run path origin... " >&6; }
11759 if test "${acl_cv_rpath+set}" = set; then :
11760 $as_echo_n "(cached) " >&6
11763 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11764 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11766 rm -f ./conftest.sh
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11771 $as_echo "$acl_cv_rpath" >&6; }
11773 acl_libext="$acl_cv_libext"
11774 acl_shlibext="$acl_cv_shlibext"
11775 acl_libname_spec="$acl_cv_libname_spec"
11776 acl_library_names_spec="$acl_cv_library_names_spec"
11777 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11778 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11779 acl_hardcode_direct="$acl_cv_hardcode_direct"
11780 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11781 # Check whether --enable-rpath was given.
11782 if test "${enable_rpath+set}" = set; then :
11783 enableval=$enable_rpath; :
11791 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11792 if test -n "$searchpath"; then
11793 acl_save_IFS="${IFS= }"; IFS=":"
11794 for searchdir in $searchpath; do
11795 if test -d "$searchdir"; then
11796 case "$searchdir" in
11797 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11798 *) searchdir=`cd "$searchdir" && pwd`
11799 case "$searchdir" in
11800 */lib64 ) acl_libdirstem=lib64 ;;
11805 IFS="$acl_save_IFS"
11818 acl_save_prefix="$prefix"
11819 prefix="$acl_final_prefix"
11820 acl_save_exec_prefix="$exec_prefix"
11821 exec_prefix="$acl_final_exec_prefix"
11823 eval additional_includedir=\"$includedir\"
11824 eval additional_libdir=\"$libdir\"
11826 exec_prefix="$acl_save_exec_prefix"
11827 prefix="$acl_save_prefix"
11830 # Check whether --with-libiconv-prefix was given.
11831 if test "${with_libiconv_prefix+set}" = set; then :
11832 withval=$with_libiconv_prefix;
11833 if test "X$withval" = "Xno"; then
11836 if test "X$withval" = "X"; then
11838 acl_save_prefix="$prefix"
11839 prefix="$acl_final_prefix"
11840 acl_save_exec_prefix="$exec_prefix"
11841 exec_prefix="$acl_final_exec_prefix"
11843 eval additional_includedir=\"$includedir\"
11844 eval additional_libdir=\"$libdir\"
11846 exec_prefix="$acl_save_exec_prefix"
11847 prefix="$acl_save_prefix"
11850 additional_includedir="$withval/include"
11851 additional_libdir="$withval/$acl_libdirstem"
11863 names_already_handled=
11864 names_next_round='iconv '
11865 while test -n "$names_next_round"; do
11866 names_this_round="$names_next_round"
11868 for name in $names_this_round; do
11870 for n in $names_already_handled; do
11871 if test "$n" = "$name"; then
11872 already_handled=yes
11876 if test -z "$already_handled"; then
11877 names_already_handled="$names_already_handled $name"
11878 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11879 eval value=\"\$HAVE_LIB$uppername\"
11880 if test -n "$value"; then
11881 if test "$value" = yes; then
11882 eval value=\"\$LIB$uppername\"
11883 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11884 eval value=\"\$LTLIB$uppername\"
11885 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11894 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11895 if test -n "$acl_shlibext"; then
11896 shrext=".$acl_shlibext" # typically: shrext=.so
11900 if test $use_additional = yes; then
11901 dir="$additional_libdir"
11902 if test -n "$acl_shlibext"; then
11903 if test -f "$dir/$libname$shrext"; then
11905 found_so="$dir/$libname$shrext"
11907 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11908 ver=`(cd "$dir" && \
11909 for f in "$libname$shrext".*; do echo "$f"; done \
11910 | sed -e "s,^$libname$shrext\\\\.,," \
11911 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11912 | sed 1q ) 2>/dev/null`
11913 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11915 found_so="$dir/$libname$shrext.$ver"
11918 eval library_names=\"$acl_library_names_spec\"
11919 for f in $library_names; do
11920 if test -f "$dir/$f"; then
11929 if test "X$found_dir" = "X"; then
11930 if test -f "$dir/$libname.$acl_libext"; then
11932 found_a="$dir/$libname.$acl_libext"
11935 if test "X$found_dir" != "X"; then
11936 if test -f "$dir/$libname.la"; then
11937 found_la="$dir/$libname.la"
11941 if test "X$found_dir" = "X"; then
11942 for x in $LDFLAGS $LTLIBICONV; do
11944 acl_save_prefix="$prefix"
11945 prefix="$acl_final_prefix"
11946 acl_save_exec_prefix="$exec_prefix"
11947 exec_prefix="$acl_final_exec_prefix"
11949 exec_prefix="$acl_save_exec_prefix"
11950 prefix="$acl_save_prefix"
11954 dir=`echo "X$x" | sed -e 's/^X-L//'`
11955 if test -n "$acl_shlibext"; then
11956 if test -f "$dir/$libname$shrext"; then
11958 found_so="$dir/$libname$shrext"
11960 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11961 ver=`(cd "$dir" && \
11962 for f in "$libname$shrext".*; do echo "$f"; done \
11963 | sed -e "s,^$libname$shrext\\\\.,," \
11964 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11965 | sed 1q ) 2>/dev/null`
11966 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11968 found_so="$dir/$libname$shrext.$ver"
11971 eval library_names=\"$acl_library_names_spec\"
11972 for f in $library_names; do
11973 if test -f "$dir/$f"; then
11982 if test "X$found_dir" = "X"; then
11983 if test -f "$dir/$libname.$acl_libext"; then
11985 found_a="$dir/$libname.$acl_libext"
11988 if test "X$found_dir" != "X"; then
11989 if test -f "$dir/$libname.la"; then
11990 found_la="$dir/$libname.la"
11995 if test "X$found_dir" != "X"; then
12000 if test "X$found_dir" != "X"; then
12001 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12002 if test "X$found_so" != "X"; then
12003 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12004 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12007 for x in $ltrpathdirs; do
12008 if test "X$x" = "X$found_dir"; then
12013 if test -z "$haveit"; then
12014 ltrpathdirs="$ltrpathdirs $found_dir"
12016 if test "$acl_hardcode_direct" = yes; then
12017 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12019 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12020 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12022 for x in $rpathdirs; do
12023 if test "X$x" = "X$found_dir"; then
12028 if test -z "$haveit"; then
12029 rpathdirs="$rpathdirs $found_dir"
12033 for x in $LDFLAGS $LIBICONV; do
12035 acl_save_prefix="$prefix"
12036 prefix="$acl_final_prefix"
12037 acl_save_exec_prefix="$exec_prefix"
12038 exec_prefix="$acl_final_exec_prefix"
12040 exec_prefix="$acl_save_exec_prefix"
12041 prefix="$acl_save_prefix"
12043 if test "X$x" = "X-L$found_dir"; then
12048 if test -z "$haveit"; then
12049 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12051 if test "$acl_hardcode_minus_L" != no; then
12052 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12054 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12060 if test "X$found_a" != "X"; then
12061 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12063 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12066 additional_includedir=
12067 case "$found_dir" in
12068 */$acl_libdirstem | */$acl_libdirstem/)
12069 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12070 LIBICONV_PREFIX="$basedir"
12071 additional_includedir="$basedir/include"
12074 if test "X$additional_includedir" != "X"; then
12075 if test "X$additional_includedir" != "X/usr/include"; then
12077 if test "X$additional_includedir" = "X/usr/local/include"; then
12078 if test -n "$GCC"; then
12080 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12084 if test -z "$haveit"; then
12085 for x in $CPPFLAGS $INCICONV; do
12087 acl_save_prefix="$prefix"
12088 prefix="$acl_final_prefix"
12089 acl_save_exec_prefix="$exec_prefix"
12090 exec_prefix="$acl_final_exec_prefix"
12092 exec_prefix="$acl_save_exec_prefix"
12093 prefix="$acl_save_prefix"
12095 if test "X$x" = "X-I$additional_includedir"; then
12100 if test -z "$haveit"; then
12101 if test -d "$additional_includedir"; then
12102 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12108 if test -n "$found_la"; then
12109 save_libdir="$libdir"
12110 case "$found_la" in
12111 */* | *\\*) . "$found_la" ;;
12112 *) . "./$found_la" ;;
12114 libdir="$save_libdir"
12115 for dep in $dependency_libs; do
12118 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12119 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12121 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12122 if test -n "$GCC"; then
12124 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12128 if test -z "$haveit"; then
12130 for x in $LDFLAGS $LIBICONV; do
12132 acl_save_prefix="$prefix"
12133 prefix="$acl_final_prefix"
12134 acl_save_exec_prefix="$exec_prefix"
12135 exec_prefix="$acl_final_exec_prefix"
12137 exec_prefix="$acl_save_exec_prefix"
12138 prefix="$acl_save_prefix"
12140 if test "X$x" = "X-L$additional_libdir"; then
12145 if test -z "$haveit"; then
12146 if test -d "$additional_libdir"; then
12147 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12151 for x in $LDFLAGS $LTLIBICONV; do
12153 acl_save_prefix="$prefix"
12154 prefix="$acl_final_prefix"
12155 acl_save_exec_prefix="$exec_prefix"
12156 exec_prefix="$acl_final_exec_prefix"
12158 exec_prefix="$acl_save_exec_prefix"
12159 prefix="$acl_save_prefix"
12161 if test "X$x" = "X-L$additional_libdir"; then
12166 if test -z "$haveit"; then
12167 if test -d "$additional_libdir"; then
12168 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12175 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12176 if test "$enable_rpath" != no; then
12178 for x in $rpathdirs; do
12179 if test "X$x" = "X$dir"; then
12184 if test -z "$haveit"; then
12185 rpathdirs="$rpathdirs $dir"
12188 for x in $ltrpathdirs; do
12189 if test "X$x" = "X$dir"; then
12194 if test -z "$haveit"; then
12195 ltrpathdirs="$ltrpathdirs $dir"
12200 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12203 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12206 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12207 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12213 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12214 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12220 if test "X$rpathdirs" != "X"; then
12221 if test -n "$acl_hardcode_libdir_separator"; then
12223 for found_dir in $rpathdirs; do
12224 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12226 acl_save_libdir="$libdir"
12228 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12229 libdir="$acl_save_libdir"
12230 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12232 for found_dir in $rpathdirs; do
12233 acl_save_libdir="$libdir"
12234 libdir="$found_dir"
12235 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12236 libdir="$acl_save_libdir"
12237 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12241 if test "X$ltrpathdirs" != "X"; then
12242 for found_dir in $ltrpathdirs; do
12243 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12272 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12273 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
12276 gt_save_LIBS="$LIBS"
12277 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12280 #include <CoreFoundation/CFPreferences.h>
12284 CFPreferencesCopyAppValue(NULL, NULL)
12289 if ac_fn_c_try_link "$LINENO"; then :
12290 gt_cv_func_CFPreferencesCopyAppValue=yes
12292 gt_cv_func_CFPreferencesCopyAppValue=no
12294 rm -f core conftest.err conftest.$ac_objext \
12295 conftest$ac_exeext conftest.$ac_ext
12296 LIBS="$gt_save_LIBS"
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12299 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12300 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12302 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12306 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12307 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
12308 $as_echo_n "(cached) " >&6
12310 gt_save_LIBS="$LIBS"
12311 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12314 #include <CoreFoundation/CFLocale.h>
12318 CFLocaleCopyCurrent();
12323 if ac_fn_c_try_link "$LINENO"; then :
12324 gt_cv_func_CFLocaleCopyCurrent=yes
12326 gt_cv_func_CFLocaleCopyCurrent=no
12328 rm -f core conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12330 LIBS="$gt_save_LIBS"
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12333 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12334 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12336 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12340 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12341 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12353 case " $gt_needs " in
12354 *" need-formatstring-macros "*) gt_api_version=3 ;;
12355 *" need-ngettext "*) gt_api_version=2 ;;
12356 *) gt_api_version=1 ;;
12358 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12359 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12361 if test "$USE_NLS" = "yes"; then
12362 gt_use_preinstalled_gnugettext=no
12365 if test $gt_api_version -ge 3; then
12366 gt_revision_test_code='
12367 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12368 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12370 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12373 gt_revision_test_code=
12375 if test $gt_api_version -ge 2; then
12376 gt_expression_test_code=' + * ngettext ("", "", 0)'
12378 gt_expression_test_code=
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12382 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12383 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
12384 $as_echo_n "(cached) " >&6
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12388 #include <libintl.h>
12389 $gt_revision_test_code
12390 extern int _nl_msg_cat_cntr;
12391 extern int *_nl_domain_bindings;
12395 bindtextdomain ("", "");
12396 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12401 if ac_fn_c_try_link "$LINENO"; then :
12402 eval "$gt_func_gnugettext_libc=yes"
12404 eval "$gt_func_gnugettext_libc=no"
12406 rm -f core conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12409 eval ac_res=\$$gt_func_gnugettext_libc
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12411 $as_echo "$ac_res" >&6; }
12413 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12419 am_save_CPPFLAGS="$CPPFLAGS"
12421 for element in $INCICONV; do
12423 for x in $CPPFLAGS; do
12425 acl_save_prefix="$prefix"
12426 prefix="$acl_final_prefix"
12427 acl_save_exec_prefix="$exec_prefix"
12428 exec_prefix="$acl_final_exec_prefix"
12430 exec_prefix="$acl_save_exec_prefix"
12431 prefix="$acl_save_prefix"
12433 if test "X$x" = "X$element"; then
12438 if test -z "$haveit"; then
12439 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12445 $as_echo_n "checking for iconv... " >&6; }
12446 if test "${am_cv_func_iconv+set}" = set; then :
12447 $as_echo_n "(cached) " >&6
12450 am_cv_func_iconv="no, consider installing GNU libiconv"
12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12454 #include <stdlib.h>
12459 iconv_t cd = iconv_open("","");
12460 iconv(cd,NULL,NULL,NULL,NULL);
12466 if ac_fn_c_try_link "$LINENO"; then :
12467 am_cv_func_iconv=yes
12469 rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12471 if test "$am_cv_func_iconv" != yes; then
12472 am_save_LIBS="$LIBS"
12473 LIBS="$LIBS $LIBICONV"
12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h. */
12476 #include <stdlib.h>
12481 iconv_t cd = iconv_open("","");
12482 iconv(cd,NULL,NULL,NULL,NULL);
12488 if ac_fn_c_try_link "$LINENO"; then :
12489 am_cv_lib_iconv=yes
12490 am_cv_func_iconv=yes
12492 rm -f core conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12494 LIBS="$am_save_LIBS"
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12499 $as_echo "$am_cv_func_iconv" >&6; }
12500 if test "$am_cv_func_iconv" = yes; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12502 $as_echo_n "checking for working iconv... " >&6; }
12503 if test "${am_cv_func_iconv_works+set}" = set; then :
12504 $as_echo_n "(cached) " >&6
12507 am_save_LIBS="$LIBS"
12508 if test $am_cv_lib_iconv = yes; then
12509 LIBS="$LIBS $LIBICONV"
12511 if test "$cross_compiling" = yes; then :
12513 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12514 *) am_cv_func_iconv_works="guessing yes" ;;
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12521 #include <string.h>
12524 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12527 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12528 if (cd_utf8_to_88591 != (iconv_t)(-1))
12530 static const char input[] = "\342\202\254"; /* EURO SIGN */
12532 const char *inptr = input;
12533 size_t inbytesleft = strlen (input);
12534 char *outptr = buf;
12535 size_t outbytesleft = sizeof (buf);
12536 size_t res = iconv (cd_utf8_to_88591,
12537 (char **) &inptr, &inbytesleft,
12538 &outptr, &outbytesleft);
12543 #if 0 /* This bug could be worked around by the caller. */
12544 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12546 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12547 if (cd_88591_to_utf8 != (iconv_t)(-1))
12549 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12551 const char *inptr = input;
12552 size_t inbytesleft = strlen (input);
12553 char *outptr = buf;
12554 size_t outbytesleft = sizeof (buf);
12555 size_t res = iconv (cd_88591_to_utf8,
12556 (char **) &inptr, &inbytesleft,
12557 &outptr, &outbytesleft);
12563 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12565 if (/* Try standardized names. */
12566 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
12567 /* Try IRIX, OSF/1 names. */
12568 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
12569 /* Try AIX names. */
12570 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
12571 /* Try HP-UX names. */
12572 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
12577 if ac_fn_c_try_run "$LINENO"; then :
12578 am_cv_func_iconv_works=yes
12580 am_cv_func_iconv_works=no
12582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12583 conftest.$ac_objext conftest.beam conftest.$ac_ext
12586 LIBS="$am_save_LIBS"
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12590 $as_echo "$am_cv_func_iconv_works" >&6; }
12591 case "$am_cv_func_iconv_works" in
12592 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12593 *) am_func_iconv=yes ;;
12596 am_func_iconv=no am_cv_lib_iconv=no
12598 if test "$am_func_iconv" = yes; then
12600 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12603 if test "$am_cv_lib_iconv" = yes; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12605 $as_echo_n "checking how to link with libiconv... " >&6; }
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12607 $as_echo "$LIBICONV" >&6; }
12609 CPPFLAGS="$am_save_CPPFLAGS"
12623 acl_save_prefix="$prefix"
12624 prefix="$acl_final_prefix"
12625 acl_save_exec_prefix="$exec_prefix"
12626 exec_prefix="$acl_final_exec_prefix"
12628 eval additional_includedir=\"$includedir\"
12629 eval additional_libdir=\"$libdir\"
12631 exec_prefix="$acl_save_exec_prefix"
12632 prefix="$acl_save_prefix"
12635 # Check whether --with-libintl-prefix was given.
12636 if test "${with_libintl_prefix+set}" = set; then :
12637 withval=$with_libintl_prefix;
12638 if test "X$withval" = "Xno"; then
12641 if test "X$withval" = "X"; then
12643 acl_save_prefix="$prefix"
12644 prefix="$acl_final_prefix"
12645 acl_save_exec_prefix="$exec_prefix"
12646 exec_prefix="$acl_final_exec_prefix"
12648 eval additional_includedir=\"$includedir\"
12649 eval additional_libdir=\"$libdir\"
12651 exec_prefix="$acl_save_exec_prefix"
12652 prefix="$acl_save_prefix"
12655 additional_includedir="$withval/include"
12656 additional_libdir="$withval/$acl_libdirstem"
12668 names_already_handled=
12669 names_next_round='intl '
12670 while test -n "$names_next_round"; do
12671 names_this_round="$names_next_round"
12673 for name in $names_this_round; do
12675 for n in $names_already_handled; do
12676 if test "$n" = "$name"; then
12677 already_handled=yes
12681 if test -z "$already_handled"; then
12682 names_already_handled="$names_already_handled $name"
12683 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12684 eval value=\"\$HAVE_LIB$uppername\"
12685 if test -n "$value"; then
12686 if test "$value" = yes; then
12687 eval value=\"\$LIB$uppername\"
12688 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12689 eval value=\"\$LTLIB$uppername\"
12690 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12699 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12700 if test -n "$acl_shlibext"; then
12701 shrext=".$acl_shlibext" # typically: shrext=.so
12705 if test $use_additional = yes; then
12706 dir="$additional_libdir"
12707 if test -n "$acl_shlibext"; then
12708 if test -f "$dir/$libname$shrext"; then
12710 found_so="$dir/$libname$shrext"
12712 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12713 ver=`(cd "$dir" && \
12714 for f in "$libname$shrext".*; do echo "$f"; done \
12715 | sed -e "s,^$libname$shrext\\\\.,," \
12716 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12717 | sed 1q ) 2>/dev/null`
12718 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12720 found_so="$dir/$libname$shrext.$ver"
12723 eval library_names=\"$acl_library_names_spec\"
12724 for f in $library_names; do
12725 if test -f "$dir/$f"; then
12734 if test "X$found_dir" = "X"; then
12735 if test -f "$dir/$libname.$acl_libext"; then
12737 found_a="$dir/$libname.$acl_libext"
12740 if test "X$found_dir" != "X"; then
12741 if test -f "$dir/$libname.la"; then
12742 found_la="$dir/$libname.la"
12746 if test "X$found_dir" = "X"; then
12747 for x in $LDFLAGS $LTLIBINTL; do
12749 acl_save_prefix="$prefix"
12750 prefix="$acl_final_prefix"
12751 acl_save_exec_prefix="$exec_prefix"
12752 exec_prefix="$acl_final_exec_prefix"
12754 exec_prefix="$acl_save_exec_prefix"
12755 prefix="$acl_save_prefix"
12759 dir=`echo "X$x" | sed -e 's/^X-L//'`
12760 if test -n "$acl_shlibext"; then
12761 if test -f "$dir/$libname$shrext"; then
12763 found_so="$dir/$libname$shrext"
12765 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12766 ver=`(cd "$dir" && \
12767 for f in "$libname$shrext".*; do echo "$f"; done \
12768 | sed -e "s,^$libname$shrext\\\\.,," \
12769 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12770 | sed 1q ) 2>/dev/null`
12771 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12773 found_so="$dir/$libname$shrext.$ver"
12776 eval library_names=\"$acl_library_names_spec\"
12777 for f in $library_names; do
12778 if test -f "$dir/$f"; then
12787 if test "X$found_dir" = "X"; then
12788 if test -f "$dir/$libname.$acl_libext"; then
12790 found_a="$dir/$libname.$acl_libext"
12793 if test "X$found_dir" != "X"; then
12794 if test -f "$dir/$libname.la"; then
12795 found_la="$dir/$libname.la"
12800 if test "X$found_dir" != "X"; then
12805 if test "X$found_dir" != "X"; then
12806 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12807 if test "X$found_so" != "X"; then
12808 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12809 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12812 for x in $ltrpathdirs; do
12813 if test "X$x" = "X$found_dir"; then
12818 if test -z "$haveit"; then
12819 ltrpathdirs="$ltrpathdirs $found_dir"
12821 if test "$acl_hardcode_direct" = yes; then
12822 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12824 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12825 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12827 for x in $rpathdirs; do
12828 if test "X$x" = "X$found_dir"; then
12833 if test -z "$haveit"; then
12834 rpathdirs="$rpathdirs $found_dir"
12838 for x in $LDFLAGS $LIBINTL; do
12840 acl_save_prefix="$prefix"
12841 prefix="$acl_final_prefix"
12842 acl_save_exec_prefix="$exec_prefix"
12843 exec_prefix="$acl_final_exec_prefix"
12845 exec_prefix="$acl_save_exec_prefix"
12846 prefix="$acl_save_prefix"
12848 if test "X$x" = "X-L$found_dir"; then
12853 if test -z "$haveit"; then
12854 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12856 if test "$acl_hardcode_minus_L" != no; then
12857 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12859 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12865 if test "X$found_a" != "X"; then
12866 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12868 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12871 additional_includedir=
12872 case "$found_dir" in
12873 */$acl_libdirstem | */$acl_libdirstem/)
12874 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12875 LIBINTL_PREFIX="$basedir"
12876 additional_includedir="$basedir/include"
12879 if test "X$additional_includedir" != "X"; then
12880 if test "X$additional_includedir" != "X/usr/include"; then
12882 if test "X$additional_includedir" = "X/usr/local/include"; then
12883 if test -n "$GCC"; then
12885 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12889 if test -z "$haveit"; then
12890 for x in $CPPFLAGS $INCINTL; do
12892 acl_save_prefix="$prefix"
12893 prefix="$acl_final_prefix"
12894 acl_save_exec_prefix="$exec_prefix"
12895 exec_prefix="$acl_final_exec_prefix"
12897 exec_prefix="$acl_save_exec_prefix"
12898 prefix="$acl_save_prefix"
12900 if test "X$x" = "X-I$additional_includedir"; then
12905 if test -z "$haveit"; then
12906 if test -d "$additional_includedir"; then
12907 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12913 if test -n "$found_la"; then
12914 save_libdir="$libdir"
12915 case "$found_la" in
12916 */* | *\\*) . "$found_la" ;;
12917 *) . "./$found_la" ;;
12919 libdir="$save_libdir"
12920 for dep in $dependency_libs; do
12923 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12924 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12926 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12927 if test -n "$GCC"; then
12929 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12933 if test -z "$haveit"; then
12935 for x in $LDFLAGS $LIBINTL; do
12937 acl_save_prefix="$prefix"
12938 prefix="$acl_final_prefix"
12939 acl_save_exec_prefix="$exec_prefix"
12940 exec_prefix="$acl_final_exec_prefix"
12942 exec_prefix="$acl_save_exec_prefix"
12943 prefix="$acl_save_prefix"
12945 if test "X$x" = "X-L$additional_libdir"; then
12950 if test -z "$haveit"; then
12951 if test -d "$additional_libdir"; then
12952 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12956 for x in $LDFLAGS $LTLIBINTL; do
12958 acl_save_prefix="$prefix"
12959 prefix="$acl_final_prefix"
12960 acl_save_exec_prefix="$exec_prefix"
12961 exec_prefix="$acl_final_exec_prefix"
12963 exec_prefix="$acl_save_exec_prefix"
12964 prefix="$acl_save_prefix"
12966 if test "X$x" = "X-L$additional_libdir"; then
12971 if test -z "$haveit"; then
12972 if test -d "$additional_libdir"; then
12973 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12980 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12981 if test "$enable_rpath" != no; then
12983 for x in $rpathdirs; do
12984 if test "X$x" = "X$dir"; then
12989 if test -z "$haveit"; then
12990 rpathdirs="$rpathdirs $dir"
12993 for x in $ltrpathdirs; do
12994 if test "X$x" = "X$dir"; then
12999 if test -z "$haveit"; then
13000 ltrpathdirs="$ltrpathdirs $dir"
13005 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13008 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13011 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13012 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13018 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13019 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13025 if test "X$rpathdirs" != "X"; then
13026 if test -n "$acl_hardcode_libdir_separator"; then
13028 for found_dir in $rpathdirs; do
13029 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13031 acl_save_libdir="$libdir"
13033 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13034 libdir="$acl_save_libdir"
13035 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13037 for found_dir in $rpathdirs; do
13038 acl_save_libdir="$libdir"
13039 libdir="$found_dir"
13040 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13041 libdir="$acl_save_libdir"
13042 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13046 if test "X$ltrpathdirs" != "X"; then
13047 for found_dir in $ltrpathdirs; do
13048 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13053 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13054 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
13055 $as_echo_n "(cached) " >&6
13057 gt_save_CPPFLAGS="$CPPFLAGS"
13058 CPPFLAGS="$CPPFLAGS $INCINTL"
13059 gt_save_LIBS="$LIBS"
13060 LIBS="$LIBS $LIBINTL"
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13063 #include <libintl.h>
13064 $gt_revision_test_code
13065 extern int _nl_msg_cat_cntr;
13070 const char *_nl_expand_alias (const char *);
13074 bindtextdomain ("", "");
13075 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13080 if ac_fn_c_try_link "$LINENO"; then :
13081 eval "$gt_func_gnugettext_libintl=yes"
13083 eval "$gt_func_gnugettext_libintl=no"
13085 rm -f core conftest.err conftest.$ac_objext \
13086 conftest$ac_exeext conftest.$ac_ext
13087 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13088 LIBS="$LIBS $LIBICONV"
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13091 #include <libintl.h>
13092 $gt_revision_test_code
13093 extern int _nl_msg_cat_cntr;
13098 const char *_nl_expand_alias (const char *);
13102 bindtextdomain ("", "");
13103 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13108 if ac_fn_c_try_link "$LINENO"; then :
13109 LIBINTL="$LIBINTL $LIBICONV"
13110 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13111 eval "$gt_func_gnugettext_libintl=yes"
13114 rm -f core conftest.err conftest.$ac_objext \
13115 conftest$ac_exeext conftest.$ac_ext
13117 CPPFLAGS="$gt_save_CPPFLAGS"
13118 LIBS="$gt_save_LIBS"
13120 eval ac_res=\$$gt_func_gnugettext_libintl
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13122 $as_echo "$ac_res" >&6; }
13125 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13126 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13127 && test "$PACKAGE" != gettext-runtime \
13128 && test "$PACKAGE" != gettext-tools; }; then
13129 gt_use_preinstalled_gnugettext=yes
13138 if test -n "$INTL_MACOSX_LIBS"; then
13139 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13140 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13141 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13142 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13146 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13147 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13149 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13157 $as_echo_n "checking whether to use NLS... " >&6; }
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13159 $as_echo "$USE_NLS" >&6; }
13160 if test "$USE_NLS" = "yes"; then
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13162 $as_echo_n "checking where the gettext function comes from... " >&6; }
13163 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13164 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13165 gt_source="external libintl"
13170 gt_source="included intl directory"
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13173 $as_echo "$gt_source" >&6; }
13176 if test "$USE_NLS" = "yes"; then
13178 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13179 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13181 $as_echo_n "checking how to link with libintl... " >&6; }
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13183 $as_echo "$LIBINTL" >&6; }
13185 for element in $INCINTL; do
13187 for x in $CPPFLAGS; do
13189 acl_save_prefix="$prefix"
13190 prefix="$acl_final_prefix"
13191 acl_save_exec_prefix="$exec_prefix"
13192 exec_prefix="$acl_final_exec_prefix"
13194 exec_prefix="$acl_save_exec_prefix"
13195 prefix="$acl_save_prefix"
13197 if test "X$x" = "X$element"; then
13202 if test -z "$haveit"; then
13203 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13210 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13213 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13222 INTLLIBS="$LIBINTL"
13230 # Checks for header files.
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13232 $as_echo_n "checking for ANSI C header files... " >&6; }
13233 if test "${ac_cv_header_stdc+set}" = set; then :
13234 $as_echo_n "(cached) " >&6
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13238 #include <stdlib.h>
13239 #include <stdarg.h>
13240 #include <string.h>
13251 if ac_fn_c_try_compile "$LINENO"; then :
13252 ac_cv_header_stdc=yes
13254 ac_cv_header_stdc=no
13256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258 if test $ac_cv_header_stdc = yes; then
13259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13262 #include <string.h>
13265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13266 $EGREP "memchr" >/dev/null 2>&1; then :
13269 ac_cv_header_stdc=no
13275 if test $ac_cv_header_stdc = yes; then
13276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279 #include <stdlib.h>
13282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13283 $EGREP "free" >/dev/null 2>&1; then :
13286 ac_cv_header_stdc=no
13292 if test $ac_cv_header_stdc = yes; then
13293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13294 if test "$cross_compiling" = yes; then :
13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13300 #include <stdlib.h>
13301 #if ((' ' & 0x0FF) == 0x020)
13302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13305 # define ISLOWER(c) \
13306 (('a' <= (c) && (c) <= 'i') \
13307 || ('j' <= (c) && (c) <= 'r') \
13308 || ('s' <= (c) && (c) <= 'z'))
13309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13317 for (i = 0; i < 256; i++)
13318 if (XOR (islower (i), ISLOWER (i))
13319 || toupper (i) != TOUPPER (i))
13324 if ac_fn_c_try_run "$LINENO"; then :
13327 ac_cv_header_stdc=no
13329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13330 conftest.$ac_objext conftest.beam conftest.$ac_ext
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13336 $as_echo "$ac_cv_header_stdc" >&6; }
13337 if test $ac_cv_header_stdc = yes; then
13339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13343 for ac_header in stdlib.h locale.h
13345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13346 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13347 eval as_val=\$$as_ac_Header
13348 if test "x$as_val" = x""yes; then :
13349 cat >>confdefs.h <<_ACEOF
13350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13357 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
13358 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
13364 cat >>confdefs.h <<_ACEOF
13365 #define HAVE_DECL_STRERROR_R $ac_have_decl
13368 for ac_func in strerror_r
13370 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
13371 if test "x$ac_cv_func_strerror_r" = x""yes; then :
13372 cat >>confdefs.h <<_ACEOF
13373 #define HAVE_STRERROR_R 1
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
13380 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13381 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
13382 $as_echo_n "(cached) " >&6
13385 ac_cv_func_strerror_r_char_p=no
13386 if test $ac_cv_have_decl_strerror_r = yes; then
13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388 /* end confdefs.h. */
13389 $ac_includes_default
13395 char x = *strerror_r (0, buf, sizeof buf);
13396 char *p = strerror_r (0, buf, sizeof buf);
13403 if ac_fn_c_try_compile "$LINENO"; then :
13404 ac_cv_func_strerror_r_char_p=yes
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408 # strerror_r is not declared. Choose between
13409 # systems that have relatively inaccessible declarations for the
13410 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
13411 # former has a strerror_r that returns char*, while the latter
13412 # has a strerror_r that returns `int'.
13413 # This test should segfault on the DEC system.
13414 if test "$cross_compiling" = yes; then :
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13419 $ac_includes_default
13420 extern char *strerror_r ();
13425 char x = *strerror_r (0, buf, sizeof buf);
13426 return ! isalpha (x);
13431 if ac_fn_c_try_run "$LINENO"; then :
13432 ac_cv_func_strerror_r_char_p=yes
13434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13435 conftest.$ac_objext conftest.beam conftest.$ac_ext
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13442 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13443 if test $ac_cv_func_strerror_r_char_p = yes; then
13445 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
13449 case "${host_os}" in
13451 # All versions of Solaris from 2.4 have a thread-safe strerror().
13452 # Since Solaris 10, in addition strerror_r() exists.
13455 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
13456 if test "x$ac_cv_func_strerror_r" = x""yes; then :
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&5
13460 $as_echo "$as_me: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&2;}
13466 # Checks for typedefs, structures, and compiler characteristics.
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13468 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13469 if test "${ac_cv_c_const+set}" = set; then :
13470 $as_echo_n "(cached) " >&6
13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473 /* end confdefs.h. */
13478 /* FIXME: Include the comments suggested by Paul. */
13479 #ifndef __cplusplus
13480 /* Ultrix mips cc rejects this. */
13481 typedef int charset[2];
13483 /* SunOS 4.1.1 cc rejects this. */
13484 char const *const *pcpcc;
13486 /* NEC SVR4.0.2 mips cc rejects this. */
13487 struct point {int x, y;};
13488 static struct point const zero = {0,0};
13489 /* AIX XL C 1.02.0.0 rejects this.
13490 It does not let you subtract one const X* pointer from another in
13491 an arm of an if-expression whose if-part is not a constant
13493 const char *g = "string";
13494 pcpcc = &g + (g ? g-g : 0);
13495 /* HPUX 7.0 cc rejects these. */
13497 ppc = (char**) pcpcc;
13498 pcpcc = (char const *const *) ppc;
13499 { /* SCO 3.2v4 cc rejects this. */
13501 char const *s = 0 ? (char *) 0 : (char const *) 0;
13506 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13507 int x[] = {25, 17};
13508 const int *foo = &x[0];
13511 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13512 typedef const int *iptr;
13516 { /* AIX XL C 1.02.0.0 rejects this saying
13517 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13518 struct s { int j; const int *ap[3]; };
13519 struct s *b; b->j = 5;
13521 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13522 const int foo = 10;
13523 if (!foo) return 0;
13525 return !cs[0] && !zero.x;
13532 if ac_fn_c_try_compile "$LINENO"; then :
13537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13540 $as_echo "$ac_cv_c_const" >&6; }
13541 if test $ac_cv_c_const = no; then
13543 $as_echo "#define const /**/" >>confdefs.h
13548 # Substitution used for gpg-error-config
13549 GPG_ERROR_CONFIG_LIBS="-lgpg-error"
13550 GPG_ERROR_CONFIG_CFLAGS=""
13551 GPG_ERROR_CONFIG_ISUBDIRAFTER=""
13555 ac_config_files="$ac_config_files src/gpg-error-config"
13559 # Special defines for certain platforms
13560 if test "$have_w32_system" = yes; then
13562 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
13564 if test "$have_w32ce_system" = yes; then
13566 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
13568 GPG_ERROR_CONFIG_ISUBDIRAFTER="gpg-extra"
13570 BUILD_TIMESTAMP=`date --iso-8601=minutes`
13571 BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
13573 *-svn*) BUILD_FILEVERSION="${BUILD_FILEVERSION}0,0" ;;
13574 *-cvs) BUILD_FILEVERSION="${BUILD_FILEVERSION}0,0" ;;
13575 *-rc*) BUILD_FILEVERSION="${BUILD_FILEVERSION}0,1" ;;
13576 *) BUILD_FILEVERSION="${BUILD_FILEVERSION}0,2" ;;
13581 if test "$have_w32_system" = yes; then
13582 HAVE_W32_SYSTEM_TRUE=
13583 HAVE_W32_SYSTEM_FALSE='#'
13585 HAVE_W32_SYSTEM_TRUE='#'
13586 HAVE_W32_SYSTEM_FALSE=
13589 if test "$have_w32ce_system" = yes; then
13590 HAVE_W32CE_SYSTEM_TRUE=
13591 HAVE_W32CE_SYSTEM_FALSE='#'
13593 HAVE_W32CE_SYSTEM_TRUE='#'
13594 HAVE_W32CE_SYSTEM_FALSE=
13599 # Check whether --enable-languages was given.
13600 if test "${enable_languages+set}" = set; then :
13601 enableval=$enable_languages;
13604 if test "x$enable_languages" != xno; then
13605 LANGUAGES_SOME_TRUE=
13606 LANGUAGES_SOME_FALSE='#'
13608 LANGUAGES_SOME_TRUE='#'
13609 LANGUAGES_SOME_FALSE=
13615 ac_config_files="$ac_config_files Makefile"
13617 ac_config_files="$ac_config_files po/Makefile.in m4/Makefile"
13619 ac_config_files="$ac_config_files src/Makefile tests/Makefile"
13621 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpg-error.asd"
13623 ac_config_files="$ac_config_files src/versioninfo.rc"
13626 cat >confcache <<\_ACEOF
13627 # This file is a shell script that caches the results of configure
13628 # tests run on this system so they can be shared between configure
13629 # scripts and configure runs, see configure's option --config-cache.
13630 # It is not useful on other systems. If it contains results you don't
13631 # want to keep, you may remove or edit it.
13633 # config.status only pays attention to the cache file if you give it
13634 # the --recheck option to rerun configure.
13636 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13637 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13638 # following values.
13642 # The following way of writing the cache mishandles newlines in values,
13643 # but we know of no workaround that is simple, portable, and efficient.
13644 # So, we kill variables containing newlines.
13645 # Ultrix sh set writes to stderr and can't be redirected directly,
13646 # and sets the high bit in the cache file unless we assign to the vars.
13648 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13649 eval ac_val=\$$ac_var
13653 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13654 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13657 _ | IFS | as_nl) ;; #(
13658 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13659 *) { eval $ac_var=; unset $ac_var;} ;;
13665 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13666 *${as_nl}ac_space=\ *)
13667 # `set' does not quote correctly, so add quotes: double-quote
13668 # substitution turns \\\\ into \\, and sed turns \\ into \.
13671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13674 # `set' quotes correctly as required by POSIX, so do not add quotes.
13675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13684 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13686 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13688 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13689 if test -w "$cache_file"; then
13690 test "x$cache_file" != "x/dev/null" &&
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13692 $as_echo "$as_me: updating cache $cache_file" >&6;}
13693 cat confcache >$cache_file
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13696 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13701 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13702 # Let make expand exec_prefix.
13703 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13705 DEFS=-DHAVE_CONFIG_H
13709 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13710 # 1. Remove the extension, and $U if already installed.
13711 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13712 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13713 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13714 # will be set to the directory where LIBOBJS objects are built.
13715 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13716 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13718 LIBOBJS=$ac_libobjs
13720 LTLIBOBJS=$ac_ltlibobjs
13723 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13724 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13727 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13728 as_fn_error "conditional \"AMDEP\" was never defined.
13729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13731 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13732 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13735 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
13736 as_fn_error "conditional \"HAVE_W32_SYSTEM\" was never defined.
13737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13739 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
13740 as_fn_error "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
13741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13743 if test -z "${LANGUAGES_SOME_TRUE}" && test -z "${LANGUAGES_SOME_FALSE}"; then
13744 as_fn_error "conditional \"LANGUAGES_SOME\" was never defined.
13745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13748 : ${CONFIG_STATUS=./config.status}
13750 ac_clean_files_save=$ac_clean_files
13751 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13753 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13755 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13757 # Generated by $as_me.
13758 # Run this file to recreate the current configuration.
13759 # Compiler output produced by configure, useful for debugging
13760 # configure, is in config.log if it exists.
13763 ac_cs_recheck=false
13766 SHELL=\${CONFIG_SHELL-$SHELL}
13769 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13770 ## -------------------- ##
13771 ## M4sh Initialization. ##
13772 ## -------------------- ##
13774 # Be more Bourne compatible
13775 DUALCASE=1; export DUALCASE # for MKS sh
13776 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13779 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13780 # is contrary to our usage. Disable this feature.
13781 alias -g '${1+"$@"}'='"$@"'
13782 setopt NO_GLOB_SUBST
13784 case `(set -o) 2>/dev/null` in #(
13796 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13797 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13798 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13799 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13800 # Prefer a ksh shell builtin over an external printf program on Solaris,
13801 # but without wasting forks for bash or zsh.
13802 if test -z "$BASH_VERSION$ZSH_VERSION" \
13803 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13804 as_echo='print -r --'
13805 as_echo_n='print -rn --'
13806 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13807 as_echo='printf %s\n'
13808 as_echo_n='printf %s'
13810 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13811 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13812 as_echo_n='/usr/ucb/echo -n'
13814 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13815 as_echo_n_body='eval
13819 expr "X$arg" : "X\\(.*\\)$as_nl";
13820 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13822 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13824 export as_echo_n_body
13825 as_echo_n='sh -c $as_echo_n_body as_echo'
13827 export as_echo_body
13828 as_echo='sh -c $as_echo_body as_echo'
13831 # The user is always right.
13832 if test "${PATH_SEPARATOR+set}" != set; then
13834 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13835 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13842 # We need space, tab and new line, in precisely that order. Quoting is
13843 # there to prevent editors from complaining about space-tab.
13844 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13845 # splitting by setting IFS to empty value.)
13848 # Find who we are. Look in the path if we contain no directory separator.
13850 *[\\/]* ) as_myself=$0 ;;
13851 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13852 for as_dir in $PATH
13855 test -z "$as_dir" && as_dir=.
13856 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13862 # We did not find ourselves, most probably we were run as `sh COMMAND'
13863 # in which case we are not to be found in the path.
13864 if test "x$as_myself" = x; then
13867 if test ! -f "$as_myself"; then
13868 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13872 # Unset variables that we do not need and which cause bugs (e.g. in
13873 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13874 # suppresses any "Segmentation fault" message there. '((' could
13875 # trigger a bug in pdksh 5.2.14.
13876 for as_var in BASH_ENV ENV MAIL MAILPATH
13877 do eval test x\${$as_var+set} = xset \
13878 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13891 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13894 # as_fn_error ERROR [LINENO LOG_FD]
13895 # ---------------------------------
13896 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13897 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13898 # script with status $?, using 1 if that was 0.
13901 as_status=$?; test $as_status -eq 0 && as_status=1
13903 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13904 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13906 $as_echo "$as_me: error: $1" >&2
13907 as_fn_exit $as_status
13911 # as_fn_set_status STATUS
13912 # -----------------------
13913 # Set $? to STATUS, without forking.
13914 as_fn_set_status ()
13917 } # as_fn_set_status
13919 # as_fn_exit STATUS
13920 # -----------------
13921 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13925 as_fn_set_status $1
13931 # Portably unset VAR.
13934 { eval $1=; unset $1;}
13936 as_unset=as_fn_unset
13937 # as_fn_append VAR VALUE
13938 # ----------------------
13939 # Append the text in VALUE to the end of the definition contained in VAR. Take
13940 # advantage of any shell optimizations that allow amortized linear growth over
13941 # repeated appends, instead of the typical quadratic growth present in naive
13943 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13944 eval 'as_fn_append ()
13955 # as_fn_arith ARG...
13956 # ------------------
13957 # Perform arithmetic evaluation on the ARGs, and store the result in the
13958 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13959 # must be portable across $(()) and expr.
13960 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13961 eval 'as_fn_arith ()
13968 as_val=`expr "$@" || test $? -eq 1`
13973 if expr a : '\(a\)' >/dev/null 2>&1 &&
13974 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13980 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13981 as_basename=basename
13986 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13992 as_me=`$as_basename -- "$0" ||
13993 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13994 X"$0" : 'X\(//\)$' \| \
13995 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13997 sed '/^.*\/\([^/][^/]*\)\/*$/{
14011 # Avoid depending upon Character Ranges.
14012 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14013 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14014 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14015 as_cr_digits='0123456789'
14016 as_cr_alnum=$as_cr_Letters$as_cr_digits
14018 ECHO_C= ECHO_N= ECHO_T=
14019 case `echo -n x` in #(((((
14021 case `echo 'xy\c'` in
14022 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14024 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14031 rm -f conf$$ conf$$.exe conf$$.file
14032 if test -d conf$$.dir; then
14033 rm -f conf$$.dir/conf$$.file
14036 mkdir conf$$.dir 2>/dev/null
14038 if (echo >conf$$.file) 2>/dev/null; then
14039 if ln -s conf$$.file conf$$ 2>/dev/null; then
14041 # ... but there are two gotchas:
14042 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14043 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14044 # In both cases, we have to default to `cp -p'.
14045 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14047 elif ln conf$$.file conf$$ 2>/dev/null; then
14055 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14056 rmdir conf$$.dir 2>/dev/null
14061 # Create "$as_dir" as a directory, including parents if necessary.
14066 -*) as_dir=./$as_dir;;
14068 test -d "$as_dir" || eval $as_mkdir_p || {
14072 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14073 *) as_qdir=$as_dir;;
14075 as_dirs="'$as_qdir' $as_dirs"
14076 as_dir=`$as_dirname -- "$as_dir" ||
14077 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14078 X"$as_dir" : 'X\(//\)[^/]' \| \
14079 X"$as_dir" : 'X\(//\)$' \| \
14080 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14081 $as_echo X"$as_dir" |
14082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14086 /^X\(\/\/\)[^/].*/{
14099 test -d "$as_dir" && break
14101 test -z "$as_dirs" || eval "mkdir $as_dirs"
14102 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14106 if mkdir -p . 2>/dev/null; then
14107 as_mkdir_p='mkdir -p "$as_dir"'
14109 test -d ./-p && rmdir ./-p
14113 if test -x / >/dev/null 2>&1; then
14114 as_test_x='test -x'
14116 if ls -dL / >/dev/null 2>&1; then
14123 if test -d "$1"; then
14129 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14130 ???[sx]*):;;*)false;;esac;fi
14134 as_executable_p=$as_test_x
14136 # Sed expression to map a string onto a valid CPP name.
14137 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14139 # Sed expression to map a string onto a valid variable name.
14140 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14144 ## ----------------------------------- ##
14145 ## Main body of $CONFIG_STATUS script. ##
14146 ## ----------------------------------- ##
14148 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14151 # Save the log message, to keep $0 and so on meaningful, and to
14152 # report actual input values of CONFIG_FILES etc. instead of their
14153 # values after options handling.
14155 This file was extended by libgpg-error $as_me 1.10, which was
14156 generated by GNU Autoconf 2.64. Invocation command line was
14158 CONFIG_FILES = $CONFIG_FILES
14159 CONFIG_HEADERS = $CONFIG_HEADERS
14160 CONFIG_LINKS = $CONFIG_LINKS
14161 CONFIG_COMMANDS = $CONFIG_COMMANDS
14164 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14169 case $ac_config_files in *"
14170 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14173 case $ac_config_headers in *"
14174 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14179 # Files that config.status was made for.
14180 config_files="$ac_config_files"
14181 config_headers="$ac_config_headers"
14182 config_commands="$ac_config_commands"
14186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14188 \`$as_me' instantiates files and other configuration actions
14189 from templates according to the current configuration. Unless the files
14190 and actions are specified as TAGs, all are instantiated by default.
14192 Usage: $0 [OPTION]... [TAG]...
14194 -h, --help print this help, then exit
14195 -V, --version print version number and configuration settings, then exit
14196 -q, --quiet, --silent
14197 do not print progress messages
14198 -d, --debug don't remove temporary files
14199 --recheck update $as_me by reconfiguring in the same conditions
14200 --file=FILE[:TEMPLATE]
14201 instantiate the configuration file FILE
14202 --header=FILE[:TEMPLATE]
14203 instantiate the configuration header FILE
14205 Configuration files:
14208 Configuration headers:
14211 Configuration commands:
14214 Report bugs to <bug-gnupg@gnupg.org>."
14217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14219 libgpg-error config.status 1.10
14220 configured by $0, generated by GNU Autoconf 2.64,
14221 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14223 Copyright (C) 2009 Free Software Foundation, Inc.
14224 This config.status script is free software; the Free Software Foundation
14225 gives unlimited permission to copy, distribute and modify it."
14232 test -n "\$AWK" || AWK=awk
14235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14236 # The default lists apply if the user does not specify any file.
14242 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14243 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14254 # Handling of the options.
14255 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14257 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14258 $as_echo "$ac_cs_version"; exit ;;
14259 --debug | --debu | --deb | --de | --d | -d )
14261 --file | --fil | --fi | --f )
14264 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14266 as_fn_append CONFIG_FILES " '$ac_optarg'"
14267 ac_need_defaults=false;;
14268 --header | --heade | --head | --hea )
14271 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14273 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14274 ac_need_defaults=false;;
14276 # Conflict between --help and --header
14277 as_fn_error "ambiguous option: \`$1'
14278 Try \`$0 --help' for more information.";;
14279 --help | --hel | -h )
14280 $as_echo "$ac_cs_usage"; exit ;;
14281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14282 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14285 # This is an error.
14286 -*) as_fn_error "unrecognized option: \`$1'
14287 Try \`$0 --help' for more information." ;;
14289 *) as_fn_append ac_config_targets " $1"
14290 ac_need_defaults=false ;;
14296 ac_configure_extra_args=
14298 if $ac_cs_silent; then
14300 ac_configure_extra_args="$ac_configure_extra_args --silent"
14304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14305 if \$ac_cs_recheck; then
14306 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14308 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14309 CONFIG_SHELL='$SHELL'
14310 export CONFIG_SHELL
14315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14319 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14320 ## Running $as_me. ##
14326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14330 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14333 # The HP-UX ksh and POSIX shell print the target directory to stdout
14334 # if CDPATH is set.
14335 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14337 sed_quote_subst='$sed_quote_subst'
14338 double_quote_subst='$double_quote_subst'
14339 delay_variable_subst='$delay_variable_subst'
14340 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14341 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14342 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
14343 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14344 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14345 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14346 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14347 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14348 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14349 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14350 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14351 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14352 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14353 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14354 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14355 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14356 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14357 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14358 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14359 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14360 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14361 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14362 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14363 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14364 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14365 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14366 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14367 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14368 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14369 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14370 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14371 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14372 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14373 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14374 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14375 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14376 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14377 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14378 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14379 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14380 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14381 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14382 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14383 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14384 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14385 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14386 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14387 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14388 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14389 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14390 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14391 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14392 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14393 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14394 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14395 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14396 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14397 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14398 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14399 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14400 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14401 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14402 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14403 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14404 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14405 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14406 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14407 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14408 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14409 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14410 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14411 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14412 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14413 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14414 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14415 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14416 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14417 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14418 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14419 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14420 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14421 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14422 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14423 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14424 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14425 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14426 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14427 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14428 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14429 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14430 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14431 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14432 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14433 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14434 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14435 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14436 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14437 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14438 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14439 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14440 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14441 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14442 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14443 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14444 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14445 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14446 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14447 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14448 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14449 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14450 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14451 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14452 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14453 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14454 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14455 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14456 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14457 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14458 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14459 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14460 LD_RC='`$ECHO "X$LD_RC" | $Xsed -e "$delay_single_quote_subst"`'
14461 old_archive_cmds_RC='`$ECHO "X$old_archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14462 compiler_RC='`$ECHO "X$compiler_RC" | $Xsed -e "$delay_single_quote_subst"`'
14463 GCC_RC='`$ECHO "X$GCC_RC" | $Xsed -e "$delay_single_quote_subst"`'
14464 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
14465 lt_prog_compiler_wl_RC='`$ECHO "X$lt_prog_compiler_wl_RC" | $Xsed -e "$delay_single_quote_subst"`'
14466 lt_prog_compiler_pic_RC='`$ECHO "X$lt_prog_compiler_pic_RC" | $Xsed -e "$delay_single_quote_subst"`'
14467 lt_prog_compiler_static_RC='`$ECHO "X$lt_prog_compiler_static_RC" | $Xsed -e "$delay_single_quote_subst"`'
14468 lt_cv_prog_compiler_c_o_RC='`$ECHO "X$lt_cv_prog_compiler_c_o_RC" | $Xsed -e "$delay_single_quote_subst"`'
14469 archive_cmds_need_lc_RC='`$ECHO "X$archive_cmds_need_lc_RC" | $Xsed -e "$delay_single_quote_subst"`'
14470 enable_shared_with_static_runtimes_RC='`$ECHO "X$enable_shared_with_static_runtimes_RC" | $Xsed -e "$delay_single_quote_subst"`'
14471 export_dynamic_flag_spec_RC='`$ECHO "X$export_dynamic_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
14472 whole_archive_flag_spec_RC='`$ECHO "X$whole_archive_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
14473 compiler_needs_object_RC='`$ECHO "X$compiler_needs_object_RC" | $Xsed -e "$delay_single_quote_subst"`'
14474 old_archive_from_new_cmds_RC='`$ECHO "X$old_archive_from_new_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14475 old_archive_from_expsyms_cmds_RC='`$ECHO "X$old_archive_from_expsyms_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14476 archive_cmds_RC='`$ECHO "X$archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14477 archive_expsym_cmds_RC='`$ECHO "X$archive_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14478 module_cmds_RC='`$ECHO "X$module_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14479 module_expsym_cmds_RC='`$ECHO "X$module_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14480 with_gnu_ld_RC='`$ECHO "X$with_gnu_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
14481 allow_undefined_flag_RC='`$ECHO "X$allow_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
14482 no_undefined_flag_RC='`$ECHO "X$no_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
14483 hardcode_libdir_flag_spec_RC='`$ECHO "X$hardcode_libdir_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
14484 hardcode_libdir_flag_spec_ld_RC='`$ECHO "X$hardcode_libdir_flag_spec_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
14485 hardcode_libdir_separator_RC='`$ECHO "X$hardcode_libdir_separator_RC" | $Xsed -e "$delay_single_quote_subst"`'
14486 hardcode_direct_RC='`$ECHO "X$hardcode_direct_RC" | $Xsed -e "$delay_single_quote_subst"`'
14487 hardcode_direct_absolute_RC='`$ECHO "X$hardcode_direct_absolute_RC" | $Xsed -e "$delay_single_quote_subst"`'
14488 hardcode_minus_L_RC='`$ECHO "X$hardcode_minus_L_RC" | $Xsed -e "$delay_single_quote_subst"`'
14489 hardcode_shlibpath_var_RC='`$ECHO "X$hardcode_shlibpath_var_RC" | $Xsed -e "$delay_single_quote_subst"`'
14490 hardcode_automatic_RC='`$ECHO "X$hardcode_automatic_RC" | $Xsed -e "$delay_single_quote_subst"`'
14491 inherit_rpath_RC='`$ECHO "X$inherit_rpath_RC" | $Xsed -e "$delay_single_quote_subst"`'
14492 link_all_deplibs_RC='`$ECHO "X$link_all_deplibs_RC" | $Xsed -e "$delay_single_quote_subst"`'
14493 fix_srcfile_path_RC='`$ECHO "X$fix_srcfile_path_RC" | $Xsed -e "$delay_single_quote_subst"`'
14494 always_export_symbols_RC='`$ECHO "X$always_export_symbols_RC" | $Xsed -e "$delay_single_quote_subst"`'
14495 export_symbols_cmds_RC='`$ECHO "X$export_symbols_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14496 exclude_expsyms_RC='`$ECHO "X$exclude_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
14497 include_expsyms_RC='`$ECHO "X$include_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
14498 prelink_cmds_RC='`$ECHO "X$prelink_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14499 file_list_spec_RC='`$ECHO "X$file_list_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
14500 hardcode_action_RC='`$ECHO "X$hardcode_action_RC" | $Xsed -e "$delay_single_quote_subst"`'
14503 LTCFLAGS='$LTCFLAGS'
14504 compiler='$compiler_DEFAULT'
14506 # Quote evaled strings.
14517 deplibs_check_method \
14526 lt_cv_sys_global_symbol_pipe \
14527 lt_cv_sys_global_symbol_to_cdecl \
14528 lt_cv_sys_global_symbol_to_c_name_address \
14529 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14532 lt_prog_compiler_no_builtin_flag \
14533 lt_prog_compiler_wl \
14534 lt_prog_compiler_pic \
14535 lt_prog_compiler_static \
14536 lt_cv_prog_compiler_c_o \
14544 export_dynamic_flag_spec \
14545 whole_archive_flag_spec \
14546 compiler_needs_object \
14548 allow_undefined_flag \
14549 no_undefined_flag \
14550 hardcode_libdir_flag_spec \
14551 hardcode_libdir_flag_spec_ld \
14552 hardcode_libdir_separator \
14557 variables_saved_for_relink \
14559 library_names_spec \
14566 lt_prog_compiler_no_builtin_flag_RC \
14567 lt_prog_compiler_wl_RC \
14568 lt_prog_compiler_pic_RC \
14569 lt_prog_compiler_static_RC \
14570 lt_cv_prog_compiler_c_o_RC \
14571 export_dynamic_flag_spec_RC \
14572 whole_archive_flag_spec_RC \
14573 compiler_needs_object_RC \
14575 allow_undefined_flag_RC \
14576 no_undefined_flag_RC \
14577 hardcode_libdir_flag_spec_RC \
14578 hardcode_libdir_flag_spec_ld_RC \
14579 hardcode_libdir_separator_RC \
14580 fix_srcfile_path_RC \
14581 exclude_expsyms_RC \
14582 include_expsyms_RC \
14583 file_list_spec_RC; do
14584 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14585 *[\\\\\\\`\\"\\\$]*)
14586 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14589 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14594 # Double-quote double-evaled strings.
14595 for var in reload_cmds \
14596 old_postinstall_cmds \
14597 old_postuninstall_cmds \
14599 extract_expsyms_cmds \
14600 old_archive_from_new_cmds \
14601 old_archive_from_expsyms_cmds \
14603 archive_expsym_cmds \
14605 module_expsym_cmds \
14606 export_symbols_cmds \
14609 postuninstall_cmds \
14611 sys_lib_search_path_spec \
14612 sys_lib_dlsearch_path_spec \
14613 old_archive_cmds_RC \
14614 old_archive_from_new_cmds_RC \
14615 old_archive_from_expsyms_cmds_RC \
14617 archive_expsym_cmds_RC \
14619 module_expsym_cmds_RC \
14620 export_symbols_cmds_RC \
14621 prelink_cmds_RC; do
14622 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14623 *[\\\\\\\`\\"\\\$]*)
14624 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14627 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14632 # Fix-up fallback echo if it was mangled by the above quoting rules.
14634 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14638 ac_aux_dir='$ac_aux_dir'
14639 xsi_shell='$xsi_shell'
14640 lt_shell_append='$lt_shell_append'
14642 # See if we are running on zsh, and set the options which allow our
14643 # commands through without removal of \ escapes INIT.
14644 if test -n "\${ZSH_VERSION+set}" ; then
14645 setopt NO_GLOB_SUBST
14651 TIMESTAMP='$TIMESTAMP'
14659 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14660 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14661 # from automake < 1.5.
14662 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14663 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14664 LINGUAS="${LINGUAS-%UNSET%}"
14669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14671 # Handling of arguments.
14672 for ac_config_target in $ac_config_targets
14674 case $ac_config_target in
14675 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14676 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14677 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14678 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14679 "src/gpg-error-config") CONFIG_FILES="$CONFIG_FILES src/gpg-error-config" ;;
14680 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14681 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14682 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
14683 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14684 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14685 "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
14686 "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
14687 "lang/cl/gpg-error.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpg-error.asd" ;;
14688 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
14690 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14695 # If the user did not use the arguments to specify the items to instantiate,
14696 # then the envvar interface is used. Set only those that are not.
14697 # We use the long form for the default assignment because of an extremely
14698 # bizarre bug on SunOS 4.1.3.
14699 if $ac_need_defaults; then
14700 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14701 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14702 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14705 # Have a temporary directory for convenience. Make it in the build tree
14706 # simply because there is no reason against having it here, and in addition,
14707 # creating and moving files from /tmp can sometimes cause problems.
14708 # Hook for its removal unless debugging.
14709 # Note that there is a small window in which the directory will not be cleaned:
14710 # after its creation but before its name has been assigned to `$tmp'.
14714 trap 'exit_status=$?
14715 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14717 trap 'as_fn_exit 1' 1 2 13 15
14719 # Create a (secure) tmp directory for tmp files.
14722 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14723 test -n "$tmp" && test -d "$tmp"
14726 tmp=./conf$$-$RANDOM
14727 (umask 077 && mkdir "$tmp")
14728 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14730 # Set up the scripts for CONFIG_FILES section.
14731 # No need to generate them if there are no CONFIG_FILES.
14732 # This happens for instance with `./config.status config.h'.
14733 if test -n "$CONFIG_FILES"; then
14736 ac_cr=`echo X | tr X '\015'`
14737 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14738 # But we know of no other shell where ac_cr would be empty at this
14739 # point, so we can use a bashism as a fallback.
14740 if test "x$ac_cr" = x; then
14741 eval ac_cr=\$\'\\r\'
14743 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14744 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14747 ac_cs_awk_cr=$ac_cr
14750 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14755 echo "cat >conf$$subs.awk <<_ACEOF" &&
14756 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14758 } >conf$$subs.sh ||
14759 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14760 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14762 for ac_last_try in false false false false false :; do
14763 . ./conf$$subs.sh ||
14764 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14766 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14767 if test $ac_delim_n = $ac_delim_num; then
14769 elif $ac_last_try; then
14770 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14772 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14775 rm -f conf$$subs.sh
14777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14778 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14782 s/^/S["/; s/!.*/"]=/
14792 s/\(.\{148\}\).*/\1/
14794 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14799 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14806 s/\(.\{148\}\).*/\1/
14808 s/["\\]/\\&/g; s/^/"/; s/$/"/
14812 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14817 ' <conf$$subs.awk | sed '
14822 ' >>$CONFIG_STATUS || ac_write_fail=1
14823 rm -f conf$$subs.awk
14824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14826 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14827 for (key in S) S_is_set[key] = 1
14833 nfields = split(line, field, "@")
14835 len = length(field[1])
14836 for (i = 2; i < nfields; i++) {
14838 keylen = length(key)
14839 if (S_is_set[key]) {
14841 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14842 len += length(value) + length(field[++i])
14853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14854 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14855 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14858 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14859 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14862 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14863 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14864 # trailing colons and then remove the whole line if VPATH becomes empty
14865 # (actually we leave an empty line to preserve line numbers).
14866 if test "x$srcdir" = x.; then
14867 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14868 s/:*\$(srcdir):*/:/
14869 s/:*\${srcdir}:*/:/
14871 s/^\([^=]*=[ ]*\):*/\1/
14877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14878 fi # test -n "$CONFIG_FILES"
14880 # Set up the scripts for CONFIG_HEADERS section.
14881 # No need to generate them if there are no CONFIG_HEADERS.
14882 # This happens for instance with `./config.status Makefile'.
14883 if test -n "$CONFIG_HEADERS"; then
14884 cat >"$tmp/defines.awk" <<\_ACAWK ||
14888 # Transform confdefs.h into an awk script `defines.awk', embedded as
14889 # here-document in config.status, that substitutes the proper values into
14890 # config.h.in to produce config.h.
14892 # Create a delimiter string that does not exist in confdefs.h, to ease
14893 # handling of long lines.
14895 for ac_last_try in false false :; do
14896 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14897 if test -z "$ac_t"; then
14899 elif $ac_last_try; then
14900 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14906 # For the awk script, D is an array of macro values keyed by name,
14907 # likewise P contains macro parameters if any. Preserve backslash
14908 # newline sequences.
14910 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14912 s/.\{148\}/&'"$ac_delim"'/g
14915 s/^[ ]*#[ ]*define[ ][ ]*/ /
14922 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14924 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14928 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14929 D["\1"]=" \3\\\\\\n"\\/p
14931 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14936 s/.\{148\}/&'"$ac_delim"'/g
14941 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14944 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14946 ' <confdefs.h | sed '
14947 s/'"$ac_delim"'/"\\\
14948 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14951 for (key in D) D_is_set[key] = 1
14954 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14956 split(line, arg, " ")
14957 if (arg[1] == "#") {
14961 defundef = substr(arg[1], 2)
14964 split(mac1, mac2, "(") #)
14966 prefix = substr(line, 1, index(line, defundef) - 1)
14967 if (D_is_set[macro]) {
14968 # Preserve the white space surrounding the "#".
14969 print prefix "define", macro P[macro] D[macro]
14972 # Replace #undef with comments. This is necessary, for example,
14973 # in the case of _POSIX_SOURCE, which is predefined and required
14974 # on some systems where configure will not decide to define it.
14975 if (defundef == "undef") {
14976 print "/*", prefix defundef, macro, "*/"
14984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14985 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14986 fi # test -n "$CONFIG_HEADERS"
14989 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14994 :[FHLC]) ac_mode=$ac_tag; continue;;
14996 case $ac_mode$ac_tag in
14998 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14999 :[FH]-) ac_tag=-:-;;
15000 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15017 -) ac_f="$tmp/stdin";;
15018 *) # Look for the file first in the build tree, then in the source tree
15019 # (if the path is not absolute). The absolute path cannot be DOS-style,
15020 # because $ac_f cannot contain `:'.
15024 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15026 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15028 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15029 as_fn_append ac_file_inputs " '$ac_f'"
15032 # Let's still pretend it is `configure' which instantiates (i.e., don't
15033 # use $as_me), people would be surprised to read:
15034 # /* config.h. Generated by config.status. */
15035 configure_input='Generated from '`
15036 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15038 if test x"$ac_file" != x-; then
15039 configure_input="$ac_file. $configure_input"
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15041 $as_echo "$as_me: creating $ac_file" >&6;}
15043 # Neutralize special characters interpreted by sed in replacement strings.
15044 case $configure_input in #(
15045 *\&* | *\|* | *\\* )
15046 ac_sed_conf_input=`$as_echo "$configure_input" |
15047 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15048 *) ac_sed_conf_input=$configure_input;;
15052 *:-:* | *:-) cat >"$tmp/stdin" \
15053 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15058 ac_dir=`$as_dirname -- "$ac_file" ||
15059 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15060 X"$ac_file" : 'X\(//\)[^/]' \| \
15061 X"$ac_file" : 'X\(//\)$' \| \
15062 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15063 $as_echo X"$ac_file" |
15064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15068 /^X\(\/\/\)[^/].*/{
15081 as_dir="$ac_dir"; as_fn_mkdir_p
15085 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15087 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15088 # A ".." for each directory in $ac_dir_suffix.
15089 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15090 case $ac_top_builddir_sub in
15091 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15092 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15095 ac_abs_top_builddir=$ac_pwd
15096 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15097 # for backward compatibility:
15098 ac_top_builddir=$ac_top_build_prefix
15101 .) # We are building in place.
15103 ac_top_srcdir=$ac_top_builddir_sub
15104 ac_abs_top_srcdir=$ac_pwd ;;
15105 [\\/]* | ?:[\\/]* ) # Absolute name.
15106 ac_srcdir=$srcdir$ac_dir_suffix;
15107 ac_top_srcdir=$srcdir
15108 ac_abs_top_srcdir=$srcdir ;;
15109 *) # Relative name.
15110 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15111 ac_top_srcdir=$ac_top_build_prefix$srcdir
15112 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15114 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15124 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15125 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15127 ac_MKDIR_P=$MKDIR_P
15129 [\\/$]* | ?:[\\/]* ) ;;
15130 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15135 # If the template does not know about datarootdir, expand it.
15136 # FIXME: This hack should be removed a few years after 2.60.
15137 ac_datarootdir_hack=; ac_datarootdir_seen=
15148 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15149 *datarootdir*) ac_datarootdir_seen=yes;;
15150 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15152 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15155 ac_datarootdir_hack='
15156 s&@datadir@&$datadir&g
15157 s&@docdir@&$docdir&g
15158 s&@infodir@&$infodir&g
15159 s&@localedir@&$localedir&g
15160 s&@mandir@&$mandir&g
15161 s&\\\${datarootdir}&$datarootdir&g' ;;
15165 # Neutralize VPATH when `$srcdir' = `.'.
15166 # Shell code in configure.ac might set extrasub.
15167 # FIXME: do we really want to maintain this feature?
15168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15169 ac_sed_extra="$ac_vpsub
15172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15174 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15175 s|@configure_input@|$ac_sed_conf_input|;t t
15176 s&@top_builddir@&$ac_top_builddir_sub&;t t
15177 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15178 s&@srcdir@&$ac_srcdir&;t t
15179 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15180 s&@top_srcdir@&$ac_top_srcdir&;t t
15181 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15182 s&@builddir@&$ac_builddir&;t t
15183 s&@abs_builddir@&$ac_abs_builddir&;t t
15184 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15185 s&@INSTALL@&$ac_INSTALL&;t t
15186 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15187 $ac_datarootdir_hack
15189 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15190 || as_fn_error "could not create $ac_file" "$LINENO" 5
15192 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15193 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15194 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15196 which seems to be undefined. Please make sure it is defined." >&5
15197 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15198 which seems to be undefined. Please make sure it is defined." >&2;}
15202 -) cat "$tmp/out" && rm -f "$tmp/out";;
15203 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15205 || as_fn_error "could not create $ac_file" "$LINENO" 5
15211 if test x"$ac_file" != x-; then
15213 $as_echo "/* $configure_input */" \
15214 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15215 } >"$tmp/config.h" \
15216 || as_fn_error "could not create $ac_file" "$LINENO" 5
15217 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15219 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15222 mv "$tmp/config.h" "$ac_file" \
15223 || as_fn_error "could not create $ac_file" "$LINENO" 5
15226 $as_echo "/* $configure_input */" \
15227 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15228 || as_fn_error "could not create -" "$LINENO" 5
15230 # Compute "$ac_file"'s index in $config_headers.
15233 for _am_header in $config_headers :; do
15234 case $_am_header in
15235 $_am_arg | $_am_arg:* )
15238 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15241 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15242 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15243 X"$_am_arg" : 'X\(//\)[^/]' \| \
15244 X"$_am_arg" : 'X\(//\)$' \| \
15245 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15246 $as_echo X"$_am_arg" |
15247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15251 /^X\(\/\/\)[^/].*/{
15263 s/.*/./; q'`/stamp-h$_am_stamp_count
15266 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15267 $as_echo "$as_me: executing $ac_file commands" >&6;}
15272 case $ac_file$ac_mode in
15273 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
15274 # are listed without --file. Let's play safe and only enable the eval
15275 # if we detect the quoting.
15276 case $CONFIG_FILES in
15277 *\'*) eval set x "$CONFIG_FILES" ;;
15278 *) set x $CONFIG_FILES ;;
15283 # Strip MF so we end up with the name of the file.
15284 mf=`echo "$mf" | sed -e 's/:.*$//'`
15285 # Check whether this is an Automake generated Makefile or not.
15286 # We used to match only the files named `Makefile.in', but
15287 # some people rename them; so instead we look at the file content.
15288 # Grep'ing the first line is not enough: some people post-process
15289 # each Makefile.in and add a new line on top of each file to say so.
15290 # Grep'ing the whole file is not good either: AIX grep has a line
15291 # limit of 2048, but all sed's we know have understand at least 4000.
15292 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15293 dirpart=`$as_dirname -- "$mf" ||
15294 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15295 X"$mf" : 'X\(//\)[^/]' \| \
15296 X"$mf" : 'X\(//\)$' \| \
15297 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15303 /^X\(\/\/\)[^/].*/{
15319 # Extract the definition of DEPDIR, am__include, and am__quote
15320 # from the Makefile without running `make'.
15321 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15322 test -z "$DEPDIR" && continue
15323 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15324 test -z "am__include" && continue
15325 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15326 # When using ansi2knr, U may be empty or an underscore; expand it
15327 U=`sed -n 's/^U = //p' < "$mf"`
15328 # Find all dependency output files, they are included files with
15329 # $(DEPDIR) in their names. We invoke sed twice because it is the
15330 # simplest approach to changing $(DEPDIR) to its actual value in the
15332 for file in `sed -n "
15333 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15334 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15335 # Make sure the directory exists.
15336 test -f "$dirpart/$file" && continue
15337 fdir=`$as_dirname -- "$file" ||
15338 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15339 X"$file" : 'X\(//\)[^/]' \| \
15340 X"$file" : 'X\(//\)$' \| \
15341 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15342 $as_echo X"$file" |
15343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15347 /^X\(\/\/\)[^/].*/{
15360 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15361 # echo "creating $dirpart/$file"
15362 echo '# dummy' > "$dirpart/$file"
15368 # See if we are running on zsh, and set the options which allow our
15369 # commands through without removal of \ escapes.
15370 if test -n "${ZSH_VERSION+set}" ; then
15371 setopt NO_GLOB_SUBST
15374 cfgfile="${ofile}T"
15375 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15378 cat <<_LT_EOF >> "$cfgfile"
15381 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15382 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15383 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15384 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15386 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15387 # 2006, 2007, 2008 Free Software Foundation, Inc.
15388 # Written by Gordon Matzigkeit, 1996
15390 # This file is part of GNU Libtool.
15392 # GNU Libtool is free software; you can redistribute it and/or
15393 # modify it under the terms of the GNU General Public License as
15394 # published by the Free Software Foundation; either version 2 of
15395 # the License, or (at your option) any later version.
15397 # As a special exception to the GNU General Public License,
15398 # if you distribute this file as part of a program or library that
15399 # is built using GNU Libtool, you may include this file under the
15400 # same distribution terms that you use for the rest of that program.
15402 # GNU Libtool is distributed in the hope that it will be useful,
15403 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15404 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15405 # GNU General Public License for more details.
15407 # You should have received a copy of the GNU General Public License
15408 # along with GNU Libtool; see the file COPYING. If not, a copy
15409 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15410 # obtained by writing to the Free Software Foundation, Inc.,
15411 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15414 # The names of the tagged configurations supported by this script.
15415 available_tags="RC "
15417 # ### BEGIN LIBTOOL CONFIG
15419 # Which release of libtool.m4 was used?
15420 macro_version=$macro_version
15421 macro_revision=$macro_revision
15423 # Assembler program.
15426 # DLL creation program.
15429 # Object dumper program.
15432 # Whether or not to build static libraries.
15433 build_old_libs=$enable_static
15435 # Whether or not to build shared libraries.
15436 build_libtool_libs=$enable_shared
15438 # What type of objects to build.
15441 # Whether or not to optimize for fast installation.
15442 fast_install=$enable_fast_install
15445 host_alias=$host_alias
15449 # The build system.
15450 build_alias=$build_alias
15454 # A sed program that does not truncate output.
15457 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15458 Xsed="\$SED -e 1s/^X//"
15460 # A grep program that handles long lines.
15466 # A literal string matcher.
15469 # A BSD- or MS-compatible name lister.
15472 # Whether we need soft or hard links.
15475 # What is the maximum length of a command?
15476 max_cmd_len=$max_cmd_len
15478 # Object file suffix (normally "o").
15481 # Executable file suffix (normally "").
15484 # whether the shell understands "unset".
15487 # turn spaces into newlines.
15490 # turn newlines into spaces.
15493 # How to create reloadable object files.
15494 reload_flag=$lt_reload_flag
15495 reload_cmds=$lt_reload_cmds
15497 # Method to check whether dependent libraries are shared objects.
15498 deplibs_check_method=$lt_deplibs_check_method
15500 # Command to use when deplibs_check_method == "file_magic".
15501 file_magic_cmd=$lt_file_magic_cmd
15505 AR_FLAGS=$lt_AR_FLAGS
15507 # A symbol stripping program.
15510 # Commands used to install an old-style archive.
15512 old_postinstall_cmds=$lt_old_postinstall_cmds
15513 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15518 # LTCC compiler flags.
15519 LTCFLAGS=$lt_CFLAGS
15521 # Take the output of nm and produce a listing of raw symbols and C names.
15522 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15524 # Transform the output of nm in a proper C declaration.
15525 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15527 # Transform the output of nm in a C name address pair.
15528 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15530 # Transform the output of nm in a C name address pair when lib prefix is needed.
15531 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15533 # The name of the directory that contains temporary libtool files.
15536 # Shell to use when invoking shell scripts.
15539 # An echo program that does not interpret backslashes.
15542 # Used to examine libraries when file_magic_cmd begins with "file".
15543 MAGIC_CMD=$MAGIC_CMD
15545 # Must we lock files when doing compilation?
15546 need_locks=$lt_need_locks
15548 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15549 DSYMUTIL=$lt_DSYMUTIL
15551 # Tool to change global to local symbols on Mac OS X.
15554 # Tool to manipulate fat objects and archives on Mac OS X.
15557 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15560 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15561 OTOOL64=$lt_OTOOL64
15563 # Old archive suffix (normally "a").
15566 # Shared library suffix (normally ".so").
15567 shrext_cmds=$lt_shrext_cmds
15569 # The commands to extract the exported symbol list from a shared archive.
15570 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15572 # Variables whose values should be saved in libtool wrapper scripts and
15573 # restored at link time.
15574 variables_saved_for_relink=$lt_variables_saved_for_relink
15576 # Do we need the "lib" prefix for modules?
15577 need_lib_prefix=$need_lib_prefix
15579 # Do we need a version for libraries?
15580 need_version=$need_version
15582 # Library versioning type.
15583 version_type=$version_type
15585 # Shared library runtime path variable.
15586 runpath_var=$runpath_var
15588 # Shared library path variable.
15589 shlibpath_var=$shlibpath_var
15591 # Is shlibpath searched before the hard-coded library search path?
15592 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15594 # Format of library name prefix.
15595 libname_spec=$lt_libname_spec
15597 # List of archive names. First name is the real one, the rest are links.
15598 # The last name is the one that the linker finds with -lNAME
15599 library_names_spec=$lt_library_names_spec
15601 # The coded name of the library, if different from the real name.
15602 soname_spec=$lt_soname_spec
15604 # Command to use after installation of a shared archive.
15605 postinstall_cmds=$lt_postinstall_cmds
15607 # Command to use after uninstallation of a shared archive.
15608 postuninstall_cmds=$lt_postuninstall_cmds
15610 # Commands used to finish a libtool library installation in a directory.
15611 finish_cmds=$lt_finish_cmds
15613 # As "finish_cmds", except a single script fragment to be evaled but
15615 finish_eval=$lt_finish_eval
15617 # Whether we should hardcode library paths into libraries.
15618 hardcode_into_libs=$hardcode_into_libs
15620 # Compile-time system search path for libraries.
15621 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15623 # Run-time system search path for libraries.
15624 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15626 # Whether dlopen is supported.
15627 dlopen_support=$enable_dlopen
15629 # Whether dlopen of programs is supported.
15630 dlopen_self=$enable_dlopen_self
15632 # Whether dlopen of statically linked programs is supported.
15633 dlopen_self_static=$enable_dlopen_self_static
15635 # Commands to strip libraries.
15636 old_striplib=$lt_old_striplib
15637 striplib=$lt_striplib
15640 # The linker used to build libraries.
15643 # Commands used to build an old-style archive.
15644 old_archive_cmds=$lt_old_archive_cmds
15646 # A language specific compiler.
15649 # Is the compiler the GNU compiler?
15652 # Compiler flag to turn off builtin functions.
15653 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15655 # How to pass a linker flag through the compiler.
15656 wl=$lt_lt_prog_compiler_wl
15658 # Additional compiler flags for building library objects.
15659 pic_flag=$lt_lt_prog_compiler_pic
15661 # Compiler flag to prevent dynamic linking.
15662 link_static_flag=$lt_lt_prog_compiler_static
15664 # Does compiler simultaneously support -c and -o options?
15665 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15667 # Whether or not to add -lc for building shared libraries.
15668 build_libtool_need_lc=$archive_cmds_need_lc
15670 # Whether or not to disallow shared libs when runtime libs are static.
15671 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15673 # Compiler flag to allow reflexive dlopens.
15674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15676 # Compiler flag to generate shared objects directly from archives.
15677 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15679 # Whether the compiler copes with passing no objects directly.
15680 compiler_needs_object=$lt_compiler_needs_object
15682 # Create an old-style archive from a shared archive.
15683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15685 # Create a temporary old-style archive to link instead of a shared archive.
15686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15688 # Commands used to build a shared archive.
15689 archive_cmds=$lt_archive_cmds
15690 archive_expsym_cmds=$lt_archive_expsym_cmds
15692 # Commands used to build a loadable module if different from building
15693 # a shared archive.
15694 module_cmds=$lt_module_cmds
15695 module_expsym_cmds=$lt_module_expsym_cmds
15697 # Whether we are building with GNU ld or not.
15698 with_gnu_ld=$lt_with_gnu_ld
15700 # Flag that allows shared libraries with undefined symbols to be built.
15701 allow_undefined_flag=$lt_allow_undefined_flag
15703 # Flag that enforces no undefined symbols.
15704 no_undefined_flag=$lt_no_undefined_flag
15706 # Flag to hardcode \$libdir into a binary during linking.
15707 # This must work even if \$libdir does not exist
15708 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15710 # If ld is used when linking, flag to hardcode \$libdir into a binary
15711 # during linking. This must work even if \$libdir does not exist.
15712 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15714 # Whether we need a single "-rpath" flag with a separated argument.
15715 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15717 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15718 # DIR into the resulting binary.
15719 hardcode_direct=$hardcode_direct
15721 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15722 # DIR into the resulting binary and the resulting library dependency is
15723 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15724 # library is relocated.
15725 hardcode_direct_absolute=$hardcode_direct_absolute
15727 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15728 # into the resulting binary.
15729 hardcode_minus_L=$hardcode_minus_L
15731 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15732 # into the resulting binary.
15733 hardcode_shlibpath_var=$hardcode_shlibpath_var
15735 # Set to "yes" if building a shared library automatically hardcodes DIR
15736 # into the library and all subsequent libraries and executables linked
15738 hardcode_automatic=$hardcode_automatic
15740 # Set to yes if linker adds runtime paths of dependent libraries
15741 # to runtime path list.
15742 inherit_rpath=$inherit_rpath
15744 # Whether libtool must link a program against all its dependency libraries.
15745 link_all_deplibs=$link_all_deplibs
15747 # Fix the shell variable \$srcfile for the compiler.
15748 fix_srcfile_path=$lt_fix_srcfile_path
15750 # Set to "yes" if exported symbols are required.
15751 always_export_symbols=$always_export_symbols
15753 # The commands to list exported symbols.
15754 export_symbols_cmds=$lt_export_symbols_cmds
15756 # Symbols that should not be listed in the preloaded symbols.
15757 exclude_expsyms=$lt_exclude_expsyms
15759 # Symbols that must always be exported.
15760 include_expsyms=$lt_include_expsyms
15762 # Commands necessary for linking programs (against libraries) with templates.
15763 prelink_cmds=$lt_prelink_cmds
15765 # Specify filename containing input files.
15766 file_list_spec=$lt_file_list_spec
15768 # How to hardcode a shared library path into an executable.
15769 hardcode_action=$hardcode_action
15771 # ### END LIBTOOL CONFIG
15777 cat <<\_LT_EOF >> "$cfgfile"
15778 # AIX sometimes has problems with the GCC collect2 program. For some
15779 # reason, if we set the COLLECT_NAMES environment variable, the problems
15780 # vanish in a puff of smoke.
15781 if test "X${COLLECT_NAMES+set}" != Xset; then
15783 export COLLECT_NAMES
15790 ltmain="$ac_aux_dir/ltmain.sh"
15793 # We use sed instead of cat because bash on DJGPP gets confused if
15794 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15795 # text mode, it properly converts lines to CR/LF. This bash problem
15796 # is reportedly fixed, but why not run on old versions too?
15797 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15798 || (rm -f "$cfgfile"; exit 1)
15802 cat << \_LT_EOF >> "$cfgfile"
15804 # func_dirname file append nondir_replacement
15805 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15806 # otherwise set result to NONDIR_REPLACEMENT.
15810 */*) func_dirname_result="${1%/*}${2}" ;;
15811 * ) func_dirname_result="${3}" ;;
15815 # func_basename file
15818 func_basename_result="${1##*/}"
15821 # func_dirname_and_basename file append nondir_replacement
15822 # perform func_basename and func_dirname in a single function
15824 # dirname: Compute the dirname of FILE. If nonempty,
15825 # add APPEND to the result, otherwise set result
15826 # to NONDIR_REPLACEMENT.
15827 # value returned in "$func_dirname_result"
15828 # basename: Compute filename of FILE.
15829 # value retuned in "$func_basename_result"
15830 # Implementation must be kept synchronized with func_dirname
15831 # and func_basename. For efficiency, we do not delegate to
15832 # those functions but instead duplicate the functionality here.
15833 func_dirname_and_basename ()
15836 */*) func_dirname_result="${1%/*}${2}" ;;
15837 * ) func_dirname_result="${3}" ;;
15839 func_basename_result="${1##*/}"
15842 # func_stripname prefix suffix name
15843 # strip PREFIX and SUFFIX off of NAME.
15844 # PREFIX and SUFFIX must not contain globbing or regex special
15845 # characters, hashes, percent signs, but SUFFIX may contain a leading
15846 # dot (in which case that matches only a dot).
15849 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15850 # positional parameters, so assign one to ordinary parameter first.
15851 func_stripname_result=${3}
15852 func_stripname_result=${func_stripname_result#"${1}"}
15853 func_stripname_result=${func_stripname_result%"${2}"}
15859 func_opt_split_opt=${1%%=*}
15860 func_opt_split_arg=${1#*=}
15867 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15868 *) func_lo2o_result=${1} ;;
15872 # func_xform libobj-or-source
15875 func_xform_result=${1%.*}.lo
15878 # func_arith arithmetic-term...
15881 func_arith_result=$(( $* ))
15885 # STRING may not start with a hyphen.
15888 func_len_result=${#1}
15893 *) # Bourne compatible functions.
15894 cat << \_LT_EOF >> "$cfgfile"
15896 # func_dirname file append nondir_replacement
15897 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15898 # otherwise set result to NONDIR_REPLACEMENT.
15901 # Extract subdirectory from the argument.
15902 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15903 if test "X$func_dirname_result" = "X${1}"; then
15904 func_dirname_result="${3}"
15906 func_dirname_result="$func_dirname_result${2}"
15910 # func_basename file
15913 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15917 # func_stripname prefix suffix name
15918 # strip PREFIX and SUFFIX off of NAME.
15919 # PREFIX and SUFFIX must not contain globbing or regex special
15920 # characters, hashes, percent signs, but SUFFIX may contain a leading
15921 # dot (in which case that matches only a dot).
15922 # func_strip_suffix prefix name
15926 .*) func_stripname_result=`$ECHO "X${3}" \
15927 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15928 *) func_stripname_result=`$ECHO "X${3}" \
15929 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15934 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15935 my_sed_long_arg='1s/^-[^=]*=//'
15940 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15941 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15947 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15950 # func_xform libobj-or-source
15953 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15956 # func_arith arithmetic-term...
15959 func_arith_result=`expr "$@"`
15963 # STRING may not start with a hyphen.
15966 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15972 case $lt_shell_append in
15974 cat << \_LT_EOF >> "$cfgfile"
15976 # func_append var value
15977 # Append VALUE to the end of shell variable VAR.
15985 cat << \_LT_EOF >> "$cfgfile"
15987 # func_append var value
15988 # Append VALUE to the end of shell variable VAR.
15999 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16000 || (rm -f "$cfgfile"; exit 1)
16002 mv -f "$cfgfile" "$ofile" ||
16003 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16007 cat <<_LT_EOF >> "$ofile"
16009 # ### BEGIN LIBTOOL TAG CONFIG: RC
16011 # The linker used to build libraries.
16014 # Commands used to build an old-style archive.
16015 old_archive_cmds=$lt_old_archive_cmds_RC
16017 # A language specific compiler.
16020 # Is the compiler the GNU compiler?
16023 # Compiler flag to turn off builtin functions.
16024 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
16026 # How to pass a linker flag through the compiler.
16027 wl=$lt_lt_prog_compiler_wl_RC
16029 # Additional compiler flags for building library objects.
16030 pic_flag=$lt_lt_prog_compiler_pic_RC
16032 # Compiler flag to prevent dynamic linking.
16033 link_static_flag=$lt_lt_prog_compiler_static_RC
16035 # Does compiler simultaneously support -c and -o options?
16036 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
16038 # Whether or not to add -lc for building shared libraries.
16039 build_libtool_need_lc=$archive_cmds_need_lc_RC
16041 # Whether or not to disallow shared libs when runtime libs are static.
16042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
16044 # Compiler flag to allow reflexive dlopens.
16045 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
16047 # Compiler flag to generate shared objects directly from archives.
16048 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
16050 # Whether the compiler copes with passing no objects directly.
16051 compiler_needs_object=$lt_compiler_needs_object_RC
16053 # Create an old-style archive from a shared archive.
16054 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
16056 # Create a temporary old-style archive to link instead of a shared archive.
16057 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
16059 # Commands used to build a shared archive.
16060 archive_cmds=$lt_archive_cmds_RC
16061 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
16063 # Commands used to build a loadable module if different from building
16064 # a shared archive.
16065 module_cmds=$lt_module_cmds_RC
16066 module_expsym_cmds=$lt_module_expsym_cmds_RC
16068 # Whether we are building with GNU ld or not.
16069 with_gnu_ld=$lt_with_gnu_ld_RC
16071 # Flag that allows shared libraries with undefined symbols to be built.
16072 allow_undefined_flag=$lt_allow_undefined_flag_RC
16074 # Flag that enforces no undefined symbols.
16075 no_undefined_flag=$lt_no_undefined_flag_RC
16077 # Flag to hardcode \$libdir into a binary during linking.
16078 # This must work even if \$libdir does not exist
16079 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
16081 # If ld is used when linking, flag to hardcode \$libdir into a binary
16082 # during linking. This must work even if \$libdir does not exist.
16083 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
16085 # Whether we need a single "-rpath" flag with a separated argument.
16086 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
16088 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16089 # DIR into the resulting binary.
16090 hardcode_direct=$hardcode_direct_RC
16092 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16093 # DIR into the resulting binary and the resulting library dependency is
16094 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16095 # library is relocated.
16096 hardcode_direct_absolute=$hardcode_direct_absolute_RC
16098 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16099 # into the resulting binary.
16100 hardcode_minus_L=$hardcode_minus_L_RC
16102 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16103 # into the resulting binary.
16104 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
16106 # Set to "yes" if building a shared library automatically hardcodes DIR
16107 # into the library and all subsequent libraries and executables linked
16109 hardcode_automatic=$hardcode_automatic_RC
16111 # Set to yes if linker adds runtime paths of dependent libraries
16112 # to runtime path list.
16113 inherit_rpath=$inherit_rpath_RC
16115 # Whether libtool must link a program against all its dependency libraries.
16116 link_all_deplibs=$link_all_deplibs_RC
16118 # Fix the shell variable \$srcfile for the compiler.
16119 fix_srcfile_path=$lt_fix_srcfile_path_RC
16121 # Set to "yes" if exported symbols are required.
16122 always_export_symbols=$always_export_symbols_RC
16124 # The commands to list exported symbols.
16125 export_symbols_cmds=$lt_export_symbols_cmds_RC
16127 # Symbols that should not be listed in the preloaded symbols.
16128 exclude_expsyms=$lt_exclude_expsyms_RC
16130 # Symbols that must always be exported.
16131 include_expsyms=$lt_include_expsyms_RC
16133 # Commands necessary for linking programs (against libraries) with templates.
16134 prelink_cmds=$lt_prelink_cmds_RC
16136 # Specify filename containing input files.
16137 file_list_spec=$lt_file_list_spec_RC
16139 # How to hardcode a shared library path into an executable.
16140 hardcode_action=$hardcode_action_RC
16142 # ### END LIBTOOL TAG CONFIG: RC
16146 "po-directories":C)
16147 for ac_file in $CONFIG_FILES; do
16148 # Support "outfile[:infile[:infile...]]"
16150 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16152 # PO directories have a Makefile.in generated from Makefile.in.in.
16153 case "$ac_file" in */Makefile.in)
16154 # Adjust a relative srcdir.
16155 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16156 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16157 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16158 # In autoconf-2.13 it is called $ac_given_srcdir.
16159 # In autoconf-2.50 it is called $srcdir.
16160 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16161 case "$ac_given_srcdir" in
16162 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16163 /*) top_srcdir="$ac_given_srcdir" ;;
16164 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16166 # Treat a directory as a PO directory if and only if it has a
16167 # POTFILES.in file. This allows packages to have multiple PO
16168 # directories under different names or in different locations.
16169 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16170 rm -f "$ac_dir/POTFILES"
16171 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16172 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16173 POMAKEFILEDEPS="POTFILES.in"
16174 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16175 # on $ac_dir but don't depend on user-specified configuration
16177 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16178 # The LINGUAS file contains the set of available languages.
16179 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16180 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16182 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16183 # Hide the ALL_LINGUAS assigment from automake < 1.5.
16184 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16185 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16187 # The set of available languages was given in configure.in.
16188 # Hide the ALL_LINGUAS assigment from automake < 1.5.
16189 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16192 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16193 # Compute UPDATEPOFILES
16194 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16195 # Compute DUMMYPOFILES
16196 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16198 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16199 case "$ac_given_srcdir" in
16201 *) srcdirpre='$(srcdir)/' ;;
16207 for lang in $ALL_LINGUAS; do
16208 POFILES="$POFILES $srcdirpre$lang.po"
16209 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16210 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16211 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16213 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16214 # environment variable.
16216 if test -n "$ALL_LINGUAS"; then
16217 for presentlang in $ALL_LINGUAS; do
16219 if test "%UNSET%" != "$LINGUAS"; then
16220 desiredlanguages="$LINGUAS"
16222 desiredlanguages="$ALL_LINGUAS"
16224 for desiredlang in $desiredlanguages; do
16225 # Use the presentlang catalog if desiredlang is
16226 # a. equal to presentlang, or
16227 # b. a variant of presentlang (because in this case,
16228 # presentlang can be used as a fallback for messages
16229 # which are not translated in the desiredlang catalog).
16230 case "$desiredlang" in
16231 "$presentlang"*) useit=yes;;
16234 if test $useit = yes; then
16235 INST_LINGUAS="$INST_LINGUAS $presentlang"
16240 if test -n "$INST_LINGUAS"; then
16241 for lang in $INST_LINGUAS; do
16242 CATALOGS="$CATALOGS $lang.gmo"
16245 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16246 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16247 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16248 if test -f "$f"; then
16250 *.orig | *.bak | *~) ;;
16251 *) cat "$f" >> "$ac_dir/Makefile" ;;
16259 "src/gpg-error-config":F) chmod +x src/gpg-error-config ;;
16267 ac_clean_files=$ac_clean_files_save
16269 test $ac_write_fail = 0 ||
16270 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16273 # configure is writing to config.log, and then calls config.status.
16274 # config.status does its own redirection, appending to config.log.
16275 # Unfortunately, on DOS this fails, as config.log is still kept open
16276 # by configure, so config.status won't be able to write to it; its
16277 # output is simply discarded. So we exec the FD to /dev/null,
16278 # effectively closing config.log, so it can be properly (re)opened and
16279 # appended to by config.status. When coming back to configure, we
16280 # need to make the FD available again.
16281 if test "$no_create" != yes; then
16283 ac_config_status_args=
16284 test "$silent" = yes &&
16285 ac_config_status_args="$ac_config_status_args --quiet"
16287 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16289 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16290 # would make configure fail if this is the last instruction.
16291 $ac_cs_success || as_fn_exit $?
16293 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16295 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16300 Libgpg-error v${VERSION} has been configured as follows: