2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libdrm 2.4.39.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=DRI>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
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.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=DRI
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
572 PACKAGE_NAME='libdrm'
573 PACKAGE_TARNAME='libdrm'
574 PACKAGE_VERSION='2.4.39'
575 PACKAGE_STRING='libdrm 2.4.39'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=DRI'
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_subst_vars='am__EXEEXT_FALSE
708 MAINTAINER_MODE_FALSE
718 INSTALL_STRIP_PROGRAM
760 program_transform_name
773 enable_option_checking
774 enable_maintainer_mode
776 enable_dependency_tracking
790 enable_vmwgfx_experimental_api
791 enable_omap_experimental_api
792 enable_exynos_experimental_api
795 ac_precious_vars='build_alias
819 # Initialize some variables set by options.
821 ac_init_version=false
822 ac_unrecognized_opts=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name=s,x,x,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
879 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
936 eval enable_$ac_useropt=no ;;
938 -docdir | --docdir | --docdi | --doc | --do)
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
962 eval enable_$ac_useropt=\$ac_optarg ;;
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
977 -help | --help | --hel | --he | -h)
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 htmldir=$ac_optarg ;;
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1007 -libdir | --libdir | --libdi | --libd)
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1098 -psdir | --psdir | --psdi | --psd | --ps)
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 sbindir=$ac_optarg ;;
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 sharedstatedir=$ac_optarg ;;
1124 -site | --site | --sit)
1126 -site=* | --site=* | --sit=*)
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1166 eval with_$ac_useropt=\$ac_optarg ;;
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1182 eval with_$ac_useropt=no ;;
1185 # Obsolete; use --with-x.
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1202 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203 Try \`$0 --help' for more information"
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1217 # FIXME: should be removed in autoconf 3.0.
1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 as_fn_error $? "missing argument to $ac_option"
1232 if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1253 # Be sure to have absolute directory names.
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1266 target=$target_alias
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1273 If a cross compiler is detected then cross compile mode will be used" >&2
1274 elif test "x$build_alias" != "x$host_alias"; then
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282 test "$silent" = yes && exec 6>/dev/null
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1325 ac_srcdir_defaulted=no
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353 # Report the --help message.
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1359 \`configure' configures libdrm 2.4.39 to adapt to many kinds of systems.
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1366 Defaults for the options are specified in brackets.
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1390 For better control, use the options below.
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/libdrm]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of libdrm 2.4.39:";;
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --disable-maintainer-mode disable make rules and dependencies not useful
1438 (and sometimes confusing) to the casual installer
1439 --enable-silent-rules less verbose build output (undo: `make V=1')
1440 --disable-silent-rules verbose build output (undo: `make V=0')
1441 --disable-dependency-tracking speeds up one-time build
1442 --enable-dependency-tracking do not reject slow dependency extractors
1443 --disable-largefile omit support for large files
1444 --enable-static[=PKGS] build static libraries [default=no]
1445 --enable-shared[=PKGS] build shared libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --enable-udev Enable support for using udev instead of mknod
1451 --disable-libkms Disable KMS mm abstraction library (default: auto)
1452 --disable-intel Enable support for intel's KMS API (default: auto)
1453 --disable-radeon Enable support for radeon's KMS API (default: auto)
1454 --disable-nouveau Enable support for nouveau's KMS API (default: auto)
1455 --enable-vmwgfx-experimental-api
1456 Install vmwgfx's experimental kernel API header
1458 --enable-omap-experimental-api
1459 Enable support for OMAP's experimental API (default:
1461 --enable-exynos-experimental-api
1462 Enable support for EXYNOS's experimental API
1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1468 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1470 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1471 --with-sysroot=DIR Search for dependent libraries within DIR
1472 (or the compiler's sysroot if not specified).
1473 --with-kernel-source specify path to linux kernel source
1475 Some influential environment variables:
1476 CC C compiler command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479 nonstandard directory <lib dir>
1480 LIBS libraries to pass to the linker, e.g. -l<library>
1481 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
1484 PKG_CONFIG path to pkg-config utility
1486 directories to add to pkg-config's search path
1488 path overriding pkg-config's built-in search path
1490 C compiler flags for PTHREADSTUBS, overriding pkg-config
1492 linker flags for PTHREADSTUBS, overriding pkg-config
1494 C compiler flags for CAIRO, overriding pkg-config
1495 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1497 C compiler flags for LIBUDEV, overriding pkg-config
1499 linker flags for LIBUDEV, overriding pkg-config
1501 C compiler flags for PCIACCESS, overriding pkg-config
1503 linker flags for PCIACCESS, overriding pkg-config
1505 C compiler flags for VALGRIND, overriding pkg-config
1507 linker flags for VALGRIND, overriding pkg-config
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1512 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=DRI>.
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1542 .) # We are building in place.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1575 libdrm configure 2.4.39
1576 generated by GNU Autoconf 2.68
1578 Copyright (C) 2010 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1585 ## ------------------------ ##
1586 ## Autoconf initialization. ##
1587 ## ------------------------ ##
1589 # ac_fn_c_try_compile LINENO
1590 # --------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_compile ()
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext
1596 if { { ac_try="$ac_compile"
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_compile") 2>conftest.err
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest.$ac_objext; then :
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1625 } # ac_fn_c_try_compile
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } > conftest.i && {
1649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1664 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1667 # the include files in INCLUDES and setting the cache variable VAR
1669 ac_fn_c_check_header_mongrel ()
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if eval \${$3+:} false; then :
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if eval \${$3+:} false; then :
1676 $as_echo_n "(cached) " >&6
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1682 # Is the header compilable?
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1684 $as_echo_n "checking $2 usability... " >&6; }
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1690 if ac_fn_c_try_compile "$LINENO"; then :
1691 ac_header_compiler=yes
1693 ac_header_compiler=no
1695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1697 $as_echo "$ac_header_compiler" >&6; }
1699 # Is the header present?
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1701 $as_echo_n "checking $2 presence... " >&6; }
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1706 if ac_fn_c_try_cpp "$LINENO"; then :
1707 ac_header_preproc=yes
1709 ac_header_preproc=no
1711 rm -f conftest.err conftest.i conftest.$ac_ext
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1713 $as_echo "$ac_header_preproc" >&6; }
1715 # So? What about this header?
1716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1719 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1725 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1727 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1729 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1731 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1733 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1734 ( $as_echo "## --------------------------------------------------------------------- ##
1735 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=DRI ##
1736 ## --------------------------------------------------------------------- ##"
1737 ) | sed "s/^/$as_me: WARNING: /" >&2
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1745 eval "$3=\$ac_header_compiler"
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 } # ac_fn_c_check_header_mongrel
1755 # ac_fn_c_try_run LINENO
1756 # ----------------------
1757 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1758 # that executables *can* be run.
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_link"
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_link") 2>&5
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1773 { { case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_try") 2>&5
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; }; }; then :
1785 $as_echo "$as_me: program exited with status $ac_status" >&5
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1789 ac_retval=$ac_status
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1797 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1798 # -------------------------------------------------------
1799 # Tests whether HEADER exists and can be compiled using the include files in
1800 # INCLUDES, setting the cache variable VAR accordingly.
1801 ac_fn_c_check_header_compile ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807 $as_echo_n "(cached) " >&6
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1814 if ac_fn_c_try_compile "$LINENO"; then :
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 } # ac_fn_c_check_header_compile
1828 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1829 # -------------------------------------------
1830 # Tests whether TYPE exists after having included INCLUDES, setting cache
1831 # variable VAR accordingly.
1832 ac_fn_c_check_type ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval \${$3+:} false; then :
1838 $as_echo_n "(cached) " >&6
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1866 if ac_fn_c_try_compile "$LINENO"; then :
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 } # ac_fn_c_check_type
1882 # ac_fn_c_try_link LINENO
1883 # -----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded.
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 rm -f conftest.$ac_objext conftest$ac_exeext
1889 if { { ac_try="$ac_link"
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>conftest.err
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_c_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest$ac_exeext && {
1908 test "$cross_compiling" = yes ||
1909 $as_test_x conftest$ac_exeext
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1918 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1919 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1920 # interfere with the next link command; also delete a directory that is
1921 # left behind by Apple's compiler. We do this before executing the actions.
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1926 } # ac_fn_c_try_link
1928 # ac_fn_c_check_func LINENO FUNC VAR
1929 # ----------------------------------
1930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1931 ac_fn_c_check_func ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943 #define $2 innocuous_$2
1945 /* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
1951 # include <limits.h>
1953 # include <assert.h>
1958 /* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1965 /* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968 #if defined __stub_$2 || defined __stub___$2
1980 if ac_fn_c_try_link "$LINENO"; then :
1985 rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 } # ac_fn_c_check_func
1994 cat >config.log <<_ACEOF
1995 This file contains any messages produced by compilers while
1996 running configure, to aid debugging if configure makes a mistake.
1998 It was created by libdrm $as_me 2.4.39, which was
1999 generated by GNU Autoconf 2.68. Invocation command line was
2011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2023 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 test -z "$as_dir" && as_dir=.
2035 $as_echo "PATH: $as_dir"
2051 # Keep a trace of the command line.
2052 # Strip out --no-create and --no-recursion so they do not pile up.
2053 # Strip out --silent because we don't want to record it for future runs.
2054 # Also quote any args containing shell meta-characters.
2055 # Make two passes to allow for proper duplicate-argument suppression.
2059 ac_must_keep_next=false
2065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2067 | -silent | --silent | --silen | --sile | --sil)
2070 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2073 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2075 as_fn_append ac_configure_args1 " '$ac_arg'"
2076 if test $ac_must_keep_next = true; then
2077 ac_must_keep_next=false # Got value, back to normal.
2080 *=* | --config-cache | -C | -disable-* | --disable-* \
2081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2083 | -with-* | --with-* | -without-* | --without-* | --x)
2084 case "$ac_configure_args0 " in
2085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2088 -* ) ac_must_keep_next=true ;;
2091 as_fn_append ac_configure_args " '$ac_arg'"
2096 { ac_configure_args0=; unset ac_configure_args0;}
2097 { ac_configure_args1=; unset ac_configure_args1;}
2099 # When interrupted or exit'd, cleanup temporary files, and complete
2100 # config.log. We remove comments because anyway the quotes in there
2101 # would cause problems or look ugly.
2102 # WARNING: Use '\'' to represent an apostrophe within the trap.
2103 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2104 trap 'exit_status=$?
2105 # Save into config.log some information that might help in debugging.
2109 $as_echo "## ---------------- ##
2110 ## Cache variables. ##
2111 ## ---------------- ##"
2113 # The following way of writing the cache mishandles newlines in values,
2115 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2116 eval ac_val=\$$ac_var
2120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2121 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2124 _ | IFS | as_nl) ;; #(
2125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2126 *) { eval $ac_var=; unset $ac_var;} ;;
2131 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2132 *${as_nl}ac_space=\ *)
2134 "s/'\''/'\''\\\\'\'''\''/g;
2135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2138 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2145 $as_echo "## ----------------- ##
2146 ## Output variables. ##
2147 ## ----------------- ##"
2149 for ac_var in $ac_subst_vars
2151 eval ac_val=\$$ac_var
2153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 $as_echo "$ac_var='\''$ac_val'\''"
2159 if test -n "$ac_subst_files"; then
2160 $as_echo "## ------------------- ##
2161 ## File substitutions. ##
2162 ## ------------------- ##"
2164 for ac_var in $ac_subst_files
2166 eval ac_val=\$$ac_var
2168 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170 $as_echo "$ac_var='\''$ac_val'\''"
2175 if test -s confdefs.h; then
2176 $as_echo "## ----------- ##
2183 test "$ac_signal" != 0 &&
2184 $as_echo "$as_me: caught signal $ac_signal"
2185 $as_echo "$as_me: exit $exit_status"
2187 rm -f core *.core core.conftest.* &&
2188 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2191 for ac_signal in 1 2 13 15; do
2192 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2197 rm -f -r conftest* confdefs.h
2199 $as_echo "/* confdefs.h */" > confdefs.h
2201 # Predefined preprocessor variables.
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_NAME "$PACKAGE_NAME"
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_STRING "$PACKAGE_STRING"
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_URL "$PACKAGE_URL"
2228 # Let the site file select an alternate cache file if it wants to.
2229 # Prefer an explicitly selected file to automatically selected ones.
2232 if test -n "$CONFIG_SITE"; then
2233 # We do not want a PATH search for config.site.
2234 case $CONFIG_SITE in #((
2235 -*) ac_site_file1=./$CONFIG_SITE;;
2236 */*) ac_site_file1=$CONFIG_SITE;;
2237 *) ac_site_file1=./$CONFIG_SITE;;
2239 elif test "x$prefix" != xNONE; then
2240 ac_site_file1=$prefix/share/config.site
2241 ac_site_file2=$prefix/etc/config.site
2243 ac_site_file1=$ac_default_prefix/share/config.site
2244 ac_site_file2=$ac_default_prefix/etc/config.site
2246 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2248 test "x$ac_site_file" = xNONE && continue
2249 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2251 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2252 sed 's/^/| /' "$ac_site_file" >&5
2254 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2256 as_fn_error $? "failed to load site script $ac_site_file
2257 See \`config.log' for more details" "$LINENO" 5; }
2261 if test -r "$cache_file"; then
2262 # Some versions of bash will fail to source /dev/null (special files
2263 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2264 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2266 $as_echo "$as_me: loading cache $cache_file" >&6;}
2268 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2269 *) . "./$cache_file";;
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2274 $as_echo "$as_me: creating cache $cache_file" >&6;}
2278 # Check that the precious variables saved in the cache have kept the same
2280 ac_cache_corrupted=false
2281 for ac_var in $ac_precious_vars; do
2282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2283 eval ac_new_set=\$ac_env_${ac_var}_set
2284 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2285 eval ac_new_val=\$ac_env_${ac_var}_value
2286 case $ac_old_set,$ac_new_set in
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2289 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2290 ac_cache_corrupted=: ;;
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2293 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2294 ac_cache_corrupted=: ;;
2297 if test "x$ac_old_val" != "x$ac_new_val"; then
2298 # differences in whitespace do not lead to failure.
2299 ac_old_val_w=`echo x $ac_old_val`
2300 ac_new_val_w=`echo x $ac_new_val`
2301 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2303 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2304 ac_cache_corrupted=:
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2307 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2308 eval $ac_var=\$ac_old_val
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2311 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2313 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2316 # Pass precious variables to config.status.
2317 if test "$ac_new_set" = set; then
2319 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2320 *) ac_arg=$ac_var=$ac_new_val ;;
2322 case " $ac_configure_args " in
2323 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2324 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2328 if $ac_cache_corrupted; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2332 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2333 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2335 ## -------------------- ##
2336 ## Main body of script. ##
2337 ## -------------------- ##
2340 ac_cpp='$CPP $CPPFLAGS'
2341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347 ac_config_headers="$ac_config_headers config.h"
2352 for ac_dir in build-aux "$srcdir"/build-aux; do
2353 if test -f "$ac_dir/install-sh"; then
2355 ac_install_sh="$ac_aux_dir/install-sh -c"
2357 elif test -f "$ac_dir/install.sh"; then
2359 ac_install_sh="$ac_aux_dir/install.sh -c"
2361 elif test -f "$ac_dir/shtool"; then
2363 ac_install_sh="$ac_aux_dir/shtool install -c"
2367 if test -z "$ac_aux_dir"; then
2368 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2371 # These three variables are undocumented and unsupported,
2372 # and are intended to be withdrawn in a future Autoconf release.
2373 # They can cause serious problems if a builder's source tree is in a directory
2374 # whose full name contains unusual characters.
2375 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2376 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2377 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2381 am__api_version='1.11'
2383 # Find a good install program. We prefer a C program (faster),
2384 # so one script is as good as another. But avoid the broken or
2385 # incompatible versions:
2386 # SysV /etc/install, /usr/sbin/install
2387 # SunOS /usr/etc/install
2388 # IRIX /sbin/install
2390 # AmigaOS /C/install, which installs bootblocks on floppy discs
2391 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2392 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2393 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2394 # OS/2's system install, which has a completely different semantic
2395 # ./install, which can be erroneously created by make from ./install.sh.
2396 # Reject install programs that cannot install multiple files.
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2398 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2399 if test -z "$INSTALL"; then
2400 if ${ac_cv_path_install+:} false; then :
2401 $as_echo_n "(cached) " >&6
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 # Account for people who put trailing slashes in PATH elements.
2409 case $as_dir/ in #((
2410 ./ | .// | /[cC]/* | \
2411 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2412 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2415 # OSF1 and SCO ODT 3.0 have their own names for install.
2416 # Don't use installbsd from OSF since it installs stuff as root
2418 for ac_prog in ginstall scoinst install; do
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2421 if test $ac_prog = install &&
2422 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2423 # AIX install. It has an incompatible calling convention.
2425 elif test $ac_prog = install &&
2426 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427 # program-specific install script used by HP pwplus--don't use.
2430 rm -rf conftest.one conftest.two conftest.dir
2431 echo one > conftest.one
2432 echo two > conftest.two
2434 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2435 test -s conftest.one && test -s conftest.two &&
2436 test -s conftest.dir/conftest.one &&
2437 test -s conftest.dir/conftest.two
2439 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2452 rm -rf conftest.one conftest.two conftest.dir
2455 if test "${ac_cv_path_install+set}" = set; then
2456 INSTALL=$ac_cv_path_install
2458 # As a last resort, use the slow shell script. Don't cache a
2459 # value for INSTALL within a source directory, because that will
2460 # break other packages using the cache if that directory is
2461 # removed, or if the value is a relative name.
2462 INSTALL=$ac_install_sh
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2466 $as_echo "$INSTALL" >&6; }
2468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2469 # It thinks the first close brace ends the variable substitution.
2470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2477 $as_echo_n "checking whether build environment is sane... " >&6; }
2480 echo timestamp > conftest.file
2481 # Reject unsafe characters in $srcdir or the absolute working directory
2482 # name. Accept space and tab only in the latter.
2486 *[\\\"\#\$\&\'\`$am_lf]*)
2487 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2490 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2491 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2494 # Do `set' in a subshell so we don't clobber the current shell's
2495 # arguments. Must try -L first in case configure is actually a
2496 # symlink; some systems play weird games with the mod time of symlinks
2497 # (eg FreeBSD returns the mod time of the symlink's containing
2500 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2501 if test "$*" = "X"; then
2503 set X `ls -t "$srcdir/configure" conftest.file`
2506 if test "$*" != "X $srcdir/configure conftest.file" \
2507 && test "$*" != "X conftest.file $srcdir/configure"; then
2509 # If neither matched, then we have a broken ls. This can happen
2510 # if, for instance, CONFIG_SHELL is bash and it inherits a
2511 # broken ls alias from the environment. This has actually
2512 # happened. Such a system could not be considered "sane".
2513 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2514 alias in your environment" "$LINENO" 5
2517 test "$2" = conftest.file
2523 as_fn_error $? "newly created file is older than distributed files!
2524 Check your system clock" "$LINENO" 5
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2527 $as_echo "yes" >&6; }
2528 test "$program_prefix" != NONE &&
2529 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2530 # Use a double $ so make ignores it.
2531 test "$program_suffix" != NONE &&
2532 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2533 # Double any \ or $.
2534 # By default was `s,x,x', remove it if useless.
2535 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2536 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2538 # expand $ac_aux_dir to an absolute path
2539 am_aux_dir=`cd $ac_aux_dir && pwd`
2541 if test x"${MISSING+set}" != xset; then
2544 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2546 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2549 # Use eval to expand $SHELL
2550 if eval "$MISSING --run true"; then
2551 am_missing_run="$MISSING --run "
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2555 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2558 if test x"${install_sh}" != xset; then
2561 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2563 install_sh="\${SHELL} $am_aux_dir/install-sh"
2567 # Installed binaries are usually stripped using `strip' when the user
2568 # run `make install-strip'. However `strip' might not be the right
2569 # tool to use in cross-compilation environments, therefore Automake
2570 # will honor the `STRIP' environment variable to overrule this program.
2571 if test "$cross_compiling" != no; then
2572 if test -n "$ac_tool_prefix"; then
2573 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2574 set dummy ${ac_tool_prefix}strip; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_STRIP+:} false; then :
2578 $as_echo_n "(cached) " >&6
2580 if test -n "$STRIP"; then
2581 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 STRIP=$ac_cv_prog_STRIP
2601 if test -n "$STRIP"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2603 $as_echo "$STRIP" >&6; }
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2611 if test -z "$ac_cv_prog_STRIP"; then
2613 # Extract the first word of "strip", so it can be a program name with args.
2614 set dummy strip; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2618 $as_echo_n "(cached) " >&6
2620 if test -n "$ac_ct_STRIP"; then
2621 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2630 ac_cv_prog_ac_ct_STRIP="strip"
2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2641 if test -n "$ac_ct_STRIP"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2643 $as_echo "$ac_ct_STRIP" >&6; }
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2649 if test "x$ac_ct_STRIP" = x; then
2652 case $cross_compiling:$ac_tool_warned in
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2656 ac_tool_warned=yes ;;
2661 STRIP="$ac_cv_prog_STRIP"
2665 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2668 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2669 if test -z "$MKDIR_P"; then
2670 if ${ac_cv_path_mkdir+:} false; then :
2671 $as_echo_n "(cached) " >&6
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2677 test -z "$as_dir" && as_dir=.
2678 for ac_prog in mkdir gmkdir; do
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2681 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2682 'mkdir (GNU coreutils) '* | \
2683 'mkdir (coreutils) '* | \
2684 'mkdir (fileutils) '4.1*)
2685 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2695 test -d ./--version && rmdir ./--version
2696 if test "${ac_cv_path_mkdir+set}" = set; then
2697 MKDIR_P="$ac_cv_path_mkdir -p"
2699 # As a last resort, use the slow shell script. Don't cache a
2700 # value for MKDIR_P within a source directory, because that will
2701 # break other packages using the cache if that directory is
2702 # removed, or if the value is a relative name.
2703 MKDIR_P="$ac_install_sh -d"
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2707 $as_echo "$MKDIR_P" >&6; }
2711 [\\/$]* | ?:[\\/]*) ;;
2712 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2715 for ac_prog in gawk mawk nawk awk
2717 # Extract the first word of "$ac_prog", so it can be a program name with args.
2718 set dummy $ac_prog; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_AWK+:} false; then :
2722 $as_echo_n "(cached) " >&6
2724 if test -n "$AWK"; then
2725 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_AWK="$ac_prog"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 if test -n "$AWK"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2747 $as_echo "$AWK" >&6; }
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2754 test -n "$AWK" && break
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2758 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2760 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2761 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2762 $as_echo_n "(cached) " >&6
2764 cat >conftest.make <<\_ACEOF
2767 @echo '@@@%%%=$(MAKE)=@@@%%%'
2769 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2770 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2772 eval ac_cv_prog_make_${ac_make}_set=yes;;
2774 eval ac_cv_prog_make_${ac_make}_set=no;;
2778 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2780 $as_echo "yes" >&6; }
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785 SET_MAKE="MAKE=${MAKE-make}"
2788 rm -rf .tst 2>/dev/null
2789 mkdir .tst 2>/dev/null
2790 if test -d .tst; then
2795 rmdir .tst 2>/dev/null
2797 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2798 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2799 # is not polluted with repeated "-I."
2800 am__isrc=' -I$(srcdir)'
2801 # test to see if srcdir already configured
2802 if test -f $srcdir/config.status; then
2803 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2807 # test whether we have cygpath
2808 if test -z "$CYGPATH_W"; then
2809 if (cygpath --version) >/dev/null 2>/dev/null; then
2810 CYGPATH_W='cygpath -w'
2817 # Define the identity of the package.
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE "$PACKAGE"
2827 cat >>confdefs.h <<_ACEOF
2828 #define VERSION "$VERSION"
2831 # Some tools Automake needs.
2833 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2836 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2839 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2842 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2845 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2847 # We need awk for the "check" target. The system "awk" is bad on
2849 # Always define AMTAR for backward compatibility. Yes, it's still used
2850 # in the wild :-( We should find a proper way to deprecate it ...
2853 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2861 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2862 # Check whether --enable-maintainer-mode was given.
2863 if test "${enable_maintainer_mode+set}" = set; then :
2864 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2866 USE_MAINTAINER_MODE=yes
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2870 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2871 if test $USE_MAINTAINER_MODE = yes; then
2872 MAINTAINER_MODE_TRUE=
2873 MAINTAINER_MODE_FALSE='#'
2875 MAINTAINER_MODE_TRUE='#'
2876 MAINTAINER_MODE_FALSE=
2879 MAINT=$MAINTAINER_MODE_TRUE
2883 # Enable quiet compiles on automake 1.11.
2884 # Check whether --enable-silent-rules was given.
2885 if test "${enable_silent_rules+set}" = set; then :
2886 enableval=$enable_silent_rules;
2889 case $enable_silent_rules in
2890 yes) AM_DEFAULT_VERBOSITY=0;;
2891 no) AM_DEFAULT_VERBOSITY=1;;
2892 *) AM_DEFAULT_VERBOSITY=0;;
2894 am_make=${MAKE-make}
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2896 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2897 if ${am_cv_make_support_nested_variables+:} false; then :
2898 $as_echo_n "(cached) " >&6
2900 if $as_echo 'TRUE=$(BAR$(V))
2906 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2907 am_cv_make_support_nested_variables=yes
2909 am_cv_make_support_nested_variables=no
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2913 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2914 if test $am_cv_make_support_nested_variables = yes; then
2916 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2918 AM_V=$AM_DEFAULT_VERBOSITY
2919 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2924 # Check for programs
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 if test -n "$ac_tool_prefix"; then
2931 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_CC+:} false; then :
2936 $as_echo_n "(cached) " >&6
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC="$CC" # Let the user override the test.
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 if test -n "$CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2969 if test -z "$ac_cv_prog_CC"; then
2971 # Extract the first word of "gcc", so it can be a program name with args.
2972 set dummy gcc; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2976 $as_echo_n "(cached) " >&6
2978 if test -n "$ac_ct_CC"; then
2979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_ac_ct_CC="gcc"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999 if test -n "$ac_ct_CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3001 $as_echo "$ac_ct_CC" >&6; }
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3007 if test "x$ac_ct_CC" = x; then
3010 case $cross_compiling:$ac_tool_warned in
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3022 if test -z "$CC"; then
3023 if test -n "$ac_tool_prefix"; then
3024 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3025 set dummy ${ac_tool_prefix}cc; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_CC+:} false; then :
3029 $as_echo_n "(cached) " >&6
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041 ac_cv_prog_CC="${ac_tool_prefix}cc"
3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 if test -n "$CC"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3054 $as_echo "$CC" >&6; }
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3063 if test -z "$CC"; then
3064 # Extract the first word of "cc", so it can be a program name with args.
3065 set dummy cc; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_CC+:} false; then :
3069 $as_echo_n "(cached) " >&6
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3083 ac_prog_rejected=yes
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 if test $ac_prog_rejected = yes; then
3095 # We found a bogon in the path, so make sure we never use it.
3096 set dummy $ac_cv_prog_CC
3098 if test $# != 0; then
3099 # We chose a different compiler from the bogus one.
3100 # However, it has the same basename, so the bogon will be chosen
3101 # first if we set CC to just the basename; use the full file name.
3103 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3119 if test -z "$CC"; then
3120 if test -n "$ac_tool_prefix"; then
3121 for ac_prog in cl.exe
3123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_CC+:} false; then :
3128 $as_echo_n "(cached) " >&6
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC="$CC" # Let the user override the test.
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 if test -n "$CC"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153 $as_echo "$CC" >&6; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3160 test -n "$CC" && break
3163 if test -z "$CC"; then
3165 for ac_prog in cl.exe
3167 # Extract the first word of "$ac_prog", so it can be a program name with args.
3168 set dummy $ac_prog; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3172 $as_echo_n "(cached) " >&6
3174 if test -n "$ac_ct_CC"; then
3175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184 ac_cv_prog_ac_ct_CC="$ac_prog"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3195 if test -n "$ac_ct_CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3197 $as_echo "$ac_ct_CC" >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3204 test -n "$ac_ct_CC" && break
3207 if test "x$ac_ct_CC" = x; then
3210 case $cross_compiling:$ac_tool_warned in
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214 ac_tool_warned=yes ;;
3223 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 as_fn_error $? "no acceptable C compiler found in \$PATH
3226 See \`config.log' for more details" "$LINENO" 5; }
3228 # Provide some information about the compiler.
3229 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3232 for ac_option in --version -v -V -qversion; do
3233 { { ac_try="$ac_compiler $ac_option >&5"
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3242 if test -s conftest.err; then
3244 ... rest of stderr output deleted ...
3245 10q' conftest.err >conftest.er1
3246 cat conftest.er1 >&5
3248 rm -f conftest.er1 conftest.err
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3264 ac_clean_files_save=$ac_clean_files
3265 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3266 # Try to create an executable without -o first, disregard a.out.
3267 # It will help us diagnose broken compilers, and finding out an intuition
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3270 $as_echo_n "checking whether the C compiler works... " >&6; }
3271 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3273 # The possible output files:
3274 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3277 for ac_file in $ac_files
3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3281 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3286 if { { ac_try="$ac_link_default"
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_link_default") 2>&5
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; then :
3297 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3298 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3299 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3300 # so that the user can short-circuit this test for compilers unknown to
3302 for ac_file in $ac_files ''
3304 test -f "$ac_file" || continue
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3309 # We found the default executable, but exeext='' is most
3313 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3315 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3317 # We set ac_cv_exeext here because the later test for it is not
3318 # safe: cross compilers may not add the suffix if given an `-o'
3319 # argument, so we may need to know it at that point already.
3320 # Even if this section looks crufty: it has the advantage of
3327 test "$ac_cv_exeext" = no && ac_cv_exeext=
3332 if test -z "$ac_file"; then :
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 $as_echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error 77 "C compiler cannot create executables
3341 See \`config.log' for more details" "$LINENO" 5; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3344 $as_echo "yes" >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3347 $as_echo_n "checking for C compiler default output file name... " >&6; }
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3349 $as_echo "$ac_file" >&6; }
3350 ac_exeext=$ac_cv_exeext
3352 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3353 ac_clean_files=$ac_clean_files_save
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3355 $as_echo_n "checking for suffix of executables... " >&6; }
3356 if { { ac_try="$ac_link"
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_link") 2>&5
3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }; then :
3367 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3368 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3369 # work properly (i.e., refer to `conftest.exe'), while it won't with
3371 for ac_file in conftest.exe conftest conftest.*; do
3372 test -f "$ac_file" || continue
3374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3375 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3384 See \`config.log' for more details" "$LINENO" 5; }
3386 rm -f conftest conftest$ac_cv_exeext
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3388 $as_echo "$ac_cv_exeext" >&6; }
3390 rm -f conftest.$ac_ext
3391 EXEEXT=$ac_cv_exeext
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3399 FILE *f = fopen ("conftest.out", "w");
3400 return ferror (f) || fclose (f) != 0;
3406 ac_clean_files="$ac_clean_files conftest.out"
3407 # Check that the compiler produces executables we can run. If not, either
3408 # the compiler is broken, or we cross compile.
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3410 $as_echo_n "checking whether we are cross compiling... " >&6; }
3411 if test "$cross_compiling" != yes; then
3412 { { ac_try="$ac_link"
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419 (eval "$ac_link") 2>&5
3421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422 test $ac_status = 0; }
3423 if { ac_try='./conftest$ac_cv_exeext'
3424 { { case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430 (eval "$ac_try") 2>&5
3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433 test $ac_status = 0; }; }; then
3436 if test "$cross_compiling" = maybe; then
3439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441 as_fn_error $? "cannot run C compiled programs.
3442 If you meant to cross compile, use \`--host'.
3443 See \`config.log' for more details" "$LINENO" 5; }
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3448 $as_echo "$cross_compiling" >&6; }
3450 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3451 ac_clean_files=$ac_clean_files_save
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3453 $as_echo_n "checking for suffix of object files... " >&6; }
3454 if ${ac_cv_objext+:} false; then :
3455 $as_echo_n "(cached) " >&6
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3468 rm -f conftest.o conftest.obj
3469 if { { ac_try="$ac_compile"
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_compile") 2>&5
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }; then :
3480 for ac_file in conftest.o conftest.obj conftest.*; do
3481 test -f "$ac_file" || continue;
3483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3484 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3489 $as_echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error $? "cannot compute suffix of object files: cannot compile
3495 See \`config.log' for more details" "$LINENO" 5; }
3497 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3500 $as_echo "$ac_cv_objext" >&6; }
3501 OBJEXT=$ac_cv_objext
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3504 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3505 if ${ac_cv_c_compiler_gnu+:} false; then :
3506 $as_echo_n "(cached) " >&6
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3522 if ac_fn_c_try_compile "$LINENO"; then :
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3532 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3533 if test $ac_compiler_gnu = yes; then
3538 ac_test_CFLAGS=${CFLAGS+set}
3539 ac_save_CFLAGS=$CFLAGS
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3541 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3542 if ${ac_cv_prog_cc_g+:} false; then :
3543 $as_echo_n "(cached) " >&6
3545 ac_save_c_werror_flag=$ac_c_werror_flag
3546 ac_c_werror_flag=yes
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3560 if ac_fn_c_try_compile "$LINENO"; then :
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3575 if ac_fn_c_try_compile "$LINENO"; then :
3578 ac_c_werror_flag=$ac_save_c_werror_flag
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3591 if ac_fn_c_try_compile "$LINENO"; then :
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_c_werror_flag=$ac_save_c_werror_flag
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3602 $as_echo "$ac_cv_prog_cc_g" >&6; }
3603 if test "$ac_test_CFLAGS" = set; then
3604 CFLAGS=$ac_save_CFLAGS
3605 elif test $ac_cv_prog_cc_g = yes; then
3606 if test "$GCC" = yes; then
3612 if test "$GCC" = yes; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3619 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3620 if ${ac_cv_prog_cc_c89+:} false; then :
3621 $as_echo_n "(cached) " >&6
3623 ac_cv_prog_cc_c89=no
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3629 #include <sys/types.h>
3630 #include <sys/stat.h>
3631 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3632 struct buf { int x; };
3633 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3634 static char *e (p, i)
3640 static char *f (char * (*g) (char **, int), char **p, ...)
3645 s = g (p, va_arg (v,int));
3650 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3651 function prototypes and stuff, but not '\xHH' hex character constants.
3652 These don't provoke an error unfortunately, instead are silently treated
3653 as 'x'. The following induces an error, until -std is added to get
3654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3655 array size at least. It's necessary to write '\x00'==0 to get something
3656 that's true only with -std. */
3657 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3659 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3660 inside strings and character constants. */
3662 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3664 int test (int i, double x);
3665 struct s1 {int (*f) (int a);};
3666 struct s2 {int (*f) (double a);};
3667 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3673 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3678 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3679 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3681 CC="$ac_save_CC $ac_arg"
3682 if ac_fn_c_try_compile "$LINENO"; then :
3683 ac_cv_prog_cc_c89=$ac_arg
3685 rm -f core conftest.err conftest.$ac_objext
3686 test "x$ac_cv_prog_cc_c89" != "xno" && break
3688 rm -f conftest.$ac_ext
3693 case "x$ac_cv_prog_cc_c89" in
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3696 $as_echo "none needed" >&6; } ;;
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3699 $as_echo "unsupported" >&6; } ;;
3701 CC="$CC $ac_cv_prog_cc_c89"
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3703 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3705 if test "x$ac_cv_prog_cc_c89" != xno; then :
3710 ac_cpp='$CPP $CPPFLAGS'
3711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 DEPDIR="${am__leading_dot}deps"
3716 ac_config_commands="$ac_config_commands depfiles"
3719 am_make=${MAKE-make}
3720 cat > confinc << 'END'
3722 @echo this is the am__doit target
3725 # If we don't find an include directive, just comment out the code.
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3727 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3731 # First try GNU make style include.
3732 echo "include confinc" > confmf
3733 # Ignore all kinds of additional output from `make'.
3734 case `$am_make -s -f confmf 2> /dev/null` in #(
3735 *the\ am__doit\ target*)
3741 # Now try BSD make style include.
3742 if test "$am__include" = "#"; then
3743 echo '.include "confinc"' > confmf
3744 case `$am_make -s -f confmf 2> /dev/null` in #(
3745 *the\ am__doit\ target*)
3746 am__include=.include
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3755 $as_echo "$_am_result" >&6; }
3756 rm -f confinc confmf
3758 # Check whether --enable-dependency-tracking was given.
3759 if test "${enable_dependency_tracking+set}" = set; then :
3760 enableval=$enable_dependency_tracking;
3763 if test "x$enable_dependency_tracking" != xno; then
3764 am_depcomp="$ac_aux_dir/depcomp"
3768 if test "x$enable_dependency_tracking" != xno; then
3778 depcc="$CC" am_compiler_list=
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3781 $as_echo_n "checking dependency style of $depcc... " >&6; }
3782 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3783 $as_echo_n "(cached) " >&6
3785 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3786 # We make a subdir and do the tests there. Otherwise we can end up
3787 # making bogus files that we don't know about and never remove. For
3788 # instance it was reported that on HP-UX the gcc test will end up
3789 # making a dummy file named `D' -- because `-MD' means `put the output
3793 # Copy depcomp to subdir because otherwise we won't find it if we're
3794 # using a relative directory.
3795 cp "$am_depcomp" conftest.dir
3797 # We will build objects and dependencies in a subdirectory because
3798 # it helps to detect inapplicable dependency modes. For instance
3799 # both Tru64's cc and ICC support -MD to output dependencies as a
3800 # side effect of compilation, but ICC will put the dependencies in
3801 # the current directory while Tru64 will put them in the object
3805 am_cv_CC_dependencies_compiler_type=none
3806 if test "$am_compiler_list" = ""; then
3807 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3810 case " $depcc " in #(
3811 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3814 for depmode in $am_compiler_list; do
3815 # Setup a source with many dependencies, because some compilers
3816 # like to wrap large dependency lists on column 80 (with \), and
3817 # we should not choose a depcomp mode which is confused by this.
3819 # We need to recreate these files for each test, as the compiler may
3820 # overwrite some of them when testing with obscure command lines.
3821 # This happens at least with the AIX C compiler.
3823 for i in 1 2 3 4 5 6; do
3824 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3825 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3826 # Solaris 8's {/usr,}/bin/sh.
3827 touch sub/conftst$i.h
3829 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3831 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3832 # mode. It turns out that the SunPro C++ compiler does not properly
3833 # handle `-M -o', and we need to detect this. Also, some Intel
3834 # versions had trouble with output in subdirs
3835 am__obj=sub/conftest.${OBJEXT-o}
3836 am__minus_obj="-o $am__obj"
3839 # This depmode causes a compiler race in universal mode.
3840 test "$am__universal" = false || continue
3843 # after this tag, mechanisms are not by side-effect, so they'll
3844 # only be used when explicitly requested
3845 if test "x$enable_dependency_tracking" = xyes; then
3851 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3852 # This compiler won't grok `-c -o', but also, the minuso test has
3853 # not run yet. These depmodes are late enough in the game, and
3854 # so weak that their functioning should not be impacted.
3855 am__obj=conftest.${OBJEXT-o}
3860 if depmode=$depmode \
3861 source=sub/conftest.c object=$am__obj \
3862 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3863 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3864 >/dev/null 2>conftest.err &&
3865 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3866 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3867 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3868 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3869 # icc doesn't choke on unknown options, it will just issue warnings
3870 # or remarks (even with -Werror). So we grep stderr for any message
3871 # that says an option was ignored or not supported.
3872 # When given -MP, icc 7.0 and 7.1 complain thusly:
3873 # icc: Command line warning: ignoring option '-M'; no argument required
3874 # The diagnosis changed in icc 8.0:
3875 # icc: Command line remark: option '-MP' not supported
3876 if (grep 'ignoring option' conftest.err ||
3877 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3878 am_cv_CC_dependencies_compiler_type=$depmode
3887 am_cv_CC_dependencies_compiler_type=none
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3892 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3893 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3896 test "x$enable_dependency_tracking" != xno \
3897 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3899 am__fastdepCC_FALSE='#'
3901 am__fastdepCC_TRUE='#'
3902 am__fastdepCC_FALSE=
3909 ac_cpp='$CPP $CPPFLAGS'
3910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3914 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3915 # On Suns, sometimes $CPP names a directory.
3916 if test -n "$CPP" && test -d "$CPP"; then
3919 if test -z "$CPP"; then
3920 if ${ac_cv_prog_CPP+:} false; then :
3921 $as_echo_n "(cached) " >&6
3923 # Double quotes because CPP needs to be expanded
3924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3927 for ac_c_preproc_warn_flag in '' yes
3929 # Use a header file that comes with gcc, so configuring glibc
3930 # with a fresh cross-compiler works.
3931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3932 # <limits.h> exists even on freestanding compilers.
3933 # On the NeXT, cc -E runs the code through the compiler's parser,
3934 # not just through cpp. "Syntax error" is here to catch this case.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3938 # include <limits.h>
3940 # include <assert.h>
3944 if ac_fn_c_try_cpp "$LINENO"; then :
3947 # Broken: fails on valid input.
3950 rm -f conftest.err conftest.i conftest.$ac_ext
3952 # OK, works on sane cases. Now check whether nonexistent headers
3953 # can be detected and how.
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956 #include <ac_nonexistent.h>
3958 if ac_fn_c_try_cpp "$LINENO"; then :
3959 # Broken: success on invalid input.
3962 # Passes both tests.
3966 rm -f conftest.err conftest.i conftest.$ac_ext
3969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3970 rm -f conftest.i conftest.err conftest.$ac_ext
3971 if $ac_preproc_ok; then :
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3984 $as_echo "$CPP" >&6; }
3986 for ac_c_preproc_warn_flag in '' yes
3988 # Use a header file that comes with gcc, so configuring glibc
3989 # with a fresh cross-compiler works.
3990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3991 # <limits.h> exists even on freestanding compilers.
3992 # On the NeXT, cc -E runs the code through the compiler's parser,
3993 # not just through cpp. "Syntax error" is here to catch this case.
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3997 # include <limits.h>
3999 # include <assert.h>
4003 if ac_fn_c_try_cpp "$LINENO"; then :
4006 # Broken: fails on valid input.
4009 rm -f conftest.err conftest.i conftest.$ac_ext
4011 # OK, works on sane cases. Now check whether nonexistent headers
4012 # can be detected and how.
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4015 #include <ac_nonexistent.h>
4017 if ac_fn_c_try_cpp "$LINENO"; then :
4018 # Broken: success on invalid input.
4021 # Passes both tests.
4025 rm -f conftest.err conftest.i conftest.$ac_ext
4028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4029 rm -f conftest.i conftest.err conftest.$ac_ext
4030 if $ac_preproc_ok; then :
4033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4035 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4036 See \`config.log' for more details" "$LINENO" 5; }
4040 ac_cpp='$CPP $CPPFLAGS'
4041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4047 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4048 if ${ac_cv_path_GREP+:} false; then :
4049 $as_echo_n "(cached) " >&6
4051 if test -z "$GREP"; then
4052 ac_path_GREP_found=false
4053 # Loop through the user's path and test for each of PROGNAME-LIST
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058 test -z "$as_dir" && as_dir=.
4059 for ac_prog in grep ggrep; do
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4062 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4063 # Check for GNU ac_path_GREP and select it if it is found.
4064 # Check for GNU $ac_path_GREP
4065 case `"$ac_path_GREP" --version 2>&1` in
4067 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4070 $as_echo_n 0123456789 >"conftest.in"
4073 cat "conftest.in" "conftest.in" >"conftest.tmp"
4074 mv "conftest.tmp" "conftest.in"
4075 cp "conftest.in" "conftest.nl"
4076 $as_echo 'GREP' >> "conftest.nl"
4077 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079 as_fn_arith $ac_count + 1 && ac_count=$as_val
4080 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4081 # Best one so far, save it but keep looking for a better one
4082 ac_cv_path_GREP="$ac_path_GREP"
4083 ac_path_GREP_max=$ac_count
4085 # 10*(2^10) chars as input seems more than enough
4086 test $ac_count -gt 10 && break
4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4091 $ac_path_GREP_found && break 3
4096 if test -z "$ac_cv_path_GREP"; then
4097 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4100 ac_cv_path_GREP=$GREP
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4105 $as_echo "$ac_cv_path_GREP" >&6; }
4106 GREP="$ac_cv_path_GREP"
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4110 $as_echo_n "checking for egrep... " >&6; }
4111 if ${ac_cv_path_EGREP+:} false; then :
4112 $as_echo_n "(cached) " >&6
4114 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4115 then ac_cv_path_EGREP="$GREP -E"
4117 if test -z "$EGREP"; then
4118 ac_path_EGREP_found=false
4119 # Loop through the user's path and test for each of PROGNAME-LIST
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4124 test -z "$as_dir" && as_dir=.
4125 for ac_prog in egrep; do
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4128 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4129 # Check for GNU ac_path_EGREP and select it if it is found.
4130 # Check for GNU $ac_path_EGREP
4131 case `"$ac_path_EGREP" --version 2>&1` in
4133 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4136 $as_echo_n 0123456789 >"conftest.in"
4139 cat "conftest.in" "conftest.in" >"conftest.tmp"
4140 mv "conftest.tmp" "conftest.in"
4141 cp "conftest.in" "conftest.nl"
4142 $as_echo 'EGREP' >> "conftest.nl"
4143 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4145 as_fn_arith $ac_count + 1 && ac_count=$as_val
4146 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4147 # Best one so far, save it but keep looking for a better one
4148 ac_cv_path_EGREP="$ac_path_EGREP"
4149 ac_path_EGREP_max=$ac_count
4151 # 10*(2^10) chars as input seems more than enough
4152 test $ac_count -gt 10 && break
4154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4157 $ac_path_EGREP_found && break 3
4162 if test -z "$ac_cv_path_EGREP"; then
4163 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4166 ac_cv_path_EGREP=$EGREP
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4172 $as_echo "$ac_cv_path_EGREP" >&6; }
4173 EGREP="$ac_cv_path_EGREP"
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4177 $as_echo_n "checking for ANSI C header files... " >&6; }
4178 if ${ac_cv_header_stdc+:} false; then :
4179 $as_echo_n "(cached) " >&6
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197 ac_cv_header_stdc=yes
4199 ac_cv_header_stdc=no
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 if test $ac_cv_header_stdc = yes; then
4204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211 $EGREP "memchr" >/dev/null 2>&1; then :
4214 ac_cv_header_stdc=no
4220 if test $ac_cv_header_stdc = yes; then
4221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4228 $EGREP "free" >/dev/null 2>&1; then :
4231 ac_cv_header_stdc=no
4237 if test $ac_cv_header_stdc = yes; then
4238 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4239 if test "$cross_compiling" = yes; then :
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4246 #if ((' ' & 0x0FF) == 0x020)
4247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4250 # define ISLOWER(c) \
4251 (('a' <= (c) && (c) <= 'i') \
4252 || ('j' <= (c) && (c) <= 'r') \
4253 || ('s' <= (c) && (c) <= 'z'))
4254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4262 for (i = 0; i < 256; i++)
4263 if (XOR (islower (i), ISLOWER (i))
4264 || toupper (i) != TOUPPER (i))
4269 if ac_fn_c_try_run "$LINENO"; then :
4272 ac_cv_header_stdc=no
4274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4275 conftest.$ac_objext conftest.beam conftest.$ac_ext
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4281 $as_echo "$ac_cv_header_stdc" >&6; }
4282 if test $ac_cv_header_stdc = yes; then
4284 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4289 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4290 inttypes.h stdint.h unistd.h
4292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4293 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4295 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4296 cat >>confdefs.h <<_ACEOF
4297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4306 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4307 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4314 if test "$MINIX" = yes; then
4316 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4319 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4322 $as_echo "#define _MINIX 1" >>confdefs.h
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4328 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4329 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4330 $as_echo_n "(cached) " >&6
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4335 # define __EXTENSIONS__ 1
4336 $ac_includes_default
4345 if ac_fn_c_try_compile "$LINENO"; then :
4346 ac_cv_safe_to_define___extensions__=yes
4348 ac_cv_safe_to_define___extensions__=no
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4353 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4354 test $ac_cv_safe_to_define___extensions__ = yes &&
4355 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4357 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4359 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4361 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4363 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4366 # Check whether --enable-largefile was given.
4367 if test "${enable_largefile+set}" = set; then :
4368 enableval=$enable_largefile;
4371 if test "$enable_largefile" != no; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4374 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4375 if ${ac_cv_sys_largefile_CC+:} false; then :
4376 $as_echo_n "(cached) " >&6
4378 ac_cv_sys_largefile_CC=no
4379 if test "$GCC" != yes; then
4382 # IRIX 6.2 and later do not support large files by default,
4383 # so use the C compiler's -n32 option if that helps.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 #include <sys/types.h>
4387 /* Check that off_t can represent 2**63 - 1 correctly.
4388 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4389 since some C++ compilers masquerading as C compilers
4390 incorrectly reject 9223372036854775807. */
4391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4392 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4393 && LARGE_OFF_T % 2147483647 == 1)
4403 if ac_fn_c_try_compile "$LINENO"; then :
4406 rm -f core conftest.err conftest.$ac_objext
4408 if ac_fn_c_try_compile "$LINENO"; then :
4409 ac_cv_sys_largefile_CC=' -n32'; break
4411 rm -f core conftest.err conftest.$ac_objext
4415 rm -f conftest.$ac_ext
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4419 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4420 if test "$ac_cv_sys_largefile_CC" != no; then
4421 CC=$CC$ac_cv_sys_largefile_CC
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4425 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4426 if ${ac_cv_sys_file_offset_bits+:} false; then :
4427 $as_echo_n "(cached) " >&6
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4432 #include <sys/types.h>
4433 /* Check that off_t can represent 2**63 - 1 correctly.
4434 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4435 since some C++ compilers masquerading as C compilers
4436 incorrectly reject 9223372036854775807. */
4437 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4438 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4439 && LARGE_OFF_T % 2147483647 == 1)
4449 if ac_fn_c_try_compile "$LINENO"; then :
4450 ac_cv_sys_file_offset_bits=no; break
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4455 #define _FILE_OFFSET_BITS 64
4456 #include <sys/types.h>
4457 /* Check that off_t can represent 2**63 - 1 correctly.
4458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4459 since some C++ compilers masquerading as C compilers
4460 incorrectly reject 9223372036854775807. */
4461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4463 && LARGE_OFF_T % 2147483647 == 1)
4473 if ac_fn_c_try_compile "$LINENO"; then :
4474 ac_cv_sys_file_offset_bits=64; break
4476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477 ac_cv_sys_file_offset_bits=unknown
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4482 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4483 case $ac_cv_sys_file_offset_bits in #(
4486 cat >>confdefs.h <<_ACEOF
4487 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4492 if test $ac_cv_sys_file_offset_bits = unknown; then
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4494 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4495 if ${ac_cv_sys_large_files+:} false; then :
4496 $as_echo_n "(cached) " >&6
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501 #include <sys/types.h>
4502 /* Check that off_t can represent 2**63 - 1 correctly.
4503 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4504 since some C++ compilers masquerading as C compilers
4505 incorrectly reject 9223372036854775807. */
4506 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4507 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4508 && LARGE_OFF_T % 2147483647 == 1)
4518 if ac_fn_c_try_compile "$LINENO"; then :
4519 ac_cv_sys_large_files=no; break
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #define _LARGE_FILES 1
4525 #include <sys/types.h>
4526 /* Check that off_t can represent 2**63 - 1 correctly.
4527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4528 since some C++ compilers masquerading as C compilers
4529 incorrectly reject 9223372036854775807. */
4530 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4532 && LARGE_OFF_T % 2147483647 == 1)
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543 ac_cv_sys_large_files=1; break
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 ac_cv_sys_large_files=unknown
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4551 $as_echo "$ac_cv_sys_large_files" >&6; }
4552 case $ac_cv_sys_large_files in #(
4555 cat >>confdefs.h <<_ACEOF
4556 #define _LARGE_FILES $ac_cv_sys_large_files
4564 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4565 if test "x$ac_cv_type_size_t" = xyes; then :
4569 cat >>confdefs.h <<_ACEOF
4570 #define size_t unsigned int
4575 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4576 # for constant arguments. Useless!
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4578 $as_echo_n "checking for working alloca.h... " >&6; }
4579 if ${ac_cv_working_alloca_h+:} false; then :
4580 $as_echo_n "(cached) " >&6
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4588 char *p = (char *) alloca (2 * sizeof (int));
4594 if ac_fn_c_try_link "$LINENO"; then :
4595 ac_cv_working_alloca_h=yes
4597 ac_cv_working_alloca_h=no
4599 rm -f core conftest.err conftest.$ac_objext \
4600 conftest$ac_exeext conftest.$ac_ext
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4603 $as_echo "$ac_cv_working_alloca_h" >&6; }
4604 if test $ac_cv_working_alloca_h = yes; then
4606 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4611 $as_echo_n "checking for alloca... " >&6; }
4612 if ${ac_cv_func_alloca_works+:} false; then :
4613 $as_echo_n "(cached) " >&6
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4618 # define alloca __builtin_alloca
4621 # include <malloc.h>
4622 # define alloca _alloca
4624 # ifdef HAVE_ALLOCA_H
4625 # include <alloca.h>
4630 # ifndef alloca /* predefined by HP cc +Olibcalls */
4631 void *alloca (size_t);
4641 char *p = (char *) alloca (1);
4647 if ac_fn_c_try_link "$LINENO"; then :
4648 ac_cv_func_alloca_works=yes
4650 ac_cv_func_alloca_works=no
4652 rm -f core conftest.err conftest.$ac_objext \
4653 conftest$ac_exeext conftest.$ac_ext
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4656 $as_echo "$ac_cv_func_alloca_works" >&6; }
4658 if test $ac_cv_func_alloca_works = yes; then
4660 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4663 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4664 # that cause trouble. Some versions do not even contain alloca or
4665 # contain a buggy version. If you still want to use their alloca,
4666 # use ar to extract alloca.o from them instead of compiling alloca.c.
4668 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4670 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4674 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4675 if ${ac_cv_os_cray+:} false; then :
4676 $as_echo_n "(cached) " >&6
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680 #if defined CRAY && ! defined CRAY2
4687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4688 $EGREP "webecray" >/dev/null 2>&1; then :
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4697 $as_echo "$ac_cv_os_cray" >&6; }
4698 if test $ac_cv_os_cray = yes; then
4699 for ac_func in _getb67 GETB67 getb67; do
4700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4701 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4702 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4704 cat >>confdefs.h <<_ACEOF
4705 #define CRAY_STACKSEG_END $ac_func
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4715 $as_echo_n "checking stack direction for C alloca... " >&6; }
4716 if ${ac_cv_c_stack_direction+:} false; then :
4717 $as_echo_n "(cached) " >&6
4719 if test "$cross_compiling" = yes; then :
4720 ac_cv_c_stack_direction=0
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724 $ac_includes_default
4726 find_stack_direction ()
4728 static char *addr = 0;
4733 return find_stack_direction ();
4736 return (&dummy > addr) ? 1 : -1;
4742 return find_stack_direction () < 0;
4745 if ac_fn_c_try_run "$LINENO"; then :
4746 ac_cv_c_stack_direction=1
4748 ac_cv_c_stack_direction=-1
4750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4751 conftest.$ac_objext conftest.beam conftest.$ac_ext
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4756 $as_echo "$ac_cv_c_stack_direction" >&6; }
4757 cat >>confdefs.h <<_ACEOF
4758 #define STACK_DIRECTION $ac_cv_c_stack_direction
4765 # Initialize libtool
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4770 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4775 macro_version='2.4.2'
4776 macro_revision='1.3337'
4790 ltmain="$ac_aux_dir/ltmain.sh"
4792 # Make sure we can run config.sub.
4793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4794 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4797 $as_echo_n "checking build system type... " >&6; }
4798 if ${ac_cv_build+:} false; then :
4799 $as_echo_n "(cached) " >&6
4801 ac_build_alias=$build_alias
4802 test "x$ac_build_alias" = x &&
4803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4804 test "x$ac_build_alias" = x &&
4805 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4811 $as_echo "$ac_cv_build" >&6; }
4812 case $ac_cv_build in
4814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4817 ac_save_IFS=$IFS; IFS='-'
4823 # Remember, the first character of IFS is used to create $*,
4824 # except with old shells:
4827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4831 $as_echo_n "checking host system type... " >&6; }
4832 if ${ac_cv_host+:} false; then :
4833 $as_echo_n "(cached) " >&6
4835 if test "x$host_alias" = x; then
4836 ac_cv_host=$ac_cv_build
4838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4844 $as_echo "$ac_cv_host" >&6; }
4847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4850 ac_save_IFS=$IFS; IFS='-'
4856 # Remember, the first character of IFS is used to create $*,
4857 # except with old shells:
4860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4863 # Backslashify metacharacters that are still active within
4864 # double-quoted strings.
4865 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4867 # Same as above, but do not quote variable references.
4868 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4870 # Sed substitution to delay expansion of an escaped shell variable in a
4871 # double_quote_subst'ed string.
4872 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4874 # Sed substitution to delay expansion of an escaped single quote.
4875 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4877 # Sed substitution to avoid accidental globbing in evaled expressions
4878 no_glob_subst='s/\*/\\\*/g'
4880 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4881 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4882 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4885 $as_echo_n "checking how to print strings... " >&6; }
4886 # Test print first, because it will be a builtin if present.
4887 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4888 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4890 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4893 # Use this function as a fallback that always works.
4894 func_fallback_echo ()
4896 eval 'cat <<_LTECHO_EOF
4900 ECHO='func_fallback_echo'
4903 # func_echo_all arg...
4904 # Invoke $ECHO with all args, space-separated.
4911 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4912 $as_echo "printf" >&6; } ;;
4913 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4914 $as_echo "print -r" >&6; } ;;
4915 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4916 $as_echo "cat" >&6; } ;;
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4933 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4934 if ${ac_cv_path_SED+:} false; then :
4935 $as_echo_n "(cached) " >&6
4937 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4938 for ac_i in 1 2 3 4 5 6 7; do
4939 ac_script="$ac_script$as_nl$ac_script"
4941 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4942 { ac_script=; unset ac_script;}
4943 if test -z "$SED"; then
4944 ac_path_SED_found=false
4945 # Loop through the user's path and test for each of PROGNAME-LIST
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 test -z "$as_dir" && as_dir=.
4951 for ac_prog in sed gsed; do
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4954 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4955 # Check for GNU ac_path_SED and select it if it is found.
4956 # Check for GNU $ac_path_SED
4957 case `"$ac_path_SED" --version 2>&1` in
4959 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4962 $as_echo_n 0123456789 >"conftest.in"
4965 cat "conftest.in" "conftest.in" >"conftest.tmp"
4966 mv "conftest.tmp" "conftest.in"
4967 cp "conftest.in" "conftest.nl"
4968 $as_echo '' >> "conftest.nl"
4969 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4971 as_fn_arith $ac_count + 1 && ac_count=$as_val
4972 if test $ac_count -gt ${ac_path_SED_max-0}; then
4973 # Best one so far, save it but keep looking for a better one
4974 ac_cv_path_SED="$ac_path_SED"
4975 ac_path_SED_max=$ac_count
4977 # 10*(2^10) chars as input seems more than enough
4978 test $ac_count -gt 10 && break
4980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4983 $ac_path_SED_found && break 3
4988 if test -z "$ac_cv_path_SED"; then
4989 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4997 $as_echo "$ac_cv_path_SED" >&6; }
4998 SED="$ac_cv_path_SED"
5001 test -z "$SED" && SED=sed
5002 Xsed="$SED -e 1s/^X//"
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5015 $as_echo_n "checking for fgrep... " >&6; }
5016 if ${ac_cv_path_FGREP+:} false; then :
5017 $as_echo_n "(cached) " >&6
5019 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5020 then ac_cv_path_FGREP="$GREP -F"
5022 if test -z "$FGREP"; then
5023 ac_path_FGREP_found=false
5024 # Loop through the user's path and test for each of PROGNAME-LIST
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5029 test -z "$as_dir" && as_dir=.
5030 for ac_prog in fgrep; do
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5033 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5034 # Check for GNU ac_path_FGREP and select it if it is found.
5035 # Check for GNU $ac_path_FGREP
5036 case `"$ac_path_FGREP" --version 2>&1` in
5038 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5041 $as_echo_n 0123456789 >"conftest.in"
5044 cat "conftest.in" "conftest.in" >"conftest.tmp"
5045 mv "conftest.tmp" "conftest.in"
5046 cp "conftest.in" "conftest.nl"
5047 $as_echo 'FGREP' >> "conftest.nl"
5048 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5050 as_fn_arith $ac_count + 1 && ac_count=$as_val
5051 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5052 # Best one so far, save it but keep looking for a better one
5053 ac_cv_path_FGREP="$ac_path_FGREP"
5054 ac_path_FGREP_max=$ac_count
5056 # 10*(2^10) chars as input seems more than enough
5057 test $ac_count -gt 10 && break
5059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5062 $ac_path_FGREP_found && break 3
5067 if test -z "$ac_cv_path_FGREP"; then
5068 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5071 ac_cv_path_FGREP=$FGREP
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5077 $as_echo "$ac_cv_path_FGREP" >&6; }
5078 FGREP="$ac_cv_path_FGREP"
5081 test -z "$GREP" && GREP=grep
5101 # Check whether --with-gnu-ld was given.
5102 if test "${with_gnu_ld+set}" = set; then :
5103 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5109 if test "$GCC" = yes; then
5110 # Check if gcc -print-prog-name=ld gives a path.
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5112 $as_echo_n "checking for ld used by $CC... " >&6; }
5115 # gcc leaves a trailing carriage return which upsets mingw
5116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5121 # Accept absolute paths.
5123 re_direlt='/[^/][^/]*/\.\./'
5124 # Canonicalize the pathname of ld
5125 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5126 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5127 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5129 test -z "$LD" && LD="$ac_prog"
5132 # If it fails, then pretend we aren't using GCC.
5136 # If it is relative, then search for the first ld in PATH.
5140 elif test "$with_gnu_ld" = yes; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5142 $as_echo_n "checking for GNU ld... " >&6; }
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5145 $as_echo_n "checking for non-GNU ld... " >&6; }
5147 if ${lt_cv_path_LD+:} false; then :
5148 $as_echo_n "(cached) " >&6
5150 if test -z "$LD"; then
5151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5152 for ac_dir in $PATH; do
5154 test -z "$ac_dir" && ac_dir=.
5155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5156 lt_cv_path_LD="$ac_dir/$ac_prog"
5157 # Check to see if the program is GNU ld. I'd rather use --version,
5158 # but apparently some variants of GNU ld only accept -v.
5159 # Break only if it was the GNU/non-GNU ld that we prefer.
5160 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5161 *GNU* | *'with BFD'*)
5162 test "$with_gnu_ld" != no && break
5165 test "$with_gnu_ld" != yes && break
5172 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5177 if test -n "$LD"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5179 $as_echo "$LD" >&6; }
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5184 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5186 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5187 if ${lt_cv_prog_gnu_ld+:} false; then :
5188 $as_echo_n "(cached) " >&6
5190 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5191 case `$LD -v 2>&1 </dev/null` in
5192 *GNU* | *'with BFD'*)
5193 lt_cv_prog_gnu_ld=yes
5196 lt_cv_prog_gnu_ld=no
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5201 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5202 with_gnu_ld=$lt_cv_prog_gnu_ld
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5213 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5214 if ${lt_cv_path_NM+:} false; then :
5215 $as_echo_n "(cached) " >&6
5217 if test -n "$NM"; then
5218 # Let the user override the test.
5221 lt_nm_to_check="${ac_tool_prefix}nm"
5222 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5223 lt_nm_to_check="$lt_nm_to_check nm"
5225 for lt_tmp_nm in $lt_nm_to_check; do
5226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5227 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5229 test -z "$ac_dir" && ac_dir=.
5230 tmp_nm="$ac_dir/$lt_tmp_nm"
5231 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5232 # Check to see if the nm accepts a BSD-compat flag.
5233 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5234 # nm: unknown option "B" ignored
5235 # Tru64's nm complains that /dev/null is an invalid object file
5236 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5237 */dev/null* | *'Invalid file or object type'*)
5238 lt_cv_path_NM="$tmp_nm -B"
5242 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5244 lt_cv_path_NM="$tmp_nm -p"
5248 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5249 continue # so that we can try to find one that supports BSD flags
5258 : ${lt_cv_path_NM=no}
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5262 $as_echo "$lt_cv_path_NM" >&6; }
5263 if test "$lt_cv_path_NM" != "no"; then
5266 # Didn't find any BSD compatible name lister, look for dumpbin.
5267 if test -n "$DUMPBIN"; then :
5268 # Let the user override the test.
5270 if test -n "$ac_tool_prefix"; then
5271 for ac_prog in dumpbin "link -dump"
5273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_prog_DUMPBIN+:} false; then :
5278 $as_echo_n "(cached) " >&6
5280 if test -n "$DUMPBIN"; then
5281 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 DUMPBIN=$ac_cv_prog_DUMPBIN
5301 if test -n "$DUMPBIN"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5303 $as_echo "$DUMPBIN" >&6; }
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5310 test -n "$DUMPBIN" && break
5313 if test -z "$DUMPBIN"; then
5314 ac_ct_DUMPBIN=$DUMPBIN
5315 for ac_prog in dumpbin "link -dump"
5317 # Extract the first word of "$ac_prog", so it can be a program name with args.
5318 set dummy $ac_prog; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5322 $as_echo_n "(cached) " >&6
5324 if test -n "$ac_ct_DUMPBIN"; then
5325 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5345 if test -n "$ac_ct_DUMPBIN"; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5347 $as_echo "$ac_ct_DUMPBIN" >&6; }
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5354 test -n "$ac_ct_DUMPBIN" && break
5357 if test "x$ac_ct_DUMPBIN" = x; then
5360 case $cross_compiling:$ac_tool_warned in
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5364 ac_tool_warned=yes ;;
5366 DUMPBIN=$ac_ct_DUMPBIN
5370 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5372 DUMPBIN="$DUMPBIN -symbols"
5380 if test "$DUMPBIN" != ":"; then
5384 test -z "$NM" && NM=nm
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5392 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5393 if ${lt_cv_nm_interface+:} false; then :
5394 $as_echo_n "(cached) " >&6
5396 lt_cv_nm_interface="BSD nm"
5397 echo "int some_variable = 0;" > conftest.$ac_ext
5398 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5399 (eval "$ac_compile" 2>conftest.err)
5400 cat conftest.err >&5
5401 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5402 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5403 cat conftest.err >&5
5404 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5405 cat conftest.out >&5
5406 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5407 lt_cv_nm_interface="MS dumpbin"
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5412 $as_echo "$lt_cv_nm_interface" >&6; }
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5415 $as_echo_n "checking whether ln -s works... " >&6; }
5417 if test "$LN_S" = "ln -s"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5419 $as_echo "yes" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5422 $as_echo "no, using $LN_S" >&6; }
5425 # find the maximum length of command line arguments
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5427 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5428 if ${lt_cv_sys_max_cmd_len+:} false; then :
5429 $as_echo_n "(cached) " >&6
5436 # On DJGPP, this test can blow up pretty badly due to problems in libc
5437 # (any single argument exceeding 2000 bytes causes a buffer overrun
5438 # during glob expansion). Even if it were fixed, the result of this
5439 # check would be larger than it should be.
5440 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5444 # Under GNU Hurd, this test is not required because there is
5445 # no limit to the length of command line arguments.
5446 # Libtool will interpret -1 as no limit whatsoever
5447 lt_cv_sys_max_cmd_len=-1;
5450 cygwin* | mingw* | cegcc*)
5451 # On Win9x/ME, this test blows up -- it succeeds, but takes
5452 # about 5 minutes as the teststring grows exponentially.
5453 # Worse, since 9x/ME are not pre-emptively multitasking,
5454 # you end up with a "frozen" computer, even though with patience
5455 # the test eventually succeeds (with a max line length of 256k).
5456 # Instead, let's just punt: use the minimum linelength reported by
5457 # all of the supported platforms: 8192 (on NT/2K/XP).
5458 lt_cv_sys_max_cmd_len=8192;
5462 # On MiNT this can take a long time and run out of memory.
5463 lt_cv_sys_max_cmd_len=8192;
5467 # On AmigaOS with pdksh, this test takes hours, literally.
5468 # So we just punt and use a minimum line length of 8192.
5469 lt_cv_sys_max_cmd_len=8192;
5472 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5473 # This has been around since 386BSD, at least. Likely further.
5474 if test -x /sbin/sysctl; then
5475 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5476 elif test -x /usr/sbin/sysctl; then
5477 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5479 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5481 # And add a safety zone
5482 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5487 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5488 lt_cv_sys_max_cmd_len=196608
5492 # The test takes a long time on OS/2.
5493 lt_cv_sys_max_cmd_len=8192
5497 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5498 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5499 # nice to cause kernel panics so lets avoid the loop below.
5500 # First set a reasonable default.
5501 lt_cv_sys_max_cmd_len=16384
5503 if test -x /sbin/sysconfig; then
5504 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5505 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5510 lt_cv_sys_max_cmd_len=102400
5512 sysv5* | sco5v6* | sysv4.2uw2*)
5513 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5514 if test -n "$kargmax"; then
5515 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5517 lt_cv_sys_max_cmd_len=32768
5521 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5522 if test -n "$lt_cv_sys_max_cmd_len"; then
5523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5526 # Make teststring a little bigger before we do anything with it.
5527 # a 1K string should be a reasonable start.
5528 for i in 1 2 3 4 5 6 7 8 ; do
5529 teststring=$teststring$teststring
5531 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5532 # If test is not a shell built-in, we'll probably end up computing a
5533 # maximum length that is only half of the actual maximum length, but
5535 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5536 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5537 test $i != 17 # 1/2 MB should be enough
5540 teststring=$teststring$teststring
5542 # Only check the string length outside the loop.
5543 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5545 # Add a significant safety factor because C++ compilers can tack on
5546 # massive amounts of additional arguments before passing them to the
5547 # linker. It appears as though 1/2 is a usable value.
5548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5555 if test -n $lt_cv_sys_max_cmd_len ; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5557 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5560 $as_echo "none" >&6; }
5562 max_cmd_len=$lt_cv_sys_max_cmd_len
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5574 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5575 # Try some XSI features
5578 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5580 && eval 'test $(( 1 + 1 )) -eq 2 \
5581 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5584 $as_echo "$xsi_shell" >&6; }
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5588 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5590 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5592 && lt_shell_append=yes
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5594 $as_echo "$lt_shell_append" >&6; }
5597 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5607 # test EBCDIC or ASCII
5608 case `echo X|tr X '\101'` in
5609 A) # ASCII based system
5610 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5611 lt_SP2NL='tr \040 \012'
5612 lt_NL2SP='tr \015\012 \040\040'
5614 *) # EBCDIC based system
5615 lt_SP2NL='tr \100 \n'
5616 lt_NL2SP='tr \r\n \100\100'
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5629 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5630 if ${lt_cv_to_host_file_cmd+:} false; then :
5631 $as_echo_n "(cached) " >&6
5636 *-*-mingw* ) # actually msys
5637 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5640 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5642 * ) # otherwise, assume *nix
5643 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5649 *-*-mingw* ) # actually msys
5650 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5653 lt_cv_to_host_file_cmd=func_convert_file_noop
5655 * ) # otherwise, assume *nix
5656 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5660 * ) # unhandled hosts (and "normal" native builds)
5661 lt_cv_to_host_file_cmd=func_convert_file_noop
5667 to_host_file_cmd=$lt_cv_to_host_file_cmd
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5669 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5676 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5677 if ${lt_cv_to_tool_file_cmd+:} false; then :
5678 $as_echo_n "(cached) " >&6
5680 #assume ordinary cross tools, or native build.
5681 lt_cv_to_tool_file_cmd=func_convert_file_noop
5685 *-*-mingw* ) # actually msys
5686 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5694 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5696 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5703 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5704 if ${lt_cv_ld_reload_flag+:} false; then :
5705 $as_echo_n "(cached) " >&6
5707 lt_cv_ld_reload_flag='-r'
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5710 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5711 reload_flag=$lt_cv_ld_reload_flag
5712 case $reload_flag in
5714 *) reload_flag=" $reload_flag" ;;
5716 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5718 cygwin* | mingw* | pw32* | cegcc*)
5719 if test "$GCC" != yes; then
5724 if test "$GCC" = yes; then
5725 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5727 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5740 if test -n "$ac_tool_prefix"; then
5741 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5742 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_OBJDUMP+:} false; then :
5746 $as_echo_n "(cached) " >&6
5748 if test -n "$OBJDUMP"; then
5749 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 OBJDUMP=$ac_cv_prog_OBJDUMP
5769 if test -n "$OBJDUMP"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5771 $as_echo "$OBJDUMP" >&6; }
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5779 if test -z "$ac_cv_prog_OBJDUMP"; then
5780 ac_ct_OBJDUMP=$OBJDUMP
5781 # Extract the first word of "objdump", so it can be a program name with args.
5782 set dummy objdump; ac_word=$2
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784 $as_echo_n "checking for $ac_word... " >&6; }
5785 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5786 $as_echo_n "(cached) " >&6
5788 if test -n "$ac_ct_OBJDUMP"; then
5789 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5798 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5809 if test -n "$ac_ct_OBJDUMP"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5811 $as_echo "$ac_ct_OBJDUMP" >&6; }
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5817 if test "x$ac_ct_OBJDUMP" = x; then
5820 case $cross_compiling:$ac_tool_warned in
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5824 ac_tool_warned=yes ;;
5826 OBJDUMP=$ac_ct_OBJDUMP
5829 OBJDUMP="$ac_cv_prog_OBJDUMP"
5832 test -z "$OBJDUMP" && OBJDUMP=objdump
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5843 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5844 if ${lt_cv_deplibs_check_method+:} false; then :
5845 $as_echo_n "(cached) " >&6
5847 lt_cv_file_magic_cmd='$MAGIC_CMD'
5848 lt_cv_file_magic_test_file=
5849 lt_cv_deplibs_check_method='unknown'
5850 # Need to set the preceding variable on all platforms that support
5851 # interlibrary dependencies.
5852 # 'none' -- dependencies not supported.
5853 # `unknown' -- same as none, but documents that we really don't know.
5854 # 'pass_all' -- all dependencies passed with no checks.
5855 # 'test_compile' -- check by making test program.
5856 # 'file_magic [[regex]]' -- check by looking for files in library path
5857 # which responds to the $file_magic_cmd with a given extended regex.
5858 # If you have `file' or equivalent on your system and you're not sure
5859 # whether `pass_all' will *always* work, you probably want this one.
5863 lt_cv_deplibs_check_method=pass_all
5867 lt_cv_deplibs_check_method=pass_all
5871 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5872 lt_cv_file_magic_cmd='/usr/bin/file -L'
5873 lt_cv_file_magic_test_file=/shlib/libc.so
5877 # func_win32_libid is a shell function defined in ltmain.sh
5878 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5879 lt_cv_file_magic_cmd='func_win32_libid'
5883 # Base MSYS/MinGW do not provide the 'file' command needed by
5884 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5885 # unless we find 'file', for example because we are cross-compiling.
5886 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5887 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5888 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5889 lt_cv_file_magic_cmd='func_win32_libid'
5891 # Keep this pattern in sync with the one in func_win32_libid.
5892 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5893 lt_cv_file_magic_cmd='$OBJDUMP -f'
5898 # use the weaker test based on 'objdump'. See mingw*.
5899 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5900 lt_cv_file_magic_cmd='$OBJDUMP -f'
5903 darwin* | rhapsody*)
5904 lt_cv_deplibs_check_method=pass_all
5907 freebsd* | dragonfly*)
5908 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5911 # Not sure whether the presence of OpenBSD here was a mistake.
5912 # Let's accept both of them until this is cleared up.
5913 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5914 lt_cv_file_magic_cmd=/usr/bin/file
5915 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5919 lt_cv_deplibs_check_method=pass_all
5924 lt_cv_deplibs_check_method=pass_all
5928 lt_cv_deplibs_check_method=pass_all
5931 hpux10.20* | hpux11*)
5932 lt_cv_file_magic_cmd=/usr/bin/file
5935 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5936 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5939 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5940 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5943 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5944 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5950 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5954 irix5* | irix6* | nonstopux*)
5956 *-32|*"-32 ") libmagic=32-bit;;
5957 *-n32|*"-n32 ") libmagic=N32;;
5958 *-64|*"-64 ") libmagic=64-bit;;
5959 *) libmagic=never-match;;
5961 lt_cv_deplibs_check_method=pass_all
5964 # This must be glibc/ELF.
5965 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5966 lt_cv_deplibs_check_method=pass_all
5969 netbsd* | netbsdelf*-gnu)
5970 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5979 lt_cv_file_magic_cmd=/usr/bin/file
5980 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5984 lt_cv_deplibs_check_method=pass_all
5988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5995 osf3* | osf4* | osf5*)
5996 lt_cv_deplibs_check_method=pass_all
6000 lt_cv_deplibs_check_method=pass_all
6004 lt_cv_deplibs_check_method=pass_all
6007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6008 lt_cv_deplibs_check_method=pass_all
6012 case $host_vendor in
6014 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]'
6015 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6018 lt_cv_deplibs_check_method=pass_all
6021 lt_cv_file_magic_cmd='/bin/file'
6022 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6025 lt_cv_file_magic_cmd='/bin/file'
6026 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6027 lt_cv_file_magic_test_file=/lib/libc.so
6030 lt_cv_deplibs_check_method=pass_all
6033 lt_cv_deplibs_check_method=pass_all
6039 lt_cv_deplibs_check_method=pass_all
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6045 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6049 if test "$build" = "$host"; then
6052 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6055 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6061 file_magic_cmd=$lt_cv_file_magic_cmd
6062 deplibs_check_method=$lt_cv_deplibs_check_method
6063 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6086 if test -n "$ac_tool_prefix"; then
6087 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6088 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if ${ac_cv_prog_DLLTOOL+:} false; then :
6092 $as_echo_n "(cached) " >&6
6094 if test -n "$DLLTOOL"; then
6095 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 DLLTOOL=$ac_cv_prog_DLLTOOL
6115 if test -n "$DLLTOOL"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6117 $as_echo "$DLLTOOL" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6125 if test -z "$ac_cv_prog_DLLTOOL"; then
6126 ac_ct_DLLTOOL=$DLLTOOL
6127 # Extract the first word of "dlltool", so it can be a program name with args.
6128 set dummy dlltool; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6132 $as_echo_n "(cached) " >&6
6134 if test -n "$ac_ct_DLLTOOL"; then
6135 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6155 if test -n "$ac_ct_DLLTOOL"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6157 $as_echo "$ac_ct_DLLTOOL" >&6; }
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6163 if test "x$ac_ct_DLLTOOL" = x; then
6166 case $cross_compiling:$ac_tool_warned in
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170 ac_tool_warned=yes ;;
6172 DLLTOOL=$ac_ct_DLLTOOL
6175 DLLTOOL="$ac_cv_prog_DLLTOOL"
6178 test -z "$DLLTOOL" && DLLTOOL=dlltool
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6190 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6191 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6192 $as_echo_n "(cached) " >&6
6194 lt_cv_sharedlib_from_linklib_cmd='unknown'
6197 cygwin* | mingw* | pw32* | cegcc*)
6198 # two different shell functions defined in ltmain.sh
6199 # decide which to use based on capabilities of $DLLTOOL
6200 case `$DLLTOOL --help 2>&1` in
6201 *--identify-strict*)
6202 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6205 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6210 # fallback: assume linklib IS sharedlib
6211 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6217 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6218 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6219 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6227 if test -n "$ac_tool_prefix"; then
6230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if ${ac_cv_prog_AR+:} false; then :
6235 $as_echo_n "(cached) " >&6
6237 if test -n "$AR"; then
6238 ac_cv_prog_AR="$AR" # Let the user override the test.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 if test -n "$AR"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6260 $as_echo "$AR" >&6; }
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6267 test -n "$AR" && break
6270 if test -z "$AR"; then
6274 # Extract the first word of "$ac_prog", so it can be a program name with args.
6275 set dummy $ac_prog; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6279 $as_echo_n "(cached) " >&6
6281 if test -n "$ac_ct_AR"; then
6282 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_ac_ct_AR="$ac_prog"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6302 if test -n "$ac_ct_AR"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6304 $as_echo "$ac_ct_AR" >&6; }
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6311 test -n "$ac_ct_AR" && break
6314 if test "x$ac_ct_AR" = x; then
6317 case $cross_compiling:$ac_tool_warned in
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6321 ac_tool_warned=yes ;;
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6341 $as_echo_n "checking for archiver @FILE support... " >&6; }
6342 if ${lt_cv_ar_at_file+:} false; then :
6343 $as_echo_n "(cached) " >&6
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6357 if ac_fn_c_try_compile "$LINENO"; then :
6358 echo conftest.$ac_objext > conftest.lst
6359 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6361 (eval $lt_ar_try) 2>&5
6363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6364 test $ac_status = 0; }
6365 if test "$ac_status" -eq 0; then
6366 # Ensure the archiver fails upon bogus file names.
6367 rm -f conftest.$ac_objext libconftest.a
6368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6369 (eval $lt_ar_try) 2>&5
6371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6372 test $ac_status = 0; }
6373 if test "$ac_status" -ne 0; then
6377 rm -f conftest.* libconftest.a
6380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6384 $as_echo "$lt_cv_ar_at_file" >&6; }
6386 if test "x$lt_cv_ar_at_file" = xno; then
6389 archiver_list_spec=$lt_cv_ar_at_file
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}strip; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_STRIP+:} false; then :
6404 $as_echo_n "(cached) " >&6
6406 if test -n "$STRIP"; then
6407 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6416 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 STRIP=$ac_cv_prog_STRIP
6427 if test -n "$STRIP"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6429 $as_echo "$STRIP" >&6; }
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6437 if test -z "$ac_cv_prog_STRIP"; then
6439 # Extract the first word of "strip", so it can be a program name with args.
6440 set dummy strip; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6444 $as_echo_n "(cached) " >&6
6446 if test -n "$ac_ct_STRIP"; then
6447 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_ac_ct_STRIP="strip"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6467 if test -n "$ac_ct_STRIP"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6469 $as_echo "$ac_ct_STRIP" >&6; }
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6475 if test "x$ac_ct_STRIP" = x; then
6478 case $cross_compiling:$ac_tool_warned in
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6487 STRIP="$ac_cv_prog_STRIP"
6490 test -z "$STRIP" && STRIP=:
6497 if test -n "$ac_tool_prefix"; then
6498 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6499 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_RANLIB+:} false; then :
6503 $as_echo_n "(cached) " >&6
6505 if test -n "$RANLIB"; then
6506 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 RANLIB=$ac_cv_prog_RANLIB
6526 if test -n "$RANLIB"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6528 $as_echo "$RANLIB" >&6; }
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6536 if test -z "$ac_cv_prog_RANLIB"; then
6537 ac_ct_RANLIB=$RANLIB
6538 # Extract the first word of "ranlib", so it can be a program name with args.
6539 set dummy ranlib; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6543 $as_echo_n "(cached) " >&6
6545 if test -n "$ac_ct_RANLIB"; then
6546 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_prog_ac_ct_RANLIB="ranlib"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6566 if test -n "$ac_ct_RANLIB"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6568 $as_echo "$ac_ct_RANLIB" >&6; }
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6574 if test "x$ac_ct_RANLIB" = x; then
6577 case $cross_compiling:$ac_tool_warned in
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581 ac_tool_warned=yes ;;
6583 RANLIB=$ac_ct_RANLIB
6586 RANLIB="$ac_cv_prog_RANLIB"
6589 test -z "$RANLIB" && RANLIB=:
6596 # Determine commands to create old-style static archives.
6597 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6598 old_postinstall_cmds='chmod 644 $oldlib'
6599 old_postuninstall_cmds=
6601 if test -n "$RANLIB"; then
6604 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6607 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6610 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6615 lock_old_archive_extraction=yes ;;
6617 lock_old_archive_extraction=no ;;
6658 # If no C compiler was specified, use CC.
6661 # If no C compiler flags were specified, use CFLAGS.
6662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6664 # Allow CC to be a program name with arguments.
6668 # Check for command to grab the raw symbol name followed by C symbol from nm.
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6670 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6671 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6672 $as_echo_n "(cached) " >&6
6675 # These are sane defaults that work on at least a few old systems.
6676 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6678 # Character class describing NM global symbol codes.
6679 symcode='[BCDEGRST]'
6681 # Regexp to match symbols that can be accessed directly from C.
6682 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6684 # Define system-specific variables.
6689 cygwin* | mingw* | pw32* | cegcc*)
6690 symcode='[ABCDGISTW]'
6693 if test "$host_cpu" = ia64; then
6694 symcode='[ABCDEGRST]'
6698 symcode='[BCDEGRST]'
6701 symcode='[BCDEGQRST]'
6712 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6720 # If we're using GNU nm, then use its standard symbol codes.
6721 case `$NM -V 2>&1` in
6722 *GNU* | *'with BFD'*)
6723 symcode='[ABCDGIRSTW]' ;;
6726 # Transform an extracted symbol line into a proper C declaration.
6727 # Some systems (esp. on ia64) link data and code symbols differently,
6728 # so use this general approach.
6729 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6731 # Transform an extracted symbol line into symbol name and symbol address
6732 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6733 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'"
6735 # Handle CRLF in mingw tool chain
6739 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6743 # Try without a prefix underscore, then with it.
6744 for ac_symprfx in "" "_"; do
6746 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6747 symxfrm="\\1 $ac_symprfx\\2 \\2"
6749 # Write the raw and C identifiers.
6750 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6751 # Fake it for dumpbin and say T for any non-static function
6752 # and D for any global variable.
6753 # Also find C++ and __fastcall symbols from MSVC++,
6754 # which start with @ or ?.
6755 lt_cv_sys_global_symbol_pipe="$AWK '"\
6756 " {last_section=section; section=\$ 3};"\
6757 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6758 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6759 " \$ 0!~/External *\|/{next};"\
6760 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6761 " {if(hide[section]) next};"\
6762 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6763 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6764 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6765 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6766 " ' prfx=^$ac_symprfx"
6768 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6770 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6772 # Check to see that the pipe works correctly.
6776 cat > conftest.$ac_ext <<_LT_EOF
6781 void nm_test_func(void);
6782 void nm_test_func(void){}
6786 int main(){nm_test_var='a';nm_test_func();return(0);}
6789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6790 (eval $ac_compile) 2>&5
6792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793 test $ac_status = 0; }; then
6794 # Now try to grab the symbols.
6796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6797 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6800 test $ac_status = 0; } && test -s "$nlist"; then
6801 # Try sorting and uniquifying the output.
6802 if sort "$nlist" | uniq > "$nlist"T; then
6803 mv -f "$nlist"T "$nlist"
6808 # Make sure that we snagged all the symbols we need.
6809 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6810 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6811 cat <<_LT_EOF > conftest.$ac_ext
6812 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6813 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6814 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6815 relocations are performed -- see ld's documentation on pseudo-relocs. */
6816 # define LT_DLSYM_CONST
6817 #elif defined(__osf__)
6818 /* This system does not cope well with relocations in const data. */
6819 # define LT_DLSYM_CONST
6821 # define LT_DLSYM_CONST const
6829 # Now generate the symbol file.
6830 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6832 cat <<_LT_EOF >> conftest.$ac_ext
6834 /* The mapping between symbol names and symbols. */
6835 LT_DLSYM_CONST struct {
6839 lt__PROGRAM__LTX_preloaded_symbols[] =
6841 { "@PROGRAM@", (void *) 0 },
6843 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6844 cat <<\_LT_EOF >> conftest.$ac_ext
6848 /* This works around a problem in FreeBSD linker */
6849 #ifdef FREEBSD_WORKAROUND
6850 static const void *lt_preloaded_setup() {
6851 return lt__PROGRAM__LTX_preloaded_symbols;
6859 # Now try linking the two files.
6860 mv conftest.$ac_objext conftstm.$ac_objext
6861 lt_globsym_save_LIBS=$LIBS
6862 lt_globsym_save_CFLAGS=$CFLAGS
6863 LIBS="conftstm.$ac_objext"
6864 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6866 (eval $ac_link) 2>&5
6868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6869 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6872 LIBS=$lt_globsym_save_LIBS
6873 CFLAGS=$lt_globsym_save_CFLAGS
6875 echo "cannot find nm_test_func in $nlist" >&5
6878 echo "cannot find nm_test_var in $nlist" >&5
6881 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6884 echo "$progname: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6887 rm -rf conftest* conftst*
6889 # Do not use the global_symbol_pipe unless it works.
6890 if test "$pipe_works" = yes; then
6893 lt_cv_sys_global_symbol_pipe=
6899 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6900 lt_cv_sys_global_symbol_to_cdecl=
6902 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6904 $as_echo "failed" >&6; }
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6907 $as_echo "ok" >&6; }
6910 # Response file support.
6911 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6912 nm_file_list_spec='@'
6913 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6914 nm_file_list_spec='@'
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6944 $as_echo_n "checking for sysroot... " >&6; }
6946 # Check whether --with-sysroot was given.
6947 if test "${with_sysroot+set}" = set; then :
6948 withval=$with_sysroot;
6955 case ${with_sysroot} in #(
6957 if test "$GCC" = yes; then
6958 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6962 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6968 $as_echo "${with_sysroot}" >&6; }
6969 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6974 $as_echo "${lt_sysroot:-no}" >&6; }
6980 # Check whether --enable-libtool-lock was given.
6981 if test "${enable_libtool_lock+set}" = set; then :
6982 enableval=$enable_libtool_lock;
6985 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6987 # Some flags need to be propagated to the compiler or linker for good
6991 # Find out which ABI we are using.
6992 echo 'int i;' > conftest.$ac_ext
6993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6994 (eval $ac_compile) 2>&5
6996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6997 test $ac_status = 0; }; then
6998 case `/usr/bin/file conftest.$ac_objext` in
7010 # Find out which ABI we are using.
7011 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7013 (eval $ac_compile) 2>&5
7015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7016 test $ac_status = 0; }; then
7017 if test "$lt_cv_prog_gnu_ld" = yes; then
7018 case `/usr/bin/file conftest.$ac_objext` in
7020 LD="${LD-ld} -melf32bsmip"
7023 LD="${LD-ld} -melf32bmipn32"
7026 LD="${LD-ld} -melf64bmip"
7030 case `/usr/bin/file conftest.$ac_objext` in
7046 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7047 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7048 # Find out which ABI we are using.
7049 echo 'int i;' > conftest.$ac_ext
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 case `/usr/bin/file conftest.o` in
7058 x86_64-*kfreebsd*-gnu)
7059 LD="${LD-ld} -m elf_i386_fbsd"
7062 LD="${LD-ld} -m elf_i386"
7064 ppc64-*linux*|powerpc64-*linux*)
7065 LD="${LD-ld} -m elf32ppclinux"
7068 LD="${LD-ld} -m elf_s390"
7071 LD="${LD-ld} -m elf32_sparc"
7077 x86_64-*kfreebsd*-gnu)
7078 LD="${LD-ld} -m elf_x86_64_fbsd"
7081 LD="${LD-ld} -m elf_x86_64"
7083 ppc*-*linux*|powerpc*-*linux*)
7084 LD="${LD-ld} -m elf64ppc"
7086 s390*-*linux*|s390*-*tpf*)
7087 LD="${LD-ld} -m elf64_s390"
7090 LD="${LD-ld} -m elf64_sparc"
7100 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7101 SAVE_CFLAGS="$CFLAGS"
7102 CFLAGS="$CFLAGS -belf"
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7104 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7105 if ${lt_cv_cc_needs_belf+:} false; then :
7106 $as_echo_n "(cached) " >&6
7109 ac_cpp='$CPP $CPPFLAGS'
7110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7125 if ac_fn_c_try_link "$LINENO"; then :
7126 lt_cv_cc_needs_belf=yes
7128 lt_cv_cc_needs_belf=no
7130 rm -f core conftest.err conftest.$ac_objext \
7131 conftest$ac_exeext conftest.$ac_ext
7133 ac_cpp='$CPP $CPPFLAGS'
7134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7140 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7141 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7142 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7143 CFLAGS="$SAVE_CFLAGS"
7147 # Find out which ABI we are using.
7148 echo 'int i;' > conftest.$ac_ext
7149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7150 (eval $ac_compile) 2>&5
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; }; then
7154 case `/usr/bin/file conftest.o` in
7156 case $lt_cv_prog_gnu_ld in
7160 LD="${LD-ld} -m elf_x86_64"
7163 LD="${LD-ld} -m elf64_sparc"
7166 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7167 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7172 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7184 need_locks="$enable_libtool_lock"
7186 if test -n "$ac_tool_prefix"; then
7187 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}mt; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7192 $as_echo_n "(cached) " >&6
7194 if test -n "$MANIFEST_TOOL"; then
7195 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7204 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7215 if test -n "$MANIFEST_TOOL"; then
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7217 $as_echo "$MANIFEST_TOOL" >&6; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7225 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7226 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7227 # Extract the first word of "mt", so it can be a program name with args.
7228 set dummy mt; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7232 $as_echo_n "(cached) " >&6
7234 if test -n "$ac_ct_MANIFEST_TOOL"; then
7235 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7244 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7255 if test -n "$ac_ct_MANIFEST_TOOL"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7257 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7263 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7266 case $cross_compiling:$ac_tool_warned in
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7272 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7275 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7278 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7280 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7281 if ${lt_cv_path_mainfest_tool+:} false; then :
7282 $as_echo_n "(cached) " >&6
7284 lt_cv_path_mainfest_tool=no
7285 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7286 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7287 cat conftest.err >&5
7288 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7289 lt_cv_path_mainfest_tool=yes
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7294 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7295 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7305 rhapsody* | darwin*)
7306 if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7308 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7312 $as_echo_n "(cached) " >&6
7314 if test -n "$DSYMUTIL"; then
7315 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7324 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7335 if test -n "$DSYMUTIL"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7337 $as_echo "$DSYMUTIL" >&6; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7345 if test -z "$ac_cv_prog_DSYMUTIL"; then
7346 ac_ct_DSYMUTIL=$DSYMUTIL
7347 # Extract the first word of "dsymutil", so it can be a program name with args.
7348 set dummy dsymutil; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7352 $as_echo_n "(cached) " >&6
7354 if test -n "$ac_ct_DSYMUTIL"; then
7355 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7375 if test -n "$ac_ct_DSYMUTIL"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7377 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7383 if test "x$ac_ct_DSYMUTIL" = x; then
7386 case $cross_compiling:$ac_tool_warned in
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7390 ac_tool_warned=yes ;;
7392 DSYMUTIL=$ac_ct_DSYMUTIL
7395 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7398 if test -n "$ac_tool_prefix"; then
7399 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7400 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if ${ac_cv_prog_NMEDIT+:} false; then :
7404 $as_echo_n "(cached) " >&6
7406 if test -n "$NMEDIT"; then
7407 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7416 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 NMEDIT=$ac_cv_prog_NMEDIT
7427 if test -n "$NMEDIT"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7429 $as_echo "$NMEDIT" >&6; }
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7437 if test -z "$ac_cv_prog_NMEDIT"; then
7438 ac_ct_NMEDIT=$NMEDIT
7439 # Extract the first word of "nmedit", so it can be a program name with args.
7440 set dummy nmedit; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7444 $as_echo_n "(cached) " >&6
7446 if test -n "$ac_ct_NMEDIT"; then
7447 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7467 if test -n "$ac_ct_NMEDIT"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7469 $as_echo "$ac_ct_NMEDIT" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7475 if test "x$ac_ct_NMEDIT" = x; then
7478 case $cross_compiling:$ac_tool_warned in
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7482 ac_tool_warned=yes ;;
7484 NMEDIT=$ac_ct_NMEDIT
7487 NMEDIT="$ac_cv_prog_NMEDIT"
7490 if test -n "$ac_tool_prefix"; then
7491 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7492 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if ${ac_cv_prog_LIPO+:} false; then :
7496 $as_echo_n "(cached) " >&6
7498 if test -n "$LIPO"; then
7499 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 LIPO=$ac_cv_prog_LIPO
7519 if test -n "$LIPO"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7521 $as_echo "$LIPO" >&6; }
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7529 if test -z "$ac_cv_prog_LIPO"; then
7531 # Extract the first word of "lipo", so it can be a program name with args.
7532 set dummy lipo; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7536 $as_echo_n "(cached) " >&6
7538 if test -n "$ac_ct_LIPO"; then
7539 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548 ac_cv_prog_ac_ct_LIPO="lipo"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7559 if test -n "$ac_ct_LIPO"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7561 $as_echo "$ac_ct_LIPO" >&6; }
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7567 if test "x$ac_ct_LIPO" = x; then
7570 case $cross_compiling:$ac_tool_warned in
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7574 ac_tool_warned=yes ;;
7579 LIPO="$ac_cv_prog_LIPO"
7582 if test -n "$ac_tool_prefix"; then
7583 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7584 set dummy ${ac_tool_prefix}otool; ac_word=$2
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586 $as_echo_n "checking for $ac_word... " >&6; }
7587 if ${ac_cv_prog_OTOOL+:} false; then :
7588 $as_echo_n "(cached) " >&6
7590 if test -n "$OTOOL"; then
7591 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7600 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 OTOOL=$ac_cv_prog_OTOOL
7611 if test -n "$OTOOL"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7613 $as_echo "$OTOOL" >&6; }
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7621 if test -z "$ac_cv_prog_OTOOL"; then
7623 # Extract the first word of "otool", so it can be a program name with args.
7624 set dummy otool; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7628 $as_echo_n "(cached) " >&6
7630 if test -n "$ac_ct_OTOOL"; then
7631 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7640 ac_cv_prog_ac_ct_OTOOL="otool"
7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7651 if test -n "$ac_ct_OTOOL"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7653 $as_echo "$ac_ct_OTOOL" >&6; }
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7659 if test "x$ac_ct_OTOOL" = x; then
7662 case $cross_compiling:$ac_tool_warned in
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7666 ac_tool_warned=yes ;;
7671 OTOOL="$ac_cv_prog_OTOOL"
7674 if test -n "$ac_tool_prefix"; then
7675 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7676 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678 $as_echo_n "checking for $ac_word... " >&6; }
7679 if ${ac_cv_prog_OTOOL64+:} false; then :
7680 $as_echo_n "(cached) " >&6
7682 if test -n "$OTOOL64"; then
7683 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7692 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 OTOOL64=$ac_cv_prog_OTOOL64
7703 if test -n "$OTOOL64"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7705 $as_echo "$OTOOL64" >&6; }
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7713 if test -z "$ac_cv_prog_OTOOL64"; then
7714 ac_ct_OTOOL64=$OTOOL64
7715 # Extract the first word of "otool64", so it can be a program name with args.
7716 set dummy otool64; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7720 $as_echo_n "(cached) " >&6
7722 if test -n "$ac_ct_OTOOL64"; then
7723 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7732 ac_cv_prog_ac_ct_OTOOL64="otool64"
7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7743 if test -n "$ac_ct_OTOOL64"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7745 $as_echo "$ac_ct_OTOOL64" >&6; }
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7751 if test "x$ac_ct_OTOOL64" = x; then
7754 case $cross_compiling:$ac_tool_warned in
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7758 ac_tool_warned=yes ;;
7760 OTOOL64=$ac_ct_OTOOL64
7763 OTOOL64="$ac_cv_prog_OTOOL64"
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7793 $as_echo_n "checking for -single_module linker flag... " >&6; }
7794 if ${lt_cv_apple_cc_single_mod+:} false; then :
7795 $as_echo_n "(cached) " >&6
7797 lt_cv_apple_cc_single_mod=no
7798 if test -z "${LT_MULTI_MODULE}"; then
7799 # By default we will add the -single_module flag. You can override
7800 # by either setting the environment variable LT_MULTI_MODULE
7801 # non-empty at configure time, or by adding -multi_module to the
7803 rm -rf libconftest.dylib*
7804 echo "int foo(void){return 1;}" > conftest.c
7805 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7806 -dynamiclib -Wl,-single_module conftest.c" >&5
7807 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7808 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7810 # If there is a non-empty error log, and "single_module"
7811 # appears in it, assume the flag caused a linker warning
7812 if test -s conftest.err && $GREP single_module conftest.err; then
7813 cat conftest.err >&5
7814 # Otherwise, if the output was created with a 0 exit code from
7815 # the compiler, it worked.
7816 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7817 lt_cv_apple_cc_single_mod=yes
7819 cat conftest.err >&5
7821 rm -rf libconftest.dylib*
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7826 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7829 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7830 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7831 $as_echo_n "(cached) " >&6
7833 lt_cv_ld_exported_symbols_list=no
7834 save_LDFLAGS=$LDFLAGS
7835 echo "_main" > conftest.sym
7836 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7848 if ac_fn_c_try_link "$LINENO"; then :
7849 lt_cv_ld_exported_symbols_list=yes
7851 lt_cv_ld_exported_symbols_list=no
7853 rm -f core conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
7855 LDFLAGS="$save_LDFLAGS"
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7859 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7862 $as_echo_n "checking for -force_load linker flag... " >&6; }
7863 if ${lt_cv_ld_force_load+:} false; then :
7864 $as_echo_n "(cached) " >&6
7866 lt_cv_ld_force_load=no
7867 cat > conftest.c << _LT_EOF
7868 int forced_loaded() { return 2;}
7870 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7871 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7872 echo "$AR cru libconftest.a conftest.o" >&5
7873 $AR cru libconftest.a conftest.o 2>&5
7874 echo "$RANLIB libconftest.a" >&5
7875 $RANLIB libconftest.a 2>&5
7876 cat > conftest.c << _LT_EOF
7877 int main() { return 0;}
7879 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7880 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7882 if test -s conftest.err && $GREP force_load conftest.err; then
7883 cat conftest.err >&5
7884 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7885 lt_cv_ld_force_load=yes
7887 cat conftest.err >&5
7889 rm -f conftest.err libconftest.a conftest conftest.c
7890 rm -rf conftest.dSYM
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7894 $as_echo "$lt_cv_ld_force_load" >&6; }
7896 rhapsody* | darwin1.[012])
7897 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7899 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7900 darwin*) # darwin 5.x on
7901 # if running on 10.5 or later, the deployment target defaults
7902 # to the OS version, if on x86, and 10.4, the deployment
7903 # target defaults to 10.4. Don't you love it?
7904 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7905 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7906 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7908 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7910 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7914 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7915 _lt_dar_single_mod='$single_module'
7917 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7918 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7920 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7922 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7923 _lt_dsymutil='~$DSYMUTIL $lib || :'
7930 for ac_header in dlfcn.h
7932 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7934 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7935 cat >>confdefs.h <<_ACEOF
7936 #define HAVE_DLFCN_H 1
7948 # Check whether --enable-static was given.
7949 if test "${enable_static+set}" = set; then :
7950 enableval=$enable_static; p=${PACKAGE-default}
7952 yes) enable_static=yes ;;
7953 no) enable_static=no ;;
7956 # Look at the argument we got. We use all the common list separators.
7957 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7958 for pkg in $enableval; do
7960 if test "X$pkg" = "X$p"; then
7986 # Check whether --enable-shared was given.
7987 if test "${enable_shared+set}" = set; then :
7988 enableval=$enable_shared; p=${PACKAGE-default}
7990 yes) enable_shared=yes ;;
7991 no) enable_shared=no ;;
7994 # Look at the argument we got. We use all the common list separators.
7995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7996 for pkg in $enableval; do
7998 if test "X$pkg" = "X$p"; then
8019 # Check whether --with-pic was given.
8020 if test "${with_pic+set}" = set; then :
8021 withval=$with_pic; lt_p=${PACKAGE-default}
8023 yes|no) pic_mode=$withval ;;
8026 # Look at the argument we got. We use all the common list separators.
8027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8028 for lt_pkg in $withval; do
8030 if test "X$lt_pkg" = "X$lt_p"; then
8042 test -z "$pic_mode" && pic_mode=default
8050 # Check whether --enable-fast-install was given.
8051 if test "${enable_fast_install+set}" = set; then :
8052 enableval=$enable_fast_install; p=${PACKAGE-default}
8054 yes) enable_fast_install=yes ;;
8055 no) enable_fast_install=no ;;
8057 enable_fast_install=no
8058 # Look at the argument we got. We use all the common list separators.
8059 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8060 for pkg in $enableval; do
8062 if test "X$pkg" = "X$p"; then
8063 enable_fast_install=yes
8070 enable_fast_install=yes
8083 # This can be used to rebuild libtool when needed
8084 LIBTOOL_DEPS="$ltmain"
8086 # Always use our own libtool.
8087 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8118 test -z "$LN_S" && LN_S="ln -s"
8133 if test -n "${ZSH_VERSION+set}" ; then
8134 setopt NO_GLOB_SUBST
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8138 $as_echo_n "checking for objdir... " >&6; }
8139 if ${lt_cv_objdir+:} false; then :
8140 $as_echo_n "(cached) " >&6
8142 rm -f .libs 2>/dev/null
8143 mkdir .libs 2>/dev/null
8144 if test -d .libs; then
8147 # MS-DOS does not allow filenames that begin with a dot.
8150 rmdir .libs 2>/dev/null
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8153 $as_echo "$lt_cv_objdir" >&6; }
8154 objdir=$lt_cv_objdir
8160 cat >>confdefs.h <<_ACEOF
8161 #define LT_OBJDIR "$lt_cv_objdir/"
8169 # AIX sometimes has problems with the GCC collect2 program. For some
8170 # reason, if we set the COLLECT_NAMES environment variable, the problems
8171 # vanish in a puff of smoke.
8172 if test "X${COLLECT_NAMES+set}" != Xset; then
8174 export COLLECT_NAMES
8181 can_build_shared=yes
8183 # All known linkers require a `.a' archive for static linking (except MSVC,
8184 # which needs '.lib').
8187 with_gnu_ld="$lt_cv_prog_gnu_ld"
8190 old_CFLAGS="$CFLAGS"
8192 # Set sane defaults for various variables
8193 test -z "$CC" && CC=cc
8194 test -z "$LTCC" && LTCC=$CC
8195 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8196 test -z "$LD" && LD=ld
8197 test -z "$ac_objext" && ac_objext=o
8199 for cc_temp in $compiler""; do
8201 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8202 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8207 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8210 # Only perform the check for file, if the check method requires it
8211 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8212 case $deplibs_check_method in
8214 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8216 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8217 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8218 $as_echo_n "(cached) " >&6
8222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8225 lt_save_MAGIC_CMD="$MAGIC_CMD"
8226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8228 for ac_dir in $ac_dummy; do
8230 test -z "$ac_dir" && ac_dir=.
8231 if test -f $ac_dir/${ac_tool_prefix}file; then
8232 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8233 if test -n "$file_magic_test_file"; then
8234 case $deplibs_check_method in
8236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8239 $EGREP "$file_magic_regex" > /dev/null; then
8244 *** Warning: the command libtool uses to detect shared libraries,
8245 *** $file_magic_cmd, produces output that libtool cannot recognize.
8246 *** The result is that libtool may fail to recognize shared libraries
8247 *** as such. This will affect the creation of libtool libraries that
8248 *** depend on shared libraries, but programs linked with such libtool
8249 *** libraries will work regardless of this problem. Nevertheless, you
8250 *** may want to report the problem to your system manager and/or to
8251 *** bug-libtool@gnu.org
8261 MAGIC_CMD="$lt_save_MAGIC_CMD"
8266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8267 if test -n "$MAGIC_CMD"; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8269 $as_echo "$MAGIC_CMD" >&6; }
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8279 if test -z "$lt_cv_path_MAGIC_CMD"; then
8280 if test -n "$ac_tool_prefix"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8282 $as_echo_n "checking for file... " >&6; }
8283 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8284 $as_echo_n "(cached) " >&6
8288 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8291 lt_save_MAGIC_CMD="$MAGIC_CMD"
8292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8293 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8294 for ac_dir in $ac_dummy; do
8296 test -z "$ac_dir" && ac_dir=.
8297 if test -f $ac_dir/file; then
8298 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8299 if test -n "$file_magic_test_file"; then
8300 case $deplibs_check_method in
8302 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8304 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8305 $EGREP "$file_magic_regex" > /dev/null; then
8310 *** Warning: the command libtool uses to detect shared libraries,
8311 *** $file_magic_cmd, produces output that libtool cannot recognize.
8312 *** The result is that libtool may fail to recognize shared libraries
8313 *** as such. This will affect the creation of libtool libraries that
8314 *** depend on shared libraries, but programs linked with such libtool
8315 *** libraries will work regardless of this problem. Nevertheless, you
8316 *** may want to report the problem to your system manager and/or to
8317 *** bug-libtool@gnu.org
8327 MAGIC_CMD="$lt_save_MAGIC_CMD"
8332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8333 if test -n "$MAGIC_CMD"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8335 $as_echo "$MAGIC_CMD" >&6; }
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8351 # Use C for the default configuration in the libtool script
8355 ac_cpp='$CPP $CPPFLAGS'
8356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8361 # Source file extension for C test sources.
8364 # Object file extension for compiled C test sources.
8368 # Code to be used in simple compile tests
8369 lt_simple_compile_test_code="int some_variable = 0;"
8371 # Code to be used in simple link tests
8372 lt_simple_link_test_code='int main(){return(0);}'
8380 # If no C compiler was specified, use CC.
8383 # If no C compiler flags were specified, use CFLAGS.
8384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8386 # Allow CC to be a program name with arguments.
8389 # Save the default compiler, since it gets overwritten when the other
8390 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8391 compiler_DEFAULT=$CC
8393 # save warnings/boilerplate of simple test code
8394 ac_outfile=conftest.$ac_objext
8395 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8396 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8397 _lt_compiler_boilerplate=`cat conftest.err`
8400 ac_outfile=conftest.$ac_objext
8401 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8402 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8403 _lt_linker_boilerplate=`cat conftest.err`
8408 ## There is no encapsulation within the following macros, do not change
8409 ## the running order or otherwise move them around unless you know exactly
8410 ## what you are doing...
8411 if test -n "$compiler"; then
8413 lt_prog_compiler_no_builtin_flag=
8415 if test "$GCC" = yes; then
8416 case $cc_basename in
8418 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8420 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8424 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8425 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8426 $as_echo_n "(cached) " >&6
8428 lt_cv_prog_compiler_rtti_exceptions=no
8429 ac_outfile=conftest.$ac_objext
8430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8431 lt_compiler_flag="-fno-rtti -fno-exceptions"
8432 # Insert the option either (1) after the last *FLAGS variable, or
8433 # (2) before a word containing "conftest.", or (3) at the end.
8434 # Note that $ac_compile itself does not contain backslashes and begins
8435 # with a dollar sign (not a hyphen), so the echo should work correctly.
8436 # The option is referenced via a variable to avoid confusing sed.
8437 lt_compile=`echo "$ac_compile" | $SED \
8438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8440 -e 's:$: $lt_compiler_flag:'`
8441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8442 (eval "$lt_compile" 2>conftest.err)
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 if (exit $ac_status) && test -s "$ac_outfile"; then
8447 # The compiler can only warn and ignore the option if not recognized
8448 # So say no if there are warnings other than the usual output.
8449 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8451 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8452 lt_cv_prog_compiler_rtti_exceptions=yes
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8459 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8461 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8462 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8474 lt_prog_compiler_wl=
8475 lt_prog_compiler_pic=
8476 lt_prog_compiler_static=
8479 if test "$GCC" = yes; then
8480 lt_prog_compiler_wl='-Wl,'
8481 lt_prog_compiler_static='-static'
8485 # All AIX code is PIC.
8486 if test "$host_cpu" = ia64; then
8487 # AIX 5 now supports IA64 processor
8488 lt_prog_compiler_static='-Bstatic'
8495 # see comment about AmigaOS4 .so support
8496 lt_prog_compiler_pic='-fPIC'
8499 # FIXME: we need at least 68020 code to build shared libraries, but
8500 # adding the `-m68020' flag to GCC prevents building anything better,
8502 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8507 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8508 # PIC is the default for these OSes.
8511 mingw* | cygwin* | pw32* | os2* | cegcc*)
8512 # This hack is so that the source file can tell whether it is being
8513 # built for inclusion in a dll (and should export symbols for example).
8514 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8515 # (--disable-auto-import) libraries
8516 lt_prog_compiler_pic='-DDLL_EXPORT'
8519 darwin* | rhapsody*)
8520 # PIC is the default on this platform
8521 # Common symbols not allowed in MH_DYLIB files
8522 lt_prog_compiler_pic='-fno-common'
8526 # PIC is the default for Haiku.
8527 # The "-static" flag exists, but is broken.
8528 lt_prog_compiler_static=
8532 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8533 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8534 # sets the default TLS model and affects inlining.
8540 lt_prog_compiler_pic='-fPIC'
8546 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8547 # Instead, we relocate shared libraries at runtime.
8551 # Just because we use GCC doesn't mean we suddenly get shared libraries
8552 # on systems that don't support them.
8553 lt_prog_compiler_can_build_shared=no
8558 # QNX uses GNU C++, but need to define -shared option too, otherwise
8560 lt_prog_compiler_pic='-fPIC -shared'
8564 if test -d /usr/nec; then
8565 lt_prog_compiler_pic=-Kconform_pic
8570 lt_prog_compiler_pic='-fPIC'
8574 case $cc_basename in
8575 nvcc*) # Cuda Compiler Driver 2.2
8576 lt_prog_compiler_wl='-Xlinker '
8577 if test -n "$lt_prog_compiler_pic"; then
8578 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8583 # PORTME Check for flag to pass linker flags through the system compiler.
8586 lt_prog_compiler_wl='-Wl,'
8587 if test "$host_cpu" = ia64; then
8588 # AIX 5 now supports IA64 processor
8589 lt_prog_compiler_static='-Bstatic'
8591 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8595 mingw* | cygwin* | pw32* | os2* | cegcc*)
8596 # This hack is so that the source file can tell whether it is being
8597 # built for inclusion in a dll (and should export symbols for example).
8598 lt_prog_compiler_pic='-DDLL_EXPORT'
8601 hpux9* | hpux10* | hpux11*)
8602 lt_prog_compiler_wl='-Wl,'
8603 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8610 lt_prog_compiler_pic='+Z'
8613 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8614 lt_prog_compiler_static='${wl}-a ${wl}archive'
8617 irix5* | irix6* | nonstopux*)
8618 lt_prog_compiler_wl='-Wl,'
8619 # PIC (with -KPIC) is the default.
8620 lt_prog_compiler_static='-non_shared'
8623 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8624 case $cc_basename in
8625 # old Intel for x86_64 which still supported -KPIC.
8627 lt_prog_compiler_wl='-Wl,'
8628 lt_prog_compiler_pic='-KPIC'
8629 lt_prog_compiler_static='-static'
8631 # icc used to be incompatible with GCC.
8632 # ICC 10 doesn't accept -KPIC any more.
8634 lt_prog_compiler_wl='-Wl,'
8635 lt_prog_compiler_pic='-fPIC'
8636 lt_prog_compiler_static='-static'
8638 # Lahey Fortran 8.1.
8640 lt_prog_compiler_wl='-Wl,'
8641 lt_prog_compiler_pic='--shared'
8642 lt_prog_compiler_static='--static'
8645 # NAG Fortran compiler
8646 lt_prog_compiler_wl='-Wl,-Wl,,'
8647 lt_prog_compiler_pic='-PIC'
8648 lt_prog_compiler_static='-Bstatic'
8650 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8651 # Portland Group compilers (*not* the Pentium gcc compiler,
8652 # which looks to be a dead project)
8653 lt_prog_compiler_wl='-Wl,'
8654 lt_prog_compiler_pic='-fpic'
8655 lt_prog_compiler_static='-Bstatic'
8658 lt_prog_compiler_wl='-Wl,'
8659 # All Alpha code is PIC.
8660 lt_prog_compiler_static='-non_shared'
8662 xl* | bgxl* | bgf* | mpixl*)
8663 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8664 lt_prog_compiler_wl='-Wl,'
8665 lt_prog_compiler_pic='-qpic'
8666 lt_prog_compiler_static='-qstaticlink'
8669 case `$CC -V 2>&1 | sed 5q` in
8670 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8671 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8672 lt_prog_compiler_pic='-KPIC'
8673 lt_prog_compiler_static='-Bstatic'
8674 lt_prog_compiler_wl=''
8676 *Sun\ F* | *Sun*Fortran*)
8677 lt_prog_compiler_pic='-KPIC'
8678 lt_prog_compiler_static='-Bstatic'
8679 lt_prog_compiler_wl='-Qoption ld '
8683 lt_prog_compiler_pic='-KPIC'
8684 lt_prog_compiler_static='-Bstatic'
8685 lt_prog_compiler_wl='-Wl,'
8687 *Intel*\ [CF]*Compiler*)
8688 lt_prog_compiler_wl='-Wl,'
8689 lt_prog_compiler_pic='-fPIC'
8690 lt_prog_compiler_static='-static'
8693 lt_prog_compiler_wl='-Wl,'
8694 lt_prog_compiler_pic='-fpic'
8695 lt_prog_compiler_static='-Bstatic'
8703 lt_prog_compiler_pic='-KPIC'
8704 lt_prog_compiler_static='-Bstatic'
8708 # QNX uses GNU C++, but need to define -shared option too, otherwise
8710 lt_prog_compiler_pic='-fPIC -shared'
8713 osf3* | osf4* | osf5*)
8714 lt_prog_compiler_wl='-Wl,'
8715 # All OSF/1 code is PIC.
8716 lt_prog_compiler_static='-non_shared'
8720 lt_prog_compiler_static='-non_shared'
8724 lt_prog_compiler_pic='-KPIC'
8725 lt_prog_compiler_static='-Bstatic'
8726 case $cc_basename in
8727 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8728 lt_prog_compiler_wl='-Qoption ld ';;
8730 lt_prog_compiler_wl='-Wl,';;
8735 lt_prog_compiler_wl='-Qoption ld '
8736 lt_prog_compiler_pic='-PIC'
8737 lt_prog_compiler_static='-Bstatic'
8740 sysv4 | sysv4.2uw2* | sysv4.3*)
8741 lt_prog_compiler_wl='-Wl,'
8742 lt_prog_compiler_pic='-KPIC'
8743 lt_prog_compiler_static='-Bstatic'
8747 if test -d /usr/nec ;then
8748 lt_prog_compiler_pic='-Kconform_pic'
8749 lt_prog_compiler_static='-Bstatic'
8753 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8754 lt_prog_compiler_wl='-Wl,'
8755 lt_prog_compiler_pic='-KPIC'
8756 lt_prog_compiler_static='-Bstatic'
8760 lt_prog_compiler_wl='-Wl,'
8761 lt_prog_compiler_can_build_shared=no
8765 lt_prog_compiler_pic='-pic'
8766 lt_prog_compiler_static='-Bstatic'
8770 lt_prog_compiler_can_build_shared=no
8776 # For platforms which do not support PIC, -DPIC is meaningless:
8778 lt_prog_compiler_pic=
8781 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8786 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8787 if ${lt_cv_prog_compiler_pic+:} false; then :
8788 $as_echo_n "(cached) " >&6
8790 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8793 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8794 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8797 # Check to make sure the PIC flag actually works.
8799 if test -n "$lt_prog_compiler_pic"; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8801 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8802 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8803 $as_echo_n "(cached) " >&6
8805 lt_cv_prog_compiler_pic_works=no
8806 ac_outfile=conftest.$ac_objext
8807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8808 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8809 # Insert the option either (1) after the last *FLAGS variable, or
8810 # (2) before a word containing "conftest.", or (3) at the end.
8811 # Note that $ac_compile itself does not contain backslashes and begins
8812 # with a dollar sign (not a hyphen), so the echo should work correctly.
8813 # The option is referenced via a variable to avoid confusing sed.
8814 lt_compile=`echo "$ac_compile" | $SED \
8815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8817 -e 's:$: $lt_compiler_flag:'`
8818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8819 (eval "$lt_compile" 2>conftest.err)
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 if (exit $ac_status) && test -s "$ac_outfile"; then
8824 # The compiler can only warn and ignore the option if not recognized
8825 # So say no if there are warnings other than the usual output.
8826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8829 lt_cv_prog_compiler_pic_works=yes
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8836 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8838 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8839 case $lt_prog_compiler_pic in
8841 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8844 lt_prog_compiler_pic=
8845 lt_prog_compiler_can_build_shared=no
8861 # Check to make sure the static flag actually works.
8863 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8865 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8866 if ${lt_cv_prog_compiler_static_works+:} false; then :
8867 $as_echo_n "(cached) " >&6
8869 lt_cv_prog_compiler_static_works=no
8870 save_LDFLAGS="$LDFLAGS"
8871 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8872 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8873 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8874 # The linker can only warn and ignore the option if not recognized
8875 # So say no if there are warnings
8876 if test -s conftest.err; then
8877 # Append any errors to the config.log.
8878 cat conftest.err 1>&5
8879 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8881 if diff conftest.exp conftest.er2 >/dev/null; then
8882 lt_cv_prog_compiler_static_works=yes
8885 lt_cv_prog_compiler_static_works=yes
8889 LDFLAGS="$save_LDFLAGS"
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8893 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8895 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8898 lt_prog_compiler_static=
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8908 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8909 if ${lt_cv_prog_compiler_c_o+:} false; then :
8910 $as_echo_n "(cached) " >&6
8912 lt_cv_prog_compiler_c_o=no
8913 $RM -r conftest 2>/dev/null
8917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8919 lt_compiler_flag="-o out/conftest2.$ac_objext"
8920 # Insert the option either (1) after the last *FLAGS variable, or
8921 # (2) before a word containing "conftest.", or (3) at the end.
8922 # Note that $ac_compile itself does not contain backslashes and begins
8923 # with a dollar sign (not a hyphen), so the echo should work correctly.
8924 lt_compile=`echo "$ac_compile" | $SED \
8925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8927 -e 's:$: $lt_compiler_flag:'`
8928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8929 (eval "$lt_compile" 2>out/conftest.err)
8931 cat out/conftest.err >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8935 # The compiler can only warn and ignore the option if not recognized
8936 # So say no if there are warnings
8937 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8940 lt_cv_prog_compiler_c_o=yes
8945 # SGI C++ compiler will create directory out/ii_files/ for
8946 # template instantiation
8947 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8948 $RM out/* && rmdir out
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8955 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8963 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8964 if ${lt_cv_prog_compiler_c_o+:} false; then :
8965 $as_echo_n "(cached) " >&6
8967 lt_cv_prog_compiler_c_o=no
8968 $RM -r conftest 2>/dev/null
8972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8974 lt_compiler_flag="-o out/conftest2.$ac_objext"
8975 # Insert the option either (1) after the last *FLAGS variable, or
8976 # (2) before a word containing "conftest.", or (3) at the end.
8977 # Note that $ac_compile itself does not contain backslashes and begins
8978 # with a dollar sign (not a hyphen), so the echo should work correctly.
8979 lt_compile=`echo "$ac_compile" | $SED \
8980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8982 -e 's:$: $lt_compiler_flag:'`
8983 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8984 (eval "$lt_compile" 2>out/conftest.err)
8986 cat out/conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8990 # The compiler can only warn and ignore the option if not recognized
8991 # So say no if there are warnings
8992 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8993 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8994 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8995 lt_cv_prog_compiler_c_o=yes
9000 # SGI C++ compiler will create directory out/ii_files/ for
9001 # template instantiation
9002 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9003 $RM out/* && rmdir out
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9010 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9015 hard_links="nottested"
9016 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9017 # do not overwrite the value of need_locks provided by the user
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9019 $as_echo_n "checking if we can lock with hard links... " >&6; }
9022 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9024 ln conftest.a conftest.b 2>&5 || hard_links=no
9025 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9027 $as_echo "$hard_links" >&6; }
9028 if test "$hard_links" = no; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9030 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9043 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9046 allow_undefined_flag=
9047 always_export_symbols=no
9049 archive_expsym_cmds=
9050 compiler_needs_object=no
9051 enable_shared_with_static_runtimes=no
9052 export_dynamic_flag_spec=
9053 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9054 hardcode_automatic=no
9056 hardcode_direct_absolute=no
9057 hardcode_libdir_flag_spec=
9058 hardcode_libdir_separator=
9060 hardcode_shlibpath_var=unsupported
9062 link_all_deplibs=unknown
9065 old_archive_from_new_cmds=
9066 old_archive_from_expsyms_cmds=
9067 thread_safe_flag_spec=
9068 whole_archive_flag_spec=
9069 # include_expsyms should be a list of space-separated symbols to be *always*
9070 # included in the symbol list
9072 # exclude_expsyms can be an extended regexp of symbols to exclude
9073 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9074 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9075 # as well as any symbol that contains `d'.
9076 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9077 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9078 # platforms (ab)use it in PIC code, but their linkers get confused if
9079 # the symbol is explicitly referenced. Since portable code cannot
9080 # rely on this symbol name, it's probably fine to never include it in
9081 # preloaded symbol tables.
9082 # Exclude shared library initialization/finalization symbols.
9083 extract_expsyms_cmds=
9086 cygwin* | mingw* | pw32* | cegcc*)
9087 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9088 # When not using gcc, we currently assume that we are using
9089 # Microsoft Visual C++.
9090 if test "$GCC" != yes; then
9095 # we just hope/assume this is gcc and not c89 (= MSVC++)
9101 linux* | k*bsd*-gnu | gnu*)
9108 # On some targets, GNU ld is compatible enough with the native linker
9109 # that we're better off using the native interface for both.
9110 lt_use_gnu_ld_interface=no
9111 if test "$with_gnu_ld" = yes; then
9114 # The AIX port of GNU ld has always aspired to compatibility
9115 # with the native linker. However, as the warning in the GNU ld
9116 # block says, versions before 2.19.5* couldn't really create working
9117 # shared libraries, regardless of the interface used.
9118 case `$LD -v 2>&1` in
9119 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9120 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9121 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9123 lt_use_gnu_ld_interface=yes
9128 lt_use_gnu_ld_interface=yes
9133 if test "$lt_use_gnu_ld_interface" = yes; then
9134 # If archive_cmds runs LD, not CC, wlarc should be empty
9137 # Set some defaults for GNU ld with shared library support. These
9138 # are reset later if shared libraries are not supported. Putting them
9139 # here allows them to be overridden if necessary.
9140 runpath_var=LD_RUN_PATH
9141 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9142 export_dynamic_flag_spec='${wl}--export-dynamic'
9143 # ancient GNU ld didn't support --whole-archive et. al.
9144 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9145 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9147 whole_archive_flag_spec=
9149 supports_anon_versioning=no
9150 case `$LD -v 2>&1` in
9151 *GNU\ gold*) supports_anon_versioning=yes ;;
9152 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9153 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9154 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9155 *\ 2.11.*) ;; # other 2.11 versions
9156 *) supports_anon_versioning=yes ;;
9159 # See if GNU ld supports shared libraries.
9162 # On AIX/PPC, the GNU linker is very broken
9163 if test "$host_cpu" != ia64; then
9167 *** Warning: the GNU linker, at least up to release 2.19, is reported
9168 *** to be unable to reliably create shared libraries on AIX.
9169 *** Therefore, libtool is disabling shared libraries support. If you
9170 *** really care for shared libraries, you may want to install binutils
9171 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9172 *** You will then need to restart the configuration process.
9181 # see comment about AmigaOS4 .so support
9182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9183 archive_expsym_cmds=''
9186 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)'
9187 hardcode_libdir_flag_spec='-L$libdir'
9188 hardcode_minus_L=yes
9194 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9195 allow_undefined_flag=unsupported
9196 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9197 # support --undefined. This deserves some investigation. FIXME
9198 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9204 cygwin* | mingw* | pw32* | cegcc*)
9205 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9206 # as there is no search path for DLLs.
9207 hardcode_libdir_flag_spec='-L$libdir'
9208 export_dynamic_flag_spec='${wl}--export-all-symbols'
9209 allow_undefined_flag=unsupported
9210 always_export_symbols=no
9211 enable_shared_with_static_runtimes=yes
9212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9213 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9215 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9217 # If the export-symbols file already is a .def file (1st line
9218 # is EXPORTS), use it as is; otherwise, prepend...
9219 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9220 cp $export_symbols $output_objdir/$soname.def;
9222 echo EXPORTS > $output_objdir/$soname.def;
9223 cat $export_symbols >> $output_objdir/$soname.def;
9225 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9233 link_all_deplibs=yes
9238 hardcode_shlibpath_var=no
9239 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9240 export_dynamic_flag_spec='${wl}-E'
9241 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9242 # Instead, shared libraries are loaded at an image base (0x10000000 by
9243 # default) and relocated if they conflict, which is a slow very memory
9244 # consuming and fragmenting process. To avoid this, we pick a random,
9245 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9246 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9247 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9248 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'
9251 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9253 if test "$host_os" = linux-dietlibc; then
9254 case $cc_basename in
9255 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9258 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9259 && test "$tmp_diet" = no
9261 tmp_addflag=' $pic_flag'
9262 tmp_sharedflag='-shared'
9263 case $cc_basename,$host_cpu in
9264 pgcc*) # Portland Group C compiler
9265 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9266 tmp_addflag=' $pic_flag'
9268 pgf77* | pgf90* | pgf95* | pgfortran*)
9269 # Portland Group f77 and f90 compilers
9270 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9271 tmp_addflag=' $pic_flag -Mnomain' ;;
9272 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9273 tmp_addflag=' -i_dynamic' ;;
9274 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9275 tmp_addflag=' -i_dynamic -nofor_main' ;;
9276 ifc* | ifort*) # Intel Fortran compiler
9277 tmp_addflag=' -nofor_main' ;;
9278 lf95*) # Lahey Fortran 8.1
9279 whole_archive_flag_spec=
9280 tmp_sharedflag='--shared' ;;
9281 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9282 tmp_sharedflag='-qmkshrobj'
9284 nvcc*) # Cuda Compiler Driver 2.2
9285 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9286 compiler_needs_object=yes
9289 case `$CC -V 2>&1 | sed 5q` in
9290 *Sun\ C*) # Sun C 5.9
9291 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9292 compiler_needs_object=yes
9293 tmp_sharedflag='-G' ;;
9294 *Sun\ F*) # Sun Fortran 8.3
9295 tmp_sharedflag='-G' ;;
9297 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299 if test "x$supports_anon_versioning" = xyes; then
9300 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9301 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9302 echo "local: *; };" >> $output_objdir/$libname.ver~
9303 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9306 case $cc_basename in
9307 xlf* | bgf* | bgxlf* | mpixlf*)
9308 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9309 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9311 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9312 if test "x$supports_anon_versioning" = xyes; then
9313 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9314 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9315 echo "local: *; };" >> $output_objdir/$libname.ver~
9316 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9325 netbsd* | netbsdelf*-gnu)
9326 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9327 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9330 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9331 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9336 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9340 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9341 *** create shared libraries on Solaris systems. Therefore, libtool
9342 *** is disabling shared libraries support. We urge you to upgrade GNU
9343 *** binutils to release 2.9.1 or newer. Another option is to modify
9344 *** your PATH or compiler configuration so that the native linker is
9345 *** used, and then restart.
9348 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9349 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9357 case `$LD -v 2>&1` in
9358 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9362 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9363 *** reliably create shared libraries on SCO systems. Therefore, libtool
9364 *** is disabling shared libraries support. We urge you to upgrade GNU
9365 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9366 *** your PATH or compiler configuration so that the native linker is
9367 *** used, and then restart.
9372 # For security reasons, it is highly recommended that you always
9373 # use absolute paths for naming shared libraries, and exclude the
9374 # DT_RUNPATH tag from executables and libraries. But doing so
9375 # requires that you compile everything twice, which is a pain.
9376 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9379 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9388 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9391 hardcode_shlibpath_var=no
9395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9397 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9404 if test "$ld_shlibs" = no; then
9406 hardcode_libdir_flag_spec=
9407 export_dynamic_flag_spec=
9408 whole_archive_flag_spec=
9411 # PORTME fill in a description of your system's linker (not GNU ld)
9414 allow_undefined_flag=unsupported
9415 always_export_symbols=yes
9416 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'
9417 # Note: this linker hardcodes the directories in LIBPATH if there
9418 # are no directories specified by -L.
9419 hardcode_minus_L=yes
9420 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9421 # Neither direct hardcoding nor static linking is supported with a
9423 hardcode_direct=unsupported
9428 if test "$host_cpu" = ia64; then
9429 # On IA64, the linker does run time linking by default, so we don't
9430 # have to do anything special.
9431 aix_use_runtimelinking=no
9432 exp_sym_flag='-Bexport'
9435 # If we're using GNU nm, then we don't want the "-C" option.
9436 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9437 # Also, AIX nm treats weak defined symbols like other global
9438 # defined symbols, whereas GNU nm marks them as "W".
9439 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9440 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9442 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'
9444 aix_use_runtimelinking=no
9446 # Test if we are trying to use run time linking or normal
9447 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9448 # need to do runtime linking.
9449 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9450 for ld_flag in $LDFLAGS; do
9451 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9452 aix_use_runtimelinking=yes
9459 exp_sym_flag='-bexport'
9460 no_entry_flag='-bnoentry'
9463 # When large executables or shared objects are built, AIX ld can
9464 # have problems creating the table of contents. If linking a library
9465 # or program results in "error TOC overflow" add -mminimal-toc to
9466 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9467 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9471 hardcode_direct_absolute=yes
9472 hardcode_libdir_separator=':'
9473 link_all_deplibs=yes
9474 file_list_spec='${wl}-f,'
9476 if test "$GCC" = yes; then
9477 case $host_os in aix4.[012]|aix4.[012].*)
9478 # We only want to do this on AIX 4.2 and lower, the check
9479 # below for broken collect2 doesn't work under 4.3+
9480 collect2name=`${CC} -print-prog-name=collect2`
9481 if test -f "$collect2name" &&
9482 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9484 # We have reworked collect2
9487 # We have old collect2
9488 hardcode_direct=unsupported
9489 # It fails to find uninstalled libraries when the uninstalled
9490 # path is not listed in the libpath. Setting hardcode_minus_L
9491 # to unsupported forces relinking
9492 hardcode_minus_L=yes
9493 hardcode_libdir_flag_spec='-L$libdir'
9494 hardcode_libdir_separator=
9498 shared_flag='-shared'
9499 if test "$aix_use_runtimelinking" = yes; then
9500 shared_flag="$shared_flag "'${wl}-G'
9505 if test "$host_cpu" = ia64; then
9506 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9507 # chokes on -Wl,-G. The following line is correct:
9510 if test "$aix_use_runtimelinking" = yes; then
9511 shared_flag='${wl}-G'
9513 shared_flag='${wl}-bM:SRE'
9518 export_dynamic_flag_spec='${wl}-bexpall'
9519 # It seems that -bexpall does not export symbols beginning with
9520 # underscore (_), so it is better to generate a list of symbols to export.
9521 always_export_symbols=yes
9522 if test "$aix_use_runtimelinking" = yes; then
9523 # Warning - without using the other runtime loading flags (-brtl),
9524 # -berok will link without error, but may produce a broken library.
9525 allow_undefined_flag='-berok'
9526 # Determine the default libpath from the value encoded in an
9528 if test "${lt_cv_aix_libpath+set}" = set; then
9529 aix_libpath=$lt_cv_aix_libpath
9531 if ${lt_cv_aix_libpath_+:} false; then :
9532 $as_echo_n "(cached) " >&6
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9545 if ac_fn_c_try_link "$LINENO"; then :
9547 lt_aix_libpath_sed='
9548 /Import File Strings/,/^$/ {
9550 s/^0 *\([^ ]*\) *$/\1/
9554 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9555 # Check for a 64-bit object if we didn't find anything.
9556 if test -z "$lt_cv_aix_libpath_"; then
9557 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9560 rm -f core conftest.err conftest.$ac_objext \
9561 conftest$ac_exeext conftest.$ac_ext
9562 if test -z "$lt_cv_aix_libpath_"; then
9563 lt_cv_aix_libpath_="/usr/lib:/lib"
9568 aix_libpath=$lt_cv_aix_libpath_
9571 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9572 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9574 if test "$host_cpu" = ia64; then
9575 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9576 allow_undefined_flag="-z nodefs"
9577 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"
9579 # Determine the default libpath from the value encoded in an
9581 if test "${lt_cv_aix_libpath+set}" = set; then
9582 aix_libpath=$lt_cv_aix_libpath
9584 if ${lt_cv_aix_libpath_+:} false; then :
9585 $as_echo_n "(cached) " >&6
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9598 if ac_fn_c_try_link "$LINENO"; then :
9600 lt_aix_libpath_sed='
9601 /Import File Strings/,/^$/ {
9603 s/^0 *\([^ ]*\) *$/\1/
9607 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9608 # Check for a 64-bit object if we didn't find anything.
9609 if test -z "$lt_cv_aix_libpath_"; then
9610 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9613 rm -f core conftest.err conftest.$ac_objext \
9614 conftest$ac_exeext conftest.$ac_ext
9615 if test -z "$lt_cv_aix_libpath_"; then
9616 lt_cv_aix_libpath_="/usr/lib:/lib"
9621 aix_libpath=$lt_cv_aix_libpath_
9624 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9625 # Warning - without using the other run time loading flags,
9626 # -berok will link without error, but may produce a broken library.
9627 no_undefined_flag=' ${wl}-bernotok'
9628 allow_undefined_flag=' ${wl}-berok'
9629 if test "$with_gnu_ld" = yes; then
9630 # We only use this code for GNU lds that support --whole-archive.
9631 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9633 # Exported symbols can be pulled into shared objects from archives
9634 whole_archive_flag_spec='$convenience'
9636 archive_cmds_need_lc=yes
9637 # This is similar to how AIX traditionally builds its shared libraries.
9638 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'
9646 # see comment about AmigaOS4 .so support
9647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9648 archive_expsym_cmds=''
9651 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)'
9652 hardcode_libdir_flag_spec='-L$libdir'
9653 hardcode_minus_L=yes
9659 export_dynamic_flag_spec=-rdynamic
9662 cygwin* | mingw* | pw32* | cegcc*)
9663 # When not using gcc, we currently assume that we are using
9664 # Microsoft Visual C++.
9665 # hardcode_libdir_flag_spec is actually meaningless, as there is
9666 # no search path for DLLs.
9667 case $cc_basename in
9670 hardcode_libdir_flag_spec=' '
9671 allow_undefined_flag=unsupported
9672 always_export_symbols=yes
9674 # Tell ltmain to make .lib files, not .a files.
9676 # Tell ltmain to make .dll files, not .so files.
9678 # FIXME: Setting linknames here is a bad hack.
9679 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9680 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9681 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9683 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9685 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9687 # The linker will not automatically build a static lib if we build a DLL.
9688 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9689 enable_shared_with_static_runtimes=yes
9690 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9691 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9693 old_postinstall_cmds='chmod 644 $oldlib'
9694 postlink_cmds='lt_outputfile="@OUTPUT@"~
9695 lt_tool_outputfile="@TOOL_OUTPUT@"~
9696 case $lt_outputfile in
9699 lt_outputfile="$lt_outputfile.exe"
9700 lt_tool_outputfile="$lt_tool_outputfile.exe"
9703 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9704 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9705 $RM "$lt_outputfile.manifest";
9709 # Assume MSVC wrapper
9710 hardcode_libdir_flag_spec=' '
9711 allow_undefined_flag=unsupported
9712 # Tell ltmain to make .lib files, not .a files.
9714 # Tell ltmain to make .dll files, not .so files.
9716 # FIXME: Setting linknames here is a bad hack.
9717 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9718 # The linker will automatically build a .lib file if we build a DLL.
9719 old_archive_from_new_cmds='true'
9720 # FIXME: Should let the user specify the lib program.
9721 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9722 enable_shared_with_static_runtimes=yes
9727 darwin* | rhapsody*)
9730 archive_cmds_need_lc=no
9732 hardcode_automatic=yes
9733 hardcode_shlibpath_var=unsupported
9734 if test "$lt_cv_ld_force_load" = "yes"; then
9735 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9738 whole_archive_flag_spec=''
9740 link_all_deplibs=yes
9741 allow_undefined_flag="$_lt_dar_allow_undefined"
9742 case $cc_basename in
9743 ifort*) _lt_dar_can_shared=yes ;;
9744 *) _lt_dar_can_shared=$GCC ;;
9746 if test "$_lt_dar_can_shared" = "yes"; then
9747 output_verbose_link_cmd=func_echo_all
9748 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9749 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9750 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}"
9751 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}"
9760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9761 hardcode_libdir_flag_spec='-L$libdir'
9762 hardcode_shlibpath_var=no
9765 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9766 # support. Future versions do this automatically, but an explicit c++rt0.o
9767 # does not break anything, and helps significantly (at the cost of a little
9770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9771 hardcode_libdir_flag_spec='-R$libdir'
9773 hardcode_shlibpath_var=no
9776 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9780 hardcode_minus_L=yes
9781 hardcode_shlibpath_var=no
9784 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9785 freebsd* | dragonfly*)
9786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9787 hardcode_libdir_flag_spec='-R$libdir'
9789 hardcode_shlibpath_var=no
9793 if test "$GCC" = yes; then
9794 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9796 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'
9798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9799 hardcode_libdir_separator=:
9802 # hardcode_minus_L: Not really in the search PATH,
9803 # but as the default location of the library.
9804 hardcode_minus_L=yes
9805 export_dynamic_flag_spec='${wl}-E'
9809 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9810 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9812 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9814 if test "$with_gnu_ld" = no; then
9815 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9816 hardcode_libdir_separator=:
9818 hardcode_direct_absolute=yes
9819 export_dynamic_flag_spec='${wl}-E'
9820 # hardcode_minus_L: Not really in the search PATH,
9821 # but as the default location of the library.
9822 hardcode_minus_L=yes
9827 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9830 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9833 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9836 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9842 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9845 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9849 # Older versions of the 11.00 compiler do not understand -b yet
9850 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9852 $as_echo_n "checking if $CC understands -b... " >&6; }
9853 if ${lt_cv_prog_compiler__b+:} false; then :
9854 $as_echo_n "(cached) " >&6
9856 lt_cv_prog_compiler__b=no
9857 save_LDFLAGS="$LDFLAGS"
9858 LDFLAGS="$LDFLAGS -b"
9859 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9860 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9861 # The linker can only warn and ignore the option if not recognized
9862 # So say no if there are warnings
9863 if test -s conftest.err; then
9864 # Append any errors to the config.log.
9865 cat conftest.err 1>&5
9866 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9868 if diff conftest.exp conftest.er2 >/dev/null; then
9869 lt_cv_prog_compiler__b=yes
9872 lt_cv_prog_compiler__b=yes
9876 LDFLAGS="$save_LDFLAGS"
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9880 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9882 if test x"$lt_cv_prog_compiler__b" = xyes; then
9883 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9885 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9891 if test "$with_gnu_ld" = no; then
9892 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9893 hardcode_libdir_separator=:
9898 hardcode_shlibpath_var=no
9902 hardcode_direct_absolute=yes
9903 export_dynamic_flag_spec='${wl}-E'
9905 # hardcode_minus_L: Not really in the search PATH,
9906 # but as the default location of the library.
9907 hardcode_minus_L=yes
9913 irix5* | irix6* | nonstopux*)
9914 if test "$GCC" = yes; then
9915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9916 # Try to use the -exported_symbol ld option, if it does not
9917 # work, assume that -exports_file does not work either and
9918 # implicitly export all symbols.
9919 # This should be the same for all languages, so no per-tag cache variable.
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9921 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9922 if ${lt_cv_irix_exported_symbol+:} false; then :
9923 $as_echo_n "(cached) " >&6
9925 save_LDFLAGS="$LDFLAGS"
9926 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9929 int foo (void) { return 0; }
9931 if ac_fn_c_try_link "$LINENO"; then :
9932 lt_cv_irix_exported_symbol=yes
9934 lt_cv_irix_exported_symbol=no
9936 rm -f core conftest.err conftest.$ac_objext \
9937 conftest$ac_exeext conftest.$ac_ext
9938 LDFLAGS="$save_LDFLAGS"
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9941 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9942 if test "$lt_cv_irix_exported_symbol" = yes; then
9943 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9947 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9949 archive_cmds_need_lc='no'
9950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9951 hardcode_libdir_separator=:
9953 link_all_deplibs=yes
9956 netbsd* | netbsdelf*-gnu)
9957 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9960 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9962 hardcode_libdir_flag_spec='-R$libdir'
9964 hardcode_shlibpath_var=no
9968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9971 hardcode_libdir_separator=:
9972 hardcode_shlibpath_var=no
9979 if test -f /usr/libexec/ld.so; then
9981 hardcode_shlibpath_var=no
9982 hardcode_direct_absolute=yes
9983 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9985 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9986 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9987 export_dynamic_flag_spec='${wl}-E'
9990 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9991 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9992 hardcode_libdir_flag_spec='-R$libdir'
9995 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10006 hardcode_libdir_flag_spec='-L$libdir'
10007 hardcode_minus_L=yes
10008 allow_undefined_flag=unsupported
10009 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'
10010 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10014 if test "$GCC" = yes; then
10015 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10016 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10018 allow_undefined_flag=' -expect_unresolved \*'
10019 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10021 archive_cmds_need_lc='no'
10022 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10023 hardcode_libdir_separator=:
10026 osf4* | osf5*) # as osf3* with the addition of -msym flag
10027 if test "$GCC" = yes; then
10028 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10029 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10030 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10032 allow_undefined_flag=' -expect_unresolved \*'
10033 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10034 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~
10035 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10037 # Both c and cxx compiler support -rpath directly
10038 hardcode_libdir_flag_spec='-rpath $libdir'
10040 archive_cmds_need_lc='no'
10041 hardcode_libdir_separator=:
10045 no_undefined_flag=' -z defs'
10046 if test "$GCC" = yes; then
10048 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10049 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10050 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10052 case `$CC -V 2>&1` in
10055 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10057 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10061 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10062 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10063 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10067 hardcode_libdir_flag_spec='-R$libdir'
10068 hardcode_shlibpath_var=no
10070 solaris2.[0-5] | solaris2.[0-5].*) ;;
10072 # The compiler driver will combine and reorder linker options,
10073 # but understands `-z linker_flag'. GCC discards it without `$wl',
10074 # but is careful enough not to reorder.
10075 # Supported since Solaris 2.6 (maybe 2.5.1?)
10076 if test "$GCC" = yes; then
10077 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10079 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10083 link_all_deplibs=yes
10087 if test "x$host_vendor" = xsequent; then
10088 # Use $CC to link under sequent, because it throws in some extra .o
10089 # files that make .init and .fini sections work.
10090 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10094 hardcode_libdir_flag_spec='-L$libdir'
10095 hardcode_direct=yes
10096 hardcode_minus_L=yes
10097 hardcode_shlibpath_var=no
10101 case $host_vendor in
10103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10104 hardcode_direct=yes # is this really true???
10107 ## LD is ld it makes a PLAMLIB
10108 ## CC just makes a GrossModule.
10109 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10110 reload_cmds='$CC -r -o $output$reload_objs'
10114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10118 runpath_var='LD_RUN_PATH'
10119 hardcode_shlibpath_var=no
10123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124 hardcode_shlibpath_var=no
10125 export_dynamic_flag_spec='-Bexport'
10129 if test -d /usr/nec; then
10130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131 hardcode_shlibpath_var=no
10132 runpath_var=LD_RUN_PATH
10133 hardcode_runpath_var=yes
10138 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10139 no_undefined_flag='${wl}-z,text'
10140 archive_cmds_need_lc=no
10141 hardcode_shlibpath_var=no
10142 runpath_var='LD_RUN_PATH'
10144 if test "$GCC" = yes; then
10145 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153 sysv5* | sco3.2v5* | sco5v6*)
10154 # Note: We can NOT use -z defs as we might desire, because we do not
10155 # link with -lc, and that would cause any symbols used from libc to
10156 # always be unresolved, which means just about no library would
10157 # ever link correctly. If we're not using GNU ld we use -z text
10158 # though, which does catch some bad symbols but isn't as heavy-handed
10160 no_undefined_flag='${wl}-z,text'
10161 allow_undefined_flag='${wl}-z,nodefs'
10162 archive_cmds_need_lc=no
10163 hardcode_shlibpath_var=no
10164 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10165 hardcode_libdir_separator=':'
10166 link_all_deplibs=yes
10167 export_dynamic_flag_spec='${wl}-Bexport'
10168 runpath_var='LD_RUN_PATH'
10170 if test "$GCC" = yes; then
10171 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10172 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10174 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10175 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181 hardcode_libdir_flag_spec='-L$libdir'
10182 hardcode_shlibpath_var=no
10190 if test x$host_vendor = xsni; then
10192 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10193 export_dynamic_flag_spec='${wl}-Blargedynsym'
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10200 $as_echo "$ld_shlibs" >&6; }
10201 test "$ld_shlibs" = no && can_build_shared=no
10203 with_gnu_ld=$with_gnu_ld
10220 # Do we need to explicitly link libc?
10222 case "x$archive_cmds_need_lc" in
10224 # Assume -lc should be added
10225 archive_cmds_need_lc=yes
10227 if test "$enable_shared" = yes && test "$GCC" = yes; then
10228 case $archive_cmds in
10230 # FIXME: we may have to deal with multi-command sequences.
10233 # Test whether the compiler implicitly links with -lc since on some
10234 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10235 # to ld, don't add -lc before -lgcc.
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10237 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10238 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10239 $as_echo_n "(cached) " >&6
10242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10245 (eval $ac_compile) 2>&5
10247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10248 test $ac_status = 0; } 2>conftest.err; then
10251 libobjs=conftest.$ac_objext
10253 wl=$lt_prog_compiler_wl
10254 pic_flag=$lt_prog_compiler_pic
10260 lt_save_allow_undefined_flag=$allow_undefined_flag
10261 allow_undefined_flag=
10262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10263 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10266 test $ac_status = 0; }
10268 lt_cv_archive_cmds_need_lc=no
10270 lt_cv_archive_cmds_need_lc=yes
10272 allow_undefined_flag=$lt_save_allow_undefined_flag
10274 cat conftest.err 1>&5
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10280 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10281 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10440 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10442 if test "$GCC" = yes; then
10444 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10445 *) lt_awk_arg="/^libraries:/" ;;
10448 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10449 *) lt_sed_strip_eq="s,=/,/,g" ;;
10451 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10452 case $lt_search_path_spec in
10454 # if the path contains ";" then we assume it to be the separator
10455 # otherwise default to the standard path separator (i.e. ":") - it is
10456 # assumed that no part of a normal pathname contains ";" but that should
10457 # okay in the real world where ";" in dirpaths is itself problematic.
10458 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10461 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10464 # Ok, now we have the path, separated by spaces, we can step through it
10465 # and add multilib dir if necessary.
10466 lt_tmp_lt_search_path_spec=
10467 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10468 for lt_sys_path in $lt_search_path_spec; do
10469 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10470 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10472 test -d "$lt_sys_path" && \
10473 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10476 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10477 BEGIN {RS=" "; FS="/|\n";} {
10480 for (lt_i = NF; lt_i > 0; lt_i--) {
10481 if ($lt_i != "" && $lt_i != ".") {
10482 if ($lt_i == "..") {
10485 if (lt_count == 0) {
10486 lt_foo="/" $lt_i lt_foo;
10493 if (lt_foo != "") { lt_freq[lt_foo]++; }
10494 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10496 # AWK program above erroneously prepends '/' to C:/dos/paths
10499 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10500 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10502 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10504 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10506 library_names_spec=
10507 libname_spec='lib$name'
10511 postuninstall_cmds=
10515 shlibpath_overrides_runpath=unknown
10517 dynamic_linker="$host_os ld.so"
10518 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10519 need_lib_prefix=unknown
10520 hardcode_into_libs=no
10522 # when you set need_version to no, make sure it does not cause -set_version
10523 # flags to be left without arguments
10524 need_version=unknown
10528 version_type=linux # correct to gnu/linux during the next big refactor
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10530 shlibpath_var=LIBPATH
10532 # AIX 3 has no versioning support, so we append a major version to the name.
10533 soname_spec='${libname}${release}${shared_ext}$major'
10537 version_type=linux # correct to gnu/linux during the next big refactor
10540 hardcode_into_libs=yes
10541 if test "$host_cpu" = ia64; then
10542 # AIX 5 supports IA64
10543 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10544 shlibpath_var=LD_LIBRARY_PATH
10546 # With GCC up to 2.95.x, collect2 would create an import file
10547 # for dependence libraries. The import file would start with
10548 # the line `#! .'. This would cause the generated library to
10549 # depend on `.', always an invalid library. This was fixed in
10550 # development snapshots of GCC prior to 3.0.
10552 aix4 | aix4.[01] | aix4.[01].*)
10553 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10555 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10558 can_build_shared=no
10562 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10563 # soname into executable. Probably we can add versioning support to
10564 # collect2, so additional links can be useful in future.
10565 if test "$aix_use_runtimelinking" = yes; then
10566 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10567 # instead of lib<name>.a to let people know that these are not
10568 # typical AIX shared libraries.
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571 # We preserve .a as extension for shared libraries through AIX4.2
10572 # and later when we are not doing run time linking.
10573 library_names_spec='${libname}${release}.a $libname.a'
10574 soname_spec='${libname}${release}${shared_ext}$major'
10576 shlibpath_var=LIBPATH
10583 # Since July 2007 AmigaOS4 officially supports .so libraries.
10584 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 library_names_spec='$libname.ixlibrary $libname.a'
10589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10590 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10596 library_names_spec='${libname}${shared_ext}'
10597 dynamic_linker="$host_os ld.so"
10598 shlibpath_var=LIBRARY_PATH
10602 version_type=linux # correct to gnu/linux during the next big refactor
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10607 shlibpath_var=LD_LIBRARY_PATH
10608 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10609 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10610 # the default ld.so.conf also contains /usr/contrib/lib and
10611 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10612 # libtool to hard-code these into programs
10615 cygwin* | mingw* | pw32* | cegcc*)
10616 version_type=windows
10621 case $GCC,$cc_basename in
10624 library_names_spec='$libname.dll.a'
10625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10626 postinstall_cmds='base_file=`basename \${file}`~
10627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10628 dldir=$destdir/`dirname \$dlpath`~
10629 test -d \$dldir || mkdir -p \$dldir~
10630 $install_prog $dir/$dlname \$dldir/$dlname~
10631 chmod a+x \$dldir/$dlname~
10632 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10633 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10635 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10636 dlpath=$dir/\$dldll~
10638 shlibpath_overrides_runpath=yes
10642 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10643 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10645 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10648 # MinGW DLLs use traditional 'lib' prefix
10649 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10652 # pw32 DLLs use 'pw' prefix rather than 'lib'
10653 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10656 dynamic_linker='Win32 ld.exe'
10661 libname_spec='$name'
10662 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10663 library_names_spec='${libname}.dll.lib'
10667 sys_lib_search_path_spec=
10670 for lt_path in $LIB
10673 # Let DOS variable expansion print the short 8.3 style file name.
10674 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10675 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10678 # Convert to MSYS style.
10679 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10682 # Convert to unix form, then to dos form, then back to unix form
10683 # but this time dos style (no spaces!) so that the unix form looks
10684 # like /cygdrive/c/PROGRA~1:/cygdr...
10685 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10686 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10687 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10690 sys_lib_search_path_spec="$LIB"
10691 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10692 # It is most probably a Windows format PATH.
10693 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10695 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10697 # FIXME: find the short name or the path components, as spaces are
10698 # common. (e.g. "Program Files" -> "PROGRA~1")
10702 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10703 postinstall_cmds='base_file=`basename \${file}`~
10704 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10705 dldir=$destdir/`dirname \$dlpath`~
10706 test -d \$dldir || mkdir -p \$dldir~
10707 $install_prog $dir/$dlname \$dldir/$dlname'
10708 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10709 dlpath=$dir/\$dldll~
10711 shlibpath_overrides_runpath=yes
10712 dynamic_linker='Win32 link.exe'
10716 # Assume MSVC wrapper
10717 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10718 dynamic_linker='Win32 ld.exe'
10721 # FIXME: first we should search . and the directory the executable is in
10725 darwin* | rhapsody*)
10726 dynamic_linker="$host_os dyld"
10727 version_type=darwin
10730 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10731 soname_spec='${libname}${release}${major}$shared_ext'
10732 shlibpath_overrides_runpath=yes
10733 shlibpath_var=DYLD_LIBRARY_PATH
10734 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10736 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10737 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10741 version_type=linux # correct to gnu/linux during the next big refactor
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
10749 freebsd* | dragonfly*)
10750 # DragonFly does not have aout. When/if they implement a new
10751 # versioning mechanism, adjust this.
10752 if test -x /usr/bin/objformat; then
10753 objformat=`/usr/bin/objformat`
10756 freebsd[23].*) objformat=aout ;;
10757 *) objformat=elf ;;
10760 version_type=freebsd-$objformat
10761 case $version_type in
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10772 shlibpath_var=LD_LIBRARY_PATH
10775 shlibpath_overrides_runpath=yes
10777 freebsd3.[01]* | freebsdelf3.[01]*)
10778 shlibpath_overrides_runpath=yes
10779 hardcode_into_libs=yes
10781 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10782 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10783 shlibpath_overrides_runpath=no
10784 hardcode_into_libs=yes
10786 *) # from 4.6 on, and DragonFly
10787 shlibpath_overrides_runpath=yes
10788 hardcode_into_libs=yes
10794 version_type=linux # correct to gnu/linux during the next big refactor
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10798 soname_spec='${libname}${release}${shared_ext}$major'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 shlibpath_overrides_runpath=no
10801 hardcode_into_libs=yes
10805 version_type=linux # correct to gnu/linux during the next big refactor
10808 dynamic_linker="$host_os runtime_loader"
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 shlibpath_var=LIBRARY_PATH
10812 shlibpath_overrides_runpath=yes
10813 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10814 hardcode_into_libs=yes
10817 hpux9* | hpux10* | hpux11*)
10818 # Give a soname corresponding to the major version so that dld.sl refuses to
10819 # link against other versions.
10826 hardcode_into_libs=yes
10827 dynamic_linker="$host_os dld.so"
10828 shlibpath_var=LD_LIBRARY_PATH
10829 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 if test "X$HPUX_IA64_MODE" = X32; then
10833 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10835 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10841 hardcode_into_libs=yes
10842 dynamic_linker="$host_os dld.sl"
10843 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10846 soname_spec='${libname}${release}${shared_ext}$major'
10847 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10852 dynamic_linker="$host_os dld.sl"
10853 shlibpath_var=SHLIB_PATH
10854 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856 soname_spec='${libname}${release}${shared_ext}$major'
10859 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10860 postinstall_cmds='chmod 555 $lib'
10861 # or fails outright, so override atomically:
10862 install_override_mode=555
10866 version_type=linux # correct to gnu/linux during the next big refactor
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10872 shlibpath_var=LD_LIBRARY_PATH
10873 shlibpath_overrides_runpath=no
10874 hardcode_into_libs=yes
10877 irix5* | irix6* | nonstopux*)
10879 nonstopux*) version_type=nonstopux ;;
10881 if test "$lt_cv_prog_gnu_ld" = yes; then
10882 version_type=linux # correct to gnu/linux during the next big refactor
10889 soname_spec='${libname}${release}${shared_ext}$major'
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10892 irix5* | nonstopux*)
10893 libsuff= shlibsuff=
10896 case $LD in # libtool.m4 will add one of these switches to LD
10897 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10898 libsuff= shlibsuff= libmagic=32-bit;;
10899 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10900 libsuff=32 shlibsuff=N32 libmagic=N32;;
10901 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10902 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10903 *) libsuff= shlibsuff= libmagic=never-match;;
10907 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10908 shlibpath_overrides_runpath=no
10909 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10910 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10911 hardcode_into_libs=yes
10914 # No shared lib support for Linux oldld, aout, or coff.
10915 linux*oldld* | linux*aout* | linux*coff*)
10919 # This must be glibc/ELF.
10920 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10921 version_type=linux # correct to gnu/linux during the next big refactor
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10925 soname_spec='${libname}${release}${shared_ext}$major'
10926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 shlibpath_overrides_runpath=no
10930 # Some binutils ld are patched to set DT_RUNPATH
10931 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10932 $as_echo_n "(cached) " >&6
10934 lt_cv_shlibpath_overrides_runpath=no
10935 save_LDFLAGS=$LDFLAGS
10936 save_libdir=$libdir
10937 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10938 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10950 if ac_fn_c_try_link "$LINENO"; then :
10951 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10952 lt_cv_shlibpath_overrides_runpath=yes
10955 rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext conftest.$ac_ext
10957 LDFLAGS=$save_LDFLAGS
10958 libdir=$save_libdir
10962 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10964 # This implies no fast_install, which is unacceptable.
10965 # Some rework will be needed to allow for fast_install
10966 # before this can be enabled.
10967 hardcode_into_libs=yes
10969 # Append ld.so.conf contents to the search path
10970 if test -f /etc/ld.so.conf; then
10971 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10972 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10975 # We used to test for /lib/ld.so.1 and disable shared libraries on
10976 # powerpc, because MkLinux only supported shared libraries with the
10977 # GNU dynamic linker. Since this was broken with cross compilers,
10978 # most powerpc-linux boxes support dynamic linking these days and
10979 # people can always --disable-shared, the test was removed, and we
10980 # assume the GNU/Linux dynamic linker is in use.
10981 dynamic_linker='GNU/Linux ld.so'
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 shlibpath_var=LD_LIBRARY_PATH
10991 shlibpath_overrides_runpath=no
10992 hardcode_into_libs=yes
10993 dynamic_linker='NetBSD ld.elf_so'
11000 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11003 dynamic_linker='NetBSD (a.out) ld.so'
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 dynamic_linker='NetBSD ld.elf_so'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 shlibpath_overrides_runpath=yes
11011 hardcode_into_libs=yes
11015 version_type=linux # correct to gnu/linux during the next big refactor
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 shlibpath_overrides_runpath=yes
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11026 soname_spec='${libname}${release}${shared_ext}$major'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 shlibpath_overrides_runpath=no
11029 hardcode_into_libs=yes
11030 dynamic_linker='ldqnx.so'
11035 sys_lib_dlsearch_path_spec="/usr/lib"
11037 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11039 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11040 *) need_version=no ;;
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11047 openbsd2.[89] | openbsd2.[89].*)
11048 shlibpath_overrides_runpath=no
11051 shlibpath_overrides_runpath=yes
11055 shlibpath_overrides_runpath=yes
11060 libname_spec='$name'
11063 library_names_spec='$libname${shared_ext} $libname.a'
11064 dynamic_linker='OS/2 ld.exe'
11065 shlibpath_var=LIBPATH
11068 osf3* | osf4* | osf5*)
11072 soname_spec='${libname}${release}${shared_ext}$major'
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11074 shlibpath_var=LD_LIBRARY_PATH
11075 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11076 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11084 version_type=linux # correct to gnu/linux during the next big refactor
11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088 soname_spec='${libname}${release}${shared_ext}$major'
11089 shlibpath_var=LD_LIBRARY_PATH
11090 shlibpath_overrides_runpath=yes
11091 hardcode_into_libs=yes
11092 # ldd complains unless libraries are executable
11093 postinstall_cmds='chmod +x $lib'
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11099 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11100 shlibpath_var=LD_LIBRARY_PATH
11101 shlibpath_overrides_runpath=yes
11102 if test "$with_gnu_ld" = yes; then
11109 version_type=linux # correct to gnu/linux during the next big refactor
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 shlibpath_var=LD_LIBRARY_PATH
11113 case $host_vendor in
11115 shlibpath_overrides_runpath=no
11117 runpath_var=LD_RUN_PATH
11125 shlibpath_overrides_runpath=no
11126 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11132 if test -d /usr/nec ;then
11133 version_type=linux # correct to gnu/linux during the next big refactor
11134 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11135 soname_spec='$libname${shared_ext}.$major'
11136 shlibpath_var=LD_LIBRARY_PATH
11140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11141 version_type=freebsd-elf
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 shlibpath_overrides_runpath=yes
11148 hardcode_into_libs=yes
11149 if test "$with_gnu_ld" = yes; then
11150 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11152 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11155 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11159 sys_lib_dlsearch_path_spec='/usr/lib'
11163 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11164 version_type=linux # correct to gnu/linux during the next big refactor
11167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11168 shlibpath_var=LD_LIBRARY_PATH
11169 shlibpath_overrides_runpath=no
11170 hardcode_into_libs=yes
11174 version_type=linux # correct to gnu/linux during the next big refactor
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 shlibpath_var=LD_LIBRARY_PATH
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11185 $as_echo "$dynamic_linker" >&6; }
11186 test "$dynamic_linker" = no && can_build_shared=no
11188 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11189 if test "$GCC" = yes; then
11190 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11193 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11194 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11196 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11197 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11292 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11294 if test -n "$hardcode_libdir_flag_spec" ||
11295 test -n "$runpath_var" ||
11296 test "X$hardcode_automatic" = "Xyes" ; then
11298 # We can hardcode non-existent directories.
11299 if test "$hardcode_direct" != no &&
11300 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11301 # have to relink, otherwise we might link with an installed library
11302 # when we should be linking with a yet-to-be-installed one
11303 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11304 test "$hardcode_minus_L" != no; then
11305 # Linking always hardcodes the temporary library directory.
11306 hardcode_action=relink
11308 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11309 hardcode_action=immediate
11312 # We cannot hardcode anything, or else we can only hardcode existing
11314 hardcode_action=unsupported
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11317 $as_echo "$hardcode_action" >&6; }
11319 if test "$hardcode_action" = relink ||
11320 test "$inherit_rpath" = yes; then
11321 # Fast installation is not supported
11322 enable_fast_install=no
11323 elif test "$shlibpath_overrides_runpath" = yes ||
11324 test "$enable_shared" = no; then
11325 # Fast installation is not necessary
11326 enable_fast_install=needless
11334 if test "x$enable_dlopen" != xyes; then
11335 enable_dlopen=unknown
11336 enable_dlopen_self=unknown
11337 enable_dlopen_self_static=unknown
11344 lt_cv_dlopen="load_add_on"
11346 lt_cv_dlopen_self=yes
11349 mingw* | pw32* | cegcc*)
11350 lt_cv_dlopen="LoadLibrary"
11355 lt_cv_dlopen="dlopen"
11360 # if libdl is installed we need to link against it
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11362 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11363 if ${ac_cv_lib_dl_dlopen+:} false; then :
11364 $as_echo_n "(cached) " >&6
11366 ac_check_lib_save_LIBS=$LIBS
11368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11371 /* Override any GCC internal prototype to avoid an error.
11372 Use char because int might match the return type of a GCC
11373 builtin and then its argument prototype would still apply. */
11386 if ac_fn_c_try_link "$LINENO"; then :
11387 ac_cv_lib_dl_dlopen=yes
11389 ac_cv_lib_dl_dlopen=no
11391 rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext conftest.$ac_ext
11393 LIBS=$ac_check_lib_save_LIBS
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11396 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11397 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11398 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11401 lt_cv_dlopen="dyld"
11403 lt_cv_dlopen_self=yes
11410 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11411 if test "x$ac_cv_func_shl_load" = xyes; then :
11412 lt_cv_dlopen="shl_load"
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11415 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11416 if ${ac_cv_lib_dld_shl_load+:} false; then :
11417 $as_echo_n "(cached) " >&6
11419 ac_check_lib_save_LIBS=$LIBS
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11424 /* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
11434 return shl_load ();
11439 if ac_fn_c_try_link "$LINENO"; then :
11440 ac_cv_lib_dld_shl_load=yes
11442 ac_cv_lib_dld_shl_load=no
11444 rm -f core conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11446 LIBS=$ac_check_lib_save_LIBS
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11449 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11450 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11451 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11453 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11454 if test "x$ac_cv_func_dlopen" = xyes; then :
11455 lt_cv_dlopen="dlopen"
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11458 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11459 if ${ac_cv_lib_dl_dlopen+:} false; then :
11460 $as_echo_n "(cached) " >&6
11462 ac_check_lib_save_LIBS=$LIBS
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11467 /* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
11482 if ac_fn_c_try_link "$LINENO"; then :
11483 ac_cv_lib_dl_dlopen=yes
11485 ac_cv_lib_dl_dlopen=no
11487 rm -f core conftest.err conftest.$ac_objext \
11488 conftest$ac_exeext conftest.$ac_ext
11489 LIBS=$ac_check_lib_save_LIBS
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11492 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11493 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11494 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11497 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11498 if ${ac_cv_lib_svld_dlopen+:} false; then :
11499 $as_echo_n "(cached) " >&6
11501 ac_check_lib_save_LIBS=$LIBS
11502 LIBS="-lsvld $LIBS"
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11506 /* Override any GCC internal prototype to avoid an error.
11507 Use char because int might match the return type of a GCC
11508 builtin and then its argument prototype would still apply. */
11521 if ac_fn_c_try_link "$LINENO"; then :
11522 ac_cv_lib_svld_dlopen=yes
11524 ac_cv_lib_svld_dlopen=no
11526 rm -f core conftest.err conftest.$ac_objext \
11527 conftest$ac_exeext conftest.$ac_ext
11528 LIBS=$ac_check_lib_save_LIBS
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11531 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11532 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11533 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11536 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11537 if ${ac_cv_lib_dld_dld_link+:} false; then :
11538 $as_echo_n "(cached) " >&6
11540 ac_check_lib_save_LIBS=$LIBS
11542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h. */
11545 /* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11555 return dld_link ();
11560 if ac_fn_c_try_link "$LINENO"; then :
11561 ac_cv_lib_dld_dld_link=yes
11563 ac_cv_lib_dld_dld_link=no
11565 rm -f core conftest.err conftest.$ac_objext \
11566 conftest$ac_exeext conftest.$ac_ext
11567 LIBS=$ac_check_lib_save_LIBS
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11570 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11571 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11572 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11593 if test "x$lt_cv_dlopen" != xno; then
11599 case $lt_cv_dlopen in
11601 save_CPPFLAGS="$CPPFLAGS"
11602 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11604 save_LDFLAGS="$LDFLAGS"
11605 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11608 LIBS="$lt_cv_dlopen_libs $LIBS"
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11611 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11612 if ${lt_cv_dlopen_self+:} false; then :
11613 $as_echo_n "(cached) " >&6
11615 if test "$cross_compiling" = yes; then :
11616 lt_cv_dlopen_self=cross
11618 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11619 lt_status=$lt_dlunknown
11620 cat > conftest.$ac_ext <<_LT_EOF
11621 #line $LINENO "configure"
11622 #include "confdefs.h"
11631 # define LT_DLGLOBAL RTLD_GLOBAL
11634 # define LT_DLGLOBAL DL_GLOBAL
11636 # define LT_DLGLOBAL 0
11640 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11641 find out it does not work in some platform. */
11642 #ifndef LT_DLLAZY_OR_NOW
11644 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11647 # define LT_DLLAZY_OR_NOW DL_LAZY
11650 # define LT_DLLAZY_OR_NOW RTLD_NOW
11653 # define LT_DLLAZY_OR_NOW DL_NOW
11655 # define LT_DLLAZY_OR_NOW 0
11662 /* When -fvisbility=hidden is used, assume the code has been annotated
11663 correspondingly for the symbols needed. */
11664 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11665 int fnord () __attribute__((visibility("default")));
11668 int fnord () { return 42; }
11671 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11672 int status = $lt_dlunknown;
11676 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11679 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11680 else puts (dlerror ());
11682 /* dlclose (self); */
11690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11691 (eval $ac_link) 2>&5
11693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11694 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11695 (./conftest; exit; ) >&5 2>/dev/null
11697 case x$lt_status in
11698 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11699 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11700 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11703 # compilation failed
11704 lt_cv_dlopen_self=no
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11712 $as_echo "$lt_cv_dlopen_self" >&6; }
11714 if test "x$lt_cv_dlopen_self" = xyes; then
11715 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11717 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11718 if ${lt_cv_dlopen_self_static+:} false; then :
11719 $as_echo_n "(cached) " >&6
11721 if test "$cross_compiling" = yes; then :
11722 lt_cv_dlopen_self_static=cross
11724 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11725 lt_status=$lt_dlunknown
11726 cat > conftest.$ac_ext <<_LT_EOF
11727 #line $LINENO "configure"
11728 #include "confdefs.h"
11737 # define LT_DLGLOBAL RTLD_GLOBAL
11740 # define LT_DLGLOBAL DL_GLOBAL
11742 # define LT_DLGLOBAL 0
11746 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11747 find out it does not work in some platform. */
11748 #ifndef LT_DLLAZY_OR_NOW
11750 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11753 # define LT_DLLAZY_OR_NOW DL_LAZY
11756 # define LT_DLLAZY_OR_NOW RTLD_NOW
11759 # define LT_DLLAZY_OR_NOW DL_NOW
11761 # define LT_DLLAZY_OR_NOW 0
11768 /* When -fvisbility=hidden is used, assume the code has been annotated
11769 correspondingly for the symbols needed. */
11770 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11771 int fnord () __attribute__((visibility("default")));
11774 int fnord () { return 42; }
11777 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11778 int status = $lt_dlunknown;
11782 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11785 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11786 else puts (dlerror ());
11788 /* dlclose (self); */
11796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11797 (eval $ac_link) 2>&5
11799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11800 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11801 (./conftest; exit; ) >&5 2>/dev/null
11803 case x$lt_status in
11804 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11805 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11806 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11809 # compilation failed
11810 lt_cv_dlopen_self_static=no
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11818 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11821 CPPFLAGS="$save_CPPFLAGS"
11822 LDFLAGS="$save_LDFLAGS"
11827 case $lt_cv_dlopen_self in
11828 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11829 *) enable_dlopen_self=unknown ;;
11832 case $lt_cv_dlopen_self_static in
11833 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11834 *) enable_dlopen_self_static=unknown ;;
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11857 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11858 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11859 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11860 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11862 $as_echo "yes" >&6; }
11864 # FIXME - insert some real tests, host_os isn't really good enough
11867 if test -n "$STRIP" ; then
11868 striplib="$STRIP -x"
11869 old_striplib="$STRIP -S"
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11871 $as_echo "yes" >&6; }
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879 $as_echo "no" >&6; }
11895 # Report which library types will actually be built
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11897 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11899 $as_echo "$can_build_shared" >&6; }
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11902 $as_echo_n "checking whether to build shared libraries... " >&6; }
11903 test "$can_build_shared" = "no" && enable_shared=no
11905 # On AIX, shared libraries and static libraries use the same namespace, and
11906 # are all built from PIC.
11909 test "$enable_shared" = yes && enable_static=no
11910 if test -n "$RANLIB"; then
11911 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11912 postinstall_cmds='$RANLIB $lib'
11917 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11918 test "$enable_shared" = yes && enable_static=no
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11923 $as_echo "$enable_shared" >&6; }
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11926 $as_echo_n "checking whether to build static libraries... " >&6; }
11927 # Make sure either enable_shared or enable_static is yes.
11928 test "$enable_shared" = yes || enable_static=yes
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11930 $as_echo "$enable_static" >&6; }
11937 ac_cpp='$CPP $CPPFLAGS'
11938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11958 ac_config_commands="$ac_config_commands libtool"
11963 # Only expand once:
11975 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11976 if test -n "$ac_tool_prefix"; then
11977 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11978 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980 $as_echo_n "checking for $ac_word... " >&6; }
11981 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11982 $as_echo_n "(cached) " >&6
11984 case $PKG_CONFIG in
11986 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11996 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12007 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12008 if test -n "$PKG_CONFIG"; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12010 $as_echo "$PKG_CONFIG" >&6; }
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12018 if test -z "$ac_cv_path_PKG_CONFIG"; then
12019 ac_pt_PKG_CONFIG=$PKG_CONFIG
12020 # Extract the first word of "pkg-config", so it can be a program name with args.
12021 set dummy pkg-config; ac_word=$2
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12023 $as_echo_n "checking for $ac_word... " >&6; }
12024 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12025 $as_echo_n "(cached) " >&6
12027 case $ac_pt_PKG_CONFIG in
12029 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $PATH
12036 test -z "$as_dir" && as_dir=.
12037 for ac_exec_ext in '' $ac_executable_extensions; do
12038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12039 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12051 if test -n "$ac_pt_PKG_CONFIG"; then
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12053 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056 $as_echo "no" >&6; }
12059 if test "x$ac_pt_PKG_CONFIG" = x; then
12062 case $cross_compiling:$ac_tool_warned in
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12066 ac_tool_warned=yes ;;
12068 PKG_CONFIG=$ac_pt_PKG_CONFIG
12071 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12075 if test -n "$PKG_CONFIG"; then
12076 _pkg_min_version=0.9.0
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12078 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12079 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12081 $as_echo "yes" >&6; }
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREADSTUBS" >&5
12091 $as_echo_n "checking for PTHREADSTUBS... " >&6; }
12093 if test -n "$PTHREADSTUBS_CFLAGS"; then
12094 pkg_cv_PTHREADSTUBS_CFLAGS="$PTHREADSTUBS_CFLAGS"
12095 elif test -n "$PKG_CONFIG"; then
12096 if test -n "$PKG_CONFIG" && \
12097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pthread-stubs\""; } >&5
12098 ($PKG_CONFIG --exists --print-errors "pthread-stubs") 2>&5
12100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12101 test $ac_status = 0; }; then
12102 pkg_cv_PTHREADSTUBS_CFLAGS=`$PKG_CONFIG --cflags "pthread-stubs" 2>/dev/null`
12103 test "x$?" != "x0" && pkg_failed=yes
12110 if test -n "$PTHREADSTUBS_LIBS"; then
12111 pkg_cv_PTHREADSTUBS_LIBS="$PTHREADSTUBS_LIBS"
12112 elif test -n "$PKG_CONFIG"; then
12113 if test -n "$PKG_CONFIG" && \
12114 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pthread-stubs\""; } >&5
12115 ($PKG_CONFIG --exists --print-errors "pthread-stubs") 2>&5
12117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12118 test $ac_status = 0; }; then
12119 pkg_cv_PTHREADSTUBS_LIBS=`$PKG_CONFIG --libs "pthread-stubs" 2>/dev/null`
12120 test "x$?" != "x0" && pkg_failed=yes
12130 if test $pkg_failed = yes; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12134 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12135 _pkg_short_errors_supported=yes
12137 _pkg_short_errors_supported=no
12139 if test $_pkg_short_errors_supported = yes; then
12140 PTHREADSTUBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pthread-stubs" 2>&1`
12142 PTHREADSTUBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pthread-stubs" 2>&1`
12144 # Put the nasty error message in config.log where it belongs
12145 echo "$PTHREADSTUBS_PKG_ERRORS" >&5
12147 as_fn_error $? "Package requirements (pthread-stubs) were not met:
12149 $PTHREADSTUBS_PKG_ERRORS
12151 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12152 installed software in a non-standard prefix.
12154 Alternatively, you may set the environment variables PTHREADSTUBS_CFLAGS
12155 and PTHREADSTUBS_LIBS to avoid the need to call pkg-config.
12156 See the pkg-config man page for more details." "$LINENO" 5
12157 elif test $pkg_failed = untried; then
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159 $as_echo "no" >&6; }
12160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12162 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12163 is in your PATH or set the PKG_CONFIG environment variable to the full
12164 path to pkg-config.
12166 Alternatively, you may set the environment variables PTHREADSTUBS_CFLAGS
12167 and PTHREADSTUBS_LIBS to avoid the need to call pkg-config.
12168 See the pkg-config man page for more details.
12170 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12171 See \`config.log' for more details" "$LINENO" 5; }
12173 PTHREADSTUBS_CFLAGS=$pkg_cv_PTHREADSTUBS_CFLAGS
12174 PTHREADSTUBS_LIBS=$pkg_cv_PTHREADSTUBS_LIBS
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12176 $as_echo "yes" >&6; }
12182 pkgconfigdir=${libdir}/pkgconfig
12184 # Check whether --enable-udev was given.
12185 if test "${enable_udev+set}" = set; then :
12186 enableval=$enable_udev; UDEV=$enableval
12192 # Check whether --enable-libkms was given.
12193 if test "${enable_libkms+set}" = set; then :
12194 enableval=$enable_libkms; LIBKMS=$enableval
12200 # Check whether --enable-intel was given.
12201 if test "${enable_intel+set}" = set; then :
12202 enableval=$enable_intel; INTEL=$enableval
12208 # Check whether --enable-radeon was given.
12209 if test "${enable_radeon+set}" = set; then :
12210 enableval=$enable_radeon; RADEON=$enableval
12216 # Check whether --enable-nouveau was given.
12217 if test "${enable_nouveau+set}" = set; then :
12218 enableval=$enable_nouveau; NOUVEAU=$enableval
12224 # Check whether --enable-vmwgfx-experimental-api was given.
12225 if test "${enable_vmwgfx_experimental_api+set}" = set; then :
12226 enableval=$enable_vmwgfx_experimental_api; VMWGFX=$enableval
12232 # Check whether --enable-omap-experimental-api was given.
12233 if test "${enable_omap_experimental_api+set}" = set; then :
12234 enableval=$enable_omap_experimental_api; OMAP=$enableval
12240 # Check whether --enable-exynos-experimental-api was given.
12241 if test "${enable_exynos_experimental_api+set}" = set; then :
12242 enableval=$enable_exynos_experimental_api; EXYNOS=$enableval
12251 for ac_func in clock_gettime
12253 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12254 if test "x$ac_cv_func_clock_gettime" = xyes; then :
12255 cat >>confdefs.h <<_ACEOF
12256 #define HAVE_CLOCK_GETTIME 1
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12261 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12262 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12263 $as_echo_n "(cached) " >&6
12265 ac_check_lib_save_LIBS=$LIBS
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12270 /* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12276 char clock_gettime ();
12280 return clock_gettime ();
12285 if ac_fn_c_try_link "$LINENO"; then :
12286 ac_cv_lib_rt_clock_gettime=yes
12288 ac_cv_lib_rt_clock_gettime=no
12290 rm -f core conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext conftest.$ac_ext
12292 LIBS=$ac_check_lib_save_LIBS
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12295 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12296 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12299 as_fn_error $? "Couldn't find clock_gettime" "$LINENO" 5
12307 for ac_func in open_memstream
12309 ac_fn_c_check_func "$LINENO" "open_memstream" "ac_cv_func_open_memstream"
12310 if test "x$ac_cv_func_open_memstream" = xyes; then :
12311 cat >>confdefs.h <<_ACEOF
12312 #define HAVE_OPEN_MEMSTREAM 1
12314 HAVE_OPEN_MEMSTREAM=yes
12321 MAYBE_WARN="-Wall -Wextra \
12322 -Wsign-compare -Werror-implicit-function-declaration \
12323 -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
12324 -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
12325 -Wpacked -Wswitch-enum -Wmissing-format-attribute \
12326 -Wstrict-aliasing=2 -Winit-self \
12327 -Wdeclaration-after-statement -Wold-style-definition \
12328 -Wno-missing-field-initializers -Wno-unused-parameter \
12329 -Wno-attributes -Wno-long-long -Winline"
12331 # invalidate cached value if MAYBE_WARN has changed
12332 if test "x$libdrm_cv_warn_maybe" != "x$MAYBE_WARN"; then
12333 unset libdrm_cv_warn_cflags
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported warning flags" >&5
12336 $as_echo_n "checking for supported warning flags... " >&6; }
12337 if ${libdrm_cv_warn_cflags+:} false; then :
12338 $as_echo_n "(cached) " >&6
12344 # Some warning options are not supported by all versions of
12345 # gcc, so test all desired options against the current
12348 # Note that there are some order dependencies
12349 # here. Specifically, an option that disables a warning will
12350 # have no net effect if a later option then enables that
12351 # warnings, (perhaps implicitly). So we put some grouped
12352 # options (-Wall and -Wextra) up front and the -Wno options
12355 for W in $MAYBE_WARN; do
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $W" >&5
12358 $as_echo_n "checking whether $CC supports $W... " >&6; }
12360 libdrm_save_CFLAGS="$CFLAGS"
12361 CFLAGS="$CFLAGS $W"
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12367 if ac_fn_c_try_compile "$LINENO"; then :
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 CFLAGS="$libdrm_save_CFLAGS"
12375 if test "x$libdrm_cc_flag" = "xyes"; then
12376 WARN_CFLAGS="$WARN_CFLAGS $W"
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_cc_flag" >&5
12381 $as_echo "$libdrm_cc_flag" >&6; }
12385 libdrm_cv_warn_cflags=$WARN_CFLAGS
12386 libdrm_cv_warn_maybe=$MAYBE_WARN
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which warning flags were supported" >&5
12389 $as_echo_n "checking which warning flags were supported... " >&6; }
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_cv_warn_cflags" >&5
12392 $as_echo "$libdrm_cv_warn_cflags" >&6; }
12393 WARN_CFLAGS="$libdrm_cv_warn_cflags"
12395 if test "x$UDEV" = xyes; then
12397 $as_echo "#define UDEV 1" >>confdefs.h
12402 if test "x$LIBKMS" = xauto ; then
12404 linux*) LIBKMS="yes" ;;
12409 if test "x$LIBKMS" = xyes; then
12411 HAVE_LIBKMS_FALSE='#'
12413 HAVE_LIBKMS_TRUE='#'
12418 if test "x$VMWGFX" = xyes; then
12420 HAVE_VMWGFX_FALSE='#'
12422 HAVE_VMWGFX_TRUE='#'
12426 if test "x$VMWGFX" = xyes; then
12428 $as_echo "#define HAVE_VMWGFX 1" >>confdefs.h
12432 if test "x$NOUVEAU" = xyes; then
12434 HAVE_NOUVEAU_FALSE='#'
12436 HAVE_NOUVEAU_TRUE='#'
12437 HAVE_NOUVEAU_FALSE=
12440 if test "x$NOUVEAU" = xyes; then
12442 $as_echo "#define HAVE_NOUVEAU 1" >>confdefs.h
12446 if test "x$OMAP" = xyes; then
12448 HAVE_OMAP_FALSE='#'
12454 if test "x$OMAP" = xyes; then
12456 $as_echo "#define HAVE_OMAP 1" >>confdefs.h
12460 if test "x$EXYNOS" = xyes; then
12462 HAVE_EXYNOS_FALSE='#'
12464 HAVE_EXYNOS_TRUE='#'
12468 if test "x$EXYNOS" = xyes; then
12470 $as_echo "#define HAVE_EXYNOS 1" >>confdefs.h
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
12477 $as_echo_n "checking for CAIRO... " >&6; }
12479 if test -n "$CAIRO_CFLAGS"; then
12480 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
12481 elif test -n "$PKG_CONFIG"; then
12482 if test -n "$PKG_CONFIG" && \
12483 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
12484 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
12486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12487 test $ac_status = 0; }; then
12488 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
12489 test "x$?" != "x0" && pkg_failed=yes
12496 if test -n "$CAIRO_LIBS"; then
12497 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
12498 elif test -n "$PKG_CONFIG"; then
12499 if test -n "$PKG_CONFIG" && \
12500 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
12501 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
12503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12504 test $ac_status = 0; }; then
12505 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
12506 test "x$?" != "x0" && pkg_failed=yes
12516 if test $pkg_failed = yes; then
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12520 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12521 _pkg_short_errors_supported=yes
12523 _pkg_short_errors_supported=no
12525 if test $_pkg_short_errors_supported = yes; then
12526 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo" 2>&1`
12528 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo" 2>&1`
12530 # Put the nasty error message in config.log where it belongs
12531 echo "$CAIRO_PKG_ERRORS" >&5
12534 elif test $pkg_failed = untried; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12539 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
12540 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12542 $as_echo "yes" >&6; }
12545 if test "x$HAVE_CAIRO" = xyes; then
12547 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
12550 if test "x$HAVE_CAIRO" = xyes; then
12552 HAVE_CAIRO_FALSE='#'
12554 HAVE_CAIRO_TRUE='#'
12559 # For enumerating devices in test case
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
12563 $as_echo_n "checking for LIBUDEV... " >&6; }
12565 if test -n "$LIBUDEV_CFLAGS"; then
12566 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
12567 elif test -n "$PKG_CONFIG"; then
12568 if test -n "$PKG_CONFIG" && \
12569 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
12570 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
12572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12573 test $ac_status = 0; }; then
12574 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
12575 test "x$?" != "x0" && pkg_failed=yes
12582 if test -n "$LIBUDEV_LIBS"; then
12583 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
12584 elif test -n "$PKG_CONFIG"; then
12585 if test -n "$PKG_CONFIG" && \
12586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
12587 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
12589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12590 test $ac_status = 0; }; then
12591 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
12592 test "x$?" != "x0" && pkg_failed=yes
12602 if test $pkg_failed = yes; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12606 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12607 _pkg_short_errors_supported=yes
12609 _pkg_short_errors_supported=no
12611 if test $_pkg_short_errors_supported = yes; then
12612 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
12614 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
12616 # Put the nasty error message in config.log where it belongs
12617 echo "$LIBUDEV_PKG_ERRORS" >&5
12620 elif test $pkg_failed = untried; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12625 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
12626 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12628 $as_echo "yes" >&6; }
12631 if test "x$HAVE_LIBUDEV" = xyes; then
12633 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
12636 if test "x$HAVE_LIBUDEV" = xyes; then
12638 HAVE_LIBUDEV_FALSE='#'
12640 HAVE_LIBUDEV_TRUE='#'
12641 HAVE_LIBUDEV_FALSE=
12645 if test "x$INTEL" != "xno" -o "x$RADEON" != "xno" -o "x$NOUVEAU" != "xno" -o "x$OMAP" != "xno"; then
12646 # Check for atomic intrinsics
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native atomic primitives" >&5
12648 $as_echo_n "checking for native atomic primitives... " >&6; }
12649 if ${drm_cv_atomic_primitives+:} false; then :
12650 $as_echo_n "(cached) " >&6
12653 drm_cv_atomic_primitives="none"
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h. */
12658 int atomic_add(int i) { return __sync_fetch_and_add (&i, 1); }
12659 int atomic_cmpxchg(int i, int j, int k) { return __sync_val_compare_and_swap (&i, j, k); }
12669 if ac_fn_c_try_link "$LINENO"; then :
12670 drm_cv_atomic_primitives="Intel"
12672 rm -f core conftest.err conftest.$ac_objext \
12673 conftest$ac_exeext conftest.$ac_ext
12675 if test "x$drm_cv_atomic_primitives" = "xnone"; then
12676 ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
12677 if test "x$ac_cv_header_atomic_ops_h" = xyes; then :
12678 drm_cv_atomic_primitives="libatomic-ops"
12684 # atomic functions defined in <atomic.h> & libc on Solaris
12685 if test "x$drm_cv_atomic_primitives" = "xnone"; then
12686 ac_fn_c_check_func "$LINENO" "atomic_cas_uint" "ac_cv_func_atomic_cas_uint"
12687 if test "x$ac_cv_func_atomic_cas_uint" = xyes; then :
12688 drm_cv_atomic_primitives="Solaris"
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $drm_cv_atomic_primitives" >&5
12696 $as_echo "$drm_cv_atomic_primitives" >&6; }
12697 if test "x$drm_cv_atomic_primitives" = xIntel; then
12699 $as_echo "#define HAVE_LIBDRM_ATOMIC_PRIMITIVES 1" >>confdefs.h
12702 if test "x$drm_cv_atomic_primitives" = "xlibatomic-ops"; then
12704 $as_echo "#define HAVE_LIB_ATOMIC_OPS 1" >>confdefs.h
12708 if test "x$drm_cv_atomic_primitives" = "xnone"; then
12709 if test "x$INTEL" != "xauto"; then
12710 if test "x$INTEL" != "xno"; then
12711 as_fn_error $? "libdrm_intel depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package, or, failing both of those, disable support for Intel GPUs by passing --disable-intel to ./configure" "$LINENO" 5
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling libdrm_intel. It depends on atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." >&5
12715 $as_echo "$as_me: WARNING: Disabling libdrm_intel. It depends on atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." >&2;}
12718 if test "x$RADEON" != "xauto"; then
12719 if test "x$RADEON" != "xno"; then
12720 as_fn_error $? "libdrm_radeon depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package, or, failing both of those, disable support for Radeon support by passing --disable-radeon to ./configure" "$LINENO" 5
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling libdrm_radeon. It depends on atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." >&5
12724 $as_echo "$as_me: WARNING: Disabling libdrm_radeon. It depends on atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." >&2;}
12727 if test "x$NOUVEAU" != "xauto"; then
12728 if test "x$NOUVEAU" != "xno"; then
12729 as_fn_error $? "libdrm_nouveau depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package, or, failing both of those, disable support for NVIDIA GPUs by passing --disable-nouveau to ./configure" "$LINENO" 5
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling libdrm_nouveau. It depends on atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." >&5
12733 $as_echo "$as_me: WARNING: Disabling libdrm_nouveau. It depends on atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." >&2;}
12737 if test "x$INTEL" != "xno"; then
12739 i?86|x86_64) INTEL=yes ;;
12743 if test "x$RADEON" != "xno"; then
12746 if test "x$NOUVEAU" != "xno"; then
12752 if test "x$INTEL" != "xno"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
12756 $as_echo_n "checking for PCIACCESS... " >&6; }
12758 if test -n "$PCIACCESS_CFLAGS"; then
12759 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12760 elif test -n "$PKG_CONFIG"; then
12761 if test -n "$PKG_CONFIG" && \
12762 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
12763 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
12765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12766 test $ac_status = 0; }; then
12767 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
12768 test "x$?" != "x0" && pkg_failed=yes
12775 if test -n "$PCIACCESS_LIBS"; then
12776 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12777 elif test -n "$PKG_CONFIG"; then
12778 if test -n "$PKG_CONFIG" && \
12779 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
12780 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
12782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12783 test $ac_status = 0; }; then
12784 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
12785 test "x$?" != "x0" && pkg_failed=yes
12795 if test $pkg_failed = yes; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797 $as_echo "no" >&6; }
12799 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12800 _pkg_short_errors_supported=yes
12802 _pkg_short_errors_supported=no
12804 if test $_pkg_short_errors_supported = yes; then
12805 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
12807 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
12809 # Put the nasty error message in config.log where it belongs
12810 echo "$PCIACCESS_PKG_ERRORS" >&5
12812 as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
12814 $PCIACCESS_PKG_ERRORS
12816 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12817 installed software in a non-standard prefix.
12819 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12820 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12821 See the pkg-config man page for more details." "$LINENO" 5
12822 elif test $pkg_failed = untried; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824 $as_echo "no" >&6; }
12825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12827 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12828 is in your PATH or set the PKG_CONFIG environment variable to the full
12829 path to pkg-config.
12831 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12832 and PCIACCESS_LIBS to avoid the need to call pkg-config.
12833 See the pkg-config man page for more details.
12835 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12836 See \`config.log' for more details" "$LINENO" 5; }
12838 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
12839 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12841 $as_echo "yes" >&6; }
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
12851 $as_echo_n "checking for VALGRIND... " >&6; }
12853 if test -n "$VALGRIND_CFLAGS"; then
12854 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
12855 elif test -n "$PKG_CONFIG"; then
12856 if test -n "$PKG_CONFIG" && \
12857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
12858 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
12860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12861 test $ac_status = 0; }; then
12862 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
12863 test "x$?" != "x0" && pkg_failed=yes
12870 if test -n "$VALGRIND_LIBS"; then
12871 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
12872 elif test -n "$PKG_CONFIG"; then
12873 if test -n "$PKG_CONFIG" && \
12874 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
12875 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
12877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12878 test $ac_status = 0; }; then
12879 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
12880 test "x$?" != "x0" && pkg_failed=yes
12890 if test $pkg_failed = yes; then
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 $as_echo "no" >&6; }
12894 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12895 _pkg_short_errors_supported=yes
12897 _pkg_short_errors_supported=no
12899 if test $_pkg_short_errors_supported = yes; then
12900 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
12902 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
12904 # Put the nasty error message in config.log where it belongs
12905 echo "$VALGRIND_PKG_ERRORS" >&5
12908 elif test $pkg_failed = untried; then
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910 $as_echo "no" >&6; }
12913 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
12914 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12916 $as_echo "yes" >&6; }
12919 if test "x$have_valgrind" = "xyes"; then
12921 $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
12925 if test "x$INTEL" != "xno"; then
12927 HAVE_INTEL_FALSE='#'
12929 HAVE_INTEL_TRUE='#'
12933 if test "x$RADEON" != "xno"; then
12935 HAVE_RADEON_FALSE='#'
12937 HAVE_RADEON_TRUE='#'
12941 if test "x$NOUVEAU" != "xno"; then
12943 HAVE_NOUVEAU_FALSE='#'
12945 HAVE_NOUVEAU_TRUE='#'
12946 HAVE_NOUVEAU_FALSE=
12949 if test "x$RADEON" = xyes; then
12951 $as_echo "#define HAVE_RADEON 1" >>confdefs.h
12956 # Check whether --with-kernel-source was given.
12957 if test "${with_kernel_source+set}" = set; then :
12958 withval=$with_kernel_source; kernel_source="$with_kernel_source"
12964 ac_config_files="$ac_config_files Makefile libkms/Makefile libkms/libkms.pc intel/Makefile intel/libdrm_intel.pc radeon/Makefile radeon/libdrm_radeon.pc nouveau/Makefile nouveau/libdrm_nouveau.pc omap/Makefile omap/libdrm_omap.pc exynos/Makefile exynos/libdrm_exynos.pc tests/Makefile tests/modeprint/Makefile tests/modetest/Makefile tests/kmstest/Makefile tests/radeon/Makefile tests/vbltest/Makefile include/Makefile include/drm/Makefile libdrm.pc"
12966 cat >confcache <<\_ACEOF
12967 # This file is a shell script that caches the results of configure
12968 # tests run on this system so they can be shared between configure
12969 # scripts and configure runs, see configure's option --config-cache.
12970 # It is not useful on other systems. If it contains results you don't
12971 # want to keep, you may remove or edit it.
12973 # config.status only pays attention to the cache file if you give it
12974 # the --recheck option to rerun configure.
12976 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12977 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12978 # following values.
12982 # The following way of writing the cache mishandles newlines in values,
12983 # but we know of no workaround that is simple, portable, and efficient.
12984 # So, we kill variables containing newlines.
12985 # Ultrix sh set writes to stderr and can't be redirected directly,
12986 # and sets the high bit in the cache file unless we assign to the vars.
12988 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12989 eval ac_val=\$$ac_var
12993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12997 _ | IFS | as_nl) ;; #(
12998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12999 *) { eval $ac_var=; unset $ac_var;} ;;
13005 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13006 *${as_nl}ac_space=\ *)
13007 # `set' does not quote correctly, so add quotes: double-quote
13008 # substitution turns \\\\ into \\, and sed turns \\ into \.
13011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13014 # `set' quotes correctly as required by POSIX, so do not add quotes.
13015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13024 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13026 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13028 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13029 if test -w "$cache_file"; then
13030 if test "x$cache_file" != "x/dev/null"; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13032 $as_echo "$as_me: updating cache $cache_file" >&6;}
13033 if test ! -f "$cache_file" || test -h "$cache_file"; then
13034 cat confcache >"$cache_file"
13036 case $cache_file in #(
13038 mv -f confcache "$cache_file"$$ &&
13039 mv -f "$cache_file"$$ "$cache_file" ;; #(
13041 mv -f confcache "$cache_file" ;;
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13047 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13053 # Let make expand exec_prefix.
13054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13056 DEFS=-DHAVE_CONFIG_H
13061 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13062 # 1. Remove the extension, and $U if already installed.
13063 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13064 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13065 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13066 # will be set to the directory where LIBOBJS objects are built.
13067 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13068 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13070 LIBOBJS=$ac_libobjs
13072 LTLIBOBJS=$ac_ltlibobjs
13075 if test -n "$EXEEXT"; then
13077 am__EXEEXT_FALSE='#'
13079 am__EXEEXT_TRUE='#'
13083 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13084 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13087 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13088 as_fn_error $? "conditional \"AMDEP\" was never defined.
13089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13091 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13092 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13095 if test -z "${HAVE_LIBKMS_TRUE}" && test -z "${HAVE_LIBKMS_FALSE}"; then
13096 as_fn_error $? "conditional \"HAVE_LIBKMS\" was never defined.
13097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13099 if test -z "${HAVE_VMWGFX_TRUE}" && test -z "${HAVE_VMWGFX_FALSE}"; then
13100 as_fn_error $? "conditional \"HAVE_VMWGFX\" was never defined.
13101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13103 if test -z "${HAVE_NOUVEAU_TRUE}" && test -z "${HAVE_NOUVEAU_FALSE}"; then
13104 as_fn_error $? "conditional \"HAVE_NOUVEAU\" was never defined.
13105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13107 if test -z "${HAVE_OMAP_TRUE}" && test -z "${HAVE_OMAP_FALSE}"; then
13108 as_fn_error $? "conditional \"HAVE_OMAP\" was never defined.
13109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13111 if test -z "${HAVE_EXYNOS_TRUE}" && test -z "${HAVE_EXYNOS_FALSE}"; then
13112 as_fn_error $? "conditional \"HAVE_EXYNOS\" was never defined.
13113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13115 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
13116 as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
13117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13119 if test -z "${HAVE_LIBUDEV_TRUE}" && test -z "${HAVE_LIBUDEV_FALSE}"; then
13120 as_fn_error $? "conditional \"HAVE_LIBUDEV\" was never defined.
13121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13123 if test -z "${HAVE_INTEL_TRUE}" && test -z "${HAVE_INTEL_FALSE}"; then
13124 as_fn_error $? "conditional \"HAVE_INTEL\" was never defined.
13125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13127 if test -z "${HAVE_RADEON_TRUE}" && test -z "${HAVE_RADEON_FALSE}"; then
13128 as_fn_error $? "conditional \"HAVE_RADEON\" was never defined.
13129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13131 if test -z "${HAVE_NOUVEAU_TRUE}" && test -z "${HAVE_NOUVEAU_FALSE}"; then
13132 as_fn_error $? "conditional \"HAVE_NOUVEAU\" was never defined.
13133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13136 : "${CONFIG_STATUS=./config.status}"
13138 ac_clean_files_save=$ac_clean_files
13139 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13141 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13143 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13145 # Generated by $as_me.
13146 # Run this file to recreate the current configuration.
13147 # Compiler output produced by configure, useful for debugging
13148 # configure, is in config.log if it exists.
13151 ac_cs_recheck=false
13154 SHELL=\${CONFIG_SHELL-$SHELL}
13157 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13158 ## -------------------- ##
13159 ## M4sh Initialization. ##
13160 ## -------------------- ##
13162 # Be more Bourne compatible
13163 DUALCASE=1; export DUALCASE # for MKS sh
13164 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13167 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13168 # is contrary to our usage. Disable this feature.
13169 alias -g '${1+"$@"}'='"$@"'
13170 setopt NO_GLOB_SUBST
13172 case `(set -o) 2>/dev/null` in #(
13184 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13185 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13186 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13187 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13188 # Prefer a ksh shell builtin over an external printf program on Solaris,
13189 # but without wasting forks for bash or zsh.
13190 if test -z "$BASH_VERSION$ZSH_VERSION" \
13191 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13192 as_echo='print -r --'
13193 as_echo_n='print -rn --'
13194 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13195 as_echo='printf %s\n'
13196 as_echo_n='printf %s'
13198 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13199 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13200 as_echo_n='/usr/ucb/echo -n'
13202 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13203 as_echo_n_body='eval
13207 expr "X$arg" : "X\\(.*\\)$as_nl";
13208 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13210 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13212 export as_echo_n_body
13213 as_echo_n='sh -c $as_echo_n_body as_echo'
13215 export as_echo_body
13216 as_echo='sh -c $as_echo_body as_echo'
13219 # The user is always right.
13220 if test "${PATH_SEPARATOR+set}" != set; then
13222 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13223 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13230 # We need space, tab and new line, in precisely that order. Quoting is
13231 # there to prevent editors from complaining about space-tab.
13232 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13233 # splitting by setting IFS to empty value.)
13236 # Find who we are. Look in the path if we contain no directory separator.
13239 *[\\/]* ) as_myself=$0 ;;
13240 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241 for as_dir in $PATH
13244 test -z "$as_dir" && as_dir=.
13245 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13251 # We did not find ourselves, most probably we were run as `sh COMMAND'
13252 # in which case we are not to be found in the path.
13253 if test "x$as_myself" = x; then
13256 if test ! -f "$as_myself"; then
13257 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13261 # Unset variables that we do not need and which cause bugs (e.g. in
13262 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13263 # suppresses any "Segmentation fault" message there. '((' could
13264 # trigger a bug in pdksh 5.2.14.
13265 for as_var in BASH_ENV ENV MAIL MAILPATH
13266 do eval test x\${$as_var+set} = xset \
13267 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13280 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13283 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13284 # ----------------------------------------
13285 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13286 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13287 # script with STATUS, using 1 if that was 0.
13290 as_status=$1; test $as_status -eq 0 && as_status=1
13292 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13293 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13295 $as_echo "$as_me: error: $2" >&2
13296 as_fn_exit $as_status
13300 # as_fn_set_status STATUS
13301 # -----------------------
13302 # Set $? to STATUS, without forking.
13303 as_fn_set_status ()
13306 } # as_fn_set_status
13308 # as_fn_exit STATUS
13309 # -----------------
13310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13314 as_fn_set_status $1
13320 # Portably unset VAR.
13323 { eval $1=; unset $1;}
13325 as_unset=as_fn_unset
13326 # as_fn_append VAR VALUE
13327 # ----------------------
13328 # Append the text in VALUE to the end of the definition contained in VAR. Take
13329 # advantage of any shell optimizations that allow amortized linear growth over
13330 # repeated appends, instead of the typical quadratic growth present in naive
13332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13333 eval 'as_fn_append ()
13344 # as_fn_arith ARG...
13345 # ------------------
13346 # Perform arithmetic evaluation on the ARGs, and store the result in the
13347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13348 # must be portable across $(()) and expr.
13349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13350 eval 'as_fn_arith ()
13357 as_val=`expr "$@" || test $? -eq 1`
13362 if expr a : '\(a\)' >/dev/null 2>&1 &&
13363 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13369 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13370 as_basename=basename
13375 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13381 as_me=`$as_basename -- "$0" ||
13382 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13383 X"$0" : 'X\(//\)$' \| \
13384 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13386 sed '/^.*\/\([^/][^/]*\)\/*$/{
13400 # Avoid depending upon Character Ranges.
13401 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13402 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13403 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13404 as_cr_digits='0123456789'
13405 as_cr_alnum=$as_cr_Letters$as_cr_digits
13407 ECHO_C= ECHO_N= ECHO_T=
13408 case `echo -n x` in #(((((
13410 case `echo 'xy\c'` in
13411 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13413 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13420 rm -f conf$$ conf$$.exe conf$$.file
13421 if test -d conf$$.dir; then
13422 rm -f conf$$.dir/conf$$.file
13425 mkdir conf$$.dir 2>/dev/null
13427 if (echo >conf$$.file) 2>/dev/null; then
13428 if ln -s conf$$.file conf$$ 2>/dev/null; then
13430 # ... but there are two gotchas:
13431 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13432 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13433 # In both cases, we have to default to `cp -p'.
13434 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13436 elif ln conf$$.file conf$$ 2>/dev/null; then
13444 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13445 rmdir conf$$.dir 2>/dev/null
13450 # Create "$as_dir" as a directory, including parents if necessary.
13455 -*) as_dir=./$as_dir;;
13457 test -d "$as_dir" || eval $as_mkdir_p || {
13461 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13462 *) as_qdir=$as_dir;;
13464 as_dirs="'$as_qdir' $as_dirs"
13465 as_dir=`$as_dirname -- "$as_dir" ||
13466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13467 X"$as_dir" : 'X\(//\)[^/]' \| \
13468 X"$as_dir" : 'X\(//\)$' \| \
13469 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13470 $as_echo X"$as_dir" |
13471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13475 /^X\(\/\/\)[^/].*/{
13488 test -d "$as_dir" && break
13490 test -z "$as_dirs" || eval "mkdir $as_dirs"
13491 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13495 if mkdir -p . 2>/dev/null; then
13496 as_mkdir_p='mkdir -p "$as_dir"'
13498 test -d ./-p && rmdir ./-p
13502 if test -x / >/dev/null 2>&1; then
13503 as_test_x='test -x'
13505 if ls -dL / >/dev/null 2>&1; then
13512 if test -d "$1"; then
13518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13519 ???[sx]*):;;*)false;;esac;fi
13523 as_executable_p=$as_test_x
13525 # Sed expression to map a string onto a valid CPP name.
13526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13528 # Sed expression to map a string onto a valid variable name.
13529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13533 ## ----------------------------------- ##
13534 ## Main body of $CONFIG_STATUS script. ##
13535 ## ----------------------------------- ##
13537 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13540 # Save the log message, to keep $0 and so on meaningful, and to
13541 # report actual input values of CONFIG_FILES etc. instead of their
13542 # values after options handling.
13544 This file was extended by libdrm $as_me 2.4.39, which was
13545 generated by GNU Autoconf 2.68. Invocation command line was
13547 CONFIG_FILES = $CONFIG_FILES
13548 CONFIG_HEADERS = $CONFIG_HEADERS
13549 CONFIG_LINKS = $CONFIG_LINKS
13550 CONFIG_COMMANDS = $CONFIG_COMMANDS
13553 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13558 case $ac_config_files in *"
13559 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13562 case $ac_config_headers in *"
13563 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13568 # Files that config.status was made for.
13569 config_files="$ac_config_files"
13570 config_headers="$ac_config_headers"
13571 config_commands="$ac_config_commands"
13575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13577 \`$as_me' instantiates files and other configuration actions
13578 from templates according to the current configuration. Unless the files
13579 and actions are specified as TAGs, all are instantiated by default.
13581 Usage: $0 [OPTION]... [TAG]...
13583 -h, --help print this help, then exit
13584 -V, --version print version number and configuration settings, then exit
13585 --config print configuration, then exit
13586 -q, --quiet, --silent
13587 do not print progress messages
13588 -d, --debug don't remove temporary files
13589 --recheck update $as_me by reconfiguring in the same conditions
13590 --file=FILE[:TEMPLATE]
13591 instantiate the configuration file FILE
13592 --header=FILE[:TEMPLATE]
13593 instantiate the configuration header FILE
13595 Configuration files:
13598 Configuration headers:
13601 Configuration commands:
13604 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=DRI>."
13607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13608 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13610 libdrm config.status 2.4.39
13611 configured by $0, generated by GNU Autoconf 2.68,
13612 with options \\"\$ac_cs_config\\"
13614 Copyright (C) 2010 Free Software Foundation, Inc.
13615 This config.status script is free software; the Free Software Foundation
13616 gives unlimited permission to copy, distribute and modify it."
13623 test -n "\$AWK" || AWK=awk
13626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13627 # The default lists apply if the user does not specify any file.
13633 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13634 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13638 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13650 # Handling of the options.
13651 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13653 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13654 $as_echo "$ac_cs_version"; exit ;;
13655 --config | --confi | --conf | --con | --co | --c )
13656 $as_echo "$ac_cs_config"; exit ;;
13657 --debug | --debu | --deb | --de | --d | -d )
13659 --file | --fil | --fi | --f )
13662 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13663 '') as_fn_error $? "missing file argument" ;;
13665 as_fn_append CONFIG_FILES " '$ac_optarg'"
13666 ac_need_defaults=false;;
13667 --header | --heade | --head | --hea )
13670 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13672 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13673 ac_need_defaults=false;;
13675 # Conflict between --help and --header
13676 as_fn_error $? "ambiguous option: \`$1'
13677 Try \`$0 --help' for more information.";;
13678 --help | --hel | -h )
13679 $as_echo "$ac_cs_usage"; exit ;;
13680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13681 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13684 # This is an error.
13685 -*) as_fn_error $? "unrecognized option: \`$1'
13686 Try \`$0 --help' for more information." ;;
13688 *) as_fn_append ac_config_targets " $1"
13689 ac_need_defaults=false ;;
13695 ac_configure_extra_args=
13697 if $ac_cs_silent; then
13699 ac_configure_extra_args="$ac_configure_extra_args --silent"
13703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13704 if \$ac_cs_recheck; then
13705 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13707 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13708 CONFIG_SHELL='$SHELL'
13709 export CONFIG_SHELL
13714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13719 ## Running $as_me. ##
13725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13729 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13732 # The HP-UX ksh and POSIX shell print the target directory to stdout
13733 # if CDPATH is set.
13734 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13736 sed_quote_subst='$sed_quote_subst'
13737 double_quote_subst='$double_quote_subst'
13738 delay_variable_subst='$delay_variable_subst'
13739 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13740 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13741 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13742 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13743 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13744 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13745 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13746 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13747 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13748 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13749 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13750 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13751 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13752 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13753 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13754 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13755 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13756 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13757 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13758 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13759 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13760 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13761 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13762 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13763 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13764 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13765 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13766 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13767 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13768 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13769 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13770 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13771 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13772 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13773 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13774 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13775 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13776 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13777 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13778 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13779 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13780 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13781 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13782 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13783 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13784 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13785 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13786 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13787 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13788 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13789 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13790 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13791 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13792 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13793 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13794 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13795 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13796 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13797 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13798 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13799 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13800 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13801 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13802 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13803 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13804 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13805 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13806 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13807 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13808 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13809 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13810 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13811 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13812 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13813 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13814 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13815 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13816 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13817 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13818 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13819 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13820 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13821 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13822 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13823 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13824 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13825 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13826 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13827 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13828 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13829 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13830 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13831 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13832 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13833 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13834 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13835 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13836 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13837 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13838 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13839 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13840 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13841 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13842 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13843 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13844 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13845 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13846 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13847 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13848 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13849 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13850 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13851 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13852 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13853 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13854 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13855 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13856 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13857 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13858 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13859 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13860 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13861 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13862 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13863 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13864 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13865 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13866 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13867 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13868 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13871 LTCFLAGS='$LTCFLAGS'
13872 compiler='$compiler_DEFAULT'
13874 # A function that is used when there is no print builtin or printf.
13875 func_fallback_echo ()
13877 eval 'cat <<_LTECHO_EOF
13882 # Quote evaled strings.
13897 deplibs_check_method \
13902 sharedlib_from_linklib_cmd \
13905 archiver_list_spec \
13911 lt_cv_sys_global_symbol_pipe \
13912 lt_cv_sys_global_symbol_to_cdecl \
13913 lt_cv_sys_global_symbol_to_c_name_address \
13914 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13915 nm_file_list_spec \
13916 lt_prog_compiler_no_builtin_flag \
13917 lt_prog_compiler_pic \
13918 lt_prog_compiler_wl \
13919 lt_prog_compiler_static \
13920 lt_cv_prog_compiler_c_o \
13929 export_dynamic_flag_spec \
13930 whole_archive_flag_spec \
13931 compiler_needs_object \
13933 allow_undefined_flag \
13934 no_undefined_flag \
13935 hardcode_libdir_flag_spec \
13936 hardcode_libdir_separator \
13940 variables_saved_for_relink \
13942 library_names_spec \
13944 install_override_mode \
13948 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13949 *[\\\\\\\`\\"\\\$]*)
13950 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13953 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13958 # Double-quote double-evaled strings.
13959 for var in reload_cmds \
13960 old_postinstall_cmds \
13961 old_postuninstall_cmds \
13963 extract_expsyms_cmds \
13964 old_archive_from_new_cmds \
13965 old_archive_from_expsyms_cmds \
13967 archive_expsym_cmds \
13969 module_expsym_cmds \
13970 export_symbols_cmds \
13974 postuninstall_cmds \
13976 sys_lib_search_path_spec \
13977 sys_lib_dlsearch_path_spec; do
13978 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13979 *[\\\\\\\`\\"\\\$]*)
13980 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13983 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13988 ac_aux_dir='$ac_aux_dir'
13989 xsi_shell='$xsi_shell'
13990 lt_shell_append='$lt_shell_append'
13992 # See if we are running on zsh, and set the options which allow our
13993 # commands through without removal of \ escapes INIT.
13994 if test -n "\${ZSH_VERSION+set}" ; then
13995 setopt NO_GLOB_SUBST
14001 TIMESTAMP='$TIMESTAMP'
14010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14012 # Handling of arguments.
14013 for ac_config_target in $ac_config_targets
14015 case $ac_config_target in
14016 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14017 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14018 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14019 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14020 "libkms/Makefile") CONFIG_FILES="$CONFIG_FILES libkms/Makefile" ;;
14021 "libkms/libkms.pc") CONFIG_FILES="$CONFIG_FILES libkms/libkms.pc" ;;
14022 "intel/Makefile") CONFIG_FILES="$CONFIG_FILES intel/Makefile" ;;
14023 "intel/libdrm_intel.pc") CONFIG_FILES="$CONFIG_FILES intel/libdrm_intel.pc" ;;
14024 "radeon/Makefile") CONFIG_FILES="$CONFIG_FILES radeon/Makefile" ;;
14025 "radeon/libdrm_radeon.pc") CONFIG_FILES="$CONFIG_FILES radeon/libdrm_radeon.pc" ;;
14026 "nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES nouveau/Makefile" ;;
14027 "nouveau/libdrm_nouveau.pc") CONFIG_FILES="$CONFIG_FILES nouveau/libdrm_nouveau.pc" ;;
14028 "omap/Makefile") CONFIG_FILES="$CONFIG_FILES omap/Makefile" ;;
14029 "omap/libdrm_omap.pc") CONFIG_FILES="$CONFIG_FILES omap/libdrm_omap.pc" ;;
14030 "exynos/Makefile") CONFIG_FILES="$CONFIG_FILES exynos/Makefile" ;;
14031 "exynos/libdrm_exynos.pc") CONFIG_FILES="$CONFIG_FILES exynos/libdrm_exynos.pc" ;;
14032 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14033 "tests/modeprint/Makefile") CONFIG_FILES="$CONFIG_FILES tests/modeprint/Makefile" ;;
14034 "tests/modetest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/modetest/Makefile" ;;
14035 "tests/kmstest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kmstest/Makefile" ;;
14036 "tests/radeon/Makefile") CONFIG_FILES="$CONFIG_FILES tests/radeon/Makefile" ;;
14037 "tests/vbltest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/vbltest/Makefile" ;;
14038 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14039 "include/drm/Makefile") CONFIG_FILES="$CONFIG_FILES include/drm/Makefile" ;;
14040 "libdrm.pc") CONFIG_FILES="$CONFIG_FILES libdrm.pc" ;;
14042 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14047 # If the user did not use the arguments to specify the items to instantiate,
14048 # then the envvar interface is used. Set only those that are not.
14049 # We use the long form for the default assignment because of an extremely
14050 # bizarre bug on SunOS 4.1.3.
14051 if $ac_need_defaults; then
14052 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14053 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14054 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14057 # Have a temporary directory for convenience. Make it in the build tree
14058 # simply because there is no reason against having it here, and in addition,
14059 # creating and moving files from /tmp can sometimes cause problems.
14060 # Hook for its removal unless debugging.
14061 # Note that there is a small window in which the directory will not be cleaned:
14062 # after its creation but before its name has been assigned to `$tmp'.
14066 trap 'exit_status=$?
14067 : "${ac_tmp:=$tmp}"
14068 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14070 trap 'as_fn_exit 1' 1 2 13 15
14072 # Create a (secure) tmp directory for tmp files.
14075 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14079 tmp=./conf$$-$RANDOM
14080 (umask 077 && mkdir "$tmp")
14081 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14084 # Set up the scripts for CONFIG_FILES section.
14085 # No need to generate them if there are no CONFIG_FILES.
14086 # This happens for instance with `./config.status config.h'.
14087 if test -n "$CONFIG_FILES"; then
14090 ac_cr=`echo X | tr X '\015'`
14091 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14092 # But we know of no other shell where ac_cr would be empty at this
14093 # point, so we can use a bashism as a fallback.
14094 if test "x$ac_cr" = x; then
14095 eval ac_cr=\$\'\\r\'
14097 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14098 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14101 ac_cs_awk_cr=$ac_cr
14104 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14109 echo "cat >conf$$subs.awk <<_ACEOF" &&
14110 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14112 } >conf$$subs.sh ||
14113 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14114 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14116 for ac_last_try in false false false false false :; do
14117 . ./conf$$subs.sh ||
14118 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14120 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14121 if test $ac_delim_n = $ac_delim_num; then
14123 elif $ac_last_try; then
14124 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14126 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14129 rm -f conf$$subs.sh
14131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14132 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14136 s/^/S["/; s/!.*/"]=/
14146 s/\(.\{148\}\)..*/\1/
14148 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14160 s/\(.\{148\}\)..*/\1/
14162 s/["\\]/\\&/g; s/^/"/; s/$/"/
14166 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14171 ' <conf$$subs.awk | sed '
14176 ' >>$CONFIG_STATUS || ac_write_fail=1
14177 rm -f conf$$subs.awk
14178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14180 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14181 for (key in S) S_is_set[key] = 1
14187 nfields = split(line, field, "@")
14189 len = length(field[1])
14190 for (i = 2; i < nfields; i++) {
14192 keylen = length(key)
14193 if (S_is_set[key]) {
14195 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14196 len += length(value) + length(field[++i])
14207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14208 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14209 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14212 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14213 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14216 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14217 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14218 # trailing colons and then remove the whole line if VPATH becomes empty
14219 # (actually we leave an empty line to preserve line numbers).
14220 if test "x$srcdir" = x.; then
14221 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14240 fi # test -n "$CONFIG_FILES"
14242 # Set up the scripts for CONFIG_HEADERS section.
14243 # No need to generate them if there are no CONFIG_HEADERS.
14244 # This happens for instance with `./config.status Makefile'.
14245 if test -n "$CONFIG_HEADERS"; then
14246 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14250 # Transform confdefs.h into an awk script `defines.awk', embedded as
14251 # here-document in config.status, that substitutes the proper values into
14252 # config.h.in to produce config.h.
14254 # Create a delimiter string that does not exist in confdefs.h, to ease
14255 # handling of long lines.
14257 for ac_last_try in false false :; do
14258 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14259 if test -z "$ac_tt"; then
14261 elif $ac_last_try; then
14262 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14268 # For the awk script, D is an array of macro values keyed by name,
14269 # likewise P contains macro parameters if any. Preserve backslash
14270 # newline sequences.
14272 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14274 s/.\{148\}/&'"$ac_delim"'/g
14277 s/^[ ]*#[ ]*define[ ][ ]*/ /
14284 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14286 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14290 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14291 D["\1"]=" \3\\\\\\n"\\/p
14293 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14298 s/.\{148\}/&'"$ac_delim"'/g
14303 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14306 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14308 ' <confdefs.h | sed '
14309 s/'"$ac_delim"'/"\\\
14310 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14313 for (key in D) D_is_set[key] = 1
14316 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14318 split(line, arg, " ")
14319 if (arg[1] == "#") {
14323 defundef = substr(arg[1], 2)
14326 split(mac1, mac2, "(") #)
14328 prefix = substr(line, 1, index(line, defundef) - 1)
14329 if (D_is_set[macro]) {
14330 # Preserve the white space surrounding the "#".
14331 print prefix "define", macro P[macro] D[macro]
14334 # Replace #undef with comments. This is necessary, for example,
14335 # in the case of _POSIX_SOURCE, which is predefined and required
14336 # on some systems where configure will not decide to define it.
14337 if (defundef == "undef") {
14338 print "/*", prefix defundef, macro, "*/"
14346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14347 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14348 fi # test -n "$CONFIG_HEADERS"
14351 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14356 :[FHLC]) ac_mode=$ac_tag; continue;;
14358 case $ac_mode$ac_tag in
14360 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14361 :[FH]-) ac_tag=-:-;;
14362 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14379 -) ac_f="$ac_tmp/stdin";;
14380 *) # Look for the file first in the build tree, then in the source tree
14381 # (if the path is not absolute). The absolute path cannot be DOS-style,
14382 # because $ac_f cannot contain `:'.
14386 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14388 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14390 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14391 as_fn_append ac_file_inputs " '$ac_f'"
14394 # Let's still pretend it is `configure' which instantiates (i.e., don't
14395 # use $as_me), people would be surprised to read:
14396 # /* config.h. Generated by config.status. */
14397 configure_input='Generated from '`
14398 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14400 if test x"$ac_file" != x-; then
14401 configure_input="$ac_file. $configure_input"
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14403 $as_echo "$as_me: creating $ac_file" >&6;}
14405 # Neutralize special characters interpreted by sed in replacement strings.
14406 case $configure_input in #(
14407 *\&* | *\|* | *\\* )
14408 ac_sed_conf_input=`$as_echo "$configure_input" |
14409 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14410 *) ac_sed_conf_input=$configure_input;;
14414 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14415 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14420 ac_dir=`$as_dirname -- "$ac_file" ||
14421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14422 X"$ac_file" : 'X\(//\)[^/]' \| \
14423 X"$ac_file" : 'X\(//\)$' \| \
14424 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14425 $as_echo X"$ac_file" |
14426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14430 /^X\(\/\/\)[^/].*/{
14443 as_dir="$ac_dir"; as_fn_mkdir_p
14447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14450 # A ".." for each directory in $ac_dir_suffix.
14451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14452 case $ac_top_builddir_sub in
14453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14457 ac_abs_top_builddir=$ac_pwd
14458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14459 # for backward compatibility:
14460 ac_top_builddir=$ac_top_build_prefix
14463 .) # We are building in place.
14465 ac_top_srcdir=$ac_top_builddir_sub
14466 ac_abs_top_srcdir=$ac_pwd ;;
14467 [\\/]* | ?:[\\/]* ) # Absolute name.
14468 ac_srcdir=$srcdir$ac_dir_suffix;
14469 ac_top_srcdir=$srcdir
14470 ac_abs_top_srcdir=$srcdir ;;
14471 *) # Relative name.
14472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14473 ac_top_srcdir=$ac_top_build_prefix$srcdir
14474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14486 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14487 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14489 ac_MKDIR_P=$MKDIR_P
14491 [\\/$]* | ?:[\\/]* ) ;;
14492 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14497 # If the template does not know about datarootdir, expand it.
14498 # FIXME: This hack should be removed a few years after 2.60.
14499 ac_datarootdir_hack=; ac_datarootdir_seen=
14510 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14511 *datarootdir*) ac_datarootdir_seen=yes;;
14512 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14514 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14517 ac_datarootdir_hack='
14518 s&@datadir@&$datadir&g
14519 s&@docdir@&$docdir&g
14520 s&@infodir@&$infodir&g
14521 s&@localedir@&$localedir&g
14522 s&@mandir@&$mandir&g
14523 s&\\\${datarootdir}&$datarootdir&g' ;;
14527 # Neutralize VPATH when `$srcdir' = `.'.
14528 # Shell code in configure.ac might set extrasub.
14529 # FIXME: do we really want to maintain this feature?
14530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14531 ac_sed_extra="$ac_vpsub
14534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14537 s|@configure_input@|$ac_sed_conf_input|;t t
14538 s&@top_builddir@&$ac_top_builddir_sub&;t t
14539 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14540 s&@srcdir@&$ac_srcdir&;t t
14541 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14542 s&@top_srcdir@&$ac_top_srcdir&;t t
14543 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14544 s&@builddir@&$ac_builddir&;t t
14545 s&@abs_builddir@&$ac_abs_builddir&;t t
14546 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14547 s&@INSTALL@&$ac_INSTALL&;t t
14548 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14549 $ac_datarootdir_hack
14551 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14552 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14554 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14555 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14556 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14557 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14559 which seems to be undefined. Please make sure it is defined" >&5
14560 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14561 which seems to be undefined. Please make sure it is defined" >&2;}
14563 rm -f "$ac_tmp/stdin"
14565 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14566 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14568 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14574 if test x"$ac_file" != x-; then
14576 $as_echo "/* $configure_input */" \
14577 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14578 } >"$ac_tmp/config.h" \
14579 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14580 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14582 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14585 mv "$ac_tmp/config.h" "$ac_file" \
14586 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14589 $as_echo "/* $configure_input */" \
14590 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14591 || as_fn_error $? "could not create -" "$LINENO" 5
14593 # Compute "$ac_file"'s index in $config_headers.
14596 for _am_header in $config_headers :; do
14597 case $_am_header in
14598 $_am_arg | $_am_arg:* )
14601 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14604 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14605 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14606 X"$_am_arg" : 'X\(//\)[^/]' \| \
14607 X"$_am_arg" : 'X\(//\)$' \| \
14608 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14609 $as_echo X"$_am_arg" |
14610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14614 /^X\(\/\/\)[^/].*/{
14626 s/.*/./; q'`/stamp-h$_am_stamp_count
14629 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14630 $as_echo "$as_me: executing $ac_file commands" >&6;}
14635 case $ac_file$ac_mode in
14636 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14637 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14638 # are listed without --file. Let's play safe and only enable the eval
14639 # if we detect the quoting.
14640 case $CONFIG_FILES in
14641 *\'*) eval set x "$CONFIG_FILES" ;;
14642 *) set x $CONFIG_FILES ;;
14647 # Strip MF so we end up with the name of the file.
14648 mf=`echo "$mf" | sed -e 's/:.*$//'`
14649 # Check whether this is an Automake generated Makefile or not.
14650 # We used to match only the files named `Makefile.in', but
14651 # some people rename them; so instead we look at the file content.
14652 # Grep'ing the first line is not enough: some people post-process
14653 # each Makefile.in and add a new line on top of each file to say so.
14654 # Grep'ing the whole file is not good either: AIX grep has a line
14655 # limit of 2048, but all sed's we know have understand at least 4000.
14656 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14657 dirpart=`$as_dirname -- "$mf" ||
14658 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14659 X"$mf" : 'X\(//\)[^/]' \| \
14660 X"$mf" : 'X\(//\)$' \| \
14661 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14667 /^X\(\/\/\)[^/].*/{
14683 # Extract the definition of DEPDIR, am__include, and am__quote
14684 # from the Makefile without running `make'.
14685 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14686 test -z "$DEPDIR" && continue
14687 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14688 test -z "am__include" && continue
14689 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14690 # When using ansi2knr, U may be empty or an underscore; expand it
14691 U=`sed -n 's/^U = //p' < "$mf"`
14692 # Find all dependency output files, they are included files with
14693 # $(DEPDIR) in their names. We invoke sed twice because it is the
14694 # simplest approach to changing $(DEPDIR) to its actual value in the
14696 for file in `sed -n "
14697 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14698 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14699 # Make sure the directory exists.
14700 test -f "$dirpart/$file" && continue
14701 fdir=`$as_dirname -- "$file" ||
14702 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14703 X"$file" : 'X\(//\)[^/]' \| \
14704 X"$file" : 'X\(//\)$' \| \
14705 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14706 $as_echo X"$file" |
14707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14711 /^X\(\/\/\)[^/].*/{
14724 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14725 # echo "creating $dirpart/$file"
14726 echo '# dummy' > "$dirpart/$file"
14733 # See if we are running on zsh, and set the options which allow our
14734 # commands through without removal of \ escapes.
14735 if test -n "${ZSH_VERSION+set}" ; then
14736 setopt NO_GLOB_SUBST
14739 cfgfile="${ofile}T"
14740 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14743 cat <<_LT_EOF >> "$cfgfile"
14746 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14747 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14748 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14749 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14751 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14752 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14754 # Written by Gordon Matzigkeit, 1996
14756 # This file is part of GNU Libtool.
14758 # GNU Libtool is free software; you can redistribute it and/or
14759 # modify it under the terms of the GNU General Public License as
14760 # published by the Free Software Foundation; either version 2 of
14761 # the License, or (at your option) any later version.
14763 # As a special exception to the GNU General Public License,
14764 # if you distribute this file as part of a program or library that
14765 # is built using GNU Libtool, you may include this file under the
14766 # same distribution terms that you use for the rest of that program.
14768 # GNU Libtool is distributed in the hope that it will be useful,
14769 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14770 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14771 # GNU General Public License for more details.
14773 # You should have received a copy of the GNU General Public License
14774 # along with GNU Libtool; see the file COPYING. If not, a copy
14775 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14776 # obtained by writing to the Free Software Foundation, Inc.,
14777 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14780 # The names of the tagged configurations supported by this script.
14783 # ### BEGIN LIBTOOL CONFIG
14785 # Which release of libtool.m4 was used?
14786 macro_version=$macro_version
14787 macro_revision=$macro_revision
14789 # Whether or not to build static libraries.
14790 build_old_libs=$enable_static
14792 # Whether or not to build shared libraries.
14793 build_libtool_libs=$enable_shared
14795 # What type of objects to build.
14798 # Whether or not to optimize for fast installation.
14799 fast_install=$enable_fast_install
14801 # Shell to use when invoking shell scripts.
14804 # An echo program that protects backslashes.
14807 # The PATH separator for the build system.
14808 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14811 host_alias=$host_alias
14815 # The build system.
14816 build_alias=$build_alias
14820 # A sed program that does not truncate output.
14823 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14824 Xsed="\$SED -e 1s/^X//"
14826 # A grep program that handles long lines.
14832 # A literal string matcher.
14835 # A BSD- or MS-compatible name lister.
14838 # Whether we need soft or hard links.
14841 # What is the maximum length of a command?
14842 max_cmd_len=$max_cmd_len
14844 # Object file suffix (normally "o").
14847 # Executable file suffix (normally "").
14850 # whether the shell understands "unset".
14853 # turn spaces into newlines.
14856 # turn newlines into spaces.
14859 # convert \$build file names to \$host format.
14860 to_host_file_cmd=$lt_cv_to_host_file_cmd
14862 # convert \$build files to toolchain format.
14863 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14865 # An object symbol dumper.
14866 OBJDUMP=$lt_OBJDUMP
14868 # Method to check whether dependent libraries are shared objects.
14869 deplibs_check_method=$lt_deplibs_check_method
14871 # Command to use when deplibs_check_method = "file_magic".
14872 file_magic_cmd=$lt_file_magic_cmd
14874 # How to find potential files when deplibs_check_method = "file_magic".
14875 file_magic_glob=$lt_file_magic_glob
14877 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14878 want_nocaseglob=$lt_want_nocaseglob
14880 # DLL creation program.
14881 DLLTOOL=$lt_DLLTOOL
14883 # Command to associate shared and link libraries.
14884 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14889 # Flags to create an archive.
14890 AR_FLAGS=$lt_AR_FLAGS
14892 # How to feed a file listing to the archiver.
14893 archiver_list_spec=$lt_archiver_list_spec
14895 # A symbol stripping program.
14898 # Commands used to install an old-style archive.
14900 old_postinstall_cmds=$lt_old_postinstall_cmds
14901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14903 # Whether to use a lock for old archive extraction.
14904 lock_old_archive_extraction=$lock_old_archive_extraction
14909 # LTCC compiler flags.
14910 LTCFLAGS=$lt_CFLAGS
14912 # Take the output of nm and produce a listing of raw symbols and C names.
14913 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14915 # Transform the output of nm in a proper C declaration.
14916 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14918 # Transform the output of nm in a C name address pair.
14919 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14921 # Transform the output of nm in a C name address pair when lib prefix is needed.
14922 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14924 # Specify filename containing input files for \$NM.
14925 nm_file_list_spec=$lt_nm_file_list_spec
14927 # The root where to search for dependent libraries,and in which our libraries should be installed.
14928 lt_sysroot=$lt_sysroot
14930 # The name of the directory that contains temporary libtool files.
14933 # Used to examine libraries when file_magic_cmd begins with "file".
14934 MAGIC_CMD=$MAGIC_CMD
14936 # Must we lock files when doing compilation?
14937 need_locks=$lt_need_locks
14940 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14942 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14943 DSYMUTIL=$lt_DSYMUTIL
14945 # Tool to change global to local symbols on Mac OS X.
14948 # Tool to manipulate fat objects and archives on Mac OS X.
14951 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14954 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14955 OTOOL64=$lt_OTOOL64
14957 # Old archive suffix (normally "a").
14960 # Shared library suffix (normally ".so").
14961 shrext_cmds=$lt_shrext_cmds
14963 # The commands to extract the exported symbol list from a shared archive.
14964 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14966 # Variables whose values should be saved in libtool wrapper scripts and
14967 # restored at link time.
14968 variables_saved_for_relink=$lt_variables_saved_for_relink
14970 # Do we need the "lib" prefix for modules?
14971 need_lib_prefix=$need_lib_prefix
14973 # Do we need a version for libraries?
14974 need_version=$need_version
14976 # Library versioning type.
14977 version_type=$version_type
14979 # Shared library runtime path variable.
14980 runpath_var=$runpath_var
14982 # Shared library path variable.
14983 shlibpath_var=$shlibpath_var
14985 # Is shlibpath searched before the hard-coded library search path?
14986 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14988 # Format of library name prefix.
14989 libname_spec=$lt_libname_spec
14991 # List of archive names. First name is the real one, the rest are links.
14992 # The last name is the one that the linker finds with -lNAME
14993 library_names_spec=$lt_library_names_spec
14995 # The coded name of the library, if different from the real name.
14996 soname_spec=$lt_soname_spec
14998 # Permission mode override for installation of shared libraries.
14999 install_override_mode=$lt_install_override_mode
15001 # Command to use after installation of a shared archive.
15002 postinstall_cmds=$lt_postinstall_cmds
15004 # Command to use after uninstallation of a shared archive.
15005 postuninstall_cmds=$lt_postuninstall_cmds
15007 # Commands used to finish a libtool library installation in a directory.
15008 finish_cmds=$lt_finish_cmds
15010 # As "finish_cmds", except a single script fragment to be evaled but
15012 finish_eval=$lt_finish_eval
15014 # Whether we should hardcode library paths into libraries.
15015 hardcode_into_libs=$hardcode_into_libs
15017 # Compile-time system search path for libraries.
15018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15020 # Run-time system search path for libraries.
15021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15023 # Whether dlopen is supported.
15024 dlopen_support=$enable_dlopen
15026 # Whether dlopen of programs is supported.
15027 dlopen_self=$enable_dlopen_self
15029 # Whether dlopen of statically linked programs is supported.
15030 dlopen_self_static=$enable_dlopen_self_static
15032 # Commands to strip libraries.
15033 old_striplib=$lt_old_striplib
15034 striplib=$lt_striplib
15037 # The linker used to build libraries.
15040 # How to create reloadable object files.
15041 reload_flag=$lt_reload_flag
15042 reload_cmds=$lt_reload_cmds
15044 # Commands used to build an old-style archive.
15045 old_archive_cmds=$lt_old_archive_cmds
15047 # A language specific compiler.
15050 # Is the compiler the GNU compiler?
15053 # Compiler flag to turn off builtin functions.
15054 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15056 # Additional compiler flags for building library objects.
15057 pic_flag=$lt_lt_prog_compiler_pic
15059 # How to pass a linker flag through the compiler.
15060 wl=$lt_lt_prog_compiler_wl
15062 # Compiler flag to prevent dynamic linking.
15063 link_static_flag=$lt_lt_prog_compiler_static
15065 # Does compiler simultaneously support -c and -o options?
15066 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15068 # Whether or not to add -lc for building shared libraries.
15069 build_libtool_need_lc=$archive_cmds_need_lc
15071 # Whether or not to disallow shared libs when runtime libs are static.
15072 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15074 # Compiler flag to allow reflexive dlopens.
15075 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15077 # Compiler flag to generate shared objects directly from archives.
15078 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15080 # Whether the compiler copes with passing no objects directly.
15081 compiler_needs_object=$lt_compiler_needs_object
15083 # Create an old-style archive from a shared archive.
15084 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15086 # Create a temporary old-style archive to link instead of a shared archive.
15087 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15089 # Commands used to build a shared archive.
15090 archive_cmds=$lt_archive_cmds
15091 archive_expsym_cmds=$lt_archive_expsym_cmds
15093 # Commands used to build a loadable module if different from building
15094 # a shared archive.
15095 module_cmds=$lt_module_cmds
15096 module_expsym_cmds=$lt_module_expsym_cmds
15098 # Whether we are building with GNU ld or not.
15099 with_gnu_ld=$lt_with_gnu_ld
15101 # Flag that allows shared libraries with undefined symbols to be built.
15102 allow_undefined_flag=$lt_allow_undefined_flag
15104 # Flag that enforces no undefined symbols.
15105 no_undefined_flag=$lt_no_undefined_flag
15107 # Flag to hardcode \$libdir into a binary during linking.
15108 # This must work even if \$libdir does not exist
15109 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15111 # Whether we need a single "-rpath" flag with a separated argument.
15112 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15114 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15115 # DIR into the resulting binary.
15116 hardcode_direct=$hardcode_direct
15118 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15119 # DIR into the resulting binary and the resulting library dependency is
15120 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15121 # library is relocated.
15122 hardcode_direct_absolute=$hardcode_direct_absolute
15124 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15125 # into the resulting binary.
15126 hardcode_minus_L=$hardcode_minus_L
15128 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15129 # into the resulting binary.
15130 hardcode_shlibpath_var=$hardcode_shlibpath_var
15132 # Set to "yes" if building a shared library automatically hardcodes DIR
15133 # into the library and all subsequent libraries and executables linked
15135 hardcode_automatic=$hardcode_automatic
15137 # Set to yes if linker adds runtime paths of dependent libraries
15138 # to runtime path list.
15139 inherit_rpath=$inherit_rpath
15141 # Whether libtool must link a program against all its dependency libraries.
15142 link_all_deplibs=$link_all_deplibs
15144 # Set to "yes" if exported symbols are required.
15145 always_export_symbols=$always_export_symbols
15147 # The commands to list exported symbols.
15148 export_symbols_cmds=$lt_export_symbols_cmds
15150 # Symbols that should not be listed in the preloaded symbols.
15151 exclude_expsyms=$lt_exclude_expsyms
15153 # Symbols that must always be exported.
15154 include_expsyms=$lt_include_expsyms
15156 # Commands necessary for linking programs (against libraries) with templates.
15157 prelink_cmds=$lt_prelink_cmds
15159 # Commands necessary for finishing linking programs.
15160 postlink_cmds=$lt_postlink_cmds
15162 # Specify filename containing input files.
15163 file_list_spec=$lt_file_list_spec
15165 # How to hardcode a shared library path into an executable.
15166 hardcode_action=$hardcode_action
15168 # ### END LIBTOOL CONFIG
15174 cat <<\_LT_EOF >> "$cfgfile"
15175 # AIX sometimes has problems with the GCC collect2 program. For some
15176 # reason, if we set the COLLECT_NAMES environment variable, the problems
15177 # vanish in a puff of smoke.
15178 if test "X${COLLECT_NAMES+set}" != Xset; then
15180 export COLLECT_NAMES
15187 ltmain="$ac_aux_dir/ltmain.sh"
15190 # We use sed instead of cat because bash on DJGPP gets confused if
15191 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15192 # text mode, it properly converts lines to CR/LF. This bash problem
15193 # is reportedly fixed, but why not run on old versions too?
15194 sed '$q' "$ltmain" >> "$cfgfile" \
15195 || (rm -f "$cfgfile"; exit 1)
15197 if test x"$xsi_shell" = xyes; then
15198 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15202 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15203 \ * ) func_dirname_result="${3}" ;;\
15205 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15206 && mv -f "$cfgfile.tmp" "$cfgfile" \
15207 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15208 test 0 -eq $? || _lt_function_replace_fail=:
15211 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15214 \ func_basename_result="${1##*/}"\
15215 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15216 && mv -f "$cfgfile.tmp" "$cfgfile" \
15217 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15218 test 0 -eq $? || _lt_function_replace_fail=:
15221 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15222 func_dirname_and_basename ()\
15225 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15226 \ * ) func_dirname_result="${3}" ;;\
15228 \ func_basename_result="${1##*/}"\
15229 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15230 && mv -f "$cfgfile.tmp" "$cfgfile" \
15231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15232 test 0 -eq $? || _lt_function_replace_fail=:
15235 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15238 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15239 \ # positional parameters, so assign one to ordinary parameter first.\
15240 \ func_stripname_result=${3}\
15241 \ func_stripname_result=${func_stripname_result#"${1}"}\
15242 \ func_stripname_result=${func_stripname_result%"${2}"}\
15243 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15244 && mv -f "$cfgfile.tmp" "$cfgfile" \
15245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15246 test 0 -eq $? || _lt_function_replace_fail=:
15249 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15250 func_split_long_opt ()\
15252 \ func_split_long_opt_name=${1%%=*}\
15253 \ func_split_long_opt_arg=${1#*=}\
15254 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15255 && mv -f "$cfgfile.tmp" "$cfgfile" \
15256 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15257 test 0 -eq $? || _lt_function_replace_fail=:
15260 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15261 func_split_short_opt ()\
15263 \ func_split_short_opt_arg=${1#??}\
15264 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15265 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15266 && mv -f "$cfgfile.tmp" "$cfgfile" \
15267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15268 test 0 -eq $? || _lt_function_replace_fail=:
15271 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15275 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15276 \ *) func_lo2o_result=${1} ;;\
15278 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15279 && mv -f "$cfgfile.tmp" "$cfgfile" \
15280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15281 test 0 -eq $? || _lt_function_replace_fail=:
15284 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15287 func_xform_result=${1%.*}.lo\
15288 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15289 && mv -f "$cfgfile.tmp" "$cfgfile" \
15290 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15291 test 0 -eq $? || _lt_function_replace_fail=:
15294 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15297 func_arith_result=$(( $* ))\
15298 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15299 && mv -f "$cfgfile.tmp" "$cfgfile" \
15300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15301 test 0 -eq $? || _lt_function_replace_fail=:
15304 sed -e '/^func_len ()$/,/^} # func_len /c\
15307 func_len_result=${#1}\
15308 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15309 && mv -f "$cfgfile.tmp" "$cfgfile" \
15310 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15311 test 0 -eq $? || _lt_function_replace_fail=:
15315 if test x"$lt_shell_append" = xyes; then
15316 sed -e '/^func_append ()$/,/^} # func_append /c\
15319 eval "${1}+=\\${2}"\
15320 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15321 && mv -f "$cfgfile.tmp" "$cfgfile" \
15322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15323 test 0 -eq $? || _lt_function_replace_fail=:
15326 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15327 func_append_quoted ()\
15329 \ func_quote_for_eval "${2}"\
15330 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15331 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15332 && mv -f "$cfgfile.tmp" "$cfgfile" \
15333 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15334 test 0 -eq $? || _lt_function_replace_fail=:
15337 # Save a `func_append' function call where possible by direct use of '+='
15338 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15339 && mv -f "$cfgfile.tmp" "$cfgfile" \
15340 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15341 test 0 -eq $? || _lt_function_replace_fail=:
15343 # Save a `func_append' function call even when '+=' is not available
15344 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15345 && mv -f "$cfgfile.tmp" "$cfgfile" \
15346 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15347 test 0 -eq $? || _lt_function_replace_fail=:
15350 if test x"$_lt_function_replace_fail" = x":"; then
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15352 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15356 mv -f "$cfgfile" "$ofile" ||
15357 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15368 ac_clean_files=$ac_clean_files_save
15370 test $ac_write_fail = 0 ||
15371 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15374 # configure is writing to config.log, and then calls config.status.
15375 # config.status does its own redirection, appending to config.log.
15376 # Unfortunately, on DOS this fails, as config.log is still kept open
15377 # by configure, so config.status won't be able to write to it; its
15378 # output is simply discarded. So we exec the FD to /dev/null,
15379 # effectively closing config.log, so it can be properly (re)opened and
15380 # appended to by config.status. When coming back to configure, we
15381 # need to make the FD available again.
15382 if test "$no_create" != yes; then
15384 ac_config_status_args=
15385 test "$silent" = yes &&
15386 ac_config_status_args="$ac_config_status_args --quiet"
15388 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15390 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15391 # would make configure fail if this is the last instruction.
15392 $ac_cs_success || as_fn_exit 1
15394 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15396 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15401 echo "$PACKAGE_STRING will be compiled with:"
15403 echo " libkms $LIBKMS"
15404 echo " Intel API $INTEL"
15405 echo " vmwgfx API $VMWGFX"
15406 echo " Radeon API $RADEON"
15407 echo " Nouveau API $NOUVEAU"
15408 echo " OMAP API $OMAP"
15409 echo " EXYNOS API $EXYNOS"