2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for libXdamage 1.1.3.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235 $0: about your system, including any error possibly output
236 $0: before this message. Then install a modern shell, or
237 $0: manually run the script under such a shell if you do
244 SHELL=${CONFIG_SHELL-/bin/sh}
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
255 # Portably unset VAR.
258 { eval $1=; unset $1;}
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
282 # Create "$as_dir" as a directory, including parents if necessary.
287 -*) as_dir=./$as_dir;;
289 test -d "$as_dir" || eval $as_mkdir_p || {
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 test -d "$as_dir" && break
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 as_val=`expr "$@" || test $? -eq 1`
363 # as_fn_error ERROR [LINENO LOG_FD]
364 # ---------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with status $?, using 1 if that was 0.
370 as_status=$?; test $as_status -eq 0 && as_status=1
372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
375 $as_echo "$as_me: error: $1" >&2
376 as_fn_exit $as_status
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
452 # Exit status is that of the last command.
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
474 mkdir conf$$.dir 2>/dev/null
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
485 elif ln conf$$.file conf$$ 2>/dev/null; then
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
499 test -d ./-p && rmdir ./-p
503 if test -x / >/dev/null 2>&1; then
506 if ls -dL / >/dev/null 2>&1; then
513 if test -d "$1"; then
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
524 as_executable_p=$as_test_x
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 # Check that we are running under the correct shell.
535 SHELL=${CONFIG_SHELL-/bin/sh}
539 # Remove one level of quotation (which was required for Make).
540 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
545 if test "X$1" = X--no-reexec; then
546 # Discard the --no-reexec flag, and continue.
548 elif test "X$1" = X--fallback-echo; then
549 # Avoid inline document here, it may be left over
551 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552 # Yippee, $ECHO works!
555 # Restart under the correct shell.
556 exec $SHELL "$0" --no-reexec ${1+"$@"}
559 if test "X$1" = X--fallback-echo; then
560 # used as fallback echo
568 # The HP-UX ksh and POSIX shell print the target directory to stdout
570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
572 if test -z "$lt_ECHO"; then
573 if test "X${echo_test_string+set}" != Xset; then
574 # find a string as large as possible, as long as the shell can cope with it
575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
585 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587 test "X$echo_testing_string" = "X$echo_test_string"; then
590 # The Solaris, AIX, and Digital Unix default echo programs unquote
591 # backslashes. This makes it impossible to quote backslashes using
592 # echo "$something" | sed 's/\\/\\\\/g'
594 # So, first we look for a working echo in the user's PATH.
596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597 for dir in $PATH /usr/ucb; do
599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602 test "X$echo_testing_string" = "X$echo_test_string"; then
609 if test "X$ECHO" = Xecho; then
610 # We didn't find a better echo, so look for alternatives.
611 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # This shell has a builtin print -r that does the trick.
616 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617 test "X$CONFIG_SHELL" != X/bin/ksh; then
618 # If we have ksh, try running configure again with it.
619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620 export ORIGINAL_CONFIG_SHELL
621 CONFIG_SHELL=/bin/ksh
623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
627 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633 test "X$echo_testing_string" = 'X\t' &&
634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
638 SHELL="$CONFIG_SHELL"
640 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 ECHO="$CONFIG_SHELL $0 --fallback-echo"
647 # maybe with a smaller string...
650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
658 if test "$prev" != 'sed 50q "$0"'; then
659 echo_test_string=`eval $prev`
660 export echo_test_string
661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
663 # Oops. We lost completely, so just stick with echo.
672 # Copy echo and quote the copy suitably for passing to libtool from
673 # the Makefile, instead of quoting the original, which is used later.
675 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682 test -n "$DJDIR" || exec 7<&0 </dev/null
686 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687 # so uname gets run too.
688 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693 ac_default_prefix=/usr/local
695 ac_config_libobj_dir=.
702 # Identity of this package.
703 PACKAGE_NAME='libXdamage'
704 PACKAGE_TARNAME='libXdamage'
705 PACKAGE_VERSION='1.1.3'
706 PACKAGE_STRING='libXdamage 1.1.3'
707 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
710 # Factoring default headers for most tests.
711 ac_includes_default="\
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
723 # ifdef HAVE_STDLIB_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
746 ac_subst_vars='am__EXEEXT_FALSE
818 MAINTAINER_MODE_FALSE
828 INSTALL_STRIP_PROGRAM
870 program_transform_name
883 enable_option_checking
884 enable_maintainer_mode
885 enable_dependency_tracking
886 enable_strict_compilation
895 ac_precious_vars='build_alias
909 # Initialize some variables set by options.
911 ac_init_version=false
912 ac_unrecognized_opts=
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
923 program_transform_name=s,x,x,
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948 infodir='${datarootdir}/info'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
969 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
997 cache_file=config.cache ;;
999 -datadir | --datadir | --datadi | --datad)
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1011 -disable-* | --disable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_$ac_useropt"
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1025 eval enable_$ac_useropt=no ;;
1027 -docdir | --docdir | --docdi | --doc | --do)
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1037 -enable-* | --enable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error "invalid feature name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "enable_$ac_useropt"
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1051 eval enable_$ac_useropt=\$ac_optarg ;;
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
1060 exec_prefix=$ac_optarg ;;
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
1073 -host | --host | --hos | --ho)
1074 ac_prev=host_alias ;;
1075 -host=* | --host=* | --hos=* | --ho=*)
1076 host_alias=$ac_optarg ;;
1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082 htmldir=$ac_optarg ;;
1084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
1089 includedir=$ac_optarg ;;
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094 infodir=$ac_optarg ;;
1096 -libdir | --libdir | --libdi | --libd)
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099 libdir=$ac_optarg ;;
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
1106 libexecdir=$ac_optarg ;;
1108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1113 -localstatedir | --localstatedir | --localstatedi | --localstated \
1114 | --localstate | --localstat | --localsta | --localst | --locals)
1115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118 localstatedir=$ac_optarg ;;
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123 mandir=$ac_optarg ;;
1125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130 | --no-cr | --no-c | -n)
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144 oldincludedir=$ac_optarg ;;
1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149 prefix=$ac_optarg ;;
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156 program_prefix=$ac_optarg ;;
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163 program_suffix=$ac_optarg ;;
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
1180 program_transform_name=$ac_optarg ;;
1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1187 -psdir | --psdir | --psdi | --psd | --ps)
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200 sbindir=$ac_optarg ;;
1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204 | --sharedst | --shareds | --shared | --share | --shar \
1206 ac_prev=sharedstatedir ;;
1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211 sharedstatedir=$ac_optarg ;;
1213 -site | --site | --sit)
1215 -site=* | --site=* | --sit=*)
1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221 srcdir=$ac_optarg ;;
1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224 | --syscon | --sysco | --sysc | --sys | --sy)
1225 ac_prev=sysconfdir ;;
1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228 sysconfdir=$ac_optarg ;;
1230 -target | --target | --targe | --targ | --tar | --ta | --t)
1231 ac_prev=target_alias ;;
1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233 target_alias=$ac_optarg ;;
1235 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1238 -version | --version | --versio | --versi | --vers | -V)
1239 ac_init_version=: ;;
1242 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1255 eval with_$ac_useropt=\$ac_optarg ;;
1257 -without-* | --without-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error "invalid package name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1271 eval with_$ac_useropt=no ;;
1274 # Obsolete; use --with-x.
1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278 | --x-incl | --x-inc | --x-in | --x-i)
1279 ac_prev=x_includes ;;
1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282 x_includes=$ac_optarg ;;
1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286 ac_prev=x_libraries ;;
1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289 x_libraries=$ac_optarg ;;
1291 -*) as_fn_error "unrecognized option: \`$ac_option'
1292 Try \`$0 --help' for more information."
1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 case $ac_envvar in #(
1299 '' | [0-9]* | *[!_$as_cr_alnum]* )
1300 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1302 eval $ac_envvar=\$ac_optarg
1303 export $ac_envvar ;;
1306 # FIXME: should be removed in autoconf 3.0.
1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1316 if test -n "$ac_prev"; then
1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318 as_fn_error "missing argument to $ac_option"
1321 if test -n "$ac_unrecognized_opts"; then
1322 case $enable_option_checking in
1324 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1329 # Check all directory arguments for consistency.
1330 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir
1335 eval ac_val=\$$ac_var
1336 # Remove trailing slashes.
1339 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340 eval $ac_var=\$ac_val;;
1342 # Be sure to have absolute directory names.
1344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1355 target=$target_alias
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1362 If a cross compiler is detected then cross compile mode will be used." >&2
1363 elif test "x$build_alias" != "x$host_alias"; then
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371 test "$silent" = yes && exec 6>/dev/null
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377 as_fn_error "working directory cannot be determined"
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379 as_fn_error "pwd does not report name of working directory"
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
1385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir=`$as_dirname -- "$as_myself" ||
1387 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$as_myself" : 'X\(//\)[^/]' \| \
1389 X"$as_myself" : 'X\(//\)$' \| \
1390 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1391 $as_echo X"$as_myself" |
1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1414 ac_srcdir_defaulted=no
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1420 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442 # Report the --help message.
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1448 \`configure' configures libXdamage 1.1.3 to adapt to many kinds of systems.
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1455 Defaults for the options are specified in brackets.
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1479 For better control, use the options below.
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/libXdamage]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1506 --program-prefix=PREFIX prepend PREFIX to installed program names
1507 --program-suffix=SUFFIX append SUFFIX to installed program names
1508 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1516 if test -n "$ac_init_help"; then
1517 case $ac_init_help in
1518 short | recursive ) echo "Configuration of libXdamage 1.1.3:";;
1523 --disable-option-checking ignore unrecognized --enable/--with options
1524 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1525 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1526 --enable-maintainer-mode enable make rules and dependencies not useful
1527 (and sometimes confusing) to the casual installer
1528 --disable-dependency-tracking speeds up one-time build
1529 --enable-dependency-tracking do not reject slow dependency extractors
1530 --enable-strict-compilation
1531 Enable all warnings from compiler and make them
1532 errors (default: disabled)
1533 --enable-silent-rules less verbose build output (undo: `make V=1')
1534 --disable-silent-rules verbose build output (undo: `make V=0')
1535 --enable-shared[=PKGS] build shared libraries [default=yes]
1536 --enable-static[=PKGS] build static libraries [default=yes]
1537 --enable-fast-install[=PKGS]
1538 optimize for fast installation [default=yes]
1539 --disable-libtool-lock avoid locking (might break parallel builds)
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544 --with-pic try to use only PIC/non-PIC objects [default=use
1546 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1548 Some influential environment variables:
1549 CC C compiler command
1550 CFLAGS C compiler flags
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
1553 LIBS libraries to pass to the linker, e.g. -l<library>
1554 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
1557 PKG_CONFIG path to pkg-config utility
1559 C compiler flags for XDAMAGE, overriding pkg-config
1561 linker flags for XDAMAGE, overriding pkg-config
1563 Use these variables to override the choices made by `configure' or to help
1564 it to find libraries and programs with nonstandard names/locations.
1566 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1571 if test "$ac_init_help" = "recursive"; then
1572 # If there are subdirs, report their specific --help.
1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1574 test -d "$ac_dir" ||
1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583 # A ".." for each directory in $ac_dir_suffix.
1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585 case $ac_top_builddir_sub in
1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590 ac_abs_top_builddir=$ac_pwd
1591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir=$ac_top_build_prefix
1596 .) # We are building in place.
1598 ac_top_srcdir=$ac_top_builddir_sub
1599 ac_abs_top_srcdir=$ac_pwd ;;
1600 [\\/]* | ?:[\\/]* ) # Absolute name.
1601 ac_srcdir=$srcdir$ac_dir_suffix;
1602 ac_top_srcdir=$srcdir
1603 ac_abs_top_srcdir=$srcdir ;;
1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606 ac_top_srcdir=$ac_top_build_prefix$srcdir
1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611 cd "$ac_dir" || { ac_status=$?; continue; }
1612 # Check for guested configure.
1613 if test -f "$ac_srcdir/configure.gnu"; then
1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616 elif test -f "$ac_srcdir/configure"; then
1618 $SHELL "$ac_srcdir/configure" --help=recursive
1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622 cd "$ac_pwd" || { ac_status=$?; break; }
1626 test -n "$ac_init_help" && exit $ac_status
1627 if $ac_init_version; then
1629 libXdamage configure 1.1.3
1630 generated by GNU Autoconf 2.65
1632 Copyright (C) 2009 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it.
1639 ## ------------------------ ##
1640 ## Autoconf initialization. ##
1641 ## ------------------------ ##
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 as_fn_set_status $ac_retval
1679 } # ac_fn_c_try_compile
1681 # ac_fn_c_check_decl LINENO SYMBOL VAR
1682 # ------------------------------------
1683 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1684 ac_fn_c_check_decl ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1688 $as_echo_n "checking whether $2 is declared... " >&6; }
1689 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1690 $as_echo_n "(cached) " >&6
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1706 if ac_fn_c_try_compile "$LINENO"; then :
1711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 } # ac_fn_c_check_decl
1720 # ac_fn_c_try_cpp LINENO
1721 # ----------------------
1722 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_cpp conftest.$ac_ext"
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } >/dev/null && {
1742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1753 as_fn_set_status $ac_retval
1757 # ac_fn_c_try_run LINENO
1758 # ----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1760 # that executables *can* be run.
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_link"
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_link") 2>&5
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1775 { { case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_try") 2>&5
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; }; }; then :
1787 $as_echo "$as_me: program exited with status $ac_status" >&5
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1791 ac_retval=$ac_status
1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 as_fn_set_status $ac_retval
1799 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists and can be compiled using the include files in
1802 # INCLUDES, setting the cache variable VAR accordingly.
1803 ac_fn_c_check_header_compile ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 $as_echo_n "(cached) " >&6
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1816 if ac_fn_c_try_compile "$LINENO"; then :
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 } # ac_fn_c_check_header_compile
1830 # ac_fn_c_try_link LINENO
1831 # -----------------------
1832 # Try to link conftest.$ac_ext, and return whether this succeeded.
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 rm -f conftest.$ac_objext conftest$ac_exeext
1837 if { { ac_try="$ac_link"
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_link") 2>conftest.err
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } && {
1853 test -z "$ac_c_werror_flag" ||
1854 test ! -s conftest.err
1855 } && test -s conftest$ac_exeext && {
1856 test "$cross_compiling" = yes ||
1857 $as_test_x conftest$ac_exeext
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1866 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1867 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1868 # interfere with the next link command; also delete a directory that is
1869 # left behind by Apple's compiler. We do this before executing the actions.
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872 as_fn_set_status $ac_retval
1874 } # ac_fn_c_try_link
1876 # ac_fn_c_check_func LINENO FUNC VAR
1877 # ----------------------------------
1878 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1879 ac_fn_c_check_func ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1891 #define $2 innocuous_$2
1893 /* System header to define __stub macros and hopefully few prototypes,
1894 which can conflict with char $2 (); below.
1895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1896 <limits.h> exists even on freestanding compilers. */
1899 # include <limits.h>
1901 # include <assert.h>
1906 /* Override any GCC internal prototype to avoid an error.
1907 Use char because int might match the return type of a GCC
1908 builtin and then its argument prototype would still apply. */
1913 /* The GNU C library defines this for functions which it implements
1914 to always fail with ENOSYS. Some functions are actually named
1915 something starting with __ and the normal name is an alias. */
1916 #if defined __stub_$2 || defined __stub___$2
1928 if ac_fn_c_try_link "$LINENO"; then :
1933 rm -f core conftest.err conftest.$ac_objext \
1934 conftest$ac_exeext conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941 } # ac_fn_c_check_func
1942 cat >config.log <<_ACEOF
1943 This file contains any messages produced by compilers while
1944 running configure, to aid debugging if configure makes a mistake.
1946 It was created by libXdamage $as_me 1.1.3, which was
1947 generated by GNU Autoconf 2.65. Invocation command line was
1959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1971 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir=.
1983 $as_echo "PATH: $as_dir"
1999 # Keep a trace of the command line.
2000 # Strip out --no-create and --no-recursion so they do not pile up.
2001 # Strip out --silent because we don't want to record it for future runs.
2002 # Also quote any args containing shell meta-characters.
2003 # Make two passes to allow for proper duplicate-argument suppression.
2007 ac_must_keep_next=false
2013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2015 | -silent | --silent | --silen | --sile | --sil)
2018 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2021 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2023 as_fn_append ac_configure_args1 " '$ac_arg'"
2024 if test $ac_must_keep_next = true; then
2025 ac_must_keep_next=false # Got value, back to normal.
2028 *=* | --config-cache | -C | -disable-* | --disable-* \
2029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2031 | -with-* | --with-* | -without-* | --without-* | --x)
2032 case "$ac_configure_args0 " in
2033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2036 -* ) ac_must_keep_next=true ;;
2039 as_fn_append ac_configure_args " '$ac_arg'"
2044 { ac_configure_args0=; unset ac_configure_args0;}
2045 { ac_configure_args1=; unset ac_configure_args1;}
2047 # When interrupted or exit'd, cleanup temporary files, and complete
2048 # config.log. We remove comments because anyway the quotes in there
2049 # would cause problems or look ugly.
2050 # WARNING: Use '\'' to represent an apostrophe within the trap.
2051 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2052 trap 'exit_status=$?
2053 # Save into config.log some information that might help in debugging.
2058 ## ---------------- ##
2059 ## Cache variables. ##
2060 ## ---------------- ##
2063 # The following way of writing the cache mishandles newlines in values,
2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066 eval ac_val=\$$ac_var
2070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2074 _ | IFS | as_nl) ;; #(
2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076 *) { eval $ac_var=; unset $ac_var;} ;;
2081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082 *${as_nl}ac_space=\ *)
2084 "s/'\''/'\''\\\\'\'''\''/g;
2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2096 ## ----------------- ##
2097 ## Output variables. ##
2098 ## ----------------- ##
2101 for ac_var in $ac_subst_vars
2103 eval ac_val=\$$ac_var
2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 $as_echo "$ac_var='\''$ac_val'\''"
2111 if test -n "$ac_subst_files"; then
2113 ## ------------------- ##
2114 ## File substitutions. ##
2115 ## ------------------- ##
2118 for ac_var in $ac_subst_files
2120 eval ac_val=\$$ac_var
2122 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124 $as_echo "$ac_var='\''$ac_val'\''"
2129 if test -s confdefs.h; then
2139 test "$ac_signal" != 0 &&
2140 $as_echo "$as_me: caught signal $ac_signal"
2141 $as_echo "$as_me: exit $exit_status"
2143 rm -f core *.core core.conftest.* &&
2144 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2147 for ac_signal in 1 2 13 15; do
2148 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2153 rm -f -r conftest* confdefs.h
2155 $as_echo "/* confdefs.h */" > confdefs.h
2157 # Predefined preprocessor variables.
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_NAME "$PACKAGE_NAME"
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_STRING "$PACKAGE_STRING"
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_URL "$PACKAGE_URL"
2184 # Let the site file select an alternate cache file if it wants to.
2185 # Prefer an explicitly selected file to automatically selected ones.
2188 if test -n "$CONFIG_SITE"; then
2189 ac_site_file1=$CONFIG_SITE
2190 elif test "x$prefix" != xNONE; then
2191 ac_site_file1=$prefix/share/config.site
2192 ac_site_file2=$prefix/etc/config.site
2194 ac_site_file1=$ac_default_prefix/share/config.site
2195 ac_site_file2=$ac_default_prefix/etc/config.site
2197 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2199 test "x$ac_site_file" = xNONE && continue
2200 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2202 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2203 sed 's/^/| /' "$ac_site_file" >&5
2208 if test -r "$cache_file"; then
2209 # Some versions of bash will fail to source /dev/null (special files
2210 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2211 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2213 $as_echo "$as_me: loading cache $cache_file" >&6;}
2215 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2216 *) . "./$cache_file";;
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2221 $as_echo "$as_me: creating cache $cache_file" >&6;}
2225 # Check that the precious variables saved in the cache have kept the same
2227 ac_cache_corrupted=false
2228 for ac_var in $ac_precious_vars; do
2229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2230 eval ac_new_set=\$ac_env_${ac_var}_set
2231 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2232 eval ac_new_val=\$ac_env_${ac_var}_value
2233 case $ac_old_set,$ac_new_set in
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2236 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2237 ac_cache_corrupted=: ;;
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2240 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2241 ac_cache_corrupted=: ;;
2244 if test "x$ac_old_val" != "x$ac_new_val"; then
2245 # differences in whitespace do not lead to failure.
2246 ac_old_val_w=`echo x $ac_old_val`
2247 ac_new_val_w=`echo x $ac_new_val`
2248 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2250 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2251 ac_cache_corrupted=:
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2254 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2255 eval $ac_var=\$ac_old_val
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2258 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2260 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2263 # Pass precious variables to config.status.
2264 if test "$ac_new_set" = set; then
2266 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2267 *) ac_arg=$ac_var=$ac_new_val ;;
2269 case " $ac_configure_args " in
2270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2271 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2275 if $ac_cache_corrupted; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2279 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2280 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2282 ## -------------------- ##
2283 ## Main body of script. ##
2284 ## -------------------- ##
2287 ac_cpp='$CPP $CPPFLAGS'
2288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293 am__api_version='1.11'
2296 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2297 for ac_t in install-sh install.sh shtool; do
2298 if test -f "$ac_dir/$ac_t"; then
2300 ac_install_sh="$ac_aux_dir/$ac_t -c"
2305 if test -z "$ac_aux_dir"; then
2306 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2309 # These three variables are undocumented and unsupported,
2310 # and are intended to be withdrawn in a future Autoconf release.
2311 # They can cause serious problems if a builder's source tree is in a directory
2312 # whose full name contains unusual characters.
2313 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2314 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2315 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2318 # Find a good install program. We prefer a C program (faster),
2319 # so one script is as good as another. But avoid the broken or
2320 # incompatible versions:
2321 # SysV /etc/install, /usr/sbin/install
2322 # SunOS /usr/etc/install
2323 # IRIX /sbin/install
2325 # AmigaOS /C/install, which installs bootblocks on floppy discs
2326 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2327 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2328 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2329 # OS/2's system install, which has a completely different semantic
2330 # ./install, which can be erroneously created by make from ./install.sh.
2331 # Reject install programs that cannot install multiple files.
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2333 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2334 if test -z "$INSTALL"; then
2335 if test "${ac_cv_path_install+set}" = set; then :
2336 $as_echo_n "(cached) " >&6
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 test -z "$as_dir" && as_dir=.
2343 # Account for people who put trailing slashes in PATH elements.
2344 case $as_dir/ in #((
2345 ./ | .// | /[cC]/* | \
2346 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2347 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2350 # OSF1 and SCO ODT 3.0 have their own names for install.
2351 # Don't use installbsd from OSF since it installs stuff as root
2353 for ac_prog in ginstall scoinst install; do
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2356 if test $ac_prog = install &&
2357 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2358 # AIX install. It has an incompatible calling convention.
2360 elif test $ac_prog = install &&
2361 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2362 # program-specific install script used by HP pwplus--don't use.
2365 rm -rf conftest.one conftest.two conftest.dir
2366 echo one > conftest.one
2367 echo two > conftest.two
2369 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2370 test -s conftest.one && test -s conftest.two &&
2371 test -s conftest.dir/conftest.one &&
2372 test -s conftest.dir/conftest.two
2374 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2387 rm -rf conftest.one conftest.two conftest.dir
2390 if test "${ac_cv_path_install+set}" = set; then
2391 INSTALL=$ac_cv_path_install
2393 # As a last resort, use the slow shell script. Don't cache a
2394 # value for INSTALL within a source directory, because that will
2395 # break other packages using the cache if that directory is
2396 # removed, or if the value is a relative name.
2397 INSTALL=$ac_install_sh
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2401 $as_echo "$INSTALL" >&6; }
2403 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2404 # It thinks the first close brace ends the variable substitution.
2405 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2407 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2409 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2412 $as_echo_n "checking whether build environment is sane... " >&6; }
2415 echo timestamp > conftest.file
2416 # Reject unsafe characters in $srcdir or the absolute working directory
2417 # name. Accept space and tab only in the latter.
2421 *[\\\"\#\$\&\'\`$am_lf]*)
2422 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2425 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2426 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2429 # Do `set' in a subshell so we don't clobber the current shell's
2430 # arguments. Must try -L first in case configure is actually a
2431 # symlink; some systems play weird games with the mod time of symlinks
2432 # (eg FreeBSD returns the mod time of the symlink's containing
2435 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2436 if test "$*" = "X"; then
2438 set X `ls -t "$srcdir/configure" conftest.file`
2441 if test "$*" != "X $srcdir/configure conftest.file" \
2442 && test "$*" != "X conftest.file $srcdir/configure"; then
2444 # If neither matched, then we have a broken ls. This can happen
2445 # if, for instance, CONFIG_SHELL is bash and it inherits a
2446 # broken ls alias from the environment. This has actually
2447 # happened. Such a system could not be considered "sane".
2448 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2449 alias in your environment" "$LINENO" 5
2452 test "$2" = conftest.file
2458 as_fn_error "newly created file is older than distributed files!
2459 Check your system clock" "$LINENO" 5
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2462 $as_echo "yes" >&6; }
2463 test "$program_prefix" != NONE &&
2464 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2465 # Use a double $ so make ignores it.
2466 test "$program_suffix" != NONE &&
2467 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2468 # Double any \ or $.
2469 # By default was `s,x,x', remove it if useless.
2470 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2471 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2473 # expand $ac_aux_dir to an absolute path
2474 am_aux_dir=`cd $ac_aux_dir && pwd`
2476 if test x"${MISSING+set}" != xset; then
2479 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2481 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2484 # Use eval to expand $SHELL
2485 if eval "$MISSING --run true"; then
2486 am_missing_run="$MISSING --run "
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2490 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2493 if test x"${install_sh}" != xset; then
2496 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2498 install_sh="\${SHELL} $am_aux_dir/install-sh"
2502 # Installed binaries are usually stripped using `strip' when the user
2503 # run `make install-strip'. However `strip' might not be the right
2504 # tool to use in cross-compilation environments, therefore Automake
2505 # will honor the `STRIP' environment variable to overrule this program.
2506 if test "$cross_compiling" != no; then
2507 if test -n "$ac_tool_prefix"; then
2508 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2509 set dummy ${ac_tool_prefix}strip; ac_word=$2
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511 $as_echo_n "checking for $ac_word... " >&6; }
2512 if test "${ac_cv_prog_STRIP+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
2515 if test -n "$STRIP"; then
2516 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 STRIP=$ac_cv_prog_STRIP
2536 if test -n "$STRIP"; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2538 $as_echo "$STRIP" >&6; }
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541 $as_echo "no" >&6; }
2546 if test -z "$ac_cv_prog_STRIP"; then
2548 # Extract the first word of "strip", so it can be a program name with args.
2549 set dummy strip; ac_word=$2
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551 $as_echo_n "checking for $ac_word... " >&6; }
2552 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2553 $as_echo_n "(cached) " >&6
2555 if test -n "$ac_ct_STRIP"; then
2556 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2565 ac_cv_prog_ac_ct_STRIP="strip"
2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2576 if test -n "$ac_ct_STRIP"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2578 $as_echo "$ac_ct_STRIP" >&6; }
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581 $as_echo "no" >&6; }
2584 if test "x$ac_ct_STRIP" = x; then
2587 case $cross_compiling:$ac_tool_warned in
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2591 ac_tool_warned=yes ;;
2596 STRIP="$ac_cv_prog_STRIP"
2600 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2603 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2604 if test -z "$MKDIR_P"; then
2605 if test "${ac_cv_path_mkdir+set}" = set; then :
2606 $as_echo_n "(cached) " >&6
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2612 test -z "$as_dir" && as_dir=.
2613 for ac_prog in mkdir gmkdir; do
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2616 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2617 'mkdir (GNU coreutils) '* | \
2618 'mkdir (coreutils) '* | \
2619 'mkdir (fileutils) '4.1*)
2620 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2630 test -d ./--version && rmdir ./--version
2631 if test "${ac_cv_path_mkdir+set}" = set; then
2632 MKDIR_P="$ac_cv_path_mkdir -p"
2634 # As a last resort, use the slow shell script. Don't cache a
2635 # value for MKDIR_P within a source directory, because that will
2636 # break other packages using the cache if that directory is
2637 # removed, or if the value is a relative name.
2638 MKDIR_P="$ac_install_sh -d"
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2642 $as_echo "$MKDIR_P" >&6; }
2646 [\\/$]* | ?:[\\/]*) ;;
2647 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2650 for ac_prog in gawk mawk nawk awk
2652 # Extract the first word of "$ac_prog", so it can be a program name with args.
2653 set dummy $ac_prog; ac_word=$2
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if test "${ac_cv_prog_AWK+set}" = set; then :
2657 $as_echo_n "(cached) " >&6
2659 if test -n "$AWK"; then
2660 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669 ac_cv_prog_AWK="$ac_prog"
2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 if test -n "$AWK"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2682 $as_echo "$AWK" >&6; }
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2689 test -n "$AWK" && break
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2693 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2695 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2696 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2697 $as_echo_n "(cached) " >&6
2699 cat >conftest.make <<\_ACEOF
2702 @echo '@@@%%%=$(MAKE)=@@@%%%'
2704 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2705 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2707 eval ac_cv_prog_make_${ac_make}_set=yes;;
2709 eval ac_cv_prog_make_${ac_make}_set=no;;
2713 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2715 $as_echo "yes" >&6; }
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2720 SET_MAKE="MAKE=${MAKE-make}"
2723 rm -rf .tst 2>/dev/null
2724 mkdir .tst 2>/dev/null
2725 if test -d .tst; then
2730 rmdir .tst 2>/dev/null
2732 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2733 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2734 # is not polluted with repeated "-I."
2735 am__isrc=' -I$(srcdir)'
2736 # test to see if srcdir already configured
2737 if test -f $srcdir/config.status; then
2738 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2742 # test whether we have cygpath
2743 if test -z "$CYGPATH_W"; then
2744 if (cygpath --version) >/dev/null 2>/dev/null; then
2745 CYGPATH_W='cygpath -w'
2752 # Define the identity of the package.
2753 PACKAGE='libXdamage'
2757 cat >>confdefs.h <<_ACEOF
2758 #define PACKAGE "$PACKAGE"
2762 cat >>confdefs.h <<_ACEOF
2763 #define VERSION "$VERSION"
2766 # Some tools Automake needs.
2768 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2771 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2774 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2777 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2780 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2782 # We need awk for the "check" target. The system "awk" is bad on
2784 # Always define AMTAR for backward compatibility.
2786 AMTAR=${AMTAR-"${am_missing_run}tar"}
2788 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2796 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2797 # Check whether --enable-maintainer-mode was given.
2798 if test "${enable_maintainer_mode+set}" = set; then :
2799 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2801 USE_MAINTAINER_MODE=no
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2805 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2806 if test $USE_MAINTAINER_MODE = yes; then
2807 MAINTAINER_MODE_TRUE=
2808 MAINTAINER_MODE_FALSE='#'
2810 MAINTAINER_MODE_TRUE='#'
2811 MAINTAINER_MODE_FALSE=
2814 MAINT=$MAINTAINER_MODE_TRUE
2818 # Require xorg-macros: XORG_DEFAULT_OPTIONS
2830 DEPDIR="${am__leading_dot}deps"
2832 ac_config_commands="$ac_config_commands depfiles"
2835 am_make=${MAKE-make}
2836 cat > confinc << 'END'
2838 @echo this is the am__doit target
2841 # If we don't find an include directive, just comment out the code.
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2843 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2847 # First try GNU make style include.
2848 echo "include confinc" > confmf
2849 # Ignore all kinds of additional output from `make'.
2850 case `$am_make -s -f confmf 2> /dev/null` in #(
2851 *the\ am__doit\ target*)
2857 # Now try BSD make style include.
2858 if test "$am__include" = "#"; then
2859 echo '.include "confinc"' > confmf
2860 case `$am_make -s -f confmf 2> /dev/null` in #(
2861 *the\ am__doit\ target*)
2862 am__include=.include
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2871 $as_echo "$_am_result" >&6; }
2872 rm -f confinc confmf
2874 # Check whether --enable-dependency-tracking was given.
2875 if test "${enable_dependency_tracking+set}" = set; then :
2876 enableval=$enable_dependency_tracking;
2879 if test "x$enable_dependency_tracking" != xno; then
2880 am_depcomp="$ac_aux_dir/depcomp"
2883 if test "x$enable_dependency_tracking" != xno; then
2893 ac_cpp='$CPP $CPPFLAGS'
2894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2897 if test -n "$ac_tool_prefix"; then
2898 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2899 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if test "${ac_cv_prog_CC+set}" = set; then :
2903 $as_echo_n "(cached) " >&6
2905 if test -n "$CC"; then
2906 ac_cv_prog_CC="$CC" # Let the user override the test.
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 if test -n "$CC"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928 $as_echo "$CC" >&6; }
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2936 if test -z "$ac_cv_prog_CC"; then
2938 # Extract the first word of "gcc", so it can be a program name with args.
2939 set dummy gcc; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2943 $as_echo_n "(cached) " >&6
2945 if test -n "$ac_ct_CC"; then
2946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_ac_ct_CC="gcc"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2966 if test -n "$ac_ct_CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2968 $as_echo "$ac_ct_CC" >&6; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2974 if test "x$ac_ct_CC" = x; then
2977 case $cross_compiling:$ac_tool_warned in
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2981 ac_tool_warned=yes ;;
2989 if test -z "$CC"; then
2990 if test -n "$ac_tool_prefix"; then
2991 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2992 set dummy ${ac_tool_prefix}cc; ac_word=$2
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994 $as_echo_n "checking for $ac_word... " >&6; }
2995 if test "${ac_cv_prog_CC+set}" = set; then :
2996 $as_echo_n "(cached) " >&6
2998 if test -n "$CC"; then
2999 ac_cv_prog_CC="$CC" # Let the user override the test.
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008 ac_cv_prog_CC="${ac_tool_prefix}cc"
3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 if test -n "$CC"; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021 $as_echo "$CC" >&6; }
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3030 if test -z "$CC"; then
3031 # Extract the first word of "cc", so it can be a program name with args.
3032 set dummy cc; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if test "${ac_cv_prog_CC+set}" = set; then :
3036 $as_echo_n "(cached) " >&6
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3050 ac_prog_rejected=yes
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 if test $ac_prog_rejected = yes; then
3062 # We found a bogon in the path, so make sure we never use it.
3063 set dummy $ac_cv_prog_CC
3065 if test $# != 0; then
3066 # We chose a different compiler from the bogus one.
3067 # However, it has the same basename, so the bogon will be chosen
3068 # first if we set CC to just the basename; use the full file name.
3070 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3076 if test -n "$CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078 $as_echo "$CC" >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3086 if test -z "$CC"; then
3087 if test -n "$ac_tool_prefix"; then
3088 for ac_prog in cl.exe
3090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3091 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if test "${ac_cv_prog_CC+set}" = set; then :
3095 $as_echo_n "(cached) " >&6
3097 if test -n "$CC"; then
3098 ac_cv_prog_CC="$CC" # Let the user override the test.
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3107 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 if test -n "$CC"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3120 $as_echo "$CC" >&6; }
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3127 test -n "$CC" && break
3130 if test -z "$CC"; then
3132 for ac_prog in cl.exe
3134 # Extract the first word of "$ac_prog", so it can be a program name with args.
3135 set dummy $ac_prog; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3139 $as_echo_n "(cached) " >&6
3141 if test -n "$ac_ct_CC"; then
3142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 ac_cv_prog_ac_ct_CC="$ac_prog"
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3162 if test -n "$ac_ct_CC"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3164 $as_echo "$ac_ct_CC" >&6; }
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3171 test -n "$ac_ct_CC" && break
3174 if test "x$ac_ct_CC" = x; then
3177 case $cross_compiling:$ac_tool_warned in
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3181 ac_tool_warned=yes ;;
3190 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error "no acceptable C compiler found in \$PATH
3193 See \`config.log' for more details." "$LINENO" 5; }
3195 # Provide some information about the compiler.
3196 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3199 for ac_option in --version -v -V -qversion; do
3200 { { ac_try="$ac_compiler $ac_option >&5"
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3209 if test -s conftest.err; then
3211 ... rest of stderr output deleted ...
3212 10q' conftest.err >conftest.er1
3213 cat conftest.er1 >&5
3215 rm -f conftest.er1 conftest.err
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3231 ac_clean_files_save=$ac_clean_files
3232 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3233 # Try to create an executable without -o first, disregard a.out.
3234 # It will help us diagnose broken compilers, and finding out an intuition
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3237 $as_echo_n "checking whether the C compiler works... " >&6; }
3238 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3240 # The possible output files:
3241 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3244 for ac_file in $ac_files
3247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3248 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3253 if { { ac_try="$ac_link_default"
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259 $as_echo "$ac_try_echo"; } >&5
3260 (eval "$ac_link_default") 2>&5
3262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3263 test $ac_status = 0; }; then :
3264 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3265 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3266 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3267 # so that the user can short-circuit this test for compilers unknown to
3269 for ac_file in $ac_files ''
3271 test -f "$ac_file" || continue
3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3276 # We found the default executable, but exeext='' is most
3280 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3282 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3284 # We set ac_cv_exeext here because the later test for it is not
3285 # safe: cross compilers may not add the suffix if given an `-o'
3286 # argument, so we may need to know it at that point already.
3287 # Even if this section looks crufty: it has the advantage of
3294 test "$ac_cv_exeext" = no && ac_cv_exeext=
3299 if test -z "$ac_file"; then :
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302 $as_echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 { as_fn_set_status 77
3308 as_fn_error "C compiler cannot create executables
3309 See \`config.log' for more details." "$LINENO" 5; }; }
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3312 $as_echo "yes" >&6; }
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3315 $as_echo_n "checking for C compiler default output file name... " >&6; }
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3317 $as_echo "$ac_file" >&6; }
3318 ac_exeext=$ac_cv_exeext
3320 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3321 ac_clean_files=$ac_clean_files_save
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3323 $as_echo_n "checking for suffix of executables... " >&6; }
3324 if { { ac_try="$ac_link"
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330 $as_echo "$ac_try_echo"; } >&5
3331 (eval "$ac_link") 2>&5
3333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334 test $ac_status = 0; }; then :
3335 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3336 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3337 # work properly (i.e., refer to `conftest.exe'), while it won't with
3339 for ac_file in conftest.exe conftest conftest.*; do
3340 test -f "$ac_file" || continue
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3343 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351 as_fn_error "cannot compute suffix of executables: cannot compile and link
3352 See \`config.log' for more details." "$LINENO" 5; }
3354 rm -f conftest conftest$ac_cv_exeext
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3356 $as_echo "$ac_cv_exeext" >&6; }
3358 rm -f conftest.$ac_ext
3359 EXEEXT=$ac_cv_exeext
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3367 FILE *f = fopen ("conftest.out", "w");
3368 return ferror (f) || fclose (f) != 0;
3374 ac_clean_files="$ac_clean_files conftest.out"
3375 # Check that the compiler produces executables we can run. If not, either
3376 # the compiler is broken, or we cross compile.
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3378 $as_echo_n "checking whether we are cross compiling... " >&6; }
3379 if test "$cross_compiling" != yes; then
3380 { { ac_try="$ac_link"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_link") 2>&5
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }
3391 if { ac_try='./conftest$ac_cv_exeext'
3392 { { case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_try") 2>&5
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }; }; then
3404 if test "$cross_compiling" = maybe; then
3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409 as_fn_error "cannot run C compiled programs.
3410 If you meant to cross compile, use \`--host'.
3411 See \`config.log' for more details." "$LINENO" 5; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3416 $as_echo "$cross_compiling" >&6; }
3418 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3419 ac_clean_files=$ac_clean_files_save
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3421 $as_echo_n "checking for suffix of object files... " >&6; }
3422 if test "${ac_cv_objext+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3436 rm -f conftest.o conftest.obj
3437 if { { ac_try="$ac_compile"
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_compile") 2>&5
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; then :
3448 for ac_file in conftest.o conftest.obj conftest.*; do
3449 test -f "$ac_file" || continue;
3451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3452 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3457 $as_echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462 as_fn_error "cannot compute suffix of object files: cannot compile
3463 See \`config.log' for more details." "$LINENO" 5; }
3465 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3468 $as_echo "$ac_cv_objext" >&6; }
3469 OBJEXT=$ac_cv_objext
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3472 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3473 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3490 if ac_fn_c_try_compile "$LINENO"; then :
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3500 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3501 if test $ac_compiler_gnu = yes; then
3506 ac_test_CFLAGS=${CFLAGS+set}
3507 ac_save_CFLAGS=$CFLAGS
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3509 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3510 if test "${ac_cv_prog_cc_g+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3513 ac_save_c_werror_flag=$ac_c_werror_flag
3514 ac_c_werror_flag=yes
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3528 if ac_fn_c_try_compile "$LINENO"; then :
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3543 if ac_fn_c_try_compile "$LINENO"; then :
3546 ac_c_werror_flag=$ac_save_c_werror_flag
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3559 if ac_fn_c_try_compile "$LINENO"; then :
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 ac_c_werror_flag=$ac_save_c_werror_flag
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3570 $as_echo "$ac_cv_prog_cc_g" >&6; }
3571 if test "$ac_test_CFLAGS" = set; then
3572 CFLAGS=$ac_save_CFLAGS
3573 elif test $ac_cv_prog_cc_g = yes; then
3574 if test "$GCC" = yes; then
3580 if test "$GCC" = yes; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3587 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3588 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3591 ac_cv_prog_cc_c89=no
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3597 #include <sys/types.h>
3598 #include <sys/stat.h>
3599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3600 struct buf { int x; };
3601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3602 static char *e (p, i)
3608 static char *f (char * (*g) (char **, int), char **p, ...)
3613 s = g (p, va_arg (v,int));
3618 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3619 function prototypes and stuff, but not '\xHH' hex character constants.
3620 These don't provoke an error unfortunately, instead are silently treated
3621 as 'x'. The following induces an error, until -std is added to get
3622 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3623 array size at least. It's necessary to write '\x00'==0 to get something
3624 that's true only with -std. */
3625 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3627 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3628 inside strings and character constants. */
3630 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3632 int test (int i, double x);
3633 struct s1 {int (*f) (int a);};
3634 struct s2 {int (*f) (double a);};
3635 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3641 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3646 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3647 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3649 CC="$ac_save_CC $ac_arg"
3650 if ac_fn_c_try_compile "$LINENO"; then :
3651 ac_cv_prog_cc_c89=$ac_arg
3653 rm -f core conftest.err conftest.$ac_objext
3654 test "x$ac_cv_prog_cc_c89" != "xno" && break
3656 rm -f conftest.$ac_ext
3661 case "x$ac_cv_prog_cc_c89" in
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3664 $as_echo "none needed" >&6; } ;;
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3667 $as_echo "unsupported" >&6; } ;;
3669 CC="$CC $ac_cv_prog_cc_c89"
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3671 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3673 if test "x$ac_cv_prog_cc_c89" != xno; then :
3678 ac_cpp='$CPP $CPPFLAGS'
3679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683 depcc="$CC" am_compiler_list=
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3686 $as_echo_n "checking dependency style of $depcc... " >&6; }
3687 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3688 $as_echo_n "(cached) " >&6
3690 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3691 # We make a subdir and do the tests there. Otherwise we can end up
3692 # making bogus files that we don't know about and never remove. For
3693 # instance it was reported that on HP-UX the gcc test will end up
3694 # making a dummy file named `D' -- because `-MD' means `put the output
3697 # Copy depcomp to subdir because otherwise we won't find it if we're
3698 # using a relative directory.
3699 cp "$am_depcomp" conftest.dir
3701 # We will build objects and dependencies in a subdirectory because
3702 # it helps to detect inapplicable dependency modes. For instance
3703 # both Tru64's cc and ICC support -MD to output dependencies as a
3704 # side effect of compilation, but ICC will put the dependencies in
3705 # the current directory while Tru64 will put them in the object
3709 am_cv_CC_dependencies_compiler_type=none
3710 if test "$am_compiler_list" = ""; then
3711 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3714 case " $depcc " in #(
3715 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3718 for depmode in $am_compiler_list; do
3719 # Setup a source with many dependencies, because some compilers
3720 # like to wrap large dependency lists on column 80 (with \), and
3721 # we should not choose a depcomp mode which is confused by this.
3723 # We need to recreate these files for each test, as the compiler may
3724 # overwrite some of them when testing with obscure command lines.
3725 # This happens at least with the AIX C compiler.
3727 for i in 1 2 3 4 5 6; do
3728 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3729 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3730 # Solaris 8's {/usr,}/bin/sh.
3731 touch sub/conftst$i.h
3733 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3735 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3736 # mode. It turns out that the SunPro C++ compiler does not properly
3737 # handle `-M -o', and we need to detect this. Also, some Intel
3738 # versions had trouble with output in subdirs
3739 am__obj=sub/conftest.${OBJEXT-o}
3740 am__minus_obj="-o $am__obj"
3743 # This depmode causes a compiler race in universal mode.
3744 test "$am__universal" = false || continue
3747 # after this tag, mechanisms are not by side-effect, so they'll
3748 # only be used when explicitly requested
3749 if test "x$enable_dependency_tracking" = xyes; then
3755 msvisualcpp | msvcmsys)
3756 # This compiler won't grok `-c -o', but also, the minuso test has
3757 # not run yet. These depmodes are late enough in the game, and
3758 # so weak that their functioning should not be impacted.
3759 am__obj=conftest.${OBJEXT-o}
3764 if depmode=$depmode \
3765 source=sub/conftest.c object=$am__obj \
3766 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3767 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3768 >/dev/null 2>conftest.err &&
3769 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3770 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3771 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3772 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3773 # icc doesn't choke on unknown options, it will just issue warnings
3774 # or remarks (even with -Werror). So we grep stderr for any message
3775 # that says an option was ignored or not supported.
3776 # When given -MP, icc 7.0 and 7.1 complain thusly:
3777 # icc: Command line warning: ignoring option '-M'; no argument required
3778 # The diagnosis changed in icc 8.0:
3779 # icc: Command line remark: option '-MP' not supported
3780 if (grep 'ignoring option' conftest.err ||
3781 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3782 am_cv_CC_dependencies_compiler_type=$depmode
3791 am_cv_CC_dependencies_compiler_type=none
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3796 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3797 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3800 test "x$enable_dependency_tracking" != xno \
3801 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3803 am__fastdepCC_FALSE='#'
3805 am__fastdepCC_TRUE='#'
3806 am__fastdepCC_FALSE=
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3811 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3812 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3815 ac_cv_prog_cc_c99=no
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3820 #include <stdbool.h>
3825 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3826 #define debug(...) fprintf (stderr, __VA_ARGS__)
3827 #define showlist(...) puts (#__VA_ARGS__)
3828 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3830 test_varargs_macros (void)
3835 debug ("X = %d\n", x);
3836 showlist (The first, second, and third items.);
3837 report (x>y, "x is %d but y is %d", x, y);
3840 // Check long long types.
3841 #define BIG64 18446744073709551615ull
3842 #define BIG32 4294967295ul
3843 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3845 your preprocessor is broken;
3849 your preprocessor is broken;
3851 static long long int bignum = -9223372036854775807LL;
3852 static unsigned long long int ubignum = BIG64;
3854 struct incomplete_array
3862 const wchar_t *name;
3866 typedef const char *ccp;
3869 test_restrict (ccp restrict text)
3871 // See if C++-style comments work.
3872 // Iterate through items via the restricted pointer.
3873 // Also check for declarations in for loops.
3874 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3879 // Check varargs and va_copy.
3881 test_varargs (const char *format, ...)
3884 va_start (args, format);
3886 va_copy (args_copy, args);
3897 str = va_arg (args_copy, const char *);
3900 number = va_arg (args_copy, int);
3903 fnumber = va_arg (args_copy, double);
3918 _Bool success = false;
3921 if (test_restrict ("String literal") == 0)
3923 char *restrict newvar = "Another string";
3926 test_varargs ("s, d' f .", "string", 65, 34.234);
3927 test_varargs_macros ();
3929 // Check flexible array members.
3930 struct incomplete_array *ia =
3931 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3933 for (int i = 0; i < ia->datasize; ++i)
3934 ia->data[i] = i * 1.234;
3936 // Check named initializers.
3937 struct named_init ni = {
3939 .name = L"Test wide string",
3940 .average = 543.34343,
3945 int dynamic_array[ni.number];
3946 dynamic_array[ni.number - 1] = 543;
3948 // work around unused variable warnings
3949 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3950 || dynamic_array[ni.number - 1] != 543);
3956 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3958 CC="$ac_save_CC $ac_arg"
3959 if ac_fn_c_try_compile "$LINENO"; then :
3960 ac_cv_prog_cc_c99=$ac_arg
3962 rm -f core conftest.err conftest.$ac_objext
3963 test "x$ac_cv_prog_cc_c99" != "xno" && break
3965 rm -f conftest.$ac_ext
3970 case "x$ac_cv_prog_cc_c99" in
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3973 $as_echo "none needed" >&6; } ;;
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3976 $as_echo "unsupported" >&6; } ;;
3978 CC="$CC $ac_cv_prog_cc_c99"
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3980 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3982 if test "x$ac_cv_prog_cc_c99" != xno; then :
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3994 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3995 # On Suns, sometimes $CPP names a directory.
3996 if test -n "$CPP" && test -d "$CPP"; then
3999 if test -z "$CPP"; then
4000 if test "${ac_cv_prog_CPP+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4003 # Double quotes because CPP needs to be expanded
4004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4007 for ac_c_preproc_warn_flag in '' yes
4009 # Use a header file that comes with gcc, so configuring glibc
4010 # with a fresh cross-compiler works.
4011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4012 # <limits.h> exists even on freestanding compilers.
4013 # On the NeXT, cc -E runs the code through the compiler's parser,
4014 # not just through cpp. "Syntax error" is here to catch this case.
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4018 # include <limits.h>
4020 # include <assert.h>
4024 if ac_fn_c_try_cpp "$LINENO"; then :
4027 # Broken: fails on valid input.
4030 rm -f conftest.err conftest.$ac_ext
4032 # OK, works on sane cases. Now check whether nonexistent headers
4033 # can be detected and how.
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036 #include <ac_nonexistent.h>
4038 if ac_fn_c_try_cpp "$LINENO"; then :
4039 # Broken: success on invalid input.
4042 # Passes both tests.
4046 rm -f conftest.err conftest.$ac_ext
4049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4050 rm -f conftest.err conftest.$ac_ext
4051 if $ac_preproc_ok; then :
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4064 $as_echo "$CPP" >&6; }
4066 for ac_c_preproc_warn_flag in '' yes
4068 # Use a header file that comes with gcc, so configuring glibc
4069 # with a fresh cross-compiler works.
4070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4071 # <limits.h> exists even on freestanding compilers.
4072 # On the NeXT, cc -E runs the code through the compiler's parser,
4073 # not just through cpp. "Syntax error" is here to catch this case.
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4077 # include <limits.h>
4079 # include <assert.h>
4083 if ac_fn_c_try_cpp "$LINENO"; then :
4086 # Broken: fails on valid input.
4089 rm -f conftest.err conftest.$ac_ext
4091 # OK, works on sane cases. Now check whether nonexistent headers
4092 # can be detected and how.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #include <ac_nonexistent.h>
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4098 # Broken: success on invalid input.
4101 # Passes both tests.
4105 rm -f conftest.err conftest.$ac_ext
4108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4109 rm -f conftest.err conftest.$ac_ext
4110 if $ac_preproc_ok; then :
4113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4115 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4116 See \`config.log' for more details." "$LINENO" 5; }
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4127 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4128 if test "${ac_cv_path_GREP+set}" = set; then :
4129 $as_echo_n "(cached) " >&6
4131 if test -z "$GREP"; then
4132 ac_path_GREP_found=false
4133 # Loop through the user's path and test for each of PROGNAME-LIST
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4138 test -z "$as_dir" && as_dir=.
4139 for ac_prog in grep ggrep; do
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4142 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4143 # Check for GNU ac_path_GREP and select it if it is found.
4144 # Check for GNU $ac_path_GREP
4145 case `"$ac_path_GREP" --version 2>&1` in
4147 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4150 $as_echo_n 0123456789 >"conftest.in"
4153 cat "conftest.in" "conftest.in" >"conftest.tmp"
4154 mv "conftest.tmp" "conftest.in"
4155 cp "conftest.in" "conftest.nl"
4156 $as_echo 'GREP' >> "conftest.nl"
4157 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4159 as_fn_arith $ac_count + 1 && ac_count=$as_val
4160 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4161 # Best one so far, save it but keep looking for a better one
4162 ac_cv_path_GREP="$ac_path_GREP"
4163 ac_path_GREP_max=$ac_count
4165 # 10*(2^10) chars as input seems more than enough
4166 test $ac_count -gt 10 && break
4168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171 $ac_path_GREP_found && break 3
4176 if test -z "$ac_cv_path_GREP"; then
4177 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4180 ac_cv_path_GREP=$GREP
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4185 $as_echo "$ac_cv_path_GREP" >&6; }
4186 GREP="$ac_cv_path_GREP"
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4190 $as_echo_n "checking for egrep... " >&6; }
4191 if test "${ac_cv_path_EGREP+set}" = set; then :
4192 $as_echo_n "(cached) " >&6
4194 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4195 then ac_cv_path_EGREP="$GREP -E"
4197 if test -z "$EGREP"; then
4198 ac_path_EGREP_found=false
4199 # Loop through the user's path and test for each of PROGNAME-LIST
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4204 test -z "$as_dir" && as_dir=.
4205 for ac_prog in egrep; do
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4208 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4209 # Check for GNU ac_path_EGREP and select it if it is found.
4210 # Check for GNU $ac_path_EGREP
4211 case `"$ac_path_EGREP" --version 2>&1` in
4213 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4216 $as_echo_n 0123456789 >"conftest.in"
4219 cat "conftest.in" "conftest.in" >"conftest.tmp"
4220 mv "conftest.tmp" "conftest.in"
4221 cp "conftest.in" "conftest.nl"
4222 $as_echo 'EGREP' >> "conftest.nl"
4223 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4225 as_fn_arith $ac_count + 1 && ac_count=$as_val
4226 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4227 # Best one so far, save it but keep looking for a better one
4228 ac_cv_path_EGREP="$ac_path_EGREP"
4229 ac_path_EGREP_max=$ac_count
4231 # 10*(2^10) chars as input seems more than enough
4232 test $ac_count -gt 10 && break
4234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4237 $ac_path_EGREP_found && break 3
4242 if test -z "$ac_cv_path_EGREP"; then
4243 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4246 ac_cv_path_EGREP=$EGREP
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4252 $as_echo "$ac_cv_path_EGREP" >&6; }
4253 EGREP="$ac_cv_path_EGREP"
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4257 $as_echo_n "checking for ANSI C header files... " >&6; }
4258 if test "${ac_cv_header_stdc+set}" = set; then :
4259 $as_echo_n "(cached) " >&6
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4276 if ac_fn_c_try_compile "$LINENO"; then :
4277 ac_cv_header_stdc=yes
4279 ac_cv_header_stdc=no
4281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 if test $ac_cv_header_stdc = yes; then
4284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4291 $EGREP "memchr" >/dev/null 2>&1; then :
4294 ac_cv_header_stdc=no
4300 if test $ac_cv_header_stdc = yes; then
4301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308 $EGREP "free" >/dev/null 2>&1; then :
4311 ac_cv_header_stdc=no
4317 if test $ac_cv_header_stdc = yes; then
4318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4319 if test "$cross_compiling" = yes; then :
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4326 #if ((' ' & 0x0FF) == 0x020)
4327 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4328 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4330 # define ISLOWER(c) \
4331 (('a' <= (c) && (c) <= 'i') \
4332 || ('j' <= (c) && (c) <= 'r') \
4333 || ('s' <= (c) && (c) <= 'z'))
4334 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4342 for (i = 0; i < 256; i++)
4343 if (XOR (islower (i), ISLOWER (i))
4344 || toupper (i) != TOUPPER (i))
4349 if ac_fn_c_try_run "$LINENO"; then :
4352 ac_cv_header_stdc=no
4354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4355 conftest.$ac_objext conftest.beam conftest.$ac_ext
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4361 $as_echo "$ac_cv_header_stdc" >&6; }
4362 if test $ac_cv_header_stdc = yes; then
4364 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4368 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4369 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4370 inttypes.h stdint.h unistd.h
4372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4373 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4375 eval as_val=\$$as_ac_Header
4376 if test "x$as_val" = x""yes; then :
4377 cat >>confdefs.h <<_ACEOF
4378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4388 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4389 if test -n "$ac_tool_prefix"; then
4390 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4391 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4393 $as_echo_n "checking for $ac_word... " >&6; }
4394 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4395 $as_echo_n "(cached) " >&6
4399 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4409 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4421 if test -n "$PKG_CONFIG"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4423 $as_echo "$PKG_CONFIG" >&6; }
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4431 if test -z "$ac_cv_path_PKG_CONFIG"; then
4432 ac_pt_PKG_CONFIG=$PKG_CONFIG
4433 # Extract the first word of "pkg-config", so it can be a program name with args.
4434 set dummy pkg-config; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4440 case $ac_pt_PKG_CONFIG in
4442 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4464 if test -n "$ac_pt_PKG_CONFIG"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4466 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 $as_echo "no" >&6; }
4472 if test "x$ac_pt_PKG_CONFIG" = x; then
4475 case $cross_compiling:$ac_tool_warned in
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4479 ac_tool_warned=yes ;;
4481 PKG_CONFIG=$ac_pt_PKG_CONFIG
4484 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4488 if test -n "$PKG_CONFIG"; then
4489 _pkg_min_version=0.9.0
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4491 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4492 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4494 $as_echo "yes" >&6; }
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4502 # Make sure we can run config.sub.
4503 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4504 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4507 $as_echo_n "checking build system type... " >&6; }
4508 if test "${ac_cv_build+set}" = set; then :
4509 $as_echo_n "(cached) " >&6
4511 ac_build_alias=$build_alias
4512 test "x$ac_build_alias" = x &&
4513 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4514 test "x$ac_build_alias" = x &&
4515 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4516 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4517 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4521 $as_echo "$ac_cv_build" >&6; }
4522 case $ac_cv_build in
4524 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4527 ac_save_IFS=$IFS; IFS='-'
4533 # Remember, the first character of IFS is used to create $*,
4534 # except with old shells:
4537 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4541 $as_echo_n "checking host system type... " >&6; }
4542 if test "${ac_cv_host+set}" = set; then :
4543 $as_echo_n "(cached) " >&6
4545 if test "x$host_alias" = x; then
4546 ac_cv_host=$ac_cv_build
4548 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4549 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4554 $as_echo "$ac_cv_host" >&6; }
4557 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4560 ac_save_IFS=$IFS; IFS='-'
4566 # Remember, the first character of IFS is used to create $*,
4567 # except with old shells:
4570 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4574 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4575 if test "${ac_cv_path_SED+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
4578 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4579 for ac_i in 1 2 3 4 5 6 7; do
4580 ac_script="$ac_script$as_nl$ac_script"
4582 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4583 { ac_script=; unset ac_script;}
4584 if test -z "$SED"; then
4585 ac_path_SED_found=false
4586 # Loop through the user's path and test for each of PROGNAME-LIST
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 test -z "$as_dir" && as_dir=.
4592 for ac_prog in sed gsed; do
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4595 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4596 # Check for GNU ac_path_SED and select it if it is found.
4597 # Check for GNU $ac_path_SED
4598 case `"$ac_path_SED" --version 2>&1` in
4600 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4603 $as_echo_n 0123456789 >"conftest.in"
4606 cat "conftest.in" "conftest.in" >"conftest.tmp"
4607 mv "conftest.tmp" "conftest.in"
4608 cp "conftest.in" "conftest.nl"
4609 $as_echo '' >> "conftest.nl"
4610 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4612 as_fn_arith $ac_count + 1 && ac_count=$as_val
4613 if test $ac_count -gt ${ac_path_SED_max-0}; then
4614 # Best one so far, save it but keep looking for a better one
4615 ac_cv_path_SED="$ac_path_SED"
4616 ac_path_SED_max=$ac_count
4618 # 10*(2^10) chars as input seems more than enough
4619 test $ac_count -gt 10 && break
4621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4624 $ac_path_SED_found && break 3
4629 if test -z "$ac_cv_path_SED"; then
4630 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4638 $as_echo "$ac_cv_path_SED" >&6; }
4639 SED="$ac_cv_path_SED"
4646 if test "x$GCC" = xyes ; then
4647 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4648 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4649 -Wbad-function-cast -Wformat=2"
4650 case `$CC -dumpversion` in
4652 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4656 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4657 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4663 if test "x$SUNCC" = "xyes"; then
4670 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4674 # Check whether --enable-strict-compilation was given.
4675 if test "${enable_strict_compilation+set}" = set; then :
4676 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4681 if test "x$STRICT_COMPILE" = "xyes"; then
4682 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4683 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4689 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4690 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4696 if test "x$GCC" = xyes ; then
4697 STRICT_CFLAGS="-pedantic -Werror"
4698 elif test "x$SUNCC" = "xyes"; then
4699 STRICT_CFLAGS="-errwarn"
4700 elif test "x$INTELCC" = "xyes"; then
4701 STRICT_CFLAGS="-Werror"
4704 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4709 cat >>confdefs.h <<_ACEOF
4710 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4713 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4714 if test "x$PVM" = "x"; then
4718 cat >>confdefs.h <<_ACEOF
4719 #define PACKAGE_VERSION_MINOR $PVM
4722 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4723 if test "x$PVP" = "x"; then
4727 cat >>confdefs.h <<_ACEOF
4728 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4733 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4734 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4735 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4736 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4741 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4742 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4743 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4744 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4745 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4752 if test x$APP_MAN_SUFFIX = x ; then
4755 if test x$APP_MAN_DIR = x ; then
4756 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4759 if test x$LIB_MAN_SUFFIX = x ; then
4762 if test x$LIB_MAN_DIR = x ; then
4763 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4766 if test x$FILE_MAN_SUFFIX = x ; then
4768 solaris*) FILE_MAN_SUFFIX=4 ;;
4769 *) FILE_MAN_SUFFIX=5 ;;
4772 if test x$FILE_MAN_DIR = x ; then
4773 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4776 if test x$MISC_MAN_SUFFIX = x ; then
4778 solaris*) MISC_MAN_SUFFIX=5 ;;
4779 *) MISC_MAN_SUFFIX=7 ;;
4782 if test x$MISC_MAN_DIR = x ; then
4783 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4786 if test x$DRIVER_MAN_SUFFIX = x ; then
4788 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4789 *) DRIVER_MAN_SUFFIX=4 ;;
4792 if test x$DRIVER_MAN_DIR = x ; then
4793 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4796 if test x$ADMIN_MAN_SUFFIX = x ; then
4798 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4799 *) ADMIN_MAN_SUFFIX=8 ;;
4802 if test x$ADMIN_MAN_DIR = x ; then
4803 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4820 XORG_MAN_PAGE="X Version 11"
4823 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4824 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4825 -e 's|__xservername__|Xorg|g' \
4826 -e 's|__xconfigfile__|xorg.conf|g' \
4827 -e 's|__projectroot__|\$(prefix)|g' \
4828 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4829 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4830 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4831 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4832 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4833 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4837 # Check whether --enable-silent-rules was given.
4838 if test "${enable_silent_rules+set}" = set; then :
4839 enableval=$enable_silent_rules;
4842 case $enable_silent_rules in
4843 yes) AM_DEFAULT_VERBOSITY=0;;
4844 no) AM_DEFAULT_VERBOSITY=1;;
4845 *) AM_DEFAULT_VERBOSITY=0;;
4850 ac_config_headers="$ac_config_headers config.h"
4855 ac_cpp='$CPP $CPPFLAGS'
4856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859 if test -n "$ac_tool_prefix"; then
4860 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4861 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if test "${ac_cv_prog_CC+set}" = set; then :
4865 $as_echo_n "(cached) " >&6
4867 if test -n "$CC"; then
4868 ac_cv_prog_CC="$CC" # Let the user override the test.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 if test -n "$CC"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4890 $as_echo "$CC" >&6; }
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4898 if test -z "$ac_cv_prog_CC"; then
4900 # Extract the first word of "gcc", so it can be a program name with args.
4901 set dummy gcc; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4905 $as_echo_n "(cached) " >&6
4907 if test -n "$ac_ct_CC"; then
4908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_prog_ac_ct_CC="gcc"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4928 if test -n "$ac_ct_CC"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4930 $as_echo "$ac_ct_CC" >&6; }
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4936 if test "x$ac_ct_CC" = x; then
4939 case $cross_compiling:$ac_tool_warned in
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943 ac_tool_warned=yes ;;
4951 if test -z "$CC"; then
4952 if test -n "$ac_tool_prefix"; then
4953 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4954 set dummy ${ac_tool_prefix}cc; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if test "${ac_cv_prog_CC+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
4960 if test -n "$CC"; then
4961 ac_cv_prog_CC="$CC" # Let the user override the test.
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970 ac_cv_prog_CC="${ac_tool_prefix}cc"
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 if test -n "$CC"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4983 $as_echo "$CC" >&6; }
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4992 if test -z "$CC"; then
4993 # Extract the first word of "cc", so it can be a program name with args.
4994 set dummy cc; ac_word=$2
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if test "${ac_cv_prog_CC+set}" = set; then :
4998 $as_echo_n "(cached) " >&6
5000 if test -n "$CC"; then
5001 ac_cv_prog_CC="$CC" # Let the user override the test.
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5012 ac_prog_rejected=yes
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 if test $ac_prog_rejected = yes; then
5024 # We found a bogon in the path, so make sure we never use it.
5025 set dummy $ac_cv_prog_CC
5027 if test $# != 0; then
5028 # We chose a different compiler from the bogus one.
5029 # However, it has the same basename, so the bogon will be chosen
5030 # first if we set CC to just the basename; use the full file name.
5032 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5038 if test -n "$CC"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5040 $as_echo "$CC" >&6; }
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5048 if test -z "$CC"; then
5049 if test -n "$ac_tool_prefix"; then
5050 for ac_prog in cl.exe
5052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if test "${ac_cv_prog_CC+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5059 if test -n "$CC"; then
5060 ac_cv_prog_CC="$CC" # Let the user override the test.
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 if test -n "$CC"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5082 $as_echo "$CC" >&6; }
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5089 test -n "$CC" && break
5092 if test -z "$CC"; then
5094 for ac_prog in cl.exe
5096 # Extract the first word of "$ac_prog", so it can be a program name with args.
5097 set dummy $ac_prog; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5101 $as_echo_n "(cached) " >&6
5103 if test -n "$ac_ct_CC"; then
5104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_prog_ac_ct_CC="$ac_prog"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5124 if test -n "$ac_ct_CC"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5126 $as_echo "$ac_ct_CC" >&6; }
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5133 test -n "$ac_ct_CC" && break
5136 if test "x$ac_ct_CC" = x; then
5139 case $cross_compiling:$ac_tool_warned in
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5143 ac_tool_warned=yes ;;
5152 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5154 as_fn_error "no acceptable C compiler found in \$PATH
5155 See \`config.log' for more details." "$LINENO" 5; }
5157 # Provide some information about the compiler.
5158 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5161 for ac_option in --version -v -V -qversion; do
5162 { { ac_try="$ac_compiler $ac_option >&5"
5164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165 *) ac_try_echo=$ac_try;;
5167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5168 $as_echo "$ac_try_echo"; } >&5
5169 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5171 if test -s conftest.err; then
5173 ... rest of stderr output deleted ...
5174 10q' conftest.err >conftest.er1
5175 cat conftest.er1 >&5
5177 rm -f conftest.er1 conftest.err
5178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5179 test $ac_status = 0; }
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5183 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5184 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5185 $as_echo_n "(cached) " >&6
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5201 if ac_fn_c_try_compile "$LINENO"; then :
5206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5211 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5212 if test $ac_compiler_gnu = yes; then
5217 ac_test_CFLAGS=${CFLAGS+set}
5218 ac_save_CFLAGS=$CFLAGS
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5220 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5221 if test "${ac_cv_prog_cc_g+set}" = set; then :
5222 $as_echo_n "(cached) " >&6
5224 ac_save_c_werror_flag=$ac_c_werror_flag
5225 ac_c_werror_flag=yes
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5239 if ac_fn_c_try_compile "$LINENO"; then :
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5254 if ac_fn_c_try_compile "$LINENO"; then :
5257 ac_c_werror_flag=$ac_save_c_werror_flag
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5270 if ac_fn_c_try_compile "$LINENO"; then :
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 ac_c_werror_flag=$ac_save_c_werror_flag
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5281 $as_echo "$ac_cv_prog_cc_g" >&6; }
5282 if test "$ac_test_CFLAGS" = set; then
5283 CFLAGS=$ac_save_CFLAGS
5284 elif test $ac_cv_prog_cc_g = yes; then
5285 if test "$GCC" = yes; then
5291 if test "$GCC" = yes; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5298 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5299 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5300 $as_echo_n "(cached) " >&6
5302 ac_cv_prog_cc_c89=no
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5308 #include <sys/types.h>
5309 #include <sys/stat.h>
5310 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5311 struct buf { int x; };
5312 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5313 static char *e (p, i)
5319 static char *f (char * (*g) (char **, int), char **p, ...)
5324 s = g (p, va_arg (v,int));
5329 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5330 function prototypes and stuff, but not '\xHH' hex character constants.
5331 These don't provoke an error unfortunately, instead are silently treated
5332 as 'x'. The following induces an error, until -std is added to get
5333 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5334 array size at least. It's necessary to write '\x00'==0 to get something
5335 that's true only with -std. */
5336 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5338 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5339 inside strings and character constants. */
5341 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5343 int test (int i, double x);
5344 struct s1 {int (*f) (int a);};
5345 struct s2 {int (*f) (double a);};
5346 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5352 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5357 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5358 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5360 CC="$ac_save_CC $ac_arg"
5361 if ac_fn_c_try_compile "$LINENO"; then :
5362 ac_cv_prog_cc_c89=$ac_arg
5364 rm -f core conftest.err conftest.$ac_objext
5365 test "x$ac_cv_prog_cc_c89" != "xno" && break
5367 rm -f conftest.$ac_ext
5372 case "x$ac_cv_prog_cc_c89" in
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5375 $as_echo "none needed" >&6; } ;;
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5378 $as_echo "unsupported" >&6; } ;;
5380 CC="$CC $ac_cv_prog_cc_c89"
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5382 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5384 if test "x$ac_cv_prog_cc_c89" != xno; then :
5389 ac_cpp='$CPP $CPPFLAGS'
5390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5394 depcc="$CC" am_compiler_list=
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5397 $as_echo_n "checking dependency style of $depcc... " >&6; }
5398 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5401 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5402 # We make a subdir and do the tests there. Otherwise we can end up
5403 # making bogus files that we don't know about and never remove. For
5404 # instance it was reported that on HP-UX the gcc test will end up
5405 # making a dummy file named `D' -- because `-MD' means `put the output
5408 # Copy depcomp to subdir because otherwise we won't find it if we're
5409 # using a relative directory.
5410 cp "$am_depcomp" conftest.dir
5412 # We will build objects and dependencies in a subdirectory because
5413 # it helps to detect inapplicable dependency modes. For instance
5414 # both Tru64's cc and ICC support -MD to output dependencies as a
5415 # side effect of compilation, but ICC will put the dependencies in
5416 # the current directory while Tru64 will put them in the object
5420 am_cv_CC_dependencies_compiler_type=none
5421 if test "$am_compiler_list" = ""; then
5422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5425 case " $depcc " in #(
5426 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5429 for depmode in $am_compiler_list; do
5430 # Setup a source with many dependencies, because some compilers
5431 # like to wrap large dependency lists on column 80 (with \), and
5432 # we should not choose a depcomp mode which is confused by this.
5434 # We need to recreate these files for each test, as the compiler may
5435 # overwrite some of them when testing with obscure command lines.
5436 # This happens at least with the AIX C compiler.
5438 for i in 1 2 3 4 5 6; do
5439 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5440 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5441 # Solaris 8's {/usr,}/bin/sh.
5442 touch sub/conftst$i.h
5444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5446 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5447 # mode. It turns out that the SunPro C++ compiler does not properly
5448 # handle `-M -o', and we need to detect this. Also, some Intel
5449 # versions had trouble with output in subdirs
5450 am__obj=sub/conftest.${OBJEXT-o}
5451 am__minus_obj="-o $am__obj"
5454 # This depmode causes a compiler race in universal mode.
5455 test "$am__universal" = false || continue
5458 # after this tag, mechanisms are not by side-effect, so they'll
5459 # only be used when explicitly requested
5460 if test "x$enable_dependency_tracking" = xyes; then
5466 msvisualcpp | msvcmsys)
5467 # This compiler won't grok `-c -o', but also, the minuso test has
5468 # not run yet. These depmodes are late enough in the game, and
5469 # so weak that their functioning should not be impacted.
5470 am__obj=conftest.${OBJEXT-o}
5475 if depmode=$depmode \
5476 source=sub/conftest.c object=$am__obj \
5477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5478 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5479 >/dev/null 2>conftest.err &&
5480 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5482 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5484 # icc doesn't choke on unknown options, it will just issue warnings
5485 # or remarks (even with -Werror). So we grep stderr for any message
5486 # that says an option was ignored or not supported.
5487 # When given -MP, icc 7.0 and 7.1 complain thusly:
5488 # icc: Command line warning: ignoring option '-M'; no argument required
5489 # The diagnosis changed in icc 8.0:
5490 # icc: Command line remark: option '-MP' not supported
5491 if (grep 'ignoring option' conftest.err ||
5492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5493 am_cv_CC_dependencies_compiler_type=$depmode
5502 am_cv_CC_dependencies_compiler_type=none
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5507 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5508 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5511 test "x$enable_dependency_tracking" != xno \
5512 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5514 am__fastdepCC_FALSE='#'
5516 am__fastdepCC_TRUE='#'
5517 am__fastdepCC_FALSE=
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5524 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5529 macro_version='2.2.6b'
5530 macro_revision='1.3017'
5544 ltmain="$ac_aux_dir/ltmain.sh"
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5547 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5548 if test "${ac_cv_path_SED+set}" = set; then :
5549 $as_echo_n "(cached) " >&6
5551 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5552 for ac_i in 1 2 3 4 5 6 7; do
5553 ac_script="$ac_script$as_nl$ac_script"
5555 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5556 { ac_script=; unset ac_script;}
5557 if test -z "$SED"; then
5558 ac_path_SED_found=false
5559 # Loop through the user's path and test for each of PROGNAME-LIST
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 test -z "$as_dir" && as_dir=.
5565 for ac_prog in sed gsed; do
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5568 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5569 # Check for GNU ac_path_SED and select it if it is found.
5570 # Check for GNU $ac_path_SED
5571 case `"$ac_path_SED" --version 2>&1` in
5573 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5576 $as_echo_n 0123456789 >"conftest.in"
5579 cat "conftest.in" "conftest.in" >"conftest.tmp"
5580 mv "conftest.tmp" "conftest.in"
5581 cp "conftest.in" "conftest.nl"
5582 $as_echo '' >> "conftest.nl"
5583 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5585 as_fn_arith $ac_count + 1 && ac_count=$as_val
5586 if test $ac_count -gt ${ac_path_SED_max-0}; then
5587 # Best one so far, save it but keep looking for a better one
5588 ac_cv_path_SED="$ac_path_SED"
5589 ac_path_SED_max=$ac_count
5591 # 10*(2^10) chars as input seems more than enough
5592 test $ac_count -gt 10 && break
5594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5597 $ac_path_SED_found && break 3
5602 if test -z "$ac_cv_path_SED"; then
5603 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5611 $as_echo "$ac_cv_path_SED" >&6; }
5612 SED="$ac_cv_path_SED"
5615 test -z "$SED" && SED=sed
5616 Xsed="$SED -e 1s/^X//"
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5629 $as_echo_n "checking for fgrep... " >&6; }
5630 if test "${ac_cv_path_FGREP+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5633 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5634 then ac_cv_path_FGREP="$GREP -F"
5636 if test -z "$FGREP"; then
5637 ac_path_FGREP_found=false
5638 # Loop through the user's path and test for each of PROGNAME-LIST
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5643 test -z "$as_dir" && as_dir=.
5644 for ac_prog in fgrep; do
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5647 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5648 # Check for GNU ac_path_FGREP and select it if it is found.
5649 # Check for GNU $ac_path_FGREP
5650 case `"$ac_path_FGREP" --version 2>&1` in
5652 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5655 $as_echo_n 0123456789 >"conftest.in"
5658 cat "conftest.in" "conftest.in" >"conftest.tmp"
5659 mv "conftest.tmp" "conftest.in"
5660 cp "conftest.in" "conftest.nl"
5661 $as_echo 'FGREP' >> "conftest.nl"
5662 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5664 as_fn_arith $ac_count + 1 && ac_count=$as_val
5665 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5666 # Best one so far, save it but keep looking for a better one
5667 ac_cv_path_FGREP="$ac_path_FGREP"
5668 ac_path_FGREP_max=$ac_count
5670 # 10*(2^10) chars as input seems more than enough
5671 test $ac_count -gt 10 && break
5673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5676 $ac_path_FGREP_found && break 3
5681 if test -z "$ac_cv_path_FGREP"; then
5682 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5685 ac_cv_path_FGREP=$FGREP
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5691 $as_echo "$ac_cv_path_FGREP" >&6; }
5692 FGREP="$ac_cv_path_FGREP"
5695 test -z "$GREP" && GREP=grep
5715 # Check whether --with-gnu-ld was given.
5716 if test "${with_gnu_ld+set}" = set; then :
5717 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5723 if test "$GCC" = yes; then
5724 # Check if gcc -print-prog-name=ld gives a path.
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5726 $as_echo_n "checking for ld used by $CC... " >&6; }
5729 # gcc leaves a trailing carriage return which upsets mingw
5730 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5732 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5735 # Accept absolute paths.
5737 re_direlt='/[^/][^/]*/\.\./'
5738 # Canonicalize the pathname of ld
5739 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5740 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5741 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5743 test -z "$LD" && LD="$ac_prog"
5746 # If it fails, then pretend we aren't using GCC.
5750 # If it is relative, then search for the first ld in PATH.
5754 elif test "$with_gnu_ld" = yes; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5756 $as_echo_n "checking for GNU ld... " >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5759 $as_echo_n "checking for non-GNU ld... " >&6; }
5761 if test "${lt_cv_path_LD+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5764 if test -z "$LD"; then
5765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5766 for ac_dir in $PATH; do
5768 test -z "$ac_dir" && ac_dir=.
5769 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5770 lt_cv_path_LD="$ac_dir/$ac_prog"
5771 # Check to see if the program is GNU ld. I'd rather use --version,
5772 # but apparently some variants of GNU ld only accept -v.
5773 # Break only if it was the GNU/non-GNU ld that we prefer.
5774 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5775 *GNU* | *'with BFD'*)
5776 test "$with_gnu_ld" != no && break
5779 test "$with_gnu_ld" != yes && break
5786 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5791 if test -n "$LD"; then
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5793 $as_echo "$LD" >&6; }
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5798 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5800 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5801 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5804 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5805 case `$LD -v 2>&1 </dev/null` in
5806 *GNU* | *'with BFD'*)
5807 lt_cv_prog_gnu_ld=yes
5810 lt_cv_prog_gnu_ld=no
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5815 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5816 with_gnu_ld=$lt_cv_prog_gnu_ld
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5827 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5828 if test "${lt_cv_path_NM+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5831 if test -n "$NM"; then
5832 # Let the user override the test.
5835 lt_nm_to_check="${ac_tool_prefix}nm"
5836 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5837 lt_nm_to_check="$lt_nm_to_check nm"
5839 for lt_tmp_nm in $lt_nm_to_check; do
5840 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5841 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5843 test -z "$ac_dir" && ac_dir=.
5844 tmp_nm="$ac_dir/$lt_tmp_nm"
5845 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5846 # Check to see if the nm accepts a BSD-compat flag.
5847 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5848 # nm: unknown option "B" ignored
5849 # Tru64's nm complains that /dev/null is an invalid object file
5850 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5851 */dev/null* | *'Invalid file or object type'*)
5852 lt_cv_path_NM="$tmp_nm -B"
5856 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5858 lt_cv_path_NM="$tmp_nm -p"
5862 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5863 continue # so that we can try to find one that supports BSD flags
5872 : ${lt_cv_path_NM=no}
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5876 $as_echo "$lt_cv_path_NM" >&6; }
5877 if test "$lt_cv_path_NM" != "no"; then
5880 # Didn't find any BSD compatible name lister, look for dumpbin.
5881 if test -n "$ac_tool_prefix"; then
5882 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5889 $as_echo_n "(cached) " >&6
5891 if test -n "$DUMPBIN"; then
5892 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 DUMPBIN=$ac_cv_prog_DUMPBIN
5912 if test -n "$DUMPBIN"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5914 $as_echo "$DUMPBIN" >&6; }
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5921 test -n "$DUMPBIN" && break
5924 if test -z "$DUMPBIN"; then
5925 ac_ct_DUMPBIN=$DUMPBIN
5926 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5928 # Extract the first word of "$ac_prog", so it can be a program name with args.
5929 set dummy $ac_prog; ac_word=$2
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931 $as_echo_n "checking for $ac_word... " >&6; }
5932 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5935 if test -n "$ac_ct_DUMPBIN"; then
5936 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5945 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5956 if test -n "$ac_ct_DUMPBIN"; then
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5958 $as_echo "$ac_ct_DUMPBIN" >&6; }
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961 $as_echo "no" >&6; }
5965 test -n "$ac_ct_DUMPBIN" && break
5968 if test "x$ac_ct_DUMPBIN" = x; then
5971 case $cross_compiling:$ac_tool_warned in
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975 ac_tool_warned=yes ;;
5977 DUMPBIN=$ac_ct_DUMPBIN
5982 if test "$DUMPBIN" != ":"; then
5986 test -z "$NM" && NM=nm
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5994 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5995 if test "${lt_cv_nm_interface+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5998 lt_cv_nm_interface="BSD nm"
5999 echo "int some_variable = 0;" > conftest.$ac_ext
6000 (eval echo "\"\$as_me:6000: $ac_compile\"" >&5)
6001 (eval "$ac_compile" 2>conftest.err)
6002 cat conftest.err >&5
6003 (eval echo "\"\$as_me:6003: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6004 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6005 cat conftest.err >&5
6006 (eval echo "\"\$as_me:6006: output\"" >&5)
6007 cat conftest.out >&5
6008 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6009 lt_cv_nm_interface="MS dumpbin"
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6014 $as_echo "$lt_cv_nm_interface" >&6; }
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6017 $as_echo_n "checking whether ln -s works... " >&6; }
6019 if test "$LN_S" = "ln -s"; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6021 $as_echo "yes" >&6; }
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6024 $as_echo "no, using $LN_S" >&6; }
6027 # find the maximum length of command line arguments
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6029 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6030 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
6038 # On DJGPP, this test can blow up pretty badly due to problems in libc
6039 # (any single argument exceeding 2000 bytes causes a buffer overrun
6040 # during glob expansion). Even if it were fixed, the result of this
6041 # check would be larger than it should be.
6042 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6046 # Under GNU Hurd, this test is not required because there is
6047 # no limit to the length of command line arguments.
6048 # Libtool will interpret -1 as no limit whatsoever
6049 lt_cv_sys_max_cmd_len=-1;
6052 cygwin* | mingw* | cegcc*)
6053 # On Win9x/ME, this test blows up -- it succeeds, but takes
6054 # about 5 minutes as the teststring grows exponentially.
6055 # Worse, since 9x/ME are not pre-emptively multitasking,
6056 # you end up with a "frozen" computer, even though with patience
6057 # the test eventually succeeds (with a max line length of 256k).
6058 # Instead, let's just punt: use the minimum linelength reported by
6059 # all of the supported platforms: 8192 (on NT/2K/XP).
6060 lt_cv_sys_max_cmd_len=8192;
6064 # On AmigaOS with pdksh, this test takes hours, literally.
6065 # So we just punt and use a minimum line length of 8192.
6066 lt_cv_sys_max_cmd_len=8192;
6069 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6070 # This has been around since 386BSD, at least. Likely further.
6071 if test -x /sbin/sysctl; then
6072 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6073 elif test -x /usr/sbin/sysctl; then
6074 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6076 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6078 # And add a safety zone
6079 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6084 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6085 lt_cv_sys_max_cmd_len=196608
6089 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6090 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6091 # nice to cause kernel panics so lets avoid the loop below.
6092 # First set a reasonable default.
6093 lt_cv_sys_max_cmd_len=16384
6095 if test -x /sbin/sysconfig; then
6096 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6097 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6102 lt_cv_sys_max_cmd_len=102400
6104 sysv5* | sco5v6* | sysv4.2uw2*)
6105 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6106 if test -n "$kargmax"; then
6107 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6109 lt_cv_sys_max_cmd_len=32768
6113 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6114 if test -n "$lt_cv_sys_max_cmd_len"; then
6115 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6118 # Make teststring a little bigger before we do anything with it.
6119 # a 1K string should be a reasonable start.
6120 for i in 1 2 3 4 5 6 7 8 ; do
6121 teststring=$teststring$teststring
6123 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6124 # If test is not a shell built-in, we'll probably end up computing a
6125 # maximum length that is only half of the actual maximum length, but
6127 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6128 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6129 test $i != 17 # 1/2 MB should be enough
6132 teststring=$teststring$teststring
6134 # Only check the string length outside the loop.
6135 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6137 # Add a significant safety factor because C++ compilers can tack on
6138 # massive amounts of additional arguments before passing them to the
6139 # linker. It appears as though 1/2 is a usable value.
6140 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6147 if test -n $lt_cv_sys_max_cmd_len ; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6149 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6152 $as_echo "none" >&6; }
6154 max_cmd_len=$lt_cv_sys_max_cmd_len
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6166 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6167 # Try some XSI features
6170 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6172 && eval 'test $(( 1 + 1 )) -eq 2 \
6173 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6176 $as_echo "$xsi_shell" >&6; }
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6180 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6182 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6184 && lt_shell_append=yes
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6186 $as_echo "$lt_shell_append" >&6; }
6189 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6199 # test EBCDIC or ASCII
6200 case `echo X|tr X '\101'` in
6201 A) # ASCII based system
6202 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6203 lt_SP2NL='tr \040 \012'
6204 lt_NL2SP='tr \015\012 \040\040'
6206 *) # EBCDIC based system
6207 lt_SP2NL='tr \100 \n'
6208 lt_NL2SP='tr \r\n \100\100'
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6221 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6222 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6223 $as_echo_n "(cached) " >&6
6225 lt_cv_ld_reload_flag='-r'
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6228 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6229 reload_flag=$lt_cv_ld_reload_flag
6230 case $reload_flag in
6232 *) reload_flag=" $reload_flag" ;;
6234 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6237 if test "$GCC" = yes; then
6238 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6240 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6253 if test -n "$ac_tool_prefix"; then
6254 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6255 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
6261 if test -n "$OBJDUMP"; then
6262 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 OBJDUMP=$ac_cv_prog_OBJDUMP
6282 if test -n "$OBJDUMP"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6284 $as_echo "$OBJDUMP" >&6; }
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6292 if test -z "$ac_cv_prog_OBJDUMP"; then
6293 ac_ct_OBJDUMP=$OBJDUMP
6294 # Extract the first word of "objdump", so it can be a program name with args.
6295 set dummy objdump; ac_word=$2
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
6301 if test -n "$ac_ct_OBJDUMP"; then
6302 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6311 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6322 if test -n "$ac_ct_OBJDUMP"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6324 $as_echo "$ac_ct_OBJDUMP" >&6; }
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6330 if test "x$ac_ct_OBJDUMP" = x; then
6333 case $cross_compiling:$ac_tool_warned in
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6337 ac_tool_warned=yes ;;
6339 OBJDUMP=$ac_ct_OBJDUMP
6342 OBJDUMP="$ac_cv_prog_OBJDUMP"
6345 test -z "$OBJDUMP" && OBJDUMP=objdump
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6356 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6357 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6358 $as_echo_n "(cached) " >&6
6360 lt_cv_file_magic_cmd='$MAGIC_CMD'
6361 lt_cv_file_magic_test_file=
6362 lt_cv_deplibs_check_method='unknown'
6363 # Need to set the preceding variable on all platforms that support
6364 # interlibrary dependencies.
6365 # 'none' -- dependencies not supported.
6366 # `unknown' -- same as none, but documents that we really don't know.
6367 # 'pass_all' -- all dependencies passed with no checks.
6368 # 'test_compile' -- check by making test program.
6369 # 'file_magic [[regex]]' -- check by looking for files in library path
6370 # which responds to the $file_magic_cmd with a given extended regex.
6371 # If you have `file' or equivalent on your system and you're not sure
6372 # whether `pass_all' will *always* work, you probably want this one.
6376 lt_cv_deplibs_check_method=pass_all
6380 lt_cv_deplibs_check_method=pass_all
6384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6385 lt_cv_file_magic_cmd='/usr/bin/file -L'
6386 lt_cv_file_magic_test_file=/shlib/libc.so
6390 # func_win32_libid is a shell function defined in ltmain.sh
6391 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6392 lt_cv_file_magic_cmd='func_win32_libid'
6396 # Base MSYS/MinGW do not provide the 'file' command needed by
6397 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6398 # unless we find 'file', for example because we are cross-compiling.
6399 if ( file / ) >/dev/null 2>&1; then
6400 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6401 lt_cv_file_magic_cmd='func_win32_libid'
6403 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6404 lt_cv_file_magic_cmd='$OBJDUMP -f'
6409 # use the weaker test based on 'objdump'. See mingw*.
6410 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6411 lt_cv_file_magic_cmd='$OBJDUMP -f'
6414 darwin* | rhapsody*)
6415 lt_cv_deplibs_check_method=pass_all
6418 freebsd* | dragonfly*)
6419 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6422 # Not sure whether the presence of OpenBSD here was a mistake.
6423 # Let's accept both of them until this is cleared up.
6424 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6425 lt_cv_file_magic_cmd=/usr/bin/file
6426 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6430 lt_cv_deplibs_check_method=pass_all
6435 lt_cv_deplibs_check_method=pass_all
6438 hpux10.20* | hpux11*)
6439 lt_cv_file_magic_cmd=/usr/bin/file
6442 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6443 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6446 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]'
6447 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6450 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6451 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6457 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6461 irix5* | irix6* | nonstopux*)
6463 *-32|*"-32 ") libmagic=32-bit;;
6464 *-n32|*"-n32 ") libmagic=N32;;
6465 *-64|*"-64 ") libmagic=64-bit;;
6466 *) libmagic=never-match;;
6468 lt_cv_deplibs_check_method=pass_all
6471 # This must be Linux ELF.
6472 linux* | k*bsd*-gnu)
6473 lt_cv_deplibs_check_method=pass_all
6477 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6486 lt_cv_file_magic_cmd=/usr/bin/file
6487 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6491 lt_cv_deplibs_check_method=pass_all
6495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6502 osf3* | osf4* | osf5*)
6503 lt_cv_deplibs_check_method=pass_all
6507 lt_cv_deplibs_check_method=pass_all
6511 lt_cv_deplibs_check_method=pass_all
6514 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6515 lt_cv_deplibs_check_method=pass_all
6519 case $host_vendor in
6521 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]'
6522 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6525 lt_cv_deplibs_check_method=pass_all
6528 lt_cv_file_magic_cmd='/bin/file'
6529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6532 lt_cv_file_magic_cmd='/bin/file'
6533 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6534 lt_cv_file_magic_test_file=/lib/libc.so
6537 lt_cv_deplibs_check_method=pass_all
6540 lt_cv_deplibs_check_method=pass_all
6546 lt_cv_deplibs_check_method=pass_all
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6552 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6553 file_magic_cmd=$lt_cv_file_magic_cmd
6554 deplibs_check_method=$lt_cv_deplibs_check_method
6555 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6568 if test -n "$ac_tool_prefix"; then
6569 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6570 set dummy ${ac_tool_prefix}ar; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if test "${ac_cv_prog_AR+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6576 if test -n "$AR"; then
6577 ac_cv_prog_AR="$AR" # Let the user override the test.
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_prog_AR="${ac_tool_prefix}ar"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 if test -n "$AR"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6599 $as_echo "$AR" >&6; }
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6607 if test -z "$ac_cv_prog_AR"; then
6609 # Extract the first word of "ar", so it can be a program name with args.
6610 set dummy ar; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6614 $as_echo_n "(cached) " >&6
6616 if test -n "$ac_ct_AR"; then
6617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_prog_ac_ct_AR="ar"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6637 if test -n "$ac_ct_AR"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6639 $as_echo "$ac_ct_AR" >&6; }
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6645 if test "x$ac_ct_AR" = x; then
6648 case $cross_compiling:$ac_tool_warned in
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6652 ac_tool_warned=yes ;;
6660 test -z "$AR" && AR=ar
6661 test -z "$AR_FLAGS" && AR_FLAGS=cru
6673 if test -n "$ac_tool_prefix"; then
6674 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6675 set dummy ${ac_tool_prefix}strip; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if test "${ac_cv_prog_STRIP+set}" = set; then :
6679 $as_echo_n "(cached) " >&6
6681 if test -n "$STRIP"; then
6682 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6691 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 STRIP=$ac_cv_prog_STRIP
6702 if test -n "$STRIP"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6704 $as_echo "$STRIP" >&6; }
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6712 if test -z "$ac_cv_prog_STRIP"; then
6714 # Extract the first word of "strip", so it can be a program name with args.
6715 set dummy strip; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6719 $as_echo_n "(cached) " >&6
6721 if test -n "$ac_ct_STRIP"; then
6722 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731 ac_cv_prog_ac_ct_STRIP="strip"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6742 if test -n "$ac_ct_STRIP"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6744 $as_echo "$ac_ct_STRIP" >&6; }
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6750 if test "x$ac_ct_STRIP" = x; then
6753 case $cross_compiling:$ac_tool_warned in
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6757 ac_tool_warned=yes ;;
6762 STRIP="$ac_cv_prog_STRIP"
6765 test -z "$STRIP" && STRIP=:
6772 if test -n "$ac_tool_prefix"; then
6773 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6774 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6778 $as_echo_n "(cached) " >&6
6780 if test -n "$RANLIB"; then
6781 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 RANLIB=$ac_cv_prog_RANLIB
6801 if test -n "$RANLIB"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6803 $as_echo "$RANLIB" >&6; }
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6811 if test -z "$ac_cv_prog_RANLIB"; then
6812 ac_ct_RANLIB=$RANLIB
6813 # Extract the first word of "ranlib", so it can be a program name with args.
6814 set dummy ranlib; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6818 $as_echo_n "(cached) " >&6
6820 if test -n "$ac_ct_RANLIB"; then
6821 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6830 ac_cv_prog_ac_ct_RANLIB="ranlib"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6841 if test -n "$ac_ct_RANLIB"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6843 $as_echo "$ac_ct_RANLIB" >&6; }
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6849 if test "x$ac_ct_RANLIB" = x; then
6852 case $cross_compiling:$ac_tool_warned in
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6856 ac_tool_warned=yes ;;
6858 RANLIB=$ac_ct_RANLIB
6861 RANLIB="$ac_cv_prog_RANLIB"
6864 test -z "$RANLIB" && RANLIB=:
6871 # Determine commands to create old-style static archives.
6872 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6873 old_postinstall_cmds='chmod 644 $oldlib'
6874 old_postuninstall_cmds=
6876 if test -n "$RANLIB"; then
6879 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6882 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6885 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6921 # If no C compiler was specified, use CC.
6924 # If no C compiler flags were specified, use CFLAGS.
6925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6927 # Allow CC to be a program name with arguments.
6931 # Check for command to grab the raw symbol name followed by C symbol from nm.
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6933 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6934 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6938 # These are sane defaults that work on at least a few old systems.
6939 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6941 # Character class describing NM global symbol codes.
6942 symcode='[BCDEGRST]'
6944 # Regexp to match symbols that can be accessed directly from C.
6945 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6947 # Define system-specific variables.
6952 cygwin* | mingw* | pw32* | cegcc*)
6953 symcode='[ABCDGISTW]'
6956 if test "$host_cpu" = ia64; then
6957 symcode='[ABCDEGRST]'
6961 symcode='[BCDEGRST]'
6964 symcode='[BCDEGQRST]'
6975 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6983 # If we're using GNU nm, then use its standard symbol codes.
6984 case `$NM -V 2>&1` in
6985 *GNU* | *'with BFD'*)
6986 symcode='[ABCDGIRSTW]' ;;
6989 # Transform an extracted symbol line into a proper C declaration.
6990 # Some systems (esp. on ia64) link data and code symbols differently,
6991 # so use this general approach.
6992 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6994 # Transform an extracted symbol line into symbol name and symbol address
6995 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6996 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'"
6998 # Handle CRLF in mingw tool chain
7002 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7006 # Try without a prefix underscore, then with it.
7007 for ac_symprfx in "" "_"; do
7009 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7010 symxfrm="\\1 $ac_symprfx\\2 \\2"
7012 # Write the raw and C identifiers.
7013 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7014 # Fake it for dumpbin and say T for any non-static function
7015 # and D for any global variable.
7016 # Also find C++ and __fastcall symbols from MSVC++,
7017 # which start with @ or ?.
7018 lt_cv_sys_global_symbol_pipe="$AWK '"\
7019 " {last_section=section; section=\$ 3};"\
7020 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7021 " \$ 0!~/External *\|/{next};"\
7022 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7023 " {if(hide[section]) next};"\
7024 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7025 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7026 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7027 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7028 " ' prfx=^$ac_symprfx"
7030 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7033 # Check to see that the pipe works correctly.
7037 cat > conftest.$ac_ext <<_LT_EOF
7042 void nm_test_func(void);
7043 void nm_test_func(void){}
7047 int main(){nm_test_var='a';nm_test_func();return(0);}
7050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7051 (eval $ac_compile) 2>&5
7053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054 test $ac_status = 0; }; then
7055 # Now try to grab the symbols.
7057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7058 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7061 test $ac_status = 0; } && test -s "$nlist"; then
7062 # Try sorting and uniquifying the output.
7063 if sort "$nlist" | uniq > "$nlist"T; then
7064 mv -f "$nlist"T "$nlist"
7069 # Make sure that we snagged all the symbols we need.
7070 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7071 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7072 cat <<_LT_EOF > conftest.$ac_ext
7078 # Now generate the symbol file.
7079 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7081 cat <<_LT_EOF >> conftest.$ac_ext
7083 /* The mapping between symbol names and symbols. */
7088 lt__PROGRAM__LTX_preloaded_symbols[] =
7090 { "@PROGRAM@", (void *) 0 },
7092 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7093 cat <<\_LT_EOF >> conftest.$ac_ext
7097 /* This works around a problem in FreeBSD linker */
7098 #ifdef FREEBSD_WORKAROUND
7099 static const void *lt_preloaded_setup() {
7100 return lt__PROGRAM__LTX_preloaded_symbols;
7108 # Now try linking the two files.
7109 mv conftest.$ac_objext conftstm.$ac_objext
7110 lt_save_LIBS="$LIBS"
7111 lt_save_CFLAGS="$CFLAGS"
7112 LIBS="conftstm.$ac_objext"
7113 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7115 (eval $ac_link) 2>&5
7117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7118 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7121 LIBS="$lt_save_LIBS"
7122 CFLAGS="$lt_save_CFLAGS"
7124 echo "cannot find nm_test_func in $nlist" >&5
7127 echo "cannot find nm_test_var in $nlist" >&5
7130 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7133 echo "$progname: failed program was:" >&5
7134 cat conftest.$ac_ext >&5
7136 rm -rf conftest* conftst*
7138 # Do not use the global_symbol_pipe unless it works.
7139 if test "$pipe_works" = yes; then
7142 lt_cv_sys_global_symbol_pipe=
7148 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7149 lt_cv_sys_global_symbol_to_cdecl=
7151 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7153 $as_echo "failed" >&6; }
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7156 $as_echo "ok" >&6; }
7180 # Check whether --enable-libtool-lock was given.
7181 if test "${enable_libtool_lock+set}" = set; then :
7182 enableval=$enable_libtool_lock;
7185 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7187 # Some flags need to be propagated to the compiler or linker for good
7191 # Find out which ABI we are using.
7192 echo 'int i;' > conftest.$ac_ext
7193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7194 (eval $ac_compile) 2>&5
7196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7197 test $ac_status = 0; }; then
7198 case `/usr/bin/file conftest.$ac_objext` in
7210 # Find out which ABI we are using.
7211 echo '#line 7211 "configure"' > conftest.$ac_ext
7212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7213 (eval $ac_compile) 2>&5
7215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7216 test $ac_status = 0; }; then
7217 if test "$lt_cv_prog_gnu_ld" = yes; then
7218 case `/usr/bin/file conftest.$ac_objext` in
7220 LD="${LD-ld} -melf32bsmip"
7223 LD="${LD-ld} -melf32bmipn32"
7226 LD="${LD-ld} -melf64bmip"
7230 case `/usr/bin/file conftest.$ac_objext` in
7246 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7247 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7248 # Find out which ABI we are using.
7249 echo 'int i;' > conftest.$ac_ext
7250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7251 (eval $ac_compile) 2>&5
7253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7254 test $ac_status = 0; }; then
7255 case `/usr/bin/file conftest.o` in
7258 x86_64-*kfreebsd*-gnu)
7259 LD="${LD-ld} -m elf_i386_fbsd"
7262 LD="${LD-ld} -m elf_i386"
7264 ppc64-*linux*|powerpc64-*linux*)
7265 LD="${LD-ld} -m elf32ppclinux"
7268 LD="${LD-ld} -m elf_s390"
7271 LD="${LD-ld} -m elf32_sparc"
7277 x86_64-*kfreebsd*-gnu)
7278 LD="${LD-ld} -m elf_x86_64_fbsd"
7281 LD="${LD-ld} -m elf_x86_64"
7283 ppc*-*linux*|powerpc*-*linux*)
7284 LD="${LD-ld} -m elf64ppc"
7286 s390*-*linux*|s390*-*tpf*)
7287 LD="${LD-ld} -m elf64_s390"
7290 LD="${LD-ld} -m elf64_sparc"
7300 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7301 SAVE_CFLAGS="$CFLAGS"
7302 CFLAGS="$CFLAGS -belf"
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7304 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7305 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7306 $as_echo_n "(cached) " >&6
7309 ac_cpp='$CPP $CPPFLAGS'
7310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7325 if ac_fn_c_try_link "$LINENO"; then :
7326 lt_cv_cc_needs_belf=yes
7328 lt_cv_cc_needs_belf=no
7330 rm -f core conftest.err conftest.$ac_objext \
7331 conftest$ac_exeext conftest.$ac_ext
7333 ac_cpp='$CPP $CPPFLAGS'
7334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7340 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7341 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7342 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7343 CFLAGS="$SAVE_CFLAGS"
7347 # Find out which ABI we are using.
7348 echo 'int i;' > conftest.$ac_ext
7349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7350 (eval $ac_compile) 2>&5
7352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7353 test $ac_status = 0; }; then
7354 case `/usr/bin/file conftest.o` in
7356 case $lt_cv_prog_gnu_ld in
7357 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7359 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7371 need_locks="$enable_libtool_lock"
7375 rhapsody* | darwin*)
7376 if test -n "$ac_tool_prefix"; then
7377 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7378 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7382 $as_echo_n "(cached) " >&6
7384 if test -n "$DSYMUTIL"; then
7385 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7405 if test -n "$DSYMUTIL"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7407 $as_echo "$DSYMUTIL" >&6; }
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7415 if test -z "$ac_cv_prog_DSYMUTIL"; then
7416 ac_ct_DSYMUTIL=$DSYMUTIL
7417 # Extract the first word of "dsymutil", so it can be a program name with args.
7418 set dummy dsymutil; ac_word=$2
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 $as_echo_n "checking for $ac_word... " >&6; }
7421 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7422 $as_echo_n "(cached) " >&6
7424 if test -n "$ac_ct_DSYMUTIL"; then
7425 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7445 if test -n "$ac_ct_DSYMUTIL"; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7447 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7453 if test "x$ac_ct_DSYMUTIL" = x; then
7456 case $cross_compiling:$ac_tool_warned in
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7460 ac_tool_warned=yes ;;
7462 DSYMUTIL=$ac_ct_DSYMUTIL
7465 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7468 if test -n "$ac_tool_prefix"; then
7469 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7470 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7474 $as_echo_n "(cached) " >&6
7476 if test -n "$NMEDIT"; then
7477 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7486 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 NMEDIT=$ac_cv_prog_NMEDIT
7497 if test -n "$NMEDIT"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7499 $as_echo "$NMEDIT" >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7507 if test -z "$ac_cv_prog_NMEDIT"; then
7508 ac_ct_NMEDIT=$NMEDIT
7509 # Extract the first word of "nmedit", so it can be a program name with args.
7510 set dummy nmedit; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7516 if test -n "$ac_ct_NMEDIT"; then
7517 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7537 if test -n "$ac_ct_NMEDIT"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7539 $as_echo "$ac_ct_NMEDIT" >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7545 if test "x$ac_ct_NMEDIT" = x; then
7548 case $cross_compiling:$ac_tool_warned in
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7552 ac_tool_warned=yes ;;
7554 NMEDIT=$ac_ct_NMEDIT
7557 NMEDIT="$ac_cv_prog_NMEDIT"
7560 if test -n "$ac_tool_prefix"; then
7561 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7562 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if test "${ac_cv_prog_LIPO+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7568 if test -n "$LIPO"; then
7569 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 LIPO=$ac_cv_prog_LIPO
7589 if test -n "$LIPO"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7591 $as_echo "$LIPO" >&6; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7599 if test -z "$ac_cv_prog_LIPO"; then
7601 # Extract the first word of "lipo", so it can be a program name with args.
7602 set dummy lipo; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
7608 if test -n "$ac_ct_LIPO"; then
7609 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_prog_ac_ct_LIPO="lipo"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7629 if test -n "$ac_ct_LIPO"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7631 $as_echo "$ac_ct_LIPO" >&6; }
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7637 if test "x$ac_ct_LIPO" = x; then
7640 case $cross_compiling:$ac_tool_warned in
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7644 ac_tool_warned=yes ;;
7649 LIPO="$ac_cv_prog_LIPO"
7652 if test -n "$ac_tool_prefix"; then
7653 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7654 set dummy ${ac_tool_prefix}otool; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7660 if test -n "$OTOOL"; then
7661 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 OTOOL=$ac_cv_prog_OTOOL
7681 if test -n "$OTOOL"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7683 $as_echo "$OTOOL" >&6; }
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7691 if test -z "$ac_cv_prog_OTOOL"; then
7693 # Extract the first word of "otool", so it can be a program name with args.
7694 set dummy otool; ac_word=$2
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696 $as_echo_n "checking for $ac_word... " >&6; }
7697 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7698 $as_echo_n "(cached) " >&6
7700 if test -n "$ac_ct_OTOOL"; then
7701 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 test -z "$as_dir" && as_dir=.
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7710 ac_cv_prog_ac_ct_OTOOL="otool"
7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7721 if test -n "$ac_ct_OTOOL"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7723 $as_echo "$ac_ct_OTOOL" >&6; }
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7729 if test "x$ac_ct_OTOOL" = x; then
7732 case $cross_compiling:$ac_tool_warned in
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7736 ac_tool_warned=yes ;;
7741 OTOOL="$ac_cv_prog_OTOOL"
7744 if test -n "$ac_tool_prefix"; then
7745 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7746 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
7752 if test -n "$OTOOL64"; then
7753 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7762 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 OTOOL64=$ac_cv_prog_OTOOL64
7773 if test -n "$OTOOL64"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7775 $as_echo "$OTOOL64" >&6; }
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7783 if test -z "$ac_cv_prog_OTOOL64"; then
7784 ac_ct_OTOOL64=$OTOOL64
7785 # Extract the first word of "otool64", so it can be a program name with args.
7786 set dummy otool64; ac_word=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7790 $as_echo_n "(cached) " >&6
7792 if test -n "$ac_ct_OTOOL64"; then
7793 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_prog_ac_ct_OTOOL64="otool64"
7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7813 if test -n "$ac_ct_OTOOL64"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7815 $as_echo "$ac_ct_OTOOL64" >&6; }
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7821 if test "x$ac_ct_OTOOL64" = x; then
7824 case $cross_compiling:$ac_tool_warned in
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7828 ac_tool_warned=yes ;;
7830 OTOOL64=$ac_ct_OTOOL64
7833 OTOOL64="$ac_cv_prog_OTOOL64"
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7863 $as_echo_n "checking for -single_module linker flag... " >&6; }
7864 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7865 $as_echo_n "(cached) " >&6
7867 lt_cv_apple_cc_single_mod=no
7868 if test -z "${LT_MULTI_MODULE}"; then
7869 # By default we will add the -single_module flag. You can override
7870 # by either setting the environment variable LT_MULTI_MODULE
7871 # non-empty at configure time, or by adding -multi_module to the
7873 rm -rf libconftest.dylib*
7874 echo "int foo(void){return 1;}" > conftest.c
7875 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7876 -dynamiclib -Wl,-single_module conftest.c" >&5
7877 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7878 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7880 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7881 lt_cv_apple_cc_single_mod=yes
7883 cat conftest.err >&5
7885 rm -rf libconftest.dylib*
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7890 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7892 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7893 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7896 lt_cv_ld_exported_symbols_list=no
7897 save_LDFLAGS=$LDFLAGS
7898 echo "_main" > conftest.sym
7899 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7911 if ac_fn_c_try_link "$LINENO"; then :
7912 lt_cv_ld_exported_symbols_list=yes
7914 lt_cv_ld_exported_symbols_list=no
7916 rm -f core conftest.err conftest.$ac_objext \
7917 conftest$ac_exeext conftest.$ac_ext
7918 LDFLAGS="$save_LDFLAGS"
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7922 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7924 rhapsody* | darwin1.[012])
7925 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7927 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7928 darwin*) # darwin 5.x on
7929 # if running on 10.5 or later, the deployment target defaults
7930 # to the OS version, if on x86, and 10.4, the deployment
7931 # target defaults to 10.4. Don't you love it?
7932 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7933 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7934 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7936 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7938 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7942 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7943 _lt_dar_single_mod='$single_module'
7945 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7946 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7948 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7950 if test "$DSYMUTIL" != ":"; then
7951 _lt_dsymutil='~$DSYMUTIL $lib || :'
7958 for ac_header in dlfcn.h
7960 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7962 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7963 cat >>confdefs.h <<_ACEOF
7964 #define HAVE_DLFCN_H 1
7983 # Check whether --enable-shared was given.
7984 if test "${enable_shared+set}" = set; then :
7985 enableval=$enable_shared; p=${PACKAGE-default}
7987 yes) enable_shared=yes ;;
7988 no) enable_shared=no ;;
7991 # Look at the argument we got. We use all the common list separators.
7992 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7993 for pkg in $enableval; do
7995 if test "X$pkg" = "X$p"; then
8014 # Check whether --enable-static was given.
8015 if test "${enable_static+set}" = set; then :
8016 enableval=$enable_static; p=${PACKAGE-default}
8018 yes) enable_static=yes ;;
8019 no) enable_static=no ;;
8022 # Look at the argument we got. We use all the common list separators.
8023 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8024 for pkg in $enableval; do
8026 if test "X$pkg" = "X$p"; then
8046 # Check whether --with-pic was given.
8047 if test "${with_pic+set}" = set; then :
8048 withval=$with_pic; pic_mode="$withval"
8054 test -z "$pic_mode" && pic_mode=default
8062 # Check whether --enable-fast-install was given.
8063 if test "${enable_fast_install+set}" = set; then :
8064 enableval=$enable_fast_install; p=${PACKAGE-default}
8066 yes) enable_fast_install=yes ;;
8067 no) enable_fast_install=no ;;
8069 enable_fast_install=no
8070 # Look at the argument we got. We use all the common list separators.
8071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8072 for pkg in $enableval; do
8074 if test "X$pkg" = "X$p"; then
8075 enable_fast_install=yes
8082 enable_fast_install=yes
8095 # This can be used to rebuild libtool when needed
8096 LIBTOOL_DEPS="$ltmain"
8098 # Always use our own libtool.
8099 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8125 test -z "$LN_S" && LN_S="ln -s"
8140 if test -n "${ZSH_VERSION+set}" ; then
8141 setopt NO_GLOB_SUBST
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8145 $as_echo_n "checking for objdir... " >&6; }
8146 if test "${lt_cv_objdir+set}" = set; then :
8147 $as_echo_n "(cached) " >&6
8149 rm -f .libs 2>/dev/null
8150 mkdir .libs 2>/dev/null
8151 if test -d .libs; then
8154 # MS-DOS does not allow filenames that begin with a dot.
8157 rmdir .libs 2>/dev/null
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8160 $as_echo "$lt_cv_objdir" >&6; }
8161 objdir=$lt_cv_objdir
8167 cat >>confdefs.h <<_ACEOF
8168 #define LT_OBJDIR "$lt_cv_objdir/"
8189 # AIX sometimes has problems with the GCC collect2 program. For some
8190 # reason, if we set the COLLECT_NAMES environment variable, the problems
8191 # vanish in a puff of smoke.
8192 if test "X${COLLECT_NAMES+set}" != Xset; then
8194 export COLLECT_NAMES
8199 # Sed substitution that helps us do robust quoting. It backslashifies
8200 # metacharacters that are still active within double-quoted strings.
8201 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8203 # Same as above, but do not quote variable references.
8204 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8206 # Sed substitution to delay expansion of an escaped shell variable in a
8207 # double_quote_subst'ed string.
8208 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8210 # Sed substitution to delay expansion of an escaped single quote.
8211 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8213 # Sed substitution to avoid accidental globbing in evaled expressions
8214 no_glob_subst='s/\*/\\\*/g'
8218 can_build_shared=yes
8220 # All known linkers require a `.a' archive for static linking (except MSVC,
8221 # which needs '.lib').
8224 with_gnu_ld="$lt_cv_prog_gnu_ld"
8227 old_CFLAGS="$CFLAGS"
8229 # Set sane defaults for various variables
8230 test -z "$CC" && CC=cc
8231 test -z "$LTCC" && LTCC=$CC
8232 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8233 test -z "$LD" && LD=ld
8234 test -z "$ac_objext" && ac_objext=o
8236 for cc_temp in $compiler""; do
8238 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8239 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8244 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8247 # Only perform the check for file, if the check method requires it
8248 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8249 case $deplibs_check_method in
8251 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8253 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8254 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8259 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8262 lt_save_MAGIC_CMD="$MAGIC_CMD"
8263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8264 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8265 for ac_dir in $ac_dummy; do
8267 test -z "$ac_dir" && ac_dir=.
8268 if test -f $ac_dir/${ac_tool_prefix}file; then
8269 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8270 if test -n "$file_magic_test_file"; then
8271 case $deplibs_check_method in
8273 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8275 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8276 $EGREP "$file_magic_regex" > /dev/null; then
8281 *** Warning: the command libtool uses to detect shared libraries,
8282 *** $file_magic_cmd, produces output that libtool cannot recognize.
8283 *** The result is that libtool may fail to recognize shared libraries
8284 *** as such. This will affect the creation of libtool libraries that
8285 *** depend on shared libraries, but programs linked with such libtool
8286 *** libraries will work regardless of this problem. Nevertheless, you
8287 *** may want to report the problem to your system manager and/or to
8288 *** bug-libtool@gnu.org
8298 MAGIC_CMD="$lt_save_MAGIC_CMD"
8303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8304 if test -n "$MAGIC_CMD"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8306 $as_echo "$MAGIC_CMD" >&6; }
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8316 if test -z "$lt_cv_path_MAGIC_CMD"; then
8317 if test -n "$ac_tool_prefix"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8319 $as_echo_n "checking for file... " >&6; }
8320 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8325 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8328 lt_save_MAGIC_CMD="$MAGIC_CMD"
8329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8330 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8331 for ac_dir in $ac_dummy; do
8333 test -z "$ac_dir" && ac_dir=.
8334 if test -f $ac_dir/file; then
8335 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8336 if test -n "$file_magic_test_file"; then
8337 case $deplibs_check_method in
8339 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8341 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8342 $EGREP "$file_magic_regex" > /dev/null; then
8347 *** Warning: the command libtool uses to detect shared libraries,
8348 *** $file_magic_cmd, produces output that libtool cannot recognize.
8349 *** The result is that libtool may fail to recognize shared libraries
8350 *** as such. This will affect the creation of libtool libraries that
8351 *** depend on shared libraries, but programs linked with such libtool
8352 *** libraries will work regardless of this problem. Nevertheless, you
8353 *** may want to report the problem to your system manager and/or to
8354 *** bug-libtool@gnu.org
8364 MAGIC_CMD="$lt_save_MAGIC_CMD"
8369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8370 if test -n "$MAGIC_CMD"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8372 $as_echo "$MAGIC_CMD" >&6; }
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8388 # Use C for the default configuration in the libtool script
8392 ac_cpp='$CPP $CPPFLAGS'
8393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8398 # Source file extension for C test sources.
8401 # Object file extension for compiled C test sources.
8405 # Code to be used in simple compile tests
8406 lt_simple_compile_test_code="int some_variable = 0;"
8408 # Code to be used in simple link tests
8409 lt_simple_link_test_code='int main(){return(0);}'
8417 # If no C compiler was specified, use CC.
8420 # If no C compiler flags were specified, use CFLAGS.
8421 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8423 # Allow CC to be a program name with arguments.
8426 # Save the default compiler, since it gets overwritten when the other
8427 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8428 compiler_DEFAULT=$CC
8430 # save warnings/boilerplate of simple test code
8431 ac_outfile=conftest.$ac_objext
8432 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8433 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8434 _lt_compiler_boilerplate=`cat conftest.err`
8437 ac_outfile=conftest.$ac_objext
8438 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8439 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8440 _lt_linker_boilerplate=`cat conftest.err`
8444 if test -n "$compiler"; then
8446 lt_prog_compiler_no_builtin_flag=
8448 if test "$GCC" = yes; then
8449 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8452 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8453 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8454 $as_echo_n "(cached) " >&6
8456 lt_cv_prog_compiler_rtti_exceptions=no
8457 ac_outfile=conftest.$ac_objext
8458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8459 lt_compiler_flag="-fno-rtti -fno-exceptions"
8460 # Insert the option either (1) after the last *FLAGS variable, or
8461 # (2) before a word containing "conftest.", or (3) at the end.
8462 # Note that $ac_compile itself does not contain backslashes and begins
8463 # with a dollar sign (not a hyphen), so the echo should work correctly.
8464 # The option is referenced via a variable to avoid confusing sed.
8465 lt_compile=`echo "$ac_compile" | $SED \
8466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8468 -e 's:$: $lt_compiler_flag:'`
8469 (eval echo "\"\$as_me:8469: $lt_compile\"" >&5)
8470 (eval "$lt_compile" 2>conftest.err)
8472 cat conftest.err >&5
8473 echo "$as_me:8473: \$? = $ac_status" >&5
8474 if (exit $ac_status) && test -s "$ac_outfile"; then
8475 # The compiler can only warn and ignore the option if not recognized
8476 # So say no if there are warnings other than the usual output.
8477 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8479 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8480 lt_cv_prog_compiler_rtti_exceptions=yes
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8487 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8489 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8490 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8502 lt_prog_compiler_wl=
8503 lt_prog_compiler_pic=
8504 lt_prog_compiler_static=
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8507 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8509 if test "$GCC" = yes; then
8510 lt_prog_compiler_wl='-Wl,'
8511 lt_prog_compiler_static='-static'
8515 # All AIX code is PIC.
8516 if test "$host_cpu" = ia64; then
8517 # AIX 5 now supports IA64 processor
8518 lt_prog_compiler_static='-Bstatic'
8525 # see comment about AmigaOS4 .so support
8526 lt_prog_compiler_pic='-fPIC'
8529 # FIXME: we need at least 68020 code to build shared libraries, but
8530 # adding the `-m68020' flag to GCC prevents building anything better,
8532 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8537 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8538 # PIC is the default for these OSes.
8541 mingw* | cygwin* | pw32* | os2* | cegcc*)
8542 # This hack is so that the source file can tell whether it is being
8543 # built for inclusion in a dll (and should export symbols for example).
8544 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8545 # (--disable-auto-import) libraries
8546 lt_prog_compiler_pic='-DDLL_EXPORT'
8549 darwin* | rhapsody*)
8550 # PIC is the default on this platform
8551 # Common symbols not allowed in MH_DYLIB files
8552 lt_prog_compiler_pic='-fno-common'
8556 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8557 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8558 # sets the default TLS model and affects inlining.
8564 lt_prog_compiler_pic='-fPIC'
8570 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8571 # Instead, we relocate shared libraries at runtime.
8575 # Just because we use GCC doesn't mean we suddenly get shared libraries
8576 # on systems that don't support them.
8577 lt_prog_compiler_can_build_shared=no
8582 # QNX uses GNU C++, but need to define -shared option too, otherwise
8584 lt_prog_compiler_pic='-fPIC -shared'
8588 if test -d /usr/nec; then
8589 lt_prog_compiler_pic=-Kconform_pic
8594 lt_prog_compiler_pic='-fPIC'
8598 # PORTME Check for flag to pass linker flags through the system compiler.
8601 lt_prog_compiler_wl='-Wl,'
8602 if test "$host_cpu" = ia64; then
8603 # AIX 5 now supports IA64 processor
8604 lt_prog_compiler_static='-Bstatic'
8606 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8610 mingw* | cygwin* | pw32* | os2* | cegcc*)
8611 # This hack is so that the source file can tell whether it is being
8612 # built for inclusion in a dll (and should export symbols for example).
8613 lt_prog_compiler_pic='-DDLL_EXPORT'
8616 hpux9* | hpux10* | hpux11*)
8617 lt_prog_compiler_wl='-Wl,'
8618 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8625 lt_prog_compiler_pic='+Z'
8628 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8629 lt_prog_compiler_static='${wl}-a ${wl}archive'
8632 irix5* | irix6* | nonstopux*)
8633 lt_prog_compiler_wl='-Wl,'
8634 # PIC (with -KPIC) is the default.
8635 lt_prog_compiler_static='-non_shared'
8638 linux* | k*bsd*-gnu)
8639 case $cc_basename in
8640 # old Intel for x86_64 which still supported -KPIC.
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_pic='-KPIC'
8644 lt_prog_compiler_static='-static'
8646 # icc used to be incompatible with GCC.
8647 # ICC 10 doesn't accept -KPIC any more.
8649 lt_prog_compiler_wl='-Wl,'
8650 lt_prog_compiler_pic='-fPIC'
8651 lt_prog_compiler_static='-static'
8653 # Lahey Fortran 8.1.
8655 lt_prog_compiler_wl='-Wl,'
8656 lt_prog_compiler_pic='--shared'
8657 lt_prog_compiler_static='--static'
8659 pgcc* | pgf77* | pgf90* | pgf95*)
8660 # Portland Group compilers (*not* the Pentium gcc compiler,
8661 # which looks to be a dead project)
8662 lt_prog_compiler_wl='-Wl,'
8663 lt_prog_compiler_pic='-fpic'
8664 lt_prog_compiler_static='-Bstatic'
8667 lt_prog_compiler_wl='-Wl,'
8668 # All Alpha code is PIC.
8669 lt_prog_compiler_static='-non_shared'
8672 # IBM XL C 8.0/Fortran 10.1 on PPC
8673 lt_prog_compiler_wl='-Wl,'
8674 lt_prog_compiler_pic='-qpic'
8675 lt_prog_compiler_static='-qstaticlink'
8678 case `$CC -V 2>&1 | sed 5q` in
8681 lt_prog_compiler_pic='-KPIC'
8682 lt_prog_compiler_static='-Bstatic'
8683 lt_prog_compiler_wl='-Wl,'
8686 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8687 lt_prog_compiler_pic='-KPIC'
8688 lt_prog_compiler_static='-Bstatic'
8689 lt_prog_compiler_wl=''
8697 lt_prog_compiler_pic='-KPIC'
8698 lt_prog_compiler_static='-Bstatic'
8702 # QNX uses GNU C++, but need to define -shared option too, otherwise
8704 lt_prog_compiler_pic='-fPIC -shared'
8707 osf3* | osf4* | osf5*)
8708 lt_prog_compiler_wl='-Wl,'
8709 # All OSF/1 code is PIC.
8710 lt_prog_compiler_static='-non_shared'
8714 lt_prog_compiler_static='-non_shared'
8718 lt_prog_compiler_pic='-KPIC'
8719 lt_prog_compiler_static='-Bstatic'
8720 case $cc_basename in
8722 lt_prog_compiler_wl='-Qoption ld ';;
8724 lt_prog_compiler_wl='-Wl,';;
8729 lt_prog_compiler_wl='-Qoption ld '
8730 lt_prog_compiler_pic='-PIC'
8731 lt_prog_compiler_static='-Bstatic'
8734 sysv4 | sysv4.2uw2* | sysv4.3*)
8735 lt_prog_compiler_wl='-Wl,'
8736 lt_prog_compiler_pic='-KPIC'
8737 lt_prog_compiler_static='-Bstatic'
8741 if test -d /usr/nec ;then
8742 lt_prog_compiler_pic='-Kconform_pic'
8743 lt_prog_compiler_static='-Bstatic'
8747 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8748 lt_prog_compiler_wl='-Wl,'
8749 lt_prog_compiler_pic='-KPIC'
8750 lt_prog_compiler_static='-Bstatic'
8754 lt_prog_compiler_wl='-Wl,'
8755 lt_prog_compiler_can_build_shared=no
8759 lt_prog_compiler_pic='-pic'
8760 lt_prog_compiler_static='-Bstatic'
8764 lt_prog_compiler_can_build_shared=no
8770 # For platforms which do not support PIC, -DPIC is meaningless:
8772 lt_prog_compiler_pic=
8775 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8779 $as_echo "$lt_prog_compiler_pic" >&6; }
8787 # Check to make sure the PIC flag actually works.
8789 if test -n "$lt_prog_compiler_pic"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8791 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8792 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8793 $as_echo_n "(cached) " >&6
8795 lt_cv_prog_compiler_pic_works=no
8796 ac_outfile=conftest.$ac_objext
8797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8798 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8799 # Insert the option either (1) after the last *FLAGS variable, or
8800 # (2) before a word containing "conftest.", or (3) at the end.
8801 # Note that $ac_compile itself does not contain backslashes and begins
8802 # with a dollar sign (not a hyphen), so the echo should work correctly.
8803 # The option is referenced via a variable to avoid confusing sed.
8804 lt_compile=`echo "$ac_compile" | $SED \
8805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8807 -e 's:$: $lt_compiler_flag:'`
8808 (eval echo "\"\$as_me:8808: $lt_compile\"" >&5)
8809 (eval "$lt_compile" 2>conftest.err)
8811 cat conftest.err >&5
8812 echo "$as_me:8812: \$? = $ac_status" >&5
8813 if (exit $ac_status) && test -s "$ac_outfile"; then
8814 # The compiler can only warn and ignore the option if not recognized
8815 # So say no if there are warnings other than the usual output.
8816 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8819 lt_cv_prog_compiler_pic_works=yes
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8826 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8828 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8829 case $lt_prog_compiler_pic in
8831 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8834 lt_prog_compiler_pic=
8835 lt_prog_compiler_can_build_shared=no
8846 # Check to make sure the static flag actually works.
8848 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8850 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8851 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8852 $as_echo_n "(cached) " >&6
8854 lt_cv_prog_compiler_static_works=no
8855 save_LDFLAGS="$LDFLAGS"
8856 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8857 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8859 # The linker can only warn and ignore the option if not recognized
8860 # So say no if there are warnings
8861 if test -s conftest.err; then
8862 # Append any errors to the config.log.
8863 cat conftest.err 1>&5
8864 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8866 if diff conftest.exp conftest.er2 >/dev/null; then
8867 lt_cv_prog_compiler_static_works=yes
8870 lt_cv_prog_compiler_static_works=yes
8874 LDFLAGS="$save_LDFLAGS"
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8878 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8880 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8883 lt_prog_compiler_static=
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8893 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8894 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8895 $as_echo_n "(cached) " >&6
8897 lt_cv_prog_compiler_c_o=no
8898 $RM -r conftest 2>/dev/null
8902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8904 lt_compiler_flag="-o out/conftest2.$ac_objext"
8905 # Insert the option either (1) after the last *FLAGS variable, or
8906 # (2) before a word containing "conftest.", or (3) at the end.
8907 # Note that $ac_compile itself does not contain backslashes and begins
8908 # with a dollar sign (not a hyphen), so the echo should work correctly.
8909 lt_compile=`echo "$ac_compile" | $SED \
8910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8912 -e 's:$: $lt_compiler_flag:'`
8913 (eval echo "\"\$as_me:8913: $lt_compile\"" >&5)
8914 (eval "$lt_compile" 2>out/conftest.err)
8916 cat out/conftest.err >&5
8917 echo "$as_me:8917: \$? = $ac_status" >&5
8918 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8920 # The compiler can only warn and ignore the option if not recognized
8921 # So say no if there are warnings
8922 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8923 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8924 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8925 lt_cv_prog_compiler_c_o=yes
8930 # SGI C++ compiler will create directory out/ii_files/ for
8931 # template instantiation
8932 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8933 $RM out/* && rmdir out
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8940 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8948 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8949 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8950 $as_echo_n "(cached) " >&6
8952 lt_cv_prog_compiler_c_o=no
8953 $RM -r conftest 2>/dev/null
8957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8959 lt_compiler_flag="-o out/conftest2.$ac_objext"
8960 # Insert the option either (1) after the last *FLAGS variable, or
8961 # (2) before a word containing "conftest.", or (3) at the end.
8962 # Note that $ac_compile itself does not contain backslashes and begins
8963 # with a dollar sign (not a hyphen), so the echo should work correctly.
8964 lt_compile=`echo "$ac_compile" | $SED \
8965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8967 -e 's:$: $lt_compiler_flag:'`
8968 (eval echo "\"\$as_me:8968: $lt_compile\"" >&5)
8969 (eval "$lt_compile" 2>out/conftest.err)
8971 cat out/conftest.err >&5
8972 echo "$as_me:8972: \$? = $ac_status" >&5
8973 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8975 # The compiler can only warn and ignore the option if not recognized
8976 # So say no if there are warnings
8977 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8978 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8979 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8980 lt_cv_prog_compiler_c_o=yes
8985 # SGI C++ compiler will create directory out/ii_files/ for
8986 # template instantiation
8987 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8988 $RM out/* && rmdir out
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8995 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9000 hard_links="nottested"
9001 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9002 # do not overwrite the value of need_locks provided by the user
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9004 $as_echo_n "checking if we can lock with hard links... " >&6; }
9007 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9009 ln conftest.a conftest.b 2>&5 || hard_links=no
9010 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9012 $as_echo "$hard_links" >&6; }
9013 if test "$hard_links" = no; then
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9015 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9028 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9031 allow_undefined_flag=
9032 always_export_symbols=no
9034 archive_expsym_cmds=
9035 compiler_needs_object=no
9036 enable_shared_with_static_runtimes=no
9037 export_dynamic_flag_spec=
9038 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9039 hardcode_automatic=no
9041 hardcode_direct_absolute=no
9042 hardcode_libdir_flag_spec=
9043 hardcode_libdir_flag_spec_ld=
9044 hardcode_libdir_separator=
9046 hardcode_shlibpath_var=unsupported
9048 link_all_deplibs=unknown
9051 old_archive_from_new_cmds=
9052 old_archive_from_expsyms_cmds=
9053 thread_safe_flag_spec=
9054 whole_archive_flag_spec=
9055 # include_expsyms should be a list of space-separated symbols to be *always*
9056 # included in the symbol list
9058 # exclude_expsyms can be an extended regexp of symbols to exclude
9059 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9060 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9061 # as well as any symbol that contains `d'.
9062 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9063 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9064 # platforms (ab)use it in PIC code, but their linkers get confused if
9065 # the symbol is explicitly referenced. Since portable code cannot
9066 # rely on this symbol name, it's probably fine to never include it in
9067 # preloaded symbol tables.
9068 # Exclude shared library initialization/finalization symbols.
9069 extract_expsyms_cmds=
9072 cygwin* | mingw* | pw32* | cegcc*)
9073 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9074 # When not using gcc, we currently assume that we are using
9075 # Microsoft Visual C++.
9076 if test "$GCC" != yes; then
9081 # we just hope/assume this is gcc and not c89 (= MSVC++)
9090 if test "$with_gnu_ld" = yes; then
9091 # If archive_cmds runs LD, not CC, wlarc should be empty
9094 # Set some defaults for GNU ld with shared library support. These
9095 # are reset later if shared libraries are not supported. Putting them
9096 # here allows them to be overridden if necessary.
9097 runpath_var=LD_RUN_PATH
9098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9099 export_dynamic_flag_spec='${wl}--export-dynamic'
9100 # ancient GNU ld didn't support --whole-archive et. al.
9101 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9102 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9104 whole_archive_flag_spec=
9106 supports_anon_versioning=no
9107 case `$LD -v 2>&1` in
9108 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9109 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9110 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9111 *\ 2.11.*) ;; # other 2.11 versions
9112 *) supports_anon_versioning=yes ;;
9115 # See if GNU ld supports shared libraries.
9118 # On AIX/PPC, the GNU linker is very broken
9119 if test "$host_cpu" != ia64; then
9123 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9124 *** to be unable to reliably create shared libraries on AIX.
9125 *** Therefore, libtool is disabling shared libraries support. If you
9126 *** really care for shared libraries, you may want to modify your PATH
9127 *** so that a non-GNU linker is found, and then restart.
9136 # see comment about AmigaOS4 .so support
9137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9138 archive_expsym_cmds=''
9141 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)'
9142 hardcode_libdir_flag_spec='-L$libdir'
9143 hardcode_minus_L=yes
9149 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9150 allow_undefined_flag=unsupported
9151 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9152 # support --undefined. This deserves some investigation. FIXME
9153 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159 cygwin* | mingw* | pw32* | cegcc*)
9160 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9161 # as there is no search path for DLLs.
9162 hardcode_libdir_flag_spec='-L$libdir'
9163 allow_undefined_flag=unsupported
9164 always_export_symbols=no
9165 enable_shared_with_static_runtimes=yes
9166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9168 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9170 # If the export-symbols file already is a .def file (1st line
9171 # is EXPORTS), use it as is; otherwise, prepend...
9172 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9173 cp $export_symbols $output_objdir/$soname.def;
9175 echo EXPORTS > $output_objdir/$soname.def;
9176 cat $export_symbols >> $output_objdir/$soname.def;
9178 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9186 hardcode_shlibpath_var=no
9187 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9188 export_dynamic_flag_spec='${wl}-E'
9189 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9190 # Instead, shared libraries are loaded at an image base (0x10000000 by
9191 # default) and relocated if they conflict, which is a slow very memory
9192 # consuming and fragmenting process. To avoid this, we pick a random,
9193 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9194 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9195 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9196 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'
9199 gnu* | linux* | tpf* | k*bsd*-gnu)
9201 if test "$host_os" = linux-dietlibc; then
9202 case $cc_basename in
9203 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9206 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9207 && test "$tmp_diet" = no
9210 tmp_sharedflag='-shared'
9211 case $cc_basename,$host_cpu in
9212 pgcc*) # Portland Group C compiler
9213 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'
9214 tmp_addflag=' $pic_flag'
9216 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9217 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'
9218 tmp_addflag=' $pic_flag -Mnomain' ;;
9219 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9220 tmp_addflag=' -i_dynamic' ;;
9221 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9222 tmp_addflag=' -i_dynamic -nofor_main' ;;
9223 ifc* | ifort*) # Intel Fortran compiler
9224 tmp_addflag=' -nofor_main' ;;
9225 lf95*) # Lahey Fortran 8.1
9226 whole_archive_flag_spec=
9227 tmp_sharedflag='--shared' ;;
9228 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9229 tmp_sharedflag='-qmkshrobj'
9232 case `$CC -V 2>&1 | sed 5q` in
9233 *Sun\ C*) # Sun C 5.9
9234 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'
9235 compiler_needs_object=yes
9236 tmp_sharedflag='-G' ;;
9237 *Sun\ F*) # Sun Fortran 8.3
9238 tmp_sharedflag='-G' ;;
9240 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9242 if test "x$supports_anon_versioning" = xyes; then
9243 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9244 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9245 echo "local: *; };" >> $output_objdir/$libname.ver~
9246 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9249 case $cc_basename in
9251 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9252 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9253 hardcode_libdir_flag_spec=
9254 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9255 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9256 if test "x$supports_anon_versioning" = xyes; then
9257 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9258 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9259 echo "local: *; };" >> $output_objdir/$libname.ver~
9260 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9271 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9280 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9284 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9285 *** create shared libraries on Solaris systems. Therefore, libtool
9286 *** is disabling shared libraries support. We urge you to upgrade GNU
9287 *** binutils to release 2.9.1 or newer. Another option is to modify
9288 *** your PATH or compiler configuration so that the native linker is
9289 *** used, and then restart.
9292 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9301 case `$LD -v 2>&1` in
9302 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9306 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9307 *** reliably create shared libraries on SCO systems. Therefore, libtool
9308 *** is disabling shared libraries support. We urge you to upgrade GNU
9309 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9310 *** your PATH or compiler configuration so that the native linker is
9311 *** used, and then restart.
9316 # For security reasons, it is highly recommended that you always
9317 # use absolute paths for naming shared libraries, and exclude the
9318 # DT_RUNPATH tag from executables and libraries. But doing so
9319 # requires that you compile everything twice, which is a pain.
9320 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9332 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9335 hardcode_shlibpath_var=no
9339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9348 if test "$ld_shlibs" = no; then
9350 hardcode_libdir_flag_spec=
9351 export_dynamic_flag_spec=
9352 whole_archive_flag_spec=
9355 # PORTME fill in a description of your system's linker (not GNU ld)
9358 allow_undefined_flag=unsupported
9359 always_export_symbols=yes
9360 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'
9361 # Note: this linker hardcodes the directories in LIBPATH if there
9362 # are no directories specified by -L.
9363 hardcode_minus_L=yes
9364 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9365 # Neither direct hardcoding nor static linking is supported with a
9367 hardcode_direct=unsupported
9372 if test "$host_cpu" = ia64; then
9373 # On IA64, the linker does run time linking by default, so we don't
9374 # have to do anything special.
9375 aix_use_runtimelinking=no
9376 exp_sym_flag='-Bexport'
9379 # If we're using GNU nm, then we don't want the "-C" option.
9380 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9381 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9382 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'
9384 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'
9386 aix_use_runtimelinking=no
9388 # Test if we are trying to use run time linking or normal
9389 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9390 # need to do runtime linking.
9391 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9392 for ld_flag in $LDFLAGS; do
9393 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9394 aix_use_runtimelinking=yes
9401 exp_sym_flag='-bexport'
9402 no_entry_flag='-bnoentry'
9405 # When large executables or shared objects are built, AIX ld can
9406 # have problems creating the table of contents. If linking a library
9407 # or program results in "error TOC overflow" add -mminimal-toc to
9408 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9409 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9413 hardcode_direct_absolute=yes
9414 hardcode_libdir_separator=':'
9415 link_all_deplibs=yes
9416 file_list_spec='${wl}-f,'
9418 if test "$GCC" = yes; then
9419 case $host_os in aix4.[012]|aix4.[012].*)
9420 # We only want to do this on AIX 4.2 and lower, the check
9421 # below for broken collect2 doesn't work under 4.3+
9422 collect2name=`${CC} -print-prog-name=collect2`
9423 if test -f "$collect2name" &&
9424 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9426 # We have reworked collect2
9429 # We have old collect2
9430 hardcode_direct=unsupported
9431 # It fails to find uninstalled libraries when the uninstalled
9432 # path is not listed in the libpath. Setting hardcode_minus_L
9433 # to unsupported forces relinking
9434 hardcode_minus_L=yes
9435 hardcode_libdir_flag_spec='-L$libdir'
9436 hardcode_libdir_separator=
9440 shared_flag='-shared'
9441 if test "$aix_use_runtimelinking" = yes; then
9442 shared_flag="$shared_flag "'${wl}-G'
9446 if test "$host_cpu" = ia64; then
9447 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9448 # chokes on -Wl,-G. The following line is correct:
9451 if test "$aix_use_runtimelinking" = yes; then
9452 shared_flag='${wl}-G'
9454 shared_flag='${wl}-bM:SRE'
9459 export_dynamic_flag_spec='${wl}-bexpall'
9460 # It seems that -bexpall does not export symbols beginning with
9461 # underscore (_), so it is better to generate a list of symbols to export.
9462 always_export_symbols=yes
9463 if test "$aix_use_runtimelinking" = yes; then
9464 # Warning - without using the other runtime loading flags (-brtl),
9465 # -berok will link without error, but may produce a broken library.
9466 allow_undefined_flag='-berok'
9467 # Determine the default libpath from the value encoded in an
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9480 if ac_fn_c_try_link "$LINENO"; then :
9482 lt_aix_libpath_sed='
9483 /Import File Strings/,/^$/ {
9489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9490 # Check for a 64-bit object if we didn't find anything.
9491 if test -z "$aix_libpath"; then
9492 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9495 rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9497 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9499 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9500 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"
9502 if test "$host_cpu" = ia64; then
9503 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9504 allow_undefined_flag="-z nodefs"
9505 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"
9507 # Determine the default libpath from the value encoded in an
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9520 if ac_fn_c_try_link "$LINENO"; then :
9522 lt_aix_libpath_sed='
9523 /Import File Strings/,/^$/ {
9529 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9530 # Check for a 64-bit object if we didn't find anything.
9531 if test -z "$aix_libpath"; then
9532 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9535 rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9539 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9540 # Warning - without using the other run time loading flags,
9541 # -berok will link without error, but may produce a broken library.
9542 no_undefined_flag=' ${wl}-bernotok'
9543 allow_undefined_flag=' ${wl}-berok'
9544 # Exported symbols can be pulled into shared objects from archives
9545 whole_archive_flag_spec='$convenience'
9546 archive_cmds_need_lc=yes
9547 # This is similar to how AIX traditionally builds its shared libraries.
9548 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'
9556 # see comment about AmigaOS4 .so support
9557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9558 archive_expsym_cmds=''
9561 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)'
9562 hardcode_libdir_flag_spec='-L$libdir'
9563 hardcode_minus_L=yes
9569 export_dynamic_flag_spec=-rdynamic
9572 cygwin* | mingw* | pw32* | cegcc*)
9573 # When not using gcc, we currently assume that we are using
9574 # Microsoft Visual C++.
9575 # hardcode_libdir_flag_spec is actually meaningless, as there is
9576 # no search path for DLLs.
9577 hardcode_libdir_flag_spec=' '
9578 allow_undefined_flag=unsupported
9579 # Tell ltmain to make .lib files, not .a files.
9581 # Tell ltmain to make .dll files, not .so files.
9583 # FIXME: Setting linknames here is a bad hack.
9584 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9585 # The linker will automatically build a .lib file if we build a DLL.
9586 old_archive_from_new_cmds='true'
9587 # FIXME: Should let the user specify the lib program.
9588 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9589 fix_srcfile_path='`cygpath -w "$srcfile"`'
9590 enable_shared_with_static_runtimes=yes
9593 darwin* | rhapsody*)
9596 archive_cmds_need_lc=no
9598 hardcode_automatic=yes
9599 hardcode_shlibpath_var=unsupported
9600 whole_archive_flag_spec=''
9601 link_all_deplibs=yes
9602 allow_undefined_flag="$_lt_dar_allow_undefined"
9603 case $cc_basename in
9604 ifort*) _lt_dar_can_shared=yes ;;
9605 *) _lt_dar_can_shared=$GCC ;;
9607 if test "$_lt_dar_can_shared" = "yes"; then
9608 output_verbose_link_cmd=echo
9609 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9610 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9611 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}"
9612 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}"
9621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_libdir_flag_spec='-L$libdir'
9623 hardcode_shlibpath_var=no
9630 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9631 # support. Future versions do this automatically, but an explicit c++rt0.o
9632 # does not break anything, and helps significantly (at the cost of a little
9635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9636 hardcode_libdir_flag_spec='-R$libdir'
9638 hardcode_shlibpath_var=no
9641 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9645 hardcode_minus_L=yes
9646 hardcode_shlibpath_var=no
9649 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9650 freebsd* | dragonfly*)
9651 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9652 hardcode_libdir_flag_spec='-R$libdir'
9654 hardcode_shlibpath_var=no
9658 if test "$GCC" = yes; then
9659 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'
9661 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'
9663 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9664 hardcode_libdir_separator=:
9667 # hardcode_minus_L: Not really in the search PATH,
9668 # but as the default location of the library.
9669 hardcode_minus_L=yes
9670 export_dynamic_flag_spec='${wl}-E'
9674 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9675 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9677 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9679 if test "$with_gnu_ld" = no; then
9680 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9681 hardcode_libdir_flag_spec_ld='+b $libdir'
9682 hardcode_libdir_separator=:
9684 hardcode_direct_absolute=yes
9685 export_dynamic_flag_spec='${wl}-E'
9686 # hardcode_minus_L: Not really in the search PATH,
9687 # but as the default location of the library.
9688 hardcode_minus_L=yes
9693 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9696 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9702 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9708 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9711 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9714 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9718 if test "$with_gnu_ld" = no; then
9719 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9720 hardcode_libdir_separator=:
9725 hardcode_shlibpath_var=no
9729 hardcode_direct_absolute=yes
9730 export_dynamic_flag_spec='${wl}-E'
9732 # hardcode_minus_L: Not really in the search PATH,
9733 # but as the default location of the library.
9734 hardcode_minus_L=yes
9740 irix5* | irix6* | nonstopux*)
9741 if test "$GCC" = yes; then
9742 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'
9743 # Try to use the -exported_symbol ld option, if it does not
9744 # work, assume that -exports_file does not work either and
9745 # implicitly export all symbols.
9746 save_LDFLAGS="$LDFLAGS"
9747 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h. */
9752 if ac_fn_c_try_link "$LINENO"; then :
9753 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'
9756 rm -f core conftest.err conftest.$ac_objext \
9757 conftest$ac_exeext conftest.$ac_ext
9758 LDFLAGS="$save_LDFLAGS"
9760 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'
9761 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'
9763 archive_cmds_need_lc='no'
9764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9765 hardcode_libdir_separator=:
9767 link_all_deplibs=yes
9771 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9774 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9776 hardcode_libdir_flag_spec='-R$libdir'
9778 hardcode_shlibpath_var=no
9782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9785 hardcode_libdir_separator=:
9786 hardcode_shlibpath_var=no
9793 if test -f /usr/libexec/ld.so; then
9795 hardcode_shlibpath_var=no
9796 hardcode_direct_absolute=yes
9797 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9798 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9799 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9800 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9801 export_dynamic_flag_spec='${wl}-E'
9804 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9806 hardcode_libdir_flag_spec='-R$libdir'
9809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9810 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9820 hardcode_libdir_flag_spec='-L$libdir'
9821 hardcode_minus_L=yes
9822 allow_undefined_flag=unsupported
9823 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'
9824 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9828 if test "$GCC" = yes; then
9829 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9830 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'
9832 allow_undefined_flag=' -expect_unresolved \*'
9833 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'
9835 archive_cmds_need_lc='no'
9836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9837 hardcode_libdir_separator=:
9840 osf4* | osf5*) # as osf3* with the addition of -msym flag
9841 if test "$GCC" = yes; then
9842 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9843 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'
9844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9846 allow_undefined_flag=' -expect_unresolved \*'
9847 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'
9848 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~
9849 $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'
9851 # Both c and cxx compiler support -rpath directly
9852 hardcode_libdir_flag_spec='-rpath $libdir'
9854 archive_cmds_need_lc='no'
9855 hardcode_libdir_separator=:
9859 no_undefined_flag=' -z defs'
9860 if test "$GCC" = yes; then
9862 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9863 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9864 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9866 case `$CC -V 2>&1` in
9869 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9870 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9871 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9875 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9876 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9877 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9881 hardcode_libdir_flag_spec='-R$libdir'
9882 hardcode_shlibpath_var=no
9884 solaris2.[0-5] | solaris2.[0-5].*) ;;
9886 # The compiler driver will combine and reorder linker options,
9887 # but understands `-z linker_flag'. GCC discards it without `$wl',
9888 # but is careful enough not to reorder.
9889 # Supported since Solaris 2.6 (maybe 2.5.1?)
9890 if test "$GCC" = yes; then
9891 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9893 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9897 link_all_deplibs=yes
9901 if test "x$host_vendor" = xsequent; then
9902 # Use $CC to link under sequent, because it throws in some extra .o
9903 # files that make .init and .fini sections work.
9904 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9906 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9908 hardcode_libdir_flag_spec='-L$libdir'
9910 hardcode_minus_L=yes
9911 hardcode_shlibpath_var=no
9915 case $host_vendor in
9917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9918 hardcode_direct=yes # is this really true???
9921 ## LD is ld it makes a PLAMLIB
9922 ## CC just makes a GrossModule.
9923 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9924 reload_cmds='$CC -r -o $output$reload_objs'
9928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9929 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9932 runpath_var='LD_RUN_PATH'
9933 hardcode_shlibpath_var=no
9937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9938 hardcode_shlibpath_var=no
9939 export_dynamic_flag_spec='-Bexport'
9943 if test -d /usr/nec; then
9944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_shlibpath_var=no
9946 runpath_var=LD_RUN_PATH
9947 hardcode_runpath_var=yes
9952 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9953 no_undefined_flag='${wl}-z,text'
9954 archive_cmds_need_lc=no
9955 hardcode_shlibpath_var=no
9956 runpath_var='LD_RUN_PATH'
9958 if test "$GCC" = yes; then
9959 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9960 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9962 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9963 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9967 sysv5* | sco3.2v5* | sco5v6*)
9968 # Note: We can NOT use -z defs as we might desire, because we do not
9969 # link with -lc, and that would cause any symbols used from libc to
9970 # always be unresolved, which means just about no library would
9971 # ever link correctly. If we're not using GNU ld we use -z text
9972 # though, which does catch some bad symbols but isn't as heavy-handed
9974 no_undefined_flag='${wl}-z,text'
9975 allow_undefined_flag='${wl}-z,nodefs'
9976 archive_cmds_need_lc=no
9977 hardcode_shlibpath_var=no
9978 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9979 hardcode_libdir_separator=':'
9980 link_all_deplibs=yes
9981 export_dynamic_flag_spec='${wl}-Bexport'
9982 runpath_var='LD_RUN_PATH'
9984 if test "$GCC" = yes; then
9985 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9986 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9989 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9995 hardcode_libdir_flag_spec='-L$libdir'
9996 hardcode_shlibpath_var=no
10004 if test x$host_vendor = xsni; then
10006 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10007 export_dynamic_flag_spec='${wl}-Blargedynsym'
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10014 $as_echo "$ld_shlibs" >&6; }
10015 test "$ld_shlibs" = no && can_build_shared=no
10017 with_gnu_ld=$with_gnu_ld
10034 # Do we need to explicitly link libc?
10036 case "x$archive_cmds_need_lc" in
10038 # Assume -lc should be added
10039 archive_cmds_need_lc=yes
10041 if test "$enable_shared" = yes && test "$GCC" = yes; then
10042 case $archive_cmds in
10044 # FIXME: we may have to deal with multi-command sequences.
10047 # Test whether the compiler implicitly links with -lc since on some
10048 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10049 # to ld, don't add -lc before -lgcc.
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10051 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10056 (eval $ac_compile) 2>&5
10058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10059 test $ac_status = 0; } 2>conftest.err; then
10062 libobjs=conftest.$ac_objext
10064 wl=$lt_prog_compiler_wl
10065 pic_flag=$lt_prog_compiler_pic
10071 lt_save_allow_undefined_flag=$allow_undefined_flag
10072 allow_undefined_flag=
10073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10074 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10077 test $ac_status = 0; }
10079 archive_cmds_need_lc=no
10081 archive_cmds_need_lc=yes
10083 allow_undefined_flag=$lt_save_allow_undefined_flag
10085 cat conftest.err 1>&5
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10089 $as_echo "$archive_cmds_need_lc" >&6; }
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10253 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10255 if test "$GCC" = yes; then
10257 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10258 *) lt_awk_arg="/^libraries:/" ;;
10260 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10261 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10262 # if the path contains ";" then we assume it to be the separator
10263 # otherwise default to the standard path separator (i.e. ":") - it is
10264 # assumed that no part of a normal pathname contains ";" but that should
10265 # okay in the real world where ";" in dirpaths is itself problematic.
10266 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10268 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10270 # Ok, now we have the path, separated by spaces, we can step through it
10271 # and add multilib dir if necessary.
10272 lt_tmp_lt_search_path_spec=
10273 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10274 for lt_sys_path in $lt_search_path_spec; do
10275 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10276 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10278 test -d "$lt_sys_path" && \
10279 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10282 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10283 BEGIN {RS=" "; FS="/|\n";} {
10286 for (lt_i = NF; lt_i > 0; lt_i--) {
10287 if ($lt_i != "" && $lt_i != ".") {
10288 if ($lt_i == "..") {
10291 if (lt_count == 0) {
10292 lt_foo="/" $lt_i lt_foo;
10299 if (lt_foo != "") { lt_freq[lt_foo]++; }
10300 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10302 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10304 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10306 library_names_spec=
10307 libname_spec='lib$name'
10311 postuninstall_cmds=
10315 shlibpath_overrides_runpath=unknown
10317 dynamic_linker="$host_os ld.so"
10318 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10319 need_lib_prefix=unknown
10320 hardcode_into_libs=no
10322 # when you set need_version to no, make sure it does not cause -set_version
10323 # flags to be left without arguments
10324 need_version=unknown
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10330 shlibpath_var=LIBPATH
10332 # AIX 3 has no versioning support, so we append a major version to the name.
10333 soname_spec='${libname}${release}${shared_ext}$major'
10340 hardcode_into_libs=yes
10341 if test "$host_cpu" = ia64; then
10342 # AIX 5 supports IA64
10343 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10344 shlibpath_var=LD_LIBRARY_PATH
10346 # With GCC up to 2.95.x, collect2 would create an import file
10347 # for dependence libraries. The import file would start with
10348 # the line `#! .'. This would cause the generated library to
10349 # depend on `.', always an invalid library. This was fixed in
10350 # development snapshots of GCC prior to 3.0.
10352 aix4 | aix4.[01] | aix4.[01].*)
10353 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10355 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10358 can_build_shared=no
10362 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10363 # soname into executable. Probably we can add versioning support to
10364 # collect2, so additional links can be useful in future.
10365 if test "$aix_use_runtimelinking" = yes; then
10366 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10367 # instead of lib<name>.a to let people know that these are not
10368 # typical AIX shared libraries.
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 # We preserve .a as extension for shared libraries through AIX4.2
10372 # and later when we are not doing run time linking.
10373 library_names_spec='${libname}${release}.a $libname.a'
10374 soname_spec='${libname}${release}${shared_ext}$major'
10376 shlibpath_var=LIBPATH
10383 # Since July 2007 AmigaOS4 officially supports .so libraries.
10384 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 library_names_spec='$libname.ixlibrary $libname.a'
10389 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10390 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'
10396 library_names_spec='${libname}${shared_ext}'
10397 dynamic_linker="$host_os ld.so"
10398 shlibpath_var=LIBRARY_PATH
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10409 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10410 # the default ld.so.conf also contains /usr/contrib/lib and
10411 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10412 # libtool to hard-code these into programs
10415 cygwin* | mingw* | pw32* | cegcc*)
10416 version_type=windows
10421 case $GCC,$host_os in
10422 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10423 library_names_spec='$libname.dll.a'
10424 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10425 postinstall_cmds='base_file=`basename \${file}`~
10426 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10427 dldir=$destdir/`dirname \$dlpath`~
10428 test -d \$dldir || mkdir -p \$dldir~
10429 $install_prog $dir/$dlname \$dldir/$dlname~
10430 chmod a+x \$dldir/$dlname~
10431 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10432 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10434 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10435 dlpath=$dir/\$dldll~
10437 shlibpath_overrides_runpath=yes
10441 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10442 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10443 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10446 # MinGW DLLs use traditional 'lib' prefix
10447 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10448 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10449 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10450 # It is most probably a Windows format PATH printed by
10451 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10452 # path with ; separators, and with drive letters. We can handle the
10453 # drive letters (cygwin fileutils understands them), so leave them,
10454 # especially as we might pass files found there to a mingw objdump,
10455 # which wouldn't understand a cygwinified path. Ahh.
10456 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10458 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10462 # pw32 DLLs use 'pw' prefix rather than 'lib'
10463 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10469 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10472 dynamic_linker='Win32 ld.exe'
10473 # FIXME: first we should search . and the directory the executable is in
10477 darwin* | rhapsody*)
10478 dynamic_linker="$host_os dyld"
10479 version_type=darwin
10482 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10483 soname_spec='${libname}${release}${major}$shared_ext'
10484 shlibpath_overrides_runpath=yes
10485 shlibpath_var=DYLD_LIBRARY_PATH
10486 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10488 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10489 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10497 soname_spec='${libname}${release}${shared_ext}$major'
10498 shlibpath_var=LD_LIBRARY_PATH
10505 freebsd* | dragonfly*)
10506 # DragonFly does not have aout. When/if they implement a new
10507 # versioning mechanism, adjust this.
10508 if test -x /usr/bin/objformat; then
10509 objformat=`/usr/bin/objformat`
10512 freebsd[123]*) objformat=aout ;;
10513 *) objformat=elf ;;
10516 version_type=freebsd-$objformat
10517 case $version_type in
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10528 shlibpath_var=LD_LIBRARY_PATH
10531 shlibpath_overrides_runpath=yes
10533 freebsd3.[01]* | freebsdelf3.[01]*)
10534 shlibpath_overrides_runpath=yes
10535 hardcode_into_libs=yes
10537 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10538 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10539 shlibpath_overrides_runpath=no
10540 hardcode_into_libs=yes
10542 *) # from 4.6 on, and DragonFly
10543 shlibpath_overrides_runpath=yes
10544 hardcode_into_libs=yes
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10554 soname_spec='${libname}${release}${shared_ext}$major'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 hardcode_into_libs=yes
10559 hpux9* | hpux10* | hpux11*)
10560 # Give a soname corresponding to the major version so that dld.sl refuses to
10561 # link against other versions.
10568 hardcode_into_libs=yes
10569 dynamic_linker="$host_os dld.so"
10570 shlibpath_var=LD_LIBRARY_PATH
10571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573 soname_spec='${libname}${release}${shared_ext}$major'
10574 if test "X$HPUX_IA64_MODE" = X32; then
10575 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10577 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10583 hardcode_into_libs=yes
10584 dynamic_linker="$host_os dld.sl"
10585 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10594 dynamic_linker="$host_os dld.sl"
10595 shlibpath_var=SHLIB_PATH
10596 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10601 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10602 postinstall_cmds='chmod 555 $lib'
10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10610 soname_spec='${libname}${release}${shared_ext}$major'
10611 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 shlibpath_overrides_runpath=no
10614 hardcode_into_libs=yes
10617 irix5* | irix6* | nonstopux*)
10619 nonstopux*) version_type=nonstopux ;;
10621 if test "$lt_cv_prog_gnu_ld" = yes; then
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10632 irix5* | nonstopux*)
10633 libsuff= shlibsuff=
10636 case $LD in # libtool.m4 will add one of these switches to LD
10637 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10638 libsuff= shlibsuff= libmagic=32-bit;;
10639 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10640 libsuff=32 shlibsuff=N32 libmagic=N32;;
10641 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10642 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10643 *) libsuff= shlibsuff= libmagic=never-match;;
10647 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10648 shlibpath_overrides_runpath=no
10649 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10650 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10651 hardcode_into_libs=yes
10654 # No shared lib support for Linux oldld, aout, or coff.
10655 linux*oldld* | linux*aout* | linux*coff*)
10659 # This must be Linux ELF.
10660 linux* | k*bsd*-gnu)
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665 soname_spec='${libname}${release}${shared_ext}$major'
10666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 shlibpath_overrides_runpath=no
10669 # Some binutils ld are patched to set DT_RUNPATH
10670 save_LDFLAGS=$LDFLAGS
10671 save_libdir=$libdir
10672 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10673 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10685 if ac_fn_c_try_link "$LINENO"; then :
10686 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10687 shlibpath_overrides_runpath=yes
10690 rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10692 LDFLAGS=$save_LDFLAGS
10693 libdir=$save_libdir
10695 # This implies no fast_install, which is unacceptable.
10696 # Some rework will be needed to allow for fast_install
10697 # before this can be enabled.
10698 hardcode_into_libs=yes
10700 # Append ld.so.conf contents to the search path
10701 if test -f /etc/ld.so.conf; then
10702 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' ' '`
10703 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10706 # We used to test for /lib/ld.so.1 and disable shared libraries on
10707 # powerpc, because MkLinux only supported shared libraries with the
10708 # GNU dynamic linker. Since this was broken with cross compilers,
10709 # most powerpc-linux boxes support dynamic linking these days and
10710 # people can always --disable-shared, the test was removed, and we
10711 # assume the GNU/Linux dynamic linker is in use.
10712 dynamic_linker='GNU/Linux ld.so'
10719 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10722 dynamic_linker='NetBSD (a.out) ld.so'
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10725 soname_spec='${libname}${release}${shared_ext}$major'
10726 dynamic_linker='NetBSD ld.elf_so'
10728 shlibpath_var=LD_LIBRARY_PATH
10729 shlibpath_overrides_runpath=yes
10730 hardcode_into_libs=yes
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736 shlibpath_var=LD_LIBRARY_PATH
10737 shlibpath_overrides_runpath=yes
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745 soname_spec='${libname}${release}${shared_ext}$major'
10746 shlibpath_var=LD_LIBRARY_PATH
10747 shlibpath_overrides_runpath=no
10748 hardcode_into_libs=yes
10749 dynamic_linker='ldqnx.so'
10754 sys_lib_dlsearch_path_spec="/usr/lib"
10756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10758 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10759 *) need_version=no ;;
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10763 shlibpath_var=LD_LIBRARY_PATH
10764 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10766 openbsd2.[89] | openbsd2.[89].*)
10767 shlibpath_overrides_runpath=no
10770 shlibpath_overrides_runpath=yes
10774 shlibpath_overrides_runpath=yes
10779 libname_spec='$name'
10782 library_names_spec='$libname${shared_ext} $libname.a'
10783 dynamic_linker='OS/2 ld.exe'
10784 shlibpath_var=LIBPATH
10787 osf3* | osf4* | osf5*)
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10793 shlibpath_var=LD_LIBRARY_PATH
10794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10807 soname_spec='${libname}${release}${shared_ext}$major'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 shlibpath_overrides_runpath=yes
10810 hardcode_into_libs=yes
10811 # ldd complains unless libraries are executable
10812 postinstall_cmds='chmod +x $lib'
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10818 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10819 shlibpath_var=LD_LIBRARY_PATH
10820 shlibpath_overrides_runpath=yes
10821 if test "$with_gnu_ld" = yes; then
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 case $host_vendor in
10834 shlibpath_overrides_runpath=no
10836 runpath_var=LD_RUN_PATH
10844 shlibpath_overrides_runpath=no
10845 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10851 if test -d /usr/nec ;then
10853 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10854 soname_spec='$libname${shared_ext}.$major'
10855 shlibpath_var=LD_LIBRARY_PATH
10859 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10860 version_type=freebsd-elf
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 shlibpath_var=LD_LIBRARY_PATH
10866 shlibpath_overrides_runpath=yes
10867 hardcode_into_libs=yes
10868 if test "$with_gnu_ld" = yes; then
10869 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10871 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10874 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10878 sys_lib_dlsearch_path_spec='/usr/lib'
10882 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10887 shlibpath_var=LD_LIBRARY_PATH
10888 shlibpath_overrides_runpath=no
10889 hardcode_into_libs=yes
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 shlibpath_var=LD_LIBRARY_PATH
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10904 $as_echo "$dynamic_linker" >&6; }
10905 test "$dynamic_linker" = no && can_build_shared=no
10907 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10908 if test "$GCC" = yes; then
10909 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10912 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10913 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10915 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10916 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11006 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11008 if test -n "$hardcode_libdir_flag_spec" ||
11009 test -n "$runpath_var" ||
11010 test "X$hardcode_automatic" = "Xyes" ; then
11012 # We can hardcode non-existent directories.
11013 if test "$hardcode_direct" != no &&
11014 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11015 # have to relink, otherwise we might link with an installed library
11016 # when we should be linking with a yet-to-be-installed one
11017 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11018 test "$hardcode_minus_L" != no; then
11019 # Linking always hardcodes the temporary library directory.
11020 hardcode_action=relink
11022 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11023 hardcode_action=immediate
11026 # We cannot hardcode anything, or else we can only hardcode existing
11028 hardcode_action=unsupported
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11031 $as_echo "$hardcode_action" >&6; }
11033 if test "$hardcode_action" = relink ||
11034 test "$inherit_rpath" = yes; then
11035 # Fast installation is not supported
11036 enable_fast_install=no
11037 elif test "$shlibpath_overrides_runpath" = yes ||
11038 test "$enable_shared" = no; then
11039 # Fast installation is not necessary
11040 enable_fast_install=needless
11048 if test "x$enable_dlopen" != xyes; then
11049 enable_dlopen=unknown
11050 enable_dlopen_self=unknown
11051 enable_dlopen_self_static=unknown
11058 lt_cv_dlopen="load_add_on"
11060 lt_cv_dlopen_self=yes
11063 mingw* | pw32* | cegcc*)
11064 lt_cv_dlopen="LoadLibrary"
11069 lt_cv_dlopen="dlopen"
11074 # if libdl is installed we need to link against it
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11076 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11077 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11078 $as_echo_n "(cached) " >&6
11080 ac_check_lib_save_LIBS=$LIBS
11082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h. */
11085 /* Override any GCC internal prototype to avoid an error.
11086 Use char because int might match the return type of a GCC
11087 builtin and then its argument prototype would still apply. */
11100 if ac_fn_c_try_link "$LINENO"; then :
11101 ac_cv_lib_dl_dlopen=yes
11103 ac_cv_lib_dl_dlopen=no
11105 rm -f core conftest.err conftest.$ac_objext \
11106 conftest$ac_exeext conftest.$ac_ext
11107 LIBS=$ac_check_lib_save_LIBS
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11110 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11111 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11115 lt_cv_dlopen="dyld"
11117 lt_cv_dlopen_self=yes
11124 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11125 if test "x$ac_cv_func_shl_load" = x""yes; then :
11126 lt_cv_dlopen="shl_load"
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11129 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11130 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11131 $as_echo_n "(cached) " >&6
11133 ac_check_lib_save_LIBS=$LIBS
11135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h. */
11138 /* Override any GCC internal prototype to avoid an error.
11139 Use char because int might match the return type of a GCC
11140 builtin and then its argument prototype would still apply. */
11148 return shl_load ();
11153 if ac_fn_c_try_link "$LINENO"; then :
11154 ac_cv_lib_dld_shl_load=yes
11156 ac_cv_lib_dld_shl_load=no
11158 rm -f core conftest.err conftest.$ac_objext \
11159 conftest$ac_exeext conftest.$ac_ext
11160 LIBS=$ac_check_lib_save_LIBS
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11163 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11164 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11165 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11167 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11168 if test "x$ac_cv_func_dlopen" = x""yes; then :
11169 lt_cv_dlopen="dlopen"
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11172 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11173 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11174 $as_echo_n "(cached) " >&6
11176 ac_check_lib_save_LIBS=$LIBS
11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11181 /* Override any GCC internal prototype to avoid an error.
11182 Use char because int might match the return type of a GCC
11183 builtin and then its argument prototype would still apply. */
11196 if ac_fn_c_try_link "$LINENO"; then :
11197 ac_cv_lib_dl_dlopen=yes
11199 ac_cv_lib_dl_dlopen=no
11201 rm -f core conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 LIBS=$ac_check_lib_save_LIBS
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11206 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11207 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11211 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11212 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11213 $as_echo_n "(cached) " >&6
11215 ac_check_lib_save_LIBS=$LIBS
11216 LIBS="-lsvld $LIBS"
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11235 if ac_fn_c_try_link "$LINENO"; then :
11236 ac_cv_lib_svld_dlopen=yes
11238 ac_cv_lib_svld_dlopen=no
11240 rm -f core conftest.err conftest.$ac_objext \
11241 conftest$ac_exeext conftest.$ac_ext
11242 LIBS=$ac_check_lib_save_LIBS
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11245 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11246 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11247 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11250 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11251 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11252 $as_echo_n "(cached) " >&6
11254 ac_check_lib_save_LIBS=$LIBS
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11259 /* Override any GCC internal prototype to avoid an error.
11260 Use char because int might match the return type of a GCC
11261 builtin and then its argument prototype would still apply. */
11269 return dld_link ();
11274 if ac_fn_c_try_link "$LINENO"; then :
11275 ac_cv_lib_dld_dld_link=yes
11277 ac_cv_lib_dld_dld_link=no
11279 rm -f core conftest.err conftest.$ac_objext \
11280 conftest$ac_exeext conftest.$ac_ext
11281 LIBS=$ac_check_lib_save_LIBS
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11284 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11285 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11286 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11307 if test "x$lt_cv_dlopen" != xno; then
11313 case $lt_cv_dlopen in
11315 save_CPPFLAGS="$CPPFLAGS"
11316 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11318 save_LDFLAGS="$LDFLAGS"
11319 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11322 LIBS="$lt_cv_dlopen_libs $LIBS"
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11325 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11326 if test "${lt_cv_dlopen_self+set}" = set; then :
11327 $as_echo_n "(cached) " >&6
11329 if test "$cross_compiling" = yes; then :
11330 lt_cv_dlopen_self=cross
11332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11333 lt_status=$lt_dlunknown
11334 cat > conftest.$ac_ext <<_LT_EOF
11335 #line 11335 "configure"
11336 #include "confdefs.h"
11345 # define LT_DLGLOBAL RTLD_GLOBAL
11348 # define LT_DLGLOBAL DL_GLOBAL
11350 # define LT_DLGLOBAL 0
11354 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11355 find out it does not work in some platform. */
11356 #ifndef LT_DLLAZY_OR_NOW
11358 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11361 # define LT_DLLAZY_OR_NOW DL_LAZY
11364 # define LT_DLLAZY_OR_NOW RTLD_NOW
11367 # define LT_DLLAZY_OR_NOW DL_NOW
11369 # define LT_DLLAZY_OR_NOW 0
11376 void fnord() { int i=42;}
11379 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11380 int status = $lt_dlunknown;
11384 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11385 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11386 /* dlclose (self); */
11394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11395 (eval $ac_link) 2>&5
11397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11398 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11399 (./conftest; exit; ) >&5 2>/dev/null
11401 case x$lt_status in
11402 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11403 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11404 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11407 # compilation failed
11408 lt_cv_dlopen_self=no
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11416 $as_echo "$lt_cv_dlopen_self" >&6; }
11418 if test "x$lt_cv_dlopen_self" = xyes; then
11419 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11421 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11422 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11423 $as_echo_n "(cached) " >&6
11425 if test "$cross_compiling" = yes; then :
11426 lt_cv_dlopen_self_static=cross
11428 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11429 lt_status=$lt_dlunknown
11430 cat > conftest.$ac_ext <<_LT_EOF
11431 #line 11431 "configure"
11432 #include "confdefs.h"
11441 # define LT_DLGLOBAL RTLD_GLOBAL
11444 # define LT_DLGLOBAL DL_GLOBAL
11446 # define LT_DLGLOBAL 0
11450 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11451 find out it does not work in some platform. */
11452 #ifndef LT_DLLAZY_OR_NOW
11454 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11457 # define LT_DLLAZY_OR_NOW DL_LAZY
11460 # define LT_DLLAZY_OR_NOW RTLD_NOW
11463 # define LT_DLLAZY_OR_NOW DL_NOW
11465 # define LT_DLLAZY_OR_NOW 0
11472 void fnord() { int i=42;}
11475 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11476 int status = $lt_dlunknown;
11480 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11481 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11482 /* dlclose (self); */
11490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11491 (eval $ac_link) 2>&5
11493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11495 (./conftest; exit; ) >&5 2>/dev/null
11497 case x$lt_status in
11498 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11499 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11500 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11503 # compilation failed
11504 lt_cv_dlopen_self_static=no
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11512 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11515 CPPFLAGS="$save_CPPFLAGS"
11516 LDFLAGS="$save_LDFLAGS"
11521 case $lt_cv_dlopen_self in
11522 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11523 *) enable_dlopen_self=unknown ;;
11526 case $lt_cv_dlopen_self_static in
11527 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11528 *) enable_dlopen_self_static=unknown ;;
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11551 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11552 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11553 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11554 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11556 $as_echo "yes" >&6; }
11558 # FIXME - insert some real tests, host_os isn't really good enough
11561 if test -n "$STRIP" ; then
11562 striplib="$STRIP -x"
11563 old_striplib="$STRIP -S"
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11565 $as_echo "yes" >&6; }
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568 $as_echo "no" >&6; }
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11589 # Report which library types will actually be built
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11591 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11593 $as_echo "$can_build_shared" >&6; }
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11596 $as_echo_n "checking whether to build shared libraries... " >&6; }
11597 test "$can_build_shared" = "no" && enable_shared=no
11599 # On AIX, shared libraries and static libraries use the same namespace, and
11600 # are all built from PIC.
11603 test "$enable_shared" = yes && enable_static=no
11604 if test -n "$RANLIB"; then
11605 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11606 postinstall_cmds='$RANLIB $lib'
11611 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11612 test "$enable_shared" = yes && enable_static=no
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11617 $as_echo "$enable_shared" >&6; }
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11620 $as_echo_n "checking whether to build static libraries... " >&6; }
11621 # Make sure either enable_shared or enable_static is yes.
11622 test "$enable_shared" = yes || enable_static=yes
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11624 $as_echo "$enable_static" >&6; }
11631 ac_cpp='$CPP $CPPFLAGS'
11632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11650 ac_config_commands="$ac_config_commands libtool"
11655 # Only expand once:
11659 # Check damageext configuration, strip extra digits from package version to
11660 # find the required protocol version
11662 DAMAGEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDAMAGE" >&5
11667 $as_echo_n "checking for XDAMAGE... " >&6; }
11669 if test -n "$XDAMAGE_CFLAGS"; then
11670 pkg_cv_XDAMAGE_CFLAGS="$XDAMAGE_CFLAGS"
11671 elif test -n "$PKG_CONFIG"; then
11672 if test -n "$PKG_CONFIG" && \
11673 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"damageproto >= \$DAMAGEEXT_VERSION xfixes fixesproto xextproto x11\""; } >&5
11674 ($PKG_CONFIG --exists --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11") 2>&5
11676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11677 test $ac_status = 0; }; then
11678 pkg_cv_XDAMAGE_CFLAGS=`$PKG_CONFIG --cflags "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>/dev/null`
11685 if test -n "$XDAMAGE_LIBS"; then
11686 pkg_cv_XDAMAGE_LIBS="$XDAMAGE_LIBS"
11687 elif test -n "$PKG_CONFIG"; then
11688 if test -n "$PKG_CONFIG" && \
11689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"damageproto >= \$DAMAGEEXT_VERSION xfixes fixesproto xextproto x11\""; } >&5
11690 ($PKG_CONFIG --exists --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11") 2>&5
11692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11693 test $ac_status = 0; }; then
11694 pkg_cv_XDAMAGE_LIBS=`$PKG_CONFIG --libs "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>/dev/null`
11704 if test $pkg_failed = yes; then
11706 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11707 _pkg_short_errors_supported=yes
11709 _pkg_short_errors_supported=no
11711 if test $_pkg_short_errors_supported = yes; then
11712 XDAMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>&1`
11714 XDAMAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>&1`
11716 # Put the nasty error message in config.log where it belongs
11717 echo "$XDAMAGE_PKG_ERRORS" >&5
11719 as_fn_error "Package requirements (damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11) were not met:
11721 $XDAMAGE_PKG_ERRORS
11723 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11724 installed software in a non-standard prefix.
11726 Alternatively, you may set the environment variables XDAMAGE_CFLAGS
11727 and XDAMAGE_LIBS to avoid the need to call pkg-config.
11728 See the pkg-config man page for more details.
11730 elif test $pkg_failed = untried; then
11731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11733 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
11734 is in your PATH or set the PKG_CONFIG environment variable to the full
11735 path to pkg-config.
11737 Alternatively, you may set the environment variables XDAMAGE_CFLAGS
11738 and XDAMAGE_LIBS to avoid the need to call pkg-config.
11739 See the pkg-config man page for more details.
11741 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11742 See \`config.log' for more details." "$LINENO" 5; }
11744 XDAMAGE_CFLAGS=$pkg_cv_XDAMAGE_CFLAGS
11745 XDAMAGE_LIBS=$pkg_cv_XDAMAGE_LIBS
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11747 $as_echo "yes" >&6; }
11752 ac_config_files="$ac_config_files Makefile src/Makefile xdamage.pc"
11754 cat >confcache <<\_ACEOF
11755 # This file is a shell script that caches the results of configure
11756 # tests run on this system so they can be shared between configure
11757 # scripts and configure runs, see configure's option --config-cache.
11758 # It is not useful on other systems. If it contains results you don't
11759 # want to keep, you may remove or edit it.
11761 # config.status only pays attention to the cache file if you give it
11762 # the --recheck option to rerun configure.
11764 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11765 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11766 # following values.
11770 # The following way of writing the cache mishandles newlines in values,
11771 # but we know of no workaround that is simple, portable, and efficient.
11772 # So, we kill variables containing newlines.
11773 # Ultrix sh set writes to stderr and can't be redirected directly,
11774 # and sets the high bit in the cache file unless we assign to the vars.
11776 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11777 eval ac_val=\$$ac_var
11781 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11782 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11785 _ | IFS | as_nl) ;; #(
11786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11787 *) { eval $ac_var=; unset $ac_var;} ;;
11793 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11794 *${as_nl}ac_space=\ *)
11795 # `set' does not quote correctly, so add quotes: double-quote
11796 # substitution turns \\\\ into \\, and sed turns \\ into \.
11799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11802 # `set' quotes correctly as required by POSIX, so do not add quotes.
11803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11812 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11814 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11816 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11817 if test -w "$cache_file"; then
11818 test "x$cache_file" != "x/dev/null" &&
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11820 $as_echo "$as_me: updating cache $cache_file" >&6;}
11821 cat confcache >$cache_file
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11824 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11829 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11830 # Let make expand exec_prefix.
11831 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11833 DEFS=-DHAVE_CONFIG_H
11837 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11838 # 1. Remove the extension, and $U if already installed.
11839 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11840 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11841 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11842 # will be set to the directory where LIBOBJS objects are built.
11843 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11844 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11846 LIBOBJS=$ac_libobjs
11848 LTLIBOBJS=$ac_ltlibobjs
11851 if test -n "$EXEEXT"; then
11853 am__EXEEXT_FALSE='#'
11855 am__EXEEXT_TRUE='#'
11859 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11860 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11863 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11864 as_fn_error "conditional \"AMDEP\" was never defined.
11865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11867 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11868 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11871 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11872 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11876 : ${CONFIG_STATUS=./config.status}
11878 ac_clean_files_save=$ac_clean_files
11879 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11881 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11883 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11885 # Generated by $as_me.
11886 # Run this file to recreate the current configuration.
11887 # Compiler output produced by configure, useful for debugging
11888 # configure, is in config.log if it exists.
11891 ac_cs_recheck=false
11894 SHELL=\${CONFIG_SHELL-$SHELL}
11897 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11898 ## -------------------- ##
11899 ## M4sh Initialization. ##
11900 ## -------------------- ##
11902 # Be more Bourne compatible
11903 DUALCASE=1; export DUALCASE # for MKS sh
11904 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11907 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11908 # is contrary to our usage. Disable this feature.
11909 alias -g '${1+"$@"}'='"$@"'
11910 setopt NO_GLOB_SUBST
11912 case `(set -o) 2>/dev/null` in #(
11924 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11925 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11926 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11927 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11928 # Prefer a ksh shell builtin over an external printf program on Solaris,
11929 # but without wasting forks for bash or zsh.
11930 if test -z "$BASH_VERSION$ZSH_VERSION" \
11931 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11932 as_echo='print -r --'
11933 as_echo_n='print -rn --'
11934 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11935 as_echo='printf %s\n'
11936 as_echo_n='printf %s'
11938 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11939 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11940 as_echo_n='/usr/ucb/echo -n'
11942 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11943 as_echo_n_body='eval
11947 expr "X$arg" : "X\\(.*\\)$as_nl";
11948 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11950 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11952 export as_echo_n_body
11953 as_echo_n='sh -c $as_echo_n_body as_echo'
11955 export as_echo_body
11956 as_echo='sh -c $as_echo_body as_echo'
11959 # The user is always right.
11960 if test "${PATH_SEPARATOR+set}" != set; then
11962 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11963 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11970 # We need space, tab and new line, in precisely that order. Quoting is
11971 # there to prevent editors from complaining about space-tab.
11972 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11973 # splitting by setting IFS to empty value.)
11976 # Find who we are. Look in the path if we contain no directory separator.
11978 *[\\/]* ) as_myself=$0 ;;
11979 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11980 for as_dir in $PATH
11983 test -z "$as_dir" && as_dir=.
11984 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11990 # We did not find ourselves, most probably we were run as `sh COMMAND'
11991 # in which case we are not to be found in the path.
11992 if test "x$as_myself" = x; then
11995 if test ! -f "$as_myself"; then
11996 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12000 # Unset variables that we do not need and which cause bugs (e.g. in
12001 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12002 # suppresses any "Segmentation fault" message there. '((' could
12003 # trigger a bug in pdksh 5.2.14.
12004 for as_var in BASH_ENV ENV MAIL MAILPATH
12005 do eval test x\${$as_var+set} = xset \
12006 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12019 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12022 # as_fn_error ERROR [LINENO LOG_FD]
12023 # ---------------------------------
12024 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12025 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12026 # script with status $?, using 1 if that was 0.
12029 as_status=$?; test $as_status -eq 0 && as_status=1
12031 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12032 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12034 $as_echo "$as_me: error: $1" >&2
12035 as_fn_exit $as_status
12039 # as_fn_set_status STATUS
12040 # -----------------------
12041 # Set $? to STATUS, without forking.
12042 as_fn_set_status ()
12045 } # as_fn_set_status
12047 # as_fn_exit STATUS
12048 # -----------------
12049 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12053 as_fn_set_status $1
12059 # Portably unset VAR.
12062 { eval $1=; unset $1;}
12064 as_unset=as_fn_unset
12065 # as_fn_append VAR VALUE
12066 # ----------------------
12067 # Append the text in VALUE to the end of the definition contained in VAR. Take
12068 # advantage of any shell optimizations that allow amortized linear growth over
12069 # repeated appends, instead of the typical quadratic growth present in naive
12071 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12072 eval 'as_fn_append ()
12083 # as_fn_arith ARG...
12084 # ------------------
12085 # Perform arithmetic evaluation on the ARGs, and store the result in the
12086 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12087 # must be portable across $(()) and expr.
12088 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12089 eval 'as_fn_arith ()
12096 as_val=`expr "$@" || test $? -eq 1`
12101 if expr a : '\(a\)' >/dev/null 2>&1 &&
12102 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12109 as_basename=basename
12114 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12120 as_me=`$as_basename -- "$0" ||
12121 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12122 X"$0" : 'X\(//\)$' \| \
12123 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12125 sed '/^.*\/\([^/][^/]*\)\/*$/{
12139 # Avoid depending upon Character Ranges.
12140 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12141 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12142 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12143 as_cr_digits='0123456789'
12144 as_cr_alnum=$as_cr_Letters$as_cr_digits
12146 ECHO_C= ECHO_N= ECHO_T=
12147 case `echo -n x` in #(((((
12149 case `echo 'xy\c'` in
12150 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12152 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12159 rm -f conf$$ conf$$.exe conf$$.file
12160 if test -d conf$$.dir; then
12161 rm -f conf$$.dir/conf$$.file
12164 mkdir conf$$.dir 2>/dev/null
12166 if (echo >conf$$.file) 2>/dev/null; then
12167 if ln -s conf$$.file conf$$ 2>/dev/null; then
12169 # ... but there are two gotchas:
12170 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12171 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12172 # In both cases, we have to default to `cp -p'.
12173 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12175 elif ln conf$$.file conf$$ 2>/dev/null; then
12183 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12184 rmdir conf$$.dir 2>/dev/null
12189 # Create "$as_dir" as a directory, including parents if necessary.
12194 -*) as_dir=./$as_dir;;
12196 test -d "$as_dir" || eval $as_mkdir_p || {
12200 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12201 *) as_qdir=$as_dir;;
12203 as_dirs="'$as_qdir' $as_dirs"
12204 as_dir=`$as_dirname -- "$as_dir" ||
12205 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12206 X"$as_dir" : 'X\(//\)[^/]' \| \
12207 X"$as_dir" : 'X\(//\)$' \| \
12208 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12209 $as_echo X"$as_dir" |
12210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12214 /^X\(\/\/\)[^/].*/{
12227 test -d "$as_dir" && break
12229 test -z "$as_dirs" || eval "mkdir $as_dirs"
12230 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12234 if mkdir -p . 2>/dev/null; then
12235 as_mkdir_p='mkdir -p "$as_dir"'
12237 test -d ./-p && rmdir ./-p
12241 if test -x / >/dev/null 2>&1; then
12242 as_test_x='test -x'
12244 if ls -dL / >/dev/null 2>&1; then
12251 if test -d "$1"; then
12257 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12258 ???[sx]*):;;*)false;;esac;fi
12262 as_executable_p=$as_test_x
12264 # Sed expression to map a string onto a valid CPP name.
12265 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12267 # Sed expression to map a string onto a valid variable name.
12268 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12272 ## ----------------------------------- ##
12273 ## Main body of $CONFIG_STATUS script. ##
12274 ## ----------------------------------- ##
12276 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12279 # Save the log message, to keep $0 and so on meaningful, and to
12280 # report actual input values of CONFIG_FILES etc. instead of their
12281 # values after options handling.
12283 This file was extended by libXdamage $as_me 1.1.3, which was
12284 generated by GNU Autoconf 2.65. Invocation command line was
12286 CONFIG_FILES = $CONFIG_FILES
12287 CONFIG_HEADERS = $CONFIG_HEADERS
12288 CONFIG_LINKS = $CONFIG_LINKS
12289 CONFIG_COMMANDS = $CONFIG_COMMANDS
12292 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12297 case $ac_config_files in *"
12298 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12301 case $ac_config_headers in *"
12302 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12307 # Files that config.status was made for.
12308 config_files="$ac_config_files"
12309 config_headers="$ac_config_headers"
12310 config_commands="$ac_config_commands"
12314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12316 \`$as_me' instantiates files and other configuration actions
12317 from templates according to the current configuration. Unless the files
12318 and actions are specified as TAGs, all are instantiated by default.
12320 Usage: $0 [OPTION]... [TAG]...
12322 -h, --help print this help, then exit
12323 -V, --version print version number and configuration settings, then exit
12324 --config print configuration, then exit
12325 -q, --quiet, --silent
12326 do not print progress messages
12327 -d, --debug don't remove temporary files
12328 --recheck update $as_me by reconfiguring in the same conditions
12329 --file=FILE[:TEMPLATE]
12330 instantiate the configuration file FILE
12331 --header=FILE[:TEMPLATE]
12332 instantiate the configuration header FILE
12334 Configuration files:
12337 Configuration headers:
12340 Configuration commands:
12343 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12347 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12349 libXdamage config.status 1.1.3
12350 configured by $0, generated by GNU Autoconf 2.65,
12351 with options \\"\$ac_cs_config\\"
12353 Copyright (C) 2009 Free Software Foundation, Inc.
12354 This config.status script is free software; the Free Software Foundation
12355 gives unlimited permission to copy, distribute and modify it."
12362 test -n "\$AWK" || AWK=awk
12365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12366 # The default lists apply if the user does not specify any file.
12372 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12373 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12384 # Handling of the options.
12385 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12387 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12388 $as_echo "$ac_cs_version"; exit ;;
12389 --config | --confi | --conf | --con | --co | --c )
12390 $as_echo "$ac_cs_config"; exit ;;
12391 --debug | --debu | --deb | --de | --d | -d )
12393 --file | --fil | --fi | --f )
12396 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12398 as_fn_append CONFIG_FILES " '$ac_optarg'"
12399 ac_need_defaults=false;;
12400 --header | --heade | --head | --hea )
12403 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12405 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12406 ac_need_defaults=false;;
12408 # Conflict between --help and --header
12409 as_fn_error "ambiguous option: \`$1'
12410 Try \`$0 --help' for more information.";;
12411 --help | --hel | -h )
12412 $as_echo "$ac_cs_usage"; exit ;;
12413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12414 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12417 # This is an error.
12418 -*) as_fn_error "unrecognized option: \`$1'
12419 Try \`$0 --help' for more information." ;;
12421 *) as_fn_append ac_config_targets " $1"
12422 ac_need_defaults=false ;;
12428 ac_configure_extra_args=
12430 if $ac_cs_silent; then
12432 ac_configure_extra_args="$ac_configure_extra_args --silent"
12436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12437 if \$ac_cs_recheck; then
12438 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12440 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12441 CONFIG_SHELL='$SHELL'
12442 export CONFIG_SHELL
12447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12451 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12452 ## Running $as_me. ##
12458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12462 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12465 # The HP-UX ksh and POSIX shell print the target directory to stdout
12466 # if CDPATH is set.
12467 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12469 sed_quote_subst='$sed_quote_subst'
12470 double_quote_subst='$double_quote_subst'
12471 delay_variable_subst='$delay_variable_subst'
12472 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12473 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12474 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12475 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12476 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12477 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12478 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12479 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12480 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12481 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12482 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12483 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12484 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12485 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12486 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12487 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12488 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12489 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12490 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12491 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12492 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12493 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12494 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12495 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12496 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12497 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12498 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12499 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12500 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12501 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12502 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12503 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12504 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12505 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12506 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12507 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12508 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12509 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12510 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12511 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12512 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12513 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12514 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12515 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12516 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"`'
12517 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"`'
12518 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12519 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12520 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12521 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12522 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12523 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12524 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12525 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12526 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12527 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12528 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12529 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12530 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12531 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12532 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12533 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12534 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12535 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12536 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12537 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12538 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12539 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12540 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12541 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12542 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12543 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12544 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12545 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12546 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12547 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12548 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12549 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12550 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12551 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12552 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12553 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12554 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12555 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12556 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12557 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12558 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12559 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12560 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12561 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12562 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12563 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12564 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12565 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12566 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12567 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12568 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12569 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12570 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12571 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12572 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12573 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12574 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12575 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12576 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12577 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12578 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12579 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12580 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12581 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12582 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12583 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12584 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12585 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12586 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12587 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12588 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12589 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12592 LTCFLAGS='$LTCFLAGS'
12593 compiler='$compiler_DEFAULT'
12595 # Quote evaled strings.
12607 deplibs_check_method \
12616 lt_cv_sys_global_symbol_pipe \
12617 lt_cv_sys_global_symbol_to_cdecl \
12618 lt_cv_sys_global_symbol_to_c_name_address \
12619 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12622 lt_prog_compiler_no_builtin_flag \
12623 lt_prog_compiler_wl \
12624 lt_prog_compiler_pic \
12625 lt_prog_compiler_static \
12626 lt_cv_prog_compiler_c_o \
12634 export_dynamic_flag_spec \
12635 whole_archive_flag_spec \
12636 compiler_needs_object \
12638 allow_undefined_flag \
12639 no_undefined_flag \
12640 hardcode_libdir_flag_spec \
12641 hardcode_libdir_flag_spec_ld \
12642 hardcode_libdir_separator \
12647 variables_saved_for_relink \
12649 library_names_spec \
12654 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12655 *[\\\\\\\`\\"\\\$]*)
12656 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12659 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12664 # Double-quote double-evaled strings.
12665 for var in reload_cmds \
12666 old_postinstall_cmds \
12667 old_postuninstall_cmds \
12669 extract_expsyms_cmds \
12670 old_archive_from_new_cmds \
12671 old_archive_from_expsyms_cmds \
12673 archive_expsym_cmds \
12675 module_expsym_cmds \
12676 export_symbols_cmds \
12679 postuninstall_cmds \
12681 sys_lib_search_path_spec \
12682 sys_lib_dlsearch_path_spec; do
12683 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12684 *[\\\\\\\`\\"\\\$]*)
12685 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12688 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12693 # Fix-up fallback echo if it was mangled by the above quoting rules.
12695 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12699 ac_aux_dir='$ac_aux_dir'
12700 xsi_shell='$xsi_shell'
12701 lt_shell_append='$lt_shell_append'
12703 # See if we are running on zsh, and set the options which allow our
12704 # commands through without removal of \ escapes INIT.
12705 if test -n "\${ZSH_VERSION+set}" ; then
12706 setopt NO_GLOB_SUBST
12712 TIMESTAMP='$TIMESTAMP'
12721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12723 # Handling of arguments.
12724 for ac_config_target in $ac_config_targets
12726 case $ac_config_target in
12727 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12728 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12729 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12730 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12731 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12732 "xdamage.pc") CONFIG_FILES="$CONFIG_FILES xdamage.pc" ;;
12734 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12739 # If the user did not use the arguments to specify the items to instantiate,
12740 # then the envvar interface is used. Set only those that are not.
12741 # We use the long form for the default assignment because of an extremely
12742 # bizarre bug on SunOS 4.1.3.
12743 if $ac_need_defaults; then
12744 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12745 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12746 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12749 # Have a temporary directory for convenience. Make it in the build tree
12750 # simply because there is no reason against having it here, and in addition,
12751 # creating and moving files from /tmp can sometimes cause problems.
12752 # Hook for its removal unless debugging.
12753 # Note that there is a small window in which the directory will not be cleaned:
12754 # after its creation but before its name has been assigned to `$tmp'.
12758 trap 'exit_status=$?
12759 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12761 trap 'as_fn_exit 1' 1 2 13 15
12763 # Create a (secure) tmp directory for tmp files.
12766 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12767 test -n "$tmp" && test -d "$tmp"
12770 tmp=./conf$$-$RANDOM
12771 (umask 077 && mkdir "$tmp")
12772 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12774 # Set up the scripts for CONFIG_FILES section.
12775 # No need to generate them if there are no CONFIG_FILES.
12776 # This happens for instance with `./config.status config.h'.
12777 if test -n "$CONFIG_FILES"; then
12780 ac_cr=`echo X | tr X '\015'`
12781 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12782 # But we know of no other shell where ac_cr would be empty at this
12783 # point, so we can use a bashism as a fallback.
12784 if test "x$ac_cr" = x; then
12785 eval ac_cr=\$\'\\r\'
12787 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12788 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12791 ac_cs_awk_cr=$ac_cr
12794 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12799 echo "cat >conf$$subs.awk <<_ACEOF" &&
12800 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12802 } >conf$$subs.sh ||
12803 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12804 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12806 for ac_last_try in false false false false false :; do
12807 . ./conf$$subs.sh ||
12808 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12810 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12811 if test $ac_delim_n = $ac_delim_num; then
12813 elif $ac_last_try; then
12814 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12816 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12819 rm -f conf$$subs.sh
12821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12822 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12826 s/^/S["/; s/!.*/"]=/
12836 s/\(.\{148\}\)..*/\1/
12838 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12843 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12850 s/\(.\{148\}\)..*/\1/
12852 s/["\\]/\\&/g; s/^/"/; s/$/"/
12856 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12861 ' <conf$$subs.awk | sed '
12866 ' >>$CONFIG_STATUS || ac_write_fail=1
12867 rm -f conf$$subs.awk
12868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12870 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12871 for (key in S) S_is_set[key] = 1
12877 nfields = split(line, field, "@")
12879 len = length(field[1])
12880 for (i = 2; i < nfields; i++) {
12882 keylen = length(key)
12883 if (S_is_set[key]) {
12885 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12886 len += length(value) + length(field[++i])
12897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12898 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12899 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12902 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12903 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12906 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12907 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12908 # trailing colons and then remove the whole line if VPATH becomes empty
12909 # (actually we leave an empty line to preserve line numbers).
12910 if test "x$srcdir" = x.; then
12911 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12912 s/:*\$(srcdir):*/:/
12913 s/:*\${srcdir}:*/:/
12915 s/^\([^=]*=[ ]*\):*/\1/
12921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12922 fi # test -n "$CONFIG_FILES"
12924 # Set up the scripts for CONFIG_HEADERS section.
12925 # No need to generate them if there are no CONFIG_HEADERS.
12926 # This happens for instance with `./config.status Makefile'.
12927 if test -n "$CONFIG_HEADERS"; then
12928 cat >"$tmp/defines.awk" <<\_ACAWK ||
12932 # Transform confdefs.h into an awk script `defines.awk', embedded as
12933 # here-document in config.status, that substitutes the proper values into
12934 # config.h.in to produce config.h.
12936 # Create a delimiter string that does not exist in confdefs.h, to ease
12937 # handling of long lines.
12939 for ac_last_try in false false :; do
12940 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12941 if test -z "$ac_t"; then
12943 elif $ac_last_try; then
12944 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12946 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12950 # For the awk script, D is an array of macro values keyed by name,
12951 # likewise P contains macro parameters if any. Preserve backslash
12952 # newline sequences.
12954 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12956 s/.\{148\}/&'"$ac_delim"'/g
12959 s/^[ ]*#[ ]*define[ ][ ]*/ /
12966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12972 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12973 D["\1"]=" \3\\\\\\n"\\/p
12975 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12980 s/.\{148\}/&'"$ac_delim"'/g
12985 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12988 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12990 ' <confdefs.h | sed '
12991 s/'"$ac_delim"'/"\\\
12992 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12995 for (key in D) D_is_set[key] = 1
12998 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13000 split(line, arg, " ")
13001 if (arg[1] == "#") {
13005 defundef = substr(arg[1], 2)
13008 split(mac1, mac2, "(") #)
13010 prefix = substr(line, 1, index(line, defundef) - 1)
13011 if (D_is_set[macro]) {
13012 # Preserve the white space surrounding the "#".
13013 print prefix "define", macro P[macro] D[macro]
13016 # Replace #undef with comments. This is necessary, for example,
13017 # in the case of _POSIX_SOURCE, which is predefined and required
13018 # on some systems where configure will not decide to define it.
13019 if (defundef == "undef") {
13020 print "/*", prefix defundef, macro, "*/"
13028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13029 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13030 fi # test -n "$CONFIG_HEADERS"
13033 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13038 :[FHLC]) ac_mode=$ac_tag; continue;;
13040 case $ac_mode$ac_tag in
13042 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13043 :[FH]-) ac_tag=-:-;;
13044 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13061 -) ac_f="$tmp/stdin";;
13062 *) # Look for the file first in the build tree, then in the source tree
13063 # (if the path is not absolute). The absolute path cannot be DOS-style,
13064 # because $ac_f cannot contain `:'.
13068 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13070 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13072 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13073 as_fn_append ac_file_inputs " '$ac_f'"
13076 # Let's still pretend it is `configure' which instantiates (i.e., don't
13077 # use $as_me), people would be surprised to read:
13078 # /* config.h. Generated by config.status. */
13079 configure_input='Generated from '`
13080 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13082 if test x"$ac_file" != x-; then
13083 configure_input="$ac_file. $configure_input"
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13085 $as_echo "$as_me: creating $ac_file" >&6;}
13087 # Neutralize special characters interpreted by sed in replacement strings.
13088 case $configure_input in #(
13089 *\&* | *\|* | *\\* )
13090 ac_sed_conf_input=`$as_echo "$configure_input" |
13091 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13092 *) ac_sed_conf_input=$configure_input;;
13096 *:-:* | *:-) cat >"$tmp/stdin" \
13097 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13102 ac_dir=`$as_dirname -- "$ac_file" ||
13103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13104 X"$ac_file" : 'X\(//\)[^/]' \| \
13105 X"$ac_file" : 'X\(//\)$' \| \
13106 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13107 $as_echo X"$ac_file" |
13108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13112 /^X\(\/\/\)[^/].*/{
13125 as_dir="$ac_dir"; as_fn_mkdir_p
13129 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13131 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13132 # A ".." for each directory in $ac_dir_suffix.
13133 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13134 case $ac_top_builddir_sub in
13135 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13136 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13139 ac_abs_top_builddir=$ac_pwd
13140 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13141 # for backward compatibility:
13142 ac_top_builddir=$ac_top_build_prefix
13145 .) # We are building in place.
13147 ac_top_srcdir=$ac_top_builddir_sub
13148 ac_abs_top_srcdir=$ac_pwd ;;
13149 [\\/]* | ?:[\\/]* ) # Absolute name.
13150 ac_srcdir=$srcdir$ac_dir_suffix;
13151 ac_top_srcdir=$srcdir
13152 ac_abs_top_srcdir=$srcdir ;;
13153 *) # Relative name.
13154 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13155 ac_top_srcdir=$ac_top_build_prefix$srcdir
13156 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13158 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13168 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13169 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13171 ac_MKDIR_P=$MKDIR_P
13173 [\\/$]* | ?:[\\/]* ) ;;
13174 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13179 # If the template does not know about datarootdir, expand it.
13180 # FIXME: This hack should be removed a few years after 2.60.
13181 ac_datarootdir_hack=; ac_datarootdir_seen=
13192 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13193 *datarootdir*) ac_datarootdir_seen=yes;;
13194 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13196 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13199 ac_datarootdir_hack='
13200 s&@datadir@&$datadir&g
13201 s&@docdir@&$docdir&g
13202 s&@infodir@&$infodir&g
13203 s&@localedir@&$localedir&g
13204 s&@mandir@&$mandir&g
13205 s&\\\${datarootdir}&$datarootdir&g' ;;
13209 # Neutralize VPATH when `$srcdir' = `.'.
13210 # Shell code in configure.ac might set extrasub.
13211 # FIXME: do we really want to maintain this feature?
13212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13213 ac_sed_extra="$ac_vpsub
13216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13219 s|@configure_input@|$ac_sed_conf_input|;t t
13220 s&@top_builddir@&$ac_top_builddir_sub&;t t
13221 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13222 s&@srcdir@&$ac_srcdir&;t t
13223 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13224 s&@top_srcdir@&$ac_top_srcdir&;t t
13225 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13226 s&@builddir@&$ac_builddir&;t t
13227 s&@abs_builddir@&$ac_abs_builddir&;t t
13228 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13229 s&@INSTALL@&$ac_INSTALL&;t t
13230 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13231 $ac_datarootdir_hack
13233 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13234 || as_fn_error "could not create $ac_file" "$LINENO" 5
13236 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13237 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13238 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13240 which seems to be undefined. Please make sure it is defined." >&5
13241 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13242 which seems to be undefined. Please make sure it is defined." >&2;}
13246 -) cat "$tmp/out" && rm -f "$tmp/out";;
13247 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13249 || as_fn_error "could not create $ac_file" "$LINENO" 5
13255 if test x"$ac_file" != x-; then
13257 $as_echo "/* $configure_input */" \
13258 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13259 } >"$tmp/config.h" \
13260 || as_fn_error "could not create $ac_file" "$LINENO" 5
13261 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13263 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13266 mv "$tmp/config.h" "$ac_file" \
13267 || as_fn_error "could not create $ac_file" "$LINENO" 5
13270 $as_echo "/* $configure_input */" \
13271 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13272 || as_fn_error "could not create -" "$LINENO" 5
13274 # Compute "$ac_file"'s index in $config_headers.
13277 for _am_header in $config_headers :; do
13278 case $_am_header in
13279 $_am_arg | $_am_arg:* )
13282 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13285 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13286 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13287 X"$_am_arg" : 'X\(//\)[^/]' \| \
13288 X"$_am_arg" : 'X\(//\)$' \| \
13289 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13290 $as_echo X"$_am_arg" |
13291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13295 /^X\(\/\/\)[^/].*/{
13307 s/.*/./; q'`/stamp-h$_am_stamp_count
13310 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13311 $as_echo "$as_me: executing $ac_file commands" >&6;}
13316 case $ac_file$ac_mode in
13317 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13318 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13319 # are listed without --file. Let's play safe and only enable the eval
13320 # if we detect the quoting.
13321 case $CONFIG_FILES in
13322 *\'*) eval set x "$CONFIG_FILES" ;;
13323 *) set x $CONFIG_FILES ;;
13328 # Strip MF so we end up with the name of the file.
13329 mf=`echo "$mf" | sed -e 's/:.*$//'`
13330 # Check whether this is an Automake generated Makefile or not.
13331 # We used to match only the files named `Makefile.in', but
13332 # some people rename them; so instead we look at the file content.
13333 # Grep'ing the first line is not enough: some people post-process
13334 # each Makefile.in and add a new line on top of each file to say so.
13335 # Grep'ing the whole file is not good either: AIX grep has a line
13336 # limit of 2048, but all sed's we know have understand at least 4000.
13337 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13338 dirpart=`$as_dirname -- "$mf" ||
13339 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13340 X"$mf" : 'X\(//\)[^/]' \| \
13341 X"$mf" : 'X\(//\)$' \| \
13342 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13348 /^X\(\/\/\)[^/].*/{
13364 # Extract the definition of DEPDIR, am__include, and am__quote
13365 # from the Makefile without running `make'.
13366 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13367 test -z "$DEPDIR" && continue
13368 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13369 test -z "am__include" && continue
13370 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13371 # When using ansi2knr, U may be empty or an underscore; expand it
13372 U=`sed -n 's/^U = //p' < "$mf"`
13373 # Find all dependency output files, they are included files with
13374 # $(DEPDIR) in their names. We invoke sed twice because it is the
13375 # simplest approach to changing $(DEPDIR) to its actual value in the
13377 for file in `sed -n "
13378 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13379 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13380 # Make sure the directory exists.
13381 test -f "$dirpart/$file" && continue
13382 fdir=`$as_dirname -- "$file" ||
13383 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13384 X"$file" : 'X\(//\)[^/]' \| \
13385 X"$file" : 'X\(//\)$' \| \
13386 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13387 $as_echo X"$file" |
13388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13392 /^X\(\/\/\)[^/].*/{
13405 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13406 # echo "creating $dirpart/$file"
13407 echo '# dummy' > "$dirpart/$file"
13414 # See if we are running on zsh, and set the options which allow our
13415 # commands through without removal of \ escapes.
13416 if test -n "${ZSH_VERSION+set}" ; then
13417 setopt NO_GLOB_SUBST
13420 cfgfile="${ofile}T"
13421 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13424 cat <<_LT_EOF >> "$cfgfile"
13427 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13428 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13429 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13430 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13432 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13433 # 2006, 2007, 2008 Free Software Foundation, Inc.
13434 # Written by Gordon Matzigkeit, 1996
13436 # This file is part of GNU Libtool.
13438 # GNU Libtool is free software; you can redistribute it and/or
13439 # modify it under the terms of the GNU General Public License as
13440 # published by the Free Software Foundation; either version 2 of
13441 # the License, or (at your option) any later version.
13443 # As a special exception to the GNU General Public License,
13444 # if you distribute this file as part of a program or library that
13445 # is built using GNU Libtool, you may include this file under the
13446 # same distribution terms that you use for the rest of that program.
13448 # GNU Libtool is distributed in the hope that it will be useful,
13449 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13450 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13451 # GNU General Public License for more details.
13453 # You should have received a copy of the GNU General Public License
13454 # along with GNU Libtool; see the file COPYING. If not, a copy
13455 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13456 # obtained by writing to the Free Software Foundation, Inc.,
13457 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13460 # The names of the tagged configurations supported by this script.
13463 # ### BEGIN LIBTOOL CONFIG
13465 # Which release of libtool.m4 was used?
13466 macro_version=$macro_version
13467 macro_revision=$macro_revision
13469 # Whether or not to build shared libraries.
13470 build_libtool_libs=$enable_shared
13472 # Whether or not to build static libraries.
13473 build_old_libs=$enable_static
13475 # What type of objects to build.
13478 # Whether or not to optimize for fast installation.
13479 fast_install=$enable_fast_install
13482 host_alias=$host_alias
13486 # The build system.
13487 build_alias=$build_alias
13491 # A sed program that does not truncate output.
13494 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13495 Xsed="\$SED -e 1s/^X//"
13497 # A grep program that handles long lines.
13503 # A literal string matcher.
13506 # A BSD- or MS-compatible name lister.
13509 # Whether we need soft or hard links.
13512 # What is the maximum length of a command?
13513 max_cmd_len=$max_cmd_len
13515 # Object file suffix (normally "o").
13518 # Executable file suffix (normally "").
13521 # whether the shell understands "unset".
13524 # turn spaces into newlines.
13527 # turn newlines into spaces.
13530 # How to create reloadable object files.
13531 reload_flag=$lt_reload_flag
13532 reload_cmds=$lt_reload_cmds
13534 # An object symbol dumper.
13535 OBJDUMP=$lt_OBJDUMP
13537 # Method to check whether dependent libraries are shared objects.
13538 deplibs_check_method=$lt_deplibs_check_method
13540 # Command to use when deplibs_check_method == "file_magic".
13541 file_magic_cmd=$lt_file_magic_cmd
13545 AR_FLAGS=$lt_AR_FLAGS
13547 # A symbol stripping program.
13550 # Commands used to install an old-style archive.
13552 old_postinstall_cmds=$lt_old_postinstall_cmds
13553 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13558 # LTCC compiler flags.
13559 LTCFLAGS=$lt_CFLAGS
13561 # Take the output of nm and produce a listing of raw symbols and C names.
13562 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13564 # Transform the output of nm in a proper C declaration.
13565 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13567 # Transform the output of nm in a C name address pair.
13568 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13570 # Transform the output of nm in a C name address pair when lib prefix is needed.
13571 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13573 # The name of the directory that contains temporary libtool files.
13576 # Shell to use when invoking shell scripts.
13579 # An echo program that does not interpret backslashes.
13582 # Used to examine libraries when file_magic_cmd begins with "file".
13583 MAGIC_CMD=$MAGIC_CMD
13585 # Must we lock files when doing compilation?
13586 need_locks=$lt_need_locks
13588 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13589 DSYMUTIL=$lt_DSYMUTIL
13591 # Tool to change global to local symbols on Mac OS X.
13594 # Tool to manipulate fat objects and archives on Mac OS X.
13597 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13600 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13601 OTOOL64=$lt_OTOOL64
13603 # Old archive suffix (normally "a").
13606 # Shared library suffix (normally ".so").
13607 shrext_cmds=$lt_shrext_cmds
13609 # The commands to extract the exported symbol list from a shared archive.
13610 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13612 # Variables whose values should be saved in libtool wrapper scripts and
13613 # restored at link time.
13614 variables_saved_for_relink=$lt_variables_saved_for_relink
13616 # Do we need the "lib" prefix for modules?
13617 need_lib_prefix=$need_lib_prefix
13619 # Do we need a version for libraries?
13620 need_version=$need_version
13622 # Library versioning type.
13623 version_type=$version_type
13625 # Shared library runtime path variable.
13626 runpath_var=$runpath_var
13628 # Shared library path variable.
13629 shlibpath_var=$shlibpath_var
13631 # Is shlibpath searched before the hard-coded library search path?
13632 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13634 # Format of library name prefix.
13635 libname_spec=$lt_libname_spec
13637 # List of archive names. First name is the real one, the rest are links.
13638 # The last name is the one that the linker finds with -lNAME
13639 library_names_spec=$lt_library_names_spec
13641 # The coded name of the library, if different from the real name.
13642 soname_spec=$lt_soname_spec
13644 # Command to use after installation of a shared archive.
13645 postinstall_cmds=$lt_postinstall_cmds
13647 # Command to use after uninstallation of a shared archive.
13648 postuninstall_cmds=$lt_postuninstall_cmds
13650 # Commands used to finish a libtool library installation in a directory.
13651 finish_cmds=$lt_finish_cmds
13653 # As "finish_cmds", except a single script fragment to be evaled but
13655 finish_eval=$lt_finish_eval
13657 # Whether we should hardcode library paths into libraries.
13658 hardcode_into_libs=$hardcode_into_libs
13660 # Compile-time system search path for libraries.
13661 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13663 # Run-time system search path for libraries.
13664 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13666 # Whether dlopen is supported.
13667 dlopen_support=$enable_dlopen
13669 # Whether dlopen of programs is supported.
13670 dlopen_self=$enable_dlopen_self
13672 # Whether dlopen of statically linked programs is supported.
13673 dlopen_self_static=$enable_dlopen_self_static
13675 # Commands to strip libraries.
13676 old_striplib=$lt_old_striplib
13677 striplib=$lt_striplib
13680 # The linker used to build libraries.
13683 # Commands used to build an old-style archive.
13684 old_archive_cmds=$lt_old_archive_cmds
13686 # A language specific compiler.
13689 # Is the compiler the GNU compiler?
13692 # Compiler flag to turn off builtin functions.
13693 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13695 # How to pass a linker flag through the compiler.
13696 wl=$lt_lt_prog_compiler_wl
13698 # Additional compiler flags for building library objects.
13699 pic_flag=$lt_lt_prog_compiler_pic
13701 # Compiler flag to prevent dynamic linking.
13702 link_static_flag=$lt_lt_prog_compiler_static
13704 # Does compiler simultaneously support -c and -o options?
13705 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13707 # Whether or not to add -lc for building shared libraries.
13708 build_libtool_need_lc=$archive_cmds_need_lc
13710 # Whether or not to disallow shared libs when runtime libs are static.
13711 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13713 # Compiler flag to allow reflexive dlopens.
13714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13716 # Compiler flag to generate shared objects directly from archives.
13717 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13719 # Whether the compiler copes with passing no objects directly.
13720 compiler_needs_object=$lt_compiler_needs_object
13722 # Create an old-style archive from a shared archive.
13723 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13725 # Create a temporary old-style archive to link instead of a shared archive.
13726 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13728 # Commands used to build a shared archive.
13729 archive_cmds=$lt_archive_cmds
13730 archive_expsym_cmds=$lt_archive_expsym_cmds
13732 # Commands used to build a loadable module if different from building
13733 # a shared archive.
13734 module_cmds=$lt_module_cmds
13735 module_expsym_cmds=$lt_module_expsym_cmds
13737 # Whether we are building with GNU ld or not.
13738 with_gnu_ld=$lt_with_gnu_ld
13740 # Flag that allows shared libraries with undefined symbols to be built.
13741 allow_undefined_flag=$lt_allow_undefined_flag
13743 # Flag that enforces no undefined symbols.
13744 no_undefined_flag=$lt_no_undefined_flag
13746 # Flag to hardcode \$libdir into a binary during linking.
13747 # This must work even if \$libdir does not exist
13748 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13750 # If ld is used when linking, flag to hardcode \$libdir into a binary
13751 # during linking. This must work even if \$libdir does not exist.
13752 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13754 # Whether we need a single "-rpath" flag with a separated argument.
13755 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13757 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13758 # DIR into the resulting binary.
13759 hardcode_direct=$hardcode_direct
13761 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13762 # DIR into the resulting binary and the resulting library dependency is
13763 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13764 # library is relocated.
13765 hardcode_direct_absolute=$hardcode_direct_absolute
13767 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13768 # into the resulting binary.
13769 hardcode_minus_L=$hardcode_minus_L
13771 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13772 # into the resulting binary.
13773 hardcode_shlibpath_var=$hardcode_shlibpath_var
13775 # Set to "yes" if building a shared library automatically hardcodes DIR
13776 # into the library and all subsequent libraries and executables linked
13778 hardcode_automatic=$hardcode_automatic
13780 # Set to yes if linker adds runtime paths of dependent libraries
13781 # to runtime path list.
13782 inherit_rpath=$inherit_rpath
13784 # Whether libtool must link a program against all its dependency libraries.
13785 link_all_deplibs=$link_all_deplibs
13787 # Fix the shell variable \$srcfile for the compiler.
13788 fix_srcfile_path=$lt_fix_srcfile_path
13790 # Set to "yes" if exported symbols are required.
13791 always_export_symbols=$always_export_symbols
13793 # The commands to list exported symbols.
13794 export_symbols_cmds=$lt_export_symbols_cmds
13796 # Symbols that should not be listed in the preloaded symbols.
13797 exclude_expsyms=$lt_exclude_expsyms
13799 # Symbols that must always be exported.
13800 include_expsyms=$lt_include_expsyms
13802 # Commands necessary for linking programs (against libraries) with templates.
13803 prelink_cmds=$lt_prelink_cmds
13805 # Specify filename containing input files.
13806 file_list_spec=$lt_file_list_spec
13808 # How to hardcode a shared library path into an executable.
13809 hardcode_action=$hardcode_action
13811 # ### END LIBTOOL CONFIG
13817 cat <<\_LT_EOF >> "$cfgfile"
13818 # AIX sometimes has problems with the GCC collect2 program. For some
13819 # reason, if we set the COLLECT_NAMES environment variable, the problems
13820 # vanish in a puff of smoke.
13821 if test "X${COLLECT_NAMES+set}" != Xset; then
13823 export COLLECT_NAMES
13830 ltmain="$ac_aux_dir/ltmain.sh"
13833 # We use sed instead of cat because bash on DJGPP gets confused if
13834 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13835 # text mode, it properly converts lines to CR/LF. This bash problem
13836 # is reportedly fixed, but why not run on old versions too?
13837 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13838 || (rm -f "$cfgfile"; exit 1)
13842 cat << \_LT_EOF >> "$cfgfile"
13844 # func_dirname file append nondir_replacement
13845 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13846 # otherwise set result to NONDIR_REPLACEMENT.
13850 */*) func_dirname_result="${1%/*}${2}" ;;
13851 * ) func_dirname_result="${3}" ;;
13855 # func_basename file
13858 func_basename_result="${1##*/}"
13861 # func_dirname_and_basename file append nondir_replacement
13862 # perform func_basename and func_dirname in a single function
13864 # dirname: Compute the dirname of FILE. If nonempty,
13865 # add APPEND to the result, otherwise set result
13866 # to NONDIR_REPLACEMENT.
13867 # value returned in "$func_dirname_result"
13868 # basename: Compute filename of FILE.
13869 # value retuned in "$func_basename_result"
13870 # Implementation must be kept synchronized with func_dirname
13871 # and func_basename. For efficiency, we do not delegate to
13872 # those functions but instead duplicate the functionality here.
13873 func_dirname_and_basename ()
13876 */*) func_dirname_result="${1%/*}${2}" ;;
13877 * ) func_dirname_result="${3}" ;;
13879 func_basename_result="${1##*/}"
13882 # func_stripname prefix suffix name
13883 # strip PREFIX and SUFFIX off of NAME.
13884 # PREFIX and SUFFIX must not contain globbing or regex special
13885 # characters, hashes, percent signs, but SUFFIX may contain a leading
13886 # dot (in which case that matches only a dot).
13889 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13890 # positional parameters, so assign one to ordinary parameter first.
13891 func_stripname_result=${3}
13892 func_stripname_result=${func_stripname_result#"${1}"}
13893 func_stripname_result=${func_stripname_result%"${2}"}
13899 func_opt_split_opt=${1%%=*}
13900 func_opt_split_arg=${1#*=}
13907 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13908 *) func_lo2o_result=${1} ;;
13912 # func_xform libobj-or-source
13915 func_xform_result=${1%.*}.lo
13918 # func_arith arithmetic-term...
13921 func_arith_result=$(( $* ))
13925 # STRING may not start with a hyphen.
13928 func_len_result=${#1}
13933 *) # Bourne compatible functions.
13934 cat << \_LT_EOF >> "$cfgfile"
13936 # func_dirname file append nondir_replacement
13937 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13938 # otherwise set result to NONDIR_REPLACEMENT.
13941 # Extract subdirectory from the argument.
13942 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13943 if test "X$func_dirname_result" = "X${1}"; then
13944 func_dirname_result="${3}"
13946 func_dirname_result="$func_dirname_result${2}"
13950 # func_basename file
13953 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13957 # func_stripname prefix suffix name
13958 # strip PREFIX and SUFFIX off of NAME.
13959 # PREFIX and SUFFIX must not contain globbing or regex special
13960 # characters, hashes, percent signs, but SUFFIX may contain a leading
13961 # dot (in which case that matches only a dot).
13962 # func_strip_suffix prefix name
13966 .*) func_stripname_result=`$ECHO "X${3}" \
13967 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13968 *) func_stripname_result=`$ECHO "X${3}" \
13969 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13974 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13975 my_sed_long_arg='1s/^-[^=]*=//'
13980 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13981 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13987 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13990 # func_xform libobj-or-source
13993 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13996 # func_arith arithmetic-term...
13999 func_arith_result=`expr "$@"`
14003 # STRING may not start with a hyphen.
14006 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14012 case $lt_shell_append in
14014 cat << \_LT_EOF >> "$cfgfile"
14016 # func_append var value
14017 # Append VALUE to the end of shell variable VAR.
14025 cat << \_LT_EOF >> "$cfgfile"
14027 # func_append var value
14028 # Append VALUE to the end of shell variable VAR.
14039 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14040 || (rm -f "$cfgfile"; exit 1)
14042 mv -f "$cfgfile" "$ofile" ||
14043 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14054 ac_clean_files=$ac_clean_files_save
14056 test $ac_write_fail = 0 ||
14057 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14060 # configure is writing to config.log, and then calls config.status.
14061 # config.status does its own redirection, appending to config.log.
14062 # Unfortunately, on DOS this fails, as config.log is still kept open
14063 # by configure, so config.status won't be able to write to it; its
14064 # output is simply discarded. So we exec the FD to /dev/null,
14065 # effectively closing config.log, so it can be properly (re)opened and
14066 # appended to by config.status. When coming back to configure, we
14067 # need to make the FD available again.
14068 if test "$no_create" != yes; then
14070 ac_config_status_args=
14071 test "$silent" = yes &&
14072 ac_config_status_args="$ac_config_status_args --quiet"
14074 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14076 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14077 # would make configure fail if this is the last instruction.
14078 $ac_cs_success || as_fn_exit $?
14080 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14082 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}