2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libmm-fileinfo 0.0.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix=/usr/local
713 ac_config_libobj_dir=.
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
722 PACKAGE_NAME='libmm-fileinfo'
723 PACKAGE_TARNAME='libmm-fileinfo'
724 PACKAGE_VERSION='0.0.1'
725 PACKAGE_STRING='libmm-fileinfo 0.0.1'
728 ac_unique_file="mm_file.c"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
816 INSTALL_STRIP_PROGRAM
893 ac_precious_vars='build_alias
921 # Initialize some variables set by options.
923 ac_init_version=false
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
933 program_transform_name=s,x,x,
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 includedir='${prefix}/include'
956 oldincludedir='/usr/include'
957 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
958 infodir='${datarootdir}/info'
963 libdir='${exec_prefix}/lib'
964 localedir='${datarootdir}/locale'
965 mandir='${datarootdir}/man'
971 # If the previous option needs an argument, assign it.
972 if test -n "$ac_prev"; then
973 eval $ac_prev=\$ac_option
979 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 # Accept the important Cygnus configure options, so we can diagnose typos.
985 case $ac_dashdash$ac_option in
989 -bindir | --bindir | --bindi | --bind | --bin | --bi)
991 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994 -build | --build | --buil | --bui | --bu)
995 ac_prev=build_alias ;;
996 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997 build_alias=$ac_optarg ;;
999 -cache-file | --cache-file | --cache-fil | --cache-fi \
1000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001 ac_prev=cache_file ;;
1002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004 cache_file=$ac_optarg ;;
1006 --config-cache | -C)
1007 cache_file=config.cache ;;
1009 -datadir | --datadir | --datadi | --datad)
1011 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012 datadir=$ac_optarg ;;
1014 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015 | --dataroo | --dataro | --datar)
1016 ac_prev=datarootdir ;;
1017 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019 datarootdir=$ac_optarg ;;
1021 -disable-* | --disable-*)
1022 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028 eval enable_$ac_feature=no ;;
1030 -docdir | --docdir | --docdi | --doc | --do)
1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033 docdir=$ac_optarg ;;
1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038 dvidir=$ac_optarg ;;
1040 -enable-* | --enable-*)
1041 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1044 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1045 { (exit 1); exit 1; }; }
1046 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1047 eval enable_$ac_feature=\$ac_optarg ;;
1049 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051 | --exec | --exe | --ex)
1052 ac_prev=exec_prefix ;;
1053 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055 | --exec=* | --exe=* | --ex=*)
1056 exec_prefix=$ac_optarg ;;
1058 -gas | --gas | --ga | --g)
1059 # Obsolete; use --with-gas.
1062 -help | --help | --hel | --he | -h)
1063 ac_init_help=long ;;
1064 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065 ac_init_help=recursive ;;
1066 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067 ac_init_help=short ;;
1069 -host | --host | --hos | --ho)
1070 ac_prev=host_alias ;;
1071 -host=* | --host=* | --hos=* | --ho=*)
1072 host_alias=$ac_optarg ;;
1074 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 htmldir=$ac_optarg ;;
1080 -includedir | --includedir | --includedi | --included | --include \
1081 | --includ | --inclu | --incl | --inc)
1082 ac_prev=includedir ;;
1083 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084 | --includ=* | --inclu=* | --incl=* | --inc=*)
1085 includedir=$ac_optarg ;;
1087 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090 infodir=$ac_optarg ;;
1092 -libdir | --libdir | --libdi | --libd)
1094 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095 libdir=$ac_optarg ;;
1097 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098 | --libexe | --libex | --libe)
1099 ac_prev=libexecdir ;;
1100 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101 | --libexe=* | --libex=* | --libe=*)
1102 libexecdir=$ac_optarg ;;
1104 -localedir | --localedir | --localedi | --localed | --locale)
1105 ac_prev=localedir ;;
1106 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107 localedir=$ac_optarg ;;
1109 -localstatedir | --localstatedir | --localstatedi | --localstated \
1110 | --localstate | --localstat | --localsta | --localst | --locals)
1111 ac_prev=localstatedir ;;
1112 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114 localstatedir=$ac_optarg ;;
1116 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119 mandir=$ac_optarg ;;
1121 -nfp | --nfp | --nf)
1122 # Obsolete; use --without-fp.
1125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126 | --no-cr | --no-c | -n)
1129 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135 | --oldin | --oldi | --old | --ol | --o)
1136 ac_prev=oldincludedir ;;
1137 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140 oldincludedir=$ac_optarg ;;
1142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145 prefix=$ac_optarg ;;
1147 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148 | --program-pre | --program-pr | --program-p)
1149 ac_prev=program_prefix ;;
1150 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152 program_prefix=$ac_optarg ;;
1154 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155 | --program-suf | --program-su | --program-s)
1156 ac_prev=program_suffix ;;
1157 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159 program_suffix=$ac_optarg ;;
1161 -program-transform-name | --program-transform-name \
1162 | --program-transform-nam | --program-transform-na \
1163 | --program-transform-n | --program-transform- \
1164 | --program-transform | --program-transfor \
1165 | --program-transfo | --program-transf \
1166 | --program-trans | --program-tran \
1167 | --progr-tra | --program-tr | --program-t)
1168 ac_prev=program_transform_name ;;
1169 -program-transform-name=* | --program-transform-name=* \
1170 | --program-transform-nam=* | --program-transform-na=* \
1171 | --program-transform-n=* | --program-transform-=* \
1172 | --program-transform=* | --program-transfor=* \
1173 | --program-transfo=* | --program-transf=* \
1174 | --program-trans=* | --program-tran=* \
1175 | --progr-tra=* | --program-tr=* | --program-t=*)
1176 program_transform_name=$ac_optarg ;;
1178 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181 pdfdir=$ac_optarg ;;
1183 -psdir | --psdir | --psdi | --psd | --ps)
1185 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189 | -silent | --silent | --silen | --sile | --sil)
1192 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196 sbindir=$ac_optarg ;;
1198 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200 | --sharedst | --shareds | --shared | --share | --shar \
1202 ac_prev=sharedstatedir ;;
1203 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207 sharedstatedir=$ac_optarg ;;
1209 -site | --site | --sit)
1211 -site=* | --site=* | --sit=*)
1214 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217 srcdir=$ac_optarg ;;
1219 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220 | --syscon | --sysco | --sysc | --sys | --sy)
1221 ac_prev=sysconfdir ;;
1222 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224 sysconfdir=$ac_optarg ;;
1226 -target | --target | --targe | --targ | --tar | --ta | --t)
1227 ac_prev=target_alias ;;
1228 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229 target_alias=$ac_optarg ;;
1231 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234 -version | --version | --versio | --versi | --vers | -V)
1235 ac_init_version=: ;;
1238 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 { echo "$as_me: error: invalid package name: $ac_package" >&2
1242 { (exit 1); exit 1; }; }
1243 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1244 eval with_$ac_package=\$ac_optarg ;;
1246 -without-* | --without-*)
1247 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 { echo "$as_me: error: invalid package name: $ac_package" >&2
1251 { (exit 1); exit 1; }; }
1252 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253 eval with_$ac_package=no ;;
1256 # Obsolete; use --with-x.
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264 x_includes=$ac_optarg ;;
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271 x_libraries=$ac_optarg ;;
1273 -*) { echo "$as_me: error: unrecognized option: $ac_option
1274 Try \`$0 --help' for more information." >&2
1275 { (exit 1); exit 1; }; }
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1282 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1283 { (exit 1); exit 1; }; }
1284 eval $ac_envvar=\$ac_optarg
1285 export $ac_envvar ;;
1288 # FIXME: should be removed in autoconf 3.0.
1289 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1298 if test -n "$ac_prev"; then
1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300 { echo "$as_me: error: missing argument to $ac_option" >&2
1301 { (exit 1); exit 1; }; }
1304 # Be sure to have absolute directory names.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1310 eval ac_val=\$$ac_var
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1316 { (exit 1); exit 1; }; }
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1324 target=$target_alias
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328 if test "x$build_alias" = x; then
1329 cross_compiling=maybe
1330 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1331 If a cross compiler is detected then cross compile mode will be used." >&2
1332 elif test "x$build_alias" != "x$host_alias"; then
1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340 test "$silent" = yes && exec 6>/dev/null
1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di=`ls -di .` &&
1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346 { echo "$as_me: error: Working directory cannot be determined" >&2
1347 { (exit 1); exit 1; }; }
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 { echo "$as_me: error: pwd does not report name of working directory" >&2
1350 { (exit 1); exit 1; }; }
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$0" ||
1358 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$0" : 'X\(//\)[^/]' \| \
1360 X"$0" : 'X\(//\)$' \| \
1361 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1385 ac_srcdir_defaulted=no
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1390 { (exit 1); exit 1; }; }
1392 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1395 { (exit 1); exit 1; }; }
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 for ac_var in $ac_precious_vars; do
1408 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_env_${ac_var}_value=\$${ac_var}
1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 # Report the --help message.
1417 if test "$ac_init_help" = "long"; then
1418 # Omit some internal or obsolete options to make the list less imposing.
1419 # This message is too long to be a string in the A/UX 3.1 sh.
1421 \`configure' configures libmm-fileinfo 0.0.1 to adapt to many kinds of systems.
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE. See below for descriptions of some of the useful variables.
1428 Defaults for the options are specified in brackets.
1431 -h, --help display this help and exit
1432 --help=short display options specific to this package
1433 --help=recursive display the short help of all the included packages
1434 -V, --version display version information and exit
1435 -q, --quiet, --silent do not print \`checking...' messages
1436 --cache-file=FILE cache test results in FILE [disabled]
1437 -C, --config-cache alias for \`--cache-file=config.cache'
1438 -n, --no-create do not create output files
1439 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1441 Installation directories:
1442 --prefix=PREFIX install architecture-independent files in PREFIX
1443 [$ac_default_prefix]
1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1452 For better control, use the options below.
1454 Fine tuning of the installation directories:
1455 --bindir=DIR user executables [EPREFIX/bin]
1456 --sbindir=DIR system admin executables [EPREFIX/sbin]
1457 --libexecdir=DIR program executables [EPREFIX/libexec]
1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1461 --libdir=DIR object code libraries [EPREFIX/lib]
1462 --includedir=DIR C header files [PREFIX/include]
1463 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1466 --infodir=DIR info documentation [DATAROOTDIR/info]
1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1468 --mandir=DIR man documentation [DATAROOTDIR/man]
1469 --docdir=DIR documentation root [DATAROOTDIR/doc/libmm-fileinfo]
1470 --htmldir=DIR html documentation [DOCDIR]
1471 --dvidir=DIR dvi documentation [DOCDIR]
1472 --pdfdir=DIR pdf documentation [DOCDIR]
1473 --psdir=DIR ps documentation [DOCDIR]
1479 --program-prefix=PREFIX prepend PREFIX to installed program names
1480 --program-suffix=SUFFIX append SUFFIX to installed program names
1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1484 --build=BUILD configure for building on BUILD [guessed]
1485 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 if test -n "$ac_init_help"; then
1490 case $ac_init_help in
1491 short | recursive ) echo "Configuration of libmm-fileinfo 0.0.1:";;
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1498 --disable-dependency-tracking speeds up one-time build
1499 --enable-dependency-tracking do not reject slow dependency extractors
1500 --enable-shared[=PKGS] build shared libraries [default=yes]
1501 --enable-static[=PKGS] build static libraries [default=yes]
1502 --enable-fast-install[=PKGS]
1503 optimize for fast installation [default=yes]
1504 --disable-libtool-lock avoid locking (might break parallel builds)
1505 --enable-drm using drm
1506 --enable-testmode using testmode
1507 --enable-dump using dump
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-pic try to use only PIC/non-PIC objects [default=use
1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1516 Some influential environment variables:
1517 CC C compiler command
1518 CFLAGS C compiler flags
1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1520 nonstandard directory <lib dir>
1521 LIBS libraries to pass to the linker, e.g. -l<library>
1522 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1523 you have headers in a nonstandard directory <include dir>
1525 PKG_CONFIG path to pkg-config utility
1527 C compiler flags for MMCOMMON, overriding pkg-config
1529 linker flags for MMCOMMON, overriding pkg-config
1531 C compiler flags for MMLOG, overriding pkg-config
1532 MMLOG_LIBS linker flags for MMLOG, overriding pkg-config
1533 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1534 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1535 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1536 GTK_LIBS linker flags for GTK, overriding pkg-config
1538 C compiler flags for AVCODEC, overriding pkg-config
1540 linker flags for AVCODEC, overriding pkg-config
1542 C compiler flags for AVUTIL, overriding pkg-config
1543 AVUTIL_LIBS linker flags for AVUTIL, overriding pkg-config
1545 C compiler flags for AVFORMAT, overriding pkg-config
1547 linker flags for AVFORMAT, overriding pkg-config
1549 C compiler flags for DRMSERVICE, overriding pkg-config
1551 linker flags for DRMSERVICE, overriding pkg-config
1553 Use these variables to override the choices made by `configure' or to help
1554 it to find libraries and programs with nonstandard names/locations.
1560 if test "$ac_init_help" = "recursive"; then
1561 # If there are subdirs, report their specific --help.
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563 test -d "$ac_dir" || continue
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1583 .) # We are building in place.
1585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
1588 ac_srcdir=$srcdir$ac_dir_suffix;
1589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for guested configure.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1605 $SHELL "$ac_srcdir/configure" --help=recursive
1607 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 cd "$ac_pwd" || { ac_status=$?; break; }
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1616 libmm-fileinfo configure 0.0.1
1617 generated by GNU Autoconf 2.61
1619 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1620 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1626 cat >config.log <<_ACEOF
1627 This file contains any messages produced by compilers while
1628 running configure, to aid debugging if configure makes a mistake.
1630 It was created by libmm-fileinfo $as_me 0.0.1, which was
1631 generated by GNU Autoconf 2.61. Invocation command line was
1643 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1644 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1645 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1646 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1647 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1649 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1650 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1652 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1653 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1654 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1655 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1656 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1657 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1658 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 echo "PATH: $as_dir"
1683 # Keep a trace of the command line.
1684 # Strip out --no-create and --no-recursion so they do not pile up.
1685 # Strip out --silent because we don't want to record it for future runs.
1686 # Also quote any args containing shell meta-characters.
1687 # Make two passes to allow for proper duplicate-argument suppression.
1691 ac_must_keep_next=false
1697 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1699 | -silent | --silent | --silen | --sile | --sil)
1702 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1705 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1707 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1708 if test $ac_must_keep_next = true; then
1709 ac_must_keep_next=false # Got value, back to normal.
1712 *=* | --config-cache | -C | -disable-* | --disable-* \
1713 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1714 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1715 | -with-* | --with-* | -without-* | --without-* | --x)
1716 case "$ac_configure_args0 " in
1717 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1720 -* ) ac_must_keep_next=true ;;
1723 ac_configure_args="$ac_configure_args '$ac_arg'"
1728 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1729 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1731 # When interrupted or exit'd, cleanup temporary files, and complete
1732 # config.log. We remove comments because anyway the quotes in there
1733 # would cause problems or look ugly.
1734 # WARNING: Use '\'' to represent an apostrophe within the trap.
1735 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1736 trap 'exit_status=$?
1737 # Save into config.log some information that might help in debugging.
1742 ## ---------------- ##
1743 ## Cache variables. ##
1744 ## ---------------- ##
1747 # The following way of writing the cache mishandles newlines in values,
1749 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1750 eval ac_val=\$$ac_var
1754 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1755 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1758 _ | IFS | as_nl) ;; #(
1759 *) $as_unset $ac_var ;;
1764 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1765 *${as_nl}ac_space=\ *)
1767 "s/'\''/'\''\\\\'\'''\''/g;
1768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1771 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1779 ## ----------------- ##
1780 ## Output variables. ##
1781 ## ----------------- ##
1784 for ac_var in $ac_subst_vars
1786 eval ac_val=\$$ac_var
1788 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790 echo "$ac_var='\''$ac_val'\''"
1794 if test -n "$ac_subst_files"; then
1796 ## ------------------- ##
1797 ## File substitutions. ##
1798 ## ------------------- ##
1801 for ac_var in $ac_subst_files
1803 eval ac_val=\$$ac_var
1805 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 echo "$ac_var='\''$ac_val'\''"
1812 if test -s confdefs.h; then
1822 test "$ac_signal" != 0 &&
1823 echo "$as_me: caught signal $ac_signal"
1824 echo "$as_me: exit $exit_status"
1826 rm -f core *.core core.conftest.* &&
1827 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1830 for ac_signal in 1 2 13 15; do
1831 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1835 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1836 rm -f -r conftest* confdefs.h
1838 # Predefined preprocessor variables.
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_NAME "$PACKAGE_NAME"
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_STRING "$PACKAGE_STRING"
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1865 # Let the site file select an alternate cache file if it wants to.
1866 # Prefer explicitly selected file to automatically selected ones.
1867 if test -n "$CONFIG_SITE"; then
1868 set x "$CONFIG_SITE"
1869 elif test "x$prefix" != xNONE; then
1870 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1872 set x "$ac_default_prefix/share/config.site" \
1873 "$ac_default_prefix/etc/config.site"
1878 if test -r "$ac_site_file"; then
1879 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1880 echo "$as_me: loading site script $ac_site_file" >&6;}
1881 sed 's/^/| /' "$ac_site_file" >&5
1886 if test -r "$cache_file"; then
1887 # Some versions of bash will fail to source /dev/null (special
1888 # files actually), so we avoid doing that.
1889 if test -f "$cache_file"; then
1890 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1891 echo "$as_me: loading cache $cache_file" >&6;}
1893 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1894 *) . "./$cache_file";;
1898 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1899 echo "$as_me: creating cache $cache_file" >&6;}
1903 # Check that the precious variables saved in the cache have kept the same
1905 ac_cache_corrupted=false
1906 for ac_var in $ac_precious_vars; do
1907 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1908 eval ac_new_set=\$ac_env_${ac_var}_set
1909 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1910 eval ac_new_val=\$ac_env_${ac_var}_value
1911 case $ac_old_set,$ac_new_set in
1913 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1914 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1915 ac_cache_corrupted=: ;;
1917 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1918 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1919 ac_cache_corrupted=: ;;
1922 if test "x$ac_old_val" != "x$ac_new_val"; then
1923 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1924 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1925 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1926 echo "$as_me: former value: $ac_old_val" >&2;}
1927 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1928 echo "$as_me: current value: $ac_new_val" >&2;}
1929 ac_cache_corrupted=:
1932 # Pass precious variables to config.status.
1933 if test "$ac_new_set" = set; then
1935 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1936 *) ac_arg=$ac_var=$ac_new_val ;;
1938 case " $ac_configure_args " in
1939 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1940 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1944 if $ac_cache_corrupted; then
1945 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1946 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1947 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1948 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1949 { (exit 1); exit 1; }; }
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1984 ac_config_headers="$ac_config_headers config.h"
1986 am__api_version='1.10'
1989 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1990 if test -f "$ac_dir/install-sh"; then
1992 ac_install_sh="$ac_aux_dir/install-sh -c"
1994 elif test -f "$ac_dir/install.sh"; then
1996 ac_install_sh="$ac_aux_dir/install.sh -c"
1998 elif test -f "$ac_dir/shtool"; then
2000 ac_install_sh="$ac_aux_dir/shtool install -c"
2004 if test -z "$ac_aux_dir"; then
2005 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2006 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2007 { (exit 1); exit 1; }; }
2010 # These three variables are undocumented and unsupported,
2011 # and are intended to be withdrawn in a future Autoconf release.
2012 # They can cause serious problems if a builder's source tree is in a directory
2013 # whose full name contains unusual characters.
2014 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2015 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2016 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2019 # Find a good install program. We prefer a C program (faster),
2020 # so one script is as good as another. But avoid the broken or
2021 # incompatible versions:
2022 # SysV /etc/install, /usr/sbin/install
2023 # SunOS /usr/etc/install
2024 # IRIX /sbin/install
2026 # AmigaOS /C/install, which installs bootblocks on floppy discs
2027 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2028 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2029 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2030 # OS/2's system install, which has a completely different semantic
2031 # ./install, which can be erroneously created by make from ./install.sh.
2032 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2033 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2034 if test -z "$INSTALL"; then
2035 if test "${ac_cv_path_install+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 # Account for people who put trailing slashes in PATH elements.
2045 ./ | .// | /cC/* | \
2046 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2047 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2050 # OSF1 and SCO ODT 3.0 have their own names for install.
2051 # Don't use installbsd from OSF since it installs stuff as root
2053 for ac_prog in ginstall scoinst install; do
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2056 if test $ac_prog = install &&
2057 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2058 # AIX install. It has an incompatible calling convention.
2060 elif test $ac_prog = install &&
2061 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2062 # program-specific install script used by HP pwplus--don't use.
2065 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2078 if test "${ac_cv_path_install+set}" = set; then
2079 INSTALL=$ac_cv_path_install
2081 # As a last resort, use the slow shell script. Don't cache a
2082 # value for INSTALL within a source directory, because that will
2083 # break other packages using the cache if that directory is
2084 # removed, or if the value is a relative name.
2085 INSTALL=$ac_install_sh
2088 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2089 echo "${ECHO_T}$INSTALL" >&6; }
2091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2092 # It thinks the first close brace ends the variable substitution.
2093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2095 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2097 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2099 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2100 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2103 echo timestamp > conftest.file
2104 # Do `set' in a subshell so we don't clobber the current shell's
2105 # arguments. Must try -L first in case configure is actually a
2106 # symlink; some systems play weird games with the mod time of symlinks
2107 # (eg FreeBSD returns the mod time of the symlink's containing
2110 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2111 if test "$*" = "X"; then
2113 set X `ls -t $srcdir/configure conftest.file`
2116 if test "$*" != "X $srcdir/configure conftest.file" \
2117 && test "$*" != "X conftest.file $srcdir/configure"; then
2119 # If neither matched, then we have a broken ls. This can happen
2120 # if, for instance, CONFIG_SHELL is bash and it inherits a
2121 # broken ls alias from the environment. This has actually
2122 # happened. Such a system could not be considered "sane".
2123 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2124 alias in your environment" >&5
2125 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2126 alias in your environment" >&2;}
2127 { (exit 1); exit 1; }; }
2130 test "$2" = conftest.file
2136 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2137 Check your system clock" >&5
2138 echo "$as_me: error: newly created file is older than distributed files!
2139 Check your system clock" >&2;}
2140 { (exit 1); exit 1; }; }
2142 { echo "$as_me:$LINENO: result: yes" >&5
2143 echo "${ECHO_T}yes" >&6; }
2144 test "$program_prefix" != NONE &&
2145 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2146 # Use a double $ so make ignores it.
2147 test "$program_suffix" != NONE &&
2148 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2149 # Double any \ or $. echo might interpret backslashes.
2150 # By default was `s,x,x', remove it if useless.
2151 cat <<\_ACEOF >conftest.sed
2152 s/[\\$]/&&/g;s/;s,x,x,$//
2154 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2157 # expand $ac_aux_dir to an absolute path
2158 am_aux_dir=`cd $ac_aux_dir && pwd`
2160 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2161 # Use eval to expand $SHELL
2162 if eval "$MISSING --run true"; then
2163 am_missing_run="$MISSING --run "
2166 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2167 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2170 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2171 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2172 if test -z "$MKDIR_P"; then
2173 if test "${ac_cv_path_mkdir+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2180 test -z "$as_dir" && as_dir=.
2181 for ac_prog in mkdir gmkdir; do
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2184 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2185 'mkdir (GNU coreutils) '* | \
2186 'mkdir (coreutils) '* | \
2187 'mkdir (fileutils) '4.1*)
2188 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2198 if test "${ac_cv_path_mkdir+set}" = set; then
2199 MKDIR_P="$ac_cv_path_mkdir -p"
2201 # As a last resort, use the slow shell script. Don't cache a
2202 # value for MKDIR_P within a source directory, because that will
2203 # break other packages using the cache if that directory is
2204 # removed, or if the value is a relative name.
2205 test -d ./--version && rmdir ./--version
2206 MKDIR_P="$ac_install_sh -d"
2209 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2210 echo "${ECHO_T}$MKDIR_P" >&6; }
2214 [\\/$]* | ?:[\\/]*) ;;
2215 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2218 for ac_prog in gawk mawk nawk awk
2220 # Extract the first word of "$ac_prog", so it can be a program name with args.
2221 set dummy $ac_prog; ac_word=$2
2222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2224 if test "${ac_cv_prog_AWK+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 if test -n "$AWK"; then
2228 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2237 ac_cv_prog_AWK="$ac_prog"
2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 if test -n "$AWK"; then
2249 { echo "$as_me:$LINENO: result: $AWK" >&5
2250 echo "${ECHO_T}$AWK" >&6; }
2252 { echo "$as_me:$LINENO: result: no" >&5
2253 echo "${ECHO_T}no" >&6; }
2257 test -n "$AWK" && break
2260 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2261 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2262 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2263 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 cat >conftest.make <<\_ACEOF
2269 @echo '@@@%%%=$(MAKE)=@@@%%%'
2271 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2272 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2274 eval ac_cv_prog_make_${ac_make}_set=yes;;
2276 eval ac_cv_prog_make_${ac_make}_set=no;;
2280 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2281 { echo "$as_me:$LINENO: result: yes" >&5
2282 echo "${ECHO_T}yes" >&6; }
2285 { echo "$as_me:$LINENO: result: no" >&5
2286 echo "${ECHO_T}no" >&6; }
2287 SET_MAKE="MAKE=${MAKE-make}"
2290 rm -rf .tst 2>/dev/null
2291 mkdir .tst 2>/dev/null
2292 if test -d .tst; then
2297 rmdir .tst 2>/dev/null
2299 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2300 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2301 # is not polluted with repeated "-I."
2302 am__isrc=' -I$(srcdir)'
2303 # test to see if srcdir already configured
2304 if test -f $srcdir/config.status; then
2305 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2306 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2307 { (exit 1); exit 1; }; }
2311 # test whether we have cygpath
2312 if test -z "$CYGPATH_W"; then
2313 if (cygpath --version) >/dev/null 2>/dev/null; then
2314 CYGPATH_W='cygpath -w'
2321 # Define the identity of the package.
2322 PACKAGE='libmm-fileinfo'
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE "$PACKAGE"
2331 cat >>confdefs.h <<_ACEOF
2332 #define VERSION "$VERSION"
2335 # Some tools Automake needs.
2337 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2340 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2343 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2346 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2349 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2351 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2353 # Installed binaries are usually stripped using `strip' when the user
2354 # run `make install-strip'. However `strip' might not be the right
2355 # tool to use in cross-compilation environments, therefore Automake
2356 # will honor the `STRIP' environment variable to overrule this program.
2357 if test "$cross_compiling" != no; then
2358 if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}strip; ac_word=$2
2361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2363 if test "${ac_cv_prog_STRIP+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 if test -n "$STRIP"; then
2367 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 STRIP=$ac_cv_prog_STRIP
2387 if test -n "$STRIP"; then
2388 { echo "$as_me:$LINENO: result: $STRIP" >&5
2389 echo "${ECHO_T}$STRIP" >&6; }
2391 { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2397 if test -z "$ac_cv_prog_STRIP"; then
2399 # Extract the first word of "strip", so it can be a program name with args.
2400 set dummy strip; ac_word=$2
2401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2403 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 if test -n "$ac_ct_STRIP"; then
2407 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416 ac_cv_prog_ac_ct_STRIP="strip"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2427 if test -n "$ac_ct_STRIP"; then
2428 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2429 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2431 { echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6; }
2435 if test "x$ac_ct_STRIP" = x; then
2438 case $cross_compiling:$ac_tool_warned in
2440 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2441 whose name does not start with the host triplet. If you think this
2442 configuration is useful to you, please write to autoconf@gnu.org." >&5
2443 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet. If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2446 ac_tool_warned=yes ;;
2451 STRIP="$ac_cv_prog_STRIP"
2455 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2457 # We need awk for the "check" target. The system "awk" is bad on
2459 # Always define AMTAR for backward compatibility.
2461 AMTAR=${AMTAR-"${am_missing_run}tar"}
2463 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2471 # Checks for programs.
2473 ac_cpp='$CPP $CPPFLAGS'
2474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477 if test -n "$ac_tool_prefix"; then
2478 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 if test -n "$CC"; then
2507 { echo "$as_me:$LINENO: result: $CC" >&5
2508 echo "${ECHO_T}$CC" >&6; }
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2516 if test -z "$ac_cv_prog_CC"; then
2518 # Extract the first word of "gcc", so it can be a program name with args.
2519 set dummy gcc; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 if test -n "$ac_ct_CC"; then
2526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_ac_ct_CC="gcc"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2546 if test -n "$ac_ct_CC"; then
2547 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2548 echo "${ECHO_T}$ac_ct_CC" >&6; }
2550 { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2554 if test "x$ac_ct_CC" = x; then
2557 case $cross_compiling:$ac_tool_warned in
2559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2560 whose name does not start with the host triplet. If you think this
2561 configuration is useful to you, please write to autoconf@gnu.org." >&5
2562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2563 whose name does not start with the host triplet. If you think this
2564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2565 ac_tool_warned=yes ;;
2573 if test -z "$CC"; then
2574 if test -n "$ac_tool_prefix"; then
2575 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2576 set dummy ${ac_tool_prefix}cc; ac_word=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 if test -n "$CC"; then
2583 ac_cv_prog_CC="$CC" # Let the user override the test.
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592 ac_cv_prog_CC="${ac_tool_prefix}cc"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 if test -n "$CC"; then
2604 { echo "$as_me:$LINENO: result: $CC" >&5
2605 echo "${ECHO_T}$CC" >&6; }
2607 { echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6; }
2614 if test -z "$CC"; then
2615 # Extract the first word of "cc", so it can be a program name with args.
2616 set dummy cc; ac_word=$2
2617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2619 if test "${ac_cv_prog_CC+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2634 ac_prog_rejected=yes
2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 if test $ac_prog_rejected = yes; then
2646 # We found a bogon in the path, so make sure we never use it.
2647 set dummy $ac_cv_prog_CC
2649 if test $# != 0; then
2650 # We chose a different compiler from the bogus one.
2651 # However, it has the same basename, so the bogon will be chosen
2652 # first if we set CC to just the basename; use the full file name.
2654 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2660 if test -n "$CC"; then
2661 { echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6; }
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2670 if test -z "$CC"; then
2671 if test -n "$ac_tool_prefix"; then
2672 for ac_prog in cl.exe
2674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2678 if test "${ac_cv_prog_CC+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 if test -n "$CC"; then
2682 ac_cv_prog_CC="$CC" # Let the user override the test.
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 if test -n "$CC"; then
2703 { echo "$as_me:$LINENO: result: $CC" >&5
2704 echo "${ECHO_T}$CC" >&6; }
2706 { echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6; }
2711 test -n "$CC" && break
2714 if test -z "$CC"; then
2716 for ac_prog in cl.exe
2718 # Extract the first word of "$ac_prog", so it can be a program name with args.
2719 set dummy $ac_prog; ac_word=$2
2720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2722 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 if test -n "$ac_ct_CC"; then
2726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735 ac_cv_prog_ac_ct_CC="$ac_prog"
2736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2746 if test -n "$ac_ct_CC"; then
2747 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2748 echo "${ECHO_T}$ac_ct_CC" >&6; }
2750 { echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6; }
2755 test -n "$ac_ct_CC" && break
2758 if test "x$ac_ct_CC" = x; then
2761 case $cross_compiling:$ac_tool_warned in
2763 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2764 whose name does not start with the host triplet. If you think this
2765 configuration is useful to you, please write to autoconf@gnu.org." >&5
2766 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2767 whose name does not start with the host triplet. If you think this
2768 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2769 ac_tool_warned=yes ;;
2778 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2779 See \`config.log' for more details." >&5
2780 echo "$as_me: error: no acceptable C compiler found in \$PATH
2781 See \`config.log' for more details." >&2;}
2782 { (exit 1); exit 1; }; }
2784 # Provide some information about the compiler.
2785 echo "$as_me:$LINENO: checking for C compiler version" >&5
2786 ac_compiler=`set X $ac_compile; echo $2`
2787 { (ac_try="$ac_compiler --version >&5"
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_compiler --version >&5") 2>&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }
2797 { (ac_try="$ac_compiler -v >&5"
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_compiler -v >&5") 2>&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }
2807 { (ac_try="$ac_compiler -V >&5"
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_compiler -V >&5") 2>&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2833 ac_clean_files_save=$ac_clean_files
2834 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2835 # Try to create an executable without -o first, disregard a.out.
2836 # It will help us diagnose broken compilers, and finding out an intuition
2838 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2839 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2840 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2842 # List of possible output files, starting from the most likely.
2843 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2844 # only as a last resort. b.out is created by i960 compilers.
2845 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2847 # The IRIX 6 linker writes into existing files which may not be
2848 # executable, retaining their permissions. Remove them first so a
2849 # subsequent execution test works.
2851 for ac_file in $ac_files
2854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2855 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2860 if { (ac_try="$ac_link_default"
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866 (eval "$ac_link_default") 2>&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; then
2870 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2871 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2872 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2873 # so that the user can short-circuit this test for compilers unknown to
2875 for ac_file in $ac_files ''
2877 test -f "$ac_file" || continue
2879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2882 # We found the default executable, but exeext='' is most
2886 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2888 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2890 # We set ac_cv_exeext here because the later test for it is not
2891 # safe: cross compilers may not add the suffix if given an `-o'
2892 # argument, so we may need to know it at that point already.
2893 # Even if this section looks crufty: it has the advantage of
2900 test "$ac_cv_exeext" = no && ac_cv_exeext=
2906 { echo "$as_me:$LINENO: result: $ac_file" >&5
2907 echo "${ECHO_T}$ac_file" >&6; }
2908 if test -z "$ac_file"; then
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2912 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2913 See \`config.log' for more details." >&5
2914 echo "$as_me: error: C compiler cannot create executables
2915 See \`config.log' for more details." >&2;}
2916 { (exit 77); exit 77; }; }
2919 ac_exeext=$ac_cv_exeext
2921 # Check that the compiler produces executables we can run. If not, either
2922 # the compiler is broken, or we cross compile.
2923 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2924 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2925 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2926 # If not cross compiling, check that we can run a simple program.
2927 if test "$cross_compiling" != yes; then
2928 if { ac_try='./$ac_file'
2929 { (case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_try") 2>&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2940 if test "$cross_compiling" = maybe; then
2943 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2944 If you meant to cross compile, use \`--host'.
2945 See \`config.log' for more details." >&5
2946 echo "$as_me: error: cannot run C compiled programs.
2947 If you meant to cross compile, use \`--host'.
2948 See \`config.log' for more details." >&2;}
2949 { (exit 1); exit 1; }; }
2953 { echo "$as_me:$LINENO: result: yes" >&5
2954 echo "${ECHO_T}yes" >&6; }
2956 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2957 ac_clean_files=$ac_clean_files_save
2958 # Check that the compiler produces executables we can run. If not, either
2959 # the compiler is broken, or we cross compile.
2960 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2961 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2962 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2963 echo "${ECHO_T}$cross_compiling" >&6; }
2965 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2966 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2967 if { (ac_try="$ac_link"
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_link") 2>&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; then
2977 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2978 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2979 # work properly (i.e., refer to `conftest.exe'), while it won't with
2981 for ac_file in conftest.exe conftest conftest.*; do
2982 test -f "$ac_file" || continue
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2985 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2991 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2992 See \`config.log' for more details." >&5
2993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2994 See \`config.log' for more details." >&2;}
2995 { (exit 1); exit 1; }; }
2998 rm -f conftest$ac_cv_exeext
2999 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3000 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3002 rm -f conftest.$ac_ext
3003 EXEEXT=$ac_cv_exeext
3005 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3007 if test "${ac_cv_objext+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3025 rm -f conftest.o conftest.obj
3026 if { (ac_try="$ac_compile"
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; then
3036 for ac_file in conftest.o conftest.obj conftest.*; do
3037 test -f "$ac_file" || continue;
3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3040 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3048 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3049 See \`config.log' for more details." >&5
3050 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3051 See \`config.log' for more details." >&2;}
3052 { (exit 1); exit 1; }; }
3055 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3057 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3058 echo "${ECHO_T}$ac_cv_objext" >&6; }
3059 OBJEXT=$ac_cv_objext
3061 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3062 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3063 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 cat >conftest.$ac_ext <<_ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3084 rm -f conftest.$ac_objext
3085 if { (ac_try="$ac_compile"
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_compile") 2>conftest.er1
3093 grep -v '^ *+' conftest.er1 >conftest.err
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } && {
3098 test -z "$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3100 } && test -s conftest.$ac_objext; then
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3113 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3114 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3115 GCC=`test $ac_compiler_gnu = yes && echo yes`
3116 ac_test_CFLAGS=${CFLAGS+set}
3117 ac_save_CFLAGS=$CFLAGS
3118 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3119 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3120 if test "${ac_cv_prog_cc_g+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 ac_save_c_werror_flag=$ac_c_werror_flag
3124 ac_c_werror_flag=yes
3127 cat >conftest.$ac_ext <<_ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3142 rm -f conftest.$ac_objext
3143 if { (ac_try="$ac_compile"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compile") 2>conftest.er1
3151 grep -v '^ *+' conftest.er1 >conftest.err
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } && {
3156 test -z "$ac_c_werror_flag" ||
3157 test ! -s conftest.err
3158 } && test -s conftest.$ac_objext; then
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3165 cat >conftest.$ac_ext <<_ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3189 grep -v '^ *+' conftest.er1 >conftest.err
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } && {
3194 test -z "$ac_c_werror_flag" ||
3195 test ! -s conftest.err
3196 } && test -s conftest.$ac_objext; then
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3202 ac_c_werror_flag=$ac_save_c_werror_flag
3204 cat >conftest.$ac_ext <<_ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3219 rm -f conftest.$ac_objext
3220 if { (ac_try="$ac_compile"
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_compile") 2>conftest.er1
3228 grep -v '^ *+' conftest.er1 >conftest.err
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } && {
3233 test -z "$ac_c_werror_flag" ||
3234 test ! -s conftest.err
3235 } && test -s conftest.$ac_objext; then
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 ac_c_werror_flag=$ac_save_c_werror_flag
3253 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3254 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3255 if test "$ac_test_CFLAGS" = set; then
3256 CFLAGS=$ac_save_CFLAGS
3257 elif test $ac_cv_prog_cc_g = yes; then
3258 if test "$GCC" = yes; then
3264 if test "$GCC" = yes; then
3270 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3271 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3272 if test "${ac_cv_prog_cc_c89+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 ac_cv_prog_cc_c89=no
3277 cat >conftest.$ac_ext <<_ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3285 #include <sys/types.h>
3286 #include <sys/stat.h>
3287 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3288 struct buf { int x; };
3289 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3290 static char *e (p, i)
3296 static char *f (char * (*g) (char **, int), char **p, ...)
3301 s = g (p, va_arg (v,int));
3306 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3307 function prototypes and stuff, but not '\xHH' hex character constants.
3308 These don't provoke an error unfortunately, instead are silently treated
3309 as 'x'. The following induces an error, until -std is added to get
3310 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3311 array size at least. It's necessary to write '\x00'==0 to get something
3312 that's true only with -std. */
3313 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3315 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3316 inside strings and character constants. */
3318 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3320 int test (int i, double x);
3321 struct s1 {int (*f) (int a);};
3322 struct s2 {int (*f) (double a);};
3323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3329 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3334 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3335 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3337 CC="$ac_save_CC $ac_arg"
3338 rm -f conftest.$ac_objext
3339 if { (ac_try="$ac_compile"
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_compile") 2>conftest.er1
3347 grep -v '^ *+' conftest.er1 >conftest.err
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } && {
3352 test -z "$ac_c_werror_flag" ||
3353 test ! -s conftest.err
3354 } && test -s conftest.$ac_objext; then
3355 ac_cv_prog_cc_c89=$ac_arg
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3363 rm -f core conftest.err conftest.$ac_objext
3364 test "x$ac_cv_prog_cc_c89" != "xno" && break
3366 rm -f conftest.$ac_ext
3371 case "x$ac_cv_prog_cc_c89" in
3373 { echo "$as_me:$LINENO: result: none needed" >&5
3374 echo "${ECHO_T}none needed" >&6; } ;;
3376 { echo "$as_me:$LINENO: result: unsupported" >&5
3377 echo "${ECHO_T}unsupported" >&6; } ;;
3379 CC="$CC $ac_cv_prog_cc_c89"
3380 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3381 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 DEPDIR="${am__leading_dot}deps"
3392 ac_config_commands="$ac_config_commands depfiles"
3395 am_make=${MAKE-make}
3396 cat > confinc << 'END'
3401 # If we don't find an include directive, just comment out the code.
3402 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3403 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3407 # First try GNU make style include.
3408 echo "include confinc" > confmf
3409 # We grep out `Entering directory' and `Leaving directory'
3410 # messages which can occur if `w' ends up in MAKEFLAGS.
3411 # In particular we don't look at `^make:' because GNU make might
3412 # be invoked under some other name (usually "gmake"), in which
3413 # case it prints its new name instead of `make'.
3414 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3419 # Now try BSD make style include.
3420 if test "$am__include" = "#"; then
3421 echo '.include "confinc"' > confmf
3422 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3423 am__include=.include
3430 { echo "$as_me:$LINENO: result: $_am_result" >&5
3431 echo "${ECHO_T}$_am_result" >&6; }
3432 rm -f confinc confmf
3434 # Check whether --enable-dependency-tracking was given.
3435 if test "${enable_dependency_tracking+set}" = set; then
3436 enableval=$enable_dependency_tracking;
3439 if test "x$enable_dependency_tracking" != xno; then
3440 am_depcomp="$ac_aux_dir/depcomp"
3443 if test "x$enable_dependency_tracking" != xno; then
3453 depcc="$CC" am_compiler_list=
3455 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3456 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3457 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3461 # We make a subdir and do the tests there. Otherwise we can end up
3462 # making bogus files that we don't know about and never remove. For
3463 # instance it was reported that on HP-UX the gcc test will end up
3464 # making a dummy file named `D' -- because `-MD' means `put the output
3467 # Copy depcomp to subdir because otherwise we won't find it if we're
3468 # using a relative directory.
3469 cp "$am_depcomp" conftest.dir
3471 # We will build objects and dependencies in a subdirectory because
3472 # it helps to detect inapplicable dependency modes. For instance
3473 # both Tru64's cc and ICC support -MD to output dependencies as a
3474 # side effect of compilation, but ICC will put the dependencies in
3475 # the current directory while Tru64 will put them in the object
3479 am_cv_CC_dependencies_compiler_type=none
3480 if test "$am_compiler_list" = ""; then
3481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3483 for depmode in $am_compiler_list; do
3484 # Setup a source with many dependencies, because some compilers
3485 # like to wrap large dependency lists on column 80 (with \), and
3486 # we should not choose a depcomp mode which is confused by this.
3488 # We need to recreate these files for each test, as the compiler may
3489 # overwrite some of them when testing with obscure command lines.
3490 # This happens at least with the AIX C compiler.
3492 for i in 1 2 3 4 5 6; do
3493 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3494 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3495 # Solaris 8's {/usr,}/bin/sh.
3496 touch sub/conftst$i.h
3498 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3502 # after this tag, mechanisms are not by side-effect, so they'll
3503 # only be used when explicitly requested
3504 if test "x$enable_dependency_tracking" = xyes; then
3512 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3513 # mode. It turns out that the SunPro C++ compiler does not properly
3514 # handle `-M -o', and we need to detect this.
3515 if depmode=$depmode \
3516 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3518 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3519 >/dev/null 2>conftest.err &&
3520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3522 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3524 # icc doesn't choke on unknown options, it will just issue warnings
3525 # or remarks (even with -Werror). So we grep stderr for any message
3526 # that says an option was ignored or not supported.
3527 # When given -MP, icc 7.0 and 7.1 complain thusly:
3528 # icc: Command line warning: ignoring option '-M'; no argument required
3529 # The diagnosis changed in icc 8.0:
3530 # icc: Command line remark: option '-MP' not supported
3531 if (grep 'ignoring option' conftest.err ||
3532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3533 am_cv_CC_dependencies_compiler_type=$depmode
3542 am_cv_CC_dependencies_compiler_type=none
3546 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3547 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3548 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3551 test "x$enable_dependency_tracking" != xno \
3552 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3554 am__fastdepCC_FALSE='#'
3556 am__fastdepCC_TRUE='#'
3557 am__fastdepCC_FALSE=
3563 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3564 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3569 macro_version='2.2.4'
3570 macro_revision='1.2976'
3584 ltmain="$ac_aux_dir/ltmain.sh"
3586 # Make sure we can run config.sub.
3587 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3588 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3589 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3590 { (exit 1); exit 1; }; }
3592 { echo "$as_me:$LINENO: checking build system type" >&5
3593 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3594 if test "${ac_cv_build+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 ac_build_alias=$build_alias
3598 test "x$ac_build_alias" = x &&
3599 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3600 test "x$ac_build_alias" = x &&
3601 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3602 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3603 { (exit 1); exit 1; }; }
3604 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3605 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3606 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3607 { (exit 1); exit 1; }; }
3610 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3611 echo "${ECHO_T}$ac_cv_build" >&6; }
3612 case $ac_cv_build in
3614 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3615 echo "$as_me: error: invalid value of canonical build" >&2;}
3616 { (exit 1); exit 1; }; };;
3619 ac_save_IFS=$IFS; IFS='-'
3625 # Remember, the first character of IFS is used to create $*,
3626 # except with old shells:
3629 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3632 { echo "$as_me:$LINENO: checking host system type" >&5
3633 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3634 if test "${ac_cv_host+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 if test "x$host_alias" = x; then
3638 ac_cv_host=$ac_cv_build
3640 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3641 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3642 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3643 { (exit 1); exit 1; }; }
3647 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3648 echo "${ECHO_T}$ac_cv_host" >&6; }
3651 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3652 echo "$as_me: error: invalid value of canonical host" >&2;}
3653 { (exit 1); exit 1; }; };;
3656 ac_save_IFS=$IFS; IFS='-'
3662 # Remember, the first character of IFS is used to create $*,
3663 # except with old shells:
3666 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3669 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3670 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3671 if test "${ac_cv_path_SED+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3675 for ac_i in 1 2 3 4 5 6 7; do
3676 ac_script="$ac_script$as_nl$ac_script"
3678 echo "$ac_script" | sed 99q >conftest.sed
3679 $as_unset ac_script || ac_script=
3680 # Extract the first word of "sed gsed" to use in msg output
3681 if test -z "$SED"; then
3682 set dummy sed gsed; ac_prog_name=$2
3683 if test "${ac_cv_path_SED+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 ac_path_SED_found=false
3687 # Loop through the user's path and test for each of PROGNAME-LIST
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 test -z "$as_dir" && as_dir=.
3693 for ac_prog in sed gsed; do
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3696 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3697 # Check for GNU ac_path_SED and select it if it is found.
3698 # Check for GNU $ac_path_SED
3699 case `"$ac_path_SED" --version 2>&1` in
3701 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3704 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3707 cat "conftest.in" "conftest.in" >"conftest.tmp"
3708 mv "conftest.tmp" "conftest.in"
3709 cp "conftest.in" "conftest.nl"
3710 echo '' >> "conftest.nl"
3711 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3712 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3713 ac_count=`expr $ac_count + 1`
3714 if test $ac_count -gt ${ac_path_SED_max-0}; then
3715 # Best one so far, save it but keep looking for a better one
3716 ac_cv_path_SED="$ac_path_SED"
3717 ac_path_SED_max=$ac_count
3719 # 10*(2^10) chars as input seems more than enough
3720 test $ac_count -gt 10 && break
3722 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3726 $ac_path_SED_found && break 3
3736 SED="$ac_cv_path_SED"
3737 if test -z "$SED"; then
3738 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3739 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3740 { (exit 1); exit 1; }; }
3748 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3749 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3750 SED="$ac_cv_path_SED"
3753 test -z "$SED" && SED=sed
3754 Xsed="$SED -e 1s/^X//"
3766 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3767 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3768 if test "${ac_cv_path_GREP+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 # Extract the first word of "grep ggrep" to use in msg output
3772 if test -z "$GREP"; then
3773 set dummy grep ggrep; ac_prog_name=$2
3774 if test "${ac_cv_path_GREP+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 ac_path_GREP_found=false
3778 # Loop through the user's path and test for each of PROGNAME-LIST
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3783 test -z "$as_dir" && as_dir=.
3784 for ac_prog in grep ggrep; do
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3787 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3788 # Check for GNU ac_path_GREP and select it if it is found.
3789 # Check for GNU $ac_path_GREP
3790 case `"$ac_path_GREP" --version 2>&1` in
3792 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3795 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3798 cat "conftest.in" "conftest.in" >"conftest.tmp"
3799 mv "conftest.tmp" "conftest.in"
3800 cp "conftest.in" "conftest.nl"
3801 echo 'GREP' >> "conftest.nl"
3802 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3804 ac_count=`expr $ac_count + 1`
3805 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3806 # Best one so far, save it but keep looking for a better one
3807 ac_cv_path_GREP="$ac_path_GREP"
3808 ac_path_GREP_max=$ac_count
3810 # 10*(2^10) chars as input seems more than enough
3811 test $ac_count -gt 10 && break
3813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3817 $ac_path_GREP_found && break 3
3827 GREP="$ac_cv_path_GREP"
3828 if test -z "$GREP"; then
3829 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3830 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3831 { (exit 1); exit 1; }; }
3835 ac_cv_path_GREP=$GREP
3840 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3841 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3842 GREP="$ac_cv_path_GREP"
3845 { echo "$as_me:$LINENO: checking for egrep" >&5
3846 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3847 if test "${ac_cv_path_EGREP+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3851 then ac_cv_path_EGREP="$GREP -E"
3853 # Extract the first word of "egrep" to use in msg output
3854 if test -z "$EGREP"; then
3855 set dummy egrep; ac_prog_name=$2
3856 if test "${ac_cv_path_EGREP+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 ac_path_EGREP_found=false
3860 # Loop through the user's path and test for each of PROGNAME-LIST
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3865 test -z "$as_dir" && as_dir=.
3866 for ac_prog in egrep; do
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3869 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3870 # Check for GNU ac_path_EGREP and select it if it is found.
3871 # Check for GNU $ac_path_EGREP
3872 case `"$ac_path_EGREP" --version 2>&1` in
3874 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3877 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3880 cat "conftest.in" "conftest.in" >"conftest.tmp"
3881 mv "conftest.tmp" "conftest.in"
3882 cp "conftest.in" "conftest.nl"
3883 echo 'EGREP' >> "conftest.nl"
3884 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3885 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3886 ac_count=`expr $ac_count + 1`
3887 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3888 # Best one so far, save it but keep looking for a better one
3889 ac_cv_path_EGREP="$ac_path_EGREP"
3890 ac_path_EGREP_max=$ac_count
3892 # 10*(2^10) chars as input seems more than enough
3893 test $ac_count -gt 10 && break
3895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3899 $ac_path_EGREP_found && break 3
3909 EGREP="$ac_cv_path_EGREP"
3910 if test -z "$EGREP"; then
3911 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3912 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3913 { (exit 1); exit 1; }; }
3917 ac_cv_path_EGREP=$EGREP
3923 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3924 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3925 EGREP="$ac_cv_path_EGREP"
3928 { echo "$as_me:$LINENO: checking for fgrep" >&5
3929 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3930 if test "${ac_cv_path_FGREP+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3934 then ac_cv_path_FGREP="$GREP -F"
3936 # Extract the first word of "fgrep" to use in msg output
3937 if test -z "$FGREP"; then
3938 set dummy fgrep; ac_prog_name=$2
3939 if test "${ac_cv_path_FGREP+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 ac_path_FGREP_found=false
3943 # Loop through the user's path and test for each of PROGNAME-LIST
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3948 test -z "$as_dir" && as_dir=.
3949 for ac_prog in fgrep; do
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3952 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3953 # Check for GNU ac_path_FGREP and select it if it is found.
3954 # Check for GNU $ac_path_FGREP
3955 case `"$ac_path_FGREP" --version 2>&1` in
3957 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3960 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3963 cat "conftest.in" "conftest.in" >"conftest.tmp"
3964 mv "conftest.tmp" "conftest.in"
3965 cp "conftest.in" "conftest.nl"
3966 echo 'FGREP' >> "conftest.nl"
3967 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3969 ac_count=`expr $ac_count + 1`
3970 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3971 # Best one so far, save it but keep looking for a better one
3972 ac_cv_path_FGREP="$ac_path_FGREP"
3973 ac_path_FGREP_max=$ac_count
3975 # 10*(2^10) chars as input seems more than enough
3976 test $ac_count -gt 10 && break
3978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3982 $ac_path_FGREP_found && break 3
3992 FGREP="$ac_cv_path_FGREP"
3993 if test -z "$FGREP"; then
3994 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3995 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3996 { (exit 1); exit 1; }; }
4000 ac_cv_path_FGREP=$FGREP
4006 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4007 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4008 FGREP="$ac_cv_path_FGREP"
4011 test -z "$GREP" && GREP=grep
4031 # Check whether --with-gnu-ld was given.
4032 if test "${with_gnu_ld+set}" = set; then
4033 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4039 if test "$GCC" = yes; then
4040 # Check if gcc -print-prog-name=ld gives a path.
4041 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4042 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4045 # gcc leaves a trailing carriage return which upsets mingw
4046 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4048 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4051 # Accept absolute paths.
4053 re_direlt='/[^/][^/]*/\.\./'
4054 # Canonicalize the pathname of ld
4055 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4056 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4057 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4059 test -z "$LD" && LD="$ac_prog"
4062 # If it fails, then pretend we aren't using GCC.
4066 # If it is relative, then search for the first ld in PATH.
4070 elif test "$with_gnu_ld" = yes; then
4071 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4072 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4074 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4075 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4077 if test "${lt_cv_path_LD+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 if test -z "$LD"; then
4081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4082 for ac_dir in $PATH; do
4084 test -z "$ac_dir" && ac_dir=.
4085 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4086 lt_cv_path_LD="$ac_dir/$ac_prog"
4087 # Check to see if the program is GNU ld. I'd rather use --version,
4088 # but apparently some variants of GNU ld only accept -v.
4089 # Break only if it was the GNU/non-GNU ld that we prefer.
4090 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4091 *GNU* | *'with BFD'*)
4092 test "$with_gnu_ld" != no && break
4095 test "$with_gnu_ld" != yes && break
4102 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4107 if test -n "$LD"; then
4108 { echo "$as_me:$LINENO: result: $LD" >&5
4109 echo "${ECHO_T}$LD" >&6; }
4111 { echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6; }
4114 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4115 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4116 { (exit 1); exit 1; }; }
4117 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4118 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4119 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4123 case `$LD -v 2>&1 </dev/null` in
4124 *GNU* | *'with BFD'*)
4125 lt_cv_prog_gnu_ld=yes
4128 lt_cv_prog_gnu_ld=no
4132 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4133 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4134 with_gnu_ld=$lt_cv_prog_gnu_ld
4144 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4145 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4146 if test "${lt_cv_path_NM+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 if test -n "$NM"; then
4150 # Let the user override the test.
4153 lt_nm_to_check="${ac_tool_prefix}nm"
4154 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4155 lt_nm_to_check="$lt_nm_to_check nm"
4157 for lt_tmp_nm in $lt_nm_to_check; do
4158 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4159 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4161 test -z "$ac_dir" && ac_dir=.
4162 tmp_nm="$ac_dir/$lt_tmp_nm"
4163 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4164 # Check to see if the nm accepts a BSD-compat flag.
4165 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4166 # nm: unknown option "B" ignored
4167 # Tru64's nm complains that /dev/null is an invalid object file
4168 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4169 */dev/null* | *'Invalid file or object type'*)
4170 lt_cv_path_NM="$tmp_nm -B"
4174 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4176 lt_cv_path_NM="$tmp_nm -p"
4180 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4181 continue # so that we can try to find one that supports BSD flags
4190 : ${lt_cv_path_NM=no}
4193 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4194 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4195 if test "$lt_cv_path_NM" != "no"; then
4198 # Didn't find any BSD compatible name lister, look for dumpbin.
4199 if test -n "$ac_tool_prefix"; then
4200 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 if test -n "$DUMPBIN"; then
4210 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 DUMPBIN=$ac_cv_prog_DUMPBIN
4230 if test -n "$DUMPBIN"; then
4231 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4232 echo "${ECHO_T}$DUMPBIN" >&6; }
4234 { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4239 test -n "$DUMPBIN" && break
4242 if test -z "$DUMPBIN"; then
4243 ac_ct_DUMPBIN=$DUMPBIN
4244 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4246 # Extract the first word of "$ac_prog", so it can be a program name with args.
4247 set dummy $ac_prog; ac_word=$2
4248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4250 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 if test -n "$ac_ct_DUMPBIN"; then
4254 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4274 if test -n "$ac_ct_DUMPBIN"; then
4275 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4276 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4278 { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4283 test -n "$ac_ct_DUMPBIN" && break
4286 if test "x$ac_ct_DUMPBIN" = x; then
4289 case $cross_compiling:$ac_tool_warned in
4291 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4292 whose name does not start with the host triplet. If you think this
4293 configuration is useful to you, please write to autoconf@gnu.org." >&5
4294 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4295 whose name does not start with the host triplet. If you think this
4296 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4297 ac_tool_warned=yes ;;
4299 DUMPBIN=$ac_ct_DUMPBIN
4304 if test "$DUMPBIN" != ":"; then
4308 test -z "$NM" && NM=nm
4315 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4316 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4317 if test "${lt_cv_nm_interface+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 lt_cv_nm_interface="BSD nm"
4321 echo "int some_variable = 0;" > conftest.$ac_ext
4322 (eval echo "\"\$as_me:4322: $ac_compile\"" >&5)
4323 (eval "$ac_compile" 2>conftest.err)
4324 cat conftest.err >&5
4325 (eval echo "\"\$as_me:4325: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4326 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4327 cat conftest.err >&5
4328 (eval echo "\"\$as_me:4328: output\"" >&5)
4329 cat conftest.out >&5
4330 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4331 lt_cv_nm_interface="MS dumpbin"
4335 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4336 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4338 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4339 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4341 if test "$LN_S" = "ln -s"; then
4342 { echo "$as_me:$LINENO: result: yes" >&5
4343 echo "${ECHO_T}yes" >&6; }
4345 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4346 echo "${ECHO_T}no, using $LN_S" >&6; }
4349 # find the maximum length of command line arguments
4350 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4351 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4352 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 # On DJGPP, this test can blow up pretty badly due to problems in libc
4361 # (any single argument exceeding 2000 bytes causes a buffer overrun
4362 # during glob expansion). Even if it were fixed, the result of this
4363 # check would be larger than it should be.
4364 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4368 # Under GNU Hurd, this test is not required because there is
4369 # no limit to the length of command line arguments.
4370 # Libtool will interpret -1 as no limit whatsoever
4371 lt_cv_sys_max_cmd_len=-1;
4375 # On Win9x/ME, this test blows up -- it succeeds, but takes
4376 # about 5 minutes as the teststring grows exponentially.
4377 # Worse, since 9x/ME are not pre-emptively multitasking,
4378 # you end up with a "frozen" computer, even though with patience
4379 # the test eventually succeeds (with a max line length of 256k).
4380 # Instead, let's just punt: use the minimum linelength reported by
4381 # all of the supported platforms: 8192 (on NT/2K/XP).
4382 lt_cv_sys_max_cmd_len=8192;
4386 # On AmigaOS with pdksh, this test takes hours, literally.
4387 # So we just punt and use a minimum line length of 8192.
4388 lt_cv_sys_max_cmd_len=8192;
4391 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4392 # This has been around since 386BSD, at least. Likely further.
4393 if test -x /sbin/sysctl; then
4394 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4395 elif test -x /usr/sbin/sysctl; then
4396 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4398 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4400 # And add a safety zone
4401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4406 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4407 lt_cv_sys_max_cmd_len=196608
4411 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4412 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4413 # nice to cause kernel panics so lets avoid the loop below.
4414 # First set a reasonable default.
4415 lt_cv_sys_max_cmd_len=16384
4417 if test -x /sbin/sysconfig; then
4418 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4419 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4424 lt_cv_sys_max_cmd_len=102400
4426 sysv5* | sco5v6* | sysv4.2uw2*)
4427 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4428 if test -n "$kargmax"; then
4429 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4431 lt_cv_sys_max_cmd_len=32768
4435 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4436 if test -n "$lt_cv_sys_max_cmd_len"; then
4437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4440 # Make teststring a little bigger before we do anything with it.
4441 # a 1K string should be a reasonable start.
4442 for i in 1 2 3 4 5 6 7 8 ; do
4443 teststring=$teststring$teststring
4445 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4446 # If test is not a shell built-in, we'll probably end up computing a
4447 # maximum length that is only half of the actual maximum length, but
4449 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4450 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4451 test $i != 17 # 1/2 MB should be enough
4454 teststring=$teststring$teststring
4456 # Only check the string length outside the loop.
4457 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4459 # Add a significant safety factor because C++ compilers can tack on
4460 # massive amounts of additional arguments before passing them to the
4461 # linker. It appears as though 1/2 is a usable value.
4462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4469 if test -n $lt_cv_sys_max_cmd_len ; then
4470 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4471 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4473 { echo "$as_me:$LINENO: result: none" >&5
4474 echo "${ECHO_T}none" >&6; }
4476 max_cmd_len=$lt_cv_sys_max_cmd_len
4487 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4488 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4489 # Try some XSI features
4492 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4494 && eval 'test $(( 1 + 1 )) -eq 2 \
4495 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4497 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4498 echo "${ECHO_T}$xsi_shell" >&6; }
4501 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4502 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4504 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4506 && lt_shell_append=yes
4507 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4508 echo "${ECHO_T}$lt_shell_append" >&6; }
4511 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4521 # test EBCDIC or ASCII
4522 case `echo X|tr X '\101'` in
4523 A) # ASCII based system
4524 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4525 lt_SP2NL='tr \040 \012'
4526 lt_NL2SP='tr \015\012 \040\040'
4528 *) # EBCDIC based system
4529 lt_SP2NL='tr \100 \n'
4530 lt_NL2SP='tr \r\n \100\100'
4542 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4543 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4544 if test "${lt_cv_ld_reload_flag+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 lt_cv_ld_reload_flag='-r'
4549 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4550 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4551 reload_flag=$lt_cv_ld_reload_flag
4552 case $reload_flag in
4554 *) reload_flag=" $reload_flag" ;;
4556 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4559 if test "$GCC" = yes; then
4560 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4562 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4576 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4577 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4578 if test "${lt_cv_deplibs_check_method+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 lt_cv_file_magic_cmd='$MAGIC_CMD'
4582 lt_cv_file_magic_test_file=
4583 lt_cv_deplibs_check_method='unknown'
4584 # Need to set the preceding variable on all platforms that support
4585 # interlibrary dependencies.
4586 # 'none' -- dependencies not supported.
4587 # `unknown' -- same as none, but documents that we really don't know.
4588 # 'pass_all' -- all dependencies passed with no checks.
4589 # 'test_compile' -- check by making test program.
4590 # 'file_magic [[regex]]' -- check by looking for files in library path
4591 # which responds to the $file_magic_cmd with a given extended regex.
4592 # If you have `file' or equivalent on your system and you're not sure
4593 # whether `pass_all' will *always* work, you probably want this one.
4597 lt_cv_deplibs_check_method=pass_all
4601 lt_cv_deplibs_check_method=pass_all
4605 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4606 lt_cv_file_magic_cmd='/usr/bin/file -L'
4607 lt_cv_file_magic_test_file=/shlib/libc.so
4611 # func_win32_libid is a shell function defined in ltmain.sh
4612 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4613 lt_cv_file_magic_cmd='func_win32_libid'
4617 # Base MSYS/MinGW do not provide the 'file' command needed by
4618 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4619 # unless we find 'file', for example because we are cross-compiling.
4620 if ( file / ) >/dev/null 2>&1; then
4621 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4622 lt_cv_file_magic_cmd='func_win32_libid'
4624 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4625 lt_cv_file_magic_cmd='$OBJDUMP -f'
4629 darwin* | rhapsody*)
4630 lt_cv_deplibs_check_method=pass_all
4633 freebsd* | dragonfly*)
4634 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4637 # Not sure whether the presence of OpenBSD here was a mistake.
4638 # Let's accept both of them until this is cleared up.
4639 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4640 lt_cv_file_magic_cmd=/usr/bin/file
4641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4645 lt_cv_deplibs_check_method=pass_all
4650 lt_cv_deplibs_check_method=pass_all
4653 hpux10.20* | hpux11*)
4654 lt_cv_file_magic_cmd=/usr/bin/file
4657 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4658 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4661 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]'
4662 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4665 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4666 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4672 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4676 irix5* | irix6* | nonstopux*)
4678 *-32|*"-32 ") libmagic=32-bit;;
4679 *-n32|*"-n32 ") libmagic=N32;;
4680 *-64|*"-64 ") libmagic=64-bit;;
4681 *) libmagic=never-match;;
4683 lt_cv_deplibs_check_method=pass_all
4686 # This must be Linux ELF.
4687 linux* | k*bsd*-gnu)
4688 lt_cv_deplibs_check_method=pass_all
4692 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4701 lt_cv_file_magic_cmd=/usr/bin/file
4702 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4706 lt_cv_deplibs_check_method=pass_all
4710 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4717 osf3* | osf4* | osf5*)
4718 lt_cv_deplibs_check_method=pass_all
4722 lt_cv_deplibs_check_method=pass_all
4726 lt_cv_deplibs_check_method=pass_all
4729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4730 lt_cv_deplibs_check_method=pass_all
4734 case $host_vendor in
4736 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]'
4737 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4740 lt_cv_deplibs_check_method=pass_all
4743 lt_cv_file_magic_cmd='/bin/file'
4744 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4747 lt_cv_file_magic_cmd='/bin/file'
4748 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4749 lt_cv_file_magic_test_file=/lib/libc.so
4752 lt_cv_deplibs_check_method=pass_all
4755 lt_cv_deplibs_check_method=pass_all
4761 lt_cv_deplibs_check_method=pass_all
4766 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4767 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4768 file_magic_cmd=$lt_cv_file_magic_cmd
4769 deplibs_check_method=$lt_cv_deplibs_check_method
4770 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4783 if test -n "$ac_tool_prefix"; then
4784 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4785 set dummy ${ac_tool_prefix}ar; ac_word=$2
4786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4788 if test "${ac_cv_prog_AR+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 if test -n "$AR"; then
4792 ac_cv_prog_AR="$AR" # Let the user override the test.
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_AR="${ac_tool_prefix}ar"
4802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 if test -n "$AR"; then
4813 { echo "$as_me:$LINENO: result: $AR" >&5
4814 echo "${ECHO_T}$AR" >&6; }
4816 { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4822 if test -z "$ac_cv_prog_AR"; then
4824 # Extract the first word of "ar", so it can be a program name with args.
4825 set dummy ar; ac_word=$2
4826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 if test -n "$ac_ct_AR"; then
4832 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_ac_ct_AR="ar"
4842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4852 if test -n "$ac_ct_AR"; then
4853 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4854 echo "${ECHO_T}$ac_ct_AR" >&6; }
4856 { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4860 if test "x$ac_ct_AR" = x; then
4863 case $cross_compiling:$ac_tool_warned in
4865 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4866 whose name does not start with the host triplet. If you think this
4867 configuration is useful to you, please write to autoconf@gnu.org." >&5
4868 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4869 whose name does not start with the host triplet. If you think this
4870 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4871 ac_tool_warned=yes ;;
4879 test -z "$AR" && AR=ar
4880 test -z "$AR_FLAGS" && AR_FLAGS=cru
4892 if test -n "$ac_tool_prefix"; then
4893 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4894 set dummy ${ac_tool_prefix}strip; ac_word=$2
4895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4897 if test "${ac_cv_prog_STRIP+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 if test -n "$STRIP"; then
4901 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 STRIP=$ac_cv_prog_STRIP
4921 if test -n "$STRIP"; then
4922 { echo "$as_me:$LINENO: result: $STRIP" >&5
4923 echo "${ECHO_T}$STRIP" >&6; }
4925 { echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6; }
4931 if test -z "$ac_cv_prog_STRIP"; then
4933 # Extract the first word of "strip", so it can be a program name with args.
4934 set dummy strip; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 if test -n "$ac_ct_STRIP"; then
4941 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_prog_ac_ct_STRIP="strip"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4961 if test -n "$ac_ct_STRIP"; then
4962 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4963 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4965 { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4969 if test "x$ac_ct_STRIP" = x; then
4972 case $cross_compiling:$ac_tool_warned in
4974 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4975 whose name does not start with the host triplet. If you think this
4976 configuration is useful to you, please write to autoconf@gnu.org." >&5
4977 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4978 whose name does not start with the host triplet. If you think this
4979 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4980 ac_tool_warned=yes ;;
4985 STRIP="$ac_cv_prog_STRIP"
4988 test -z "$STRIP" && STRIP=:
4995 if test -n "$ac_tool_prefix"; then
4996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5000 if test "${ac_cv_prog_RANLIB+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 if test -n "$RANLIB"; then
5004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 RANLIB=$ac_cv_prog_RANLIB
5024 if test -n "$RANLIB"; then
5025 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5026 echo "${ECHO_T}$RANLIB" >&6; }
5028 { echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6; }
5034 if test -z "$ac_cv_prog_RANLIB"; then
5035 ac_ct_RANLIB=$RANLIB
5036 # Extract the first word of "ranlib", so it can be a program name with args.
5037 set dummy ranlib; ac_word=$2
5038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5040 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 if test -n "$ac_ct_RANLIB"; then
5044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_prog_ac_ct_RANLIB="ranlib"
5054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5064 if test -n "$ac_ct_RANLIB"; then
5065 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5066 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5068 { echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6; }
5072 if test "x$ac_ct_RANLIB" = x; then
5075 case $cross_compiling:$ac_tool_warned in
5077 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5078 whose name does not start with the host triplet. If you think this
5079 configuration is useful to you, please write to autoconf@gnu.org." >&5
5080 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5081 whose name does not start with the host triplet. If you think this
5082 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5083 ac_tool_warned=yes ;;
5085 RANLIB=$ac_ct_RANLIB
5088 RANLIB="$ac_cv_prog_RANLIB"
5091 test -z "$RANLIB" && RANLIB=:
5098 # Determine commands to create old-style static archives.
5099 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5100 old_postinstall_cmds='chmod 644 $oldlib'
5101 old_postuninstall_cmds=
5103 if test -n "$RANLIB"; then
5106 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5109 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5112 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5148 # If no C compiler was specified, use CC.
5151 # If no C compiler flags were specified, use CFLAGS.
5152 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5154 # Allow CC to be a program name with arguments.
5158 # Check for command to grab the raw symbol name followed by C symbol from nm.
5159 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5160 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5161 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 # These are sane defaults that work on at least a few old systems.
5166 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5168 # Character class describing NM global symbol codes.
5169 symcode='[BCDEGRST]'
5171 # Regexp to match symbols that can be accessed directly from C.
5172 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5174 # Define system-specific variables.
5179 cygwin* | mingw* | pw32*)
5180 symcode='[ABCDGISTW]'
5183 if test "$host_cpu" = ia64; then
5184 symcode='[ABCDEGRST]'
5188 symcode='[BCDEGRST]'
5191 symcode='[BCDEGQRST]'
5202 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5210 # If we're using GNU nm, then use its standard symbol codes.
5211 case `$NM -V 2>&1` in
5212 *GNU* | *'with BFD'*)
5213 symcode='[ABCDGIRSTW]' ;;
5216 # Transform an extracted symbol line into a proper C declaration.
5217 # Some systems (esp. on ia64) link data and code symbols differently,
5218 # so use this general approach.
5219 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5221 # Transform an extracted symbol line into symbol name and symbol address
5222 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5223 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'"
5225 # Handle CRLF in mingw tool chain
5229 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5233 # Try without a prefix underscore, then with it.
5234 for ac_symprfx in "" "_"; do
5236 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5237 symxfrm="\\1 $ac_symprfx\\2 \\2"
5239 # Write the raw and C identifiers.
5240 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5241 # Fake it for dumpbin and say T for any non-static function
5242 # and D for any global variable.
5243 # Also find C++ and __fastcall symbols from MSVC++,
5244 # which start with @ or ?.
5245 lt_cv_sys_global_symbol_pipe="$AWK '"\
5246 " {last_section=section; section=\$ 3};"\
5247 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5248 " \$ 0!~/External *\|/{next};"\
5249 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5250 " {if(hide[section]) next};"\
5251 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5252 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5253 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5254 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5255 " ' prfx=^$ac_symprfx"
5257 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5260 # Check to see that the pipe works correctly.
5264 cat > conftest.$ac_ext <<_LT_EOF
5269 void nm_test_func(void);
5270 void nm_test_func(void){}
5274 int main(){nm_test_var='a';nm_test_func();return(0);}
5277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5278 (eval $ac_compile) 2>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; then
5282 # Now try to grab the symbols.
5284 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5285 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } && test -s "$nlist"; then
5289 # Try sorting and uniquifying the output.
5290 if sort "$nlist" | uniq > "$nlist"T; then
5291 mv -f "$nlist"T "$nlist"
5296 # Make sure that we snagged all the symbols we need.
5297 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5298 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5299 cat <<_LT_EOF > conftest.$ac_ext
5305 # Now generate the symbol file.
5306 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5308 cat <<_LT_EOF >> conftest.$ac_ext
5310 /* The mapping between symbol names and symbols. */
5315 lt__PROGRAM__LTX_preloaded_symbols[] =
5317 { "@PROGRAM@", (void *) 0 },
5319 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5320 cat <<\_LT_EOF >> conftest.$ac_ext
5324 /* This works around a problem in FreeBSD linker */
5325 #ifdef FREEBSD_WORKAROUND
5326 static const void *lt_preloaded_setup() {
5327 return lt__PROGRAM__LTX_preloaded_symbols;
5335 # Now try linking the two files.
5336 mv conftest.$ac_objext conftstm.$ac_objext
5337 lt_save_LIBS="$LIBS"
5338 lt_save_CFLAGS="$CFLAGS"
5339 LIBS="conftstm.$ac_objext"
5340 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5342 (eval $ac_link) 2>&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5348 LIBS="$lt_save_LIBS"
5349 CFLAGS="$lt_save_CFLAGS"
5351 echo "cannot find nm_test_func in $nlist" >&5
5354 echo "cannot find nm_test_var in $nlist" >&5
5357 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5360 echo "$progname: failed program was:" >&5
5361 cat conftest.$ac_ext >&5
5363 rm -rf conftest* conftst*
5365 # Do not use the global_symbol_pipe unless it works.
5366 if test "$pipe_works" = yes; then
5369 lt_cv_sys_global_symbol_pipe=
5375 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5376 lt_cv_sys_global_symbol_to_cdecl=
5378 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5379 { echo "$as_me:$LINENO: result: failed" >&5
5380 echo "${ECHO_T}failed" >&6; }
5382 { echo "$as_me:$LINENO: result: ok" >&5
5383 echo "${ECHO_T}ok" >&6; }
5408 # Check whether --enable-libtool-lock was given.
5409 if test "${enable_libtool_lock+set}" = set; then
5410 enableval=$enable_libtool_lock;
5413 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5415 # Some flags need to be propagated to the compiler or linker for good
5419 # Find out which ABI we are using.
5420 echo 'int i;' > conftest.$ac_ext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; then
5426 case `/usr/bin/file conftest.$ac_objext` in
5438 # Find out which ABI we are using.
5439 echo '#line 5439 "configure"' > conftest.$ac_ext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441 (eval $ac_compile) 2>&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; then
5445 if test "$lt_cv_prog_gnu_ld" = yes; then
5446 case `/usr/bin/file conftest.$ac_objext` in
5448 LD="${LD-ld} -melf32bsmip"
5451 LD="${LD-ld} -melf32bmipn32"
5454 LD="${LD-ld} -melf64bmip"
5458 case `/usr/bin/file conftest.$ac_objext` in
5474 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5475 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5476 # Find out which ABI we are using.
5477 echo 'int i;' > conftest.$ac_ext
5478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5479 (eval $ac_compile) 2>&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; then
5483 case `/usr/bin/file conftest.o` in
5486 x86_64-*kfreebsd*-gnu)
5487 LD="${LD-ld} -m elf_i386_fbsd"
5490 LD="${LD-ld} -m elf_i386"
5492 ppc64-*linux*|powerpc64-*linux*)
5493 LD="${LD-ld} -m elf32ppclinux"
5496 LD="${LD-ld} -m elf_s390"
5499 LD="${LD-ld} -m elf32_sparc"
5505 x86_64-*kfreebsd*-gnu)
5506 LD="${LD-ld} -m elf_x86_64_fbsd"
5509 LD="${LD-ld} -m elf_x86_64"
5511 ppc*-*linux*|powerpc*-*linux*)
5512 LD="${LD-ld} -m elf64ppc"
5514 s390*-*linux*|s390*-*tpf*)
5515 LD="${LD-ld} -m elf64_s390"
5518 LD="${LD-ld} -m elf64_sparc"
5528 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5529 SAVE_CFLAGS="$CFLAGS"
5530 CFLAGS="$CFLAGS -belf"
5531 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5532 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5533 if test "${lt_cv_cc_needs_belf+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 ac_cpp='$CPP $CPPFLAGS'
5538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5542 cat >conftest.$ac_ext <<_ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5557 rm -f conftest.$ac_objext conftest$ac_exeext
5558 if { (ac_try="$ac_link"
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_link") 2>conftest.er1
5566 grep -v '^ *+' conftest.er1 >conftest.err
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && {
5571 test -z "$ac_c_werror_flag" ||
5572 test ! -s conftest.err
5573 } && test -s conftest$ac_exeext &&
5574 $as_test_x conftest$ac_exeext; then
5575 lt_cv_cc_needs_belf=yes
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5580 lt_cv_cc_needs_belf=no
5583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5584 conftest$ac_exeext conftest.$ac_ext
5586 ac_cpp='$CPP $CPPFLAGS'
5587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5592 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5593 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5594 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5595 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5596 CFLAGS="$SAVE_CFLAGS"
5600 # Find out which ABI we are using.
5601 echo 'int i;' > conftest.$ac_ext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603 (eval $ac_compile) 2>&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; then
5607 case `/usr/bin/file conftest.o` in
5609 case $lt_cv_prog_gnu_ld in
5610 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5612 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5624 need_locks="$enable_libtool_lock"
5628 rhapsody* | darwin*)
5629 if test -n "$ac_tool_prefix"; then
5630 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5631 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5634 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 if test -n "$DSYMUTIL"; then
5638 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5658 if test -n "$DSYMUTIL"; then
5659 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5660 echo "${ECHO_T}$DSYMUTIL" >&6; }
5662 { echo "$as_me:$LINENO: result: no" >&5
5663 echo "${ECHO_T}no" >&6; }
5668 if test -z "$ac_cv_prog_DSYMUTIL"; then
5669 ac_ct_DSYMUTIL=$DSYMUTIL
5670 # Extract the first word of "dsymutil", so it can be a program name with args.
5671 set dummy dsymutil; ac_word=$2
5672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5674 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 if test -n "$ac_ct_DSYMUTIL"; then
5678 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5698 if test -n "$ac_ct_DSYMUTIL"; then
5699 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5700 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5702 { echo "$as_me:$LINENO: result: no" >&5
5703 echo "${ECHO_T}no" >&6; }
5706 if test "x$ac_ct_DSYMUTIL" = x; then
5709 case $cross_compiling:$ac_tool_warned in
5711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5712 whose name does not start with the host triplet. If you think this
5713 configuration is useful to you, please write to autoconf@gnu.org." >&5
5714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5715 whose name does not start with the host triplet. If you think this
5716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5717 ac_tool_warned=yes ;;
5719 DSYMUTIL=$ac_ct_DSYMUTIL
5722 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5725 if test -n "$ac_tool_prefix"; then
5726 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5727 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5730 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 if test -n "$NMEDIT"; then
5734 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 NMEDIT=$ac_cv_prog_NMEDIT
5754 if test -n "$NMEDIT"; then
5755 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5756 echo "${ECHO_T}$NMEDIT" >&6; }
5758 { echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6; }
5764 if test -z "$ac_cv_prog_NMEDIT"; then
5765 ac_ct_NMEDIT=$NMEDIT
5766 # Extract the first word of "nmedit", so it can be a program name with args.
5767 set dummy nmedit; ac_word=$2
5768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5770 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 if test -n "$ac_ct_NMEDIT"; then
5774 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5794 if test -n "$ac_ct_NMEDIT"; then
5795 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5796 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5798 { echo "$as_me:$LINENO: result: no" >&5
5799 echo "${ECHO_T}no" >&6; }
5802 if test "x$ac_ct_NMEDIT" = x; then
5805 case $cross_compiling:$ac_tool_warned in
5807 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5808 whose name does not start with the host triplet. If you think this
5809 configuration is useful to you, please write to autoconf@gnu.org." >&5
5810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5811 whose name does not start with the host triplet. If you think this
5812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5813 ac_tool_warned=yes ;;
5815 NMEDIT=$ac_ct_NMEDIT
5818 NMEDIT="$ac_cv_prog_NMEDIT"
5821 if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5826 if test "${ac_cv_prog_LIPO+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 if test -n "$LIPO"; then
5830 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 LIPO=$ac_cv_prog_LIPO
5850 if test -n "$LIPO"; then
5851 { echo "$as_me:$LINENO: result: $LIPO" >&5
5852 echo "${ECHO_T}$LIPO" >&6; }
5854 { echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6; }
5860 if test -z "$ac_cv_prog_LIPO"; then
5862 # Extract the first word of "lipo", so it can be a program name with args.
5863 set dummy lipo; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 if test -n "$ac_ct_LIPO"; then
5870 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_ac_ct_LIPO="lipo"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5890 if test -n "$ac_ct_LIPO"; then
5891 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5892 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5894 { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5898 if test "x$ac_ct_LIPO" = x; then
5901 case $cross_compiling:$ac_tool_warned in
5903 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5904 whose name does not start with the host triplet. If you think this
5905 configuration is useful to you, please write to autoconf@gnu.org." >&5
5906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5907 whose name does not start with the host triplet. If you think this
5908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5909 ac_tool_warned=yes ;;
5914 LIPO="$ac_cv_prog_LIPO"
5917 if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5919 set dummy ${ac_tool_prefix}otool; ac_word=$2
5920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922 if test "${ac_cv_prog_OTOOL+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 if test -n "$OTOOL"; then
5926 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 OTOOL=$ac_cv_prog_OTOOL
5946 if test -n "$OTOOL"; then
5947 { echo "$as_me:$LINENO: result: $OTOOL" >&5
5948 echo "${ECHO_T}$OTOOL" >&6; }
5950 { echo "$as_me:$LINENO: result: no" >&5
5951 echo "${ECHO_T}no" >&6; }
5956 if test -z "$ac_cv_prog_OTOOL"; then
5958 # Extract the first word of "otool", so it can be a program name with args.
5959 set dummy otool; ac_word=$2
5960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5962 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 if test -n "$ac_ct_OTOOL"; then
5966 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_prog_ac_ct_OTOOL="otool"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5986 if test -n "$ac_ct_OTOOL"; then
5987 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5988 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5990 { echo "$as_me:$LINENO: result: no" >&5
5991 echo "${ECHO_T}no" >&6; }
5994 if test "x$ac_ct_OTOOL" = x; then
5997 case $cross_compiling:$ac_tool_warned in
5999 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6000 whose name does not start with the host triplet. If you think this
6001 configuration is useful to you, please write to autoconf@gnu.org." >&5
6002 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6003 whose name does not start with the host triplet. If you think this
6004 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6005 ac_tool_warned=yes ;;
6010 OTOOL="$ac_cv_prog_OTOOL"
6013 if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6018 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 if test -n "$OTOOL64"; then
6022 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6031 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 OTOOL64=$ac_cv_prog_OTOOL64
6042 if test -n "$OTOOL64"; then
6043 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6044 echo "${ECHO_T}$OTOOL64" >&6; }
6046 { echo "$as_me:$LINENO: result: no" >&5
6047 echo "${ECHO_T}no" >&6; }
6052 if test -z "$ac_cv_prog_OTOOL64"; then
6053 ac_ct_OTOOL64=$OTOOL64
6054 # Extract the first word of "otool64", so it can be a program name with args.
6055 set dummy otool64; ac_word=$2
6056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 if test -n "$ac_ct_OTOOL64"; then
6062 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_prog_ac_ct_OTOOL64="otool64"
6072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6082 if test -n "$ac_ct_OTOOL64"; then
6083 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6084 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6086 { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6090 if test "x$ac_ct_OTOOL64" = x; then
6093 case $cross_compiling:$ac_tool_warned in
6095 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6096 whose name does not start with the host triplet. If you think this
6097 configuration is useful to you, please write to autoconf@gnu.org." >&5
6098 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6099 whose name does not start with the host triplet. If you think this
6100 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6101 ac_tool_warned=yes ;;
6103 OTOOL64=$ac_ct_OTOOL64
6106 OTOOL64="$ac_cv_prog_OTOOL64"
6135 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6136 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6137 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 lt_cv_apple_cc_single_mod=no
6141 if test -z "${LT_MULTI_MODULE}"; then
6142 # By default we will add the -single_module flag. You can override
6143 # by either setting the environment variable LT_MULTI_MODULE
6144 # non-empty at configure time, or by adding -multi_module to the
6146 rm -rf libconftest.dylib*
6147 echo "int foo(void){return 1;}" > conftest.c
6148 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6149 -dynamiclib -Wl,-single_module conftest.c" >&5
6150 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6151 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6153 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6154 lt_cv_apple_cc_single_mod=yes
6156 cat conftest.err >&5
6158 rm -rf libconftest.dylib*
6162 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6163 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6164 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6165 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6166 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 lt_cv_ld_exported_symbols_list=no
6170 save_LDFLAGS=$LDFLAGS
6171 echo "_main" > conftest.sym
6172 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6173 cat >conftest.$ac_ext <<_ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6188 rm -f conftest.$ac_objext conftest$ac_exeext
6189 if { (ac_try="$ac_link"
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_link") 2>conftest.er1
6197 grep -v '^ *+' conftest.er1 >conftest.err
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && {
6202 test -z "$ac_c_werror_flag" ||
6203 test ! -s conftest.err
6204 } && test -s conftest$ac_exeext &&
6205 $as_test_x conftest$ac_exeext; then
6206 lt_cv_ld_exported_symbols_list=yes
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6211 lt_cv_ld_exported_symbols_list=no
6214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6215 conftest$ac_exeext conftest.$ac_ext
6216 LDFLAGS="$save_LDFLAGS"
6219 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6220 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6222 rhapsody* | darwin1.[012])
6223 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6225 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6226 darwin*) # darwin 5.x on
6227 # if running on 10.5 or later, the deployment target defaults
6228 # to the OS version, if on x86, and 10.4, the deployment
6229 # target defaults to 10.4. Don't you love it?
6230 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6231 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6232 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6234 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6236 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6240 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6241 _lt_dar_single_mod='$single_module'
6243 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6244 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6246 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6248 if test "$DSYMUTIL" != ":"; then
6249 _lt_dsymutil='~$DSYMUTIL $lib || :'
6257 ac_cpp='$CPP $CPPFLAGS'
6258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6261 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6262 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6263 # On Suns, sometimes $CPP names a directory.
6264 if test -n "$CPP" && test -d "$CPP"; then
6267 if test -z "$CPP"; then
6268 if test "${ac_cv_prog_CPP+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 # Double quotes because CPP needs to be expanded
6272 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6275 for ac_c_preproc_warn_flag in '' yes
6277 # Use a header file that comes with gcc, so configuring glibc
6278 # with a fresh cross-compiler works.
6279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6280 # <limits.h> exists even on freestanding compilers.
6281 # On the NeXT, cc -E runs the code through the compiler's parser,
6282 # not just through cpp. "Syntax error" is here to catch this case.
6283 cat >conftest.$ac_ext <<_ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6290 # include <limits.h>
6292 # include <assert.h>
6296 if { (ac_try="$ac_cpp conftest.$ac_ext"
6298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299 *) ac_try_echo=$ac_try;;
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6304 grep -v '^ *+' conftest.er1 >conftest.err
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } >/dev/null && {
6309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6310 test ! -s conftest.err
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 # Broken: fails on valid input.
6321 rm -f conftest.err conftest.$ac_ext
6323 # OK, works on sane cases. Now check whether nonexistent headers
6324 # can be detected and how.
6325 cat >conftest.$ac_ext <<_ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 #include <ac_nonexistent.h>
6333 if { (ac_try="$ac_cpp conftest.$ac_ext"
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6341 grep -v '^ *+' conftest.er1 >conftest.err
6343 cat conftest.err >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } >/dev/null && {
6346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6347 test ! -s conftest.err
6349 # Broken: success on invalid input.
6352 echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6355 # Passes both tests.
6360 rm -f conftest.err conftest.$ac_ext
6363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6364 rm -f conftest.err conftest.$ac_ext
6365 if $ac_preproc_ok; then
6377 { echo "$as_me:$LINENO: result: $CPP" >&5
6378 echo "${ECHO_T}$CPP" >&6; }
6380 for ac_c_preproc_warn_flag in '' yes
6382 # Use a header file that comes with gcc, so configuring glibc
6383 # with a fresh cross-compiler works.
6384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6385 # <limits.h> exists even on freestanding compilers.
6386 # On the NeXT, cc -E runs the code through the compiler's parser,
6387 # not just through cpp. "Syntax error" is here to catch this case.
6388 cat >conftest.$ac_ext <<_ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6395 # include <limits.h>
6397 # include <assert.h>
6401 if { (ac_try="$ac_cpp conftest.$ac_ext"
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6409 grep -v '^ *+' conftest.er1 >conftest.err
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } >/dev/null && {
6414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6415 test ! -s conftest.err
6419 echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6422 # Broken: fails on valid input.
6426 rm -f conftest.err conftest.$ac_ext
6428 # OK, works on sane cases. Now check whether nonexistent headers
6429 # can be detected and how.
6430 cat >conftest.$ac_ext <<_ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 #include <ac_nonexistent.h>
6438 if { (ac_try="$ac_cpp conftest.$ac_ext"
6440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441 *) ac_try_echo=$ac_try;;
6443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6446 grep -v '^ *+' conftest.er1 >conftest.err
6448 cat conftest.err >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } >/dev/null && {
6451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6452 test ! -s conftest.err
6454 # Broken: success on invalid input.
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6460 # Passes both tests.
6465 rm -f conftest.err conftest.$ac_ext
6468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6469 rm -f conftest.err conftest.$ac_ext
6470 if $ac_preproc_ok; then
6473 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6474 See \`config.log' for more details." >&5
6475 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6476 See \`config.log' for more details." >&2;}
6477 { (exit 1); exit 1; }; }
6481 ac_cpp='$CPP $CPPFLAGS'
6482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6487 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6488 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6489 if test "${ac_cv_header_stdc+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 cat >conftest.$ac_ext <<_ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6511 rm -f conftest.$ac_objext
6512 if { (ac_try="$ac_compile"
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_compile") 2>conftest.er1
6520 grep -v '^ *+' conftest.er1 >conftest.err
6522 cat conftest.err >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } && {
6525 test -z "$ac_c_werror_flag" ||
6526 test ! -s conftest.err
6527 } && test -s conftest.$ac_objext; then
6528 ac_cv_header_stdc=yes
6530 echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6533 ac_cv_header_stdc=no
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 if test $ac_cv_header_stdc = yes; then
6539 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6540 cat >conftest.$ac_ext <<_ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6550 $EGREP "memchr" >/dev/null 2>&1; then
6553 ac_cv_header_stdc=no
6559 if test $ac_cv_header_stdc = yes; then
6560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6561 cat >conftest.$ac_ext <<_ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6571 $EGREP "free" >/dev/null 2>&1; then
6574 ac_cv_header_stdc=no
6580 if test $ac_cv_header_stdc = yes; then
6581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6582 if test "$cross_compiling" = yes; then
6585 cat >conftest.$ac_ext <<_ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6593 #if ((' ' & 0x0FF) == 0x020)
6594 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6595 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6597 # define ISLOWER(c) \
6598 (('a' <= (c) && (c) <= 'i') \
6599 || ('j' <= (c) && (c) <= 'r') \
6600 || ('s' <= (c) && (c) <= 'z'))
6601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6609 for (i = 0; i < 256; i++)
6610 if (XOR (islower (i), ISLOWER (i))
6611 || toupper (i) != TOUPPER (i))
6616 rm -f conftest$ac_exeext
6617 if { (ac_try="$ac_link"
6619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620 *) ac_try_echo=$ac_try;;
6622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6623 (eval "$ac_link") 2>&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6627 { (case "(($ac_try" in
6628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6632 (eval "$ac_try") 2>&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6638 echo "$as_me: program exited with status $ac_status" >&5
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6643 ac_cv_header_stdc=no
6645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6651 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6652 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6653 if test $ac_cv_header_stdc = yes; then
6655 cat >>confdefs.h <<\_ACEOF
6656 #define STDC_HEADERS 1
6661 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6671 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6672 inttypes.h stdint.h unistd.h
6674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 cat >conftest.$ac_ext <<_ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 $ac_includes_default
6688 #include <$ac_header>
6690 rm -f conftest.$ac_objext
6691 if { (ac_try="$ac_compile"
6693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694 *) ac_try_echo=$ac_try;;
6696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697 (eval "$ac_compile") 2>conftest.er1
6699 grep -v '^ *+' conftest.er1 >conftest.err
6701 cat conftest.err >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } && {
6704 test -z "$ac_c_werror_flag" ||
6705 test ! -s conftest.err
6706 } && test -s conftest.$ac_objext; then
6707 eval "$as_ac_Header=yes"
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6712 eval "$as_ac_Header=no"
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717 ac_res=`eval echo '${'$as_ac_Header'}'`
6718 { echo "$as_me:$LINENO: result: $ac_res" >&5
6719 echo "${ECHO_T}$ac_res" >&6; }
6720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6721 cat >>confdefs.h <<_ACEOF
6722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6731 for ac_header in dlfcn.h
6733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 cat >conftest.$ac_ext <<_ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 $ac_includes_default
6747 #include <$ac_header>
6749 rm -f conftest.$ac_objext
6750 if { (ac_try="$ac_compile"
6752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753 *) ac_try_echo=$ac_try;;
6755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6756 (eval "$ac_compile") 2>conftest.er1
6758 grep -v '^ *+' conftest.er1 >conftest.err
6760 cat conftest.err >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } && {
6763 test -z "$ac_c_werror_flag" ||
6764 test ! -s conftest.err
6765 } && test -s conftest.$ac_objext; then
6766 eval "$as_ac_Header=yes"
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6771 eval "$as_ac_Header=no"
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776 ac_res=`eval echo '${'$as_ac_Header'}'`
6777 { echo "$as_me:$LINENO: result: $ac_res" >&5
6778 echo "${ECHO_T}$ac_res" >&6; }
6779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6780 cat >>confdefs.h <<_ACEOF
6781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6800 # Check whether --enable-shared was given.
6801 if test "${enable_shared+set}" = set; then
6802 enableval=$enable_shared; p=${PACKAGE-default}
6804 yes) enable_shared=yes ;;
6805 no) enable_shared=no ;;
6808 # Look at the argument we got. We use all the common list separators.
6809 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6810 for pkg in $enableval; do
6812 if test "X$pkg" = "X$p"; then
6831 # Check whether --enable-static was given.
6832 if test "${enable_static+set}" = set; then
6833 enableval=$enable_static; p=${PACKAGE-default}
6835 yes) enable_static=yes ;;
6836 no) enable_static=no ;;
6839 # Look at the argument we got. We use all the common list separators.
6840 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6841 for pkg in $enableval; do
6843 if test "X$pkg" = "X$p"; then
6863 # Check whether --with-pic was given.
6864 if test "${with_pic+set}" = set; then
6865 withval=$with_pic; pic_mode="$withval"
6871 test -z "$pic_mode" && pic_mode=default
6879 # Check whether --enable-fast-install was given.
6880 if test "${enable_fast_install+set}" = set; then
6881 enableval=$enable_fast_install; p=${PACKAGE-default}
6883 yes) enable_fast_install=yes ;;
6884 no) enable_fast_install=no ;;
6886 enable_fast_install=no
6887 # Look at the argument we got. We use all the common list separators.
6888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6889 for pkg in $enableval; do
6891 if test "X$pkg" = "X$p"; then
6892 enable_fast_install=yes
6899 enable_fast_install=yes
6912 # This can be used to rebuild libtool when needed
6913 LIBTOOL_DEPS="$ltmain"
6915 # Always use our own libtool.
6916 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6942 test -z "$LN_S" && LN_S="ln -s"
6957 if test -n "${ZSH_VERSION+set}" ; then
6958 setopt NO_GLOB_SUBST
6961 { echo "$as_me:$LINENO: checking for objdir" >&5
6962 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6963 if test "${lt_cv_objdir+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 rm -f .libs 2>/dev/null
6967 mkdir .libs 2>/dev/null
6968 if test -d .libs; then
6971 # MS-DOS does not allow filenames that begin with a dot.
6974 rmdir .libs 2>/dev/null
6976 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6977 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6978 objdir=$lt_cv_objdir
6984 cat >>confdefs.h <<_ACEOF
6985 #define LT_OBJDIR "$lt_cv_objdir/"
7006 # AIX sometimes has problems with the GCC collect2 program. For some
7007 # reason, if we set the COLLECT_NAMES environment variable, the problems
7008 # vanish in a puff of smoke.
7009 if test "X${COLLECT_NAMES+set}" != Xset; then
7011 export COLLECT_NAMES
7016 # Sed substitution that helps us do robust quoting. It backslashifies
7017 # metacharacters that are still active within double-quoted strings.
7018 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7020 # Same as above, but do not quote variable references.
7021 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7023 # Sed substitution to delay expansion of an escaped shell variable in a
7024 # double_quote_subst'ed string.
7025 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7027 # Sed substitution to delay expansion of an escaped single quote.
7028 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7030 # Sed substitution to avoid accidental globbing in evaled expressions
7031 no_glob_subst='s/\*/\\\*/g'
7035 can_build_shared=yes
7037 # All known linkers require a `.a' archive for static linking (except MSVC,
7038 # which needs '.lib').
7041 with_gnu_ld="$lt_cv_prog_gnu_ld"
7044 old_CFLAGS="$CFLAGS"
7046 # Set sane defaults for various variables
7047 test -z "$CC" && CC=cc
7048 test -z "$LTCC" && LTCC=$CC
7049 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7050 test -z "$LD" && LD=ld
7051 test -z "$ac_objext" && ac_objext=o
7053 for cc_temp in $compiler""; do
7055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7061 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7064 # Only perform the check for file, if the check method requires it
7065 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7066 case $deplibs_check_method in
7068 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7069 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7070 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7071 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7079 lt_save_MAGIC_CMD="$MAGIC_CMD"
7080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7081 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7082 for ac_dir in $ac_dummy; do
7084 test -z "$ac_dir" && ac_dir=.
7085 if test -f $ac_dir/${ac_tool_prefix}file; then
7086 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7087 if test -n "$file_magic_test_file"; then
7088 case $deplibs_check_method in
7090 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7092 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7093 $EGREP "$file_magic_regex" > /dev/null; then
7098 *** Warning: the command libtool uses to detect shared libraries,
7099 *** $file_magic_cmd, produces output that libtool cannot recognize.
7100 *** The result is that libtool may fail to recognize shared libraries
7101 *** as such. This will affect the creation of libtool libraries that
7102 *** depend on shared libraries, but programs linked with such libtool
7103 *** libraries will work regardless of this problem. Nevertheless, you
7104 *** may want to report the problem to your system manager and/or to
7105 *** bug-libtool@gnu.org
7115 MAGIC_CMD="$lt_save_MAGIC_CMD"
7120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7121 if test -n "$MAGIC_CMD"; then
7122 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7123 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7125 { echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6; }
7133 if test -z "$lt_cv_path_MAGIC_CMD"; then
7134 if test -n "$ac_tool_prefix"; then
7135 { echo "$as_me:$LINENO: checking for file" >&5
7136 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7137 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7145 lt_save_MAGIC_CMD="$MAGIC_CMD"
7146 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7147 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7148 for ac_dir in $ac_dummy; do
7150 test -z "$ac_dir" && ac_dir=.
7151 if test -f $ac_dir/file; then
7152 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7153 if test -n "$file_magic_test_file"; then
7154 case $deplibs_check_method in
7156 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7158 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7159 $EGREP "$file_magic_regex" > /dev/null; then
7164 *** Warning: the command libtool uses to detect shared libraries,
7165 *** $file_magic_cmd, produces output that libtool cannot recognize.
7166 *** The result is that libtool may fail to recognize shared libraries
7167 *** as such. This will affect the creation of libtool libraries that
7168 *** depend on shared libraries, but programs linked with such libtool
7169 *** libraries will work regardless of this problem. Nevertheless, you
7170 *** may want to report the problem to your system manager and/or to
7171 *** bug-libtool@gnu.org
7181 MAGIC_CMD="$lt_save_MAGIC_CMD"
7186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7187 if test -n "$MAGIC_CMD"; then
7188 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7189 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7191 { echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6; }
7205 # Use C for the default configuration in the libtool script
7209 ac_cpp='$CPP $CPPFLAGS'
7210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7215 # Source file extension for C test sources.
7218 # Object file extension for compiled C test sources.
7222 # Code to be used in simple compile tests
7223 lt_simple_compile_test_code="int some_variable = 0;"
7225 # Code to be used in simple link tests
7226 lt_simple_link_test_code='int main(){return(0);}'
7234 # If no C compiler was specified, use CC.
7237 # If no C compiler flags were specified, use CFLAGS.
7238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7240 # Allow CC to be a program name with arguments.
7243 # Save the default compiler, since it gets overwritten when the other
7244 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7245 compiler_DEFAULT=$CC
7247 # save warnings/boilerplate of simple test code
7248 ac_outfile=conftest.$ac_objext
7249 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7250 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7251 _lt_compiler_boilerplate=`cat conftest.err`
7254 ac_outfile=conftest.$ac_objext
7255 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7256 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7257 _lt_linker_boilerplate=`cat conftest.err`
7261 if test -n "$compiler"; then
7263 lt_prog_compiler_no_builtin_flag=
7265 if test "$GCC" = yes; then
7266 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7268 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7269 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7270 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 lt_cv_prog_compiler_rtti_exceptions=no
7274 ac_outfile=conftest.$ac_objext
7275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7276 lt_compiler_flag="-fno-rtti -fno-exceptions"
7277 # Insert the option either (1) after the last *FLAGS variable, or
7278 # (2) before a word containing "conftest.", or (3) at the end.
7279 # Note that $ac_compile itself does not contain backslashes and begins
7280 # with a dollar sign (not a hyphen), so the echo should work correctly.
7281 # The option is referenced via a variable to avoid confusing sed.
7282 lt_compile=`echo "$ac_compile" | $SED \
7283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7285 -e 's:$: $lt_compiler_flag:'`
7286 (eval echo "\"\$as_me:7286: $lt_compile\"" >&5)
7287 (eval "$lt_compile" 2>conftest.err)
7289 cat conftest.err >&5
7290 echo "$as_me:7290: \$? = $ac_status" >&5
7291 if (exit $ac_status) && test -s "$ac_outfile"; then
7292 # The compiler can only warn and ignore the option if not recognized
7293 # So say no if there are warnings other than the usual output.
7294 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7296 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7297 lt_cv_prog_compiler_rtti_exceptions=yes
7303 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7304 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7306 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7307 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7319 lt_prog_compiler_wl=
7320 lt_prog_compiler_pic=
7321 lt_prog_compiler_static=
7323 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7324 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7326 if test "$GCC" = yes; then
7327 lt_prog_compiler_wl='-Wl,'
7328 lt_prog_compiler_static='-static'
7332 # All AIX code is PIC.
7333 if test "$host_cpu" = ia64; then
7334 # AIX 5 now supports IA64 processor
7335 lt_prog_compiler_static='-Bstatic'
7342 # see comment about AmigaOS4 .so support
7343 lt_prog_compiler_pic='-fPIC'
7346 # FIXME: we need at least 68020 code to build shared libraries, but
7347 # adding the `-m68020' flag to GCC prevents building anything better,
7349 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7354 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7355 # PIC is the default for these OSes.
7358 mingw* | cygwin* | pw32* | os2*)
7359 # This hack is so that the source file can tell whether it is being
7360 # built for inclusion in a dll (and should export symbols for example).
7361 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7362 # (--disable-auto-import) libraries
7363 lt_prog_compiler_pic='-DDLL_EXPORT'
7366 darwin* | rhapsody*)
7367 # PIC is the default on this platform
7368 # Common symbols not allowed in MH_DYLIB files
7369 lt_prog_compiler_pic='-fno-common'
7373 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7380 lt_prog_compiler_pic='-fPIC'
7386 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7387 # Instead, we relocate shared libraries at runtime.
7391 # Just because we use GCC doesn't mean we suddenly get shared libraries
7392 # on systems that don't support them.
7393 lt_prog_compiler_can_build_shared=no
7398 # QNX uses GNU C++, but need to define -shared option too, otherwise
7400 lt_prog_compiler_pic='-fPIC -shared'
7404 if test -d /usr/nec; then
7405 lt_prog_compiler_pic=-Kconform_pic
7410 lt_prog_compiler_pic='-fPIC'
7414 # PORTME Check for flag to pass linker flags through the system compiler.
7417 lt_prog_compiler_wl='-Wl,'
7418 if test "$host_cpu" = ia64; then
7419 # AIX 5 now supports IA64 processor
7420 lt_prog_compiler_static='-Bstatic'
7422 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7426 mingw* | cygwin* | pw32* | os2*)
7427 # This hack is so that the source file can tell whether it is being
7428 # built for inclusion in a dll (and should export symbols for example).
7429 lt_prog_compiler_pic='-DDLL_EXPORT'
7432 hpux9* | hpux10* | hpux11*)
7433 lt_prog_compiler_wl='-Wl,'
7434 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7441 lt_prog_compiler_pic='+Z'
7444 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7445 lt_prog_compiler_static='${wl}-a ${wl}archive'
7448 irix5* | irix6* | nonstopux*)
7449 lt_prog_compiler_wl='-Wl,'
7450 # PIC (with -KPIC) is the default.
7451 lt_prog_compiler_static='-non_shared'
7454 linux* | k*bsd*-gnu)
7455 case $cc_basename in
7456 icc* | ecc* | ifort*)
7457 lt_prog_compiler_wl='-Wl,'
7458 lt_prog_compiler_pic='-KPIC'
7459 lt_prog_compiler_static='-static'
7461 pgcc* | pgf77* | pgf90* | pgf95*)
7462 # Portland Group compilers (*not* the Pentium gcc compiler,
7463 # which looks to be a dead project)
7464 lt_prog_compiler_wl='-Wl,'
7465 lt_prog_compiler_pic='-fpic'
7466 lt_prog_compiler_static='-Bstatic'
7469 lt_prog_compiler_wl='-Wl,'
7470 # All Alpha code is PIC.
7471 lt_prog_compiler_static='-non_shared'
7474 # IBM XL C 8.0/Fortran 10.1 on PPC
7475 lt_prog_compiler_wl='-Wl,'
7476 lt_prog_compiler_pic='-qpic'
7477 lt_prog_compiler_static='-qstaticlink'
7480 case `$CC -V 2>&1 | sed 5q` in
7483 lt_prog_compiler_pic='-KPIC'
7484 lt_prog_compiler_static='-Bstatic'
7485 lt_prog_compiler_wl='-Wl,'
7488 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7489 lt_prog_compiler_pic='-KPIC'
7490 lt_prog_compiler_static='-Bstatic'
7491 lt_prog_compiler_wl=''
7499 lt_prog_compiler_pic='-KPIC'
7500 lt_prog_compiler_static='-Bstatic'
7504 # QNX uses GNU C++, but need to define -shared option too, otherwise
7506 lt_prog_compiler_pic='-fPIC -shared'
7509 osf3* | osf4* | osf5*)
7510 lt_prog_compiler_wl='-Wl,'
7511 # All OSF/1 code is PIC.
7512 lt_prog_compiler_static='-non_shared'
7516 lt_prog_compiler_static='-non_shared'
7520 lt_prog_compiler_pic='-KPIC'
7521 lt_prog_compiler_static='-Bstatic'
7522 case $cc_basename in
7524 lt_prog_compiler_wl='-Qoption ld ';;
7526 lt_prog_compiler_wl='-Wl,';;
7531 lt_prog_compiler_wl='-Qoption ld '
7532 lt_prog_compiler_pic='-PIC'
7533 lt_prog_compiler_static='-Bstatic'
7536 sysv4 | sysv4.2uw2* | sysv4.3*)
7537 lt_prog_compiler_wl='-Wl,'
7538 lt_prog_compiler_pic='-KPIC'
7539 lt_prog_compiler_static='-Bstatic'
7543 if test -d /usr/nec ;then
7544 lt_prog_compiler_pic='-Kconform_pic'
7545 lt_prog_compiler_static='-Bstatic'
7549 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7550 lt_prog_compiler_wl='-Wl,'
7551 lt_prog_compiler_pic='-KPIC'
7552 lt_prog_compiler_static='-Bstatic'
7556 lt_prog_compiler_wl='-Wl,'
7557 lt_prog_compiler_can_build_shared=no
7561 lt_prog_compiler_pic='-pic'
7562 lt_prog_compiler_static='-Bstatic'
7566 lt_prog_compiler_can_build_shared=no
7572 # For platforms which do not support PIC, -DPIC is meaningless:
7574 lt_prog_compiler_pic=
7577 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7580 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7581 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7589 # Check to make sure the PIC flag actually works.
7591 if test -n "$lt_prog_compiler_pic"; then
7592 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7593 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7594 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 lt_cv_prog_compiler_pic_works=no
7598 ac_outfile=conftest.$ac_objext
7599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7600 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7601 # Insert the option either (1) after the last *FLAGS variable, or
7602 # (2) before a word containing "conftest.", or (3) at the end.
7603 # Note that $ac_compile itself does not contain backslashes and begins
7604 # with a dollar sign (not a hyphen), so the echo should work correctly.
7605 # The option is referenced via a variable to avoid confusing sed.
7606 lt_compile=`echo "$ac_compile" | $SED \
7607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7609 -e 's:$: $lt_compiler_flag:'`
7610 (eval echo "\"\$as_me:7610: $lt_compile\"" >&5)
7611 (eval "$lt_compile" 2>conftest.err)
7613 cat conftest.err >&5
7614 echo "$as_me:7614: \$? = $ac_status" >&5
7615 if (exit $ac_status) && test -s "$ac_outfile"; then
7616 # The compiler can only warn and ignore the option if not recognized
7617 # So say no if there are warnings other than the usual output.
7618 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7620 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7621 lt_cv_prog_compiler_pic_works=yes
7627 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7628 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7630 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7631 case $lt_prog_compiler_pic in
7633 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7636 lt_prog_compiler_pic=
7637 lt_prog_compiler_can_build_shared=no
7648 # Check to make sure the static flag actually works.
7650 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7651 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7652 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7653 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 lt_cv_prog_compiler_static_works=no
7657 save_LDFLAGS="$LDFLAGS"
7658 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7659 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7661 # The linker can only warn and ignore the option if not recognized
7662 # So say no if there are warnings
7663 if test -s conftest.err; then
7664 # Append any errors to the config.log.
7665 cat conftest.err 1>&5
7666 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7668 if diff conftest.exp conftest.er2 >/dev/null; then
7669 lt_cv_prog_compiler_static_works=yes
7672 lt_cv_prog_compiler_static_works=yes
7676 LDFLAGS="$save_LDFLAGS"
7679 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7680 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7682 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7685 lt_prog_compiler_static=
7694 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7695 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7696 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 lt_cv_prog_compiler_c_o=no
7700 $RM -r conftest 2>/dev/null
7704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7706 lt_compiler_flag="-o out/conftest2.$ac_objext"
7707 # Insert the option either (1) after the last *FLAGS variable, or
7708 # (2) before a word containing "conftest.", or (3) at the end.
7709 # Note that $ac_compile itself does not contain backslashes and begins
7710 # with a dollar sign (not a hyphen), so the echo should work correctly.
7711 lt_compile=`echo "$ac_compile" | $SED \
7712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7714 -e 's:$: $lt_compiler_flag:'`
7715 (eval echo "\"\$as_me:7715: $lt_compile\"" >&5)
7716 (eval "$lt_compile" 2>out/conftest.err)
7718 cat out/conftest.err >&5
7719 echo "$as_me:7719: \$? = $ac_status" >&5
7720 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7722 # The compiler can only warn and ignore the option if not recognized
7723 # So say no if there are warnings
7724 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7727 lt_cv_prog_compiler_c_o=yes
7732 # SGI C++ compiler will create directory out/ii_files/ for
7733 # template instantiation
7734 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7735 $RM out/* && rmdir out
7741 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7742 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7749 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7750 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7751 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 lt_cv_prog_compiler_c_o=no
7755 $RM -r conftest 2>/dev/null
7759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7761 lt_compiler_flag="-o out/conftest2.$ac_objext"
7762 # Insert the option either (1) after the last *FLAGS variable, or
7763 # (2) before a word containing "conftest.", or (3) at the end.
7764 # Note that $ac_compile itself does not contain backslashes and begins
7765 # with a dollar sign (not a hyphen), so the echo should work correctly.
7766 lt_compile=`echo "$ac_compile" | $SED \
7767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7769 -e 's:$: $lt_compiler_flag:'`
7770 (eval echo "\"\$as_me:7770: $lt_compile\"" >&5)
7771 (eval "$lt_compile" 2>out/conftest.err)
7773 cat out/conftest.err >&5
7774 echo "$as_me:7774: \$? = $ac_status" >&5
7775 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7777 # The compiler can only warn and ignore the option if not recognized
7778 # So say no if there are warnings
7779 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7780 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7781 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7782 lt_cv_prog_compiler_c_o=yes
7787 # SGI C++ compiler will create directory out/ii_files/ for
7788 # template instantiation
7789 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7790 $RM out/* && rmdir out
7796 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7797 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7802 hard_links="nottested"
7803 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7804 # do not overwrite the value of need_locks provided by the user
7805 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7806 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7809 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7811 ln conftest.a conftest.b 2>&5 || hard_links=no
7812 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7813 { echo "$as_me:$LINENO: result: $hard_links" >&5
7814 echo "${ECHO_T}$hard_links" >&6; }
7815 if test "$hard_links" = no; then
7816 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7817 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7829 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7830 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7833 allow_undefined_flag=
7834 always_export_symbols=no
7836 archive_expsym_cmds=
7837 compiler_needs_object=no
7838 enable_shared_with_static_runtimes=no
7839 export_dynamic_flag_spec=
7840 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7841 hardcode_automatic=no
7843 hardcode_direct_absolute=no
7844 hardcode_libdir_flag_spec=
7845 hardcode_libdir_flag_spec_ld=
7846 hardcode_libdir_separator=
7848 hardcode_shlibpath_var=unsupported
7850 link_all_deplibs=unknown
7853 old_archive_from_new_cmds=
7854 old_archive_from_expsyms_cmds=
7855 thread_safe_flag_spec=
7856 whole_archive_flag_spec=
7857 # include_expsyms should be a list of space-separated symbols to be *always*
7858 # included in the symbol list
7860 # exclude_expsyms can be an extended regexp of symbols to exclude
7861 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7862 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7863 # as well as any symbol that contains `d'.
7864 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7865 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7866 # platforms (ab)use it in PIC code, but their linkers get confused if
7867 # the symbol is explicitly referenced. Since portable code cannot
7868 # rely on this symbol name, it's probably fine to never include it in
7869 # preloaded symbol tables.
7870 # Exclude shared library initialization/finalization symbols.
7871 extract_expsyms_cmds=
7874 cygwin* | mingw* | pw32*)
7875 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7876 # When not using gcc, we currently assume that we are using
7877 # Microsoft Visual C++.
7878 if test "$GCC" != yes; then
7883 # we just hope/assume this is gcc and not c89 (= MSVC++)
7892 if test "$with_gnu_ld" = yes; then
7893 # If archive_cmds runs LD, not CC, wlarc should be empty
7896 # Set some defaults for GNU ld with shared library support. These
7897 # are reset later if shared libraries are not supported. Putting them
7898 # here allows them to be overridden if necessary.
7899 runpath_var=LD_RUN_PATH
7900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7901 export_dynamic_flag_spec='${wl}--export-dynamic'
7902 # ancient GNU ld didn't support --whole-archive et. al.
7903 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7904 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7906 whole_archive_flag_spec=
7908 supports_anon_versioning=no
7909 case `$LD -v 2>&1` in
7910 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7911 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7912 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7913 *\ 2.11.*) ;; # other 2.11 versions
7914 *) supports_anon_versioning=yes ;;
7917 # See if GNU ld supports shared libraries.
7920 # On AIX/PPC, the GNU linker is very broken
7921 if test "$host_cpu" != ia64; then
7925 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7926 *** to be unable to reliably create shared libraries on AIX.
7927 *** Therefore, libtool is disabling shared libraries support. If you
7928 *** really care for shared libraries, you may want to modify your PATH
7929 *** so that a non-GNU linker is found, and then restart.
7938 # see comment about AmigaOS4 .so support
7939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7940 archive_expsym_cmds=''
7943 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)'
7944 hardcode_libdir_flag_spec='-L$libdir'
7945 hardcode_minus_L=yes
7951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7952 allow_undefined_flag=unsupported
7953 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7954 # support --undefined. This deserves some investigation. FIXME
7955 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7961 cygwin* | mingw* | pw32*)
7962 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7963 # as there is no search path for DLLs.
7964 hardcode_libdir_flag_spec='-L$libdir'
7965 allow_undefined_flag=unsupported
7966 always_export_symbols=no
7967 enable_shared_with_static_runtimes=yes
7968 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7970 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7972 # If the export-symbols file already is a .def file (1st line
7973 # is EXPORTS), use it as is; otherwise, prepend...
7974 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7975 cp $export_symbols $output_objdir/$soname.def;
7977 echo EXPORTS > $output_objdir/$soname.def;
7978 cat $export_symbols >> $output_objdir/$soname.def;
7980 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7988 hardcode_shlibpath_var=no
7989 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7990 export_dynamic_flag_spec='${wl}-E'
7991 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7992 # Instead, shared libraries are loaded at an image base (0x10000000 by
7993 # default) and relocated if they conflict, which is a slow very memory
7994 # consuming and fragmenting process. To avoid this, we pick a random,
7995 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7996 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7997 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7998 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'
8001 gnu* | linux* | tpf* | k*bsd*-gnu)
8003 if test "$host_os" = linux-dietlibc; then
8004 case $cc_basename in
8005 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8008 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8009 && test "$tmp_diet" = no
8012 tmp_sharedflag='-shared'
8013 case $cc_basename,$host_cpu in
8014 pgcc*) # Portland Group C compiler
8015 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'
8016 tmp_addflag=' $pic_flag'
8018 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8019 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'
8020 tmp_addflag=' $pic_flag -Mnomain' ;;
8021 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8022 tmp_addflag=' -i_dynamic' ;;
8023 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8024 tmp_addflag=' -i_dynamic -nofor_main' ;;
8025 ifc* | ifort*) # Intel Fortran compiler
8026 tmp_addflag=' -nofor_main' ;;
8027 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8028 tmp_sharedflag='-qmkshrobj'
8031 case `$CC -V 2>&1 | sed 5q` in
8032 *Sun\ C*) # Sun C 5.9
8033 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'
8034 compiler_needs_object=yes
8035 tmp_sharedflag='-G' ;;
8036 *Sun\ F*) # Sun Fortran 8.3
8037 tmp_sharedflag='-G' ;;
8039 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8041 if test "x$supports_anon_versioning" = xyes; then
8042 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8043 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8044 echo "local: *; };" >> $output_objdir/$libname.ver~
8045 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8048 case $cc_basename in
8050 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8051 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8052 hardcode_libdir_flag_spec=
8053 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8054 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8055 if test "x$supports_anon_versioning" = xyes; then
8056 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8058 echo "local: *; };" >> $output_objdir/$libname.ver~
8059 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8069 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8070 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8074 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8079 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8083 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8084 *** create shared libraries on Solaris systems. Therefore, libtool
8085 *** is disabling shared libraries support. We urge you to upgrade GNU
8086 *** binutils to release 2.9.1 or newer. Another option is to modify
8087 *** your PATH or compiler configuration so that the native linker is
8088 *** used, and then restart.
8091 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8093 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8099 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8100 case `$LD -v 2>&1` in
8101 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8105 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8106 *** reliably create shared libraries on SCO systems. Therefore, libtool
8107 *** is disabling shared libraries support. We urge you to upgrade GNU
8108 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8109 *** your PATH or compiler configuration so that the native linker is
8110 *** used, and then restart.
8115 # For security reasons, it is highly recommended that you always
8116 # use absolute paths for naming shared libraries, and exclude the
8117 # DT_RUNPATH tag from executables and libraries. But doing so
8118 # requires that you compile everything twice, which is a pain.
8119 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8120 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8131 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8134 hardcode_shlibpath_var=no
8138 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8140 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8147 if test "$ld_shlibs" = no; then
8149 hardcode_libdir_flag_spec=
8150 export_dynamic_flag_spec=
8151 whole_archive_flag_spec=
8154 # PORTME fill in a description of your system's linker (not GNU ld)
8157 allow_undefined_flag=unsupported
8158 always_export_symbols=yes
8159 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'
8160 # Note: this linker hardcodes the directories in LIBPATH if there
8161 # are no directories specified by -L.
8162 hardcode_minus_L=yes
8163 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8164 # Neither direct hardcoding nor static linking is supported with a
8166 hardcode_direct=unsupported
8171 if test "$host_cpu" = ia64; then
8172 # On IA64, the linker does run time linking by default, so we don't
8173 # have to do anything special.
8174 aix_use_runtimelinking=no
8175 exp_sym_flag='-Bexport'
8178 # If we're using GNU nm, then we don't want the "-C" option.
8179 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8180 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8181 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'
8183 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'
8185 aix_use_runtimelinking=no
8187 # Test if we are trying to use run time linking or normal
8188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8189 # need to do runtime linking.
8190 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8191 for ld_flag in $LDFLAGS; do
8192 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8193 aix_use_runtimelinking=yes
8200 exp_sym_flag='-bexport'
8201 no_entry_flag='-bnoentry'
8204 # When large executables or shared objects are built, AIX ld can
8205 # have problems creating the table of contents. If linking a library
8206 # or program results in "error TOC overflow" add -mminimal-toc to
8207 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8208 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8212 hardcode_direct_absolute=yes
8213 hardcode_libdir_separator=':'
8214 link_all_deplibs=yes
8215 file_list_spec='${wl}-f,'
8217 if test "$GCC" = yes; then
8218 case $host_os in aix4.[012]|aix4.[012].*)
8219 # We only want to do this on AIX 4.2 and lower, the check
8220 # below for broken collect2 doesn't work under 4.3+
8221 collect2name=`${CC} -print-prog-name=collect2`
8222 if test -f "$collect2name" &&
8223 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8225 # We have reworked collect2
8228 # We have old collect2
8229 hardcode_direct=unsupported
8230 # It fails to find uninstalled libraries when the uninstalled
8231 # path is not listed in the libpath. Setting hardcode_minus_L
8232 # to unsupported forces relinking
8233 hardcode_minus_L=yes
8234 hardcode_libdir_flag_spec='-L$libdir'
8235 hardcode_libdir_separator=
8239 shared_flag='-shared'
8240 if test "$aix_use_runtimelinking" = yes; then
8241 shared_flag="$shared_flag "'${wl}-G'
8245 if test "$host_cpu" = ia64; then
8246 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8247 # chokes on -Wl,-G. The following line is correct:
8250 if test "$aix_use_runtimelinking" = yes; then
8251 shared_flag='${wl}-G'
8253 shared_flag='${wl}-bM:SRE'
8258 # It seems that -bexpall does not export symbols beginning with
8259 # underscore (_), so it is better to generate a list of symbols to export.
8260 always_export_symbols=yes
8261 if test "$aix_use_runtimelinking" = yes; then
8262 # Warning - without using the other runtime loading flags (-brtl),
8263 # -berok will link without error, but may produce a broken library.
8264 allow_undefined_flag='-berok'
8265 # Determine the default libpath from the value encoded in an
8267 cat >conftest.$ac_ext <<_ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (ac_try="$ac_link"
8285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289 (eval "$ac_link") 2>conftest.er1
8291 grep -v '^ *+' conftest.er1 >conftest.err
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } && {
8296 test -z "$ac_c_werror_flag" ||
8297 test ! -s conftest.err
8298 } && test -s conftest$ac_exeext &&
8299 $as_test_x conftest$ac_exeext; then
8301 lt_aix_libpath_sed='
8302 /Import File Strings/,/^$/ {
8308 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8309 # Check for a 64-bit object if we didn't find anything.
8310 if test -z "$aix_libpath"; then
8311 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8314 echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8321 conftest$ac_exeext conftest.$ac_ext
8322 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8324 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8325 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"
8327 if test "$host_cpu" = ia64; then
8328 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8329 allow_undefined_flag="-z nodefs"
8330 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"
8332 # Determine the default libpath from the value encoded in an
8334 cat >conftest.$ac_ext <<_ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (ac_try="$ac_link"
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_link") 2>conftest.er1
8358 grep -v '^ *+' conftest.er1 >conftest.err
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_c_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest$ac_exeext &&
8366 $as_test_x conftest$ac_exeext; then
8368 lt_aix_libpath_sed='
8369 /Import File Strings/,/^$/ {
8375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8376 # Check for a 64-bit object if we didn't find anything.
8377 if test -z "$aix_libpath"; then
8378 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8388 conftest$ac_exeext conftest.$ac_ext
8389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8391 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8392 # Warning - without using the other run time loading flags,
8393 # -berok will link without error, but may produce a broken library.
8394 no_undefined_flag=' ${wl}-bernotok'
8395 allow_undefined_flag=' ${wl}-berok'
8396 # Exported symbols can be pulled into shared objects from archives
8397 whole_archive_flag_spec='$convenience'
8398 archive_cmds_need_lc=yes
8399 # This is similar to how AIX traditionally builds its shared libraries.
8400 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'
8408 # see comment about AmigaOS4 .so support
8409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8410 archive_expsym_cmds=''
8413 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)'
8414 hardcode_libdir_flag_spec='-L$libdir'
8415 hardcode_minus_L=yes
8421 export_dynamic_flag_spec=-rdynamic
8424 cygwin* | mingw* | pw32*)
8425 # When not using gcc, we currently assume that we are using
8426 # Microsoft Visual C++.
8427 # hardcode_libdir_flag_spec is actually meaningless, as there is
8428 # no search path for DLLs.
8429 hardcode_libdir_flag_spec=' '
8430 allow_undefined_flag=unsupported
8431 # Tell ltmain to make .lib files, not .a files.
8433 # Tell ltmain to make .dll files, not .so files.
8435 # FIXME: Setting linknames here is a bad hack.
8436 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8437 # The linker will automatically build a .lib file if we build a DLL.
8438 old_archive_from_new_cmds='true'
8439 # FIXME: Should let the user specify the lib program.
8440 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8441 fix_srcfile_path='`cygpath -w "$srcfile"`'
8442 enable_shared_with_static_runtimes=yes
8445 darwin* | rhapsody*)
8448 archive_cmds_need_lc=no
8450 hardcode_automatic=yes
8451 hardcode_shlibpath_var=unsupported
8452 whole_archive_flag_spec=''
8453 link_all_deplibs=yes
8454 allow_undefined_flag="$_lt_dar_allow_undefined"
8455 if test "$GCC" = "yes"; then
8456 output_verbose_link_cmd=echo
8457 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8458 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8459 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}"
8460 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}"
8469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8470 hardcode_libdir_flag_spec='-L$libdir'
8471 hardcode_shlibpath_var=no
8478 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8479 # support. Future versions do this automatically, but an explicit c++rt0.o
8480 # does not break anything, and helps significantly (at the cost of a little
8483 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8484 hardcode_libdir_flag_spec='-R$libdir'
8486 hardcode_shlibpath_var=no
8489 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8491 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8493 hardcode_minus_L=yes
8494 hardcode_shlibpath_var=no
8497 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8498 freebsd* | dragonfly*)
8499 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8500 hardcode_libdir_flag_spec='-R$libdir'
8502 hardcode_shlibpath_var=no
8506 if test "$GCC" = yes; then
8507 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'
8509 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'
8511 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8512 hardcode_libdir_separator=:
8515 # hardcode_minus_L: Not really in the search PATH,
8516 # but as the default location of the library.
8517 hardcode_minus_L=yes
8518 export_dynamic_flag_spec='${wl}-E'
8522 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8523 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8525 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8527 if test "$with_gnu_ld" = no; then
8528 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8529 hardcode_libdir_flag_spec_ld='+b $libdir'
8530 hardcode_libdir_separator=:
8532 hardcode_direct_absolute=yes
8533 export_dynamic_flag_spec='${wl}-E'
8534 # hardcode_minus_L: Not really in the search PATH,
8535 # but as the default location of the library.
8536 hardcode_minus_L=yes
8541 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8544 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8547 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8550 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8556 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8559 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8562 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8566 if test "$with_gnu_ld" = no; then
8567 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8568 hardcode_libdir_separator=:
8573 hardcode_shlibpath_var=no
8577 hardcode_direct_absolute=yes
8578 export_dynamic_flag_spec='${wl}-E'
8580 # hardcode_minus_L: Not really in the search PATH,
8581 # but as the default location of the library.
8582 hardcode_minus_L=yes
8588 irix5* | irix6* | nonstopux*)
8589 if test "$GCC" = yes; then
8590 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'
8591 # Try to use the -exported_symbol ld option, if it does not
8592 # work, assume that -exports_file does not work either and
8593 # implicitly export all symbols.
8594 save_LDFLAGS="$LDFLAGS"
8595 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8596 cat >conftest.$ac_ext <<_ACEOF
8599 rm -f conftest.$ac_objext conftest$ac_exeext
8600 if { (ac_try="$ac_link"
8602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8603 *) ac_try_echo=$ac_try;;
8605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8606 (eval "$ac_link") 2>conftest.er1
8608 grep -v '^ *+' conftest.er1 >conftest.err
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } && {
8613 test -z "$ac_c_werror_flag" ||
8614 test ! -s conftest.err
8615 } && test -s conftest$ac_exeext &&
8616 $as_test_x conftest$ac_exeext; then
8617 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'
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8627 conftest$ac_exeext conftest.$ac_ext
8628 LDFLAGS="$save_LDFLAGS"
8630 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'
8631 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'
8633 archive_cmds_need_lc='no'
8634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8635 hardcode_libdir_separator=:
8637 link_all_deplibs=yes
8641 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8644 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8646 hardcode_libdir_flag_spec='-R$libdir'
8648 hardcode_shlibpath_var=no
8652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655 hardcode_libdir_separator=:
8656 hardcode_shlibpath_var=no
8663 if test -f /usr/libexec/ld.so; then
8665 hardcode_shlibpath_var=no
8666 hardcode_direct_absolute=yes
8667 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8668 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8669 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8670 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8671 export_dynamic_flag_spec='${wl}-E'
8674 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8676 hardcode_libdir_flag_spec='-R$libdir'
8679 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8680 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8690 hardcode_libdir_flag_spec='-L$libdir'
8691 hardcode_minus_L=yes
8692 allow_undefined_flag=unsupported
8693 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'
8694 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8698 if test "$GCC" = yes; then
8699 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8700 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'
8702 allow_undefined_flag=' -expect_unresolved \*'
8703 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'
8705 archive_cmds_need_lc='no'
8706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8707 hardcode_libdir_separator=:
8710 osf4* | osf5*) # as osf3* with the addition of -msym flag
8711 if test "$GCC" = yes; then
8712 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8713 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'
8714 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8716 allow_undefined_flag=' -expect_unresolved \*'
8717 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'
8718 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~
8719 $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'
8721 # Both c and cxx compiler support -rpath directly
8722 hardcode_libdir_flag_spec='-rpath $libdir'
8724 archive_cmds_need_lc='no'
8725 hardcode_libdir_separator=:
8729 no_undefined_flag=' -z defs'
8730 if test "$GCC" = yes; then
8732 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8733 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8734 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8736 case `$CC -V 2>&1` in
8739 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8741 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8745 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8746 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8747 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8751 hardcode_libdir_flag_spec='-R$libdir'
8752 hardcode_shlibpath_var=no
8754 solaris2.[0-5] | solaris2.[0-5].*) ;;
8756 # The compiler driver will combine and reorder linker options,
8757 # but understands `-z linker_flag'. GCC discards it without `$wl',
8758 # but is careful enough not to reorder.
8759 # Supported since Solaris 2.6 (maybe 2.5.1?)
8760 if test "$GCC" = yes; then
8761 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8763 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8767 link_all_deplibs=yes
8771 if test "x$host_vendor" = xsequent; then
8772 # Use $CC to link under sequent, because it throws in some extra .o
8773 # files that make .init and .fini sections work.
8774 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8776 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8778 hardcode_libdir_flag_spec='-L$libdir'
8780 hardcode_minus_L=yes
8781 hardcode_shlibpath_var=no
8785 case $host_vendor in
8787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8788 hardcode_direct=yes # is this really true???
8791 ## LD is ld it makes a PLAMLIB
8792 ## CC just makes a GrossModule.
8793 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8794 reload_cmds='$CC -r -o $output$reload_objs'
8798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8802 runpath_var='LD_RUN_PATH'
8803 hardcode_shlibpath_var=no
8807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808 hardcode_shlibpath_var=no
8809 export_dynamic_flag_spec='-Bexport'
8813 if test -d /usr/nec; then
8814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8815 hardcode_shlibpath_var=no
8816 runpath_var=LD_RUN_PATH
8817 hardcode_runpath_var=yes
8822 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8823 no_undefined_flag='${wl}-z,text'
8824 archive_cmds_need_lc=no
8825 hardcode_shlibpath_var=no
8826 runpath_var='LD_RUN_PATH'
8828 if test "$GCC" = yes; then
8829 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8830 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8832 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8833 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8837 sysv5* | sco3.2v5* | sco5v6*)
8838 # Note: We can NOT use -z defs as we might desire, because we do not
8839 # link with -lc, and that would cause any symbols used from libc to
8840 # always be unresolved, which means just about no library would
8841 # ever link correctly. If we're not using GNU ld we use -z text
8842 # though, which does catch some bad symbols but isn't as heavy-handed
8844 no_undefined_flag='${wl}-z,text'
8845 allow_undefined_flag='${wl}-z,nodefs'
8846 archive_cmds_need_lc=no
8847 hardcode_shlibpath_var=no
8848 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8849 hardcode_libdir_separator=':'
8850 link_all_deplibs=yes
8851 export_dynamic_flag_spec='${wl}-Bexport'
8852 runpath_var='LD_RUN_PATH'
8854 if test "$GCC" = yes; then
8855 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8856 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8858 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8859 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865 hardcode_libdir_flag_spec='-L$libdir'
8866 hardcode_shlibpath_var=no
8874 if test x$host_vendor = xsni; then
8876 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8877 export_dynamic_flag_spec='${wl}-Blargedynsym'
8883 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8884 echo "${ECHO_T}$ld_shlibs" >&6; }
8885 test "$ld_shlibs" = no && can_build_shared=no
8887 with_gnu_ld=$with_gnu_ld
8904 # Do we need to explicitly link libc?
8906 case "x$archive_cmds_need_lc" in
8908 # Assume -lc should be added
8909 archive_cmds_need_lc=yes
8911 if test "$enable_shared" = yes && test "$GCC" = yes; then
8912 case $archive_cmds in
8914 # FIXME: we may have to deal with multi-command sequences.
8917 # Test whether the compiler implicitly links with -lc since on some
8918 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8919 # to ld, don't add -lc before -lgcc.
8920 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8921 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8926 (eval $ac_compile) 2>&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } 2>conftest.err; then
8932 libobjs=conftest.$ac_objext
8934 wl=$lt_prog_compiler_wl
8935 pic_flag=$lt_prog_compiler_pic
8941 lt_save_allow_undefined_flag=$allow_undefined_flag
8942 allow_undefined_flag=
8943 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8944 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }
8949 archive_cmds_need_lc=no
8951 archive_cmds_need_lc=yes
8953 allow_undefined_flag=$lt_save_allow_undefined_flag
8955 cat conftest.err 1>&5
8958 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8959 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9122 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9123 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9125 if test "$GCC" = yes; then
9127 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9128 *) lt_awk_arg="/^libraries:/" ;;
9130 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9131 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9132 # if the path contains ";" then we assume it to be the separator
9133 # otherwise default to the standard path separator (i.e. ":") - it is
9134 # assumed that no part of a normal pathname contains ";" but that should
9135 # okay in the real world where ";" in dirpaths is itself problematic.
9136 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9138 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9140 # Ok, now we have the path, separated by spaces, we can step through it
9141 # and add multilib dir if necessary.
9142 lt_tmp_lt_search_path_spec=
9143 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9144 for lt_sys_path in $lt_search_path_spec; do
9145 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9146 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9148 test -d "$lt_sys_path" && \
9149 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9152 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9153 BEGIN {RS=" "; FS="/|\n";} {
9156 for (lt_i = NF; lt_i > 0; lt_i--) {
9157 if ($lt_i != "" && $lt_i != ".") {
9158 if ($lt_i == "..") {
9161 if (lt_count == 0) {
9162 lt_foo="/" $lt_i lt_foo;
9169 if (lt_foo != "") { lt_freq[lt_foo]++; }
9170 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9172 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9174 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9177 libname_spec='lib$name'
9185 shlibpath_overrides_runpath=unknown
9187 dynamic_linker="$host_os ld.so"
9188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9189 need_lib_prefix=unknown
9190 hardcode_into_libs=no
9192 # when you set need_version to no, make sure it does not cause -set_version
9193 # flags to be left without arguments
9194 need_version=unknown
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9200 shlibpath_var=LIBPATH
9202 # AIX 3 has no versioning support, so we append a major version to the name.
9203 soname_spec='${libname}${release}${shared_ext}$major'
9210 hardcode_into_libs=yes
9211 if test "$host_cpu" = ia64; then
9212 # AIX 5 supports IA64
9213 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9214 shlibpath_var=LD_LIBRARY_PATH
9216 # With GCC up to 2.95.x, collect2 would create an import file
9217 # for dependence libraries. The import file would start with
9218 # the line `#! .'. This would cause the generated library to
9219 # depend on `.', always an invalid library. This was fixed in
9220 # development snapshots of GCC prior to 3.0.
9222 aix4 | aix4.[01] | aix4.[01].*)
9223 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9225 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9232 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9233 # soname into executable. Probably we can add versioning support to
9234 # collect2, so additional links can be useful in future.
9235 if test "$aix_use_runtimelinking" = yes; then
9236 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9237 # instead of lib<name>.a to let people know that these are not
9238 # typical AIX shared libraries.
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241 # We preserve .a as extension for shared libraries through AIX4.2
9242 # and later when we are not doing run time linking.
9243 library_names_spec='${libname}${release}.a $libname.a'
9244 soname_spec='${libname}${release}${shared_ext}$major'
9246 shlibpath_var=LIBPATH
9253 # Since July 2007 AmigaOS4 officially supports .so libraries.
9254 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 library_names_spec='$libname.ixlibrary $libname.a'
9259 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9260 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'
9266 library_names_spec='${libname}${shared_ext}'
9267 dynamic_linker="$host_os ld.so"
9268 shlibpath_var=LIBRARY_PATH
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9277 shlibpath_var=LD_LIBRARY_PATH
9278 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9279 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9280 # the default ld.so.conf also contains /usr/contrib/lib and
9281 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9282 # libtool to hard-code these into programs
9285 cygwin* | mingw* | pw32*)
9286 version_type=windows
9291 case $GCC,$host_os in
9292 yes,cygwin* | yes,mingw* | yes,pw32*)
9293 library_names_spec='$libname.dll.a'
9294 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9295 postinstall_cmds='base_file=`basename \${file}`~
9296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9297 dldir=$destdir/`dirname \$dlpath`~
9298 test -d \$dldir || mkdir -p \$dldir~
9299 $install_prog $dir/$dlname \$dldir/$dlname~
9300 chmod a+x \$dldir/$dlname~
9301 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9302 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9304 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9305 dlpath=$dir/\$dldll~
9307 shlibpath_overrides_runpath=yes
9311 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9312 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9313 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9316 # MinGW DLLs use traditional 'lib' prefix
9317 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9318 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9319 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9320 # It is most probably a Windows format PATH printed by
9321 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9322 # path with ; separators, and with drive letters. We can handle the
9323 # drive letters (cygwin fileutils understands them), so leave them,
9324 # especially as we might pass files found there to a mingw objdump,
9325 # which wouldn't understand a cygwinified path. Ahh.
9326 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9328 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9332 # pw32 DLLs use 'pw' prefix rather than 'lib'
9333 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9339 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9342 dynamic_linker='Win32 ld.exe'
9343 # FIXME: first we should search . and the directory the executable is in
9347 darwin* | rhapsody*)
9348 dynamic_linker="$host_os dyld"
9352 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9353 soname_spec='${libname}${release}${major}$shared_ext'
9354 shlibpath_overrides_runpath=yes
9355 shlibpath_var=DYLD_LIBRARY_PATH
9356 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9358 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9359 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 shlibpath_var=LD_LIBRARY_PATH
9375 freebsd* | dragonfly*)
9376 # DragonFly does not have aout. When/if they implement a new
9377 # versioning mechanism, adjust this.
9378 if test -x /usr/bin/objformat; then
9379 objformat=`/usr/bin/objformat`
9382 freebsd[123]*) objformat=aout ;;
9386 version_type=freebsd-$objformat
9387 case $version_type in
9389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9398 shlibpath_var=LD_LIBRARY_PATH
9401 shlibpath_overrides_runpath=yes
9403 freebsd3.[01]* | freebsdelf3.[01]*)
9404 shlibpath_overrides_runpath=yes
9405 hardcode_into_libs=yes
9407 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9408 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9409 shlibpath_overrides_runpath=no
9410 hardcode_into_libs=yes
9412 *) # from 4.6 on, and DragonFly
9413 shlibpath_overrides_runpath=yes
9414 hardcode_into_libs=yes
9423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9424 soname_spec='${libname}${release}${shared_ext}$major'
9425 shlibpath_var=LD_LIBRARY_PATH
9426 hardcode_into_libs=yes
9429 hpux9* | hpux10* | hpux11*)
9430 # Give a soname corresponding to the major version so that dld.sl refuses to
9431 # link against other versions.
9438 hardcode_into_libs=yes
9439 dynamic_linker="$host_os dld.so"
9440 shlibpath_var=LD_LIBRARY_PATH
9441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9443 soname_spec='${libname}${release}${shared_ext}$major'
9444 if test "X$HPUX_IA64_MODE" = X32; then
9445 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9447 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9453 hardcode_into_libs=yes
9454 dynamic_linker="$host_os dld.sl"
9455 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 soname_spec='${libname}${release}${shared_ext}$major'
9459 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9464 dynamic_linker="$host_os dld.sl"
9465 shlibpath_var=SHLIB_PATH
9466 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9468 soname_spec='${libname}${release}${shared_ext}$major'
9471 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9472 postinstall_cmds='chmod 555 $lib'
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9482 shlibpath_var=LD_LIBRARY_PATH
9483 shlibpath_overrides_runpath=no
9484 hardcode_into_libs=yes
9487 irix5* | irix6* | nonstopux*)
9489 nonstopux*) version_type=nonstopux ;;
9491 if test "$lt_cv_prog_gnu_ld" = yes; then
9499 soname_spec='${libname}${release}${shared_ext}$major'
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9502 irix5* | nonstopux*)
9506 case $LD in # libtool.m4 will add one of these switches to LD
9507 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9508 libsuff= shlibsuff= libmagic=32-bit;;
9509 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9510 libsuff=32 shlibsuff=N32 libmagic=N32;;
9511 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9512 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9513 *) libsuff= shlibsuff= libmagic=never-match;;
9517 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9518 shlibpath_overrides_runpath=no
9519 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9520 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9521 hardcode_into_libs=yes
9524 # No shared lib support for Linux oldld, aout, or coff.
9525 linux*oldld* | linux*aout* | linux*coff*)
9529 # This must be Linux ELF.
9530 linux* | k*bsd*-gnu)
9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9537 shlibpath_var=LD_LIBRARY_PATH
9538 shlibpath_overrides_runpath=no
9539 # Some binutils ld are patched to set DT_RUNPATH
9540 save_LDFLAGS=$LDFLAGS
9542 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9543 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9544 cat >conftest.$ac_ext <<_ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (ac_try="$ac_link"
9562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9563 *) ac_try_echo=$ac_try;;
9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566 (eval "$ac_link") 2>conftest.er1
9568 grep -v '^ *+' conftest.er1 >conftest.err
9570 cat conftest.err >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && {
9573 test -z "$ac_c_werror_flag" ||
9574 test ! -s conftest.err
9575 } && test -s conftest$ac_exeext &&
9576 $as_test_x conftest$ac_exeext; then
9577 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9578 shlibpath_overrides_runpath=yes
9582 echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9589 conftest$ac_exeext conftest.$ac_ext
9590 LDFLAGS=$save_LDFLAGS
9593 # This implies no fast_install, which is unacceptable.
9594 # Some rework will be needed to allow for fast_install
9595 # before this can be enabled.
9596 hardcode_into_libs=yes
9598 # Append ld.so.conf contents to the search path
9599 if test -f /etc/ld.so.conf; then
9600 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' ' '`
9601 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9604 # We used to test for /lib/ld.so.1 and disable shared libraries on
9605 # powerpc, because MkLinux only supported shared libraries with the
9606 # GNU dynamic linker. Since this was broken with cross compilers,
9607 # most powerpc-linux boxes support dynamic linking these days and
9608 # people can always --disable-shared, the test was removed, and we
9609 # assume the GNU/Linux dynamic linker is in use.
9610 dynamic_linker='GNU/Linux ld.so'
9617 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9620 dynamic_linker='NetBSD (a.out) ld.so'
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9623 soname_spec='${libname}${release}${shared_ext}$major'
9624 dynamic_linker='NetBSD ld.elf_so'
9626 shlibpath_var=LD_LIBRARY_PATH
9627 shlibpath_overrides_runpath=yes
9628 hardcode_into_libs=yes
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 shlibpath_overrides_runpath=yes
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643 soname_spec='${libname}${release}${shared_ext}$major'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 shlibpath_overrides_runpath=no
9646 hardcode_into_libs=yes
9647 dynamic_linker='ldqnx.so'
9652 sys_lib_dlsearch_path_spec="/usr/lib"
9654 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9656 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9657 *) need_version=no ;;
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9661 shlibpath_var=LD_LIBRARY_PATH
9662 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9664 openbsd2.[89] | openbsd2.[89].*)
9665 shlibpath_overrides_runpath=no
9668 shlibpath_overrides_runpath=yes
9672 shlibpath_overrides_runpath=yes
9677 libname_spec='$name'
9680 library_names_spec='$libname${shared_ext} $libname.a'
9681 dynamic_linker='OS/2 ld.exe'
9682 shlibpath_var=LIBPATH
9685 osf3* | osf4* | osf5*)
9689 soname_spec='${libname}${release}${shared_ext}$major'
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691 shlibpath_var=LD_LIBRARY_PATH
9692 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9693 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=yes
9708 hardcode_into_libs=yes
9709 # ldd complains unless libraries are executable
9710 postinstall_cmds='chmod +x $lib'
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9716 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9717 shlibpath_var=LD_LIBRARY_PATH
9718 shlibpath_overrides_runpath=yes
9719 if test "$with_gnu_ld" = yes; then
9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728 soname_spec='${libname}${release}${shared_ext}$major'
9729 shlibpath_var=LD_LIBRARY_PATH
9730 case $host_vendor in
9732 shlibpath_overrides_runpath=no
9734 runpath_var=LD_RUN_PATH
9742 shlibpath_overrides_runpath=no
9743 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9749 if test -d /usr/nec ;then
9751 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9752 soname_spec='$libname${shared_ext}.$major'
9753 shlibpath_var=LD_LIBRARY_PATH
9757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9758 version_type=freebsd-elf
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 shlibpath_overrides_runpath=yes
9765 hardcode_into_libs=yes
9766 if test "$with_gnu_ld" = yes; then
9767 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9769 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9772 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9776 sys_lib_dlsearch_path_spec='/usr/lib'
9780 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9784 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785 shlibpath_var=LD_LIBRARY_PATH
9786 shlibpath_overrides_runpath=no
9787 hardcode_into_libs=yes
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793 soname_spec='${libname}${release}${shared_ext}$major'
9794 shlibpath_var=LD_LIBRARY_PATH
9801 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9802 echo "${ECHO_T}$dynamic_linker" >&6; }
9803 test "$dynamic_linker" = no && can_build_shared=no
9805 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9806 if test "$GCC" = yes; then
9807 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9810 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9811 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9813 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9814 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9903 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9904 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9906 if test -n "$hardcode_libdir_flag_spec" ||
9907 test -n "$runpath_var" ||
9908 test "X$hardcode_automatic" = "Xyes" ; then
9910 # We can hardcode non-existent directories.
9911 if test "$hardcode_direct" != no &&
9912 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9913 # have to relink, otherwise we might link with an installed library
9914 # when we should be linking with a yet-to-be-installed one
9915 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9916 test "$hardcode_minus_L" != no; then
9917 # Linking always hardcodes the temporary library directory.
9918 hardcode_action=relink
9920 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9921 hardcode_action=immediate
9924 # We cannot hardcode anything, or else we can only hardcode existing
9926 hardcode_action=unsupported
9928 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9929 echo "${ECHO_T}$hardcode_action" >&6; }
9931 if test "$hardcode_action" = relink ||
9932 test "$inherit_rpath" = yes; then
9933 # Fast installation is not supported
9934 enable_fast_install=no
9935 elif test "$shlibpath_overrides_runpath" = yes ||
9936 test "$enable_shared" = no; then
9937 # Fast installation is not necessary
9938 enable_fast_install=needless
9946 if test "x$enable_dlopen" != xyes; then
9947 enable_dlopen=unknown
9948 enable_dlopen_self=unknown
9949 enable_dlopen_self_static=unknown
9956 lt_cv_dlopen="load_add_on"
9958 lt_cv_dlopen_self=yes
9962 lt_cv_dlopen="LoadLibrary"
9967 lt_cv_dlopen="dlopen"
9972 # if libdl is installed we need to link against it
9973 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9974 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9975 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 ac_check_lib_save_LIBS=$LIBS
9980 cat >conftest.$ac_ext <<_ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9987 /* Override any GCC internal prototype to avoid an error.
9988 Use char because int might match the return type of a GCC
9989 builtin and then its argument prototype would still apply. */
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_link") 2>conftest.er1
10011 grep -v '^ *+' conftest.er1 >conftest.err
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } && {
10016 test -z "$ac_c_werror_flag" ||
10017 test ! -s conftest.err
10018 } && test -s conftest$ac_exeext &&
10019 $as_test_x conftest$ac_exeext; then
10020 ac_cv_lib_dl_dlopen=yes
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_cv_lib_dl_dlopen=no
10028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10029 conftest$ac_exeext conftest.$ac_ext
10030 LIBS=$ac_check_lib_save_LIBS
10032 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10033 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10034 if test $ac_cv_lib_dl_dlopen = yes; then
10035 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10038 lt_cv_dlopen="dyld"
10040 lt_cv_dlopen_self=yes
10047 { echo "$as_me:$LINENO: checking for shl_load" >&5
10048 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10049 if test "${ac_cv_func_shl_load+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 cat >conftest.$ac_ext <<_ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10058 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10060 #define shl_load innocuous_shl_load
10062 /* System header to define __stub macros and hopefully few prototypes,
10063 which can conflict with char shl_load (); below.
10064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10065 <limits.h> exists even on freestanding compilers. */
10068 # include <limits.h>
10070 # include <assert.h>
10075 /* Override any GCC internal prototype to avoid an error.
10076 Use char because int might match the return type of a GCC
10077 builtin and then its argument prototype would still apply. */
10082 /* The GNU C library defines this for functions which it implements
10083 to always fail with ENOSYS. Some functions are actually named
10084 something starting with __ and the normal name is an alias. */
10085 #if defined __stub_shl_load || defined __stub___shl_load
10092 return shl_load ();
10097 rm -f conftest.$ac_objext conftest$ac_exeext
10098 if { (ac_try="$ac_link"
10099 case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_link") 2>conftest.er1
10106 grep -v '^ *+' conftest.er1 >conftest.err
10108 cat conftest.err >&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); } && {
10111 test -z "$ac_c_werror_flag" ||
10112 test ! -s conftest.err
10113 } && test -s conftest$ac_exeext &&
10114 $as_test_x conftest$ac_exeext; then
10115 ac_cv_func_shl_load=yes
10117 echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10120 ac_cv_func_shl_load=no
10123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10124 conftest$ac_exeext conftest.$ac_ext
10126 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10127 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10128 if test $ac_cv_func_shl_load = yes; then
10129 lt_cv_dlopen="shl_load"
10131 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10132 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10133 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10136 ac_check_lib_save_LIBS=$LIBS
10138 cat >conftest.$ac_ext <<_ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10145 /* Override any GCC internal prototype to avoid an error.
10146 Use char because int might match the return type of a GCC
10147 builtin and then its argument prototype would still apply. */
10155 return shl_load ();
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_link") 2>conftest.er1
10169 grep -v '^ *+' conftest.er1 >conftest.err
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } && {
10174 test -z "$ac_c_werror_flag" ||
10175 test ! -s conftest.err
10176 } && test -s conftest$ac_exeext &&
10177 $as_test_x conftest$ac_exeext; then
10178 ac_cv_lib_dld_shl_load=yes
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_cv_lib_dld_shl_load=no
10186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10190 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10191 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10192 if test $ac_cv_lib_dld_shl_load = yes; then
10193 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10195 { echo "$as_me:$LINENO: checking for dlopen" >&5
10196 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10197 if test "${ac_cv_func_dlopen+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 cat >conftest.$ac_ext <<_ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10208 #define dlopen innocuous_dlopen
10210 /* System header to define __stub macros and hopefully few prototypes,
10211 which can conflict with char dlopen (); below.
10212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10213 <limits.h> exists even on freestanding compilers. */
10216 # include <limits.h>
10218 # include <assert.h>
10223 /* Override any GCC internal prototype to avoid an error.
10224 Use char because int might match the return type of a GCC
10225 builtin and then its argument prototype would still apply. */
10230 /* The GNU C library defines this for functions which it implements
10231 to always fail with ENOSYS. Some functions are actually named
10232 something starting with __ and the normal name is an alias. */
10233 #if defined __stub_dlopen || defined __stub___dlopen
10245 rm -f conftest.$ac_objext conftest$ac_exeext
10246 if { (ac_try="$ac_link"
10247 case "(($ac_try" in
10248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249 *) ac_try_echo=$ac_try;;
10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252 (eval "$ac_link") 2>conftest.er1
10254 grep -v '^ *+' conftest.er1 >conftest.err
10256 cat conftest.err >&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } && {
10259 test -z "$ac_c_werror_flag" ||
10260 test ! -s conftest.err
10261 } && test -s conftest$ac_exeext &&
10262 $as_test_x conftest$ac_exeext; then
10263 ac_cv_func_dlopen=yes
10265 echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10268 ac_cv_func_dlopen=no
10271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10272 conftest$ac_exeext conftest.$ac_ext
10274 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10275 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10276 if test $ac_cv_func_dlopen = yes; then
10277 lt_cv_dlopen="dlopen"
10279 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10280 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10281 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 ac_check_lib_save_LIBS=$LIBS
10286 cat >conftest.$ac_ext <<_ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10293 /* Override any GCC internal prototype to avoid an error.
10294 Use char because int might match the return type of a GCC
10295 builtin and then its argument prototype would still apply. */
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (ac_try="$ac_link"
10310 case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_link") 2>conftest.er1
10317 grep -v '^ *+' conftest.er1 >conftest.err
10319 cat conftest.err >&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } && {
10322 test -z "$ac_c_werror_flag" ||
10323 test ! -s conftest.err
10324 } && test -s conftest$ac_exeext &&
10325 $as_test_x conftest$ac_exeext; then
10326 ac_cv_lib_dl_dlopen=yes
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10331 ac_cv_lib_dl_dlopen=no
10334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10335 conftest$ac_exeext conftest.$ac_ext
10336 LIBS=$ac_check_lib_save_LIBS
10338 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10339 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10340 if test $ac_cv_lib_dl_dlopen = yes; then
10341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10343 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10344 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10345 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10348 ac_check_lib_save_LIBS=$LIBS
10349 LIBS="-lsvld $LIBS"
10350 cat >conftest.$ac_ext <<_ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h. */
10357 /* Override any GCC internal prototype to avoid an error.
10358 Use char because int might match the return type of a GCC
10359 builtin and then its argument prototype would still apply. */
10372 rm -f conftest.$ac_objext conftest$ac_exeext
10373 if { (ac_try="$ac_link"
10374 case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_link") 2>conftest.er1
10381 grep -v '^ *+' conftest.er1 >conftest.err
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } && {
10386 test -z "$ac_c_werror_flag" ||
10387 test ! -s conftest.err
10388 } && test -s conftest$ac_exeext &&
10389 $as_test_x conftest$ac_exeext; then
10390 ac_cv_lib_svld_dlopen=yes
10392 echo "$as_me: failed program was:" >&5
10393 sed 's/^/| /' conftest.$ac_ext >&5
10395 ac_cv_lib_svld_dlopen=no
10398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10399 conftest$ac_exeext conftest.$ac_ext
10400 LIBS=$ac_check_lib_save_LIBS
10402 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10403 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10404 if test $ac_cv_lib_svld_dlopen = yes; then
10405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10407 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10408 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10409 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 ac_check_lib_save_LIBS=$LIBS
10414 cat >conftest.$ac_ext <<_ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10421 /* Override any GCC internal prototype to avoid an error.
10422 Use char because int might match the return type of a GCC
10423 builtin and then its argument prototype would still apply. */
10431 return dld_link ();
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (ac_try="$ac_link"
10438 case "(($ac_try" in
10439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440 *) ac_try_echo=$ac_try;;
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443 (eval "$ac_link") 2>conftest.er1
10445 grep -v '^ *+' conftest.er1 >conftest.err
10447 cat conftest.err >&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } && {
10450 test -z "$ac_c_werror_flag" ||
10451 test ! -s conftest.err
10452 } && test -s conftest$ac_exeext &&
10453 $as_test_x conftest$ac_exeext; then
10454 ac_cv_lib_dld_dld_link=yes
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10459 ac_cv_lib_dld_dld_link=no
10462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10463 conftest$ac_exeext conftest.$ac_ext
10464 LIBS=$ac_check_lib_save_LIBS
10466 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10467 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10468 if test $ac_cv_lib_dld_dld_link = yes; then
10469 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10490 if test "x$lt_cv_dlopen" != xno; then
10496 case $lt_cv_dlopen in
10498 save_CPPFLAGS="$CPPFLAGS"
10499 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10501 save_LDFLAGS="$LDFLAGS"
10502 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10505 LIBS="$lt_cv_dlopen_libs $LIBS"
10507 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10508 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10509 if test "${lt_cv_dlopen_self+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 if test "$cross_compiling" = yes; then :
10513 lt_cv_dlopen_self=cross
10515 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10516 lt_status=$lt_dlunknown
10517 cat > conftest.$ac_ext <<_LT_EOF
10518 #line 10518 "configure"
10519 #include "confdefs.h"
10528 # define LT_DLGLOBAL RTLD_GLOBAL
10531 # define LT_DLGLOBAL DL_GLOBAL
10533 # define LT_DLGLOBAL 0
10537 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10538 find out it does not work in some platform. */
10539 #ifndef LT_DLLAZY_OR_NOW
10541 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10544 # define LT_DLLAZY_OR_NOW DL_LAZY
10547 # define LT_DLLAZY_OR_NOW RTLD_NOW
10550 # define LT_DLLAZY_OR_NOW DL_NOW
10552 # define LT_DLLAZY_OR_NOW 0
10560 extern "C" void exit (int);
10563 void fnord() { int i=42;}
10566 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10567 int status = $lt_dlunknown;
10571 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10572 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10573 /* dlclose (self); */
10581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10582 (eval $ac_link) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10586 (./conftest; exit; ) >&5 2>/dev/null
10588 case x$lt_status in
10589 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10590 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10591 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10594 # compilation failed
10595 lt_cv_dlopen_self=no
10602 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10603 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10605 if test "x$lt_cv_dlopen_self" = xyes; then
10606 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10607 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10608 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10609 if test "${lt_cv_dlopen_self_static+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 if test "$cross_compiling" = yes; then :
10613 lt_cv_dlopen_self_static=cross
10615 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10616 lt_status=$lt_dlunknown
10617 cat > conftest.$ac_ext <<_LT_EOF
10618 #line 10618 "configure"
10619 #include "confdefs.h"
10628 # define LT_DLGLOBAL RTLD_GLOBAL
10631 # define LT_DLGLOBAL DL_GLOBAL
10633 # define LT_DLGLOBAL 0
10637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10638 find out it does not work in some platform. */
10639 #ifndef LT_DLLAZY_OR_NOW
10641 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10644 # define LT_DLLAZY_OR_NOW DL_LAZY
10647 # define LT_DLLAZY_OR_NOW RTLD_NOW
10650 # define LT_DLLAZY_OR_NOW DL_NOW
10652 # define LT_DLLAZY_OR_NOW 0
10660 extern "C" void exit (int);
10663 void fnord() { int i=42;}
10666 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10667 int status = $lt_dlunknown;
10671 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10672 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10673 /* dlclose (self); */
10681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10682 (eval $ac_link) 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10686 (./conftest; exit; ) >&5 2>/dev/null
10688 case x$lt_status in
10689 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10690 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10691 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10694 # compilation failed
10695 lt_cv_dlopen_self_static=no
10702 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10703 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10706 CPPFLAGS="$save_CPPFLAGS"
10707 LDFLAGS="$save_LDFLAGS"
10712 case $lt_cv_dlopen_self in
10713 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10714 *) enable_dlopen_self=unknown ;;
10717 case $lt_cv_dlopen_self_static in
10718 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10719 *) enable_dlopen_self_static=unknown ;;
10741 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10742 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10743 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10744 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10745 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10746 { echo "$as_me:$LINENO: result: yes" >&5
10747 echo "${ECHO_T}yes" >&6; }
10749 # FIXME - insert some real tests, host_os isn't really good enough
10752 if test -n "$STRIP" ; then
10753 striplib="$STRIP -x"
10754 old_striplib="$STRIP -S"
10755 { echo "$as_me:$LINENO: result: yes" >&5
10756 echo "${ECHO_T}yes" >&6; }
10758 { echo "$as_me:$LINENO: result: no" >&5
10759 echo "${ECHO_T}no" >&6; }
10763 { echo "$as_me:$LINENO: result: no" >&5
10764 echo "${ECHO_T}no" >&6; }
10780 # Report which library types will actually be built
10781 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10782 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10783 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10784 echo "${ECHO_T}$can_build_shared" >&6; }
10786 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10787 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10788 test "$can_build_shared" = "no" && enable_shared=no
10790 # On AIX, shared libraries and static libraries use the same namespace, and
10791 # are all built from PIC.
10794 test "$enable_shared" = yes && enable_static=no
10795 if test -n "$RANLIB"; then
10796 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10797 postinstall_cmds='$RANLIB $lib'
10802 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10803 test "$enable_shared" = yes && enable_static=no
10807 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10808 echo "${ECHO_T}$enable_shared" >&6; }
10810 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10811 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10812 # Make sure either enable_shared or enable_static is yes.
10813 test "$enable_shared" = yes || enable_static=yes
10814 { echo "$as_me:$LINENO: result: $enable_static" >&5
10815 echo "${ECHO_T}$enable_static" >&6; }
10822 ac_cpp='$CPP $CPPFLAGS'
10823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10841 ac_config_commands="$ac_config_commands libtool"
10846 # Only expand once:
10850 # Checks for libraries.
10851 # FIXME: Replace `main' with a function in `-lavcodec':
10852 #AC_CHECK_LIB([avcodec], [main])
10853 # FIXME: Replace `main' with a function in `-lavformat':
10854 #AC_CHECK_LIB([avformat], [main])
10855 # FIXME: Replace `main' with a function in `-lavutil':
10856 #AC_CHECK_LIB([avutil], [main])
10857 # FIXME: Replace `main' with a function in `-lm':
10859 { echo "$as_me:$LINENO: checking for main in -lm" >&5
10860 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
10861 if test "${ac_cv_lib_m_main+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 ac_check_lib_save_LIBS=$LIBS
10866 cat >conftest.$ac_ext <<_ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (ac_try="$ac_link"
10884 case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_link") 2>conftest.er1
10891 grep -v '^ *+' conftest.er1 >conftest.err
10893 cat conftest.err >&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } && {
10896 test -z "$ac_c_werror_flag" ||
10897 test ! -s conftest.err
10898 } && test -s conftest$ac_exeext &&
10899 $as_test_x conftest$ac_exeext; then
10900 ac_cv_lib_m_main=yes
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10905 ac_cv_lib_m_main=no
10908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10909 conftest$ac_exeext conftest.$ac_ext
10910 LIBS=$ac_check_lib_save_LIBS
10912 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10913 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
10914 if test $ac_cv_lib_m_main = yes; then
10915 cat >>confdefs.h <<_ACEOF
10916 #define HAVE_LIBM 1
10924 # Checks for header files.
10930 ac_header_dirent=no
10931 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10932 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10933 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10934 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 cat >conftest.$ac_ext <<_ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944 #include <sys/types.h>
10956 rm -f conftest.$ac_objext
10957 if { (ac_try="$ac_compile"
10958 case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_compile") 2>conftest.er1
10965 grep -v '^ *+' conftest.er1 >conftest.err
10967 cat conftest.err >&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } && {
10970 test -z "$ac_c_werror_flag" ||
10971 test ! -s conftest.err
10972 } && test -s conftest.$ac_objext; then
10973 eval "$as_ac_Header=yes"
10975 echo "$as_me: failed program was:" >&5
10976 sed 's/^/| /' conftest.$ac_ext >&5
10978 eval "$as_ac_Header=no"
10981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10983 ac_res=`eval echo '${'$as_ac_Header'}'`
10984 { echo "$as_me:$LINENO: result: $ac_res" >&5
10985 echo "${ECHO_T}$ac_res" >&6; }
10986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10987 cat >>confdefs.h <<_ACEOF
10988 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10991 ac_header_dirent=$ac_hdr; break
10995 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10996 if test $ac_header_dirent = dirent.h; then
10997 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10998 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10999 if test "${ac_cv_search_opendir+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 ac_func_search_save_LIBS=$LIBS
11003 cat >conftest.$ac_ext <<_ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11010 /* Override any GCC internal prototype to avoid an error.
11011 Use char because int might match the return type of a GCC
11012 builtin and then its argument prototype would still apply. */
11025 for ac_lib in '' dir; do
11026 if test -z "$ac_lib"; then
11027 ac_res="none required"
11030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11032 rm -f conftest.$ac_objext conftest$ac_exeext
11033 if { (ac_try="$ac_link"
11034 case "(($ac_try" in
11035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036 *) ac_try_echo=$ac_try;;
11038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11039 (eval "$ac_link") 2>conftest.er1
11041 grep -v '^ *+' conftest.er1 >conftest.err
11043 cat conftest.err >&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } && {
11046 test -z "$ac_c_werror_flag" ||
11047 test ! -s conftest.err
11048 } && test -s conftest$ac_exeext &&
11049 $as_test_x conftest$ac_exeext; then
11050 ac_cv_search_opendir=$ac_res
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11060 if test "${ac_cv_search_opendir+set}" = set; then
11064 if test "${ac_cv_search_opendir+set}" = set; then
11067 ac_cv_search_opendir=no
11069 rm conftest.$ac_ext
11070 LIBS=$ac_func_search_save_LIBS
11072 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11073 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11074 ac_res=$ac_cv_search_opendir
11075 if test "$ac_res" != no; then
11076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11081 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11082 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11083 if test "${ac_cv_search_opendir+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 ac_func_search_save_LIBS=$LIBS
11087 cat >conftest.$ac_ext <<_ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11094 /* Override any GCC internal prototype to avoid an error.
11095 Use char because int might match the return type of a GCC
11096 builtin and then its argument prototype would still apply. */
11109 for ac_lib in '' x; do
11110 if test -z "$ac_lib"; then
11111 ac_res="none required"
11114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11116 rm -f conftest.$ac_objext conftest$ac_exeext
11117 if { (ac_try="$ac_link"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_link") 2>conftest.er1
11125 grep -v '^ *+' conftest.er1 >conftest.err
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && {
11130 test -z "$ac_c_werror_flag" ||
11131 test ! -s conftest.err
11132 } && test -s conftest$ac_exeext &&
11133 $as_test_x conftest$ac_exeext; then
11134 ac_cv_search_opendir=$ac_res
11136 echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11144 if test "${ac_cv_search_opendir+set}" = set; then
11148 if test "${ac_cv_search_opendir+set}" = set; then
11151 ac_cv_search_opendir=no
11153 rm conftest.$ac_ext
11154 LIBS=$ac_func_search_save_LIBS
11156 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11157 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11158 ac_res=$ac_cv_search_opendir
11159 if test "$ac_res" != no; then
11160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11166 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11167 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
11168 if test "${ac_cv_header_stdc+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 cat >conftest.$ac_ext <<_ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 #include <stdlib.h>
11178 #include <stdarg.h>
11179 #include <string.h>
11190 rm -f conftest.$ac_objext
11191 if { (ac_try="$ac_compile"
11192 case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_compile") 2>conftest.er1
11199 grep -v '^ *+' conftest.er1 >conftest.err
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } && {
11204 test -z "$ac_c_werror_flag" ||
11205 test ! -s conftest.err
11206 } && test -s conftest.$ac_objext; then
11207 ac_cv_header_stdc=yes
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 ac_cv_header_stdc=no
11215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11217 if test $ac_cv_header_stdc = yes; then
11218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11219 cat >conftest.$ac_ext <<_ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h. */
11225 #include <string.h>
11228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11229 $EGREP "memchr" >/dev/null 2>&1; then
11232 ac_cv_header_stdc=no
11238 if test $ac_cv_header_stdc = yes; then
11239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11240 cat >conftest.$ac_ext <<_ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 #include <stdlib.h>
11249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11250 $EGREP "free" >/dev/null 2>&1; then
11253 ac_cv_header_stdc=no
11259 if test $ac_cv_header_stdc = yes; then
11260 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11261 if test "$cross_compiling" = yes; then
11264 cat >conftest.$ac_ext <<_ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h. */
11271 #include <stdlib.h>
11272 #if ((' ' & 0x0FF) == 0x020)
11273 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11274 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11276 # define ISLOWER(c) \
11277 (('a' <= (c) && (c) <= 'i') \
11278 || ('j' <= (c) && (c) <= 'r') \
11279 || ('s' <= (c) && (c) <= 'z'))
11280 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11283 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11288 for (i = 0; i < 256; i++)
11289 if (XOR (islower (i), ISLOWER (i))
11290 || toupper (i) != TOUPPER (i))
11295 rm -f conftest$ac_exeext
11296 if { (ac_try="$ac_link"
11297 case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302 (eval "$ac_link") 2>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11306 { (case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_try") 2>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }; then
11317 echo "$as_me: program exited with status $ac_status" >&5
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11321 ( exit $ac_status )
11322 ac_cv_header_stdc=no
11324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11330 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11331 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11332 if test $ac_cv_header_stdc = yes; then
11334 cat >>confdefs.h <<\_ACEOF
11335 #define STDC_HEADERS 1
11346 for ac_header in fcntl.h limits.h stdlib.h string.h sys/time.h unistd.h
11348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 ac_res=`eval echo '${'$as_ac_Header'}'`
11356 { echo "$as_me:$LINENO: result: $ac_res" >&5
11357 echo "${ECHO_T}$ac_res" >&6; }
11359 # Is the header compilable?
11360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11362 cat >conftest.$ac_ext <<_ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11368 $ac_includes_default
11369 #include <$ac_header>
11371 rm -f conftest.$ac_objext
11372 if { (ac_try="$ac_compile"
11373 case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_compile") 2>conftest.er1
11380 grep -v '^ *+' conftest.er1 >conftest.err
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } && {
11385 test -z "$ac_c_werror_flag" ||
11386 test ! -s conftest.err
11387 } && test -s conftest.$ac_objext; then
11388 ac_header_compiler=yes
11390 echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11393 ac_header_compiler=no
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11398 echo "${ECHO_T}$ac_header_compiler" >&6; }
11400 # Is the header present?
11401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11403 cat >conftest.$ac_ext <<_ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409 #include <$ac_header>
11411 if { (ac_try="$ac_cpp conftest.$ac_ext"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11419 grep -v '^ *+' conftest.er1 >conftest.err
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } >/dev/null && {
11424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11425 test ! -s conftest.err
11427 ac_header_preproc=yes
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11432 ac_header_preproc=no
11435 rm -f conftest.err conftest.$ac_ext
11436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437 echo "${ECHO_T}$ac_header_preproc" >&6; }
11439 # So? What about this header?
11440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446 ac_header_preproc=yes
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 eval "$as_ac_Header=\$ac_header_preproc"
11471 ac_res=`eval echo '${'$as_ac_Header'}'`
11472 { echo "$as_me:$LINENO: result: $ac_res" >&5
11473 echo "${ECHO_T}$ac_res" >&6; }
11476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11477 cat >>confdefs.h <<_ACEOF
11478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11486 # Checks for typedefs, structures, and compiler characteristics.
11487 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11488 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
11489 if test "${ac_cv_header_stdbool_h+set}" = set; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 cat >conftest.$ac_ext <<_ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11499 #include <stdbool.h>
11501 "error: bool is not defined"
11504 "error: false is not defined"
11507 "error: false is not 0"
11510 "error: true is not defined"
11513 "error: true is not 1"
11515 #ifndef __bool_true_false_are_defined
11516 "error: __bool_true_false_are_defined is not defined"
11519 struct s { _Bool s: 1; _Bool t; } s;
11521 char a[true == 1 ? 1 : -1];
11522 char b[false == 0 ? 1 : -1];
11523 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11524 char d[(bool) 0.5 == true ? 1 : -1];
11526 char f[(_Bool) 0.0 == false ? 1 : -1];
11528 char h[sizeof (_Bool)];
11529 char i[sizeof s.t];
11530 enum { j = false, k = true, l = false * true, m = true * 256 };
11532 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11533 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11534 # if defined __xlc__ || defined __GNUC__
11535 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11536 reported by James Lemley on 2005-10-05; see
11537 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11538 This test is not quite right, since xlc is allowed to
11539 reject this program, as the initializer for xlcbug is
11540 not one of the forms that C requires support for.
11541 However, doing the test right would require a runtime
11542 test, and that would make cross-compilation harder.
11543 Let us hope that IBM fixes the xlc bug, and also adds
11544 support for this kind of constant expression. In the
11545 meantime, this test will reject xlc, which is OK, since
11546 our stdbool.h substitute should suffice. We also test
11547 this with GCC, where it should work, to detect more
11548 quickly whether someone messes up the test in the
11550 char digs[] = "0123456789";
11551 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11553 /* Catch a bug in an HP-UX C compiler. See
11554 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11555 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11566 /* Refer to every declared value, to avoid compiler optimizations. */
11567 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11568 + !m + !n + !o + !p + !q + !pq);
11574 rm -f conftest.$ac_objext
11575 if { (ac_try="$ac_compile"
11576 case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_compile") 2>conftest.er1
11583 grep -v '^ *+' conftest.er1 >conftest.err
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } && {
11588 test -z "$ac_c_werror_flag" ||
11589 test ! -s conftest.err
11590 } && test -s conftest.$ac_objext; then
11591 ac_cv_header_stdbool_h=yes
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11596 ac_cv_header_stdbool_h=no
11599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11601 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11602 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11603 { echo "$as_me:$LINENO: checking for _Bool" >&5
11604 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11605 if test "${ac_cv_type__Bool+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 cat >conftest.$ac_ext <<_ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11614 $ac_includes_default
11615 typedef _Bool ac__type_new_;
11619 if ((ac__type_new_ *) 0)
11621 if (sizeof (ac__type_new_))
11627 rm -f conftest.$ac_objext
11628 if { (ac_try="$ac_compile"
11629 case "(($ac_try" in
11630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631 *) ac_try_echo=$ac_try;;
11633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634 (eval "$ac_compile") 2>conftest.er1
11636 grep -v '^ *+' conftest.er1 >conftest.err
11638 cat conftest.err >&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } && {
11641 test -z "$ac_c_werror_flag" ||
11642 test ! -s conftest.err
11643 } && test -s conftest.$ac_objext; then
11644 ac_cv_type__Bool=yes
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11649 ac_cv_type__Bool=no
11652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11654 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11655 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11656 if test $ac_cv_type__Bool = yes; then
11658 cat >>confdefs.h <<_ACEOF
11659 #define HAVE__BOOL 1
11665 if test $ac_cv_header_stdbool_h = yes; then
11667 cat >>confdefs.h <<\_ACEOF
11668 #define HAVE_STDBOOL_H 1
11673 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11674 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11675 if test "${ac_cv_c_const+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 cat >conftest.$ac_ext <<_ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11688 /* FIXME: Include the comments suggested by Paul. */
11689 #ifndef __cplusplus
11690 /* Ultrix mips cc rejects this. */
11691 typedef int charset[2];
11693 /* SunOS 4.1.1 cc rejects this. */
11694 char const *const *pcpcc;
11696 /* NEC SVR4.0.2 mips cc rejects this. */
11697 struct point {int x, y;};
11698 static struct point const zero = {0,0};
11699 /* AIX XL C 1.02.0.0 rejects this.
11700 It does not let you subtract one const X* pointer from another in
11701 an arm of an if-expression whose if-part is not a constant
11703 const char *g = "string";
11704 pcpcc = &g + (g ? g-g : 0);
11705 /* HPUX 7.0 cc rejects these. */
11707 ppc = (char**) pcpcc;
11708 pcpcc = (char const *const *) ppc;
11709 { /* SCO 3.2v4 cc rejects this. */
11711 char const *s = 0 ? (char *) 0 : (char const *) 0;
11716 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11717 int x[] = {25, 17};
11718 const int *foo = &x[0];
11721 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11722 typedef const int *iptr;
11726 { /* AIX XL C 1.02.0.0 rejects this saying
11727 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11728 struct s { int j; const int *ap[3]; };
11729 struct s *b; b->j = 5;
11731 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11732 const int foo = 10;
11733 if (!foo) return 0;
11735 return !cs[0] && !zero.x;
11742 rm -f conftest.$ac_objext
11743 if { (ac_try="$ac_compile"
11744 case "(($ac_try" in
11745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746 *) ac_try_echo=$ac_try;;
11748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749 (eval "$ac_compile") 2>conftest.er1
11751 grep -v '^ *+' conftest.er1 >conftest.err
11753 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } && {
11756 test -z "$ac_c_werror_flag" ||
11757 test ! -s conftest.err
11758 } && test -s conftest.$ac_objext; then
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11769 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11770 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11771 if test $ac_cv_c_const = no; then
11773 cat >>confdefs.h <<\_ACEOF
11779 { echo "$as_me:$LINENO: checking for inline" >&5
11780 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11781 if test "${ac_cv_c_inline+set}" = set; then
11782 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 for ac_kw in inline __inline__ __inline; do
11786 cat >conftest.$ac_ext <<_ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 #ifndef __cplusplus
11794 static $ac_kw foo_t static_foo () {return 0; }
11795 $ac_kw foo_t foo () {return 0; }
11799 rm -f conftest.$ac_objext
11800 if { (ac_try="$ac_compile"
11801 case "(($ac_try" in
11802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803 *) ac_try_echo=$ac_try;;
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_compile") 2>conftest.er1
11808 grep -v '^ *+' conftest.er1 >conftest.err
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } && {
11813 test -z "$ac_c_werror_flag" ||
11814 test ! -s conftest.err
11815 } && test -s conftest.$ac_objext; then
11816 ac_cv_c_inline=$ac_kw
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825 test "$ac_cv_c_inline" != no && break
11829 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11830 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11833 case $ac_cv_c_inline in
11836 case $ac_cv_c_inline in
11838 *) ac_val=$ac_cv_c_inline;;
11840 cat >>confdefs.h <<_ACEOF
11841 #ifndef __cplusplus
11842 #define inline $ac_val
11849 { echo "$as_me:$LINENO: checking for int64_t" >&5
11850 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
11851 if test "${ac_cv_c_int64_t+set}" = set; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 for ac_type in 'int64_t' 'int' 'long int' \
11856 'long long int' 'short int' 'signed char'; do
11857 cat >conftest.$ac_ext <<_ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 $ac_includes_default
11867 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
11874 rm -f conftest.$ac_objext
11875 if { (ac_try="$ac_compile"
11876 case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_compile") 2>conftest.er1
11883 grep -v '^ *+' conftest.er1 >conftest.err
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } && {
11888 test -z "$ac_c_werror_flag" ||
11889 test ! -s conftest.err
11890 } && test -s conftest.$ac_objext; then
11891 cat >conftest.$ac_ext <<_ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897 $ac_includes_default
11901 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
11902 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
11909 rm -f conftest.$ac_objext
11910 if { (ac_try="$ac_compile"
11911 case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916 (eval "$ac_compile") 2>conftest.er1
11918 grep -v '^ *+' conftest.er1 >conftest.err
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } && {
11923 test -z "$ac_c_werror_flag" ||
11924 test ! -s conftest.err
11925 } && test -s conftest.$ac_objext; then
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11932 int64_t) ac_cv_c_int64_t=yes ;;
11933 *) ac_cv_c_int64_t=$ac_type ;;
11938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11947 test "$ac_cv_c_int64_t" != no && break
11950 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
11951 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
11952 case $ac_cv_c_int64_t in #(
11956 cat >>confdefs.h <<_ACEOF
11957 #define int64_t $ac_cv_c_int64_t
11962 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11963 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11964 if test "${ac_cv_header_time+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 cat >conftest.$ac_ext <<_ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 #include <sys/types.h>
11974 #include <sys/time.h>
11980 if ((struct tm *) 0)
11986 rm -f conftest.$ac_objext
11987 if { (ac_try="$ac_compile"
11988 case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_compile") 2>conftest.er1
11995 grep -v '^ *+' conftest.er1 >conftest.err
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } && {
12000 test -z "$ac_c_werror_flag" ||
12001 test ! -s conftest.err
12002 } && test -s conftest.$ac_objext; then
12003 ac_cv_header_time=yes
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12008 ac_cv_header_time=no
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12014 echo "${ECHO_T}$ac_cv_header_time" >&6; }
12015 if test $ac_cv_header_time = yes; then
12017 cat >>confdefs.h <<\_ACEOF
12018 #define TIME_WITH_SYS_TIME 1
12024 # Checks for library functions.
12025 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
12026 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
12027 if test "${ac_cv_func_closedir_void+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 if test "$cross_compiling" = yes; then
12031 ac_cv_func_closedir_void=yes
12033 cat >conftest.$ac_ext <<_ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 $ac_includes_default
12040 #include <$ac_header_dirent>
12041 #ifndef __cplusplus
12048 return closedir (opendir (".")) != 0;
12053 rm -f conftest$ac_exeext
12054 if { (ac_try="$ac_link"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_link") 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12064 { (case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_try") 2>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073 ac_cv_func_closedir_void=no
12075 echo "$as_me: program exited with status $ac_status" >&5
12076 echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12079 ( exit $ac_status )
12080 ac_cv_func_closedir_void=yes
12082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12087 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
12088 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
12089 if test $ac_cv_func_closedir_void = yes; then
12091 cat >>confdefs.h <<\_ACEOF
12092 #define CLOSEDIR_VOID 1
12097 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12098 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
12099 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 rm -f conftest.sym conftest.file
12103 echo >conftest.file
12104 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12105 if test "$cross_compiling" = yes; then
12106 ac_cv_func_lstat_dereferences_slashed_symlink=no
12108 cat >conftest.$ac_ext <<_ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 $ac_includes_default
12119 /* Linux will dereference the symlink and fail.
12120 That is better in the sense that it means we will not
12121 have to compile and use the lstat wrapper. */
12122 return lstat ("conftest.sym/", &sbuf) == 0;
12127 rm -f conftest$ac_exeext
12128 if { (ac_try="$ac_link"
12129 case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_link") 2>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12138 { (case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_try") 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12149 echo "$as_me: program exited with status $ac_status" >&5
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 ( exit $ac_status )
12154 ac_cv_func_lstat_dereferences_slashed_symlink=no
12156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12161 # If the `ln -s' command failed, then we probably don't even
12162 # have an lstat function.
12163 ac_cv_func_lstat_dereferences_slashed_symlink=no
12165 rm -f conftest.sym conftest.file
12168 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12169 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12171 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12173 cat >>confdefs.h <<_ACEOF
12174 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12178 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12179 case " $LIBOBJS " in
12180 *" lstat.$ac_objext "* ) ;;
12181 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
12187 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
12188 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
12189 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 if test "$cross_compiling" = yes; then
12193 ac_cv_func_lstat_empty_string_bug=yes
12195 cat >conftest.$ac_ext <<_ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12201 $ac_includes_default
12206 return lstat ("", &sbuf) == 0;
12211 rm -f conftest$ac_exeext
12212 if { (ac_try="$ac_link"
12213 case "(($ac_try" in
12214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215 *) ac_try_echo=$ac_try;;
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218 (eval "$ac_link") 2>&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12222 { (case "(($ac_try" in
12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227 (eval "$ac_try") 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 ac_cv_func_lstat_empty_string_bug=no
12233 echo "$as_me: program exited with status $ac_status" >&5
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12237 ( exit $ac_status )
12238 ac_cv_func_lstat_empty_string_bug=yes
12240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12245 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
12246 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
12247 if test $ac_cv_func_lstat_empty_string_bug = yes; then
12248 case " $LIBOBJS " in
12249 *" lstat.$ac_objext "* ) ;;
12250 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
12255 cat >>confdefs.h <<_ACEOF
12256 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12261 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12262 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
12263 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 rm -f conftest.sym conftest.file
12267 echo >conftest.file
12268 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12269 if test "$cross_compiling" = yes; then
12270 ac_cv_func_lstat_dereferences_slashed_symlink=no
12272 cat >conftest.$ac_ext <<_ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 $ac_includes_default
12283 /* Linux will dereference the symlink and fail.
12284 That is better in the sense that it means we will not
12285 have to compile and use the lstat wrapper. */
12286 return lstat ("conftest.sym/", &sbuf) == 0;
12291 rm -f conftest$ac_exeext
12292 if { (ac_try="$ac_link"
12293 case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_link") 2>&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12302 { (case "(($ac_try" in
12303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304 *) ac_try_echo=$ac_try;;
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307 (eval "$ac_try") 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12313 echo "$as_me: program exited with status $ac_status" >&5
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12317 ( exit $ac_status )
12318 ac_cv_func_lstat_dereferences_slashed_symlink=no
12320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12325 # If the `ln -s' command failed, then we probably don't even
12326 # have an lstat function.
12327 ac_cv_func_lstat_dereferences_slashed_symlink=no
12329 rm -f conftest.sym conftest.file
12332 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12333 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12335 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12337 cat >>confdefs.h <<_ACEOF
12338 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12342 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12343 case " $LIBOBJS " in
12344 *" lstat.$ac_objext "* ) ;;
12345 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
12352 for ac_header in stdlib.h
12354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 ac_res=`eval echo '${'$as_ac_Header'}'`
12362 { echo "$as_me:$LINENO: result: $ac_res" >&5
12363 echo "${ECHO_T}$ac_res" >&6; }
12365 # Is the header compilable?
12366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12368 cat >conftest.$ac_ext <<_ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 $ac_includes_default
12375 #include <$ac_header>
12377 rm -f conftest.$ac_objext
12378 if { (ac_try="$ac_compile"
12379 case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_compile") 2>conftest.er1
12386 grep -v '^ *+' conftest.er1 >conftest.err
12388 cat conftest.err >&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } && {
12391 test -z "$ac_c_werror_flag" ||
12392 test ! -s conftest.err
12393 } && test -s conftest.$ac_objext; then
12394 ac_header_compiler=yes
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12399 ac_header_compiler=no
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12404 echo "${ECHO_T}$ac_header_compiler" >&6; }
12406 # Is the header present?
12407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12409 cat >conftest.$ac_ext <<_ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415 #include <$ac_header>
12417 if { (ac_try="$ac_cpp conftest.$ac_ext"
12418 case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12425 grep -v '^ *+' conftest.er1 >conftest.err
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } >/dev/null && {
12430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12431 test ! -s conftest.err
12433 ac_header_preproc=yes
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12438 ac_header_preproc=no
12441 rm -f conftest.err conftest.$ac_ext
12442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12443 echo "${ECHO_T}$ac_header_preproc" >&6; }
12445 # So? What about this header?
12446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12452 ac_header_preproc=yes
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 eval "$as_ac_Header=\$ac_header_preproc"
12477 ac_res=`eval echo '${'$as_ac_Header'}'`
12478 { echo "$as_me:$LINENO: result: $ac_res" >&5
12479 echo "${ECHO_T}$ac_res" >&6; }
12482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12483 cat >>confdefs.h <<_ACEOF
12484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12491 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
12492 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
12493 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 if test "$cross_compiling" = yes; then
12497 ac_cv_func_malloc_0_nonnull=no
12499 cat >conftest.$ac_ext <<_ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12506 # include <stdlib.h>
12514 return ! malloc (0);
12519 rm -f conftest$ac_exeext
12520 if { (ac_try="$ac_link"
12521 case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_link") 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12530 { (case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_try") 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
12539 ac_cv_func_malloc_0_nonnull=yes
12541 echo "$as_me: program exited with status $ac_status" >&5
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12545 ( exit $ac_status )
12546 ac_cv_func_malloc_0_nonnull=no
12548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12553 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
12554 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
12555 if test $ac_cv_func_malloc_0_nonnull = yes; then
12557 cat >>confdefs.h <<\_ACEOF
12558 #define HAVE_MALLOC 1
12562 cat >>confdefs.h <<\_ACEOF
12563 #define HAVE_MALLOC 0
12566 case " $LIBOBJS " in
12567 *" malloc.$ac_objext "* ) ;;
12568 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12573 cat >>confdefs.h <<\_ACEOF
12574 #define malloc rpl_malloc
12581 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12582 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12583 if test "${ac_cv_func_memcmp_working+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 if test "$cross_compiling" = yes; then
12587 ac_cv_func_memcmp_working=no
12589 cat >conftest.$ac_ext <<_ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12595 $ac_includes_default
12600 /* Some versions of memcmp are not 8-bit clean. */
12601 char c0 = '\100', c1 = '\200', c2 = '\201';
12602 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12605 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12606 or more and with at least one buffer not starting on a 4-byte boundary.
12607 William Lewis provided this test program. */
12612 for (i = 0; i < 4; i++)
12616 strcpy (a, "--------01111111");
12617 strcpy (b, "--------10000000");
12618 if (memcmp (a, b, 16) >= 0)
12628 rm -f conftest$ac_exeext
12629 if { (ac_try="$ac_link"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_link") 2>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12639 { (case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_try") 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12648 ac_cv_func_memcmp_working=yes
12650 echo "$as_me: program exited with status $ac_status" >&5
12651 echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12654 ( exit $ac_status )
12655 ac_cv_func_memcmp_working=no
12657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12662 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12663 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12664 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12665 *" memcmp.$ac_objext "* ) ;;
12666 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12673 for ac_header in stdlib.h unistd.h
12675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 ac_res=`eval echo '${'$as_ac_Header'}'`
12683 { echo "$as_me:$LINENO: result: $ac_res" >&5
12684 echo "${ECHO_T}$ac_res" >&6; }
12686 # Is the header compilable?
12687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12689 cat >conftest.$ac_ext <<_ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12695 $ac_includes_default
12696 #include <$ac_header>
12698 rm -f conftest.$ac_objext
12699 if { (ac_try="$ac_compile"
12700 case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_compile") 2>conftest.er1
12707 grep -v '^ *+' conftest.er1 >conftest.err
12709 cat conftest.err >&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } && {
12712 test -z "$ac_c_werror_flag" ||
12713 test ! -s conftest.err
12714 } && test -s conftest.$ac_objext; then
12715 ac_header_compiler=yes
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12720 ac_header_compiler=no
12723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12725 echo "${ECHO_T}$ac_header_compiler" >&6; }
12727 # Is the header present?
12728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12730 cat >conftest.$ac_ext <<_ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h. */
12736 #include <$ac_header>
12738 if { (ac_try="$ac_cpp conftest.$ac_ext"
12739 case "(($ac_try" in
12740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741 *) ac_try_echo=$ac_try;;
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12746 grep -v '^ *+' conftest.er1 >conftest.err
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } >/dev/null && {
12751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12752 test ! -s conftest.err
12754 ac_header_preproc=yes
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12759 ac_header_preproc=no
12762 rm -f conftest.err conftest.$ac_ext
12763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12764 echo "${ECHO_T}$ac_header_preproc" >&6; }
12766 # So? What about this header?
12767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12773 ac_header_preproc=yes
12776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 eval "$as_ac_Header=\$ac_header_preproc"
12798 ac_res=`eval echo '${'$as_ac_Header'}'`
12799 { echo "$as_me:$LINENO: result: $ac_res" >&5
12800 echo "${ECHO_T}$ac_res" >&6; }
12803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12804 cat >>confdefs.h <<_ACEOF
12805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12813 for ac_func in getpagesize
12815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 cat >conftest.$ac_ext <<_ACEOF
12824 cat confdefs.h >>conftest.$ac_ext
12825 cat >>conftest.$ac_ext <<_ACEOF
12826 /* end confdefs.h. */
12827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12829 #define $ac_func innocuous_$ac_func
12831 /* System header to define __stub macros and hopefully few prototypes,
12832 which can conflict with char $ac_func (); below.
12833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12834 <limits.h> exists even on freestanding compilers. */
12837 # include <limits.h>
12839 # include <assert.h>
12844 /* Override any GCC internal prototype to avoid an error.
12845 Use char because int might match the return type of a GCC
12846 builtin and then its argument prototype would still apply. */
12851 /* The GNU C library defines this for functions which it implements
12852 to always fail with ENOSYS. Some functions are actually named
12853 something starting with __ and the normal name is an alias. */
12854 #if defined __stub_$ac_func || defined __stub___$ac_func
12861 return $ac_func ();
12866 rm -f conftest.$ac_objext conftest$ac_exeext
12867 if { (ac_try="$ac_link"
12868 case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_link") 2>conftest.er1
12875 grep -v '^ *+' conftest.er1 >conftest.err
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } && {
12880 test -z "$ac_c_werror_flag" ||
12881 test ! -s conftest.err
12882 } && test -s conftest$ac_exeext &&
12883 $as_test_x conftest$ac_exeext; then
12884 eval "$as_ac_var=yes"
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12889 eval "$as_ac_var=no"
12892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12893 conftest$ac_exeext conftest.$ac_ext
12895 ac_res=`eval echo '${'$as_ac_var'}'`
12896 { echo "$as_me:$LINENO: result: $ac_res" >&5
12897 echo "${ECHO_T}$ac_res" >&6; }
12898 if test `eval echo '${'$as_ac_var'}'` = yes; then
12899 cat >>confdefs.h <<_ACEOF
12900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12906 { echo "$as_me:$LINENO: checking for working mmap" >&5
12907 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12908 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
12911 if test "$cross_compiling" = yes; then
12912 ac_cv_func_mmap_fixed_mapped=no
12914 cat >conftest.$ac_ext <<_ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 $ac_includes_default
12921 /* malloc might have been renamed as rpl_malloc. */
12924 /* Thanks to Mike Haertel and Jim Avera for this test.
12925 Here is a matrix of mmap possibilities:
12926 mmap private not fixed
12927 mmap private fixed at somewhere currently unmapped
12928 mmap private fixed at somewhere already mapped
12929 mmap shared not fixed
12930 mmap shared fixed at somewhere currently unmapped
12931 mmap shared fixed at somewhere already mapped
12932 For private mappings, we should verify that changes cannot be read()
12933 back from the file, nor mmap's back from the file at a different
12934 address. (There have been systems where private was not correctly
12935 implemented like the infamous i386 svr4.0, and systems where the
12936 VM page cache was not coherent with the file system buffer cache
12937 like early versions of FreeBSD and possibly contemporary NetBSD.)
12938 For shared mappings, we should conversely verify that changes get
12939 propagated back to all the places they're supposed to be.
12941 Grep wants private fixed already mapped.
12942 The main things grep needs to know about mmap are:
12943 * does it exist and is it safe to write into the mmap'd area
12944 * how to use it (BSD variants) */
12947 #include <sys/mman.h>
12949 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12953 /* This mess was copied from the GNU getpagesize.h. */
12954 #ifndef HAVE_GETPAGESIZE
12955 /* Assume that all systems that can run configure have sys/param.h. */
12956 # ifndef HAVE_SYS_PARAM_H
12957 # define HAVE_SYS_PARAM_H 1
12960 # ifdef _SC_PAGESIZE
12961 # define getpagesize() sysconf(_SC_PAGESIZE)
12962 # else /* no _SC_PAGESIZE */
12963 # ifdef HAVE_SYS_PARAM_H
12964 # include <sys/param.h>
12965 # ifdef EXEC_PAGESIZE
12966 # define getpagesize() EXEC_PAGESIZE
12967 # else /* no EXEC_PAGESIZE */
12969 # define getpagesize() NBPG * CLSIZE
12972 # endif /* no CLSIZE */
12973 # else /* no NBPG */
12975 # define getpagesize() NBPC
12976 # else /* no NBPC */
12978 # define getpagesize() PAGESIZE
12979 # endif /* PAGESIZE */
12980 # endif /* no NBPC */
12981 # endif /* no NBPG */
12982 # endif /* no EXEC_PAGESIZE */
12983 # else /* no HAVE_SYS_PARAM_H */
12984 # define getpagesize() 8192 /* punt totally */
12985 # endif /* no HAVE_SYS_PARAM_H */
12986 # endif /* no _SC_PAGESIZE */
12988 #endif /* no HAVE_GETPAGESIZE */
12993 char *data, *data2, *data3;
12997 pagesize = getpagesize ();
12999 /* First, make a file with some known garbage in it. */
13000 data = (char *) malloc (pagesize);
13003 for (i = 0; i < pagesize; ++i)
13004 *(data + i) = rand ();
13006 fd = creat ("conftest.mmap", 0600);
13009 if (write (fd, data, pagesize) != pagesize)
13013 /* Next, try to mmap the file at a fixed address which already has
13014 something else allocated at it. If we can, also make sure that
13015 we see the same garbage. */
13016 fd = open ("conftest.mmap", O_RDWR);
13019 data2 = (char *) malloc (2 * pagesize);
13022 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13023 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13024 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13026 for (i = 0; i < pagesize; ++i)
13027 if (*(data + i) != *(data2 + i))
13030 /* Finally, make sure that changes to the mapped area do not
13031 percolate back to the file as seen by read(). (This is a bug on
13032 some variants of i386 svr4.0.) */
13033 for (i = 0; i < pagesize; ++i)
13034 *(data2 + i) = *(data2 + i) + 1;
13035 data3 = (char *) malloc (pagesize);
13038 if (read (fd, data3, pagesize) != pagesize)
13040 for (i = 0; i < pagesize; ++i)
13041 if (*(data + i) != *(data3 + i))
13047 rm -f conftest$ac_exeext
13048 if { (ac_try="$ac_link"
13049 case "(($ac_try" in
13050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051 *) ac_try_echo=$ac_try;;
13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054 (eval "$ac_link") 2>&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13058 { (case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_try") 2>&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 ac_cv_func_mmap_fixed_mapped=yes
13069 echo "$as_me: program exited with status $ac_status" >&5
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13073 ( exit $ac_status )
13074 ac_cv_func_mmap_fixed_mapped=no
13076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13081 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13082 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13083 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13085 cat >>confdefs.h <<\_ACEOF
13086 #define HAVE_MMAP 1
13090 rm -f conftest.mmap
13093 for ac_header in stdlib.h
13095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13102 ac_res=`eval echo '${'$as_ac_Header'}'`
13103 { echo "$as_me:$LINENO: result: $ac_res" >&5
13104 echo "${ECHO_T}$ac_res" >&6; }
13106 # Is the header compilable?
13107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13109 cat >conftest.$ac_ext <<_ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13115 $ac_includes_default
13116 #include <$ac_header>
13118 rm -f conftest.$ac_objext
13119 if { (ac_try="$ac_compile"
13120 case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_compile") 2>conftest.er1
13127 grep -v '^ *+' conftest.er1 >conftest.err
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } && {
13132 test -z "$ac_c_werror_flag" ||
13133 test ! -s conftest.err
13134 } && test -s conftest.$ac_objext; then
13135 ac_header_compiler=yes
13137 echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13140 ac_header_compiler=no
13143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13145 echo "${ECHO_T}$ac_header_compiler" >&6; }
13147 # Is the header present?
13148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13150 cat >conftest.$ac_ext <<_ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 #include <$ac_header>
13158 if { (ac_try="$ac_cpp conftest.$ac_ext"
13159 case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13166 grep -v '^ *+' conftest.er1 >conftest.err
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } >/dev/null && {
13171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13172 test ! -s conftest.err
13174 ac_header_preproc=yes
13176 echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13179 ac_header_preproc=no
13182 rm -f conftest.err conftest.$ac_ext
13183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13184 echo "${ECHO_T}$ac_header_preproc" >&6; }
13186 # So? What about this header?
13187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13193 ac_header_preproc=yes
13196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13216 eval "$as_ac_Header=\$ac_header_preproc"
13218 ac_res=`eval echo '${'$as_ac_Header'}'`
13219 { echo "$as_me:$LINENO: result: $ac_res" >&5
13220 echo "${ECHO_T}$ac_res" >&6; }
13223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13224 cat >>confdefs.h <<_ACEOF
13225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13232 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13233 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
13234 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13237 if test "$cross_compiling" = yes; then
13238 ac_cv_func_realloc_0_nonnull=no
13240 cat >conftest.$ac_ext <<_ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13247 # include <stdlib.h>
13255 return ! realloc (0, 0);
13260 rm -f conftest$ac_exeext
13261 if { (ac_try="$ac_link"
13262 case "(($ac_try" in
13263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264 *) ac_try_echo=$ac_try;;
13266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267 (eval "$ac_link") 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13271 { (case "(($ac_try" in
13272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276 (eval "$ac_try") 2>&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 ac_cv_func_realloc_0_nonnull=yes
13282 echo "$as_me: program exited with status $ac_status" >&5
13283 echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13286 ( exit $ac_status )
13287 ac_cv_func_realloc_0_nonnull=no
13289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13294 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13295 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
13296 if test $ac_cv_func_realloc_0_nonnull = yes; then
13298 cat >>confdefs.h <<\_ACEOF
13299 #define HAVE_REALLOC 1
13303 cat >>confdefs.h <<\_ACEOF
13304 #define HAVE_REALLOC 0
13307 case " $LIBOBJS " in
13308 *" realloc.$ac_objext "* ) ;;
13309 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
13314 cat >>confdefs.h <<\_ACEOF
13315 #define realloc rpl_realloc
13327 for ac_func in gettimeofday memset munmap strcasecmp strdup
13329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 cat >conftest.$ac_ext <<_ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13343 #define $ac_func innocuous_$ac_func
13345 /* System header to define __stub macros and hopefully few prototypes,
13346 which can conflict with char $ac_func (); below.
13347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13348 <limits.h> exists even on freestanding compilers. */
13351 # include <limits.h>
13353 # include <assert.h>
13358 /* Override any GCC internal prototype to avoid an error.
13359 Use char because int might match the return type of a GCC
13360 builtin and then its argument prototype would still apply. */
13365 /* The GNU C library defines this for functions which it implements
13366 to always fail with ENOSYS. Some functions are actually named
13367 something starting with __ and the normal name is an alias. */
13368 #if defined __stub_$ac_func || defined __stub___$ac_func
13375 return $ac_func ();
13380 rm -f conftest.$ac_objext conftest$ac_exeext
13381 if { (ac_try="$ac_link"
13382 case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_link") 2>conftest.er1
13389 grep -v '^ *+' conftest.er1 >conftest.err
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } && {
13394 test -z "$ac_c_werror_flag" ||
13395 test ! -s conftest.err
13396 } && test -s conftest$ac_exeext &&
13397 $as_test_x conftest$ac_exeext; then
13398 eval "$as_ac_var=yes"
13400 echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13403 eval "$as_ac_var=no"
13406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13407 conftest$ac_exeext conftest.$ac_ext
13409 ac_res=`eval echo '${'$as_ac_var'}'`
13410 { echo "$as_me:$LINENO: result: $ac_res" >&5
13411 echo "${ECHO_T}$ac_res" >&6; }
13412 if test `eval echo '${'$as_ac_var'}'` = yes; then
13413 cat >>confdefs.h <<_ACEOF
13414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13423 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13424 if test -n "$ac_tool_prefix"; then
13425 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13426 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13429 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 case $PKG_CONFIG in
13434 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438 for as_dir in $PATH
13441 test -z "$as_dir" && as_dir=.
13442 for ac_exec_ext in '' $ac_executable_extensions; do
13443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13444 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13455 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13456 if test -n "$PKG_CONFIG"; then
13457 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13458 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13460 { echo "$as_me:$LINENO: result: no" >&5
13461 echo "${ECHO_T}no" >&6; }
13466 if test -z "$ac_cv_path_PKG_CONFIG"; then
13467 ac_pt_PKG_CONFIG=$PKG_CONFIG
13468 # Extract the first word of "pkg-config", so it can be a program name with args.
13469 set dummy pkg-config; ac_word=$2
13470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13472 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 case $ac_pt_PKG_CONFIG in
13477 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481 for as_dir in $PATH
13484 test -z "$as_dir" && as_dir=.
13485 for ac_exec_ext in '' $ac_executable_extensions; do
13486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13487 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13498 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13499 if test -n "$ac_pt_PKG_CONFIG"; then
13500 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
13501 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
13503 { echo "$as_me:$LINENO: result: no" >&5
13504 echo "${ECHO_T}no" >&6; }
13507 if test "x$ac_pt_PKG_CONFIG" = x; then
13510 case $cross_compiling:$ac_tool_warned in
13512 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13513 whose name does not start with the host triplet. If you think this
13514 configuration is useful to you, please write to autoconf@gnu.org." >&5
13515 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13516 whose name does not start with the host triplet. If you think this
13517 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13518 ac_tool_warned=yes ;;
13520 PKG_CONFIG=$ac_pt_PKG_CONFIG
13523 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13527 if test -n "$PKG_CONFIG"; then
13528 _pkg_min_version=0.9.0
13529 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
13530 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
13531 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13532 { echo "$as_me:$LINENO: result: yes" >&5
13533 echo "${ECHO_T}yes" >&6; }
13535 { echo "$as_me:$LINENO: result: no" >&5
13536 echo "${ECHO_T}no" >&6; }
13543 { echo "$as_me:$LINENO: checking for MMCOMMON" >&5
13544 echo $ECHO_N "checking for MMCOMMON... $ECHO_C" >&6; }
13546 if test -n "$PKG_CONFIG"; then
13547 if test -n "$MMCOMMON_CFLAGS"; then
13548 pkg_cv_MMCOMMON_CFLAGS="$MMCOMMON_CFLAGS"
13550 if test -n "$PKG_CONFIG" && \
13551 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-common\"") >&5
13552 ($PKG_CONFIG --exists --print-errors "mm-common") 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; then
13556 pkg_cv_MMCOMMON_CFLAGS=`$PKG_CONFIG --cflags "mm-common" 2>/dev/null`
13564 if test -n "$PKG_CONFIG"; then
13565 if test -n "$MMCOMMON_LIBS"; then
13566 pkg_cv_MMCOMMON_LIBS="$MMCOMMON_LIBS"
13568 if test -n "$PKG_CONFIG" && \
13569 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-common\"") >&5
13570 ($PKG_CONFIG --exists --print-errors "mm-common") 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; then
13574 pkg_cv_MMCOMMON_LIBS=`$PKG_CONFIG --libs "mm-common" 2>/dev/null`
13585 if test $pkg_failed = yes; then
13587 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13588 _pkg_short_errors_supported=yes
13590 _pkg_short_errors_supported=no
13592 if test $_pkg_short_errors_supported = yes; then
13593 MMCOMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mm-common"`
13595 MMCOMMON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mm-common"`
13597 # Put the nasty error message in config.log where it belongs
13598 echo "$MMCOMMON_PKG_ERRORS" >&5
13600 { { echo "$as_me:$LINENO: error: Package requirements (mm-common) were not met:
13602 $MMCOMMON_PKG_ERRORS
13604 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13605 installed software in a non-standard prefix.
13607 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
13608 and MMCOMMON_LIBS to avoid the need to call pkg-config.
13609 See the pkg-config man page for more details.
13611 echo "$as_me: error: Package requirements (mm-common) were not met:
13613 $MMCOMMON_PKG_ERRORS
13615 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13616 installed software in a non-standard prefix.
13618 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
13619 and MMCOMMON_LIBS to avoid the need to call pkg-config.
13620 See the pkg-config man page for more details.
13622 { (exit 1); exit 1; }; }
13623 elif test $pkg_failed = untried; then
13624 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13625 is in your PATH or set the PKG_CONFIG environment variable to the full
13626 path to pkg-config.
13628 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
13629 and MMCOMMON_LIBS to avoid the need to call pkg-config.
13630 See the pkg-config man page for more details.
13632 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13633 See \`config.log' for more details." >&5
13634 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13635 is in your PATH or set the PKG_CONFIG environment variable to the full
13636 path to pkg-config.
13638 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
13639 and MMCOMMON_LIBS to avoid the need to call pkg-config.
13640 See the pkg-config man page for more details.
13642 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13643 See \`config.log' for more details." >&2;}
13644 { (exit 1); exit 1; }; }
13646 MMCOMMON_CFLAGS=$pkg_cv_MMCOMMON_CFLAGS
13647 MMCOMMON_LIBS=$pkg_cv_MMCOMMON_LIBS
13648 { echo "$as_me:$LINENO: result: yes" >&5
13649 echo "${ECHO_T}yes" >&6; }
13655 #PKG_CHECK_MODULES(MMMHAL,mm-mhal)
13656 #AC_SUBST(MMMHAL_CFLAGS)
13657 #AC_SUBST(MMMHAL_LIBS)
13661 { echo "$as_me:$LINENO: checking for MMLOG" >&5
13662 echo $ECHO_N "checking for MMLOG... $ECHO_C" >&6; }
13664 if test -n "$PKG_CONFIG"; then
13665 if test -n "$MMLOG_CFLAGS"; then
13666 pkg_cv_MMLOG_CFLAGS="$MMLOG_CFLAGS"
13668 if test -n "$PKG_CONFIG" && \
13669 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-log\"") >&5
13670 ($PKG_CONFIG --exists --print-errors "mm-log") 2>&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; then
13674 pkg_cv_MMLOG_CFLAGS=`$PKG_CONFIG --cflags "mm-log" 2>/dev/null`
13682 if test -n "$PKG_CONFIG"; then
13683 if test -n "$MMLOG_LIBS"; then
13684 pkg_cv_MMLOG_LIBS="$MMLOG_LIBS"
13686 if test -n "$PKG_CONFIG" && \
13687 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-log\"") >&5
13688 ($PKG_CONFIG --exists --print-errors "mm-log") 2>&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; then
13692 pkg_cv_MMLOG_LIBS=`$PKG_CONFIG --libs "mm-log" 2>/dev/null`
13703 if test $pkg_failed = yes; then
13705 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13706 _pkg_short_errors_supported=yes
13708 _pkg_short_errors_supported=no
13710 if test $_pkg_short_errors_supported = yes; then
13711 MMLOG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mm-log"`
13713 MMLOG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mm-log"`
13715 # Put the nasty error message in config.log where it belongs
13716 echo "$MMLOG_PKG_ERRORS" >&5
13718 { { echo "$as_me:$LINENO: error: Package requirements (mm-log) were not met:
13722 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13723 installed software in a non-standard prefix.
13725 Alternatively, you may set the environment variables MMLOG_CFLAGS
13726 and MMLOG_LIBS to avoid the need to call pkg-config.
13727 See the pkg-config man page for more details.
13729 echo "$as_me: error: Package requirements (mm-log) were not met:
13733 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13734 installed software in a non-standard prefix.
13736 Alternatively, you may set the environment variables MMLOG_CFLAGS
13737 and MMLOG_LIBS to avoid the need to call pkg-config.
13738 See the pkg-config man page for more details.
13740 { (exit 1); exit 1; }; }
13741 elif test $pkg_failed = untried; then
13742 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13743 is in your PATH or set the PKG_CONFIG environment variable to the full
13744 path to pkg-config.
13746 Alternatively, you may set the environment variables MMLOG_CFLAGS
13747 and MMLOG_LIBS to avoid the need to call pkg-config.
13748 See the pkg-config man page for more details.
13750 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13751 See \`config.log' for more details." >&5
13752 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13753 is in your PATH or set the PKG_CONFIG environment variable to the full
13754 path to pkg-config.
13756 Alternatively, you may set the environment variables MMLOG_CFLAGS
13757 and MMLOG_LIBS to avoid the need to call pkg-config.
13758 See the pkg-config man page for more details.
13760 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13761 See \`config.log' for more details." >&2;}
13762 { (exit 1); exit 1; }; }
13764 MMLOG_CFLAGS=$pkg_cv_MMLOG_CFLAGS
13765 MMLOG_LIBS=$pkg_cv_MMLOG_LIBS
13766 { echo "$as_me:$LINENO: result: yes" >&5
13767 echo "${ECHO_T}yes" >&6; }
13777 { echo "$as_me:$LINENO: checking for GLIB" >&5
13778 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
13780 if test -n "$PKG_CONFIG"; then
13781 if test -n "$GLIB_CFLAGS"; then
13782 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
13784 if test -n "$PKG_CONFIG" && \
13785 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
13786 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; then
13790 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
13798 if test -n "$PKG_CONFIG"; then
13799 if test -n "$GLIB_LIBS"; then
13800 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
13802 if test -n "$PKG_CONFIG" && \
13803 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
13804 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; then
13808 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
13819 if test $pkg_failed = yes; then
13821 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13822 _pkg_short_errors_supported=yes
13824 _pkg_short_errors_supported=no
13826 if test $_pkg_short_errors_supported = yes; then
13827 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
13829 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
13831 # Put the nasty error message in config.log where it belongs
13832 echo "$GLIB_PKG_ERRORS" >&5
13834 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
13838 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13839 installed software in a non-standard prefix.
13841 Alternatively, you may set the environment variables GLIB_CFLAGS
13842 and GLIB_LIBS to avoid the need to call pkg-config.
13843 See the pkg-config man page for more details.
13845 echo "$as_me: error: Package requirements (glib-2.0) were not met:
13849 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13850 installed software in a non-standard prefix.
13852 Alternatively, you may set the environment variables GLIB_CFLAGS
13853 and GLIB_LIBS to avoid the need to call pkg-config.
13854 See the pkg-config man page for more details.
13856 { (exit 1); exit 1; }; }
13857 elif test $pkg_failed = untried; then
13858 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13859 is in your PATH or set the PKG_CONFIG environment variable to the full
13860 path to pkg-config.
13862 Alternatively, you may set the environment variables GLIB_CFLAGS
13863 and GLIB_LIBS to avoid the need to call pkg-config.
13864 See the pkg-config man page for more details.
13866 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13867 See \`config.log' for more details." >&5
13868 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13869 is in your PATH or set the PKG_CONFIG environment variable to the full
13870 path to pkg-config.
13872 Alternatively, you may set the environment variables GLIB_CFLAGS
13873 and GLIB_LIBS to avoid the need to call pkg-config.
13874 See the pkg-config man page for more details.
13876 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13877 See \`config.log' for more details." >&2;}
13878 { (exit 1); exit 1; }; }
13880 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
13881 GLIB_LIBS=$pkg_cv_GLIB_LIBS
13882 { echo "$as_me:$LINENO: result: yes" >&5
13883 echo "${ECHO_T}yes" >&6; }
13891 { echo "$as_me:$LINENO: checking for GTK" >&5
13892 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
13894 if test -n "$PKG_CONFIG"; then
13895 if test -n "$GTK_CFLAGS"; then
13896 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13898 if test -n "$PKG_CONFIG" && \
13899 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
13900 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; then
13904 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
13912 if test -n "$PKG_CONFIG"; then
13913 if test -n "$GTK_LIBS"; then
13914 pkg_cv_GTK_LIBS="$GTK_LIBS"
13916 if test -n "$PKG_CONFIG" && \
13917 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
13918 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; then
13922 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
13933 if test $pkg_failed = yes; then
13935 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13936 _pkg_short_errors_supported=yes
13938 _pkg_short_errors_supported=no
13940 if test $_pkg_short_errors_supported = yes; then
13941 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
13943 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
13945 # Put the nasty error message in config.log where it belongs
13946 echo "$GTK_PKG_ERRORS" >&5
13948 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
13952 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13953 installed software in a non-standard prefix.
13955 Alternatively, you may set the environment variables GTK_CFLAGS
13956 and GTK_LIBS to avoid the need to call pkg-config.
13957 See the pkg-config man page for more details.
13959 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
13963 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13964 installed software in a non-standard prefix.
13966 Alternatively, you may set the environment variables GTK_CFLAGS
13967 and GTK_LIBS to avoid the need to call pkg-config.
13968 See the pkg-config man page for more details.
13970 { (exit 1); exit 1; }; }
13971 elif test $pkg_failed = untried; then
13972 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13973 is in your PATH or set the PKG_CONFIG environment variable to the full
13974 path to pkg-config.
13976 Alternatively, you may set the environment variables GTK_CFLAGS
13977 and GTK_LIBS to avoid the need to call pkg-config.
13978 See the pkg-config man page for more details.
13980 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13981 See \`config.log' for more details." >&5
13982 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13983 is in your PATH or set the PKG_CONFIG environment variable to the full
13984 path to pkg-config.
13986 Alternatively, you may set the environment variables GTK_CFLAGS
13987 and GTK_LIBS to avoid the need to call pkg-config.
13988 See the pkg-config man page for more details.
13990 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13991 See \`config.log' for more details." >&2;}
13992 { (exit 1); exit 1; }; }
13994 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13995 GTK_LIBS=$pkg_cv_GTK_LIBS
13996 { echo "$as_me:$LINENO: result: yes" >&5
13997 echo "${ECHO_T}yes" >&6; }
14006 { echo "$as_me:$LINENO: checking for AVCODEC" >&5
14007 echo $ECHO_N "checking for AVCODEC... $ECHO_C" >&6; }
14009 if test -n "$PKG_CONFIG"; then
14010 if test -n "$AVCODEC_CFLAGS"; then
14011 pkg_cv_AVCODEC_CFLAGS="$AVCODEC_CFLAGS"
14013 if test -n "$PKG_CONFIG" && \
14014 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavcodec\"") >&5
14015 ($PKG_CONFIG --exists --print-errors "libavcodec") 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; then
14019 pkg_cv_AVCODEC_CFLAGS=`$PKG_CONFIG --cflags "libavcodec" 2>/dev/null`
14027 if test -n "$PKG_CONFIG"; then
14028 if test -n "$AVCODEC_LIBS"; then
14029 pkg_cv_AVCODEC_LIBS="$AVCODEC_LIBS"
14031 if test -n "$PKG_CONFIG" && \
14032 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavcodec\"") >&5
14033 ($PKG_CONFIG --exists --print-errors "libavcodec") 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; then
14037 pkg_cv_AVCODEC_LIBS=`$PKG_CONFIG --libs "libavcodec" 2>/dev/null`
14048 if test $pkg_failed = yes; then
14050 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14051 _pkg_short_errors_supported=yes
14053 _pkg_short_errors_supported=no
14055 if test $_pkg_short_errors_supported = yes; then
14056 AVCODEC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libavcodec"`
14058 AVCODEC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libavcodec"`
14060 # Put the nasty error message in config.log where it belongs
14061 echo "$AVCODEC_PKG_ERRORS" >&5
14063 { { echo "$as_me:$LINENO: error: Package requirements (libavcodec) were not met:
14065 $AVCODEC_PKG_ERRORS
14067 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14068 installed software in a non-standard prefix.
14070 Alternatively, you may set the environment variables AVCODEC_CFLAGS
14071 and AVCODEC_LIBS to avoid the need to call pkg-config.
14072 See the pkg-config man page for more details.
14074 echo "$as_me: error: Package requirements (libavcodec) were not met:
14076 $AVCODEC_PKG_ERRORS
14078 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14079 installed software in a non-standard prefix.
14081 Alternatively, you may set the environment variables AVCODEC_CFLAGS
14082 and AVCODEC_LIBS to avoid the need to call pkg-config.
14083 See the pkg-config man page for more details.
14085 { (exit 1); exit 1; }; }
14086 elif test $pkg_failed = untried; then
14087 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14088 is in your PATH or set the PKG_CONFIG environment variable to the full
14089 path to pkg-config.
14091 Alternatively, you may set the environment variables AVCODEC_CFLAGS
14092 and AVCODEC_LIBS to avoid the need to call pkg-config.
14093 See the pkg-config man page for more details.
14095 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14096 See \`config.log' for more details." >&5
14097 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14098 is in your PATH or set the PKG_CONFIG environment variable to the full
14099 path to pkg-config.
14101 Alternatively, you may set the environment variables AVCODEC_CFLAGS
14102 and AVCODEC_LIBS to avoid the need to call pkg-config.
14103 See the pkg-config man page for more details.
14105 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14106 See \`config.log' for more details." >&2;}
14107 { (exit 1); exit 1; }; }
14109 AVCODEC_CFLAGS=$pkg_cv_AVCODEC_CFLAGS
14110 AVCODEC_LIBS=$pkg_cv_AVCODEC_LIBS
14111 { echo "$as_me:$LINENO: result: yes" >&5
14112 echo "${ECHO_T}yes" >&6; }
14120 { echo "$as_me:$LINENO: checking for AVUTIL" >&5
14121 echo $ECHO_N "checking for AVUTIL... $ECHO_C" >&6; }
14123 if test -n "$PKG_CONFIG"; then
14124 if test -n "$AVUTIL_CFLAGS"; then
14125 pkg_cv_AVUTIL_CFLAGS="$AVUTIL_CFLAGS"
14127 if test -n "$PKG_CONFIG" && \
14128 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavutil\"") >&5
14129 ($PKG_CONFIG --exists --print-errors "libavutil") 2>&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; then
14133 pkg_cv_AVUTIL_CFLAGS=`$PKG_CONFIG --cflags "libavutil" 2>/dev/null`
14141 if test -n "$PKG_CONFIG"; then
14142 if test -n "$AVUTIL_LIBS"; then
14143 pkg_cv_AVUTIL_LIBS="$AVUTIL_LIBS"
14145 if test -n "$PKG_CONFIG" && \
14146 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavutil\"") >&5
14147 ($PKG_CONFIG --exists --print-errors "libavutil") 2>&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; then
14151 pkg_cv_AVUTIL_LIBS=`$PKG_CONFIG --libs "libavutil" 2>/dev/null`
14162 if test $pkg_failed = yes; then
14164 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14165 _pkg_short_errors_supported=yes
14167 _pkg_short_errors_supported=no
14169 if test $_pkg_short_errors_supported = yes; then
14170 AVUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libavutil"`
14172 AVUTIL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libavutil"`
14174 # Put the nasty error message in config.log where it belongs
14175 echo "$AVUTIL_PKG_ERRORS" >&5
14177 { { echo "$as_me:$LINENO: error: Package requirements (libavutil) were not met:
14181 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14182 installed software in a non-standard prefix.
14184 Alternatively, you may set the environment variables AVUTIL_CFLAGS
14185 and AVUTIL_LIBS to avoid the need to call pkg-config.
14186 See the pkg-config man page for more details.
14188 echo "$as_me: error: Package requirements (libavutil) were not met:
14192 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14193 installed software in a non-standard prefix.
14195 Alternatively, you may set the environment variables AVUTIL_CFLAGS
14196 and AVUTIL_LIBS to avoid the need to call pkg-config.
14197 See the pkg-config man page for more details.
14199 { (exit 1); exit 1; }; }
14200 elif test $pkg_failed = untried; then
14201 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14202 is in your PATH or set the PKG_CONFIG environment variable to the full
14203 path to pkg-config.
14205 Alternatively, you may set the environment variables AVUTIL_CFLAGS
14206 and AVUTIL_LIBS to avoid the need to call pkg-config.
14207 See the pkg-config man page for more details.
14209 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14210 See \`config.log' for more details." >&5
14211 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14212 is in your PATH or set the PKG_CONFIG environment variable to the full
14213 path to pkg-config.
14215 Alternatively, you may set the environment variables AVUTIL_CFLAGS
14216 and AVUTIL_LIBS to avoid the need to call pkg-config.
14217 See the pkg-config man page for more details.
14219 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14220 See \`config.log' for more details." >&2;}
14221 { (exit 1); exit 1; }; }
14223 AVUTIL_CFLAGS=$pkg_cv_AVUTIL_CFLAGS
14224 AVUTIL_LIBS=$pkg_cv_AVUTIL_LIBS
14225 { echo "$as_me:$LINENO: result: yes" >&5
14226 echo "${ECHO_T}yes" >&6; }
14234 { echo "$as_me:$LINENO: checking for AVFORMAT" >&5
14235 echo $ECHO_N "checking for AVFORMAT... $ECHO_C" >&6; }
14237 if test -n "$PKG_CONFIG"; then
14238 if test -n "$AVFORMAT_CFLAGS"; then
14239 pkg_cv_AVFORMAT_CFLAGS="$AVFORMAT_CFLAGS"
14241 if test -n "$PKG_CONFIG" && \
14242 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavformat\"") >&5
14243 ($PKG_CONFIG --exists --print-errors "libavformat") 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; then
14247 pkg_cv_AVFORMAT_CFLAGS=`$PKG_CONFIG --cflags "libavformat" 2>/dev/null`
14255 if test -n "$PKG_CONFIG"; then
14256 if test -n "$AVFORMAT_LIBS"; then
14257 pkg_cv_AVFORMAT_LIBS="$AVFORMAT_LIBS"
14259 if test -n "$PKG_CONFIG" && \
14260 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavformat\"") >&5
14261 ($PKG_CONFIG --exists --print-errors "libavformat") 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; then
14265 pkg_cv_AVFORMAT_LIBS=`$PKG_CONFIG --libs "libavformat" 2>/dev/null`
14276 if test $pkg_failed = yes; then
14278 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14279 _pkg_short_errors_supported=yes
14281 _pkg_short_errors_supported=no
14283 if test $_pkg_short_errors_supported = yes; then
14284 AVFORMAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libavformat"`
14286 AVFORMAT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libavformat"`
14288 # Put the nasty error message in config.log where it belongs
14289 echo "$AVFORMAT_PKG_ERRORS" >&5
14291 { { echo "$as_me:$LINENO: error: Package requirements (libavformat) were not met:
14293 $AVFORMAT_PKG_ERRORS
14295 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14296 installed software in a non-standard prefix.
14298 Alternatively, you may set the environment variables AVFORMAT_CFLAGS
14299 and AVFORMAT_LIBS to avoid the need to call pkg-config.
14300 See the pkg-config man page for more details.
14302 echo "$as_me: error: Package requirements (libavformat) were not met:
14304 $AVFORMAT_PKG_ERRORS
14306 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14307 installed software in a non-standard prefix.
14309 Alternatively, you may set the environment variables AVFORMAT_CFLAGS
14310 and AVFORMAT_LIBS to avoid the need to call pkg-config.
14311 See the pkg-config man page for more details.
14313 { (exit 1); exit 1; }; }
14314 elif test $pkg_failed = untried; then
14315 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14316 is in your PATH or set the PKG_CONFIG environment variable to the full
14317 path to pkg-config.
14319 Alternatively, you may set the environment variables AVFORMAT_CFLAGS
14320 and AVFORMAT_LIBS to avoid the need to call pkg-config.
14321 See the pkg-config man page for more details.
14323 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14324 See \`config.log' for more details." >&5
14325 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14326 is in your PATH or set the PKG_CONFIG environment variable to the full
14327 path to pkg-config.
14329 Alternatively, you may set the environment variables AVFORMAT_CFLAGS
14330 and AVFORMAT_LIBS to avoid the need to call pkg-config.
14331 See the pkg-config man page for more details.
14333 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14334 See \`config.log' for more details." >&2;}
14335 { (exit 1); exit 1; }; }
14337 AVFORMAT_CFLAGS=$pkg_cv_AVFORMAT_CFLAGS
14338 AVFORMAT_LIBS=$pkg_cv_AVFORMAT_LIBS
14339 { echo "$as_me:$LINENO: result: yes" >&5
14340 echo "${ECHO_T}yes" >&6; }
14346 # Check whether --enable-drm was given.
14347 if test "${enable_drm+set}" = set; then
14348 enableval=$enable_drm;
14349 case "${enableval}" in
14350 yes) USE_DRM=yes ;;
14352 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-drm" >&5
14353 echo "$as_me: error: bad value ${enableval} for --enable-drm" >&2;}
14354 { (exit 1); exit 1; }; } ;;
14361 if test "x$USE_DRM" = "xyes"; then
14364 { echo "$as_me:$LINENO: checking for DRMSERVICE" >&5
14365 echo $ECHO_N "checking for DRMSERVICE... $ECHO_C" >&6; }
14367 if test -n "$PKG_CONFIG"; then
14368 if test -n "$DRMSERVICE_CFLAGS"; then
14369 pkg_cv_DRMSERVICE_CFLAGS="$DRMSERVICE_CFLAGS"
14371 if test -n "$PKG_CONFIG" && \
14372 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"drm-service\"") >&5
14373 ($PKG_CONFIG --exists --print-errors "drm-service") 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; then
14377 pkg_cv_DRMSERVICE_CFLAGS=`$PKG_CONFIG --cflags "drm-service" 2>/dev/null`
14385 if test -n "$PKG_CONFIG"; then
14386 if test -n "$DRMSERVICE_LIBS"; then
14387 pkg_cv_DRMSERVICE_LIBS="$DRMSERVICE_LIBS"
14389 if test -n "$PKG_CONFIG" && \
14390 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"drm-service\"") >&5
14391 ($PKG_CONFIG --exists --print-errors "drm-service") 2>&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; then
14395 pkg_cv_DRMSERVICE_LIBS=`$PKG_CONFIG --libs "drm-service" 2>/dev/null`
14406 if test $pkg_failed = yes; then
14408 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14409 _pkg_short_errors_supported=yes
14411 _pkg_short_errors_supported=no
14413 if test $_pkg_short_errors_supported = yes; then
14414 DRMSERVICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "drm-service"`
14416 DRMSERVICE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "drm-service"`
14418 # Put the nasty error message in config.log where it belongs
14419 echo "$DRMSERVICE_PKG_ERRORS" >&5
14421 { { echo "$as_me:$LINENO: error: Package requirements (drm-service) were not met:
14423 $DRMSERVICE_PKG_ERRORS
14425 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14426 installed software in a non-standard prefix.
14428 Alternatively, you may set the environment variables DRMSERVICE_CFLAGS
14429 and DRMSERVICE_LIBS to avoid the need to call pkg-config.
14430 See the pkg-config man page for more details.
14432 echo "$as_me: error: Package requirements (drm-service) were not met:
14434 $DRMSERVICE_PKG_ERRORS
14436 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14437 installed software in a non-standard prefix.
14439 Alternatively, you may set the environment variables DRMSERVICE_CFLAGS
14440 and DRMSERVICE_LIBS to avoid the need to call pkg-config.
14441 See the pkg-config man page for more details.
14443 { (exit 1); exit 1; }; }
14444 elif test $pkg_failed = untried; then
14445 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14446 is in your PATH or set the PKG_CONFIG environment variable to the full
14447 path to pkg-config.
14449 Alternatively, you may set the environment variables DRMSERVICE_CFLAGS
14450 and DRMSERVICE_LIBS to avoid the need to call pkg-config.
14451 See the pkg-config man page for more details.
14453 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14454 See \`config.log' for more details." >&5
14455 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14456 is in your PATH or set the PKG_CONFIG environment variable to the full
14457 path to pkg-config.
14459 Alternatively, you may set the environment variables DRMSERVICE_CFLAGS
14460 and DRMSERVICE_LIBS to avoid the need to call pkg-config.
14461 See the pkg-config man page for more details.
14463 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14464 See \`config.log' for more details." >&2;}
14465 { (exit 1); exit 1; }; }
14467 DRMSERVICE_CFLAGS=$pkg_cv_DRMSERVICE_CFLAGS
14468 DRMSERVICE_LIBS=$pkg_cv_DRMSERVICE_LIBS
14469 { echo "$as_me:$LINENO: result: yes" >&5
14470 echo "${ECHO_T}yes" >&6; }
14476 if test "x$USE_DRM" = "xyes"; then
14486 # Check whether --enable-testmode was given.
14487 if test "${enable_testmode+set}" = set; then
14488 enableval=$enable_testmode;
14489 case "${enableval}" in
14490 yes) USE_TESTMODE=yes ;;
14491 no) USE_TESTMODE=no ;;
14492 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-testmode" >&5
14493 echo "$as_me: error: bad value ${enableval} for --enable-testmode" >&2;}
14494 { (exit 1); exit 1; }; } ;;
14501 if test "x$USE_TESTMODE" = "xyes"; then
14503 USE_TESTMODE_FALSE='#'
14505 USE_TESTMODE_TRUE='#'
14506 USE_TESTMODE_FALSE=
14509 { echo "$as_me:$LINENO: result: checking for USE_TESTMODE ... $USE_TESTMODE" >&5
14510 echo "${ECHO_T}checking for USE_TESTMODE ... $USE_TESTMODE" >&6; }
14512 # Check whether --enable-dump was given.
14513 if test "${enable_dump+set}" = set; then
14514 enableval=$enable_dump;
14515 case "${enableval}" in
14516 yes) USE_DUMP=yes ;;
14518 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dump" >&5
14519 echo "$as_me: error: bad value ${enableval} for --enable-dump" >&2;}
14520 { (exit 1); exit 1; }; } ;;
14527 if test "x$USE_DUMP" = "xyes"; then
14535 { echo "$as_me:$LINENO: result: checking for USE_DUMP ... $USE_DUMP" >&5
14536 echo "${ECHO_T}checking for USE_DUMP ... $USE_DUMP" >&6; }
14538 ac_config_files="$ac_config_files Makefile codecs/Makefile codecs/ffmpeg/Makefile formats/Makefile formats/ffmpeg/Makefile utils/Makefile tests/Makefile mm-fileinfo.pc"
14540 cat >confcache <<\_ACEOF
14541 # This file is a shell script that caches the results of configure
14542 # tests run on this system so they can be shared between configure
14543 # scripts and configure runs, see configure's option --config-cache.
14544 # It is not useful on other systems. If it contains results you don't
14545 # want to keep, you may remove or edit it.
14547 # config.status only pays attention to the cache file if you give it
14548 # the --recheck option to rerun configure.
14550 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14551 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14552 # following values.
14556 # The following way of writing the cache mishandles newlines in values,
14557 # but we know of no workaround that is simple, portable, and efficient.
14558 # So, we kill variables containing newlines.
14559 # Ultrix sh set writes to stderr and can't be redirected directly,
14560 # and sets the high bit in the cache file unless we assign to the vars.
14562 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14563 eval ac_val=\$$ac_var
14567 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14568 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14571 _ | IFS | as_nl) ;; #(
14572 *) $as_unset $ac_var ;;
14578 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14579 *${as_nl}ac_space=\ *)
14580 # `set' does not quote correctly, so add quotes (double-quote
14581 # substitution turns \\\\ into \\, and sed turns \\ into \).
14584 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14587 # `set' quotes correctly as required by POSIX, so do not add quotes.
14588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14597 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14599 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14601 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14602 if test -w "$cache_file"; then
14603 test "x$cache_file" != "x/dev/null" &&
14604 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14605 echo "$as_me: updating cache $cache_file" >&6;}
14606 cat confcache >$cache_file
14608 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14609 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14614 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14615 # Let make expand exec_prefix.
14616 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14618 DEFS=-DHAVE_CONFIG_H
14622 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14623 # 1. Remove the extension, and $U if already installed.
14624 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14625 ac_i=`echo "$ac_i" | sed "$ac_script"`
14626 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14627 # will be set to the directory where LIBOBJS objects are built.
14628 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14629 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14631 LIBOBJS=$ac_libobjs
14633 LTLIBOBJS=$ac_ltlibobjs
14636 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14637 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14638 Usually this means the macro was only invoked conditionally." >&5
14639 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14640 Usually this means the macro was only invoked conditionally." >&2;}
14641 { (exit 1); exit 1; }; }
14643 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14644 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14645 Usually this means the macro was only invoked conditionally." >&5
14646 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14647 Usually this means the macro was only invoked conditionally." >&2;}
14648 { (exit 1); exit 1; }; }
14650 if test -z "${USE_DRM_TRUE}" && test -z "${USE_DRM_FALSE}"; then
14651 { { echo "$as_me:$LINENO: error: conditional \"USE_DRM\" was never defined.
14652 Usually this means the macro was only invoked conditionally." >&5
14653 echo "$as_me: error: conditional \"USE_DRM\" was never defined.
14654 Usually this means the macro was only invoked conditionally." >&2;}
14655 { (exit 1); exit 1; }; }
14657 if test -z "${USE_TESTMODE_TRUE}" && test -z "${USE_TESTMODE_FALSE}"; then
14658 { { echo "$as_me:$LINENO: error: conditional \"USE_TESTMODE\" was never defined.
14659 Usually this means the macro was only invoked conditionally." >&5
14660 echo "$as_me: error: conditional \"USE_TESTMODE\" was never defined.
14661 Usually this means the macro was only invoked conditionally." >&2;}
14662 { (exit 1); exit 1; }; }
14664 if test -z "${USE_DUMP_TRUE}" && test -z "${USE_DUMP_FALSE}"; then
14665 { { echo "$as_me:$LINENO: error: conditional \"USE_DUMP\" was never defined.
14666 Usually this means the macro was only invoked conditionally." >&5
14667 echo "$as_me: error: conditional \"USE_DUMP\" was never defined.
14668 Usually this means the macro was only invoked conditionally." >&2;}
14669 { (exit 1); exit 1; }; }
14672 : ${CONFIG_STATUS=./config.status}
14673 ac_clean_files_save=$ac_clean_files
14674 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14675 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14676 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14677 cat >$CONFIG_STATUS <<_ACEOF
14679 # Generated by $as_me.
14680 # Run this file to recreate the current configuration.
14681 # Compiler output produced by configure, useful for debugging
14682 # configure, is in config.log if it exists.
14685 ac_cs_recheck=false
14687 SHELL=\${CONFIG_SHELL-$SHELL}
14690 cat >>$CONFIG_STATUS <<\_ACEOF
14691 ## --------------------- ##
14692 ## M4sh Initialization. ##
14693 ## --------------------- ##
14695 # Be more Bourne compatible
14696 DUALCASE=1; export DUALCASE # for MKS sh
14697 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14700 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14701 # is contrary to our usage. Disable this feature.
14702 alias -g '${1+"$@"}'='"$@"'
14703 setopt NO_GLOB_SUBST
14705 case `(set -o) 2>/dev/null` in
14706 *posix*) set -o posix ;;
14715 # Avoid depending upon Character Ranges.
14716 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14717 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14718 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14719 as_cr_digits='0123456789'
14720 as_cr_alnum=$as_cr_Letters$as_cr_digits
14722 # The user is always right.
14723 if test "${PATH_SEPARATOR+set}" != set; then
14724 echo "#! /bin/sh" >conf$$.sh
14725 echo "exit 0" >>conf$$.sh
14727 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14735 # Support unset when possible.
14736 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14744 # We need space, tab and new line, in precisely that order. Quoting is
14745 # there to prevent editors from complaining about space-tab.
14746 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14747 # splitting by setting IFS to empty value.)
14752 # Find who we are. Look in the path if we contain no directory separator.
14754 *[\\/]* ) as_myself=$0 ;;
14755 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14756 for as_dir in $PATH
14759 test -z "$as_dir" && as_dir=.
14760 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14766 # We did not find ourselves, most probably we were run as `sh COMMAND'
14767 # in which case we are not to be found in the path.
14768 if test "x$as_myself" = x; then
14771 if test ! -f "$as_myself"; then
14772 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14773 { (exit 1); exit 1; }
14776 # Work around bugs in pre-3.0 UWIN ksh.
14777 for as_var in ENV MAIL MAILPATH
14778 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14786 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14787 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14788 LC_TELEPHONE LC_TIME
14790 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14791 eval $as_var=C; export $as_var
14793 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14797 # Required to use basename.
14798 if expr a : '\(a\)' >/dev/null 2>&1 &&
14799 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14805 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14806 as_basename=basename
14812 # Name of the executable.
14813 as_me=`$as_basename -- "$0" ||
14814 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14815 X"$0" : 'X\(//\)$' \| \
14816 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14818 sed '/^.*\/\([^/][^/]*\)\/*$/{
14837 as_lineno_1=$LINENO
14838 as_lineno_2=$LINENO
14839 test "x$as_lineno_1" != "x$as_lineno_2" &&
14840 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14842 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14843 # uniformly replaced by the line number. The first 'sed' inserts a
14844 # line-number line after each line using $LINENO; the second 'sed'
14845 # does the real work. The second script uses 'N' to pair each
14846 # line-number line with the line containing $LINENO, and appends
14847 # trailing '-' during substitution so that $LINENO is not a special
14848 # case at line end.
14849 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14850 # scripts with optimization help from Paolo Bonzini. Blame Lee
14851 # E. McMahon (1931-1989) for sed's syntax. :-)
14863 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14866 ' >$as_me.lineno &&
14867 chmod +x "$as_me.lineno" ||
14868 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14869 { (exit 1); exit 1; }; }
14871 # Don't try to exec as it changes $[0], causing all sort of problems
14872 # (the dirname of $[0] is not the place where we might find the
14873 # original and so on. Autoconf is especially sensitive to this).
14874 . "./$as_me.lineno"
14875 # Exit status is that of the last command.
14880 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14886 ECHO_C= ECHO_N= ECHO_T=
14887 case `echo -n x` in
14889 case `echo 'x\c'` in
14890 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14897 if expr a : '\(a\)' >/dev/null 2>&1 &&
14898 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14904 rm -f conf$$ conf$$.exe conf$$.file
14905 if test -d conf$$.dir; then
14906 rm -f conf$$.dir/conf$$.file
14912 if ln -s conf$$.file conf$$ 2>/dev/null; then
14914 # ... but there are two gotchas:
14915 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14916 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14917 # In both cases, we have to default to `cp -p'.
14918 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14920 elif ln conf$$.file conf$$ 2>/dev/null; then
14925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14926 rmdir conf$$.dir 2>/dev/null
14928 if mkdir -p . 2>/dev/null; then
14931 test -d ./-p && rmdir ./-p
14935 if test -x / >/dev/null 2>&1; then
14936 as_test_x='test -x'
14938 if ls -dL / >/dev/null 2>&1; then
14945 if test -d "$1"; then
14951 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14952 ???[sx]*):;;*)false;;esac;fi
14956 as_executable_p=$as_test_x
14958 # Sed expression to map a string onto a valid CPP name.
14959 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14961 # Sed expression to map a string onto a valid variable name.
14962 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14967 # Save the log message, to keep $[0] and so on meaningful, and to
14968 # report actual input values of CONFIG_FILES etc. instead of their
14969 # values after options handling.
14971 This file was extended by libmm-fileinfo $as_me 0.0.1, which was
14972 generated by GNU Autoconf 2.61. Invocation command line was
14974 CONFIG_FILES = $CONFIG_FILES
14975 CONFIG_HEADERS = $CONFIG_HEADERS
14976 CONFIG_LINKS = $CONFIG_LINKS
14977 CONFIG_COMMANDS = $CONFIG_COMMANDS
14980 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14985 cat >>$CONFIG_STATUS <<_ACEOF
14986 # Files that config.status was made for.
14987 config_files="$ac_config_files"
14988 config_headers="$ac_config_headers"
14989 config_commands="$ac_config_commands"
14993 cat >>$CONFIG_STATUS <<\_ACEOF
14995 \`$as_me' instantiates files from templates according to the
14996 current configuration.
14998 Usage: $0 [OPTIONS] [FILE]...
15000 -h, --help print this help, then exit
15001 -V, --version print version number and configuration settings, then exit
15002 -q, --quiet do not print progress messages
15003 -d, --debug don't remove temporary files
15004 --recheck update $as_me by reconfiguring in the same conditions
15005 --file=FILE[:TEMPLATE]
15006 instantiate the configuration file FILE
15007 --header=FILE[:TEMPLATE]
15008 instantiate the configuration header FILE
15010 Configuration files:
15013 Configuration headers:
15016 Configuration commands:
15019 Report bugs to <bug-autoconf@gnu.org>."
15022 cat >>$CONFIG_STATUS <<_ACEOF
15024 libmm-fileinfo config.status 0.0.1
15025 configured by $0, generated by GNU Autoconf 2.61,
15026 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15028 Copyright (C) 2006 Free Software Foundation, Inc.
15029 This config.status script is free software; the Free Software Foundation
15030 gives unlimited permission to copy, distribute and modify it."
15038 cat >>$CONFIG_STATUS <<\_ACEOF
15039 # If no file are specified by the user, then we need to provide default
15040 # value. By we need to know if files were specified by the user.
15046 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15047 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15058 # Handling of the options.
15059 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15061 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15062 echo "$ac_cs_version"; exit ;;
15063 --debug | --debu | --deb | --de | --d | -d )
15065 --file | --fil | --fi | --f )
15067 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15068 ac_need_defaults=false;;
15069 --header | --heade | --head | --hea )
15071 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15072 ac_need_defaults=false;;
15074 # Conflict between --help and --header
15075 { echo "$as_me: error: ambiguous option: $1
15076 Try \`$0 --help' for more information." >&2
15077 { (exit 1); exit 1; }; };;
15078 --help | --hel | -h )
15079 echo "$ac_cs_usage"; exit ;;
15080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15081 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15084 # This is an error.
15085 -*) { echo "$as_me: error: unrecognized option: $1
15086 Try \`$0 --help' for more information." >&2
15087 { (exit 1); exit 1; }; } ;;
15089 *) ac_config_targets="$ac_config_targets $1"
15090 ac_need_defaults=false ;;
15096 ac_configure_extra_args=
15098 if $ac_cs_silent; then
15100 ac_configure_extra_args="$ac_configure_extra_args --silent"
15104 cat >>$CONFIG_STATUS <<_ACEOF
15105 if \$ac_cs_recheck; then
15106 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15107 CONFIG_SHELL=$SHELL
15108 export CONFIG_SHELL
15109 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15113 cat >>$CONFIG_STATUS <<\_ACEOF
15117 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15118 ## Running $as_me. ##
15124 cat >>$CONFIG_STATUS <<_ACEOF
15128 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15131 # The HP-UX ksh and POSIX shell print the target directory to stdout
15132 # if CDPATH is set.
15133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15135 sed_quote_subst='$sed_quote_subst'
15136 double_quote_subst='$double_quote_subst'
15137 delay_variable_subst='$delay_variable_subst'
15138 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15139 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15140 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15141 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15142 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15143 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15144 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15145 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15146 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15147 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15148 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15149 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15150 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15151 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15152 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15153 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15154 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15155 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15156 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15157 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15158 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15159 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15160 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15161 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15162 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15163 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15164 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15165 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15166 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15167 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15168 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15169 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15170 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15171 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15172 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15173 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15174 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15175 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15176 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15177 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15178 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15179 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15180 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15181 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"`'
15182 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"`'
15183 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15184 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15185 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15186 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15187 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15188 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15189 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15190 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15191 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15192 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15193 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15194 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15195 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15196 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15197 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15198 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15199 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15200 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15201 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15202 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15203 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15204 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15205 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15206 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15207 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15208 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15209 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15210 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15211 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15212 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15213 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15214 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15215 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15216 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15217 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15218 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15219 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15220 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15221 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15222 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15223 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15224 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15225 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15226 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15227 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15228 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15229 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15230 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15231 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15232 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15233 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15234 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15235 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15236 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15237 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15238 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15239 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15240 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15241 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15242 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15243 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15244 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15245 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15246 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15247 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15248 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15249 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15250 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15251 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15252 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15253 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15254 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15257 LTCFLAGS='$LTCFLAGS'
15258 compiler='$compiler_DEFAULT'
15260 # Quote evaled strings.
15271 deplibs_check_method \
15280 lt_cv_sys_global_symbol_pipe \
15281 lt_cv_sys_global_symbol_to_cdecl \
15282 lt_cv_sys_global_symbol_to_c_name_address \
15283 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15286 lt_prog_compiler_no_builtin_flag \
15287 lt_prog_compiler_wl \
15288 lt_prog_compiler_pic \
15289 lt_prog_compiler_static \
15290 lt_cv_prog_compiler_c_o \
15298 export_dynamic_flag_spec \
15299 whole_archive_flag_spec \
15300 compiler_needs_object \
15302 allow_undefined_flag \
15303 no_undefined_flag \
15304 hardcode_libdir_flag_spec \
15305 hardcode_libdir_flag_spec_ld \
15306 hardcode_libdir_separator \
15311 variables_saved_for_relink \
15313 library_names_spec \
15318 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15319 *[\\\\\\\`\\"\\\$]*)
15320 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15323 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15328 # Double-quote double-evaled strings.
15329 for var in reload_cmds \
15330 old_postinstall_cmds \
15331 old_postuninstall_cmds \
15333 extract_expsyms_cmds \
15334 old_archive_from_new_cmds \
15335 old_archive_from_expsyms_cmds \
15337 archive_expsym_cmds \
15339 module_expsym_cmds \
15340 export_symbols_cmds \
15343 postuninstall_cmds \
15345 sys_lib_search_path_spec \
15346 sys_lib_dlsearch_path_spec; do
15347 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15348 *[\\\\\\\`\\"\\\$]*)
15349 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15352 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15357 # Fix-up fallback echo if it was mangled by the above quoting rules.
15359 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15363 ac_aux_dir='$ac_aux_dir'
15364 xsi_shell='$xsi_shell'
15365 lt_shell_append='$lt_shell_append'
15367 # See if we are running on zsh, and set the options which allow our
15368 # commands through without removal of \ escapes INIT.
15369 if test -n "\${ZSH_VERSION+set}" ; then
15370 setopt NO_GLOB_SUBST
15376 TIMESTAMP='$TIMESTAMP'
15385 cat >>$CONFIG_STATUS <<\_ACEOF
15387 # Handling of arguments.
15388 for ac_config_target in $ac_config_targets
15390 case $ac_config_target in
15391 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15392 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15393 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15394 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15395 "codecs/Makefile") CONFIG_FILES="$CONFIG_FILES codecs/Makefile" ;;
15396 "codecs/ffmpeg/Makefile") CONFIG_FILES="$CONFIG_FILES codecs/ffmpeg/Makefile" ;;
15397 "formats/Makefile") CONFIG_FILES="$CONFIG_FILES formats/Makefile" ;;
15398 "formats/ffmpeg/Makefile") CONFIG_FILES="$CONFIG_FILES formats/ffmpeg/Makefile" ;;
15399 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
15400 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15401 "mm-fileinfo.pc") CONFIG_FILES="$CONFIG_FILES mm-fileinfo.pc" ;;
15403 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15404 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15405 { (exit 1); exit 1; }; };;
15410 # If the user did not use the arguments to specify the items to instantiate,
15411 # then the envvar interface is used. Set only those that are not.
15412 # We use the long form for the default assignment because of an extremely
15413 # bizarre bug on SunOS 4.1.3.
15414 if $ac_need_defaults; then
15415 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15416 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15417 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15420 # Have a temporary directory for convenience. Make it in the build tree
15421 # simply because there is no reason against having it here, and in addition,
15422 # creating and moving files from /tmp can sometimes cause problems.
15423 # Hook for its removal unless debugging.
15424 # Note that there is a small window in which the directory will not be cleaned:
15425 # after its creation but before its name has been assigned to `$tmp'.
15429 trap 'exit_status=$?
15430 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15432 trap '{ (exit 1); exit 1; }' 1 2 13 15
15434 # Create a (secure) tmp directory for tmp files.
15437 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15438 test -n "$tmp" && test -d "$tmp"
15441 tmp=./conf$$-$RANDOM
15442 (umask 077 && mkdir "$tmp")
15445 echo "$me: cannot create a temporary directory in ." >&2
15446 { (exit 1); exit 1; }
15450 # Set up the sed scripts for CONFIG_FILES section.
15453 # No need to generate the scripts if there are no CONFIG_FILES.
15454 # This happens for instance when ./config.status config.h
15455 if test -n "$CONFIG_FILES"; then
15462 for ac_last_try in false false false false false :; do
15463 cat >conf$$subs.sed <<_ACEOF
15464 SHELL!$SHELL$ac_delim
15465 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15466 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15467 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15468 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15469 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15470 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15471 exec_prefix!$exec_prefix$ac_delim
15472 prefix!$prefix$ac_delim
15473 program_transform_name!$program_transform_name$ac_delim
15474 bindir!$bindir$ac_delim
15475 sbindir!$sbindir$ac_delim
15476 libexecdir!$libexecdir$ac_delim
15477 datarootdir!$datarootdir$ac_delim
15478 datadir!$datadir$ac_delim
15479 sysconfdir!$sysconfdir$ac_delim
15480 sharedstatedir!$sharedstatedir$ac_delim
15481 localstatedir!$localstatedir$ac_delim
15482 includedir!$includedir$ac_delim
15483 oldincludedir!$oldincludedir$ac_delim
15484 docdir!$docdir$ac_delim
15485 infodir!$infodir$ac_delim
15486 htmldir!$htmldir$ac_delim
15487 dvidir!$dvidir$ac_delim
15488 pdfdir!$pdfdir$ac_delim
15489 psdir!$psdir$ac_delim
15490 libdir!$libdir$ac_delim
15491 localedir!$localedir$ac_delim
15492 mandir!$mandir$ac_delim
15493 DEFS!$DEFS$ac_delim
15494 ECHO_C!$ECHO_C$ac_delim
15495 ECHO_N!$ECHO_N$ac_delim
15496 ECHO_T!$ECHO_T$ac_delim
15497 LIBS!$LIBS$ac_delim
15498 build_alias!$build_alias$ac_delim
15499 host_alias!$host_alias$ac_delim
15500 target_alias!$target_alias$ac_delim
15501 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15502 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15503 INSTALL_DATA!$INSTALL_DATA$ac_delim
15504 am__isrc!$am__isrc$ac_delim
15505 CYGPATH_W!$CYGPATH_W$ac_delim
15506 PACKAGE!$PACKAGE$ac_delim
15507 VERSION!$VERSION$ac_delim
15508 ACLOCAL!$ACLOCAL$ac_delim
15509 AUTOCONF!$AUTOCONF$ac_delim
15510 AUTOMAKE!$AUTOMAKE$ac_delim
15511 AUTOHEADER!$AUTOHEADER$ac_delim
15512 MAKEINFO!$MAKEINFO$ac_delim
15513 install_sh!$install_sh$ac_delim
15514 STRIP!$STRIP$ac_delim
15515 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
15516 mkdir_p!$mkdir_p$ac_delim
15518 SET_MAKE!$SET_MAKE$ac_delim
15519 am__leading_dot!$am__leading_dot$ac_delim
15520 AMTAR!$AMTAR$ac_delim
15521 am__tar!$am__tar$ac_delim
15522 am__untar!$am__untar$ac_delim
15524 CFLAGS!$CFLAGS$ac_delim
15525 LDFLAGS!$LDFLAGS$ac_delim
15526 CPPFLAGS!$CPPFLAGS$ac_delim
15527 ac_ct_CC!$ac_ct_CC$ac_delim
15528 EXEEXT!$EXEEXT$ac_delim
15529 OBJEXT!$OBJEXT$ac_delim
15530 DEPDIR!$DEPDIR$ac_delim
15531 am__include!$am__include$ac_delim
15532 am__quote!$am__quote$ac_delim
15533 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
15534 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
15535 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
15536 CCDEPMODE!$CCDEPMODE$ac_delim
15537 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
15538 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
15539 LIBTOOL!$LIBTOOL$ac_delim
15540 build!$build$ac_delim
15541 build_cpu!$build_cpu$ac_delim
15542 build_vendor!$build_vendor$ac_delim
15543 build_os!$build_os$ac_delim
15544 host!$host$ac_delim
15545 host_cpu!$host_cpu$ac_delim
15546 host_vendor!$host_vendor$ac_delim
15547 host_os!$host_os$ac_delim
15549 GREP!$GREP$ac_delim
15550 EGREP!$EGREP$ac_delim
15551 FGREP!$FGREP$ac_delim
15553 DUMPBIN!$DUMPBIN$ac_delim
15554 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
15556 LN_S!$LN_S$ac_delim
15558 RANLIB!$RANLIB$ac_delim
15559 lt_ECHO!$lt_ECHO$ac_delim
15560 DSYMUTIL!$DSYMUTIL$ac_delim
15563 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15565 elif $ac_last_try; then
15566 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15567 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15568 { (exit 1); exit 1; }; }
15570 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15574 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15575 if test -n "$ac_eof"; then
15576 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15577 ac_eof=`expr $ac_eof + 1`
15580 cat >>$CONFIG_STATUS <<_ACEOF
15581 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15585 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15586 s/^/s,@/; s/!/@,|#_!!_#|/
15589 s/'"$ac_delim"'$/,g/; t
15591 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15592 ' >>$CONFIG_STATUS <conf$$subs.sed
15593 rm -f conf$$subs.sed
15594 cat >>$CONFIG_STATUS <<_ACEOF
15600 for ac_last_try in false false false false false :; do
15601 cat >conf$$subs.sed <<_ACEOF
15602 NMEDIT!$NMEDIT$ac_delim
15603 LIPO!$LIPO$ac_delim
15604 OTOOL!$OTOOL$ac_delim
15605 OTOOL64!$OTOOL64$ac_delim
15607 LIBOBJS!$LIBOBJS$ac_delim
15608 PKG_CONFIG!$PKG_CONFIG$ac_delim
15609 MMCOMMON_CFLAGS!$MMCOMMON_CFLAGS$ac_delim
15610 MMCOMMON_LIBS!$MMCOMMON_LIBS$ac_delim
15611 MMLOG_CFLAGS!$MMLOG_CFLAGS$ac_delim
15612 MMLOG_LIBS!$MMLOG_LIBS$ac_delim
15613 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
15614 GLIB_LIBS!$GLIB_LIBS$ac_delim
15615 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
15616 GTK_LIBS!$GTK_LIBS$ac_delim
15617 AVCODEC_CFLAGS!$AVCODEC_CFLAGS$ac_delim
15618 AVCODEC_LIBS!$AVCODEC_LIBS$ac_delim
15619 AVUTIL_CFLAGS!$AVUTIL_CFLAGS$ac_delim
15620 AVUTIL_LIBS!$AVUTIL_LIBS$ac_delim
15621 AVFORMAT_CFLAGS!$AVFORMAT_CFLAGS$ac_delim
15622 AVFORMAT_LIBS!$AVFORMAT_LIBS$ac_delim
15623 DRMSERVICE_CFLAGS!$DRMSERVICE_CFLAGS$ac_delim
15624 DRMSERVICE_LIBS!$DRMSERVICE_LIBS$ac_delim
15625 USE_DRM_TRUE!$USE_DRM_TRUE$ac_delim
15626 USE_DRM_FALSE!$USE_DRM_FALSE$ac_delim
15627 USE_TESTMODE_TRUE!$USE_TESTMODE_TRUE$ac_delim
15628 USE_TESTMODE_FALSE!$USE_TESTMODE_FALSE$ac_delim
15629 USE_DUMP_TRUE!$USE_DUMP_TRUE$ac_delim
15630 USE_DUMP_FALSE!$USE_DUMP_FALSE$ac_delim
15631 LTLIBOBJS!$LTLIBOBJS$ac_delim
15634 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
15636 elif $ac_last_try; then
15637 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15638 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15639 { (exit 1); exit 1; }; }
15641 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15645 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15646 if test -n "$ac_eof"; then
15647 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15648 ac_eof=`expr $ac_eof + 1`
15651 cat >>$CONFIG_STATUS <<_ACEOF
15652 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15653 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15656 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15657 s/^/s,@/; s/!/@,|#_!!_#|/
15660 s/'"$ac_delim"'$/,g/; t
15662 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15663 ' >>$CONFIG_STATUS <conf$$subs.sed
15664 rm -f conf$$subs.sed
15665 cat >>$CONFIG_STATUS <<_ACEOF
15672 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15673 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15674 # trailing colons and then remove the whole line if VPATH becomes empty
15675 # (actually we leave an empty line to preserve line numbers).
15676 if test "x$srcdir" = x.; then
15677 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15678 s/:*\$(srcdir):*/:/
15679 s/:*\${srcdir}:*/:/
15681 s/^\([^=]*=[ ]*\):*/\1/
15687 cat >>$CONFIG_STATUS <<\_ACEOF
15688 fi # test -n "$CONFIG_FILES"
15691 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
15694 :[FHLC]) ac_mode=$ac_tag; continue;;
15696 case $ac_mode$ac_tag in
15698 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15699 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15700 { (exit 1); exit 1; }; };;
15701 :[FH]-) ac_tag=-:-;;
15702 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15719 -) ac_f="$tmp/stdin";;
15720 *) # Look for the file first in the build tree, then in the source tree
15721 # (if the path is not absolute). The absolute path cannot be DOS-style,
15722 # because $ac_f cannot contain `:'.
15726 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15728 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15729 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15730 { (exit 1); exit 1; }; };;
15732 ac_file_inputs="$ac_file_inputs $ac_f"
15735 # Let's still pretend it is `configure' which instantiates (i.e., don't
15736 # use $as_me), people would be surprised to read:
15737 # /* config.h. Generated by config.status. */
15738 configure_input="Generated from "`IFS=:
15739 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15740 if test x"$ac_file" != x-; then
15741 configure_input="$ac_file. $configure_input"
15742 { echo "$as_me:$LINENO: creating $ac_file" >&5
15743 echo "$as_me: creating $ac_file" >&6;}
15747 *:-:* | *:-) cat >"$tmp/stdin";;
15752 ac_dir=`$as_dirname -- "$ac_file" ||
15753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15754 X"$ac_file" : 'X\(//\)[^/]' \| \
15755 X"$ac_file" : 'X\(//\)$' \| \
15756 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15762 /^X\(\/\/\)[^/].*/{
15777 -*) as_dir=./$as_dir;;
15779 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15783 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15784 *) as_qdir=$as_dir;;
15786 as_dirs="'$as_qdir' $as_dirs"
15787 as_dir=`$as_dirname -- "$as_dir" ||
15788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15789 X"$as_dir" : 'X\(//\)[^/]' \| \
15790 X"$as_dir" : 'X\(//\)$' \| \
15791 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15797 /^X\(\/\/\)[^/].*/{
15810 test -d "$as_dir" && break
15812 test -z "$as_dirs" || eval "mkdir $as_dirs"
15813 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15814 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15815 { (exit 1); exit 1; }; }; }
15819 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15821 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15822 # A ".." for each directory in $ac_dir_suffix.
15823 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15824 case $ac_top_builddir_sub in
15825 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15826 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15829 ac_abs_top_builddir=$ac_pwd
15830 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15831 # for backward compatibility:
15832 ac_top_builddir=$ac_top_build_prefix
15835 .) # We are building in place.
15837 ac_top_srcdir=$ac_top_builddir_sub
15838 ac_abs_top_srcdir=$ac_pwd ;;
15839 [\\/]* | ?:[\\/]* ) # Absolute name.
15840 ac_srcdir=$srcdir$ac_dir_suffix;
15841 ac_top_srcdir=$srcdir
15842 ac_abs_top_srcdir=$srcdir ;;
15843 *) # Relative name.
15844 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15845 ac_top_srcdir=$ac_top_build_prefix$srcdir
15846 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15848 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15858 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15859 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15861 ac_MKDIR_P=$MKDIR_P
15863 [\\/$]* | ?:[\\/]* ) ;;
15864 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15868 cat >>$CONFIG_STATUS <<\_ACEOF
15869 # If the template does not know about datarootdir, expand it.
15870 # FIXME: This hack should be removed a few years after 2.60.
15871 ac_datarootdir_hack=; ac_datarootdir_seen=
15873 case `sed -n '/datarootdir/ {
15882 ' $ac_file_inputs` in
15883 *datarootdir*) ac_datarootdir_seen=yes;;
15884 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15885 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15886 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15888 cat >>$CONFIG_STATUS <<_ACEOF
15889 ac_datarootdir_hack='
15890 s&@datadir@&$datadir&g
15891 s&@docdir@&$docdir&g
15892 s&@infodir@&$infodir&g
15893 s&@localedir@&$localedir&g
15894 s&@mandir@&$mandir&g
15895 s&\\\${datarootdir}&$datarootdir&g' ;;
15899 # Neutralize VPATH when `$srcdir' = `.'.
15900 # Shell code in configure.ac might set extrasub.
15901 # FIXME: do we really want to maintain this feature?
15902 cat >>$CONFIG_STATUS <<_ACEOF
15906 cat >>$CONFIG_STATUS <<\_ACEOF
15908 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15909 s&@configure_input@&$configure_input&;t t
15910 s&@top_builddir@&$ac_top_builddir_sub&;t t
15911 s&@srcdir@&$ac_srcdir&;t t
15912 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15913 s&@top_srcdir@&$ac_top_srcdir&;t t
15914 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15915 s&@builddir@&$ac_builddir&;t t
15916 s&@abs_builddir@&$ac_abs_builddir&;t t
15917 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15918 s&@INSTALL@&$ac_INSTALL&;t t
15919 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15920 $ac_datarootdir_hack
15921 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
15923 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15924 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15925 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15926 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15927 which seems to be undefined. Please make sure it is defined." >&5
15928 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15929 which seems to be undefined. Please make sure it is defined." >&2;}
15933 -) cat "$tmp/out"; rm -f "$tmp/out";;
15934 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15943 # Transform confdefs.h into a sed script `conftest.defines', that
15944 # substitutes the proper values into config.h.in to produce config.h.
15945 rm -f conftest.defines conftest.tail
15946 # First, append a space to every undef/define line, to ease matching.
15947 echo 's/$/ /' >conftest.defines
15948 # Then, protect against being on the right side of a sed subst, or in
15949 # an unquoted here document, in config.status. If some macros were
15950 # called several times there might be several #defines for the same
15951 # symbol, which is useless. But do not sort them, since the last
15952 # AC_DEFINE must be honored.
15953 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15954 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15955 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15956 # PARAMS is the parameter list in the macro definition--in most cases, it's
15957 # just an empty string.
15958 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15959 ac_dB='\\)[ (].*,\\1define\\2'
15967 s/^[ ]*#[ ]*define[ ][ ]*//
15972 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15973 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15974 ' >>conftest.defines
15976 # Remove the space that was appended to ease matching.
15977 # Then replace #undef with comments. This is necessary, for
15978 # example, in the case of _POSIX_SOURCE, which is predefined and required
15979 # on some systems where configure will not decide to define it.
15980 # (The regexp can be short, since the line contains either #define or #undef.)
15982 s,^[ #]*u.*,/* & */,' >>conftest.defines
15984 # Break up conftest.defines:
15985 ac_max_sed_lines=50
15987 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15988 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15989 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15991 ac_in='$ac_file_inputs'
15992 ac_out='"$tmp/out1"'
15993 ac_nxt='"$tmp/out2"'
15997 # Write a here document:
15998 cat >>$CONFIG_STATUS <<_ACEOF
15999 # First, check the format of the line:
16000 cat >"\$tmp/defines.sed" <<\\CEOF
16001 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
16002 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
16006 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
16008 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
16009 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
16010 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
16011 grep . conftest.tail >/dev/null || break
16012 rm -f conftest.defines
16013 mv conftest.tail conftest.defines
16015 rm -f conftest.defines conftest.tail
16017 echo "ac_result=$ac_in" >>$CONFIG_STATUS
16018 cat >>$CONFIG_STATUS <<\_ACEOF
16019 if test x"$ac_file" != x-; then
16020 echo "/* $configure_input */" >"$tmp/config.h"
16021 cat "$ac_result" >>"$tmp/config.h"
16022 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
16023 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16024 echo "$as_me: $ac_file is unchanged" >&6;}
16027 mv "$tmp/config.h" $ac_file
16030 echo "/* $configure_input */"
16034 # Compute $ac_file's index in $config_headers.
16037 for _am_header in $config_headers :; do
16038 case $_am_header in
16039 $_am_arg | $_am_arg:* )
16042 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16045 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16046 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16047 X"$_am_arg" : 'X\(//\)[^/]' \| \
16048 X"$_am_arg" : 'X\(//\)$' \| \
16049 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16055 /^X\(\/\/\)[^/].*/{
16067 s/.*/./; q'`/stamp-h$_am_stamp_count
16070 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16071 echo "$as_me: executing $ac_file commands" >&6;}
16076 case $ac_file$ac_mode in
16077 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
16078 # are listed without --file. Let's play safe and only enable the eval
16079 # if we detect the quoting.
16080 case $CONFIG_FILES in
16081 *\'*) eval set x "$CONFIG_FILES" ;;
16082 *) set x $CONFIG_FILES ;;
16087 # Strip MF so we end up with the name of the file.
16088 mf=`echo "$mf" | sed -e 's/:.*$//'`
16089 # Check whether this is an Automake generated Makefile or not.
16090 # We used to match only the files named `Makefile.in', but
16091 # some people rename them; so instead we look at the file content.
16092 # Grep'ing the first line is not enough: some people post-process
16093 # each Makefile.in and add a new line on top of each file to say so.
16094 # Grep'ing the whole file is not good either: AIX grep has a line
16095 # limit of 2048, but all sed's we know have understand at least 4000.
16096 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16097 dirpart=`$as_dirname -- "$mf" ||
16098 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16099 X"$mf" : 'X\(//\)[^/]' \| \
16100 X"$mf" : 'X\(//\)$' \| \
16101 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16107 /^X\(\/\/\)[^/].*/{
16123 # Extract the definition of DEPDIR, am__include, and am__quote
16124 # from the Makefile without running `make'.
16125 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16126 test -z "$DEPDIR" && continue
16127 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16128 test -z "am__include" && continue
16129 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16130 # When using ansi2knr, U may be empty or an underscore; expand it
16131 U=`sed -n 's/^U = //p' < "$mf"`
16132 # Find all dependency output files, they are included files with
16133 # $(DEPDIR) in their names. We invoke sed twice because it is the
16134 # simplest approach to changing $(DEPDIR) to its actual value in the
16136 for file in `sed -n "
16137 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16138 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16139 # Make sure the directory exists.
16140 test -f "$dirpart/$file" && continue
16141 fdir=`$as_dirname -- "$file" ||
16142 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16143 X"$file" : 'X\(//\)[^/]' \| \
16144 X"$file" : 'X\(//\)$' \| \
16145 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16151 /^X\(\/\/\)[^/].*/{
16164 { as_dir=$dirpart/$fdir
16166 -*) as_dir=./$as_dir;;
16168 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16172 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16173 *) as_qdir=$as_dir;;
16175 as_dirs="'$as_qdir' $as_dirs"
16176 as_dir=`$as_dirname -- "$as_dir" ||
16177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16178 X"$as_dir" : 'X\(//\)[^/]' \| \
16179 X"$as_dir" : 'X\(//\)$' \| \
16180 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16186 /^X\(\/\/\)[^/].*/{
16199 test -d "$as_dir" && break
16201 test -z "$as_dirs" || eval "mkdir $as_dirs"
16202 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16203 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16204 { (exit 1); exit 1; }; }; }
16205 # echo "creating $dirpart/$file"
16206 echo '# dummy' > "$dirpart/$file"
16212 # See if we are running on zsh, and set the options which allow our
16213 # commands through without removal of \ escapes.
16214 if test -n "${ZSH_VERSION+set}" ; then
16215 setopt NO_GLOB_SUBST
16218 cfgfile="${ofile}T"
16219 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16222 cat <<_LT_EOF >> "$cfgfile"
16225 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16226 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16227 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16228 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16230 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16231 # 2006, 2007, 2008 Free Software Foundation, Inc.
16232 # Written by Gordon Matzigkeit, 1996
16234 # This file is part of GNU Libtool.
16236 # GNU Libtool is free software; you can redistribute it and/or
16237 # modify it under the terms of the GNU General Public License as
16238 # published by the Free Software Foundation; either version 2 of
16239 # the License, or (at your option) any later version.
16241 # As a special exception to the GNU General Public License,
16242 # if you distribute this file as part of a program or library that
16243 # is built using GNU Libtool, you may include this file under the
16244 # same distribution terms that you use for the rest of that program.
16246 # GNU Libtool is distributed in the hope that it will be useful,
16247 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16248 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16249 # GNU General Public License for more details.
16251 # You should have received a copy of the GNU General Public License
16252 # along with GNU Libtool; see the file COPYING. If not, a copy
16253 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16254 # obtained by writing to the Free Software Foundation, Inc.,
16255 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16258 # The names of the tagged configurations supported by this script.
16261 # ### BEGIN LIBTOOL CONFIG
16263 # Which release of libtool.m4 was used?
16264 macro_version=$macro_version
16265 macro_revision=$macro_revision
16267 # Whether or not to build shared libraries.
16268 build_libtool_libs=$enable_shared
16270 # Whether or not to build static libraries.
16271 build_old_libs=$enable_static
16273 # What type of objects to build.
16276 # Whether or not to optimize for fast installation.
16277 fast_install=$enable_fast_install
16280 host_alias=$host_alias
16284 # The build system.
16285 build_alias=$build_alias
16289 # A sed program that does not truncate output.
16292 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16293 Xsed="\$SED -e 1s/^X//"
16295 # A grep program that handles long lines.
16301 # A literal string matcher.
16304 # A BSD- or MS-compatible name lister.
16307 # Whether we need soft or hard links.
16310 # What is the maximum length of a command?
16311 max_cmd_len=$max_cmd_len
16313 # Object file suffix (normally "o").
16316 # Executable file suffix (normally "").
16319 # whether the shell understands "unset".
16322 # turn spaces into newlines.
16325 # turn newlines into spaces.
16328 # How to create reloadable object files.
16329 reload_flag=$lt_reload_flag
16330 reload_cmds=$lt_reload_cmds
16332 # Method to check whether dependent libraries are shared objects.
16333 deplibs_check_method=$lt_deplibs_check_method
16335 # Command to use when deplibs_check_method == "file_magic".
16336 file_magic_cmd=$lt_file_magic_cmd
16340 AR_FLAGS=$lt_AR_FLAGS
16342 # A symbol stripping program.
16345 # Commands used to install an old-style archive.
16347 old_postinstall_cmds=$lt_old_postinstall_cmds
16348 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16353 # LTCC compiler flags.
16354 LTCFLAGS=$lt_CFLAGS
16356 # Take the output of nm and produce a listing of raw symbols and C names.
16357 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16359 # Transform the output of nm in a proper C declaration.
16360 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16362 # Transform the output of nm in a C name address pair.
16363 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16365 # Transform the output of nm in a C name address pair when lib prefix is needed.
16366 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16368 # The name of the directory that contains temporary libtool files.
16371 # Shell to use when invoking shell scripts.
16374 # An echo program that does not interpret backslashes.
16377 # Used to examine libraries when file_magic_cmd begins with "file".
16378 MAGIC_CMD=$MAGIC_CMD
16380 # Must we lock files when doing compilation?
16381 need_locks=$lt_need_locks
16383 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16384 DSYMUTIL=$lt_DSYMUTIL
16386 # Tool to change global to local symbols on Mac OS X.
16389 # Tool to manipulate fat objects and archives on Mac OS X.
16392 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16395 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16396 OTOOL64=$lt_OTOOL64
16398 # Old archive suffix (normally "a").
16401 # Shared library suffix (normally ".so").
16402 shrext_cmds=$lt_shrext_cmds
16404 # The commands to extract the exported symbol list from a shared archive.
16405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16407 # Variables whose values should be saved in libtool wrapper scripts and
16408 # restored at link time.
16409 variables_saved_for_relink=$lt_variables_saved_for_relink
16411 # Do we need the "lib" prefix for modules?
16412 need_lib_prefix=$need_lib_prefix
16414 # Do we need a version for libraries?
16415 need_version=$need_version
16417 # Library versioning type.
16418 version_type=$version_type
16420 # Shared library runtime path variable.
16421 runpath_var=$runpath_var
16423 # Shared library path variable.
16424 shlibpath_var=$shlibpath_var
16426 # Is shlibpath searched before the hard-coded library search path?
16427 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16429 # Format of library name prefix.
16430 libname_spec=$lt_libname_spec
16432 # List of archive names. First name is the real one, the rest are links.
16433 # The last name is the one that the linker finds with -lNAME
16434 library_names_spec=$lt_library_names_spec
16436 # The coded name of the library, if different from the real name.
16437 soname_spec=$lt_soname_spec
16439 # Command to use after installation of a shared archive.
16440 postinstall_cmds=$lt_postinstall_cmds
16442 # Command to use after uninstallation of a shared archive.
16443 postuninstall_cmds=$lt_postuninstall_cmds
16445 # Commands used to finish a libtool library installation in a directory.
16446 finish_cmds=$lt_finish_cmds
16448 # As "finish_cmds", except a single script fragment to be evaled but
16450 finish_eval=$lt_finish_eval
16452 # Whether we should hardcode library paths into libraries.
16453 hardcode_into_libs=$hardcode_into_libs
16455 # Compile-time system search path for libraries.
16456 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16458 # Run-time system search path for libraries.
16459 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16461 # Whether dlopen is supported.
16462 dlopen_support=$enable_dlopen
16464 # Whether dlopen of programs is supported.
16465 dlopen_self=$enable_dlopen_self
16467 # Whether dlopen of statically linked programs is supported.
16468 dlopen_self_static=$enable_dlopen_self_static
16470 # Commands to strip libraries.
16471 old_striplib=$lt_old_striplib
16472 striplib=$lt_striplib
16475 # The linker used to build libraries.
16478 # Commands used to build an old-style archive.
16479 old_archive_cmds=$lt_old_archive_cmds
16481 # A language specific compiler.
16484 # Is the compiler the GNU compiler?
16487 # Compiler flag to turn off builtin functions.
16488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16490 # How to pass a linker flag through the compiler.
16491 wl=$lt_lt_prog_compiler_wl
16493 # Additional compiler flags for building library objects.
16494 pic_flag=$lt_lt_prog_compiler_pic
16496 # Compiler flag to prevent dynamic linking.
16497 link_static_flag=$lt_lt_prog_compiler_static
16499 # Does compiler simultaneously support -c and -o options?
16500 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16502 # Whether or not to add -lc for building shared libraries.
16503 build_libtool_need_lc=$archive_cmds_need_lc
16505 # Whether or not to disallow shared libs when runtime libs are static.
16506 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16508 # Compiler flag to allow reflexive dlopens.
16509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16511 # Compiler flag to generate shared objects directly from archives.
16512 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16514 # Whether the compiler copes with passing no objects directly.
16515 compiler_needs_object=$lt_compiler_needs_object
16517 # Create an old-style archive from a shared archive.
16518 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16520 # Create a temporary old-style archive to link instead of a shared archive.
16521 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16523 # Commands used to build a shared archive.
16524 archive_cmds=$lt_archive_cmds
16525 archive_expsym_cmds=$lt_archive_expsym_cmds
16527 # Commands used to build a loadable module if different from building
16528 # a shared archive.
16529 module_cmds=$lt_module_cmds
16530 module_expsym_cmds=$lt_module_expsym_cmds
16532 # Whether we are building with GNU ld or not.
16533 with_gnu_ld=$lt_with_gnu_ld
16535 # Flag that allows shared libraries with undefined symbols to be built.
16536 allow_undefined_flag=$lt_allow_undefined_flag
16538 # Flag that enforces no undefined symbols.
16539 no_undefined_flag=$lt_no_undefined_flag
16541 # Flag to hardcode \$libdir into a binary during linking.
16542 # This must work even if \$libdir does not exist
16543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16545 # If ld is used when linking, flag to hardcode \$libdir into a binary
16546 # during linking. This must work even if \$libdir does not exist.
16547 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16549 # Whether we need a single "-rpath" flag with a separated argument.
16550 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16552 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16553 # DIR into the resulting binary.
16554 hardcode_direct=$hardcode_direct
16556 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16557 # DIR into the resulting binary and the resulting library dependency is
16558 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16559 # library is relocated.
16560 hardcode_direct_absolute=$hardcode_direct_absolute
16562 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16563 # into the resulting binary.
16564 hardcode_minus_L=$hardcode_minus_L
16566 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16567 # into the resulting binary.
16568 hardcode_shlibpath_var=$hardcode_shlibpath_var
16570 # Set to "yes" if building a shared library automatically hardcodes DIR
16571 # into the library and all subsequent libraries and executables linked
16573 hardcode_automatic=$hardcode_automatic
16575 # Set to yes if linker adds runtime paths of dependent libraries
16576 # to runtime path list.
16577 inherit_rpath=$inherit_rpath
16579 # Whether libtool must link a program against all its dependency libraries.
16580 link_all_deplibs=$link_all_deplibs
16582 # Fix the shell variable \$srcfile for the compiler.
16583 fix_srcfile_path=$lt_fix_srcfile_path
16585 # Set to "yes" if exported symbols are required.
16586 always_export_symbols=$always_export_symbols
16588 # The commands to list exported symbols.
16589 export_symbols_cmds=$lt_export_symbols_cmds
16591 # Symbols that should not be listed in the preloaded symbols.
16592 exclude_expsyms=$lt_exclude_expsyms
16594 # Symbols that must always be exported.
16595 include_expsyms=$lt_include_expsyms
16597 # Commands necessary for linking programs (against libraries) with templates.
16598 prelink_cmds=$lt_prelink_cmds
16600 # Specify filename containing input files.
16601 file_list_spec=$lt_file_list_spec
16603 # How to hardcode a shared library path into an executable.
16604 hardcode_action=$hardcode_action
16606 # ### END LIBTOOL CONFIG
16612 cat <<\_LT_EOF >> "$cfgfile"
16613 # AIX sometimes has problems with the GCC collect2 program. For some
16614 # reason, if we set the COLLECT_NAMES environment variable, the problems
16615 # vanish in a puff of smoke.
16616 if test "X${COLLECT_NAMES+set}" != Xset; then
16618 export COLLECT_NAMES
16625 ltmain="$ac_aux_dir/ltmain.sh"
16628 # We use sed instead of cat because bash on DJGPP gets confused if
16629 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16630 # text mode, it properly converts lines to CR/LF. This bash problem
16631 # is reportedly fixed, but why not run on old versions too?
16632 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16633 || (rm -f "$cfgfile"; exit 1)
16637 cat << \_LT_EOF >> "$cfgfile"
16639 # func_dirname file append nondir_replacement
16640 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16641 # otherwise set result to NONDIR_REPLACEMENT.
16645 */*) func_dirname_result="${1%/*}${2}" ;;
16646 * ) func_dirname_result="${3}" ;;
16650 # func_basename file
16653 func_basename_result="${1##*/}"
16656 # func_dirname_and_basename file append nondir_replacement
16657 # perform func_basename and func_dirname in a single function
16659 # dirname: Compute the dirname of FILE. If nonempty,
16660 # add APPEND to the result, otherwise set result
16661 # to NONDIR_REPLACEMENT.
16662 # value returned in "$func_dirname_result"
16663 # basename: Compute filename of FILE.
16664 # value retuned in "$func_basename_result"
16665 # Implementation must be kept synchronized with func_dirname
16666 # and func_basename. For efficiency, we do not delegate to
16667 # those functions but instead duplicate the functionality here.
16668 func_dirname_and_basename ()
16671 */*) func_dirname_result="${1%/*}${2}" ;;
16672 * ) func_dirname_result="${3}" ;;
16674 func_basename_result="${1##*/}"
16677 # func_stripname prefix suffix name
16678 # strip PREFIX and SUFFIX off of NAME.
16679 # PREFIX and SUFFIX must not contain globbing or regex special
16680 # characters, hashes, percent signs, but SUFFIX may contain a leading
16681 # dot (in which case that matches only a dot).
16684 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16685 # positional parameters, so assign one to ordinary parameter first.
16686 func_stripname_result=${3}
16687 func_stripname_result=${func_stripname_result#"${1}"}
16688 func_stripname_result=${func_stripname_result%"${2}"}
16694 func_opt_split_opt=${1%%=*}
16695 func_opt_split_arg=${1#*=}
16702 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16703 *) func_lo2o_result=${1} ;;
16707 # func_xform libobj-or-source
16710 func_xform_result=${1%.*}.lo
16713 # func_arith arithmetic-term...
16716 func_arith_result=$(( $* ))
16720 # STRING may not start with a hyphen.
16723 func_len_result=${#1}
16728 *) # Bourne compatible functions.
16729 cat << \_LT_EOF >> "$cfgfile"
16731 # func_dirname file append nondir_replacement
16732 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16733 # otherwise set result to NONDIR_REPLACEMENT.
16736 # Extract subdirectory from the argument.
16737 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16738 if test "X$func_dirname_result" = "X${1}"; then
16739 func_dirname_result="${3}"
16741 func_dirname_result="$func_dirname_result${2}"
16745 # func_basename file
16748 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16752 # func_stripname prefix suffix name
16753 # strip PREFIX and SUFFIX off of NAME.
16754 # PREFIX and SUFFIX must not contain globbing or regex special
16755 # characters, hashes, percent signs, but SUFFIX may contain a leading
16756 # dot (in which case that matches only a dot).
16757 # func_strip_suffix prefix name
16761 .*) func_stripname_result=`$ECHO "X${3}" \
16762 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16763 *) func_stripname_result=`$ECHO "X${3}" \
16764 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16769 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16770 my_sed_long_arg='1s/^-[^=]*=//'
16775 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16776 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16782 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16785 # func_xform libobj-or-source
16788 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16791 # func_arith arithmetic-term...
16794 func_arith_result=`expr "$@"`
16798 # STRING may not start with a hyphen.
16801 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16807 case $lt_shell_append in
16809 cat << \_LT_EOF >> "$cfgfile"
16811 # func_append var value
16812 # Append VALUE to the end of shell variable VAR.
16820 cat << \_LT_EOF >> "$cfgfile"
16822 # func_append var value
16823 # Append VALUE to the end of shell variable VAR.
16834 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16835 || (rm -f "$cfgfile"; exit 1)
16837 mv -f "$cfgfile" "$ofile" ||
16838 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16847 { (exit 0); exit 0; }
16849 chmod +x $CONFIG_STATUS
16850 ac_clean_files=$ac_clean_files_save
16853 # configure is writing to config.log, and then calls config.status.
16854 # config.status does its own redirection, appending to config.log.
16855 # Unfortunately, on DOS this fails, as config.log is still kept open
16856 # by configure, so config.status won't be able to write to it; its
16857 # output is simply discarded. So we exec the FD to /dev/null,
16858 # effectively closing config.log, so it can be properly (re)opened and
16859 # appended to by config.status. When coming back to configure, we
16860 # need to make the FD available again.
16861 if test "$no_create" != yes; then
16863 ac_config_status_args=
16864 test "$silent" = yes &&
16865 ac_config_status_args="$ac_config_status_args --quiet"
16867 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16869 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16870 # would make configure fail if this is the last instruction.
16871 $ac_cs_success || { (exit 1); exit 1; }