2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXft 2.3.2.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 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
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || 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=xorg
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='libXft'
573 PACKAGE_TARNAME='libXft'
574 PACKAGE_VERSION='2.3.2'
575 PACKAGE_STRING='libXft 2.3.2'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
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
706 INSTALL_STRIP_PROGRAM
748 program_transform_name
761 enable_option_checking
767 enable_dependency_tracking
771 enable_selective_werror
772 enable_strict_compilation
774 ac_precious_vars='build_alias
792 # Initialize some variables set by options.
794 ac_init_version=false
795 ac_unrecognized_opts=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
806 program_transform_name=s,x,x,
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
909 eval enable_$ac_useropt=no ;;
911 -docdir | --docdir | --docdi | --doc | --do)
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
935 eval enable_$ac_useropt=\$ac_optarg ;;
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
950 -help | --help | --hel | --he | -h)
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 htmldir=$ac_optarg ;;
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
980 -libdir | --libdir | --libdi | --libd)
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
992 -localedir | --localedir | --localedi | --localed | --locale)
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1071 -psdir | --psdir | --psdi | --psd | --ps)
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 sbindir=$ac_optarg ;;
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 sharedstatedir=$ac_optarg ;;
1097 -site | --site | --sit)
1099 -site=* | --site=* | --sit=*)
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1139 eval with_$ac_useropt=\$ac_optarg ;;
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1155 eval with_$ac_useropt=no ;;
1158 # Obsolete; use --with-x.
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1226 # Be sure to have absolute directory names.
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used" >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error $? "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error $? "pwd does not report name of working directory"
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures libXft 2.3.2 to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking ...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/libXft]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of libXft 2.3.2:";;
1407 --disable-option-checking ignore unrecognized --enable/--with options
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --enable-silent-rules less verbose build output (undo: "make V=1")
1411 --disable-silent-rules verbose build output (undo: "make V=0")
1412 --enable-shared[=PKGS] build shared libraries [default=yes]
1413 --enable-static[=PKGS] build static libraries [default=yes]
1414 --enable-fast-install[=PKGS]
1415 optimize for fast installation [default=yes]
1416 --enable-dependency-tracking
1417 do not reject slow dependency extractors
1418 --disable-dependency-tracking
1419 speeds up one-time build
1420 --disable-libtool-lock avoid locking (might break parallel builds)
1421 --disable-selective-werror
1422 Turn off selective compiler errors. (default:
1424 --enable-strict-compilation
1425 Enable all warnings from compiler and make them
1426 errors (default: disabled)
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1433 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1434 --with-sysroot=DIR Search for dependent libraries within DIR
1435 (or the compiler's sysroot if not specified).
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1446 PKG_CONFIG path to pkg-config utility
1448 C compiler flags for XRENDER, overriding pkg-config
1450 linker flags for XRENDER, overriding pkg-config
1452 C compiler flags for FREETYPE, overriding pkg-config
1454 linker flags for FREETYPE, overriding pkg-config
1456 C compiler flags for FONTCONFIG, overriding pkg-config
1458 linker flags for FONTCONFIG, overriding pkg-config
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1463 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1468 if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471 test -d "$ac_dir" ||
1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487 ac_abs_top_builddir=$ac_pwd
1488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489 # for backward compatibility:
1490 ac_top_builddir=$ac_top_build_prefix
1493 .) # We are building in place.
1495 ac_top_srcdir=$ac_top_builddir_sub
1496 ac_abs_top_srcdir=$ac_pwd ;;
1497 [\\/]* | ?:[\\/]* ) # Absolute name.
1498 ac_srcdir=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir=$srcdir
1500 ac_abs_top_srcdir=$srcdir ;;
1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508 cd "$ac_dir" || { ac_status=$?; continue; }
1509 # Check for guested configure.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 cd "$ac_pwd" || { ac_status=$?; break; }
1523 test -n "$ac_init_help" && exit $ac_status
1524 if $ac_init_version; then
1526 libXft configure 2.3.2
1527 generated by GNU Autoconf 2.68
1529 Copyright (C) 2010 Free Software Foundation, Inc.
1530 This configure script is free software; the Free Software Foundation
1531 gives unlimited permission to copy, distribute and modify it.
1536 ## ------------------------ ##
1537 ## Autoconf initialization. ##
1538 ## ------------------------ ##
1540 # ac_fn_c_try_compile LINENO
1541 # --------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_compile ()
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1576 } # ac_fn_c_try_compile
1578 # ac_fn_c_try_link LINENO
1579 # -----------------------
1580 # Try to link conftest.$ac_ext, and return whether this succeeded.
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext conftest$ac_exeext
1585 if { { ac_try="$ac_link"
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_link") 2>conftest.err
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest$ac_exeext && {
1604 test "$cross_compiling" = yes ||
1605 $as_test_x conftest$ac_exeext
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1614 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1615 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1616 # interfere with the next link command; also delete a directory that is
1617 # left behind by Apple's compiler. We do this before executing the actions.
1618 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1622 } # ac_fn_c_try_link
1624 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1625 # -------------------------------------------------------
1626 # Tests whether HEADER exists and can be compiled using the include files in
1627 # INCLUDES, setting the cache variable VAR accordingly.
1628 ac_fn_c_check_header_compile ()
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632 $as_echo_n "checking for $2... " >&6; }
1633 if eval \${$3+:} false; then :
1634 $as_echo_n "(cached) " >&6
1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h. */
1641 if ac_fn_c_try_compile "$LINENO"; then :
1646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650 $as_echo "$ac_res" >&6; }
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 } # ac_fn_c_check_header_compile
1655 # ac_fn_c_try_cpp LINENO
1656 # ----------------------
1657 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 if { { ac_try="$ac_cpp conftest.$ac_ext"
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } > conftest.i && {
1677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1692 # ac_fn_c_try_run LINENO
1693 # ----------------------
1694 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1695 # that executables *can* be run.
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 if { { ac_try="$ac_link"
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_link") 2>&5
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1710 { { case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_try") 2>&5
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; }; }; then :
1722 $as_echo "$as_me: program exited with status $ac_status" >&5
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1726 ac_retval=$ac_status
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1734 # ac_fn_c_check_func LINENO FUNC VAR
1735 # ----------------------------------
1736 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1737 ac_fn_c_check_func ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1749 #define $2 innocuous_$2
1751 /* System header to define __stub macros and hopefully few prototypes,
1752 which can conflict with char $2 (); below.
1753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1754 <limits.h> exists even on freestanding compilers. */
1757 # include <limits.h>
1759 # include <assert.h>
1764 /* Override any GCC internal prototype to avoid an error.
1765 Use char because int might match the return type of a GCC
1766 builtin and then its argument prototype would still apply. */
1771 /* The GNU C library defines this for functions which it implements
1772 to always fail with ENOSYS. Some functions are actually named
1773 something starting with __ and the normal name is an alias. */
1774 #if defined __stub_$2 || defined __stub___$2
1786 if ac_fn_c_try_link "$LINENO"; then :
1791 rm -f core conftest.err conftest.$ac_objext \
1792 conftest$ac_exeext conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 } # ac_fn_c_check_func
1801 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1802 # ---------------------------------------------
1803 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1805 ac_fn_c_check_decl ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 as_decl_name=`echo $2|sed 's/ *(.*//'`
1809 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1811 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1812 if eval \${$3+:} false; then :
1813 $as_echo_n "(cached) " >&6
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1821 #ifndef $as_decl_name
1823 (void) $as_decl_use;
1825 (void) $as_decl_name;
1833 if ac_fn_c_try_compile "$LINENO"; then :
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 } # ac_fn_c_check_decl
1846 cat >config.log <<_ACEOF
1847 This file contains any messages produced by compilers while
1848 running configure, to aid debugging if configure makes a mistake.
1850 It was created by libXft $as_me 2.3.2, which was
1851 generated by GNU Autoconf 2.68. Invocation command line was
1863 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1872 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1873 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1874 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1876 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1877 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1878 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir=.
1887 $as_echo "PATH: $as_dir"
1903 # Keep a trace of the command line.
1904 # Strip out --no-create and --no-recursion so they do not pile up.
1905 # Strip out --silent because we don't want to record it for future runs.
1906 # Also quote any args containing shell meta-characters.
1907 # Make two passes to allow for proper duplicate-argument suppression.
1911 ac_must_keep_next=false
1917 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1919 | -silent | --silent | --silen | --sile | --sil)
1922 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1925 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1927 as_fn_append ac_configure_args1 " '$ac_arg'"
1928 if test $ac_must_keep_next = true; then
1929 ac_must_keep_next=false # Got value, back to normal.
1932 *=* | --config-cache | -C | -disable-* | --disable-* \
1933 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1934 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1935 | -with-* | --with-* | -without-* | --without-* | --x)
1936 case "$ac_configure_args0 " in
1937 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1940 -* ) ac_must_keep_next=true ;;
1943 as_fn_append ac_configure_args " '$ac_arg'"
1948 { ac_configure_args0=; unset ac_configure_args0;}
1949 { ac_configure_args1=; unset ac_configure_args1;}
1951 # When interrupted or exit'd, cleanup temporary files, and complete
1952 # config.log. We remove comments because anyway the quotes in there
1953 # would cause problems or look ugly.
1954 # WARNING: Use '\'' to represent an apostrophe within the trap.
1955 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1956 trap 'exit_status=$?
1957 # Save into config.log some information that might help in debugging.
1961 $as_echo "## ---------------- ##
1962 ## Cache variables. ##
1963 ## ---------------- ##"
1965 # The following way of writing the cache mishandles newlines in values,
1967 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1968 eval ac_val=\$$ac_var
1972 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1973 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1976 _ | IFS | as_nl) ;; #(
1977 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1978 *) { eval $ac_var=; unset $ac_var;} ;;
1983 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1984 *${as_nl}ac_space=\ *)
1986 "s/'\''/'\''\\\\'\'''\''/g;
1987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1997 $as_echo "## ----------------- ##
1998 ## Output variables. ##
1999 ## ----------------- ##"
2001 for ac_var in $ac_subst_vars
2003 eval ac_val=\$$ac_var
2005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007 $as_echo "$ac_var='\''$ac_val'\''"
2011 if test -n "$ac_subst_files"; then
2012 $as_echo "## ------------------- ##
2013 ## File substitutions. ##
2014 ## ------------------- ##"
2016 for ac_var in $ac_subst_files
2018 eval ac_val=\$$ac_var
2020 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022 $as_echo "$ac_var='\''$ac_val'\''"
2027 if test -s confdefs.h; then
2028 $as_echo "## ----------- ##
2035 test "$ac_signal" != 0 &&
2036 $as_echo "$as_me: caught signal $ac_signal"
2037 $as_echo "$as_me: exit $exit_status"
2039 rm -f core *.core core.conftest.* &&
2040 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2043 for ac_signal in 1 2 13 15; do
2044 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2048 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2049 rm -f -r conftest* confdefs.h
2051 $as_echo "/* confdefs.h */" > confdefs.h
2053 # Predefined preprocessor variables.
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_NAME "$PACKAGE_NAME"
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_STRING "$PACKAGE_STRING"
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_URL "$PACKAGE_URL"
2080 # Let the site file select an alternate cache file if it wants to.
2081 # Prefer an explicitly selected file to automatically selected ones.
2084 if test -n "$CONFIG_SITE"; then
2085 # We do not want a PATH search for config.site.
2086 case $CONFIG_SITE in #((
2087 -*) ac_site_file1=./$CONFIG_SITE;;
2088 */*) ac_site_file1=$CONFIG_SITE;;
2089 *) ac_site_file1=./$CONFIG_SITE;;
2091 elif test "x$prefix" != xNONE; then
2092 ac_site_file1=$prefix/share/config.site
2093 ac_site_file2=$prefix/etc/config.site
2095 ac_site_file1=$ac_default_prefix/share/config.site
2096 ac_site_file2=$ac_default_prefix/etc/config.site
2098 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2100 test "x$ac_site_file" = xNONE && continue
2101 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2103 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2104 sed 's/^/| /' "$ac_site_file" >&5
2106 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2108 as_fn_error $? "failed to load site script $ac_site_file
2109 See \`config.log' for more details" "$LINENO" 5; }
2113 if test -r "$cache_file"; then
2114 # Some versions of bash will fail to source /dev/null (special files
2115 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2116 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2118 $as_echo "$as_me: loading cache $cache_file" >&6;}
2120 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2121 *) . "./$cache_file";;
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2126 $as_echo "$as_me: creating cache $cache_file" >&6;}
2130 # Check that the precious variables saved in the cache have kept the same
2132 ac_cache_corrupted=false
2133 for ac_var in $ac_precious_vars; do
2134 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2135 eval ac_new_set=\$ac_env_${ac_var}_set
2136 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2137 eval ac_new_val=\$ac_env_${ac_var}_value
2138 case $ac_old_set,$ac_new_set in
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2141 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2142 ac_cache_corrupted=: ;;
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2145 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2146 ac_cache_corrupted=: ;;
2149 if test "x$ac_old_val" != "x$ac_new_val"; then
2150 # differences in whitespace do not lead to failure.
2151 ac_old_val_w=`echo x $ac_old_val`
2152 ac_new_val_w=`echo x $ac_new_val`
2153 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2155 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2156 ac_cache_corrupted=:
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2159 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2160 eval $ac_var=\$ac_old_val
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2163 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2165 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2168 # Pass precious variables to config.status.
2169 if test "$ac_new_set" = set; then
2171 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2172 *) ac_arg=$ac_var=$ac_new_val ;;
2174 case " $ac_configure_args " in
2175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2176 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2180 if $ac_cache_corrupted; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2184 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2185 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2187 ## -------------------- ##
2188 ## Main body of script. ##
2189 ## -------------------- ##
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2199 ac_config_headers="$ac_config_headers config.h"
2202 # Initialize Automake
2203 am__api_version='1.14'
2206 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2207 if test -f "$ac_dir/install-sh"; then
2209 ac_install_sh="$ac_aux_dir/install-sh -c"
2211 elif test -f "$ac_dir/install.sh"; then
2213 ac_install_sh="$ac_aux_dir/install.sh -c"
2215 elif test -f "$ac_dir/shtool"; then
2217 ac_install_sh="$ac_aux_dir/shtool install -c"
2221 if test -z "$ac_aux_dir"; then
2222 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2225 # These three variables are undocumented and unsupported,
2226 # and are intended to be withdrawn in a future Autoconf release.
2227 # They can cause serious problems if a builder's source tree is in a directory
2228 # whose full name contains unusual characters.
2229 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2230 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2231 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2234 # Find a good install program. We prefer a C program (faster),
2235 # so one script is as good as another. But avoid the broken or
2236 # incompatible versions:
2237 # SysV /etc/install, /usr/sbin/install
2238 # SunOS /usr/etc/install
2239 # IRIX /sbin/install
2241 # AmigaOS /C/install, which installs bootblocks on floppy discs
2242 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2243 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2244 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2245 # OS/2's system install, which has a completely different semantic
2246 # ./install, which can be erroneously created by make from ./install.sh.
2247 # Reject install programs that cannot install multiple files.
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2249 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2250 if test -z "$INSTALL"; then
2251 if ${ac_cv_path_install+:} false; then :
2252 $as_echo_n "(cached) " >&6
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 test -z "$as_dir" && as_dir=.
2259 # Account for people who put trailing slashes in PATH elements.
2260 case $as_dir/ in #((
2261 ./ | .// | /[cC]/* | \
2262 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2263 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2266 # OSF1 and SCO ODT 3.0 have their own names for install.
2267 # Don't use installbsd from OSF since it installs stuff as root
2269 for ac_prog in ginstall scoinst install; do
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2272 if test $ac_prog = install &&
2273 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274 # AIX install. It has an incompatible calling convention.
2276 elif test $ac_prog = install &&
2277 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278 # program-specific install script used by HP pwplus--don't use.
2281 rm -rf conftest.one conftest.two conftest.dir
2282 echo one > conftest.one
2283 echo two > conftest.two
2285 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2286 test -s conftest.one && test -s conftest.two &&
2287 test -s conftest.dir/conftest.one &&
2288 test -s conftest.dir/conftest.two
2290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2303 rm -rf conftest.one conftest.two conftest.dir
2306 if test "${ac_cv_path_install+set}" = set; then
2307 INSTALL=$ac_cv_path_install
2309 # As a last resort, use the slow shell script. Don't cache a
2310 # value for INSTALL within a source directory, because that will
2311 # break other packages using the cache if that directory is
2312 # removed, or if the value is a relative name.
2313 INSTALL=$ac_install_sh
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2317 $as_echo "$INSTALL" >&6; }
2319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2320 # It thinks the first close brace ends the variable substitution.
2321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2328 $as_echo_n "checking whether build environment is sane... " >&6; }
2329 # Reject unsafe characters in $srcdir or the absolute working directory
2330 # name. Accept space and tab only in the latter.
2334 *[\\\"\#\$\&\'\`$am_lf]*)
2335 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2338 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2339 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2342 # Do 'set' in a subshell so we don't clobber the current shell's
2343 # arguments. Must try -L first in case configure is actually a
2344 # symlink; some systems play weird games with the mod time of symlinks
2345 # (eg FreeBSD returns the mod time of the symlink's containing
2349 for am_try in 1 2; do
2350 echo "timestamp, slept: $am_has_slept" > conftest.file
2351 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2352 if test "$*" = "X"; then
2354 set X `ls -t "$srcdir/configure" conftest.file`
2356 if test "$*" != "X $srcdir/configure conftest.file" \
2357 && test "$*" != "X conftest.file $srcdir/configure"; then
2359 # If neither matched, then we have a broken ls. This can happen
2360 # if, for instance, CONFIG_SHELL is bash and it inherits a
2361 # broken ls alias from the environment. This has actually
2362 # happened. Such a system could not be considered "sane".
2363 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2364 alias in your environment" "$LINENO" 5
2366 if test "$2" = conftest.file || test $am_try -eq 2; then
2373 test "$2" = conftest.file
2379 as_fn_error $? "newly created file is older than distributed files!
2380 Check your system clock" "$LINENO" 5
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2383 $as_echo "yes" >&6; }
2384 # If we didn't sleep, we still need to ensure time stamps of config.status and
2385 # generated files are strictly newer.
2387 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2394 test "$program_prefix" != NONE &&
2395 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2396 # Use a double $ so make ignores it.
2397 test "$program_suffix" != NONE &&
2398 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2399 # Double any \ or $.
2400 # By default was `s,x,x', remove it if useless.
2401 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2402 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2404 # expand $ac_aux_dir to an absolute path
2405 am_aux_dir=`cd $ac_aux_dir && pwd`
2407 if test x"${MISSING+set}" != xset; then
2410 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2412 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2415 # Use eval to expand $SHELL
2416 if eval "$MISSING --is-lightweight"; then
2417 am_missing_run="$MISSING "
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2421 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2424 if test x"${install_sh}" != xset; then
2427 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2429 install_sh="\${SHELL} $am_aux_dir/install-sh"
2433 # Installed binaries are usually stripped using 'strip' when the user
2434 # run "make install-strip". However 'strip' might not be the right
2435 # tool to use in cross-compilation environments, therefore Automake
2436 # will honor the 'STRIP' environment variable to overrule this program.
2437 if test "$cross_compiling" != no; then
2438 if test -n "$ac_tool_prefix"; then
2439 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}strip; ac_word=$2
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442 $as_echo_n "checking for $ac_word... " >&6; }
2443 if ${ac_cv_prog_STRIP+:} false; then :
2444 $as_echo_n "(cached) " >&6
2446 if test -n "$STRIP"; then
2447 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 STRIP=$ac_cv_prog_STRIP
2467 if test -n "$STRIP"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2469 $as_echo "$STRIP" >&6; }
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472 $as_echo "no" >&6; }
2477 if test -z "$ac_cv_prog_STRIP"; then
2479 # Extract the first word of "strip", so it can be a program name with args.
2480 set dummy strip; ac_word=$2
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2482 $as_echo_n "checking for $ac_word... " >&6; }
2483 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2484 $as_echo_n "(cached) " >&6
2486 if test -n "$ac_ct_STRIP"; then
2487 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 ac_cv_prog_ac_ct_STRIP="strip"
2497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2507 if test -n "$ac_ct_STRIP"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2509 $as_echo "$ac_ct_STRIP" >&6; }
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2512 $as_echo "no" >&6; }
2515 if test "x$ac_ct_STRIP" = x; then
2518 case $cross_compiling:$ac_tool_warned in
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2522 ac_tool_warned=yes ;;
2527 STRIP="$ac_cv_prog_STRIP"
2531 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2534 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2535 if test -z "$MKDIR_P"; then
2536 if ${ac_cv_path_mkdir+:} false; then :
2537 $as_echo_n "(cached) " >&6
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2543 test -z "$as_dir" && as_dir=.
2544 for ac_prog in mkdir gmkdir; do
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2547 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2548 'mkdir (GNU coreutils) '* | \
2549 'mkdir (coreutils) '* | \
2550 'mkdir (fileutils) '4.1*)
2551 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2561 test -d ./--version && rmdir ./--version
2562 if test "${ac_cv_path_mkdir+set}" = set; then
2563 MKDIR_P="$ac_cv_path_mkdir -p"
2565 # As a last resort, use the slow shell script. Don't cache a
2566 # value for MKDIR_P within a source directory, because that will
2567 # break other packages using the cache if that directory is
2568 # removed, or if the value is a relative name.
2569 MKDIR_P="$ac_install_sh -d"
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2573 $as_echo "$MKDIR_P" >&6; }
2575 for ac_prog in gawk mawk nawk awk
2577 # Extract the first word of "$ac_prog", so it can be a program name with args.
2578 set dummy $ac_prog; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if ${ac_cv_prog_AWK+:} false; then :
2582 $as_echo_n "(cached) " >&6
2584 if test -n "$AWK"; then
2585 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_AWK="$ac_prog"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 if test -n "$AWK"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2607 $as_echo "$AWK" >&6; }
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2614 test -n "$AWK" && break
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2618 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2620 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2621 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2622 $as_echo_n "(cached) " >&6
2624 cat >conftest.make <<\_ACEOF
2627 @echo '@@@%%%=$(MAKE)=@@@%%%'
2629 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2630 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2632 eval ac_cv_prog_make_${ac_make}_set=yes;;
2634 eval ac_cv_prog_make_${ac_make}_set=no;;
2638 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2640 $as_echo "yes" >&6; }
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 SET_MAKE="MAKE=${MAKE-make}"
2648 rm -rf .tst 2>/dev/null
2649 mkdir .tst 2>/dev/null
2650 if test -d .tst; then
2655 rmdir .tst 2>/dev/null
2657 # Check whether --enable-silent-rules was given.
2658 if test "${enable_silent_rules+set}" = set; then :
2659 enableval=$enable_silent_rules;
2662 case $enable_silent_rules in # (((
2663 yes) AM_DEFAULT_VERBOSITY=0;;
2664 no) AM_DEFAULT_VERBOSITY=1;;
2665 *) AM_DEFAULT_VERBOSITY=1;;
2667 am_make=${MAKE-make}
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2669 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2670 if ${am_cv_make_support_nested_variables+:} false; then :
2671 $as_echo_n "(cached) " >&6
2673 if $as_echo 'TRUE=$(BAR$(V))
2679 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2680 am_cv_make_support_nested_variables=yes
2682 am_cv_make_support_nested_variables=no
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2686 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2687 if test $am_cv_make_support_nested_variables = yes; then
2689 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2691 AM_V=$AM_DEFAULT_VERBOSITY
2692 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2696 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2697 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2698 # is not polluted with repeated "-I."
2699 am__isrc=' -I$(srcdir)'
2700 # test to see if srcdir already configured
2701 if test -f $srcdir/config.status; then
2702 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2706 # test whether we have cygpath
2707 if test -z "$CYGPATH_W"; then
2708 if (cygpath --version) >/dev/null 2>/dev/null; then
2709 CYGPATH_W='cygpath -w'
2716 # Define the identity of the package.
2721 cat >>confdefs.h <<_ACEOF
2722 #define PACKAGE "$PACKAGE"
2726 cat >>confdefs.h <<_ACEOF
2727 #define VERSION "$VERSION"
2730 # Some tools Automake needs.
2732 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2735 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2738 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2741 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2744 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2746 # For better backward compatibility. To be removed once Automake 1.9.x
2747 # dies out for good. For more background, see:
2748 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2749 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2750 mkdir_p='$(MKDIR_P)'
2752 # We need awk for the "check" target. The system "awk" is bad on
2754 # Always define AMTAR for backward compatibility. Yes, it's still used
2755 # in the wild :-( We should find a proper way to deprecate it ...
2759 # We'll loop over all known methods to create a tar archive until one works.
2760 _am_tools='gnutar pax cpio none'
2762 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2769 # POSIX will say in a future version that running "rm -f" with no argument
2770 # is OK; and we want to be able to make that assumption in our Makefile
2771 # recipes. So use an aggressive probe to check that the usage we want is
2772 # actually supported "in the wild" to an acceptable degree.
2773 # See automake bug#10828.
2774 # To make any issue more visible, cause the running configure to be aborted
2775 # by default if the 'rm' program in use doesn't match our expectations; the
2776 # user can still override this though.
2777 if rm -f && rm -fr && rm -rf; then : OK; else
2781 Your 'rm' program seems unable to run without file operands specified
2782 on the command line, even when the '-f' option is present. This is contrary
2783 to the behaviour of most rm programs out there, and not conforming with
2784 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2786 Please tell bug-automake@gnu.org about your system, including the value
2787 of your $PATH and any error possibly output before this message. This
2788 can help us improve future automake versions.
2791 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2792 echo 'Configuration will proceed anyway, since you have set the' >&2
2793 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2797 Aborting the configuration process, to ensure you take notice of the issue.
2799 You can download and install GNU coreutils to get an 'rm' implementation
2800 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2802 If you want to complete the configuration process using your problematic
2803 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2804 to "yes", and re-run configure.
2807 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2811 # Initialize libtool
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2815 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2820 macro_version='2.4.2'
2821 macro_revision='1.3337'
2835 ltmain="$ac_aux_dir/ltmain.sh"
2837 # Make sure we can run config.sub.
2838 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2839 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2842 $as_echo_n "checking build system type... " >&6; }
2843 if ${ac_cv_build+:} false; then :
2844 $as_echo_n "(cached) " >&6
2846 ac_build_alias=$build_alias
2847 test "x$ac_build_alias" = x &&
2848 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2849 test "x$ac_build_alias" = x &&
2850 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2851 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2852 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2856 $as_echo "$ac_cv_build" >&6; }
2857 case $ac_cv_build in
2859 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2862 ac_save_IFS=$IFS; IFS='-'
2868 # Remember, the first character of IFS is used to create $*,
2869 # except with old shells:
2872 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2876 $as_echo_n "checking host system type... " >&6; }
2877 if ${ac_cv_host+:} false; then :
2878 $as_echo_n "(cached) " >&6
2880 if test "x$host_alias" = x; then
2881 ac_cv_host=$ac_cv_build
2883 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2884 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2889 $as_echo "$ac_cv_host" >&6; }
2892 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2895 ac_save_IFS=$IFS; IFS='-'
2901 # Remember, the first character of IFS is used to create $*,
2902 # except with old shells:
2905 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2908 # Backslashify metacharacters that are still active within
2909 # double-quoted strings.
2910 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2912 # Same as above, but do not quote variable references.
2913 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2915 # Sed substitution to delay expansion of an escaped shell variable in a
2916 # double_quote_subst'ed string.
2917 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2919 # Sed substitution to delay expansion of an escaped single quote.
2920 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2922 # Sed substitution to avoid accidental globbing in evaled expressions
2923 no_glob_subst='s/\*/\\\*/g'
2925 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2926 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2927 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2930 $as_echo_n "checking how to print strings... " >&6; }
2931 # Test print first, because it will be a builtin if present.
2932 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2933 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2935 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2938 # Use this function as a fallback that always works.
2939 func_fallback_echo ()
2941 eval 'cat <<_LTECHO_EOF
2945 ECHO='func_fallback_echo'
2948 # func_echo_all arg...
2949 # Invoke $ECHO with all args, space-separated.
2956 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2957 $as_echo "printf" >&6; } ;;
2958 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2959 $as_echo "print -r" >&6; } ;;
2960 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2961 $as_echo "cat" >&6; } ;;
2977 DEPDIR="${am__leading_dot}deps"
2979 ac_config_commands="$ac_config_commands depfiles"
2982 am_make=${MAKE-make}
2983 cat > confinc << 'END'
2985 @echo this is the am__doit target
2988 # If we don't find an include directive, just comment out the code.
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2990 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2994 # First try GNU make style include.
2995 echo "include confinc" > confmf
2996 # Ignore all kinds of additional output from 'make'.
2997 case `$am_make -s -f confmf 2> /dev/null` in #(
2998 *the\ am__doit\ target*)
3004 # Now try BSD make style include.
3005 if test "$am__include" = "#"; then
3006 echo '.include "confinc"' > confmf
3007 case `$am_make -s -f confmf 2> /dev/null` in #(
3008 *the\ am__doit\ target*)
3009 am__include=.include
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3018 $as_echo "$_am_result" >&6; }
3019 rm -f confinc confmf
3021 # Check whether --enable-dependency-tracking was given.
3022 if test "${enable_dependency_tracking+set}" = set; then :
3023 enableval=$enable_dependency_tracking;
3026 if test "x$enable_dependency_tracking" != xno; then
3027 am_depcomp="$ac_aux_dir/depcomp"
3031 if test "x$enable_dependency_tracking" != xno; then
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3047 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if ${ac_cv_prog_CC+:} false; then :
3051 $as_echo_n "(cached) " >&6
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC="$CC" # Let the user override the test.
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 if test -n "$CC"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3076 $as_echo "$CC" >&6; }
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3084 if test -z "$ac_cv_prog_CC"; then
3086 # Extract the first word of "gcc", so it can be a program name with args.
3087 set dummy gcc; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3091 $as_echo_n "(cached) " >&6
3093 if test -n "$ac_ct_CC"; then
3094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103 ac_cv_prog_ac_ct_CC="gcc"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3114 if test -n "$ac_ct_CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3116 $as_echo "$ac_ct_CC" >&6; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3122 if test "x$ac_ct_CC" = x; then
3125 case $cross_compiling:$ac_tool_warned in
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3129 ac_tool_warned=yes ;;
3137 if test -z "$CC"; then
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}cc; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_CC+:} false; then :
3144 $as_echo_n "(cached) " >&6
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156 ac_cv_prog_CC="${ac_tool_prefix}cc"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 if test -n "$CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169 $as_echo "$CC" >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3178 if test -z "$CC"; then
3179 # Extract the first word of "cc", so it can be a program name with args.
3180 set dummy cc; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_CC+:} false; then :
3184 $as_echo_n "(cached) " >&6
3186 if test -n "$CC"; then
3187 ac_cv_prog_CC="$CC" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3198 ac_prog_rejected=yes
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 if test $ac_prog_rejected = yes; then
3210 # We found a bogon in the path, so make sure we never use it.
3211 set dummy $ac_cv_prog_CC
3213 if test $# != 0; then
3214 # We chose a different compiler from the bogus one.
3215 # However, it has the same basename, so the bogon will be chosen
3216 # first if we set CC to just the basename; use the full file name.
3218 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3224 if test -n "$CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226 $as_echo "$CC" >&6; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3234 if test -z "$CC"; then
3235 if test -n "$ac_tool_prefix"; then
3236 for ac_prog in cl.exe
3238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if ${ac_cv_prog_CC+:} false; then :
3243 $as_echo_n "(cached) " >&6
3245 if test -n "$CC"; then
3246 ac_cv_prog_CC="$CC" # Let the user override the test.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 if test -n "$CC"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3268 $as_echo "$CC" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3275 test -n "$CC" && break
3278 if test -z "$CC"; then
3280 for ac_prog in cl.exe
3282 # Extract the first word of "$ac_prog", so it can be a program name with args.
3283 set dummy $ac_prog; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3287 $as_echo_n "(cached) " >&6
3289 if test -n "$ac_ct_CC"; then
3290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 ac_cv_prog_ac_ct_CC="$ac_prog"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3310 if test -n "$ac_ct_CC"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3312 $as_echo "$ac_ct_CC" >&6; }
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3319 test -n "$ac_ct_CC" && break
3322 if test "x$ac_ct_CC" = x; then
3325 case $cross_compiling:$ac_tool_warned in
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3329 ac_tool_warned=yes ;;
3338 test -z "$CC" && { { $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 $? "no acceptable C compiler found in \$PATH
3341 See \`config.log' for more details" "$LINENO" 5; }
3343 # Provide some information about the compiler.
3344 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3347 for ac_option in --version -v -V -qversion; do
3348 { { ac_try="$ac_compiler $ac_option >&5"
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3357 if test -s conftest.err; then
3359 ... rest of stderr output deleted ...
3360 10q' conftest.err >conftest.er1
3361 cat conftest.er1 >&5
3363 rm -f conftest.er1 conftest.err
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3379 ac_clean_files_save=$ac_clean_files
3380 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3381 # Try to create an executable without -o first, disregard a.out.
3382 # It will help us diagnose broken compilers, and finding out an intuition
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3385 $as_echo_n "checking whether the C compiler works... " >&6; }
3386 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3388 # The possible output files:
3389 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3392 for ac_file in $ac_files
3395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3396 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3401 if { { ac_try="$ac_link_default"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_link_default") 2>&5
3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411 test $ac_status = 0; }; then :
3412 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3413 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3414 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3415 # so that the user can short-circuit this test for compilers unknown to
3417 for ac_file in $ac_files ''
3419 test -f "$ac_file" || continue
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3424 # We found the default executable, but exeext='' is most
3428 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3430 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3432 # We set ac_cv_exeext here because the later test for it is not
3433 # safe: cross compilers may not add the suffix if given an `-o'
3434 # argument, so we may need to know it at that point already.
3435 # Even if this section looks crufty: it has the advantage of
3442 test "$ac_cv_exeext" = no && ac_cv_exeext=
3447 if test -z "$ac_file"; then :
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3450 $as_echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error 77 "C compiler cannot create executables
3456 See \`config.log' for more details" "$LINENO" 5; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3462 $as_echo_n "checking for C compiler default output file name... " >&6; }
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3464 $as_echo "$ac_file" >&6; }
3465 ac_exeext=$ac_cv_exeext
3467 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3468 ac_clean_files=$ac_clean_files_save
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3470 $as_echo_n "checking for suffix of executables... " >&6; }
3471 if { { ac_try="$ac_link"
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_link") 2>&5
3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481 test $ac_status = 0; }; then :
3482 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3483 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3484 # work properly (i.e., refer to `conftest.exe'), while it won't with
3486 for ac_file in conftest.exe conftest conftest.*; do
3487 test -f "$ac_file" || continue
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3499 See \`config.log' for more details" "$LINENO" 5; }
3501 rm -f conftest conftest$ac_cv_exeext
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3503 $as_echo "$ac_cv_exeext" >&6; }
3505 rm -f conftest.$ac_ext
3506 EXEEXT=$ac_cv_exeext
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3514 FILE *f = fopen ("conftest.out", "w");
3515 return ferror (f) || fclose (f) != 0;
3521 ac_clean_files="$ac_clean_files conftest.out"
3522 # Check that the compiler produces executables we can run. If not, either
3523 # the compiler is broken, or we cross compile.
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3525 $as_echo_n "checking whether we are cross compiling... " >&6; }
3526 if test "$cross_compiling" != yes; then
3527 { { ac_try="$ac_link"
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 $as_echo "$ac_try_echo"; } >&5
3534 (eval "$ac_link") 2>&5
3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537 test $ac_status = 0; }
3538 if { ac_try='./conftest$ac_cv_exeext'
3539 { { case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_try") 2>&5
3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548 test $ac_status = 0; }; }; then
3551 if test "$cross_compiling" = maybe; then
3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 as_fn_error $? "cannot run C compiled programs.
3557 If you meant to cross compile, use \`--host'.
3558 See \`config.log' for more details" "$LINENO" 5; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3563 $as_echo "$cross_compiling" >&6; }
3565 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3566 ac_clean_files=$ac_clean_files_save
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3568 $as_echo_n "checking for suffix of object files... " >&6; }
3569 if ${ac_cv_objext+:} false; then :
3570 $as_echo_n "(cached) " >&6
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3583 rm -f conftest.o conftest.obj
3584 if { { ac_try="$ac_compile"
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_compile") 2>&5
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }; then :
3595 for ac_file in conftest.o conftest.obj conftest.*; do
3596 test -f "$ac_file" || continue;
3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3604 $as_echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error $? "cannot compute suffix of object files: cannot compile
3610 See \`config.log' for more details" "$LINENO" 5; }
3612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3615 $as_echo "$ac_cv_objext" >&6; }
3616 OBJEXT=$ac_cv_objext
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3620 if ${ac_cv_c_compiler_gnu+:} false; then :
3621 $as_echo_n "(cached) " >&6
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3637 if ac_fn_c_try_compile "$LINENO"; then :
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3647 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3648 if test $ac_compiler_gnu = yes; then
3653 ac_test_CFLAGS=${CFLAGS+set}
3654 ac_save_CFLAGS=$CFLAGS
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3656 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3657 if ${ac_cv_prog_cc_g+:} false; then :
3658 $as_echo_n "(cached) " >&6
3660 ac_save_c_werror_flag=$ac_c_werror_flag
3661 ac_c_werror_flag=yes
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3675 if ac_fn_c_try_compile "$LINENO"; then :
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3690 if ac_fn_c_try_compile "$LINENO"; then :
3693 ac_c_werror_flag=$ac_save_c_werror_flag
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3706 if ac_fn_c_try_compile "$LINENO"; then :
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 ac_c_werror_flag=$ac_save_c_werror_flag
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3717 $as_echo "$ac_cv_prog_cc_g" >&6; }
3718 if test "$ac_test_CFLAGS" = set; then
3719 CFLAGS=$ac_save_CFLAGS
3720 elif test $ac_cv_prog_cc_g = yes; then
3721 if test "$GCC" = yes; then
3727 if test "$GCC" = yes; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3735 if ${ac_cv_prog_cc_c89+:} false; then :
3736 $as_echo_n "(cached) " >&6
3738 ac_cv_prog_cc_c89=no
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3744 #include <sys/types.h>
3745 #include <sys/stat.h>
3746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3747 struct buf { int x; };
3748 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3749 static char *e (p, i)
3755 static char *f (char * (*g) (char **, int), char **p, ...)
3760 s = g (p, va_arg (v,int));
3765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3766 function prototypes and stuff, but not '\xHH' hex character constants.
3767 These don't provoke an error unfortunately, instead are silently treated
3768 as 'x'. The following induces an error, until -std is added to get
3769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3770 array size at least. It's necessary to write '\x00'==0 to get something
3771 that's true only with -std. */
3772 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3774 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3775 inside strings and character constants. */
3777 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3779 int test (int i, double x);
3780 struct s1 {int (*f) (int a);};
3781 struct s2 {int (*f) (double a);};
3782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3788 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3793 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3794 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3796 CC="$ac_save_CC $ac_arg"
3797 if ac_fn_c_try_compile "$LINENO"; then :
3798 ac_cv_prog_cc_c89=$ac_arg
3800 rm -f core conftest.err conftest.$ac_objext
3801 test "x$ac_cv_prog_cc_c89" != "xno" && break
3803 rm -f conftest.$ac_ext
3808 case "x$ac_cv_prog_cc_c89" in
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3811 $as_echo "none needed" >&6; } ;;
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3814 $as_echo "unsupported" >&6; } ;;
3816 CC="$CC $ac_cv_prog_cc_c89"
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3818 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3820 if test "x$ac_cv_prog_cc_c89" != xno; then :
3825 ac_cpp='$CPP $CPPFLAGS'
3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3836 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3837 if ${am_cv_prog_cc_c_o+:} false; then :
3838 $as_echo_n "(cached) " >&6
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3851 # Make sure it works both with $CC and with simple cc.
3852 # Following AC_PROG_CC_C_O, we do the test twice because some
3853 # compilers refuse to overwrite an existing .o file with -o,
3854 # though they will create one.
3855 am_cv_prog_cc_c_o=yes
3857 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3858 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } \
3862 && test -f conftest2.$ac_objext; then
3865 am_cv_prog_cc_c_o=no
3869 rm -f core conftest*
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3873 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3874 if test "$am_cv_prog_cc_c_o" != yes; then
3875 # Losing compiler, so override with the script.
3876 # FIXME: It is wrong to rewrite CC.
3877 # But if we don't then we get into trouble of one sort or another.
3878 # A longer-term fix would be to have automake use am__CC in this case,
3879 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3880 CC="$am_aux_dir/compile $CC"
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889 depcc="$CC" am_compiler_list=
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3892 $as_echo_n "checking dependency style of $depcc... " >&6; }
3893 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3894 $as_echo_n "(cached) " >&6
3896 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3897 # We make a subdir and do the tests there. Otherwise we can end up
3898 # making bogus files that we don't know about and never remove. For
3899 # instance it was reported that on HP-UX the gcc test will end up
3900 # making a dummy file named 'D' -- because '-MD' means "put the output
3904 # Copy depcomp to subdir because otherwise we won't find it if we're
3905 # using a relative directory.
3906 cp "$am_depcomp" conftest.dir
3908 # We will build objects and dependencies in a subdirectory because
3909 # it helps to detect inapplicable dependency modes. For instance
3910 # both Tru64's cc and ICC support -MD to output dependencies as a
3911 # side effect of compilation, but ICC will put the dependencies in
3912 # the current directory while Tru64 will put them in the object
3916 am_cv_CC_dependencies_compiler_type=none
3917 if test "$am_compiler_list" = ""; then
3918 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3921 case " $depcc " in #(
3922 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3925 for depmode in $am_compiler_list; do
3926 # Setup a source with many dependencies, because some compilers
3927 # like to wrap large dependency lists on column 80 (with \), and
3928 # we should not choose a depcomp mode which is confused by this.
3930 # We need to recreate these files for each test, as the compiler may
3931 # overwrite some of them when testing with obscure command lines.
3932 # This happens at least with the AIX C compiler.
3934 for i in 1 2 3 4 5 6; do
3935 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3936 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3937 # Solaris 10 /bin/sh.
3938 echo '/* dummy */' > sub/conftst$i.h
3940 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3942 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3943 # mode. It turns out that the SunPro C++ compiler does not properly
3944 # handle '-M -o', and we need to detect this. Also, some Intel
3945 # versions had trouble with output in subdirs.
3946 am__obj=sub/conftest.${OBJEXT-o}
3947 am__minus_obj="-o $am__obj"
3950 # This depmode causes a compiler race in universal mode.
3951 test "$am__universal" = false || continue
3954 # After this tag, mechanisms are not by side-effect, so they'll
3955 # only be used when explicitly requested.
3956 if test "x$enable_dependency_tracking" = xyes; then
3962 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3963 # This compiler won't grok '-c -o', but also, the minuso test has
3964 # not run yet. These depmodes are late enough in the game, and
3965 # so weak that their functioning should not be impacted.
3966 am__obj=conftest.${OBJEXT-o}
3971 if depmode=$depmode \
3972 source=sub/conftest.c object=$am__obj \
3973 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3974 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3975 >/dev/null 2>conftest.err &&
3976 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3977 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3978 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3979 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3980 # icc doesn't choke on unknown options, it will just issue warnings
3981 # or remarks (even with -Werror). So we grep stderr for any message
3982 # that says an option was ignored or not supported.
3983 # When given -MP, icc 7.0 and 7.1 complain thusly:
3984 # icc: Command line warning: ignoring option '-M'; no argument required
3985 # The diagnosis changed in icc 8.0:
3986 # icc: Command line remark: option '-MP' not supported
3987 if (grep 'ignoring option' conftest.err ||
3988 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3989 am_cv_CC_dependencies_compiler_type=$depmode
3998 am_cv_CC_dependencies_compiler_type=none
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4003 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4004 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4007 test "x$enable_dependency_tracking" != xno \
4008 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4010 am__fastdepCC_FALSE='#'
4012 am__fastdepCC_TRUE='#'
4013 am__fastdepCC_FALSE=
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4018 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4019 if ${ac_cv_path_SED+:} false; then :
4020 $as_echo_n "(cached) " >&6
4022 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4023 for ac_i in 1 2 3 4 5 6 7; do
4024 ac_script="$ac_script$as_nl$ac_script"
4026 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4027 { ac_script=; unset ac_script;}
4028 if test -z "$SED"; then
4029 ac_path_SED_found=false
4030 # Loop through the user's path and test for each of PROGNAME-LIST
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 test -z "$as_dir" && as_dir=.
4036 for ac_prog in sed gsed; do
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4039 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4040 # Check for GNU ac_path_SED and select it if it is found.
4041 # Check for GNU $ac_path_SED
4042 case `"$ac_path_SED" --version 2>&1` in
4044 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4047 $as_echo_n 0123456789 >"conftest.in"
4050 cat "conftest.in" "conftest.in" >"conftest.tmp"
4051 mv "conftest.tmp" "conftest.in"
4052 cp "conftest.in" "conftest.nl"
4053 $as_echo '' >> "conftest.nl"
4054 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4056 as_fn_arith $ac_count + 1 && ac_count=$as_val
4057 if test $ac_count -gt ${ac_path_SED_max-0}; then
4058 # Best one so far, save it but keep looking for a better one
4059 ac_cv_path_SED="$ac_path_SED"
4060 ac_path_SED_max=$ac_count
4062 # 10*(2^10) chars as input seems more than enough
4063 test $ac_count -gt 10 && break
4065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068 $ac_path_SED_found && break 3
4073 if test -z "$ac_cv_path_SED"; then
4074 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4082 $as_echo "$ac_cv_path_SED" >&6; }
4083 SED="$ac_cv_path_SED"
4086 test -z "$SED" && SED=sed
4087 Xsed="$SED -e 1s/^X//"
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4100 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4101 if ${ac_cv_path_GREP+:} false; then :
4102 $as_echo_n "(cached) " >&6
4104 if test -z "$GREP"; then
4105 ac_path_GREP_found=false
4106 # Loop through the user's path and test for each of PROGNAME-LIST
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4111 test -z "$as_dir" && as_dir=.
4112 for ac_prog in grep ggrep; do
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4115 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4116 # Check for GNU ac_path_GREP and select it if it is found.
4117 # Check for GNU $ac_path_GREP
4118 case `"$ac_path_GREP" --version 2>&1` in
4120 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4123 $as_echo_n 0123456789 >"conftest.in"
4126 cat "conftest.in" "conftest.in" >"conftest.tmp"
4127 mv "conftest.tmp" "conftest.in"
4128 cp "conftest.in" "conftest.nl"
4129 $as_echo 'GREP' >> "conftest.nl"
4130 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4132 as_fn_arith $ac_count + 1 && ac_count=$as_val
4133 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4134 # Best one so far, save it but keep looking for a better one
4135 ac_cv_path_GREP="$ac_path_GREP"
4136 ac_path_GREP_max=$ac_count
4138 # 10*(2^10) chars as input seems more than enough
4139 test $ac_count -gt 10 && break
4141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4144 $ac_path_GREP_found && break 3
4149 if test -z "$ac_cv_path_GREP"; then
4150 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4153 ac_cv_path_GREP=$GREP
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4158 $as_echo "$ac_cv_path_GREP" >&6; }
4159 GREP="$ac_cv_path_GREP"
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4163 $as_echo_n "checking for egrep... " >&6; }
4164 if ${ac_cv_path_EGREP+:} false; then :
4165 $as_echo_n "(cached) " >&6
4167 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4168 then ac_cv_path_EGREP="$GREP -E"
4170 if test -z "$EGREP"; then
4171 ac_path_EGREP_found=false
4172 # Loop through the user's path and test for each of PROGNAME-LIST
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4177 test -z "$as_dir" && as_dir=.
4178 for ac_prog in egrep; do
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4181 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4182 # Check for GNU ac_path_EGREP and select it if it is found.
4183 # Check for GNU $ac_path_EGREP
4184 case `"$ac_path_EGREP" --version 2>&1` in
4186 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4189 $as_echo_n 0123456789 >"conftest.in"
4192 cat "conftest.in" "conftest.in" >"conftest.tmp"
4193 mv "conftest.tmp" "conftest.in"
4194 cp "conftest.in" "conftest.nl"
4195 $as_echo 'EGREP' >> "conftest.nl"
4196 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4198 as_fn_arith $ac_count + 1 && ac_count=$as_val
4199 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4200 # Best one so far, save it but keep looking for a better one
4201 ac_cv_path_EGREP="$ac_path_EGREP"
4202 ac_path_EGREP_max=$ac_count
4204 # 10*(2^10) chars as input seems more than enough
4205 test $ac_count -gt 10 && break
4207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4210 $ac_path_EGREP_found && break 3
4215 if test -z "$ac_cv_path_EGREP"; then
4216 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4219 ac_cv_path_EGREP=$EGREP
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4225 $as_echo "$ac_cv_path_EGREP" >&6; }
4226 EGREP="$ac_cv_path_EGREP"
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4230 $as_echo_n "checking for fgrep... " >&6; }
4231 if ${ac_cv_path_FGREP+:} false; then :
4232 $as_echo_n "(cached) " >&6
4234 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4235 then ac_cv_path_FGREP="$GREP -F"
4237 if test -z "$FGREP"; then
4238 ac_path_FGREP_found=false
4239 # Loop through the user's path and test for each of PROGNAME-LIST
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4244 test -z "$as_dir" && as_dir=.
4245 for ac_prog in fgrep; do
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4248 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4249 # Check for GNU ac_path_FGREP and select it if it is found.
4250 # Check for GNU $ac_path_FGREP
4251 case `"$ac_path_FGREP" --version 2>&1` in
4253 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4256 $as_echo_n 0123456789 >"conftest.in"
4259 cat "conftest.in" "conftest.in" >"conftest.tmp"
4260 mv "conftest.tmp" "conftest.in"
4261 cp "conftest.in" "conftest.nl"
4262 $as_echo 'FGREP' >> "conftest.nl"
4263 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4265 as_fn_arith $ac_count + 1 && ac_count=$as_val
4266 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4267 # Best one so far, save it but keep looking for a better one
4268 ac_cv_path_FGREP="$ac_path_FGREP"
4269 ac_path_FGREP_max=$ac_count
4271 # 10*(2^10) chars as input seems more than enough
4272 test $ac_count -gt 10 && break
4274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4277 $ac_path_FGREP_found && break 3
4282 if test -z "$ac_cv_path_FGREP"; then
4283 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4286 ac_cv_path_FGREP=$FGREP
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4292 $as_echo "$ac_cv_path_FGREP" >&6; }
4293 FGREP="$ac_cv_path_FGREP"
4296 test -z "$GREP" && GREP=grep
4316 # Check whether --with-gnu-ld was given.
4317 if test "${with_gnu_ld+set}" = set; then :
4318 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4324 if test "$GCC" = yes; then
4325 # Check if gcc -print-prog-name=ld gives a path.
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4327 $as_echo_n "checking for ld used by $CC... " >&6; }
4330 # gcc leaves a trailing carriage return which upsets mingw
4331 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4333 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4336 # Accept absolute paths.
4338 re_direlt='/[^/][^/]*/\.\./'
4339 # Canonicalize the pathname of ld
4340 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4341 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4342 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4344 test -z "$LD" && LD="$ac_prog"
4347 # If it fails, then pretend we aren't using GCC.
4351 # If it is relative, then search for the first ld in PATH.
4355 elif test "$with_gnu_ld" = yes; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4357 $as_echo_n "checking for GNU ld... " >&6; }
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4360 $as_echo_n "checking for non-GNU ld... " >&6; }
4362 if ${lt_cv_path_LD+:} false; then :
4363 $as_echo_n "(cached) " >&6
4365 if test -z "$LD"; then
4366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4367 for ac_dir in $PATH; do
4369 test -z "$ac_dir" && ac_dir=.
4370 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4371 lt_cv_path_LD="$ac_dir/$ac_prog"
4372 # Check to see if the program is GNU ld. I'd rather use --version,
4373 # but apparently some variants of GNU ld only accept -v.
4374 # Break only if it was the GNU/non-GNU ld that we prefer.
4375 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4376 *GNU* | *'with BFD'*)
4377 test "$with_gnu_ld" != no && break
4380 test "$with_gnu_ld" != yes && break
4387 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4392 if test -n "$LD"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4394 $as_echo "$LD" >&6; }
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 $as_echo "no" >&6; }
4399 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4401 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4402 if ${lt_cv_prog_gnu_ld+:} false; then :
4403 $as_echo_n "(cached) " >&6
4405 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4406 case `$LD -v 2>&1 </dev/null` in
4407 *GNU* | *'with BFD'*)
4408 lt_cv_prog_gnu_ld=yes
4411 lt_cv_prog_gnu_ld=no
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4416 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4417 with_gnu_ld=$lt_cv_prog_gnu_ld
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4428 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4429 if ${lt_cv_path_NM+:} false; then :
4430 $as_echo_n "(cached) " >&6
4432 if test -n "$NM"; then
4433 # Let the user override the test.
4436 lt_nm_to_check="${ac_tool_prefix}nm"
4437 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4438 lt_nm_to_check="$lt_nm_to_check nm"
4440 for lt_tmp_nm in $lt_nm_to_check; do
4441 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4442 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4444 test -z "$ac_dir" && ac_dir=.
4445 tmp_nm="$ac_dir/$lt_tmp_nm"
4446 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4447 # Check to see if the nm accepts a BSD-compat flag.
4448 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4449 # nm: unknown option "B" ignored
4450 # Tru64's nm complains that /dev/null is an invalid object file
4451 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4452 */dev/null* | *'Invalid file or object type'*)
4453 lt_cv_path_NM="$tmp_nm -B"
4457 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4459 lt_cv_path_NM="$tmp_nm -p"
4463 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4464 continue # so that we can try to find one that supports BSD flags
4473 : ${lt_cv_path_NM=no}
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4477 $as_echo "$lt_cv_path_NM" >&6; }
4478 if test "$lt_cv_path_NM" != "no"; then
4481 # Didn't find any BSD compatible name lister, look for dumpbin.
4482 if test -n "$DUMPBIN"; then :
4483 # Let the user override the test.
4485 if test -n "$ac_tool_prefix"; then
4486 for ac_prog in dumpbin "link -dump"
4488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if ${ac_cv_prog_DUMPBIN+:} false; then :
4493 $as_echo_n "(cached) " >&6
4495 if test -n "$DUMPBIN"; then
4496 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 DUMPBIN=$ac_cv_prog_DUMPBIN
4516 if test -n "$DUMPBIN"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4518 $as_echo "$DUMPBIN" >&6; }
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4525 test -n "$DUMPBIN" && break
4528 if test -z "$DUMPBIN"; then
4529 ac_ct_DUMPBIN=$DUMPBIN
4530 for ac_prog in dumpbin "link -dump"
4532 # Extract the first word of "$ac_prog", so it can be a program name with args.
4533 set dummy $ac_prog; ac_word=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4537 $as_echo_n "(cached) " >&6
4539 if test -n "$ac_ct_DUMPBIN"; then
4540 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4549 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4560 if test -n "$ac_ct_DUMPBIN"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4562 $as_echo "$ac_ct_DUMPBIN" >&6; }
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4569 test -n "$ac_ct_DUMPBIN" && break
4572 if test "x$ac_ct_DUMPBIN" = x; then
4575 case $cross_compiling:$ac_tool_warned in
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4579 ac_tool_warned=yes ;;
4581 DUMPBIN=$ac_ct_DUMPBIN
4585 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4587 DUMPBIN="$DUMPBIN -symbols"
4595 if test "$DUMPBIN" != ":"; then
4599 test -z "$NM" && NM=nm
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4607 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4608 if ${lt_cv_nm_interface+:} false; then :
4609 $as_echo_n "(cached) " >&6
4611 lt_cv_nm_interface="BSD nm"
4612 echo "int some_variable = 0;" > conftest.$ac_ext
4613 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4614 (eval "$ac_compile" 2>conftest.err)
4615 cat conftest.err >&5
4616 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4617 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4618 cat conftest.err >&5
4619 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4620 cat conftest.out >&5
4621 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4622 lt_cv_nm_interface="MS dumpbin"
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4627 $as_echo "$lt_cv_nm_interface" >&6; }
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4630 $as_echo_n "checking whether ln -s works... " >&6; }
4632 if test "$LN_S" = "ln -s"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4634 $as_echo "yes" >&6; }
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4637 $as_echo "no, using $LN_S" >&6; }
4640 # find the maximum length of command line arguments
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4642 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4643 if ${lt_cv_sys_max_cmd_len+:} false; then :
4644 $as_echo_n "(cached) " >&6
4651 # On DJGPP, this test can blow up pretty badly due to problems in libc
4652 # (any single argument exceeding 2000 bytes causes a buffer overrun
4653 # during glob expansion). Even if it were fixed, the result of this
4654 # check would be larger than it should be.
4655 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4659 # Under GNU Hurd, this test is not required because there is
4660 # no limit to the length of command line arguments.
4661 # Libtool will interpret -1 as no limit whatsoever
4662 lt_cv_sys_max_cmd_len=-1;
4665 cygwin* | mingw* | cegcc*)
4666 # On Win9x/ME, this test blows up -- it succeeds, but takes
4667 # about 5 minutes as the teststring grows exponentially.
4668 # Worse, since 9x/ME are not pre-emptively multitasking,
4669 # you end up with a "frozen" computer, even though with patience
4670 # the test eventually succeeds (with a max line length of 256k).
4671 # Instead, let's just punt: use the minimum linelength reported by
4672 # all of the supported platforms: 8192 (on NT/2K/XP).
4673 lt_cv_sys_max_cmd_len=8192;
4677 # On MiNT this can take a long time and run out of memory.
4678 lt_cv_sys_max_cmd_len=8192;
4682 # On AmigaOS with pdksh, this test takes hours, literally.
4683 # So we just punt and use a minimum line length of 8192.
4684 lt_cv_sys_max_cmd_len=8192;
4687 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4688 # This has been around since 386BSD, at least. Likely further.
4689 if test -x /sbin/sysctl; then
4690 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4691 elif test -x /usr/sbin/sysctl; then
4692 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4694 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4696 # And add a safety zone
4697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4702 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4703 lt_cv_sys_max_cmd_len=196608
4707 # The test takes a long time on OS/2.
4708 lt_cv_sys_max_cmd_len=8192
4712 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4713 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4714 # nice to cause kernel panics so lets avoid the loop below.
4715 # First set a reasonable default.
4716 lt_cv_sys_max_cmd_len=16384
4718 if test -x /sbin/sysconfig; then
4719 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4720 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4725 lt_cv_sys_max_cmd_len=102400
4727 sysv5* | sco5v6* | sysv4.2uw2*)
4728 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4729 if test -n "$kargmax"; then
4730 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4732 lt_cv_sys_max_cmd_len=32768
4736 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4737 if test -n "$lt_cv_sys_max_cmd_len"; then
4738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4741 # Make teststring a little bigger before we do anything with it.
4742 # a 1K string should be a reasonable start.
4743 for i in 1 2 3 4 5 6 7 8 ; do
4744 teststring=$teststring$teststring
4746 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4747 # If test is not a shell built-in, we'll probably end up computing a
4748 # maximum length that is only half of the actual maximum length, but
4750 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4751 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4752 test $i != 17 # 1/2 MB should be enough
4755 teststring=$teststring$teststring
4757 # Only check the string length outside the loop.
4758 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4760 # Add a significant safety factor because C++ compilers can tack on
4761 # massive amounts of additional arguments before passing them to the
4762 # linker. It appears as though 1/2 is a usable value.
4763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4770 if test -n $lt_cv_sys_max_cmd_len ; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4772 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4775 $as_echo "none" >&6; }
4777 max_cmd_len=$lt_cv_sys_max_cmd_len
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4789 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4790 # Try some XSI features
4793 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4795 && eval 'test $(( 1 + 1 )) -eq 2 \
4796 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4799 $as_echo "$xsi_shell" >&6; }
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4803 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4805 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4807 && lt_shell_append=yes
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4809 $as_echo "$lt_shell_append" >&6; }
4812 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4822 # test EBCDIC or ASCII
4823 case `echo X|tr X '\101'` in
4824 A) # ASCII based system
4825 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4826 lt_SP2NL='tr \040 \012'
4827 lt_NL2SP='tr \015\012 \040\040'
4829 *) # EBCDIC based system
4830 lt_SP2NL='tr \100 \n'
4831 lt_NL2SP='tr \r\n \100\100'
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4844 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4845 if ${lt_cv_to_host_file_cmd+:} false; then :
4846 $as_echo_n "(cached) " >&6
4851 *-*-mingw* ) # actually msys
4852 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4855 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4857 * ) # otherwise, assume *nix
4858 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4864 *-*-mingw* ) # actually msys
4865 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4868 lt_cv_to_host_file_cmd=func_convert_file_noop
4870 * ) # otherwise, assume *nix
4871 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4875 * ) # unhandled hosts (and "normal" native builds)
4876 lt_cv_to_host_file_cmd=func_convert_file_noop
4882 to_host_file_cmd=$lt_cv_to_host_file_cmd
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4884 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4891 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4892 if ${lt_cv_to_tool_file_cmd+:} false; then :
4893 $as_echo_n "(cached) " >&6
4895 #assume ordinary cross tools, or native build.
4896 lt_cv_to_tool_file_cmd=func_convert_file_noop
4900 *-*-mingw* ) # actually msys
4901 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4909 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4911 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4918 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4919 if ${lt_cv_ld_reload_flag+:} false; then :
4920 $as_echo_n "(cached) " >&6
4922 lt_cv_ld_reload_flag='-r'
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4925 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4926 reload_flag=$lt_cv_ld_reload_flag
4927 case $reload_flag in
4929 *) reload_flag=" $reload_flag" ;;
4931 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4933 cygwin* | mingw* | pw32* | cegcc*)
4934 if test "$GCC" != yes; then
4939 if test "$GCC" = yes; then
4940 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4942 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4955 if test -n "$ac_tool_prefix"; then
4956 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4957 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_OBJDUMP+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 if test -n "$OBJDUMP"; then
4964 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 OBJDUMP=$ac_cv_prog_OBJDUMP
4984 if test -n "$OBJDUMP"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4986 $as_echo "$OBJDUMP" >&6; }
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4994 if test -z "$ac_cv_prog_OBJDUMP"; then
4995 ac_ct_OBJDUMP=$OBJDUMP
4996 # Extract the first word of "objdump", so it can be a program name with args.
4997 set dummy objdump; ac_word=$2
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999 $as_echo_n "checking for $ac_word... " >&6; }
5000 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5001 $as_echo_n "(cached) " >&6
5003 if test -n "$ac_ct_OBJDUMP"; then
5004 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5024 if test -n "$ac_ct_OBJDUMP"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5026 $as_echo "$ac_ct_OBJDUMP" >&6; }
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5032 if test "x$ac_ct_OBJDUMP" = x; then
5035 case $cross_compiling:$ac_tool_warned in
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5039 ac_tool_warned=yes ;;
5041 OBJDUMP=$ac_ct_OBJDUMP
5044 OBJDUMP="$ac_cv_prog_OBJDUMP"
5047 test -z "$OBJDUMP" && OBJDUMP=objdump
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5058 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5059 if ${lt_cv_deplibs_check_method+:} false; then :
5060 $as_echo_n "(cached) " >&6
5062 lt_cv_file_magic_cmd='$MAGIC_CMD'
5063 lt_cv_file_magic_test_file=
5064 lt_cv_deplibs_check_method='unknown'
5065 # Need to set the preceding variable on all platforms that support
5066 # interlibrary dependencies.
5067 # 'none' -- dependencies not supported.
5068 # `unknown' -- same as none, but documents that we really don't know.
5069 # 'pass_all' -- all dependencies passed with no checks.
5070 # 'test_compile' -- check by making test program.
5071 # 'file_magic [[regex]]' -- check by looking for files in library path
5072 # which responds to the $file_magic_cmd with a given extended regex.
5073 # If you have `file' or equivalent on your system and you're not sure
5074 # whether `pass_all' will *always* work, you probably want this one.
5078 lt_cv_deplibs_check_method=pass_all
5082 lt_cv_deplibs_check_method=pass_all
5086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5087 lt_cv_file_magic_cmd='/usr/bin/file -L'
5088 lt_cv_file_magic_test_file=/shlib/libc.so
5092 # func_win32_libid is a shell function defined in ltmain.sh
5093 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5094 lt_cv_file_magic_cmd='func_win32_libid'
5098 # Base MSYS/MinGW do not provide the 'file' command needed by
5099 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5100 # unless we find 'file', for example because we are cross-compiling.
5101 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5102 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5103 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5104 lt_cv_file_magic_cmd='func_win32_libid'
5106 # Keep this pattern in sync with the one in func_win32_libid.
5107 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5108 lt_cv_file_magic_cmd='$OBJDUMP -f'
5113 # use the weaker test based on 'objdump'. See mingw*.
5114 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5115 lt_cv_file_magic_cmd='$OBJDUMP -f'
5118 darwin* | rhapsody*)
5119 lt_cv_deplibs_check_method=pass_all
5122 freebsd* | dragonfly*)
5123 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5126 # Not sure whether the presence of OpenBSD here was a mistake.
5127 # Let's accept both of them until this is cleared up.
5128 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5129 lt_cv_file_magic_cmd=/usr/bin/file
5130 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5134 lt_cv_deplibs_check_method=pass_all
5139 lt_cv_deplibs_check_method=pass_all
5143 lt_cv_deplibs_check_method=pass_all
5146 hpux10.20* | hpux11*)
5147 lt_cv_file_magic_cmd=/usr/bin/file
5150 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5151 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5154 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]'
5155 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5158 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5159 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5165 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5169 irix5* | irix6* | nonstopux*)
5171 *-32|*"-32 ") libmagic=32-bit;;
5172 *-n32|*"-n32 ") libmagic=N32;;
5173 *-64|*"-64 ") libmagic=64-bit;;
5174 *) libmagic=never-match;;
5176 lt_cv_deplibs_check_method=pass_all
5179 # This must be glibc/ELF.
5180 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5181 lt_cv_deplibs_check_method=pass_all
5185 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5193 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5194 lt_cv_file_magic_cmd=/usr/bin/file
5195 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5199 lt_cv_deplibs_check_method=pass_all
5203 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5210 osf3* | osf4* | osf5*)
5211 lt_cv_deplibs_check_method=pass_all
5215 lt_cv_deplibs_check_method=pass_all
5219 lt_cv_deplibs_check_method=pass_all
5222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5223 lt_cv_deplibs_check_method=pass_all
5227 case $host_vendor in
5229 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]'
5230 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5233 lt_cv_deplibs_check_method=pass_all
5236 lt_cv_file_magic_cmd='/bin/file'
5237 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5240 lt_cv_file_magic_cmd='/bin/file'
5241 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5242 lt_cv_file_magic_test_file=/lib/libc.so
5245 lt_cv_deplibs_check_method=pass_all
5248 lt_cv_deplibs_check_method=pass_all
5254 lt_cv_deplibs_check_method=pass_all
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5260 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5264 if test "$build" = "$host"; then
5267 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5270 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5276 file_magic_cmd=$lt_cv_file_magic_cmd
5277 deplibs_check_method=$lt_cv_deplibs_check_method
5278 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5301 if test -n "$ac_tool_prefix"; then
5302 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5303 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if ${ac_cv_prog_DLLTOOL+:} false; then :
5307 $as_echo_n "(cached) " >&6
5309 if test -n "$DLLTOOL"; then
5310 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 DLLTOOL=$ac_cv_prog_DLLTOOL
5330 if test -n "$DLLTOOL"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5332 $as_echo "$DLLTOOL" >&6; }
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5340 if test -z "$ac_cv_prog_DLLTOOL"; then
5341 ac_ct_DLLTOOL=$DLLTOOL
5342 # Extract the first word of "dlltool", so it can be a program name with args.
5343 set dummy dlltool; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5347 $as_echo_n "(cached) " >&6
5349 if test -n "$ac_ct_DLLTOOL"; then
5350 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5370 if test -n "$ac_ct_DLLTOOL"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5372 $as_echo "$ac_ct_DLLTOOL" >&6; }
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5378 if test "x$ac_ct_DLLTOOL" = x; then
5381 case $cross_compiling:$ac_tool_warned in
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5385 ac_tool_warned=yes ;;
5387 DLLTOOL=$ac_ct_DLLTOOL
5390 DLLTOOL="$ac_cv_prog_DLLTOOL"
5393 test -z "$DLLTOOL" && DLLTOOL=dlltool
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5405 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5406 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5407 $as_echo_n "(cached) " >&6
5409 lt_cv_sharedlib_from_linklib_cmd='unknown'
5412 cygwin* | mingw* | pw32* | cegcc*)
5413 # two different shell functions defined in ltmain.sh
5414 # decide which to use based on capabilities of $DLLTOOL
5415 case `$DLLTOOL --help 2>&1` in
5416 *--identify-strict*)
5417 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5420 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5425 # fallback: assume linklib IS sharedlib
5426 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5432 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5433 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5434 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5443 if test -n "$ac_tool_prefix"; then
5446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_prog_AR+:} false; then :
5451 $as_echo_n "(cached) " >&6
5453 if test -n "$AR"; then
5454 ac_cv_prog_AR="$AR" # Let the user override the test.
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 if test -n "$AR"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5476 $as_echo "$AR" >&6; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5483 test -n "$AR" && break
5486 if test -z "$AR"; then
5490 # Extract the first word of "$ac_prog", so it can be a program name with args.
5491 set dummy $ac_prog; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5495 $as_echo_n "(cached) " >&6
5497 if test -n "$ac_ct_AR"; then
5498 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_ac_ct_AR="$ac_prog"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5518 if test -n "$ac_ct_AR"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5520 $as_echo "$ac_ct_AR" >&6; }
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5527 test -n "$ac_ct_AR" && break
5530 if test "x$ac_ct_AR" = x; then
5533 case $cross_compiling:$ac_tool_warned in
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5537 ac_tool_warned=yes ;;
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5557 $as_echo_n "checking for archiver @FILE support... " >&6; }
5558 if ${lt_cv_ar_at_file+:} false; then :
5559 $as_echo_n "(cached) " >&6
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574 echo conftest.$ac_objext > conftest.lst
5575 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5577 (eval $lt_ar_try) 2>&5
5579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5580 test $ac_status = 0; }
5581 if test "$ac_status" -eq 0; then
5582 # Ensure the archiver fails upon bogus file names.
5583 rm -f conftest.$ac_objext libconftest.a
5584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5585 (eval $lt_ar_try) 2>&5
5587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5588 test $ac_status = 0; }
5589 if test "$ac_status" -ne 0; then
5593 rm -f conftest.* libconftest.a
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5600 $as_echo "$lt_cv_ar_at_file" >&6; }
5602 if test "x$lt_cv_ar_at_file" = xno; then
5605 archiver_list_spec=$lt_cv_ar_at_file
5614 if test -n "$ac_tool_prefix"; then
5615 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5616 set dummy ${ac_tool_prefix}strip; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_prog_STRIP+:} false; then :
5620 $as_echo_n "(cached) " >&6
5622 if test -n "$STRIP"; then
5623 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 STRIP=$ac_cv_prog_STRIP
5643 if test -n "$STRIP"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5645 $as_echo "$STRIP" >&6; }
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5653 if test -z "$ac_cv_prog_STRIP"; then
5655 # Extract the first word of "strip", so it can be a program name with args.
5656 set dummy strip; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5660 $as_echo_n "(cached) " >&6
5662 if test -n "$ac_ct_STRIP"; then
5663 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 test -z "$as_dir" && as_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5672 ac_cv_prog_ac_ct_STRIP="strip"
5673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5683 if test -n "$ac_ct_STRIP"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5685 $as_echo "$ac_ct_STRIP" >&6; }
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688 $as_echo "no" >&6; }
5691 if test "x$ac_ct_STRIP" = x; then
5694 case $cross_compiling:$ac_tool_warned in
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5698 ac_tool_warned=yes ;;
5703 STRIP="$ac_cv_prog_STRIP"
5706 test -z "$STRIP" && STRIP=:
5713 if test -n "$ac_tool_prefix"; then
5714 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5715 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_RANLIB+:} false; then :
5719 $as_echo_n "(cached) " >&6
5721 if test -n "$RANLIB"; then
5722 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5731 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 RANLIB=$ac_cv_prog_RANLIB
5742 if test -n "$RANLIB"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5744 $as_echo "$RANLIB" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5752 if test -z "$ac_cv_prog_RANLIB"; then
5753 ac_ct_RANLIB=$RANLIB
5754 # Extract the first word of "ranlib", so it can be a program name with args.
5755 set dummy ranlib; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5759 $as_echo_n "(cached) " >&6
5761 if test -n "$ac_ct_RANLIB"; then
5762 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5771 ac_cv_prog_ac_ct_RANLIB="ranlib"
5772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5782 if test -n "$ac_ct_RANLIB"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5784 $as_echo "$ac_ct_RANLIB" >&6; }
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5790 if test "x$ac_ct_RANLIB" = x; then
5793 case $cross_compiling:$ac_tool_warned in
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5797 ac_tool_warned=yes ;;
5799 RANLIB=$ac_ct_RANLIB
5802 RANLIB="$ac_cv_prog_RANLIB"
5805 test -z "$RANLIB" && RANLIB=:
5812 # Determine commands to create old-style static archives.
5813 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5814 old_postinstall_cmds='chmod 644 $oldlib'
5815 old_postuninstall_cmds=
5817 if test -n "$RANLIB"; then
5820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5823 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5826 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5831 lock_old_archive_extraction=yes ;;
5833 lock_old_archive_extraction=no ;;
5874 # If no C compiler was specified, use CC.
5877 # If no C compiler flags were specified, use CFLAGS.
5878 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5880 # Allow CC to be a program name with arguments.
5884 # Check for command to grab the raw symbol name followed by C symbol from nm.
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5886 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5887 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5888 $as_echo_n "(cached) " >&6
5891 # These are sane defaults that work on at least a few old systems.
5892 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5894 # Character class describing NM global symbol codes.
5895 symcode='[BCDEGRST]'
5897 # Regexp to match symbols that can be accessed directly from C.
5898 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5900 # Define system-specific variables.
5905 cygwin* | mingw* | pw32* | cegcc*)
5906 symcode='[ABCDGISTW]'
5909 if test "$host_cpu" = ia64; then
5910 symcode='[ABCDEGRST]'
5914 symcode='[BCDEGRST]'
5917 symcode='[BCDEGQRST]'
5928 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5936 # If we're using GNU nm, then use its standard symbol codes.
5937 case `$NM -V 2>&1` in
5938 *GNU* | *'with BFD'*)
5939 symcode='[ABCDGIRSTW]' ;;
5942 # Transform an extracted symbol line into a proper C declaration.
5943 # Some systems (esp. on ia64) link data and code symbols differently,
5944 # so use this general approach.
5945 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5947 # Transform an extracted symbol line into symbol name and symbol address
5948 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5949 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'"
5951 # Handle CRLF in mingw tool chain
5955 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5959 # Try without a prefix underscore, then with it.
5960 for ac_symprfx in "" "_"; do
5962 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5963 symxfrm="\\1 $ac_symprfx\\2 \\2"
5965 # Write the raw and C identifiers.
5966 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5967 # Fake it for dumpbin and say T for any non-static function
5968 # and D for any global variable.
5969 # Also find C++ and __fastcall symbols from MSVC++,
5970 # which start with @ or ?.
5971 lt_cv_sys_global_symbol_pipe="$AWK '"\
5972 " {last_section=section; section=\$ 3};"\
5973 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5974 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5975 " \$ 0!~/External *\|/{next};"\
5976 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5977 " {if(hide[section]) next};"\
5978 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5979 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5980 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5981 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5982 " ' prfx=^$ac_symprfx"
5984 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5986 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5988 # Check to see that the pipe works correctly.
5992 cat > conftest.$ac_ext <<_LT_EOF
5997 void nm_test_func(void);
5998 void nm_test_func(void){}
6002 int main(){nm_test_var='a';nm_test_func();return(0);}
6005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6006 (eval $ac_compile) 2>&5
6008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6009 test $ac_status = 0; }; then
6010 # Now try to grab the symbols.
6012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6013 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6016 test $ac_status = 0; } && test -s "$nlist"; then
6017 # Try sorting and uniquifying the output.
6018 if sort "$nlist" | uniq > "$nlist"T; then
6019 mv -f "$nlist"T "$nlist"
6024 # Make sure that we snagged all the symbols we need.
6025 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6026 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6027 cat <<_LT_EOF > conftest.$ac_ext
6028 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6029 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6030 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6031 relocations are performed -- see ld's documentation on pseudo-relocs. */
6032 # define LT_DLSYM_CONST
6033 #elif defined(__osf__)
6034 /* This system does not cope well with relocations in const data. */
6035 # define LT_DLSYM_CONST
6037 # define LT_DLSYM_CONST const
6045 # Now generate the symbol file.
6046 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6048 cat <<_LT_EOF >> conftest.$ac_ext
6050 /* The mapping between symbol names and symbols. */
6051 LT_DLSYM_CONST struct {
6055 lt__PROGRAM__LTX_preloaded_symbols[] =
6057 { "@PROGRAM@", (void *) 0 },
6059 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6060 cat <<\_LT_EOF >> conftest.$ac_ext
6064 /* This works around a problem in FreeBSD linker */
6065 #ifdef FREEBSD_WORKAROUND
6066 static const void *lt_preloaded_setup() {
6067 return lt__PROGRAM__LTX_preloaded_symbols;
6075 # Now try linking the two files.
6076 mv conftest.$ac_objext conftstm.$ac_objext
6077 lt_globsym_save_LIBS=$LIBS
6078 lt_globsym_save_CFLAGS=$CFLAGS
6079 LIBS="conftstm.$ac_objext"
6080 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6082 (eval $ac_link) 2>&5
6084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6085 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6088 LIBS=$lt_globsym_save_LIBS
6089 CFLAGS=$lt_globsym_save_CFLAGS
6091 echo "cannot find nm_test_func in $nlist" >&5
6094 echo "cannot find nm_test_var in $nlist" >&5
6097 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6100 echo "$progname: failed program was:" >&5
6101 cat conftest.$ac_ext >&5
6103 rm -rf conftest* conftst*
6105 # Do not use the global_symbol_pipe unless it works.
6106 if test "$pipe_works" = yes; then
6109 lt_cv_sys_global_symbol_pipe=
6115 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6116 lt_cv_sys_global_symbol_to_cdecl=
6118 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6120 $as_echo "failed" >&6; }
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6123 $as_echo "ok" >&6; }
6126 # Response file support.
6127 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6128 nm_file_list_spec='@'
6129 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6130 nm_file_list_spec='@'
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6160 $as_echo_n "checking for sysroot... " >&6; }
6162 # Check whether --with-sysroot was given.
6163 if test "${with_sysroot+set}" = set; then :
6164 withval=$with_sysroot;
6171 case ${with_sysroot} in #(
6173 if test "$GCC" = yes; then
6174 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6178 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6184 $as_echo "${with_sysroot}" >&6; }
6185 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6190 $as_echo "${lt_sysroot:-no}" >&6; }
6196 # Check whether --enable-libtool-lock was given.
6197 if test "${enable_libtool_lock+set}" = set; then :
6198 enableval=$enable_libtool_lock;
6201 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6203 # Some flags need to be propagated to the compiler or linker for good
6207 # Find out which ABI we are using.
6208 echo 'int i;' > conftest.$ac_ext
6209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6210 (eval $ac_compile) 2>&5
6212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213 test $ac_status = 0; }; then
6214 case `/usr/bin/file conftest.$ac_objext` in
6226 # Find out which ABI we are using.
6227 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6229 (eval $ac_compile) 2>&5
6231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6232 test $ac_status = 0; }; then
6233 if test "$lt_cv_prog_gnu_ld" = yes; then
6234 case `/usr/bin/file conftest.$ac_objext` in
6236 LD="${LD-ld} -melf32bsmip"
6239 LD="${LD-ld} -melf32bmipn32"
6242 LD="${LD-ld} -melf64bmip"
6246 case `/usr/bin/file conftest.$ac_objext` in
6262 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6263 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6264 # Find out which ABI we are using.
6265 echo 'int i;' > conftest.$ac_ext
6266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6267 (eval $ac_compile) 2>&5
6269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270 test $ac_status = 0; }; then
6271 case `/usr/bin/file conftest.o` in
6274 x86_64-*kfreebsd*-gnu)
6275 LD="${LD-ld} -m elf_i386_fbsd"
6278 LD="${LD-ld} -m elf_i386"
6280 ppc64-*linux*|powerpc64-*linux*)
6281 LD="${LD-ld} -m elf32ppclinux"
6284 LD="${LD-ld} -m elf_s390"
6287 LD="${LD-ld} -m elf32_sparc"
6293 x86_64-*kfreebsd*-gnu)
6294 LD="${LD-ld} -m elf_x86_64_fbsd"
6297 LD="${LD-ld} -m elf_x86_64"
6299 ppc*-*linux*|powerpc*-*linux*)
6300 LD="${LD-ld} -m elf64ppc"
6302 s390*-*linux*|s390*-*tpf*)
6303 LD="${LD-ld} -m elf64_s390"
6306 LD="${LD-ld} -m elf64_sparc"
6316 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6317 SAVE_CFLAGS="$CFLAGS"
6318 CFLAGS="$CFLAGS -belf"
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6320 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6321 if ${lt_cv_cc_needs_belf+:} false; then :
6322 $as_echo_n "(cached) " >&6
6325 ac_cpp='$CPP $CPPFLAGS'
6326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6341 if ac_fn_c_try_link "$LINENO"; then :
6342 lt_cv_cc_needs_belf=yes
6344 lt_cv_cc_needs_belf=no
6346 rm -f core conftest.err conftest.$ac_objext \
6347 conftest$ac_exeext conftest.$ac_ext
6349 ac_cpp='$CPP $CPPFLAGS'
6350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6356 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6357 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6358 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6359 CFLAGS="$SAVE_CFLAGS"
6363 # Find out which ABI we are using.
6364 echo 'int i;' > conftest.$ac_ext
6365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6366 (eval $ac_compile) 2>&5
6368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6369 test $ac_status = 0; }; then
6370 case `/usr/bin/file conftest.o` in
6372 case $lt_cv_prog_gnu_ld in
6376 LD="${LD-ld} -m elf_x86_64"
6379 LD="${LD-ld} -m elf64_sparc"
6382 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6383 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6388 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6400 need_locks="$enable_libtool_lock"
6402 if test -n "$ac_tool_prefix"; then
6403 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}mt; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6408 $as_echo_n "(cached) " >&6
6410 if test -n "$MANIFEST_TOOL"; then
6411 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6431 if test -n "$MANIFEST_TOOL"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6433 $as_echo "$MANIFEST_TOOL" >&6; }
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6441 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6442 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6443 # Extract the first word of "mt", so it can be a program name with args.
6444 set dummy mt; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6448 $as_echo_n "(cached) " >&6
6450 if test -n "$ac_ct_MANIFEST_TOOL"; then
6451 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6471 if test -n "$ac_ct_MANIFEST_TOOL"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6473 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6479 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6482 case $cross_compiling:$ac_tool_warned in
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6488 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6491 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6494 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6496 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6497 if ${lt_cv_path_mainfest_tool+:} false; then :
6498 $as_echo_n "(cached) " >&6
6500 lt_cv_path_mainfest_tool=no
6501 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6502 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6503 cat conftest.err >&5
6504 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6505 lt_cv_path_mainfest_tool=yes
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6510 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6511 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6521 rhapsody* | darwin*)
6522 if test -n "$ac_tool_prefix"; then
6523 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6524 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526 $as_echo_n "checking for $ac_word... " >&6; }
6527 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6528 $as_echo_n "(cached) " >&6
6530 if test -n "$DSYMUTIL"; then
6531 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6540 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6551 if test -n "$DSYMUTIL"; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6553 $as_echo "$DSYMUTIL" >&6; }
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 $as_echo "no" >&6; }
6561 if test -z "$ac_cv_prog_DSYMUTIL"; then
6562 ac_ct_DSYMUTIL=$DSYMUTIL
6563 # Extract the first word of "dsymutil", so it can be a program name with args.
6564 set dummy dsymutil; ac_word=$2
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6568 $as_echo_n "(cached) " >&6
6570 if test -n "$ac_ct_DSYMUTIL"; then
6571 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6591 if test -n "$ac_ct_DSYMUTIL"; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6593 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6599 if test "x$ac_ct_DSYMUTIL" = x; then
6602 case $cross_compiling:$ac_tool_warned in
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6606 ac_tool_warned=yes ;;
6608 DSYMUTIL=$ac_ct_DSYMUTIL
6611 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6614 if test -n "$ac_tool_prefix"; then
6615 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6616 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if ${ac_cv_prog_NMEDIT+:} false; then :
6620 $as_echo_n "(cached) " >&6
6622 if test -n "$NMEDIT"; then
6623 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 NMEDIT=$ac_cv_prog_NMEDIT
6643 if test -n "$NMEDIT"; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6645 $as_echo "$NMEDIT" >&6; }
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6653 if test -z "$ac_cv_prog_NMEDIT"; then
6654 ac_ct_NMEDIT=$NMEDIT
6655 # Extract the first word of "nmedit", so it can be a program name with args.
6656 set dummy nmedit; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6660 $as_echo_n "(cached) " >&6
6662 if test -n "$ac_ct_NMEDIT"; then
6663 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6683 if test -n "$ac_ct_NMEDIT"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6685 $as_echo "$ac_ct_NMEDIT" >&6; }
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6691 if test "x$ac_ct_NMEDIT" = x; then
6694 case $cross_compiling:$ac_tool_warned in
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6698 ac_tool_warned=yes ;;
6700 NMEDIT=$ac_ct_NMEDIT
6703 NMEDIT="$ac_cv_prog_NMEDIT"
6706 if test -n "$ac_tool_prefix"; then
6707 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6708 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 $as_echo_n "checking for $ac_word... " >&6; }
6711 if ${ac_cv_prog_LIPO+:} false; then :
6712 $as_echo_n "(cached) " >&6
6714 if test -n "$LIPO"; then
6715 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 LIPO=$ac_cv_prog_LIPO
6735 if test -n "$LIPO"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6737 $as_echo "$LIPO" >&6; }
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6745 if test -z "$ac_cv_prog_LIPO"; then
6747 # Extract the first word of "lipo", so it can be a program name with args.
6748 set dummy lipo; ac_word=$2
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6752 $as_echo_n "(cached) " >&6
6754 if test -n "$ac_ct_LIPO"; then
6755 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_prog_ac_ct_LIPO="lipo"
6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6775 if test -n "$ac_ct_LIPO"; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6777 $as_echo "$ac_ct_LIPO" >&6; }
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6783 if test "x$ac_ct_LIPO" = x; then
6786 case $cross_compiling:$ac_tool_warned in
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6790 ac_tool_warned=yes ;;
6795 LIPO="$ac_cv_prog_LIPO"
6798 if test -n "$ac_tool_prefix"; then
6799 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6800 set dummy ${ac_tool_prefix}otool; ac_word=$2
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 $as_echo_n "checking for $ac_word... " >&6; }
6803 if ${ac_cv_prog_OTOOL+:} false; then :
6804 $as_echo_n "(cached) " >&6
6806 if test -n "$OTOOL"; then
6807 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 OTOOL=$ac_cv_prog_OTOOL
6827 if test -n "$OTOOL"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6829 $as_echo "$OTOOL" >&6; }
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6837 if test -z "$ac_cv_prog_OTOOL"; then
6839 # Extract the first word of "otool", so it can be a program name with args.
6840 set dummy otool; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6844 $as_echo_n "(cached) " >&6
6846 if test -n "$ac_ct_OTOOL"; then
6847 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_prog_ac_ct_OTOOL="otool"
6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6867 if test -n "$ac_ct_OTOOL"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6869 $as_echo "$ac_ct_OTOOL" >&6; }
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6875 if test "x$ac_ct_OTOOL" = x; then
6878 case $cross_compiling:$ac_tool_warned in
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6882 ac_tool_warned=yes ;;
6887 OTOOL="$ac_cv_prog_OTOOL"
6890 if test -n "$ac_tool_prefix"; then
6891 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6892 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if ${ac_cv_prog_OTOOL64+:} false; then :
6896 $as_echo_n "(cached) " >&6
6898 if test -n "$OTOOL64"; then
6899 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 OTOOL64=$ac_cv_prog_OTOOL64
6919 if test -n "$OTOOL64"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6921 $as_echo "$OTOOL64" >&6; }
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6929 if test -z "$ac_cv_prog_OTOOL64"; then
6930 ac_ct_OTOOL64=$OTOOL64
6931 # Extract the first word of "otool64", so it can be a program name with args.
6932 set dummy otool64; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6936 $as_echo_n "(cached) " >&6
6938 if test -n "$ac_ct_OTOOL64"; then
6939 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_prog_ac_ct_OTOOL64="otool64"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6959 if test -n "$ac_ct_OTOOL64"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6961 $as_echo "$ac_ct_OTOOL64" >&6; }
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6967 if test "x$ac_ct_OTOOL64" = x; then
6970 case $cross_compiling:$ac_tool_warned in
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974 ac_tool_warned=yes ;;
6976 OTOOL64=$ac_ct_OTOOL64
6979 OTOOL64="$ac_cv_prog_OTOOL64"
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7009 $as_echo_n "checking for -single_module linker flag... " >&6; }
7010 if ${lt_cv_apple_cc_single_mod+:} false; then :
7011 $as_echo_n "(cached) " >&6
7013 lt_cv_apple_cc_single_mod=no
7014 if test -z "${LT_MULTI_MODULE}"; then
7015 # By default we will add the -single_module flag. You can override
7016 # by either setting the environment variable LT_MULTI_MODULE
7017 # non-empty at configure time, or by adding -multi_module to the
7019 rm -rf libconftest.dylib*
7020 echo "int foo(void){return 1;}" > conftest.c
7021 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7022 -dynamiclib -Wl,-single_module conftest.c" >&5
7023 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7024 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7026 # If there is a non-empty error log, and "single_module"
7027 # appears in it, assume the flag caused a linker warning
7028 if test -s conftest.err && $GREP single_module conftest.err; then
7029 cat conftest.err >&5
7030 # Otherwise, if the output was created with a 0 exit code from
7031 # the compiler, it worked.
7032 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7033 lt_cv_apple_cc_single_mod=yes
7035 cat conftest.err >&5
7037 rm -rf libconftest.dylib*
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7042 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7045 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7046 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7047 $as_echo_n "(cached) " >&6
7049 lt_cv_ld_exported_symbols_list=no
7050 save_LDFLAGS=$LDFLAGS
7051 echo "_main" > conftest.sym
7052 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7064 if ac_fn_c_try_link "$LINENO"; then :
7065 lt_cv_ld_exported_symbols_list=yes
7067 lt_cv_ld_exported_symbols_list=no
7069 rm -f core conftest.err conftest.$ac_objext \
7070 conftest$ac_exeext conftest.$ac_ext
7071 LDFLAGS="$save_LDFLAGS"
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7075 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7078 $as_echo_n "checking for -force_load linker flag... " >&6; }
7079 if ${lt_cv_ld_force_load+:} false; then :
7080 $as_echo_n "(cached) " >&6
7082 lt_cv_ld_force_load=no
7083 cat > conftest.c << _LT_EOF
7084 int forced_loaded() { return 2;}
7086 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7087 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7088 echo "$AR cru libconftest.a conftest.o" >&5
7089 $AR cru libconftest.a conftest.o 2>&5
7090 echo "$RANLIB libconftest.a" >&5
7091 $RANLIB libconftest.a 2>&5
7092 cat > conftest.c << _LT_EOF
7093 int main() { return 0;}
7095 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7096 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7098 if test -s conftest.err && $GREP force_load conftest.err; then
7099 cat conftest.err >&5
7100 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7101 lt_cv_ld_force_load=yes
7103 cat conftest.err >&5
7105 rm -f conftest.err libconftest.a conftest conftest.c
7106 rm -rf conftest.dSYM
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7110 $as_echo "$lt_cv_ld_force_load" >&6; }
7112 rhapsody* | darwin1.[012])
7113 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7115 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7116 darwin*) # darwin 5.x on
7117 # if running on 10.5 or later, the deployment target defaults
7118 # to the OS version, if on x86, and 10.4, the deployment
7119 # target defaults to 10.4. Don't you love it?
7120 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7121 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7122 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7124 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7126 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7130 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7131 _lt_dar_single_mod='$single_module'
7133 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7134 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7136 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7138 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7139 _lt_dsymutil='~$DSYMUTIL $lib || :'
7147 ac_cpp='$CPP $CPPFLAGS'
7148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7152 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7153 # On Suns, sometimes $CPP names a directory.
7154 if test -n "$CPP" && test -d "$CPP"; then
7157 if test -z "$CPP"; then
7158 if ${ac_cv_prog_CPP+:} false; then :
7159 $as_echo_n "(cached) " >&6
7161 # Double quotes because CPP needs to be expanded
7162 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7165 for ac_c_preproc_warn_flag in '' yes
7167 # Use a header file that comes with gcc, so configuring glibc
7168 # with a fresh cross-compiler works.
7169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7170 # <limits.h> exists even on freestanding compilers.
7171 # On the NeXT, cc -E runs the code through the compiler's parser,
7172 # not just through cpp. "Syntax error" is here to catch this case.
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7176 # include <limits.h>
7178 # include <assert.h>
7182 if ac_fn_c_try_cpp "$LINENO"; then :
7185 # Broken: fails on valid input.
7188 rm -f conftest.err conftest.i conftest.$ac_ext
7190 # OK, works on sane cases. Now check whether nonexistent headers
7191 # can be detected and how.
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7194 #include <ac_nonexistent.h>
7196 if ac_fn_c_try_cpp "$LINENO"; then :
7197 # Broken: success on invalid input.
7200 # Passes both tests.
7204 rm -f conftest.err conftest.i conftest.$ac_ext
7207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7208 rm -f conftest.i conftest.err conftest.$ac_ext
7209 if $ac_preproc_ok; then :
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7222 $as_echo "$CPP" >&6; }
7224 for ac_c_preproc_warn_flag in '' yes
7226 # Use a header file that comes with gcc, so configuring glibc
7227 # with a fresh cross-compiler works.
7228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7229 # <limits.h> exists even on freestanding compilers.
7230 # On the NeXT, cc -E runs the code through the compiler's parser,
7231 # not just through cpp. "Syntax error" is here to catch this case.
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7235 # include <limits.h>
7237 # include <assert.h>
7241 if ac_fn_c_try_cpp "$LINENO"; then :
7244 # Broken: fails on valid input.
7247 rm -f conftest.err conftest.i conftest.$ac_ext
7249 # OK, works on sane cases. Now check whether nonexistent headers
7250 # can be detected and how.
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7253 #include <ac_nonexistent.h>
7255 if ac_fn_c_try_cpp "$LINENO"; then :
7256 # Broken: success on invalid input.
7259 # Passes both tests.
7263 rm -f conftest.err conftest.i conftest.$ac_ext
7266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7267 rm -f conftest.i conftest.err conftest.$ac_ext
7268 if $ac_preproc_ok; then :
7271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7273 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7274 See \`config.log' for more details" "$LINENO" 5; }
7278 ac_cpp='$CPP $CPPFLAGS'
7279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7285 $as_echo_n "checking for ANSI C header files... " >&6; }
7286 if ${ac_cv_header_stdc+:} false; then :
7287 $as_echo_n "(cached) " >&6
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7304 if ac_fn_c_try_compile "$LINENO"; then :
7305 ac_cv_header_stdc=yes
7307 ac_cv_header_stdc=no
7309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 if test $ac_cv_header_stdc = yes; then
7312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7319 $EGREP "memchr" >/dev/null 2>&1; then :
7322 ac_cv_header_stdc=no
7328 if test $ac_cv_header_stdc = yes; then
7329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7336 $EGREP "free" >/dev/null 2>&1; then :
7339 ac_cv_header_stdc=no
7345 if test $ac_cv_header_stdc = yes; then
7346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7347 if test "$cross_compiling" = yes; then :
7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 /* end confdefs.h. */
7354 #if ((' ' & 0x0FF) == 0x020)
7355 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7356 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7358 # define ISLOWER(c) \
7359 (('a' <= (c) && (c) <= 'i') \
7360 || ('j' <= (c) && (c) <= 'r') \
7361 || ('s' <= (c) && (c) <= 'z'))
7362 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7365 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7370 for (i = 0; i < 256; i++)
7371 if (XOR (islower (i), ISLOWER (i))
7372 || toupper (i) != TOUPPER (i))
7377 if ac_fn_c_try_run "$LINENO"; then :
7380 ac_cv_header_stdc=no
7382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7383 conftest.$ac_objext conftest.beam conftest.$ac_ext
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7389 $as_echo "$ac_cv_header_stdc" >&6; }
7390 if test $ac_cv_header_stdc = yes; then
7392 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7396 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7397 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7398 inttypes.h stdint.h unistd.h
7400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7401 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7403 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7404 cat >>confdefs.h <<_ACEOF
7405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7413 for ac_header in dlfcn.h
7415 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7417 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7418 cat >>confdefs.h <<_ACEOF
7419 #define HAVE_DLFCN_H 1
7440 # Check whether --enable-shared was given.
7441 if test "${enable_shared+set}" = set; then :
7442 enableval=$enable_shared; p=${PACKAGE-default}
7444 yes) enable_shared=yes ;;
7445 no) enable_shared=no ;;
7448 # Look at the argument we got. We use all the common list separators.
7449 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7450 for pkg in $enableval; do
7452 if test "X$pkg" = "X$p"; then
7471 # Check whether --enable-static was given.
7472 if test "${enable_static+set}" = set; then :
7473 enableval=$enable_static; p=${PACKAGE-default}
7475 yes) enable_static=yes ;;
7476 no) enable_static=no ;;
7479 # Look at the argument we got. We use all the common list separators.
7480 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7481 for pkg in $enableval; do
7483 if test "X$pkg" = "X$p"; then
7503 # Check whether --with-pic was given.
7504 if test "${with_pic+set}" = set; then :
7505 withval=$with_pic; lt_p=${PACKAGE-default}
7507 yes|no) pic_mode=$withval ;;
7510 # Look at the argument we got. We use all the common list separators.
7511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7512 for lt_pkg in $withval; do
7514 if test "X$lt_pkg" = "X$lt_p"; then
7526 test -z "$pic_mode" && pic_mode=default
7534 # Check whether --enable-fast-install was given.
7535 if test "${enable_fast_install+set}" = set; then :
7536 enableval=$enable_fast_install; p=${PACKAGE-default}
7538 yes) enable_fast_install=yes ;;
7539 no) enable_fast_install=no ;;
7541 enable_fast_install=no
7542 # Look at the argument we got. We use all the common list separators.
7543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7544 for pkg in $enableval; do
7546 if test "X$pkg" = "X$p"; then
7547 enable_fast_install=yes
7554 enable_fast_install=yes
7567 # This can be used to rebuild libtool when needed
7568 LIBTOOL_DEPS="$ltmain"
7570 # Always use our own libtool.
7571 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7602 test -z "$LN_S" && LN_S="ln -s"
7617 if test -n "${ZSH_VERSION+set}" ; then
7618 setopt NO_GLOB_SUBST
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7622 $as_echo_n "checking for objdir... " >&6; }
7623 if ${lt_cv_objdir+:} false; then :
7624 $as_echo_n "(cached) " >&6
7626 rm -f .libs 2>/dev/null
7627 mkdir .libs 2>/dev/null
7628 if test -d .libs; then
7631 # MS-DOS does not allow filenames that begin with a dot.
7634 rmdir .libs 2>/dev/null
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7637 $as_echo "$lt_cv_objdir" >&6; }
7638 objdir=$lt_cv_objdir
7644 cat >>confdefs.h <<_ACEOF
7645 #define LT_OBJDIR "$lt_cv_objdir/"
7653 # AIX sometimes has problems with the GCC collect2 program. For some
7654 # reason, if we set the COLLECT_NAMES environment variable, the problems
7655 # vanish in a puff of smoke.
7656 if test "X${COLLECT_NAMES+set}" != Xset; then
7658 export COLLECT_NAMES
7665 can_build_shared=yes
7667 # All known linkers require a `.a' archive for static linking (except MSVC,
7668 # which needs '.lib').
7671 with_gnu_ld="$lt_cv_prog_gnu_ld"
7674 old_CFLAGS="$CFLAGS"
7676 # Set sane defaults for various variables
7677 test -z "$CC" && CC=cc
7678 test -z "$LTCC" && LTCC=$CC
7679 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7680 test -z "$LD" && LD=ld
7681 test -z "$ac_objext" && ac_objext=o
7683 for cc_temp in $compiler""; do
7685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7691 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7694 # Only perform the check for file, if the check method requires it
7695 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7696 case $deplibs_check_method in
7698 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7700 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7701 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7702 $as_echo_n "(cached) " >&6
7706 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7709 lt_save_MAGIC_CMD="$MAGIC_CMD"
7710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7711 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7712 for ac_dir in $ac_dummy; do
7714 test -z "$ac_dir" && ac_dir=.
7715 if test -f $ac_dir/${ac_tool_prefix}file; then
7716 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7717 if test -n "$file_magic_test_file"; then
7718 case $deplibs_check_method in
7720 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7721 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7722 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7723 $EGREP "$file_magic_regex" > /dev/null; then
7728 *** Warning: the command libtool uses to detect shared libraries,
7729 *** $file_magic_cmd, produces output that libtool cannot recognize.
7730 *** The result is that libtool may fail to recognize shared libraries
7731 *** as such. This will affect the creation of libtool libraries that
7732 *** depend on shared libraries, but programs linked with such libtool
7733 *** libraries will work regardless of this problem. Nevertheless, you
7734 *** may want to report the problem to your system manager and/or to
7735 *** bug-libtool@gnu.org
7745 MAGIC_CMD="$lt_save_MAGIC_CMD"
7750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7751 if test -n "$MAGIC_CMD"; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7753 $as_echo "$MAGIC_CMD" >&6; }
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7763 if test -z "$lt_cv_path_MAGIC_CMD"; then
7764 if test -n "$ac_tool_prefix"; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7766 $as_echo_n "checking for file... " >&6; }
7767 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7768 $as_echo_n "(cached) " >&6
7772 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7775 lt_save_MAGIC_CMD="$MAGIC_CMD"
7776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7777 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7778 for ac_dir in $ac_dummy; do
7780 test -z "$ac_dir" && ac_dir=.
7781 if test -f $ac_dir/file; then
7782 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7783 if test -n "$file_magic_test_file"; then
7784 case $deplibs_check_method in
7786 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7787 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7788 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7789 $EGREP "$file_magic_regex" > /dev/null; then
7794 *** Warning: the command libtool uses to detect shared libraries,
7795 *** $file_magic_cmd, produces output that libtool cannot recognize.
7796 *** The result is that libtool may fail to recognize shared libraries
7797 *** as such. This will affect the creation of libtool libraries that
7798 *** depend on shared libraries, but programs linked with such libtool
7799 *** libraries will work regardless of this problem. Nevertheless, you
7800 *** may want to report the problem to your system manager and/or to
7801 *** bug-libtool@gnu.org
7811 MAGIC_CMD="$lt_save_MAGIC_CMD"
7816 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7817 if test -n "$MAGIC_CMD"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7819 $as_echo "$MAGIC_CMD" >&6; }
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7835 # Use C for the default configuration in the libtool script
7839 ac_cpp='$CPP $CPPFLAGS'
7840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7845 # Source file extension for C test sources.
7848 # Object file extension for compiled C test sources.
7852 # Code to be used in simple compile tests
7853 lt_simple_compile_test_code="int some_variable = 0;"
7855 # Code to be used in simple link tests
7856 lt_simple_link_test_code='int main(){return(0);}'
7864 # If no C compiler was specified, use CC.
7867 # If no C compiler flags were specified, use CFLAGS.
7868 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7870 # Allow CC to be a program name with arguments.
7873 # Save the default compiler, since it gets overwritten when the other
7874 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7875 compiler_DEFAULT=$CC
7877 # save warnings/boilerplate of simple test code
7878 ac_outfile=conftest.$ac_objext
7879 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7880 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7881 _lt_compiler_boilerplate=`cat conftest.err`
7884 ac_outfile=conftest.$ac_objext
7885 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7886 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7887 _lt_linker_boilerplate=`cat conftest.err`
7891 if test -n "$compiler"; then
7893 lt_prog_compiler_no_builtin_flag=
7895 if test "$GCC" = yes; then
7896 case $cc_basename in
7898 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7900 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7904 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7905 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7906 $as_echo_n "(cached) " >&6
7908 lt_cv_prog_compiler_rtti_exceptions=no
7909 ac_outfile=conftest.$ac_objext
7910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7911 lt_compiler_flag="-fno-rtti -fno-exceptions"
7912 # Insert the option either (1) after the last *FLAGS variable, or
7913 # (2) before a word containing "conftest.", or (3) at the end.
7914 # Note that $ac_compile itself does not contain backslashes and begins
7915 # with a dollar sign (not a hyphen), so the echo should work correctly.
7916 # The option is referenced via a variable to avoid confusing sed.
7917 lt_compile=`echo "$ac_compile" | $SED \
7918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7920 -e 's:$: $lt_compiler_flag:'`
7921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7922 (eval "$lt_compile" 2>conftest.err)
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 if (exit $ac_status) && test -s "$ac_outfile"; then
7927 # The compiler can only warn and ignore the option if not recognized
7928 # So say no if there are warnings other than the usual output.
7929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7932 lt_cv_prog_compiler_rtti_exceptions=yes
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7939 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7941 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7942 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7954 lt_prog_compiler_wl=
7955 lt_prog_compiler_pic=
7956 lt_prog_compiler_static=
7959 if test "$GCC" = yes; then
7960 lt_prog_compiler_wl='-Wl,'
7961 lt_prog_compiler_static='-static'
7965 # All AIX code is PIC.
7966 if test "$host_cpu" = ia64; then
7967 # AIX 5 now supports IA64 processor
7968 lt_prog_compiler_static='-Bstatic'
7975 # see comment about AmigaOS4 .so support
7976 lt_prog_compiler_pic='-fPIC'
7979 # FIXME: we need at least 68020 code to build shared libraries, but
7980 # adding the `-m68020' flag to GCC prevents building anything better,
7982 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7987 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7988 # PIC is the default for these OSes.
7991 mingw* | cygwin* | pw32* | os2* | cegcc*)
7992 # This hack is so that the source file can tell whether it is being
7993 # built for inclusion in a dll (and should export symbols for example).
7994 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7995 # (--disable-auto-import) libraries
7996 lt_prog_compiler_pic='-DDLL_EXPORT'
7999 darwin* | rhapsody*)
8000 # PIC is the default on this platform
8001 # Common symbols not allowed in MH_DYLIB files
8002 lt_prog_compiler_pic='-fno-common'
8006 # PIC is the default for Haiku.
8007 # The "-static" flag exists, but is broken.
8008 lt_prog_compiler_static=
8012 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8013 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8014 # sets the default TLS model and affects inlining.
8020 lt_prog_compiler_pic='-fPIC'
8026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8027 # Instead, we relocate shared libraries at runtime.
8031 # Just because we use GCC doesn't mean we suddenly get shared libraries
8032 # on systems that don't support them.
8033 lt_prog_compiler_can_build_shared=no
8038 # QNX uses GNU C++, but need to define -shared option too, otherwise
8040 lt_prog_compiler_pic='-fPIC -shared'
8044 if test -d /usr/nec; then
8045 lt_prog_compiler_pic=-Kconform_pic
8050 lt_prog_compiler_pic='-fPIC'
8054 case $cc_basename in
8055 nvcc*) # Cuda Compiler Driver 2.2
8056 lt_prog_compiler_wl='-Xlinker '
8057 if test -n "$lt_prog_compiler_pic"; then
8058 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8063 # PORTME Check for flag to pass linker flags through the system compiler.
8066 lt_prog_compiler_wl='-Wl,'
8067 if test "$host_cpu" = ia64; then
8068 # AIX 5 now supports IA64 processor
8069 lt_prog_compiler_static='-Bstatic'
8071 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8075 mingw* | cygwin* | pw32* | os2* | cegcc*)
8076 # This hack is so that the source file can tell whether it is being
8077 # built for inclusion in a dll (and should export symbols for example).
8078 lt_prog_compiler_pic='-DDLL_EXPORT'
8081 hpux9* | hpux10* | hpux11*)
8082 lt_prog_compiler_wl='-Wl,'
8083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8090 lt_prog_compiler_pic='+Z'
8093 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8094 lt_prog_compiler_static='${wl}-a ${wl}archive'
8097 irix5* | irix6* | nonstopux*)
8098 lt_prog_compiler_wl='-Wl,'
8099 # PIC (with -KPIC) is the default.
8100 lt_prog_compiler_static='-non_shared'
8103 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8104 case $cc_basename in
8105 # old Intel for x86_64 which still supported -KPIC.
8107 lt_prog_compiler_wl='-Wl,'
8108 lt_prog_compiler_pic='-KPIC'
8109 lt_prog_compiler_static='-static'
8111 # icc used to be incompatible with GCC.
8112 # ICC 10 doesn't accept -KPIC any more.
8114 lt_prog_compiler_wl='-Wl,'
8115 lt_prog_compiler_pic='-fPIC'
8116 lt_prog_compiler_static='-static'
8118 # Lahey Fortran 8.1.
8120 lt_prog_compiler_wl='-Wl,'
8121 lt_prog_compiler_pic='--shared'
8122 lt_prog_compiler_static='--static'
8125 # NAG Fortran compiler
8126 lt_prog_compiler_wl='-Wl,-Wl,,'
8127 lt_prog_compiler_pic='-PIC'
8128 lt_prog_compiler_static='-Bstatic'
8130 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8131 # Portland Group compilers (*not* the Pentium gcc compiler,
8132 # which looks to be a dead project)
8133 lt_prog_compiler_wl='-Wl,'
8134 lt_prog_compiler_pic='-fpic'
8135 lt_prog_compiler_static='-Bstatic'
8138 lt_prog_compiler_wl='-Wl,'
8139 # All Alpha code is PIC.
8140 lt_prog_compiler_static='-non_shared'
8142 xl* | bgxl* | bgf* | mpixl*)
8143 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8144 lt_prog_compiler_wl='-Wl,'
8145 lt_prog_compiler_pic='-qpic'
8146 lt_prog_compiler_static='-qstaticlink'
8149 case `$CC -V 2>&1 | sed 5q` in
8150 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8151 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8152 lt_prog_compiler_pic='-KPIC'
8153 lt_prog_compiler_static='-Bstatic'
8154 lt_prog_compiler_wl=''
8156 *Sun\ F* | *Sun*Fortran*)
8157 lt_prog_compiler_pic='-KPIC'
8158 lt_prog_compiler_static='-Bstatic'
8159 lt_prog_compiler_wl='-Qoption ld '
8163 lt_prog_compiler_pic='-KPIC'
8164 lt_prog_compiler_static='-Bstatic'
8165 lt_prog_compiler_wl='-Wl,'
8167 *Intel*\ [CF]*Compiler*)
8168 lt_prog_compiler_wl='-Wl,'
8169 lt_prog_compiler_pic='-fPIC'
8170 lt_prog_compiler_static='-static'
8173 lt_prog_compiler_wl='-Wl,'
8174 lt_prog_compiler_pic='-fpic'
8175 lt_prog_compiler_static='-Bstatic'
8183 lt_prog_compiler_pic='-KPIC'
8184 lt_prog_compiler_static='-Bstatic'
8188 # QNX uses GNU C++, but need to define -shared option too, otherwise
8190 lt_prog_compiler_pic='-fPIC -shared'
8193 osf3* | osf4* | osf5*)
8194 lt_prog_compiler_wl='-Wl,'
8195 # All OSF/1 code is PIC.
8196 lt_prog_compiler_static='-non_shared'
8200 lt_prog_compiler_static='-non_shared'
8204 lt_prog_compiler_pic='-KPIC'
8205 lt_prog_compiler_static='-Bstatic'
8206 case $cc_basename in
8207 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8208 lt_prog_compiler_wl='-Qoption ld ';;
8210 lt_prog_compiler_wl='-Wl,';;
8215 lt_prog_compiler_wl='-Qoption ld '
8216 lt_prog_compiler_pic='-PIC'
8217 lt_prog_compiler_static='-Bstatic'
8220 sysv4 | sysv4.2uw2* | sysv4.3*)
8221 lt_prog_compiler_wl='-Wl,'
8222 lt_prog_compiler_pic='-KPIC'
8223 lt_prog_compiler_static='-Bstatic'
8227 if test -d /usr/nec ;then
8228 lt_prog_compiler_pic='-Kconform_pic'
8229 lt_prog_compiler_static='-Bstatic'
8233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8234 lt_prog_compiler_wl='-Wl,'
8235 lt_prog_compiler_pic='-KPIC'
8236 lt_prog_compiler_static='-Bstatic'
8240 lt_prog_compiler_wl='-Wl,'
8241 lt_prog_compiler_can_build_shared=no
8245 lt_prog_compiler_pic='-pic'
8246 lt_prog_compiler_static='-Bstatic'
8250 lt_prog_compiler_can_build_shared=no
8256 # For platforms which do not support PIC, -DPIC is meaningless:
8258 lt_prog_compiler_pic=
8261 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8266 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8267 if ${lt_cv_prog_compiler_pic+:} false; then :
8268 $as_echo_n "(cached) " >&6
8270 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8273 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8274 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8277 # Check to make sure the PIC flag actually works.
8279 if test -n "$lt_prog_compiler_pic"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8281 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8282 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8283 $as_echo_n "(cached) " >&6
8285 lt_cv_prog_compiler_pic_works=no
8286 ac_outfile=conftest.$ac_objext
8287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8288 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8289 # Insert the option either (1) after the last *FLAGS variable, or
8290 # (2) before a word containing "conftest.", or (3) at the end.
8291 # Note that $ac_compile itself does not contain backslashes and begins
8292 # with a dollar sign (not a hyphen), so the echo should work correctly.
8293 # The option is referenced via a variable to avoid confusing sed.
8294 lt_compile=`echo "$ac_compile" | $SED \
8295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8297 -e 's:$: $lt_compiler_flag:'`
8298 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8299 (eval "$lt_compile" 2>conftest.err)
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 if (exit $ac_status) && test -s "$ac_outfile"; then
8304 # The compiler can only warn and ignore the option if not recognized
8305 # So say no if there are warnings other than the usual output.
8306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8308 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8309 lt_cv_prog_compiler_pic_works=yes
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8316 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8318 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8319 case $lt_prog_compiler_pic in
8321 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8324 lt_prog_compiler_pic=
8325 lt_prog_compiler_can_build_shared=no
8341 # Check to make sure the static flag actually works.
8343 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8345 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8346 if ${lt_cv_prog_compiler_static_works+:} false; then :
8347 $as_echo_n "(cached) " >&6
8349 lt_cv_prog_compiler_static_works=no
8350 save_LDFLAGS="$LDFLAGS"
8351 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8352 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8353 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8354 # The linker can only warn and ignore the option if not recognized
8355 # So say no if there are warnings
8356 if test -s conftest.err; then
8357 # Append any errors to the config.log.
8358 cat conftest.err 1>&5
8359 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8361 if diff conftest.exp conftest.er2 >/dev/null; then
8362 lt_cv_prog_compiler_static_works=yes
8365 lt_cv_prog_compiler_static_works=yes
8369 LDFLAGS="$save_LDFLAGS"
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8373 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8375 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8378 lt_prog_compiler_static=
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8388 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8389 if ${lt_cv_prog_compiler_c_o+:} false; then :
8390 $as_echo_n "(cached) " >&6
8392 lt_cv_prog_compiler_c_o=no
8393 $RM -r conftest 2>/dev/null
8397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8399 lt_compiler_flag="-o out/conftest2.$ac_objext"
8400 # Insert the option either (1) after the last *FLAGS variable, or
8401 # (2) before a word containing "conftest.", or (3) at the end.
8402 # Note that $ac_compile itself does not contain backslashes and begins
8403 # with a dollar sign (not a hyphen), so the echo should work correctly.
8404 lt_compile=`echo "$ac_compile" | $SED \
8405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8407 -e 's:$: $lt_compiler_flag:'`
8408 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8409 (eval "$lt_compile" 2>out/conftest.err)
8411 cat out/conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8415 # The compiler can only warn and ignore the option if not recognized
8416 # So say no if there are warnings
8417 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8418 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8419 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8420 lt_cv_prog_compiler_c_o=yes
8425 # SGI C++ compiler will create directory out/ii_files/ for
8426 # template instantiation
8427 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8428 $RM out/* && rmdir out
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8435 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8443 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8444 if ${lt_cv_prog_compiler_c_o+:} false; then :
8445 $as_echo_n "(cached) " >&6
8447 lt_cv_prog_compiler_c_o=no
8448 $RM -r conftest 2>/dev/null
8452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8454 lt_compiler_flag="-o out/conftest2.$ac_objext"
8455 # Insert the option either (1) after the last *FLAGS variable, or
8456 # (2) before a word containing "conftest.", or (3) at the end.
8457 # Note that $ac_compile itself does not contain backslashes and begins
8458 # with a dollar sign (not a hyphen), so the echo should work correctly.
8459 lt_compile=`echo "$ac_compile" | $SED \
8460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8462 -e 's:$: $lt_compiler_flag:'`
8463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8464 (eval "$lt_compile" 2>out/conftest.err)
8466 cat out/conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8470 # The compiler can only warn and ignore the option if not recognized
8471 # So say no if there are warnings
8472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8473 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8474 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8475 lt_cv_prog_compiler_c_o=yes
8480 # SGI C++ compiler will create directory out/ii_files/ for
8481 # template instantiation
8482 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8483 $RM out/* && rmdir out
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8490 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8495 hard_links="nottested"
8496 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8497 # do not overwrite the value of need_locks provided by the user
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8499 $as_echo_n "checking if we can lock with hard links... " >&6; }
8502 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8504 ln conftest.a conftest.b 2>&5 || hard_links=no
8505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8507 $as_echo "$hard_links" >&6; }
8508 if test "$hard_links" = no; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8510 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8523 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8526 allow_undefined_flag=
8527 always_export_symbols=no
8529 archive_expsym_cmds=
8530 compiler_needs_object=no
8531 enable_shared_with_static_runtimes=no
8532 export_dynamic_flag_spec=
8533 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8534 hardcode_automatic=no
8536 hardcode_direct_absolute=no
8537 hardcode_libdir_flag_spec=
8538 hardcode_libdir_separator=
8540 hardcode_shlibpath_var=unsupported
8542 link_all_deplibs=unknown
8545 old_archive_from_new_cmds=
8546 old_archive_from_expsyms_cmds=
8547 thread_safe_flag_spec=
8548 whole_archive_flag_spec=
8549 # include_expsyms should be a list of space-separated symbols to be *always*
8550 # included in the symbol list
8552 # exclude_expsyms can be an extended regexp of symbols to exclude
8553 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8554 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8555 # as well as any symbol that contains `d'.
8556 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8557 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8558 # platforms (ab)use it in PIC code, but their linkers get confused if
8559 # the symbol is explicitly referenced. Since portable code cannot
8560 # rely on this symbol name, it's probably fine to never include it in
8561 # preloaded symbol tables.
8562 # Exclude shared library initialization/finalization symbols.
8563 extract_expsyms_cmds=
8566 cygwin* | mingw* | pw32* | cegcc*)
8567 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8568 # When not using gcc, we currently assume that we are using
8569 # Microsoft Visual C++.
8570 if test "$GCC" != yes; then
8575 # we just hope/assume this is gcc and not c89 (= MSVC++)
8585 # On some targets, GNU ld is compatible enough with the native linker
8586 # that we're better off using the native interface for both.
8587 lt_use_gnu_ld_interface=no
8588 if test "$with_gnu_ld" = yes; then
8591 # The AIX port of GNU ld has always aspired to compatibility
8592 # with the native linker. However, as the warning in the GNU ld
8593 # block says, versions before 2.19.5* couldn't really create working
8594 # shared libraries, regardless of the interface used.
8595 case `$LD -v 2>&1` in
8596 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8597 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8598 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8600 lt_use_gnu_ld_interface=yes
8605 lt_use_gnu_ld_interface=yes
8610 if test "$lt_use_gnu_ld_interface" = yes; then
8611 # If archive_cmds runs LD, not CC, wlarc should be empty
8614 # Set some defaults for GNU ld with shared library support. These
8615 # are reset later if shared libraries are not supported. Putting them
8616 # here allows them to be overridden if necessary.
8617 runpath_var=LD_RUN_PATH
8618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8619 export_dynamic_flag_spec='${wl}--export-dynamic'
8620 # ancient GNU ld didn't support --whole-archive et. al.
8621 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8622 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8624 whole_archive_flag_spec=
8626 supports_anon_versioning=no
8627 case `$LD -v 2>&1` in
8628 *GNU\ gold*) supports_anon_versioning=yes ;;
8629 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8630 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8631 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8632 *\ 2.11.*) ;; # other 2.11 versions
8633 *) supports_anon_versioning=yes ;;
8636 # See if GNU ld supports shared libraries.
8639 # On AIX/PPC, the GNU linker is very broken
8640 if test "$host_cpu" != ia64; then
8644 *** Warning: the GNU linker, at least up to release 2.19, is reported
8645 *** to be unable to reliably create shared libraries on AIX.
8646 *** Therefore, libtool is disabling shared libraries support. If you
8647 *** really care for shared libraries, you may want to install binutils
8648 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8649 *** You will then need to restart the configuration process.
8658 # see comment about AmigaOS4 .so support
8659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660 archive_expsym_cmds=''
8663 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)'
8664 hardcode_libdir_flag_spec='-L$libdir'
8665 hardcode_minus_L=yes
8671 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8672 allow_undefined_flag=unsupported
8673 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8674 # support --undefined. This deserves some investigation. FIXME
8675 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8681 cygwin* | mingw* | pw32* | cegcc*)
8682 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8683 # as there is no search path for DLLs.
8684 hardcode_libdir_flag_spec='-L$libdir'
8685 export_dynamic_flag_spec='${wl}--export-all-symbols'
8686 allow_undefined_flag=unsupported
8687 always_export_symbols=no
8688 enable_shared_with_static_runtimes=yes
8689 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'
8690 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8692 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8694 # If the export-symbols file already is a .def file (1st line
8695 # is EXPORTS), use it as is; otherwise, prepend...
8696 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8697 cp $export_symbols $output_objdir/$soname.def;
8699 echo EXPORTS > $output_objdir/$soname.def;
8700 cat $export_symbols >> $output_objdir/$soname.def;
8702 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710 link_all_deplibs=yes
8715 hardcode_shlibpath_var=no
8716 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8717 export_dynamic_flag_spec='${wl}-E'
8718 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8719 # Instead, shared libraries are loaded at an image base (0x10000000 by
8720 # default) and relocated if they conflict, which is a slow very memory
8721 # consuming and fragmenting process. To avoid this, we pick a random,
8722 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8723 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8725 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'
8728 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8730 if test "$host_os" = linux-dietlibc; then
8731 case $cc_basename in
8732 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8735 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8736 && test "$tmp_diet" = no
8738 tmp_addflag=' $pic_flag'
8739 tmp_sharedflag='-shared'
8740 case $cc_basename,$host_cpu in
8741 pgcc*) # Portland Group C compiler
8742 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'
8743 tmp_addflag=' $pic_flag'
8745 pgf77* | pgf90* | pgf95* | pgfortran*)
8746 # Portland Group f77 and f90 compilers
8747 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'
8748 tmp_addflag=' $pic_flag -Mnomain' ;;
8749 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8750 tmp_addflag=' -i_dynamic' ;;
8751 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8752 tmp_addflag=' -i_dynamic -nofor_main' ;;
8753 ifc* | ifort*) # Intel Fortran compiler
8754 tmp_addflag=' -nofor_main' ;;
8755 lf95*) # Lahey Fortran 8.1
8756 whole_archive_flag_spec=
8757 tmp_sharedflag='--shared' ;;
8758 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8759 tmp_sharedflag='-qmkshrobj'
8761 nvcc*) # Cuda Compiler Driver 2.2
8762 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'
8763 compiler_needs_object=yes
8766 case `$CC -V 2>&1 | sed 5q` in
8767 *Sun\ C*) # Sun C 5.9
8768 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'
8769 compiler_needs_object=yes
8770 tmp_sharedflag='-G' ;;
8771 *Sun\ F*) # Sun Fortran 8.3
8772 tmp_sharedflag='-G' ;;
8774 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8776 if test "x$supports_anon_versioning" = xyes; then
8777 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8778 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8779 echo "local: *; };" >> $output_objdir/$libname.ver~
8780 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8783 case $cc_basename in
8784 xlf* | bgf* | bgxlf* | mpixlf*)
8785 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8786 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8788 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8789 if test "x$supports_anon_versioning" = xyes; then
8790 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8791 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8792 echo "local: *; };" >> $output_objdir/$libname.ver~
8793 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8803 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8804 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8807 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8808 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8813 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8817 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8818 *** create shared libraries on Solaris systems. Therefore, libtool
8819 *** is disabling shared libraries support. We urge you to upgrade GNU
8820 *** binutils to release 2.9.1 or newer. Another option is to modify
8821 *** your PATH or compiler configuration so that the native linker is
8822 *** used, and then restart.
8825 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8826 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8834 case `$LD -v 2>&1` in
8835 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8839 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8840 *** reliably create shared libraries on SCO systems. Therefore, libtool
8841 *** is disabling shared libraries support. We urge you to upgrade GNU
8842 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8843 *** your PATH or compiler configuration so that the native linker is
8844 *** used, and then restart.
8849 # For security reasons, it is highly recommended that you always
8850 # use absolute paths for naming shared libraries, and exclude the
8851 # DT_RUNPATH tag from executables and libraries. But doing so
8852 # requires that you compile everything twice, which is a pain.
8853 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8856 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8865 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8868 hardcode_shlibpath_var=no
8872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8873 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8881 if test "$ld_shlibs" = no; then
8883 hardcode_libdir_flag_spec=
8884 export_dynamic_flag_spec=
8885 whole_archive_flag_spec=
8888 # PORTME fill in a description of your system's linker (not GNU ld)
8891 allow_undefined_flag=unsupported
8892 always_export_symbols=yes
8893 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'
8894 # Note: this linker hardcodes the directories in LIBPATH if there
8895 # are no directories specified by -L.
8896 hardcode_minus_L=yes
8897 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8898 # Neither direct hardcoding nor static linking is supported with a
8900 hardcode_direct=unsupported
8905 if test "$host_cpu" = ia64; then
8906 # On IA64, the linker does run time linking by default, so we don't
8907 # have to do anything special.
8908 aix_use_runtimelinking=no
8909 exp_sym_flag='-Bexport'
8912 # If we're using GNU nm, then we don't want the "-C" option.
8913 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8914 # Also, AIX nm treats weak defined symbols like other global
8915 # defined symbols, whereas GNU nm marks them as "W".
8916 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8917 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'
8919 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'
8921 aix_use_runtimelinking=no
8923 # Test if we are trying to use run time linking or normal
8924 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8925 # need to do runtime linking.
8926 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8927 for ld_flag in $LDFLAGS; do
8928 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8929 aix_use_runtimelinking=yes
8936 exp_sym_flag='-bexport'
8937 no_entry_flag='-bnoentry'
8940 # When large executables or shared objects are built, AIX ld can
8941 # have problems creating the table of contents. If linking a library
8942 # or program results in "error TOC overflow" add -mminimal-toc to
8943 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8944 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8948 hardcode_direct_absolute=yes
8949 hardcode_libdir_separator=':'
8950 link_all_deplibs=yes
8951 file_list_spec='${wl}-f,'
8953 if test "$GCC" = yes; then
8954 case $host_os in aix4.[012]|aix4.[012].*)
8955 # We only want to do this on AIX 4.2 and lower, the check
8956 # below for broken collect2 doesn't work under 4.3+
8957 collect2name=`${CC} -print-prog-name=collect2`
8958 if test -f "$collect2name" &&
8959 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8961 # We have reworked collect2
8964 # We have old collect2
8965 hardcode_direct=unsupported
8966 # It fails to find uninstalled libraries when the uninstalled
8967 # path is not listed in the libpath. Setting hardcode_minus_L
8968 # to unsupported forces relinking
8969 hardcode_minus_L=yes
8970 hardcode_libdir_flag_spec='-L$libdir'
8971 hardcode_libdir_separator=
8975 shared_flag='-shared'
8976 if test "$aix_use_runtimelinking" = yes; then
8977 shared_flag="$shared_flag "'${wl}-G'
8981 if test "$host_cpu" = ia64; then
8982 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8983 # chokes on -Wl,-G. The following line is correct:
8986 if test "$aix_use_runtimelinking" = yes; then
8987 shared_flag='${wl}-G'
8989 shared_flag='${wl}-bM:SRE'
8994 export_dynamic_flag_spec='${wl}-bexpall'
8995 # It seems that -bexpall does not export symbols beginning with
8996 # underscore (_), so it is better to generate a list of symbols to export.
8997 always_export_symbols=yes
8998 if test "$aix_use_runtimelinking" = yes; then
8999 # Warning - without using the other runtime loading flags (-brtl),
9000 # -berok will link without error, but may produce a broken library.
9001 allow_undefined_flag='-berok'
9002 # Determine the default libpath from the value encoded in an
9004 if test "${lt_cv_aix_libpath+set}" = set; then
9005 aix_libpath=$lt_cv_aix_libpath
9007 if ${lt_cv_aix_libpath_+:} false; then :
9008 $as_echo_n "(cached) " >&6
9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9021 if ac_fn_c_try_link "$LINENO"; then :
9023 lt_aix_libpath_sed='
9024 /Import File Strings/,/^$/ {
9026 s/^0 *\([^ ]*\) *$/\1/
9030 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9031 # Check for a 64-bit object if we didn't find anything.
9032 if test -z "$lt_cv_aix_libpath_"; then
9033 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9036 rm -f core conftest.err conftest.$ac_objext \
9037 conftest$ac_exeext conftest.$ac_ext
9038 if test -z "$lt_cv_aix_libpath_"; then
9039 lt_cv_aix_libpath_="/usr/lib:/lib"
9044 aix_libpath=$lt_cv_aix_libpath_
9047 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9048 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"
9050 if test "$host_cpu" = ia64; then
9051 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9052 allow_undefined_flag="-z nodefs"
9053 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"
9055 # Determine the default libpath from the value encoded in an
9057 if test "${lt_cv_aix_libpath+set}" = set; then
9058 aix_libpath=$lt_cv_aix_libpath
9060 if ${lt_cv_aix_libpath_+:} false; then :
9061 $as_echo_n "(cached) " >&6
9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064 /* end confdefs.h. */
9074 if ac_fn_c_try_link "$LINENO"; then :
9076 lt_aix_libpath_sed='
9077 /Import File Strings/,/^$/ {
9079 s/^0 *\([^ ]*\) *$/\1/
9083 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9084 # Check for a 64-bit object if we didn't find anything.
9085 if test -z "$lt_cv_aix_libpath_"; then
9086 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9089 rm -f core conftest.err conftest.$ac_objext \
9090 conftest$ac_exeext conftest.$ac_ext
9091 if test -z "$lt_cv_aix_libpath_"; then
9092 lt_cv_aix_libpath_="/usr/lib:/lib"
9097 aix_libpath=$lt_cv_aix_libpath_
9100 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9101 # Warning - without using the other run time loading flags,
9102 # -berok will link without error, but may produce a broken library.
9103 no_undefined_flag=' ${wl}-bernotok'
9104 allow_undefined_flag=' ${wl}-berok'
9105 if test "$with_gnu_ld" = yes; then
9106 # We only use this code for GNU lds that support --whole-archive.
9107 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9109 # Exported symbols can be pulled into shared objects from archives
9110 whole_archive_flag_spec='$convenience'
9112 archive_cmds_need_lc=yes
9113 # This is similar to how AIX traditionally builds its shared libraries.
9114 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'
9122 # see comment about AmigaOS4 .so support
9123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9124 archive_expsym_cmds=''
9127 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)'
9128 hardcode_libdir_flag_spec='-L$libdir'
9129 hardcode_minus_L=yes
9135 export_dynamic_flag_spec=-rdynamic
9138 cygwin* | mingw* | pw32* | cegcc*)
9139 # When not using gcc, we currently assume that we are using
9140 # Microsoft Visual C++.
9141 # hardcode_libdir_flag_spec is actually meaningless, as there is
9142 # no search path for DLLs.
9143 case $cc_basename in
9146 hardcode_libdir_flag_spec=' '
9147 allow_undefined_flag=unsupported
9148 always_export_symbols=yes
9150 # Tell ltmain to make .lib files, not .a files.
9152 # Tell ltmain to make .dll files, not .so files.
9154 # FIXME: Setting linknames here is a bad hack.
9155 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9156 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9157 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9159 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9161 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9163 # The linker will not automatically build a static lib if we build a DLL.
9164 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9165 enable_shared_with_static_runtimes=yes
9166 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9167 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9169 old_postinstall_cmds='chmod 644 $oldlib'
9170 postlink_cmds='lt_outputfile="@OUTPUT@"~
9171 lt_tool_outputfile="@TOOL_OUTPUT@"~
9172 case $lt_outputfile in
9175 lt_outputfile="$lt_outputfile.exe"
9176 lt_tool_outputfile="$lt_tool_outputfile.exe"
9179 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9180 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9181 $RM "$lt_outputfile.manifest";
9185 # Assume MSVC wrapper
9186 hardcode_libdir_flag_spec=' '
9187 allow_undefined_flag=unsupported
9188 # Tell ltmain to make .lib files, not .a files.
9190 # Tell ltmain to make .dll files, not .so files.
9192 # FIXME: Setting linknames here is a bad hack.
9193 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9194 # The linker will automatically build a .lib file if we build a DLL.
9195 old_archive_from_new_cmds='true'
9196 # FIXME: Should let the user specify the lib program.
9197 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9198 enable_shared_with_static_runtimes=yes
9203 darwin* | rhapsody*)
9206 archive_cmds_need_lc=no
9208 hardcode_automatic=yes
9209 hardcode_shlibpath_var=unsupported
9210 if test "$lt_cv_ld_force_load" = "yes"; then
9211 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\"`'
9214 whole_archive_flag_spec=''
9216 link_all_deplibs=yes
9217 allow_undefined_flag="$_lt_dar_allow_undefined"
9218 case $cc_basename in
9219 ifort*) _lt_dar_can_shared=yes ;;
9220 *) _lt_dar_can_shared=$GCC ;;
9222 if test "$_lt_dar_can_shared" = "yes"; then
9223 output_verbose_link_cmd=func_echo_all
9224 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9225 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9226 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}"
9227 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}"
9236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237 hardcode_libdir_flag_spec='-L$libdir'
9238 hardcode_shlibpath_var=no
9241 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9242 # support. Future versions do this automatically, but an explicit c++rt0.o
9243 # does not break anything, and helps significantly (at the cost of a little
9246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9247 hardcode_libdir_flag_spec='-R$libdir'
9249 hardcode_shlibpath_var=no
9252 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9256 hardcode_minus_L=yes
9257 hardcode_shlibpath_var=no
9260 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9261 freebsd* | dragonfly*)
9262 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9263 hardcode_libdir_flag_spec='-R$libdir'
9265 hardcode_shlibpath_var=no
9269 if test "$GCC" = yes; then
9270 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'
9272 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'
9274 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9275 hardcode_libdir_separator=:
9278 # hardcode_minus_L: Not really in the search PATH,
9279 # but as the default location of the library.
9280 hardcode_minus_L=yes
9281 export_dynamic_flag_spec='${wl}-E'
9285 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9286 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9288 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9290 if test "$with_gnu_ld" = no; then
9291 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9292 hardcode_libdir_separator=:
9294 hardcode_direct_absolute=yes
9295 export_dynamic_flag_spec='${wl}-E'
9296 # hardcode_minus_L: Not really in the search PATH,
9297 # but as the default location of the library.
9298 hardcode_minus_L=yes
9303 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9306 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9309 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9312 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9318 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9321 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9325 # Older versions of the 11.00 compiler do not understand -b yet
9326 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9328 $as_echo_n "checking if $CC understands -b... " >&6; }
9329 if ${lt_cv_prog_compiler__b+:} false; then :
9330 $as_echo_n "(cached) " >&6
9332 lt_cv_prog_compiler__b=no
9333 save_LDFLAGS="$LDFLAGS"
9334 LDFLAGS="$LDFLAGS -b"
9335 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9336 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9337 # The linker can only warn and ignore the option if not recognized
9338 # So say no if there are warnings
9339 if test -s conftest.err; then
9340 # Append any errors to the config.log.
9341 cat conftest.err 1>&5
9342 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9344 if diff conftest.exp conftest.er2 >/dev/null; then
9345 lt_cv_prog_compiler__b=yes
9348 lt_cv_prog_compiler__b=yes
9352 LDFLAGS="$save_LDFLAGS"
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9356 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9358 if test x"$lt_cv_prog_compiler__b" = xyes; then
9359 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9361 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9367 if test "$with_gnu_ld" = no; then
9368 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9369 hardcode_libdir_separator=:
9374 hardcode_shlibpath_var=no
9378 hardcode_direct_absolute=yes
9379 export_dynamic_flag_spec='${wl}-E'
9381 # hardcode_minus_L: Not really in the search PATH,
9382 # but as the default location of the library.
9383 hardcode_minus_L=yes
9389 irix5* | irix6* | nonstopux*)
9390 if test "$GCC" = yes; then
9391 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'
9392 # Try to use the -exported_symbol ld option, if it does not
9393 # work, assume that -exports_file does not work either and
9394 # implicitly export all symbols.
9395 # This should be the same for all languages, so no per-tag cache variable.
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9397 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9398 if ${lt_cv_irix_exported_symbol+:} false; then :
9399 $as_echo_n "(cached) " >&6
9401 save_LDFLAGS="$LDFLAGS"
9402 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h. */
9405 int foo (void) { return 0; }
9407 if ac_fn_c_try_link "$LINENO"; then :
9408 lt_cv_irix_exported_symbol=yes
9410 lt_cv_irix_exported_symbol=no
9412 rm -f core conftest.err conftest.$ac_objext \
9413 conftest$ac_exeext conftest.$ac_ext
9414 LDFLAGS="$save_LDFLAGS"
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9417 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9418 if test "$lt_cv_irix_exported_symbol" = yes; then
9419 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'
9422 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'
9423 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'
9425 archive_cmds_need_lc='no'
9426 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427 hardcode_libdir_separator=:
9429 link_all_deplibs=yes
9433 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9434 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9436 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9438 hardcode_libdir_flag_spec='-R$libdir'
9440 hardcode_shlibpath_var=no
9444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9447 hardcode_libdir_separator=:
9448 hardcode_shlibpath_var=no
9455 if test -f /usr/libexec/ld.so; then
9457 hardcode_shlibpath_var=no
9458 hardcode_direct_absolute=yes
9459 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9460 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9461 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9462 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9463 export_dynamic_flag_spec='${wl}-E'
9466 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9467 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9468 hardcode_libdir_flag_spec='-R$libdir'
9471 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9472 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9482 hardcode_libdir_flag_spec='-L$libdir'
9483 hardcode_minus_L=yes
9484 allow_undefined_flag=unsupported
9485 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'
9486 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9490 if test "$GCC" = yes; then
9491 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9492 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'
9494 allow_undefined_flag=' -expect_unresolved \*'
9495 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'
9497 archive_cmds_need_lc='no'
9498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9499 hardcode_libdir_separator=:
9502 osf4* | osf5*) # as osf3* with the addition of -msym flag
9503 if test "$GCC" = yes; then
9504 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9505 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'
9506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9508 allow_undefined_flag=' -expect_unresolved \*'
9509 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'
9510 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~
9511 $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'
9513 # Both c and cxx compiler support -rpath directly
9514 hardcode_libdir_flag_spec='-rpath $libdir'
9516 archive_cmds_need_lc='no'
9517 hardcode_libdir_separator=:
9521 no_undefined_flag=' -z defs'
9522 if test "$GCC" = yes; then
9524 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9525 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9526 $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'
9528 case `$CC -V 2>&1` in
9531 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9533 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9537 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9538 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9539 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9543 hardcode_libdir_flag_spec='-R$libdir'
9544 hardcode_shlibpath_var=no
9546 solaris2.[0-5] | solaris2.[0-5].*) ;;
9548 # The compiler driver will combine and reorder linker options,
9549 # but understands `-z linker_flag'. GCC discards it without `$wl',
9550 # but is careful enough not to reorder.
9551 # Supported since Solaris 2.6 (maybe 2.5.1?)
9552 if test "$GCC" = yes; then
9553 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9555 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9559 link_all_deplibs=yes
9563 if test "x$host_vendor" = xsequent; then
9564 # Use $CC to link under sequent, because it throws in some extra .o
9565 # files that make .init and .fini sections work.
9566 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9568 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9570 hardcode_libdir_flag_spec='-L$libdir'
9572 hardcode_minus_L=yes
9573 hardcode_shlibpath_var=no
9577 case $host_vendor in
9579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_direct=yes # is this really true???
9583 ## LD is ld it makes a PLAMLIB
9584 ## CC just makes a GrossModule.
9585 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9586 reload_cmds='$CC -r -o $output$reload_objs'
9590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9591 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9594 runpath_var='LD_RUN_PATH'
9595 hardcode_shlibpath_var=no
9599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9600 hardcode_shlibpath_var=no
9601 export_dynamic_flag_spec='-Bexport'
9605 if test -d /usr/nec; then
9606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607 hardcode_shlibpath_var=no
9608 runpath_var=LD_RUN_PATH
9609 hardcode_runpath_var=yes
9614 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9615 no_undefined_flag='${wl}-z,text'
9616 archive_cmds_need_lc=no
9617 hardcode_shlibpath_var=no
9618 runpath_var='LD_RUN_PATH'
9620 if test "$GCC" = yes; then
9621 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9622 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9624 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9625 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9629 sysv5* | sco3.2v5* | sco5v6*)
9630 # Note: We can NOT use -z defs as we might desire, because we do not
9631 # link with -lc, and that would cause any symbols used from libc to
9632 # always be unresolved, which means just about no library would
9633 # ever link correctly. If we're not using GNU ld we use -z text
9634 # though, which does catch some bad symbols but isn't as heavy-handed
9636 no_undefined_flag='${wl}-z,text'
9637 allow_undefined_flag='${wl}-z,nodefs'
9638 archive_cmds_need_lc=no
9639 hardcode_shlibpath_var=no
9640 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9641 hardcode_libdir_separator=':'
9642 link_all_deplibs=yes
9643 export_dynamic_flag_spec='${wl}-Bexport'
9644 runpath_var='LD_RUN_PATH'
9646 if test "$GCC" = yes; then
9647 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9648 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9650 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9651 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_libdir_flag_spec='-L$libdir'
9658 hardcode_shlibpath_var=no
9666 if test x$host_vendor = xsni; then
9668 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9669 export_dynamic_flag_spec='${wl}-Blargedynsym'
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9676 $as_echo "$ld_shlibs" >&6; }
9677 test "$ld_shlibs" = no && can_build_shared=no
9679 with_gnu_ld=$with_gnu_ld
9696 # Do we need to explicitly link libc?
9698 case "x$archive_cmds_need_lc" in
9700 # Assume -lc should be added
9701 archive_cmds_need_lc=yes
9703 if test "$enable_shared" = yes && test "$GCC" = yes; then
9704 case $archive_cmds in
9706 # FIXME: we may have to deal with multi-command sequences.
9709 # Test whether the compiler implicitly links with -lc since on some
9710 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9711 # to ld, don't add -lc before -lgcc.
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9713 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9714 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9715 $as_echo_n "(cached) " >&6
9718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9721 (eval $ac_compile) 2>&5
9723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9724 test $ac_status = 0; } 2>conftest.err; then
9727 libobjs=conftest.$ac_objext
9729 wl=$lt_prog_compiler_wl
9730 pic_flag=$lt_prog_compiler_pic
9736 lt_save_allow_undefined_flag=$allow_undefined_flag
9737 allow_undefined_flag=
9738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9739 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9742 test $ac_status = 0; }
9744 lt_cv_archive_cmds_need_lc=no
9746 lt_cv_archive_cmds_need_lc=yes
9748 allow_undefined_flag=$lt_save_allow_undefined_flag
9750 cat conftest.err 1>&5
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9756 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9757 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9916 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9918 if test "$GCC" = yes; then
9920 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9921 *) lt_awk_arg="/^libraries:/" ;;
9924 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9925 *) lt_sed_strip_eq="s,=/,/,g" ;;
9927 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9928 case $lt_search_path_spec in
9930 # if the path contains ";" then we assume it to be the separator
9931 # otherwise default to the standard path separator (i.e. ":") - it is
9932 # assumed that no part of a normal pathname contains ";" but that should
9933 # okay in the real world where ";" in dirpaths is itself problematic.
9934 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9937 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9940 # Ok, now we have the path, separated by spaces, we can step through it
9941 # and add multilib dir if necessary.
9942 lt_tmp_lt_search_path_spec=
9943 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9944 for lt_sys_path in $lt_search_path_spec; do
9945 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9946 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9948 test -d "$lt_sys_path" && \
9949 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9952 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9953 BEGIN {RS=" "; FS="/|\n";} {
9956 for (lt_i = NF; lt_i > 0; lt_i--) {
9957 if ($lt_i != "" && $lt_i != ".") {
9958 if ($lt_i == "..") {
9961 if (lt_count == 0) {
9962 lt_foo="/" $lt_i lt_foo;
9969 if (lt_foo != "") { lt_freq[lt_foo]++; }
9970 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9972 # AWK program above erroneously prepends '/' to C:/dos/paths
9975 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9976 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9978 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9980 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9983 libname_spec='lib$name'
9991 shlibpath_overrides_runpath=unknown
9993 dynamic_linker="$host_os ld.so"
9994 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9995 need_lib_prefix=unknown
9996 hardcode_into_libs=no
9998 # when you set need_version to no, make sure it does not cause -set_version
9999 # flags to be left without arguments
10000 need_version=unknown
10004 version_type=linux # correct to gnu/linux during the next big refactor
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10006 shlibpath_var=LIBPATH
10008 # AIX 3 has no versioning support, so we append a major version to the name.
10009 soname_spec='${libname}${release}${shared_ext}$major'
10013 version_type=linux # correct to gnu/linux during the next big refactor
10016 hardcode_into_libs=yes
10017 if test "$host_cpu" = ia64; then
10018 # AIX 5 supports IA64
10019 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10020 shlibpath_var=LD_LIBRARY_PATH
10022 # With GCC up to 2.95.x, collect2 would create an import file
10023 # for dependence libraries. The import file would start with
10024 # the line `#! .'. This would cause the generated library to
10025 # depend on `.', always an invalid library. This was fixed in
10026 # development snapshots of GCC prior to 3.0.
10028 aix4 | aix4.[01] | aix4.[01].*)
10029 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10031 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10034 can_build_shared=no
10038 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10039 # soname into executable. Probably we can add versioning support to
10040 # collect2, so additional links can be useful in future.
10041 if test "$aix_use_runtimelinking" = yes; then
10042 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10043 # instead of lib<name>.a to let people know that these are not
10044 # typical AIX shared libraries.
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10047 # We preserve .a as extension for shared libraries through AIX4.2
10048 # and later when we are not doing run time linking.
10049 library_names_spec='${libname}${release}.a $libname.a'
10050 soname_spec='${libname}${release}${shared_ext}$major'
10052 shlibpath_var=LIBPATH
10059 # Since July 2007 AmigaOS4 officially supports .so libraries.
10060 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064 library_names_spec='$libname.ixlibrary $libname.a'
10065 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10066 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'
10072 library_names_spec='${libname}${shared_ext}'
10073 dynamic_linker="$host_os ld.so"
10074 shlibpath_var=LIBRARY_PATH
10078 version_type=linux # correct to gnu/linux during the next big refactor
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081 soname_spec='${libname}${release}${shared_ext}$major'
10082 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10083 shlibpath_var=LD_LIBRARY_PATH
10084 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10085 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10086 # the default ld.so.conf also contains /usr/contrib/lib and
10087 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10088 # libtool to hard-code these into programs
10091 cygwin* | mingw* | pw32* | cegcc*)
10092 version_type=windows
10097 case $GCC,$cc_basename in
10100 library_names_spec='$libname.dll.a'
10101 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10102 postinstall_cmds='base_file=`basename \${file}`~
10103 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10104 dldir=$destdir/`dirname \$dlpath`~
10105 test -d \$dldir || mkdir -p \$dldir~
10106 $install_prog $dir/$dlname \$dldir/$dlname~
10107 chmod a+x \$dldir/$dlname~
10108 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10109 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10111 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10112 dlpath=$dir/\$dldll~
10114 shlibpath_overrides_runpath=yes
10118 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10119 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10121 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10124 # MinGW DLLs use traditional 'lib' prefix
10125 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10128 # pw32 DLLs use 'pw' prefix rather than 'lib'
10129 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10132 dynamic_linker='Win32 ld.exe'
10137 libname_spec='$name'
10138 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10139 library_names_spec='${libname}.dll.lib'
10143 sys_lib_search_path_spec=
10146 for lt_path in $LIB
10149 # Let DOS variable expansion print the short 8.3 style file name.
10150 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10151 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10154 # Convert to MSYS style.
10155 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10158 # Convert to unix form, then to dos form, then back to unix form
10159 # but this time dos style (no spaces!) so that the unix form looks
10160 # like /cygdrive/c/PROGRA~1:/cygdr...
10161 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10162 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10163 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10166 sys_lib_search_path_spec="$LIB"
10167 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10168 # It is most probably a Windows format PATH.
10169 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10171 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10173 # FIXME: find the short name or the path components, as spaces are
10174 # common. (e.g. "Program Files" -> "PROGRA~1")
10178 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10179 postinstall_cmds='base_file=`basename \${file}`~
10180 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10181 dldir=$destdir/`dirname \$dlpath`~
10182 test -d \$dldir || mkdir -p \$dldir~
10183 $install_prog $dir/$dlname \$dldir/$dlname'
10184 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10185 dlpath=$dir/\$dldll~
10187 shlibpath_overrides_runpath=yes
10188 dynamic_linker='Win32 link.exe'
10192 # Assume MSVC wrapper
10193 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10194 dynamic_linker='Win32 ld.exe'
10197 # FIXME: first we should search . and the directory the executable is in
10201 darwin* | rhapsody*)
10202 dynamic_linker="$host_os dyld"
10203 version_type=darwin
10206 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10207 soname_spec='${libname}${release}${major}$shared_ext'
10208 shlibpath_overrides_runpath=yes
10209 shlibpath_var=DYLD_LIBRARY_PATH
10210 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10212 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10213 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10217 version_type=linux # correct to gnu/linux during the next big refactor
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10221 soname_spec='${libname}${release}${shared_ext}$major'
10222 shlibpath_var=LD_LIBRARY_PATH
10225 freebsd* | dragonfly*)
10226 # DragonFly does not have aout. When/if they implement a new
10227 # versioning mechanism, adjust this.
10228 if test -x /usr/bin/objformat; then
10229 objformat=`/usr/bin/objformat`
10232 freebsd[23].*) objformat=aout ;;
10233 *) objformat=elf ;;
10236 version_type=freebsd-$objformat
10237 case $version_type in
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10248 shlibpath_var=LD_LIBRARY_PATH
10251 shlibpath_overrides_runpath=yes
10253 freebsd3.[01]* | freebsdelf3.[01]*)
10254 shlibpath_overrides_runpath=yes
10255 hardcode_into_libs=yes
10257 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10258 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10259 shlibpath_overrides_runpath=no
10260 hardcode_into_libs=yes
10262 *) # from 4.6 on, and DragonFly
10263 shlibpath_overrides_runpath=yes
10264 hardcode_into_libs=yes
10270 version_type=linux # correct to gnu/linux during the next big refactor
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 shlibpath_overrides_runpath=no
10277 hardcode_into_libs=yes
10281 version_type=linux # correct to gnu/linux during the next big refactor
10284 dynamic_linker="$host_os runtime_loader"
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10289 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10290 hardcode_into_libs=yes
10293 hpux9* | hpux10* | hpux11*)
10294 # Give a soname corresponding to the major version so that dld.sl refuses to
10295 # link against other versions.
10302 hardcode_into_libs=yes
10303 dynamic_linker="$host_os dld.so"
10304 shlibpath_var=LD_LIBRARY_PATH
10305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 if test "X$HPUX_IA64_MODE" = X32; then
10309 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10311 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10317 hardcode_into_libs=yes
10318 dynamic_linker="$host_os dld.sl"
10319 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10328 dynamic_linker="$host_os dld.sl"
10329 shlibpath_var=SHLIB_PATH
10330 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10335 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10336 postinstall_cmds='chmod 555 $lib'
10337 # or fails outright, so override atomically:
10338 install_override_mode=555
10342 version_type=linux # correct to gnu/linux during the next big refactor
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 shlibpath_overrides_runpath=no
10350 hardcode_into_libs=yes
10353 irix5* | irix6* | nonstopux*)
10355 nonstopux*) version_type=nonstopux ;;
10357 if test "$lt_cv_prog_gnu_ld" = yes; then
10358 version_type=linux # correct to gnu/linux during the next big refactor
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10368 irix5* | nonstopux*)
10369 libsuff= shlibsuff=
10372 case $LD in # libtool.m4 will add one of these switches to LD
10373 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10374 libsuff= shlibsuff= libmagic=32-bit;;
10375 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10376 libsuff=32 shlibsuff=N32 libmagic=N32;;
10377 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10378 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10379 *) libsuff= shlibsuff= libmagic=never-match;;
10383 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10384 shlibpath_overrides_runpath=no
10385 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10386 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10387 hardcode_into_libs=yes
10390 # No shared lib support for Linux oldld, aout, or coff.
10391 linux*oldld* | linux*aout* | linux*coff*)
10395 # This must be glibc/ELF.
10396 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10397 version_type=linux # correct to gnu/linux during the next big refactor
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10403 shlibpath_var=LD_LIBRARY_PATH
10404 shlibpath_overrides_runpath=no
10406 # Some binutils ld are patched to set DT_RUNPATH
10407 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10408 $as_echo_n "(cached) " >&6
10410 lt_cv_shlibpath_overrides_runpath=no
10411 save_LDFLAGS=$LDFLAGS
10412 save_libdir=$libdir
10413 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10414 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10426 if ac_fn_c_try_link "$LINENO"; then :
10427 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10428 lt_cv_shlibpath_overrides_runpath=yes
10431 rm -f core conftest.err conftest.$ac_objext \
10432 conftest$ac_exeext conftest.$ac_ext
10433 LDFLAGS=$save_LDFLAGS
10434 libdir=$save_libdir
10438 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10440 # This implies no fast_install, which is unacceptable.
10441 # Some rework will be needed to allow for fast_install
10442 # before this can be enabled.
10443 hardcode_into_libs=yes
10445 # Append ld.so.conf contents to the search path
10446 if test -f /etc/ld.so.conf; then
10447 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' ' '`
10448 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10451 # We used to test for /lib/ld.so.1 and disable shared libraries on
10452 # powerpc, because MkLinux only supported shared libraries with the
10453 # GNU dynamic linker. Since this was broken with cross compilers,
10454 # most powerpc-linux boxes support dynamic linking these days and
10455 # people can always --disable-shared, the test was removed, and we
10456 # assume the GNU/Linux dynamic linker is in use.
10457 dynamic_linker='GNU/Linux ld.so'
10464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10467 dynamic_linker='NetBSD (a.out) ld.so'
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 dynamic_linker='NetBSD ld.elf_so'
10473 shlibpath_var=LD_LIBRARY_PATH
10474 shlibpath_overrides_runpath=yes
10475 hardcode_into_libs=yes
10479 version_type=linux # correct to gnu/linux during the next big refactor
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 shlibpath_overrides_runpath=yes
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 shlibpath_overrides_runpath=no
10493 hardcode_into_libs=yes
10494 dynamic_linker='ldqnx.so'
10499 sys_lib_dlsearch_path_spec="/usr/lib"
10501 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10503 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10504 *) need_version=no ;;
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10508 shlibpath_var=LD_LIBRARY_PATH
10509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10511 openbsd2.[89] | openbsd2.[89].*)
10512 shlibpath_overrides_runpath=no
10515 shlibpath_overrides_runpath=yes
10519 shlibpath_overrides_runpath=yes
10524 libname_spec='$name'
10527 library_names_spec='$libname${shared_ext} $libname.a'
10528 dynamic_linker='OS/2 ld.exe'
10529 shlibpath_var=LIBPATH
10532 osf3* | osf4* | osf5*)
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 shlibpath_var=LD_LIBRARY_PATH
10539 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10540 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10548 version_type=linux # correct to gnu/linux during the next big refactor
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 soname_spec='${libname}${release}${shared_ext}$major'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 shlibpath_overrides_runpath=yes
10555 hardcode_into_libs=yes
10556 # ldd complains unless libraries are executable
10557 postinstall_cmds='chmod +x $lib'
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10563 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10564 shlibpath_var=LD_LIBRARY_PATH
10565 shlibpath_overrides_runpath=yes
10566 if test "$with_gnu_ld" = yes; then
10573 version_type=linux # correct to gnu/linux during the next big refactor
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 case $host_vendor in
10579 shlibpath_overrides_runpath=no
10581 runpath_var=LD_RUN_PATH
10589 shlibpath_overrides_runpath=no
10590 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10596 if test -d /usr/nec ;then
10597 version_type=linux # correct to gnu/linux during the next big refactor
10598 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10599 soname_spec='$libname${shared_ext}.$major'
10600 shlibpath_var=LD_LIBRARY_PATH
10604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10605 version_type=freebsd-elf
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 shlibpath_overrides_runpath=yes
10612 hardcode_into_libs=yes
10613 if test "$with_gnu_ld" = yes; then
10614 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10616 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10619 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10623 sys_lib_dlsearch_path_spec='/usr/lib'
10627 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10628 version_type=linux # correct to gnu/linux during the next big refactor
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=no
10634 hardcode_into_libs=yes
10638 version_type=linux # correct to gnu/linux during the next big refactor
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 shlibpath_var=LD_LIBRARY_PATH
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10649 $as_echo "$dynamic_linker" >&6; }
10650 test "$dynamic_linker" = no && can_build_shared=no
10652 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10653 if test "$GCC" = yes; then
10654 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10657 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10658 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10660 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10661 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10756 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10758 if test -n "$hardcode_libdir_flag_spec" ||
10759 test -n "$runpath_var" ||
10760 test "X$hardcode_automatic" = "Xyes" ; then
10762 # We can hardcode non-existent directories.
10763 if test "$hardcode_direct" != no &&
10764 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10765 # have to relink, otherwise we might link with an installed library
10766 # when we should be linking with a yet-to-be-installed one
10767 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10768 test "$hardcode_minus_L" != no; then
10769 # Linking always hardcodes the temporary library directory.
10770 hardcode_action=relink
10772 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10773 hardcode_action=immediate
10776 # We cannot hardcode anything, or else we can only hardcode existing
10778 hardcode_action=unsupported
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10781 $as_echo "$hardcode_action" >&6; }
10783 if test "$hardcode_action" = relink ||
10784 test "$inherit_rpath" = yes; then
10785 # Fast installation is not supported
10786 enable_fast_install=no
10787 elif test "$shlibpath_overrides_runpath" = yes ||
10788 test "$enable_shared" = no; then
10789 # Fast installation is not necessary
10790 enable_fast_install=needless
10798 if test "x$enable_dlopen" != xyes; then
10799 enable_dlopen=unknown
10800 enable_dlopen_self=unknown
10801 enable_dlopen_self_static=unknown
10808 lt_cv_dlopen="load_add_on"
10810 lt_cv_dlopen_self=yes
10813 mingw* | pw32* | cegcc*)
10814 lt_cv_dlopen="LoadLibrary"
10819 lt_cv_dlopen="dlopen"
10824 # if libdl is installed we need to link against it
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10826 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10827 if ${ac_cv_lib_dl_dlopen+:} false; then :
10828 $as_echo_n "(cached) " >&6
10830 ac_check_lib_save_LIBS=$LIBS
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10835 /* Override any GCC internal prototype to avoid an error.
10836 Use char because int might match the return type of a GCC
10837 builtin and then its argument prototype would still apply. */
10850 if ac_fn_c_try_link "$LINENO"; then :
10851 ac_cv_lib_dl_dlopen=yes
10853 ac_cv_lib_dl_dlopen=no
10855 rm -f core conftest.err conftest.$ac_objext \
10856 conftest$ac_exeext conftest.$ac_ext
10857 LIBS=$ac_check_lib_save_LIBS
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10860 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10861 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10865 lt_cv_dlopen="dyld"
10867 lt_cv_dlopen_self=yes
10874 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10875 if test "x$ac_cv_func_shl_load" = xyes; then :
10876 lt_cv_dlopen="shl_load"
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10879 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10880 if ${ac_cv_lib_dld_shl_load+:} false; then :
10881 $as_echo_n "(cached) " >&6
10883 ac_check_lib_save_LIBS=$LIBS
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10898 return shl_load ();
10903 if ac_fn_c_try_link "$LINENO"; then :
10904 ac_cv_lib_dld_shl_load=yes
10906 ac_cv_lib_dld_shl_load=no
10908 rm -f core conftest.err conftest.$ac_objext \
10909 conftest$ac_exeext conftest.$ac_ext
10910 LIBS=$ac_check_lib_save_LIBS
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10913 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10914 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10915 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10917 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10918 if test "x$ac_cv_func_dlopen" = xyes; then :
10919 lt_cv_dlopen="dlopen"
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10922 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10923 if ${ac_cv_lib_dl_dlopen+:} false; then :
10924 $as_echo_n "(cached) " >&6
10926 ac_check_lib_save_LIBS=$LIBS
10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 /* end confdefs.h. */
10931 /* Override any GCC internal prototype to avoid an error.
10932 Use char because int might match the return type of a GCC
10933 builtin and then its argument prototype would still apply. */
10946 if ac_fn_c_try_link "$LINENO"; then :
10947 ac_cv_lib_dl_dlopen=yes
10949 ac_cv_lib_dl_dlopen=no
10951 rm -f core conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
10953 LIBS=$ac_check_lib_save_LIBS
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10956 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10957 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10961 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10962 if ${ac_cv_lib_svld_dlopen+:} false; then :
10963 $as_echo_n "(cached) " >&6
10965 ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-lsvld $LIBS"
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10970 /* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10985 if ac_fn_c_try_link "$LINENO"; then :
10986 ac_cv_lib_svld_dlopen=yes
10988 ac_cv_lib_svld_dlopen=no
10990 rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10995 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10996 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11000 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11001 if ${ac_cv_lib_dld_dld_link+:} false; then :
11002 $as_echo_n "(cached) " >&6
11004 ac_check_lib_save_LIBS=$LIBS
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11009 /* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
11019 return dld_link ();
11024 if ac_fn_c_try_link "$LINENO"; then :
11025 ac_cv_lib_dld_dld_link=yes
11027 ac_cv_lib_dld_dld_link=no
11029 rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_lib_save_LIBS
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11034 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11035 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11036 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11057 if test "x$lt_cv_dlopen" != xno; then
11063 case $lt_cv_dlopen in
11065 save_CPPFLAGS="$CPPFLAGS"
11066 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11068 save_LDFLAGS="$LDFLAGS"
11069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11072 LIBS="$lt_cv_dlopen_libs $LIBS"
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11075 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11076 if ${lt_cv_dlopen_self+:} false; then :
11077 $as_echo_n "(cached) " >&6
11079 if test "$cross_compiling" = yes; then :
11080 lt_cv_dlopen_self=cross
11082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11083 lt_status=$lt_dlunknown
11084 cat > conftest.$ac_ext <<_LT_EOF
11085 #line $LINENO "configure"
11086 #include "confdefs.h"
11095 # define LT_DLGLOBAL RTLD_GLOBAL
11098 # define LT_DLGLOBAL DL_GLOBAL
11100 # define LT_DLGLOBAL 0
11104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11105 find out it does not work in some platform. */
11106 #ifndef LT_DLLAZY_OR_NOW
11108 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11111 # define LT_DLLAZY_OR_NOW DL_LAZY
11114 # define LT_DLLAZY_OR_NOW RTLD_NOW
11117 # define LT_DLLAZY_OR_NOW DL_NOW
11119 # define LT_DLLAZY_OR_NOW 0
11126 /* When -fvisbility=hidden is used, assume the code has been annotated
11127 correspondingly for the symbols needed. */
11128 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11129 int fnord () __attribute__((visibility("default")));
11132 int fnord () { return 42; }
11135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11136 int status = $lt_dlunknown;
11140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11143 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11144 else puts (dlerror ());
11146 /* dlclose (self); */
11154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11155 (eval $ac_link) 2>&5
11157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11158 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11159 (./conftest; exit; ) >&5 2>/dev/null
11161 case x$lt_status in
11162 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11163 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11164 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11167 # compilation failed
11168 lt_cv_dlopen_self=no
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11176 $as_echo "$lt_cv_dlopen_self" >&6; }
11178 if test "x$lt_cv_dlopen_self" = xyes; then
11179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11181 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11182 if ${lt_cv_dlopen_self_static+:} false; then :
11183 $as_echo_n "(cached) " >&6
11185 if test "$cross_compiling" = yes; then :
11186 lt_cv_dlopen_self_static=cross
11188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11189 lt_status=$lt_dlunknown
11190 cat > conftest.$ac_ext <<_LT_EOF
11191 #line $LINENO "configure"
11192 #include "confdefs.h"
11201 # define LT_DLGLOBAL RTLD_GLOBAL
11204 # define LT_DLGLOBAL DL_GLOBAL
11206 # define LT_DLGLOBAL 0
11210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11211 find out it does not work in some platform. */
11212 #ifndef LT_DLLAZY_OR_NOW
11214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11217 # define LT_DLLAZY_OR_NOW DL_LAZY
11220 # define LT_DLLAZY_OR_NOW RTLD_NOW
11223 # define LT_DLLAZY_OR_NOW DL_NOW
11225 # define LT_DLLAZY_OR_NOW 0
11232 /* When -fvisbility=hidden is used, assume the code has been annotated
11233 correspondingly for the symbols needed. */
11234 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11235 int fnord () __attribute__((visibility("default")));
11238 int fnord () { return 42; }
11241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11242 int status = $lt_dlunknown;
11246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11249 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11250 else puts (dlerror ());
11252 /* dlclose (self); */
11260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11261 (eval $ac_link) 2>&5
11263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11264 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11265 (./conftest; exit; ) >&5 2>/dev/null
11267 case x$lt_status in
11268 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11269 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11270 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11273 # compilation failed
11274 lt_cv_dlopen_self_static=no
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11282 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11285 CPPFLAGS="$save_CPPFLAGS"
11286 LDFLAGS="$save_LDFLAGS"
11291 case $lt_cv_dlopen_self in
11292 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11293 *) enable_dlopen_self=unknown ;;
11296 case $lt_cv_dlopen_self_static in
11297 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11298 *) enable_dlopen_self_static=unknown ;;
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11321 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11322 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11323 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11324 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11326 $as_echo "yes" >&6; }
11328 # FIXME - insert some real tests, host_os isn't really good enough
11331 if test -n "$STRIP" ; then
11332 striplib="$STRIP -x"
11333 old_striplib="$STRIP -S"
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11335 $as_echo "yes" >&6; }
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11359 # Report which library types will actually be built
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11361 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11363 $as_echo "$can_build_shared" >&6; }
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11366 $as_echo_n "checking whether to build shared libraries... " >&6; }
11367 test "$can_build_shared" = "no" && enable_shared=no
11369 # On AIX, shared libraries and static libraries use the same namespace, and
11370 # are all built from PIC.
11373 test "$enable_shared" = yes && enable_static=no
11374 if test -n "$RANLIB"; then
11375 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11376 postinstall_cmds='$RANLIB $lib'
11381 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11382 test "$enable_shared" = yes && enable_static=no
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11387 $as_echo "$enable_shared" >&6; }
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11390 $as_echo_n "checking whether to build static libraries... " >&6; }
11391 # Make sure either enable_shared or enable_static is yes.
11392 test "$enable_shared" = yes || enable_static=yes
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11394 $as_echo "$enable_static" >&6; }
11401 ac_cpp='$CPP $CPPFLAGS'
11402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11422 ac_config_commands="$ac_config_commands libtool"
11427 # Only expand once:
11431 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11444 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11445 if ${ac_cv_prog_cc_c99+:} false; then :
11446 $as_echo_n "(cached) " >&6
11448 ac_cv_prog_cc_c99=no
11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451 /* end confdefs.h. */
11452 #include <stdarg.h>
11453 #include <stdbool.h>
11454 #include <stdlib.h>
11458 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11459 #define debug(...) fprintf (stderr, __VA_ARGS__)
11460 #define showlist(...) puts (#__VA_ARGS__)
11461 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11463 test_varargs_macros (void)
11468 debug ("X = %d\n", x);
11469 showlist (The first, second, and third items.);
11470 report (x>y, "x is %d but y is %d", x, y);
11473 // Check long long types.
11474 #define BIG64 18446744073709551615ull
11475 #define BIG32 4294967295ul
11476 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11478 your preprocessor is broken;
11482 your preprocessor is broken;
11484 static long long int bignum = -9223372036854775807LL;
11485 static unsigned long long int ubignum = BIG64;
11487 struct incomplete_array
11493 struct named_init {
11495 const wchar_t *name;
11499 typedef const char *ccp;
11502 test_restrict (ccp restrict text)
11504 // See if C++-style comments work.
11505 // Iterate through items via the restricted pointer.
11506 // Also check for declarations in for loops.
11507 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11512 // Check varargs and va_copy.
11514 test_varargs (const char *format, ...)
11517 va_start (args, format);
11519 va_copy (args_copy, args);
11529 case 's': // string
11530 str = va_arg (args_copy, const char *);
11533 number = va_arg (args_copy, int);
11536 fnumber = va_arg (args_copy, double);
11542 va_end (args_copy);
11551 _Bool success = false;
11554 if (test_restrict ("String literal") == 0)
11556 char *restrict newvar = "Another string";
11559 test_varargs ("s, d' f .", "string", 65, 34.234);
11560 test_varargs_macros ();
11562 // Check flexible array members.
11563 struct incomplete_array *ia =
11564 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11566 for (int i = 0; i < ia->datasize; ++i)
11567 ia->data[i] = i * 1.234;
11569 // Check named initializers.
11570 struct named_init ni = {
11572 .name = L"Test wide string",
11573 .average = 543.34343,
11578 int dynamic_array[ni.number];
11579 dynamic_array[ni.number - 1] = 543;
11581 // work around unused variable warnings
11582 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11583 || dynamic_array[ni.number - 1] != 543);
11589 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11591 CC="$ac_save_CC $ac_arg"
11592 if ac_fn_c_try_compile "$LINENO"; then :
11593 ac_cv_prog_cc_c99=$ac_arg
11595 rm -f core conftest.err conftest.$ac_objext
11596 test "x$ac_cv_prog_cc_c99" != "xno" && break
11598 rm -f conftest.$ac_ext
11603 case "x$ac_cv_prog_cc_c99" in
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11606 $as_echo "none needed" >&6; } ;;
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11609 $as_echo "unsupported" >&6; } ;;
11611 CC="$CC $ac_cv_prog_cc_c99"
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11613 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11615 if test "x$ac_cv_prog_cc_c99" != xno; then :
11624 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11625 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11631 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11632 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11638 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11639 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11648 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11649 if test -n "$ac_tool_prefix"; then
11650 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11651 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11653 $as_echo_n "checking for $ac_word... " >&6; }
11654 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11655 $as_echo_n "(cached) " >&6
11657 case $PKG_CONFIG in
11659 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663 for as_dir in $PATH
11666 test -z "$as_dir" && as_dir=.
11667 for ac_exec_ext in '' $ac_executable_extensions; do
11668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11669 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11681 if test -n "$PKG_CONFIG"; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11683 $as_echo "$PKG_CONFIG" >&6; }
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686 $as_echo "no" >&6; }
11691 if test -z "$ac_cv_path_PKG_CONFIG"; then
11692 ac_pt_PKG_CONFIG=$PKG_CONFIG
11693 # Extract the first word of "pkg-config", so it can be a program name with args.
11694 set dummy pkg-config; ac_word=$2
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696 $as_echo_n "checking for $ac_word... " >&6; }
11697 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11698 $as_echo_n "(cached) " >&6
11700 case $ac_pt_PKG_CONFIG in
11702 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706 for as_dir in $PATH
11709 test -z "$as_dir" && as_dir=.
11710 for ac_exec_ext in '' $ac_executable_extensions; do
11711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11712 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11723 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11724 if test -n "$ac_pt_PKG_CONFIG"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11726 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729 $as_echo "no" >&6; }
11732 if test "x$ac_pt_PKG_CONFIG" = x; then
11735 case $cross_compiling:$ac_tool_warned in
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11739 ac_tool_warned=yes ;;
11741 PKG_CONFIG=$ac_pt_PKG_CONFIG
11744 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11748 if test -n "$PKG_CONFIG"; then
11749 _pkg_min_version=0.9.0
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11751 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11752 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11754 $as_echo "yes" >&6; }
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11767 # Check whether --enable-selective-werror was given.
11768 if test "${enable_selective_werror+set}" = set; then :
11769 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11771 SELECTIVE_WERROR=yes
11778 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11779 if test "x$SUNCC" = "xyes"; then
11785 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11799 xorg_testset_save_CFLAGS="$CFLAGS"
11801 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11804 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11805 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11806 $as_echo_n "(cached) " >&6
11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809 /* end confdefs.h. */
11812 if ac_fn_c_try_compile "$LINENO"; then :
11813 xorg_cv_cc_flag_unknown_warning_option=yes
11815 xorg_cv_cc_flag_unknown_warning_option=no
11817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11820 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11822 CFLAGS="$xorg_testset_save_CFLAGS"
11825 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11831 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11832 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11833 $as_echo_n "(cached) " >&6
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11839 if ac_fn_c_try_compile "$LINENO"; then :
11840 xorg_cv_cc_flag_unused_command_line_argument=yes
11842 xorg_cv_cc_flag_unused_command_line_argument=no
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11847 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11849 CFLAGS="$xorg_testset_save_CFLAGS"
11854 if test $found = "no" ; then
11855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11863 CFLAGS="$CFLAGS -Wall"
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11866 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11867 cacheid=xorg_cv_cc_flag__Wall
11868 if eval \${$cacheid+:} false; then :
11869 $as_echo_n "(cached) " >&6
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11882 if ac_fn_c_try_link "$LINENO"; then :
11887 rm -f core conftest.err conftest.$ac_objext \
11888 conftest$ac_exeext conftest.$ac_ext
11892 CFLAGS="$xorg_testset_save_CFLAGS"
11894 eval supported=\$$cacheid
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11896 $as_echo "$supported" >&6; }
11897 if test "$supported" = "yes" ; then
11898 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11917 xorg_testset_save_CFLAGS="$CFLAGS"
11919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11922 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11923 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11924 $as_echo_n "(cached) " >&6
11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h. */
11930 if ac_fn_c_try_compile "$LINENO"; then :
11931 xorg_cv_cc_flag_unknown_warning_option=yes
11933 xorg_cv_cc_flag_unknown_warning_option=no
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11938 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11940 CFLAGS="$xorg_testset_save_CFLAGS"
11943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11949 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11950 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11951 $as_echo_n "(cached) " >&6
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11957 if ac_fn_c_try_compile "$LINENO"; then :
11958 xorg_cv_cc_flag_unused_command_line_argument=yes
11960 xorg_cv_cc_flag_unused_command_line_argument=no
11962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11965 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11966 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11967 CFLAGS="$xorg_testset_save_CFLAGS"
11972 if test $found = "no" ; then
11973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11981 CFLAGS="$CFLAGS -Wpointer-arith"
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11984 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11985 cacheid=xorg_cv_cc_flag__Wpointer_arith
11986 if eval \${$cacheid+:} false; then :
11987 $as_echo_n "(cached) " >&6
11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h. */
12000 if ac_fn_c_try_link "$LINENO"; then :
12005 rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12010 CFLAGS="$xorg_testset_save_CFLAGS"
12012 eval supported=\$$cacheid
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12014 $as_echo "$supported" >&6; }
12015 if test "$supported" = "yes" ; then
12016 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12035 xorg_testset_save_CFLAGS="$CFLAGS"
12037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12040 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12041 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12042 $as_echo_n "(cached) " >&6
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12048 if ac_fn_c_try_compile "$LINENO"; then :
12049 xorg_cv_cc_flag_unknown_warning_option=yes
12051 xorg_cv_cc_flag_unknown_warning_option=no
12053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12056 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12058 CFLAGS="$xorg_testset_save_CFLAGS"
12061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12067 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12068 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12069 $as_echo_n "(cached) " >&6
12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12075 if ac_fn_c_try_compile "$LINENO"; then :
12076 xorg_cv_cc_flag_unused_command_line_argument=yes
12078 xorg_cv_cc_flag_unused_command_line_argument=no
12080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12083 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12085 CFLAGS="$xorg_testset_save_CFLAGS"
12090 if test $found = "no" ; then
12091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12099 CFLAGS="$CFLAGS -Wmissing-declarations"
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12102 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12103 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12104 if eval \${$cacheid+:} false; then :
12105 $as_echo_n "(cached) " >&6
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12118 if ac_fn_c_try_link "$LINENO"; then :
12123 rm -f core conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
12128 CFLAGS="$xorg_testset_save_CFLAGS"
12130 eval supported=\$$cacheid
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12132 $as_echo "$supported" >&6; }
12133 if test "$supported" = "yes" ; then
12134 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12153 xorg_testset_save_CFLAGS="$CFLAGS"
12155 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12158 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12159 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12160 $as_echo_n "(cached) " >&6
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12166 if ac_fn_c_try_compile "$LINENO"; then :
12167 xorg_cv_cc_flag_unknown_warning_option=yes
12169 xorg_cv_cc_flag_unknown_warning_option=no
12171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12174 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12176 CFLAGS="$xorg_testset_save_CFLAGS"
12179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12185 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12186 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12187 $as_echo_n "(cached) " >&6
12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12193 if ac_fn_c_try_compile "$LINENO"; then :
12194 xorg_cv_cc_flag_unused_command_line_argument=yes
12196 xorg_cv_cc_flag_unused_command_line_argument=no
12198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12201 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12203 CFLAGS="$xorg_testset_save_CFLAGS"
12208 if test $found = "no" ; then
12209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12217 CFLAGS="$CFLAGS -Wformat=2"
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12220 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12221 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12222 if eval \${$cacheid+:} false; then :
12223 $as_echo_n "(cached) " >&6
12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h. */
12236 if ac_fn_c_try_link "$LINENO"; then :
12241 rm -f core conftest.err conftest.$ac_objext \
12242 conftest$ac_exeext conftest.$ac_ext
12246 CFLAGS="$xorg_testset_save_CFLAGS"
12248 eval supported=\$$cacheid
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12250 $as_echo "$supported" >&6; }
12251 if test "$supported" = "yes" ; then
12252 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12257 if test $found = "no" ; then
12258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12266 CFLAGS="$CFLAGS -Wformat"
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12269 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12270 cacheid=xorg_cv_cc_flag__Wformat
12271 if eval \${$cacheid+:} false; then :
12272 $as_echo_n "(cached) " >&6
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12285 if ac_fn_c_try_link "$LINENO"; then :
12290 rm -f core conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext conftest.$ac_ext
12295 CFLAGS="$xorg_testset_save_CFLAGS"
12297 eval supported=\$$cacheid
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12299 $as_echo "$supported" >&6; }
12300 if test "$supported" = "yes" ; then
12301 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12322 xorg_testset_save_CFLAGS="$CFLAGS"
12324 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12327 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12328 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12329 $as_echo_n "(cached) " >&6
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12335 if ac_fn_c_try_compile "$LINENO"; then :
12336 xorg_cv_cc_flag_unknown_warning_option=yes
12338 xorg_cv_cc_flag_unknown_warning_option=no
12340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12343 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12345 CFLAGS="$xorg_testset_save_CFLAGS"
12348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12354 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12355 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12356 $as_echo_n "(cached) " >&6
12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h. */
12362 if ac_fn_c_try_compile "$LINENO"; then :
12363 xorg_cv_cc_flag_unused_command_line_argument=yes
12365 xorg_cv_cc_flag_unused_command_line_argument=no
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12370 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12372 CFLAGS="$xorg_testset_save_CFLAGS"
12377 if test $found = "no" ; then
12378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12386 CFLAGS="$CFLAGS -Wstrict-prototypes"
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12389 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12390 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12391 if eval \${$cacheid+:} false; then :
12392 $as_echo_n "(cached) " >&6
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h. */
12405 if ac_fn_c_try_link "$LINENO"; then :
12410 rm -f core conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext conftest.$ac_ext
12415 CFLAGS="$xorg_testset_save_CFLAGS"
12417 eval supported=\$$cacheid
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12419 $as_echo "$supported" >&6; }
12420 if test "$supported" = "yes" ; then
12421 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12440 xorg_testset_save_CFLAGS="$CFLAGS"
12442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12445 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12446 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12447 $as_echo_n "(cached) " >&6
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12453 if ac_fn_c_try_compile "$LINENO"; then :
12454 xorg_cv_cc_flag_unknown_warning_option=yes
12456 xorg_cv_cc_flag_unknown_warning_option=no
12458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12461 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12463 CFLAGS="$xorg_testset_save_CFLAGS"
12466 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12472 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12473 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12474 $as_echo_n "(cached) " >&6
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12480 if ac_fn_c_try_compile "$LINENO"; then :
12481 xorg_cv_cc_flag_unused_command_line_argument=yes
12483 xorg_cv_cc_flag_unused_command_line_argument=no
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12488 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12490 CFLAGS="$xorg_testset_save_CFLAGS"
12495 if test $found = "no" ; then
12496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12504 CFLAGS="$CFLAGS -Wmissing-prototypes"
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12507 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12508 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12509 if eval \${$cacheid+:} false; then :
12510 $as_echo_n "(cached) " >&6
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12523 if ac_fn_c_try_link "$LINENO"; then :
12528 rm -f core conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext conftest.$ac_ext
12533 CFLAGS="$xorg_testset_save_CFLAGS"
12535 eval supported=\$$cacheid
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12537 $as_echo "$supported" >&6; }
12538 if test "$supported" = "yes" ; then
12539 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12558 xorg_testset_save_CFLAGS="$CFLAGS"
12560 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12563 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12564 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12565 $as_echo_n "(cached) " >&6
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12571 if ac_fn_c_try_compile "$LINENO"; then :
12572 xorg_cv_cc_flag_unknown_warning_option=yes
12574 xorg_cv_cc_flag_unknown_warning_option=no
12576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12579 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12581 CFLAGS="$xorg_testset_save_CFLAGS"
12584 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12590 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12591 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12592 $as_echo_n "(cached) " >&6
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12598 if ac_fn_c_try_compile "$LINENO"; then :
12599 xorg_cv_cc_flag_unused_command_line_argument=yes
12601 xorg_cv_cc_flag_unused_command_line_argument=no
12603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12606 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12608 CFLAGS="$xorg_testset_save_CFLAGS"
12613 if test $found = "no" ; then
12614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12622 CFLAGS="$CFLAGS -Wnested-externs"
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12625 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12626 cacheid=xorg_cv_cc_flag__Wnested_externs
12627 if eval \${$cacheid+:} false; then :
12628 $as_echo_n "(cached) " >&6
12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h. */
12641 if ac_fn_c_try_link "$LINENO"; then :
12646 rm -f core conftest.err conftest.$ac_objext \
12647 conftest$ac_exeext conftest.$ac_ext
12651 CFLAGS="$xorg_testset_save_CFLAGS"
12653 eval supported=\$$cacheid
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12655 $as_echo "$supported" >&6; }
12656 if test "$supported" = "yes" ; then
12657 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12676 xorg_testset_save_CFLAGS="$CFLAGS"
12678 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12681 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12682 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12683 $as_echo_n "(cached) " >&6
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12689 if ac_fn_c_try_compile "$LINENO"; then :
12690 xorg_cv_cc_flag_unknown_warning_option=yes
12692 xorg_cv_cc_flag_unknown_warning_option=no
12694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12697 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12698 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12699 CFLAGS="$xorg_testset_save_CFLAGS"
12702 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12708 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12709 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12710 $as_echo_n "(cached) " >&6
12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12716 if ac_fn_c_try_compile "$LINENO"; then :
12717 xorg_cv_cc_flag_unused_command_line_argument=yes
12719 xorg_cv_cc_flag_unused_command_line_argument=no
12721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12724 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12726 CFLAGS="$xorg_testset_save_CFLAGS"
12731 if test $found = "no" ; then
12732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12740 CFLAGS="$CFLAGS -Wbad-function-cast"
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12743 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12744 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12745 if eval \${$cacheid+:} false; then :
12746 $as_echo_n "(cached) " >&6
12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h. */
12759 if ac_fn_c_try_link "$LINENO"; then :
12764 rm -f core conftest.err conftest.$ac_objext \
12765 conftest$ac_exeext conftest.$ac_ext
12769 CFLAGS="$xorg_testset_save_CFLAGS"
12771 eval supported=\$$cacheid
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12773 $as_echo "$supported" >&6; }
12774 if test "$supported" = "yes" ; then
12775 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12794 xorg_testset_save_CFLAGS="$CFLAGS"
12796 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12799 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12800 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12801 $as_echo_n "(cached) " >&6
12803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h. */
12807 if ac_fn_c_try_compile "$LINENO"; then :
12808 xorg_cv_cc_flag_unknown_warning_option=yes
12810 xorg_cv_cc_flag_unknown_warning_option=no
12812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12815 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12817 CFLAGS="$xorg_testset_save_CFLAGS"
12820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12826 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12827 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12828 $as_echo_n "(cached) " >&6
12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12834 if ac_fn_c_try_compile "$LINENO"; then :
12835 xorg_cv_cc_flag_unused_command_line_argument=yes
12837 xorg_cv_cc_flag_unused_command_line_argument=no
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12842 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12844 CFLAGS="$xorg_testset_save_CFLAGS"
12849 if test $found = "no" ; then
12850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12858 CFLAGS="$CFLAGS -Wold-style-definition"
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12861 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12862 cacheid=xorg_cv_cc_flag__Wold_style_definition
12863 if eval \${$cacheid+:} false; then :
12864 $as_echo_n "(cached) " >&6
12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12877 if ac_fn_c_try_link "$LINENO"; then :
12882 rm -f core conftest.err conftest.$ac_objext \
12883 conftest$ac_exeext conftest.$ac_ext
12887 CFLAGS="$xorg_testset_save_CFLAGS"
12889 eval supported=\$$cacheid
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12891 $as_echo "$supported" >&6; }
12892 if test "$supported" = "yes" ; then
12893 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12898 if test $found = "no" ; then
12899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12907 CFLAGS="$CFLAGS -fd"
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
12910 $as_echo_n "checking if $CC supports -fd... " >&6; }
12911 cacheid=xorg_cv_cc_flag__fd
12912 if eval \${$cacheid+:} false; then :
12913 $as_echo_n "(cached) " >&6
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12926 if ac_fn_c_try_link "$LINENO"; then :
12931 rm -f core conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12936 CFLAGS="$xorg_testset_save_CFLAGS"
12938 eval supported=\$$cacheid
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12940 $as_echo "$supported" >&6; }
12941 if test "$supported" = "yes" ; then
12942 BASE_CFLAGS="$BASE_CFLAGS -fd"
12961 xorg_testset_save_CFLAGS="$CFLAGS"
12963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12966 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12967 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12968 $as_echo_n "(cached) " >&6
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12974 if ac_fn_c_try_compile "$LINENO"; then :
12975 xorg_cv_cc_flag_unknown_warning_option=yes
12977 xorg_cv_cc_flag_unknown_warning_option=no
12979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12982 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12984 CFLAGS="$xorg_testset_save_CFLAGS"
12987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12993 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12994 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12995 $as_echo_n "(cached) " >&6
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
13001 if ac_fn_c_try_compile "$LINENO"; then :
13002 xorg_cv_cc_flag_unused_command_line_argument=yes
13004 xorg_cv_cc_flag_unused_command_line_argument=no
13006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13009 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13011 CFLAGS="$xorg_testset_save_CFLAGS"
13016 if test $found = "no" ; then
13017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13025 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13028 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13029 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13030 if eval \${$cacheid+:} false; then :
13031 $as_echo_n "(cached) " >&6
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13044 if ac_fn_c_try_link "$LINENO"; then :
13049 rm -f core conftest.err conftest.$ac_objext \
13050 conftest$ac_exeext conftest.$ac_ext
13054 CFLAGS="$xorg_testset_save_CFLAGS"
13056 eval supported=\$$cacheid
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13058 $as_echo "$supported" >&6; }
13059 if test "$supported" = "yes" ; then
13060 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13069 # This chunk adds additional warnings that could catch undesired effects.
13083 xorg_testset_save_CFLAGS="$CFLAGS"
13085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13090 $as_echo_n "(cached) " >&6
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13096 if ac_fn_c_try_compile "$LINENO"; then :
13097 xorg_cv_cc_flag_unknown_warning_option=yes
13099 xorg_cv_cc_flag_unknown_warning_option=no
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13106 CFLAGS="$xorg_testset_save_CFLAGS"
13109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13117 $as_echo_n "(cached) " >&6
13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h. */
13123 if ac_fn_c_try_compile "$LINENO"; then :
13124 xorg_cv_cc_flag_unused_command_line_argument=yes
13126 xorg_cv_cc_flag_unused_command_line_argument=no
13128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13133 CFLAGS="$xorg_testset_save_CFLAGS"
13138 if test $found = "no" ; then
13139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13147 CFLAGS="$CFLAGS -Wunused"
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13150 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13151 cacheid=xorg_cv_cc_flag__Wunused
13152 if eval \${$cacheid+:} false; then :
13153 $as_echo_n "(cached) " >&6
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13166 if ac_fn_c_try_link "$LINENO"; then :
13171 rm -f core conftest.err conftest.$ac_objext \
13172 conftest$ac_exeext conftest.$ac_ext
13176 CFLAGS="$xorg_testset_save_CFLAGS"
13178 eval supported=\$$cacheid
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13180 $as_echo "$supported" >&6; }
13181 if test "$supported" = "yes" ; then
13182 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13201 xorg_testset_save_CFLAGS="$CFLAGS"
13203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13208 $as_echo_n "(cached) " >&6
13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h. */
13214 if ac_fn_c_try_compile "$LINENO"; then :
13215 xorg_cv_cc_flag_unknown_warning_option=yes
13217 xorg_cv_cc_flag_unknown_warning_option=no
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13224 CFLAGS="$xorg_testset_save_CFLAGS"
13227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13235 $as_echo_n "(cached) " >&6
13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13241 if ac_fn_c_try_compile "$LINENO"; then :
13242 xorg_cv_cc_flag_unused_command_line_argument=yes
13244 xorg_cv_cc_flag_unused_command_line_argument=no
13246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13251 CFLAGS="$xorg_testset_save_CFLAGS"
13256 if test $found = "no" ; then
13257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13265 CFLAGS="$CFLAGS -Wuninitialized"
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13268 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13269 cacheid=xorg_cv_cc_flag__Wuninitialized
13270 if eval \${$cacheid+:} false; then :
13271 $as_echo_n "(cached) " >&6
13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h. */
13284 if ac_fn_c_try_link "$LINENO"; then :
13289 rm -f core conftest.err conftest.$ac_objext \
13290 conftest$ac_exeext conftest.$ac_ext
13294 CFLAGS="$xorg_testset_save_CFLAGS"
13296 eval supported=\$$cacheid
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13298 $as_echo "$supported" >&6; }
13299 if test "$supported" = "yes" ; then
13300 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13319 xorg_testset_save_CFLAGS="$CFLAGS"
13321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13326 $as_echo_n "(cached) " >&6
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13332 if ac_fn_c_try_compile "$LINENO"; then :
13333 xorg_cv_cc_flag_unknown_warning_option=yes
13335 xorg_cv_cc_flag_unknown_warning_option=no
13337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13342 CFLAGS="$xorg_testset_save_CFLAGS"
13345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13353 $as_echo_n "(cached) " >&6
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13359 if ac_fn_c_try_compile "$LINENO"; then :
13360 xorg_cv_cc_flag_unused_command_line_argument=yes
13362 xorg_cv_cc_flag_unused_command_line_argument=no
13364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13369 CFLAGS="$xorg_testset_save_CFLAGS"
13374 if test $found = "no" ; then
13375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13383 CFLAGS="$CFLAGS -Wshadow"
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13386 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13387 cacheid=xorg_cv_cc_flag__Wshadow
13388 if eval \${$cacheid+:} false; then :
13389 $as_echo_n "(cached) " >&6
13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h. */
13402 if ac_fn_c_try_link "$LINENO"; then :
13407 rm -f core conftest.err conftest.$ac_objext \
13408 conftest$ac_exeext conftest.$ac_ext
13412 CFLAGS="$xorg_testset_save_CFLAGS"
13414 eval supported=\$$cacheid
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13416 $as_echo "$supported" >&6; }
13417 if test "$supported" = "yes" ; then
13418 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13437 xorg_testset_save_CFLAGS="$CFLAGS"
13439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13442 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13443 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13444 $as_echo_n "(cached) " >&6
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13450 if ac_fn_c_try_compile "$LINENO"; then :
13451 xorg_cv_cc_flag_unknown_warning_option=yes
13453 xorg_cv_cc_flag_unknown_warning_option=no
13455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13458 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13460 CFLAGS="$xorg_testset_save_CFLAGS"
13463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13469 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13470 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13471 $as_echo_n "(cached) " >&6
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13477 if ac_fn_c_try_compile "$LINENO"; then :
13478 xorg_cv_cc_flag_unused_command_line_argument=yes
13480 xorg_cv_cc_flag_unused_command_line_argument=no
13482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13485 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13487 CFLAGS="$xorg_testset_save_CFLAGS"
13492 if test $found = "no" ; then
13493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13501 CFLAGS="$CFLAGS -Wmissing-noreturn"
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13504 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13505 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13506 if eval \${$cacheid+:} false; then :
13507 $as_echo_n "(cached) " >&6
13509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h. */
13520 if ac_fn_c_try_link "$LINENO"; then :
13525 rm -f core conftest.err conftest.$ac_objext \
13526 conftest$ac_exeext conftest.$ac_ext
13530 CFLAGS="$xorg_testset_save_CFLAGS"
13532 eval supported=\$$cacheid
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13534 $as_echo "$supported" >&6; }
13535 if test "$supported" = "yes" ; then
13536 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13555 xorg_testset_save_CFLAGS="$CFLAGS"
13557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13560 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13561 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13562 $as_echo_n "(cached) " >&6
13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13568 if ac_fn_c_try_compile "$LINENO"; then :
13569 xorg_cv_cc_flag_unknown_warning_option=yes
13571 xorg_cv_cc_flag_unknown_warning_option=no
13573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13576 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13578 CFLAGS="$xorg_testset_save_CFLAGS"
13581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13587 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13588 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13589 $as_echo_n "(cached) " >&6
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13595 if ac_fn_c_try_compile "$LINENO"; then :
13596 xorg_cv_cc_flag_unused_command_line_argument=yes
13598 xorg_cv_cc_flag_unused_command_line_argument=no
13600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13603 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13605 CFLAGS="$xorg_testset_save_CFLAGS"
13610 if test $found = "no" ; then
13611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13619 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13622 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13623 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13624 if eval \${$cacheid+:} false; then :
13625 $as_echo_n "(cached) " >&6
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13638 if ac_fn_c_try_link "$LINENO"; then :
13643 rm -f core conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13648 CFLAGS="$xorg_testset_save_CFLAGS"
13650 eval supported=\$$cacheid
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13652 $as_echo "$supported" >&6; }
13653 if test "$supported" = "yes" ; then
13654 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13673 xorg_testset_save_CFLAGS="$CFLAGS"
13675 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13678 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13679 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13680 $as_echo_n "(cached) " >&6
13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13686 if ac_fn_c_try_compile "$LINENO"; then :
13687 xorg_cv_cc_flag_unknown_warning_option=yes
13689 xorg_cv_cc_flag_unknown_warning_option=no
13691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13694 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13696 CFLAGS="$xorg_testset_save_CFLAGS"
13699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13705 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13706 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13707 $as_echo_n "(cached) " >&6
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13713 if ac_fn_c_try_compile "$LINENO"; then :
13714 xorg_cv_cc_flag_unused_command_line_argument=yes
13716 xorg_cv_cc_flag_unused_command_line_argument=no
13718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13721 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13723 CFLAGS="$xorg_testset_save_CFLAGS"
13728 if test $found = "no" ; then
13729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13737 CFLAGS="$CFLAGS -Wredundant-decls"
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13740 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13741 cacheid=xorg_cv_cc_flag__Wredundant_decls
13742 if eval \${$cacheid+:} false; then :
13743 $as_echo_n "(cached) " >&6
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13756 if ac_fn_c_try_link "$LINENO"; then :
13761 rm -f core conftest.err conftest.$ac_objext \
13762 conftest$ac_exeext conftest.$ac_ext
13766 CFLAGS="$xorg_testset_save_CFLAGS"
13768 eval supported=\$$cacheid
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13770 $as_echo "$supported" >&6; }
13771 if test "$supported" = "yes" ; then
13772 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13791 xorg_testset_save_CFLAGS="$CFLAGS"
13793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13796 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13797 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13798 $as_echo_n "(cached) " >&6
13800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13801 /* end confdefs.h. */
13804 if ac_fn_c_try_compile "$LINENO"; then :
13805 xorg_cv_cc_flag_unknown_warning_option=yes
13807 xorg_cv_cc_flag_unknown_warning_option=no
13809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13812 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13813 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13814 CFLAGS="$xorg_testset_save_CFLAGS"
13817 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13823 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13824 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13825 $as_echo_n "(cached) " >&6
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13831 if ac_fn_c_try_compile "$LINENO"; then :
13832 xorg_cv_cc_flag_unused_command_line_argument=yes
13834 xorg_cv_cc_flag_unused_command_line_argument=no
13836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13839 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13840 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13841 CFLAGS="$xorg_testset_save_CFLAGS"
13846 if test $found = "no" ; then
13847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13851 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13855 CFLAGS="$CFLAGS -Wlogical-op"
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
13858 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
13859 cacheid=xorg_cv_cc_flag__Wlogical_op
13860 if eval \${$cacheid+:} false; then :
13861 $as_echo_n "(cached) " >&6
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13874 if ac_fn_c_try_link "$LINENO"; then :
13879 rm -f core conftest.err conftest.$ac_objext \
13880 conftest$ac_exeext conftest.$ac_ext
13884 CFLAGS="$xorg_testset_save_CFLAGS"
13886 eval supported=\$$cacheid
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13888 $as_echo "$supported" >&6; }
13889 if test "$supported" = "yes" ; then
13890 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
13897 # These are currently disabled because they are noisy. They will be enabled
13898 # in the future once the codebase is sufficiently modernized to silence
13899 # them. For now, I don't want them to drown out the other warnings.
13900 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13901 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13902 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
13904 # Turn some warnings into errors, so we don't accidently get successful builds
13905 # when there are problems that should be fixed.
13907 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13921 xorg_testset_save_CFLAGS="$CFLAGS"
13923 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13926 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13927 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13928 $as_echo_n "(cached) " >&6
13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13934 if ac_fn_c_try_compile "$LINENO"; then :
13935 xorg_cv_cc_flag_unknown_warning_option=yes
13937 xorg_cv_cc_flag_unknown_warning_option=no
13939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13942 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13944 CFLAGS="$xorg_testset_save_CFLAGS"
13947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13953 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13954 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13955 $as_echo_n "(cached) " >&6
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13961 if ac_fn_c_try_compile "$LINENO"; then :
13962 xorg_cv_cc_flag_unused_command_line_argument=yes
13964 xorg_cv_cc_flag_unused_command_line_argument=no
13966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13969 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13971 CFLAGS="$xorg_testset_save_CFLAGS"
13976 if test $found = "no" ; then
13977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13985 CFLAGS="$CFLAGS -Werror=implicit"
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13988 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13989 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
13990 if eval \${$cacheid+:} false; then :
13991 $as_echo_n "(cached) " >&6
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
14004 if ac_fn_c_try_link "$LINENO"; then :
14009 rm -f core conftest.err conftest.$ac_objext \
14010 conftest$ac_exeext conftest.$ac_ext
14014 CFLAGS="$xorg_testset_save_CFLAGS"
14016 eval supported=\$$cacheid
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14018 $as_echo "$supported" >&6; }
14019 if test "$supported" = "yes" ; then
14020 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14025 if test $found = "no" ; then
14026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14034 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14037 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14038 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
14039 if eval \${$cacheid+:} false; then :
14040 $as_echo_n "(cached) " >&6
14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14053 if ac_fn_c_try_link "$LINENO"; then :
14058 rm -f core conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
14063 CFLAGS="$xorg_testset_save_CFLAGS"
14065 eval supported=\$$cacheid
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14067 $as_echo "$supported" >&6; }
14068 if test "$supported" = "yes" ; then
14069 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14088 xorg_testset_save_CFLAGS="$CFLAGS"
14090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14093 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14094 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14095 $as_echo_n "(cached) " >&6
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14101 if ac_fn_c_try_compile "$LINENO"; then :
14102 xorg_cv_cc_flag_unknown_warning_option=yes
14104 xorg_cv_cc_flag_unknown_warning_option=no
14106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14109 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14111 CFLAGS="$xorg_testset_save_CFLAGS"
14114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14120 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14121 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14122 $as_echo_n "(cached) " >&6
14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125 /* end confdefs.h. */
14128 if ac_fn_c_try_compile "$LINENO"; then :
14129 xorg_cv_cc_flag_unused_command_line_argument=yes
14131 xorg_cv_cc_flag_unused_command_line_argument=no
14133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14136 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14138 CFLAGS="$xorg_testset_save_CFLAGS"
14143 if test $found = "no" ; then
14144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14152 CFLAGS="$CFLAGS -Werror=nonnull"
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14155 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14156 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14157 if eval \${$cacheid+:} false; then :
14158 $as_echo_n "(cached) " >&6
14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h. */
14171 if ac_fn_c_try_link "$LINENO"; then :
14176 rm -f core conftest.err conftest.$ac_objext \
14177 conftest$ac_exeext conftest.$ac_ext
14181 CFLAGS="$xorg_testset_save_CFLAGS"
14183 eval supported=\$$cacheid
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14185 $as_echo "$supported" >&6; }
14186 if test "$supported" = "yes" ; then
14187 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14206 xorg_testset_save_CFLAGS="$CFLAGS"
14208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14211 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14212 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14213 $as_echo_n "(cached) " >&6
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14219 if ac_fn_c_try_compile "$LINENO"; then :
14220 xorg_cv_cc_flag_unknown_warning_option=yes
14222 xorg_cv_cc_flag_unknown_warning_option=no
14224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14227 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14229 CFLAGS="$xorg_testset_save_CFLAGS"
14232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14238 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14239 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14240 $as_echo_n "(cached) " >&6
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14246 if ac_fn_c_try_compile "$LINENO"; then :
14247 xorg_cv_cc_flag_unused_command_line_argument=yes
14249 xorg_cv_cc_flag_unused_command_line_argument=no
14251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14254 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14256 CFLAGS="$xorg_testset_save_CFLAGS"
14261 if test $found = "no" ; then
14262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14270 CFLAGS="$CFLAGS -Werror=init-self"
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14273 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14274 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14275 if eval \${$cacheid+:} false; then :
14276 $as_echo_n "(cached) " >&6
14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279 /* end confdefs.h. */
14289 if ac_fn_c_try_link "$LINENO"; then :
14294 rm -f core conftest.err conftest.$ac_objext \
14295 conftest$ac_exeext conftest.$ac_ext
14299 CFLAGS="$xorg_testset_save_CFLAGS"
14301 eval supported=\$$cacheid
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14303 $as_echo "$supported" >&6; }
14304 if test "$supported" = "yes" ; then
14305 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14324 xorg_testset_save_CFLAGS="$CFLAGS"
14326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14329 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14330 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14331 $as_echo_n "(cached) " >&6
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14337 if ac_fn_c_try_compile "$LINENO"; then :
14338 xorg_cv_cc_flag_unknown_warning_option=yes
14340 xorg_cv_cc_flag_unknown_warning_option=no
14342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14345 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14347 CFLAGS="$xorg_testset_save_CFLAGS"
14350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14356 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14357 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14358 $as_echo_n "(cached) " >&6
14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14364 if ac_fn_c_try_compile "$LINENO"; then :
14365 xorg_cv_cc_flag_unused_command_line_argument=yes
14367 xorg_cv_cc_flag_unused_command_line_argument=no
14369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14372 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14374 CFLAGS="$xorg_testset_save_CFLAGS"
14379 if test $found = "no" ; then
14380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14388 CFLAGS="$CFLAGS -Werror=main"
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14391 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14392 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14393 if eval \${$cacheid+:} false; then :
14394 $as_echo_n "(cached) " >&6
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14407 if ac_fn_c_try_link "$LINENO"; then :
14412 rm -f core conftest.err conftest.$ac_objext \
14413 conftest$ac_exeext conftest.$ac_ext
14417 CFLAGS="$xorg_testset_save_CFLAGS"
14419 eval supported=\$$cacheid
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14421 $as_echo "$supported" >&6; }
14422 if test "$supported" = "yes" ; then
14423 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14442 xorg_testset_save_CFLAGS="$CFLAGS"
14444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14447 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14448 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14449 $as_echo_n "(cached) " >&6
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14455 if ac_fn_c_try_compile "$LINENO"; then :
14456 xorg_cv_cc_flag_unknown_warning_option=yes
14458 xorg_cv_cc_flag_unknown_warning_option=no
14460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14463 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14465 CFLAGS="$xorg_testset_save_CFLAGS"
14468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14474 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14475 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14476 $as_echo_n "(cached) " >&6
14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14482 if ac_fn_c_try_compile "$LINENO"; then :
14483 xorg_cv_cc_flag_unused_command_line_argument=yes
14485 xorg_cv_cc_flag_unused_command_line_argument=no
14487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14490 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14492 CFLAGS="$xorg_testset_save_CFLAGS"
14497 if test $found = "no" ; then
14498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14506 CFLAGS="$CFLAGS -Werror=missing-braces"
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14509 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14510 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14511 if eval \${$cacheid+:} false; then :
14512 $as_echo_n "(cached) " >&6
14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14525 if ac_fn_c_try_link "$LINENO"; then :
14530 rm -f core conftest.err conftest.$ac_objext \
14531 conftest$ac_exeext conftest.$ac_ext
14535 CFLAGS="$xorg_testset_save_CFLAGS"
14537 eval supported=\$$cacheid
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14539 $as_echo "$supported" >&6; }
14540 if test "$supported" = "yes" ; then
14541 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14560 xorg_testset_save_CFLAGS="$CFLAGS"
14562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14565 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14566 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14567 $as_echo_n "(cached) " >&6
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14573 if ac_fn_c_try_compile "$LINENO"; then :
14574 xorg_cv_cc_flag_unknown_warning_option=yes
14576 xorg_cv_cc_flag_unknown_warning_option=no
14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14581 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14583 CFLAGS="$xorg_testset_save_CFLAGS"
14586 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14592 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14593 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14594 $as_echo_n "(cached) " >&6
14596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14597 /* end confdefs.h. */
14600 if ac_fn_c_try_compile "$LINENO"; then :
14601 xorg_cv_cc_flag_unused_command_line_argument=yes
14603 xorg_cv_cc_flag_unused_command_line_argument=no
14605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14608 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14610 CFLAGS="$xorg_testset_save_CFLAGS"
14615 if test $found = "no" ; then
14616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14624 CFLAGS="$CFLAGS -Werror=sequence-point"
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14627 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14628 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14629 if eval \${$cacheid+:} false; then :
14630 $as_echo_n "(cached) " >&6
14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14643 if ac_fn_c_try_link "$LINENO"; then :
14648 rm -f core conftest.err conftest.$ac_objext \
14649 conftest$ac_exeext conftest.$ac_ext
14653 CFLAGS="$xorg_testset_save_CFLAGS"
14655 eval supported=\$$cacheid
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14657 $as_echo "$supported" >&6; }
14658 if test "$supported" = "yes" ; then
14659 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14678 xorg_testset_save_CFLAGS="$CFLAGS"
14680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14683 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14684 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14685 $as_echo_n "(cached) " >&6
14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688 /* end confdefs.h. */
14691 if ac_fn_c_try_compile "$LINENO"; then :
14692 xorg_cv_cc_flag_unknown_warning_option=yes
14694 xorg_cv_cc_flag_unknown_warning_option=no
14696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14699 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14701 CFLAGS="$xorg_testset_save_CFLAGS"
14704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14710 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14711 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14712 $as_echo_n "(cached) " >&6
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14718 if ac_fn_c_try_compile "$LINENO"; then :
14719 xorg_cv_cc_flag_unused_command_line_argument=yes
14721 xorg_cv_cc_flag_unused_command_line_argument=no
14723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14726 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14728 CFLAGS="$xorg_testset_save_CFLAGS"
14733 if test $found = "no" ; then
14734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14742 CFLAGS="$CFLAGS -Werror=return-type"
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14745 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14746 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14747 if eval \${$cacheid+:} false; then :
14748 $as_echo_n "(cached) " >&6
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14761 if ac_fn_c_try_link "$LINENO"; then :
14766 rm -f core conftest.err conftest.$ac_objext \
14767 conftest$ac_exeext conftest.$ac_ext
14771 CFLAGS="$xorg_testset_save_CFLAGS"
14773 eval supported=\$$cacheid
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14775 $as_echo "$supported" >&6; }
14776 if test "$supported" = "yes" ; then
14777 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14782 if test $found = "no" ; then
14783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14791 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14794 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14795 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14796 if eval \${$cacheid+:} false; then :
14797 $as_echo_n "(cached) " >&6
14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h. */
14810 if ac_fn_c_try_link "$LINENO"; then :
14815 rm -f core conftest.err conftest.$ac_objext \
14816 conftest$ac_exeext conftest.$ac_ext
14820 CFLAGS="$xorg_testset_save_CFLAGS"
14822 eval supported=\$$cacheid
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14824 $as_echo "$supported" >&6; }
14825 if test "$supported" = "yes" ; then
14826 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14845 xorg_testset_save_CFLAGS="$CFLAGS"
14847 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14850 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14851 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14852 $as_echo_n "(cached) " >&6
14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14858 if ac_fn_c_try_compile "$LINENO"; then :
14859 xorg_cv_cc_flag_unknown_warning_option=yes
14861 xorg_cv_cc_flag_unknown_warning_option=no
14863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14866 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14868 CFLAGS="$xorg_testset_save_CFLAGS"
14871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14877 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14878 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14879 $as_echo_n "(cached) " >&6
14881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14882 /* end confdefs.h. */
14885 if ac_fn_c_try_compile "$LINENO"; then :
14886 xorg_cv_cc_flag_unused_command_line_argument=yes
14888 xorg_cv_cc_flag_unused_command_line_argument=no
14890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14893 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14895 CFLAGS="$xorg_testset_save_CFLAGS"
14900 if test $found = "no" ; then
14901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14909 CFLAGS="$CFLAGS -Werror=trigraphs"
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14912 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14913 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14914 if eval \${$cacheid+:} false; then :
14915 $as_echo_n "(cached) " >&6
14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14928 if ac_fn_c_try_link "$LINENO"; then :
14933 rm -f core conftest.err conftest.$ac_objext \
14934 conftest$ac_exeext conftest.$ac_ext
14938 CFLAGS="$xorg_testset_save_CFLAGS"
14940 eval supported=\$$cacheid
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14942 $as_echo "$supported" >&6; }
14943 if test "$supported" = "yes" ; then
14944 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14963 xorg_testset_save_CFLAGS="$CFLAGS"
14965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14968 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14969 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14970 $as_echo_n "(cached) " >&6
14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14976 if ac_fn_c_try_compile "$LINENO"; then :
14977 xorg_cv_cc_flag_unknown_warning_option=yes
14979 xorg_cv_cc_flag_unknown_warning_option=no
14981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14984 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14986 CFLAGS="$xorg_testset_save_CFLAGS"
14989 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14995 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14996 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14997 $as_echo_n "(cached) " >&6
14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15003 if ac_fn_c_try_compile "$LINENO"; then :
15004 xorg_cv_cc_flag_unused_command_line_argument=yes
15006 xorg_cv_cc_flag_unused_command_line_argument=no
15008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15011 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15013 CFLAGS="$xorg_testset_save_CFLAGS"
15018 if test $found = "no" ; then
15019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15027 CFLAGS="$CFLAGS -Werror=array-bounds"
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15030 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15031 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
15032 if eval \${$cacheid+:} false; then :
15033 $as_echo_n "(cached) " >&6
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15046 if ac_fn_c_try_link "$LINENO"; then :
15051 rm -f core conftest.err conftest.$ac_objext \
15052 conftest$ac_exeext conftest.$ac_ext
15056 CFLAGS="$xorg_testset_save_CFLAGS"
15058 eval supported=\$$cacheid
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15060 $as_echo "$supported" >&6; }
15061 if test "$supported" = "yes" ; then
15062 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15081 xorg_testset_save_CFLAGS="$CFLAGS"
15083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15086 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15087 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15088 $as_echo_n "(cached) " >&6
15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15094 if ac_fn_c_try_compile "$LINENO"; then :
15095 xorg_cv_cc_flag_unknown_warning_option=yes
15097 xorg_cv_cc_flag_unknown_warning_option=no
15099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15102 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15104 CFLAGS="$xorg_testset_save_CFLAGS"
15107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15113 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15114 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15115 $as_echo_n "(cached) " >&6
15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15121 if ac_fn_c_try_compile "$LINENO"; then :
15122 xorg_cv_cc_flag_unused_command_line_argument=yes
15124 xorg_cv_cc_flag_unused_command_line_argument=no
15126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15129 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15131 CFLAGS="$xorg_testset_save_CFLAGS"
15136 if test $found = "no" ; then
15137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15145 CFLAGS="$CFLAGS -Werror=write-strings"
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15148 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15149 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15150 if eval \${$cacheid+:} false; then :
15151 $as_echo_n "(cached) " >&6
15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h. */
15164 if ac_fn_c_try_link "$LINENO"; then :
15169 rm -f core conftest.err conftest.$ac_objext \
15170 conftest$ac_exeext conftest.$ac_ext
15174 CFLAGS="$xorg_testset_save_CFLAGS"
15176 eval supported=\$$cacheid
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15178 $as_echo "$supported" >&6; }
15179 if test "$supported" = "yes" ; then
15180 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15199 xorg_testset_save_CFLAGS="$CFLAGS"
15201 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15204 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15205 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15206 $as_echo_n "(cached) " >&6
15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15209 /* end confdefs.h. */
15212 if ac_fn_c_try_compile "$LINENO"; then :
15213 xorg_cv_cc_flag_unknown_warning_option=yes
15215 xorg_cv_cc_flag_unknown_warning_option=no
15217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15220 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15222 CFLAGS="$xorg_testset_save_CFLAGS"
15225 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15231 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15232 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15233 $as_echo_n "(cached) " >&6
15235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h. */
15239 if ac_fn_c_try_compile "$LINENO"; then :
15240 xorg_cv_cc_flag_unused_command_line_argument=yes
15242 xorg_cv_cc_flag_unused_command_line_argument=no
15244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15247 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15249 CFLAGS="$xorg_testset_save_CFLAGS"
15254 if test $found = "no" ; then
15255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15263 CFLAGS="$CFLAGS -Werror=address"
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15266 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15267 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15268 if eval \${$cacheid+:} false; then :
15269 $as_echo_n "(cached) " >&6
15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15282 if ac_fn_c_try_link "$LINENO"; then :
15287 rm -f core conftest.err conftest.$ac_objext \
15288 conftest$ac_exeext conftest.$ac_ext
15292 CFLAGS="$xorg_testset_save_CFLAGS"
15294 eval supported=\$$cacheid
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15296 $as_echo "$supported" >&6; }
15297 if test "$supported" = "yes" ; then
15298 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15317 xorg_testset_save_CFLAGS="$CFLAGS"
15319 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15322 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15323 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15324 $as_echo_n "(cached) " >&6
15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15330 if ac_fn_c_try_compile "$LINENO"; then :
15331 xorg_cv_cc_flag_unknown_warning_option=yes
15333 xorg_cv_cc_flag_unknown_warning_option=no
15335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15338 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15340 CFLAGS="$xorg_testset_save_CFLAGS"
15343 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15349 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15350 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15351 $as_echo_n "(cached) " >&6
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15357 if ac_fn_c_try_compile "$LINENO"; then :
15358 xorg_cv_cc_flag_unused_command_line_argument=yes
15360 xorg_cv_cc_flag_unused_command_line_argument=no
15362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15365 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15367 CFLAGS="$xorg_testset_save_CFLAGS"
15372 if test $found = "no" ; then
15373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15381 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15384 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15385 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15386 if eval \${$cacheid+:} false; then :
15387 $as_echo_n "(cached) " >&6
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15400 if ac_fn_c_try_link "$LINENO"; then :
15405 rm -f core conftest.err conftest.$ac_objext \
15406 conftest$ac_exeext conftest.$ac_ext
15410 CFLAGS="$xorg_testset_save_CFLAGS"
15412 eval supported=\$$cacheid
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15414 $as_echo "$supported" >&6; }
15415 if test "$supported" = "yes" ; then
15416 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15421 if test $found = "no" ; then
15422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15430 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15433 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15434 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15435 if eval \${$cacheid+:} false; then :
15436 $as_echo_n "(cached) " >&6
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15449 if ac_fn_c_try_link "$LINENO"; then :
15454 rm -f core conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15459 CFLAGS="$xorg_testset_save_CFLAGS"
15461 eval supported=\$$cacheid
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15463 $as_echo "$supported" >&6; }
15464 if test "$supported" = "yes" ; then
15465 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15484 xorg_testset_save_CFLAGS="$CFLAGS"
15486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15490 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15491 $as_echo_n "(cached) " >&6
15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494 /* end confdefs.h. */
15497 if ac_fn_c_try_compile "$LINENO"; then :
15498 xorg_cv_cc_flag_unknown_warning_option=yes
15500 xorg_cv_cc_flag_unknown_warning_option=no
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15505 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15507 CFLAGS="$xorg_testset_save_CFLAGS"
15510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15516 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15517 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15518 $as_echo_n "(cached) " >&6
15520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15521 /* end confdefs.h. */
15524 if ac_fn_c_try_compile "$LINENO"; then :
15525 xorg_cv_cc_flag_unused_command_line_argument=yes
15527 xorg_cv_cc_flag_unused_command_line_argument=no
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15532 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15534 CFLAGS="$xorg_testset_save_CFLAGS"
15539 if test $found = "no" ; then
15540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15548 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15551 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15552 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15553 if eval \${$cacheid+:} false; then :
15554 $as_echo_n "(cached) " >&6
15556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15557 /* end confdefs.h. */
15567 if ac_fn_c_try_link "$LINENO"; then :
15572 rm -f core conftest.err conftest.$ac_objext \
15573 conftest$ac_exeext conftest.$ac_ext
15577 CFLAGS="$xorg_testset_save_CFLAGS"
15579 eval supported=\$$cacheid
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15581 $as_echo "$supported" >&6; }
15582 if test "$supported" = "yes" ; then
15583 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15588 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
15591 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
15605 xorg_testset_save_CFLAGS="$CFLAGS"
15607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15610 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15611 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15612 $as_echo_n "(cached) " >&6
15614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15615 /* end confdefs.h. */
15618 if ac_fn_c_try_compile "$LINENO"; then :
15619 xorg_cv_cc_flag_unknown_warning_option=yes
15621 xorg_cv_cc_flag_unknown_warning_option=no
15623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15626 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15628 CFLAGS="$xorg_testset_save_CFLAGS"
15631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15637 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15638 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15639 $as_echo_n "(cached) " >&6
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15645 if ac_fn_c_try_compile "$LINENO"; then :
15646 xorg_cv_cc_flag_unused_command_line_argument=yes
15648 xorg_cv_cc_flag_unused_command_line_argument=no
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15653 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15655 CFLAGS="$xorg_testset_save_CFLAGS"
15660 if test $found = "no" ; then
15661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15669 CFLAGS="$CFLAGS -Wimplicit"
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15672 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15673 cacheid=xorg_cv_cc_flag__Wimplicit
15674 if eval \${$cacheid+:} false; then :
15675 $as_echo_n "(cached) " >&6
15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15688 if ac_fn_c_try_link "$LINENO"; then :
15693 rm -f core conftest.err conftest.$ac_objext \
15694 conftest$ac_exeext conftest.$ac_ext
15698 CFLAGS="$xorg_testset_save_CFLAGS"
15700 eval supported=\$$cacheid
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15702 $as_echo "$supported" >&6; }
15703 if test "$supported" = "yes" ; then
15704 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15723 xorg_testset_save_CFLAGS="$CFLAGS"
15725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15728 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15729 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15730 $as_echo_n "(cached) " >&6
15732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15733 /* end confdefs.h. */
15736 if ac_fn_c_try_compile "$LINENO"; then :
15737 xorg_cv_cc_flag_unknown_warning_option=yes
15739 xorg_cv_cc_flag_unknown_warning_option=no
15741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15744 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15746 CFLAGS="$xorg_testset_save_CFLAGS"
15749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15755 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15756 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15757 $as_echo_n "(cached) " >&6
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15763 if ac_fn_c_try_compile "$LINENO"; then :
15764 xorg_cv_cc_flag_unused_command_line_argument=yes
15766 xorg_cv_cc_flag_unused_command_line_argument=no
15768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15771 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15773 CFLAGS="$xorg_testset_save_CFLAGS"
15778 if test $found = "no" ; then
15779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15787 CFLAGS="$CFLAGS -Wnonnull"
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15790 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15791 cacheid=xorg_cv_cc_flag__Wnonnull
15792 if eval \${$cacheid+:} false; then :
15793 $as_echo_n "(cached) " >&6
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15806 if ac_fn_c_try_link "$LINENO"; then :
15811 rm -f core conftest.err conftest.$ac_objext \
15812 conftest$ac_exeext conftest.$ac_ext
15816 CFLAGS="$xorg_testset_save_CFLAGS"
15818 eval supported=\$$cacheid
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15820 $as_echo "$supported" >&6; }
15821 if test "$supported" = "yes" ; then
15822 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15841 xorg_testset_save_CFLAGS="$CFLAGS"
15843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15846 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15847 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15848 $as_echo_n "(cached) " >&6
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15854 if ac_fn_c_try_compile "$LINENO"; then :
15855 xorg_cv_cc_flag_unknown_warning_option=yes
15857 xorg_cv_cc_flag_unknown_warning_option=no
15859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15862 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15864 CFLAGS="$xorg_testset_save_CFLAGS"
15867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15873 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15874 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15875 $as_echo_n "(cached) " >&6
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15881 if ac_fn_c_try_compile "$LINENO"; then :
15882 xorg_cv_cc_flag_unused_command_line_argument=yes
15884 xorg_cv_cc_flag_unused_command_line_argument=no
15886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15889 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15891 CFLAGS="$xorg_testset_save_CFLAGS"
15896 if test $found = "no" ; then
15897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15905 CFLAGS="$CFLAGS -Winit-self"
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15908 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15909 cacheid=xorg_cv_cc_flag__Winit_self
15910 if eval \${$cacheid+:} false; then :
15911 $as_echo_n "(cached) " >&6
15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15924 if ac_fn_c_try_link "$LINENO"; then :
15929 rm -f core conftest.err conftest.$ac_objext \
15930 conftest$ac_exeext conftest.$ac_ext
15934 CFLAGS="$xorg_testset_save_CFLAGS"
15936 eval supported=\$$cacheid
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15938 $as_echo "$supported" >&6; }
15939 if test "$supported" = "yes" ; then
15940 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15959 xorg_testset_save_CFLAGS="$CFLAGS"
15961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15964 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15965 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15966 $as_echo_n "(cached) " >&6
15968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h. */
15972 if ac_fn_c_try_compile "$LINENO"; then :
15973 xorg_cv_cc_flag_unknown_warning_option=yes
15975 xorg_cv_cc_flag_unknown_warning_option=no
15977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15980 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15982 CFLAGS="$xorg_testset_save_CFLAGS"
15985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15991 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15992 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15993 $as_echo_n "(cached) " >&6
15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
15999 if ac_fn_c_try_compile "$LINENO"; then :
16000 xorg_cv_cc_flag_unused_command_line_argument=yes
16002 xorg_cv_cc_flag_unused_command_line_argument=no
16004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16007 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16009 CFLAGS="$xorg_testset_save_CFLAGS"
16014 if test $found = "no" ; then
16015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16023 CFLAGS="$CFLAGS -Wmain"
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16026 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16027 cacheid=xorg_cv_cc_flag__Wmain
16028 if eval \${$cacheid+:} false; then :
16029 $as_echo_n "(cached) " >&6
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16042 if ac_fn_c_try_link "$LINENO"; then :
16047 rm -f core conftest.err conftest.$ac_objext \
16048 conftest$ac_exeext conftest.$ac_ext
16052 CFLAGS="$xorg_testset_save_CFLAGS"
16054 eval supported=\$$cacheid
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16056 $as_echo "$supported" >&6; }
16057 if test "$supported" = "yes" ; then
16058 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16077 xorg_testset_save_CFLAGS="$CFLAGS"
16079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16082 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16083 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16084 $as_echo_n "(cached) " >&6
16086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087 /* end confdefs.h. */
16090 if ac_fn_c_try_compile "$LINENO"; then :
16091 xorg_cv_cc_flag_unknown_warning_option=yes
16093 xorg_cv_cc_flag_unknown_warning_option=no
16095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16098 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16100 CFLAGS="$xorg_testset_save_CFLAGS"
16103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16109 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16110 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16111 $as_echo_n "(cached) " >&6
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16117 if ac_fn_c_try_compile "$LINENO"; then :
16118 xorg_cv_cc_flag_unused_command_line_argument=yes
16120 xorg_cv_cc_flag_unused_command_line_argument=no
16122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16125 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16127 CFLAGS="$xorg_testset_save_CFLAGS"
16132 if test $found = "no" ; then
16133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16141 CFLAGS="$CFLAGS -Wmissing-braces"
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16144 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16145 cacheid=xorg_cv_cc_flag__Wmissing_braces
16146 if eval \${$cacheid+:} false; then :
16147 $as_echo_n "(cached) " >&6
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16160 if ac_fn_c_try_link "$LINENO"; then :
16165 rm -f core conftest.err conftest.$ac_objext \
16166 conftest$ac_exeext conftest.$ac_ext
16170 CFLAGS="$xorg_testset_save_CFLAGS"
16172 eval supported=\$$cacheid
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16174 $as_echo "$supported" >&6; }
16175 if test "$supported" = "yes" ; then
16176 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16195 xorg_testset_save_CFLAGS="$CFLAGS"
16197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16200 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16201 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16202 $as_echo_n "(cached) " >&6
16204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16205 /* end confdefs.h. */
16208 if ac_fn_c_try_compile "$LINENO"; then :
16209 xorg_cv_cc_flag_unknown_warning_option=yes
16211 xorg_cv_cc_flag_unknown_warning_option=no
16213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16216 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16218 CFLAGS="$xorg_testset_save_CFLAGS"
16221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16227 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16228 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16229 $as_echo_n "(cached) " >&6
16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16235 if ac_fn_c_try_compile "$LINENO"; then :
16236 xorg_cv_cc_flag_unused_command_line_argument=yes
16238 xorg_cv_cc_flag_unused_command_line_argument=no
16240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16243 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16245 CFLAGS="$xorg_testset_save_CFLAGS"
16250 if test $found = "no" ; then
16251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16259 CFLAGS="$CFLAGS -Wsequence-point"
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16262 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16263 cacheid=xorg_cv_cc_flag__Wsequence_point
16264 if eval \${$cacheid+:} false; then :
16265 $as_echo_n "(cached) " >&6
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16278 if ac_fn_c_try_link "$LINENO"; then :
16283 rm -f core conftest.err conftest.$ac_objext \
16284 conftest$ac_exeext conftest.$ac_ext
16288 CFLAGS="$xorg_testset_save_CFLAGS"
16290 eval supported=\$$cacheid
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16292 $as_echo "$supported" >&6; }
16293 if test "$supported" = "yes" ; then
16294 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16313 xorg_testset_save_CFLAGS="$CFLAGS"
16315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16318 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16319 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16320 $as_echo_n "(cached) " >&6
16322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16323 /* end confdefs.h. */
16326 if ac_fn_c_try_compile "$LINENO"; then :
16327 xorg_cv_cc_flag_unknown_warning_option=yes
16329 xorg_cv_cc_flag_unknown_warning_option=no
16331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16334 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16336 CFLAGS="$xorg_testset_save_CFLAGS"
16339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16345 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16346 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16347 $as_echo_n "(cached) " >&6
16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350 /* end confdefs.h. */
16353 if ac_fn_c_try_compile "$LINENO"; then :
16354 xorg_cv_cc_flag_unused_command_line_argument=yes
16356 xorg_cv_cc_flag_unused_command_line_argument=no
16358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16361 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16363 CFLAGS="$xorg_testset_save_CFLAGS"
16368 if test $found = "no" ; then
16369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16377 CFLAGS="$CFLAGS -Wreturn-type"
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16380 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16381 cacheid=xorg_cv_cc_flag__Wreturn_type
16382 if eval \${$cacheid+:} false; then :
16383 $as_echo_n "(cached) " >&6
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16396 if ac_fn_c_try_link "$LINENO"; then :
16401 rm -f core conftest.err conftest.$ac_objext \
16402 conftest$ac_exeext conftest.$ac_ext
16406 CFLAGS="$xorg_testset_save_CFLAGS"
16408 eval supported=\$$cacheid
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16410 $as_echo "$supported" >&6; }
16411 if test "$supported" = "yes" ; then
16412 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16431 xorg_testset_save_CFLAGS="$CFLAGS"
16433 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16436 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16437 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16438 $as_echo_n "(cached) " >&6
16440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16441 /* end confdefs.h. */
16444 if ac_fn_c_try_compile "$LINENO"; then :
16445 xorg_cv_cc_flag_unknown_warning_option=yes
16447 xorg_cv_cc_flag_unknown_warning_option=no
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16452 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16454 CFLAGS="$xorg_testset_save_CFLAGS"
16457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16463 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16464 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16465 $as_echo_n "(cached) " >&6
16467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468 /* end confdefs.h. */
16471 if ac_fn_c_try_compile "$LINENO"; then :
16472 xorg_cv_cc_flag_unused_command_line_argument=yes
16474 xorg_cv_cc_flag_unused_command_line_argument=no
16476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16479 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16481 CFLAGS="$xorg_testset_save_CFLAGS"
16486 if test $found = "no" ; then
16487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16495 CFLAGS="$CFLAGS -Wtrigraphs"
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16498 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16499 cacheid=xorg_cv_cc_flag__Wtrigraphs
16500 if eval \${$cacheid+:} false; then :
16501 $as_echo_n "(cached) " >&6
16503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16504 /* end confdefs.h. */
16514 if ac_fn_c_try_link "$LINENO"; then :
16519 rm -f core conftest.err conftest.$ac_objext \
16520 conftest$ac_exeext conftest.$ac_ext
16524 CFLAGS="$xorg_testset_save_CFLAGS"
16526 eval supported=\$$cacheid
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16528 $as_echo "$supported" >&6; }
16529 if test "$supported" = "yes" ; then
16530 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16549 xorg_testset_save_CFLAGS="$CFLAGS"
16551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16554 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16555 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16556 $as_echo_n "(cached) " >&6
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16562 if ac_fn_c_try_compile "$LINENO"; then :
16563 xorg_cv_cc_flag_unknown_warning_option=yes
16565 xorg_cv_cc_flag_unknown_warning_option=no
16567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16570 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16572 CFLAGS="$xorg_testset_save_CFLAGS"
16575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16581 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16582 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16583 $as_echo_n "(cached) " >&6
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16589 if ac_fn_c_try_compile "$LINENO"; then :
16590 xorg_cv_cc_flag_unused_command_line_argument=yes
16592 xorg_cv_cc_flag_unused_command_line_argument=no
16594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16597 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16599 CFLAGS="$xorg_testset_save_CFLAGS"
16604 if test $found = "no" ; then
16605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16613 CFLAGS="$CFLAGS -Warray-bounds"
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16616 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16617 cacheid=xorg_cv_cc_flag__Warray_bounds
16618 if eval \${$cacheid+:} false; then :
16619 $as_echo_n "(cached) " >&6
16621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622 /* end confdefs.h. */
16632 if ac_fn_c_try_link "$LINENO"; then :
16637 rm -f core conftest.err conftest.$ac_objext \
16638 conftest$ac_exeext conftest.$ac_ext
16642 CFLAGS="$xorg_testset_save_CFLAGS"
16644 eval supported=\$$cacheid
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16646 $as_echo "$supported" >&6; }
16647 if test "$supported" = "yes" ; then
16648 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16667 xorg_testset_save_CFLAGS="$CFLAGS"
16669 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16672 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16673 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16674 $as_echo_n "(cached) " >&6
16676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16677 /* end confdefs.h. */
16680 if ac_fn_c_try_compile "$LINENO"; then :
16681 xorg_cv_cc_flag_unknown_warning_option=yes
16683 xorg_cv_cc_flag_unknown_warning_option=no
16685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16688 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16690 CFLAGS="$xorg_testset_save_CFLAGS"
16693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16699 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16700 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16701 $as_echo_n "(cached) " >&6
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16707 if ac_fn_c_try_compile "$LINENO"; then :
16708 xorg_cv_cc_flag_unused_command_line_argument=yes
16710 xorg_cv_cc_flag_unused_command_line_argument=no
16712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16715 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16717 CFLAGS="$xorg_testset_save_CFLAGS"
16722 if test $found = "no" ; then
16723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16731 CFLAGS="$CFLAGS -Wwrite-strings"
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16734 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16735 cacheid=xorg_cv_cc_flag__Wwrite_strings
16736 if eval \${$cacheid+:} false; then :
16737 $as_echo_n "(cached) " >&6
16739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16740 /* end confdefs.h. */
16750 if ac_fn_c_try_link "$LINENO"; then :
16755 rm -f core conftest.err conftest.$ac_objext \
16756 conftest$ac_exeext conftest.$ac_ext
16760 CFLAGS="$xorg_testset_save_CFLAGS"
16762 eval supported=\$$cacheid
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16764 $as_echo "$supported" >&6; }
16765 if test "$supported" = "yes" ; then
16766 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16785 xorg_testset_save_CFLAGS="$CFLAGS"
16787 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16790 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16791 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16792 $as_echo_n "(cached) " >&6
16794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795 /* end confdefs.h. */
16798 if ac_fn_c_try_compile "$LINENO"; then :
16799 xorg_cv_cc_flag_unknown_warning_option=yes
16801 xorg_cv_cc_flag_unknown_warning_option=no
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16806 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16808 CFLAGS="$xorg_testset_save_CFLAGS"
16811 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16817 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16818 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16819 $as_echo_n "(cached) " >&6
16821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16822 /* end confdefs.h. */
16825 if ac_fn_c_try_compile "$LINENO"; then :
16826 xorg_cv_cc_flag_unused_command_line_argument=yes
16828 xorg_cv_cc_flag_unused_command_line_argument=no
16830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16833 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16835 CFLAGS="$xorg_testset_save_CFLAGS"
16840 if test $found = "no" ; then
16841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16845 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16849 CFLAGS="$CFLAGS -Waddress"
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16852 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16853 cacheid=xorg_cv_cc_flag__Waddress
16854 if eval \${$cacheid+:} false; then :
16855 $as_echo_n "(cached) " >&6
16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858 /* end confdefs.h. */
16868 if ac_fn_c_try_link "$LINENO"; then :
16873 rm -f core conftest.err conftest.$ac_objext \
16874 conftest$ac_exeext conftest.$ac_ext
16878 CFLAGS="$xorg_testset_save_CFLAGS"
16880 eval supported=\$$cacheid
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16882 $as_echo "$supported" >&6; }
16883 if test "$supported" = "yes" ; then
16884 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16903 xorg_testset_save_CFLAGS="$CFLAGS"
16905 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16908 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16909 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16910 $as_echo_n "(cached) " >&6
16912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16913 /* end confdefs.h. */
16916 if ac_fn_c_try_compile "$LINENO"; then :
16917 xorg_cv_cc_flag_unknown_warning_option=yes
16919 xorg_cv_cc_flag_unknown_warning_option=no
16921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16924 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16926 CFLAGS="$xorg_testset_save_CFLAGS"
16929 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16935 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16936 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16937 $as_echo_n "(cached) " >&6
16939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940 /* end confdefs.h. */
16943 if ac_fn_c_try_compile "$LINENO"; then :
16944 xorg_cv_cc_flag_unused_command_line_argument=yes
16946 xorg_cv_cc_flag_unused_command_line_argument=no
16948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16951 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16953 CFLAGS="$xorg_testset_save_CFLAGS"
16958 if test $found = "no" ; then
16959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16967 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16970 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16971 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16972 if eval \${$cacheid+:} false; then :
16973 $as_echo_n "(cached) " >&6
16975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976 /* end confdefs.h. */
16986 if ac_fn_c_try_link "$LINENO"; then :
16991 rm -f core conftest.err conftest.$ac_objext \
16992 conftest$ac_exeext conftest.$ac_ext
16996 CFLAGS="$xorg_testset_save_CFLAGS"
16998 eval supported=\$$cacheid
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17000 $as_echo "$supported" >&6; }
17001 if test "$supported" = "yes" ; then
17002 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17021 xorg_testset_save_CFLAGS="$CFLAGS"
17023 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17026 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17027 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17028 $as_echo_n "(cached) " >&6
17030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031 /* end confdefs.h. */
17034 if ac_fn_c_try_compile "$LINENO"; then :
17035 xorg_cv_cc_flag_unknown_warning_option=yes
17037 xorg_cv_cc_flag_unknown_warning_option=no
17039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17042 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17044 CFLAGS="$xorg_testset_save_CFLAGS"
17047 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17053 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17054 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17055 $as_echo_n "(cached) " >&6
17057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h. */
17061 if ac_fn_c_try_compile "$LINENO"; then :
17062 xorg_cv_cc_flag_unused_command_line_argument=yes
17064 xorg_cv_cc_flag_unused_command_line_argument=no
17066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17069 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17071 CFLAGS="$xorg_testset_save_CFLAGS"
17076 if test $found = "no" ; then
17077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17085 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17088 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17089 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17090 if eval \${$cacheid+:} false; then :
17091 $as_echo_n "(cached) " >&6
17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094 /* end confdefs.h. */
17104 if ac_fn_c_try_link "$LINENO"; then :
17109 rm -f core conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext conftest.$ac_ext
17114 CFLAGS="$xorg_testset_save_CFLAGS"
17116 eval supported=\$$cacheid
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17118 $as_echo "$supported" >&6; }
17119 if test "$supported" = "yes" ; then
17120 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17134 CWARNFLAGS="$BASE_CFLAGS"
17135 if test "x$GCC" = xyes ; then
17136 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17146 # Check whether --enable-strict-compilation was given.
17147 if test "${enable_strict_compilation+set}" = set; then :
17148 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17172 xorg_testset_save_CFLAGS="$CFLAGS"
17174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17177 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17178 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17179 $as_echo_n "(cached) " >&6
17181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17182 /* end confdefs.h. */
17185 if ac_fn_c_try_compile "$LINENO"; then :
17186 xorg_cv_cc_flag_unknown_warning_option=yes
17188 xorg_cv_cc_flag_unknown_warning_option=no
17190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17193 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17195 CFLAGS="$xorg_testset_save_CFLAGS"
17198 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17204 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17205 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17206 $as_echo_n "(cached) " >&6
17208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17209 /* end confdefs.h. */
17212 if ac_fn_c_try_compile "$LINENO"; then :
17213 xorg_cv_cc_flag_unused_command_line_argument=yes
17215 xorg_cv_cc_flag_unused_command_line_argument=no
17217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17220 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17222 CFLAGS="$xorg_testset_save_CFLAGS"
17227 if test $found = "no" ; then
17228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17236 CFLAGS="$CFLAGS -pedantic"
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17239 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17240 cacheid=xorg_cv_cc_flag__pedantic
17241 if eval \${$cacheid+:} false; then :
17242 $as_echo_n "(cached) " >&6
17244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17245 /* end confdefs.h. */
17255 if ac_fn_c_try_link "$LINENO"; then :
17260 rm -f core conftest.err conftest.$ac_objext \
17261 conftest$ac_exeext conftest.$ac_ext
17265 CFLAGS="$xorg_testset_save_CFLAGS"
17267 eval supported=\$$cacheid
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17269 $as_echo "$supported" >&6; }
17270 if test "$supported" = "yes" ; then
17271 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17290 xorg_testset_save_CFLAGS="$CFLAGS"
17292 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17295 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17296 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17297 $as_echo_n "(cached) " >&6
17299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300 /* end confdefs.h. */
17303 if ac_fn_c_try_compile "$LINENO"; then :
17304 xorg_cv_cc_flag_unknown_warning_option=yes
17306 xorg_cv_cc_flag_unknown_warning_option=no
17308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17311 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17313 CFLAGS="$xorg_testset_save_CFLAGS"
17316 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17322 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17323 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17324 $as_echo_n "(cached) " >&6
17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h. */
17330 if ac_fn_c_try_compile "$LINENO"; then :
17331 xorg_cv_cc_flag_unused_command_line_argument=yes
17333 xorg_cv_cc_flag_unused_command_line_argument=no
17335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17338 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17340 CFLAGS="$xorg_testset_save_CFLAGS"
17345 if test $found = "no" ; then
17346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17354 CFLAGS="$CFLAGS -Werror"
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17357 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17358 cacheid=xorg_cv_cc_flag__Werror
17359 if eval \${$cacheid+:} false; then :
17360 $as_echo_n "(cached) " >&6
17362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17363 /* end confdefs.h. */
17373 if ac_fn_c_try_link "$LINENO"; then :
17378 rm -f core conftest.err conftest.$ac_objext \
17379 conftest$ac_exeext conftest.$ac_ext
17383 CFLAGS="$xorg_testset_save_CFLAGS"
17385 eval supported=\$$cacheid
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17387 $as_echo "$supported" >&6; }
17388 if test "$supported" = "yes" ; then
17389 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17394 if test $found = "no" ; then
17395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17403 CFLAGS="$CFLAGS -errwarn"
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17406 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17407 cacheid=xorg_cv_cc_flag__errwarn
17408 if eval \${$cacheid+:} false; then :
17409 $as_echo_n "(cached) " >&6
17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17412 /* end confdefs.h. */
17422 if ac_fn_c_try_link "$LINENO"; then :
17427 rm -f core conftest.err conftest.$ac_objext \
17428 conftest$ac_exeext conftest.$ac_ext
17432 CFLAGS="$xorg_testset_save_CFLAGS"
17434 eval supported=\$$cacheid
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17436 $as_echo "$supported" >&6; }
17437 if test "$supported" = "yes" ; then
17438 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17445 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17446 # activate it with -Werror, so we add it here explicitly.
17460 xorg_testset_save_CFLAGS="$CFLAGS"
17462 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17465 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17466 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17467 $as_echo_n "(cached) " >&6
17469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h. */
17473 if ac_fn_c_try_compile "$LINENO"; then :
17474 xorg_cv_cc_flag_unknown_warning_option=yes
17476 xorg_cv_cc_flag_unknown_warning_option=no
17478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17481 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17483 CFLAGS="$xorg_testset_save_CFLAGS"
17486 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17492 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17493 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17494 $as_echo_n "(cached) " >&6
17496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17497 /* end confdefs.h. */
17500 if ac_fn_c_try_compile "$LINENO"; then :
17501 xorg_cv_cc_flag_unused_command_line_argument=yes
17503 xorg_cv_cc_flag_unused_command_line_argument=no
17505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17508 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17510 CFLAGS="$xorg_testset_save_CFLAGS"
17515 if test $found = "no" ; then
17516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17524 CFLAGS="$CFLAGS -Werror=attributes"
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17527 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17528 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17529 if eval \${$cacheid+:} false; then :
17530 $as_echo_n "(cached) " >&6
17532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17533 /* end confdefs.h. */
17543 if ac_fn_c_try_link "$LINENO"; then :
17548 rm -f core conftest.err conftest.$ac_objext \
17549 conftest$ac_exeext conftest.$ac_ext
17553 CFLAGS="$xorg_testset_save_CFLAGS"
17555 eval supported=\$$cacheid
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17557 $as_echo "$supported" >&6; }
17558 if test "$supported" = "yes" ; then
17559 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17566 if test "x$STRICT_COMPILE" = "xyes"; then
17567 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17568 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17576 cat >>confdefs.h <<_ACEOF
17577 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17580 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17581 if test "x$PVM" = "x"; then
17585 cat >>confdefs.h <<_ACEOF
17586 #define PACKAGE_VERSION_MINOR $PVM
17589 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17590 if test "x$PVP" = "x"; then
17594 cat >>confdefs.h <<_ACEOF
17595 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17600 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17601 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17602 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17603 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17608 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17609 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17610 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17611 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17612 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17619 if test x$APP_MAN_SUFFIX = x ; then
17622 if test x$APP_MAN_DIR = x ; then
17623 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17626 if test x$LIB_MAN_SUFFIX = x ; then
17629 if test x$LIB_MAN_DIR = x ; then
17630 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17633 if test x$FILE_MAN_SUFFIX = x ; then
17635 solaris*) FILE_MAN_SUFFIX=4 ;;
17636 *) FILE_MAN_SUFFIX=5 ;;
17639 if test x$FILE_MAN_DIR = x ; then
17640 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17643 if test x$MISC_MAN_SUFFIX = x ; then
17645 solaris*) MISC_MAN_SUFFIX=5 ;;
17646 *) MISC_MAN_SUFFIX=7 ;;
17649 if test x$MISC_MAN_DIR = x ; then
17650 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17653 if test x$DRIVER_MAN_SUFFIX = x ; then
17655 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17656 *) DRIVER_MAN_SUFFIX=4 ;;
17659 if test x$DRIVER_MAN_DIR = x ; then
17660 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17663 if test x$ADMIN_MAN_SUFFIX = x ; then
17665 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17666 *) ADMIN_MAN_SUFFIX=8 ;;
17669 if test x$ADMIN_MAN_DIR = x ; then
17670 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17687 XORG_MAN_PAGE="X Version 11"
17690 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17691 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17692 -e 's|__xservername__|Xorg|g' \
17693 -e 's|__xconfigfile__|xorg.conf|g' \
17694 -e 's|__projectroot__|\$(prefix)|g' \
17695 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17696 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17697 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17698 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17699 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17700 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17701 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17705 # Check whether --enable-silent-rules was given.
17706 if test "${enable_silent_rules+set}" = set; then :
17707 enableval=$enable_silent_rules;
17710 case $enable_silent_rules in # (((
17711 yes) AM_DEFAULT_VERBOSITY=0;;
17712 no) AM_DEFAULT_VERBOSITY=1;;
17713 *) AM_DEFAULT_VERBOSITY=0;;
17715 am_make=${MAKE-make}
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17717 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17718 if ${am_cv_make_support_nested_variables+:} false; then :
17719 $as_echo_n "(cached) " >&6
17721 if $as_echo 'TRUE=$(BAR$(V))
17727 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17728 am_cv_make_support_nested_variables=yes
17730 am_cv_make_support_nested_variables=no
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17734 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17735 if test $am_cv_make_support_nested_variables = yes; then
17737 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17739 AM_V=$AM_DEFAULT_VERBOSITY
17740 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17746 # Set library version for Xft.h from package version set in AC_INIT
17747 # copied from PACKAGE_VERSION_* settings in XORG_VERSION
17748 ac_config_headers="$ac_config_headers include/X11/Xft/Xft.h"
17751 cat >>confdefs.h <<_ACEOF
17752 #define XFT_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17756 cat >>confdefs.h <<_ACEOF
17757 #define XFT_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17761 cat >>confdefs.h <<_ACEOF
17762 #define XFT_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17766 XFT_LT_VERSION=`echo $PACKAGE_VERSION | tr '.' ':'`
17770 # Check for Xrender
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
17775 $as_echo_n "checking for XRENDER... " >&6; }
17777 if test -n "$XRENDER_CFLAGS"; then
17778 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
17779 elif test -n "$PKG_CONFIG"; then
17780 if test -n "$PKG_CONFIG" && \
17781 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
17782 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
17784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17785 test $ac_status = 0; }; then
17786 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 x11" 2>/dev/null`
17793 if test -n "$XRENDER_LIBS"; then
17794 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
17795 elif test -n "$PKG_CONFIG"; then
17796 if test -n "$PKG_CONFIG" && \
17797 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
17798 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
17800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17801 test $ac_status = 0; }; then
17802 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 x11" 2>/dev/null`
17812 if test $pkg_failed = yes; then
17814 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17815 _pkg_short_errors_supported=yes
17817 _pkg_short_errors_supported=no
17819 if test $_pkg_short_errors_supported = yes; then
17820 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender >= 0.8.2 x11" 2>&1`
17822 XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender >= 0.8.2 x11" 2>&1`
17824 # Put the nasty error message in config.log where it belongs
17825 echo "$XRENDER_PKG_ERRORS" >&5
17827 as_fn_error $? "Package requirements (xrender >= 0.8.2 x11) were not met:
17829 $XRENDER_PKG_ERRORS
17831 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17832 installed software in a non-standard prefix.
17834 Alternatively, you may set the environment variables XRENDER_CFLAGS
17835 and XRENDER_LIBS to avoid the need to call pkg-config.
17836 See the pkg-config man page for more details.
17838 elif test $pkg_failed = untried; then
17839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17841 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17842 is in your PATH or set the PKG_CONFIG environment variable to the full
17843 path to pkg-config.
17845 Alternatively, you may set the environment variables XRENDER_CFLAGS
17846 and XRENDER_LIBS to avoid the need to call pkg-config.
17847 See the pkg-config man page for more details.
17849 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17850 See \`config.log' for more details" "$LINENO" 5; }
17852 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
17853 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17855 $as_echo "yes" >&6; }
17859 # Check freetype configuration
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
17863 $as_echo_n "checking for FREETYPE... " >&6; }
17865 if test -n "$FREETYPE_CFLAGS"; then
17866 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
17867 elif test -n "$PKG_CONFIG"; then
17868 if test -n "$PKG_CONFIG" && \
17869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
17870 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
17872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17873 test $ac_status = 0; }; then
17874 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.6" 2>/dev/null`
17881 if test -n "$FREETYPE_LIBS"; then
17882 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
17883 elif test -n "$PKG_CONFIG"; then
17884 if test -n "$PKG_CONFIG" && \
17885 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
17886 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
17888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17889 test $ac_status = 0; }; then
17890 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.6" 2>/dev/null`
17900 if test $pkg_failed = yes; then
17902 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17903 _pkg_short_errors_supported=yes
17905 _pkg_short_errors_supported=no
17907 if test $_pkg_short_errors_supported = yes; then
17908 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2 >= 2.1.6" 2>&1`
17910 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2 >= 2.1.6" 2>&1`
17912 # Put the nasty error message in config.log where it belongs
17913 echo "$FREETYPE_PKG_ERRORS" >&5
17915 as_fn_error $? "Package requirements (freetype2 >= 2.1.6) were not met:
17917 $FREETYPE_PKG_ERRORS
17919 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17920 installed software in a non-standard prefix.
17922 Alternatively, you may set the environment variables FREETYPE_CFLAGS
17923 and FREETYPE_LIBS to avoid the need to call pkg-config.
17924 See the pkg-config man page for more details.
17926 elif test $pkg_failed = untried; then
17927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17929 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17930 is in your PATH or set the PKG_CONFIG environment variable to the full
17931 path to pkg-config.
17933 Alternatively, you may set the environment variables FREETYPE_CFLAGS
17934 and FREETYPE_LIBS to avoid the need to call pkg-config.
17935 See the pkg-config man page for more details.
17937 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17938 See \`config.log' for more details" "$LINENO" 5; }
17940 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
17941 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17943 $as_echo "yes" >&6; }
17947 # Check fontconfig configuration
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
17951 $as_echo_n "checking for FONTCONFIG... " >&6; }
17953 if test -n "$FONTCONFIG_CFLAGS"; then
17954 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
17955 elif test -n "$PKG_CONFIG"; then
17956 if test -n "$PKG_CONFIG" && \
17957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
17958 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
17960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17961 test $ac_status = 0; }; then
17962 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.5.92" 2>/dev/null`
17969 if test -n "$FONTCONFIG_LIBS"; then
17970 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
17971 elif test -n "$PKG_CONFIG"; then
17972 if test -n "$PKG_CONFIG" && \
17973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
17974 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
17976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17977 test $ac_status = 0; }; then
17978 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.5.92" 2>/dev/null`
17988 if test $pkg_failed = yes; then
17990 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17991 _pkg_short_errors_supported=yes
17993 _pkg_short_errors_supported=no
17995 if test $_pkg_short_errors_supported = yes; then
17996 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.5.92" 2>&1`
17998 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.5.92" 2>&1`
18000 # Put the nasty error message in config.log where it belongs
18001 echo "$FONTCONFIG_PKG_ERRORS" >&5
18003 as_fn_error $? "Package requirements (fontconfig >= 2.5.92) were not met:
18005 $FONTCONFIG_PKG_ERRORS
18007 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18008 installed software in a non-standard prefix.
18010 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
18011 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
18012 See the pkg-config man page for more details.
18014 elif test $pkg_failed = untried; then
18015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18017 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18018 is in your PATH or set the PKG_CONFIG environment variable to the full
18019 path to pkg-config.
18021 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
18022 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
18023 See the pkg-config man page for more details.
18025 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18026 See \`config.log' for more details" "$LINENO" 5; }
18028 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
18029 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18031 $as_echo "yes" >&6; }
18042 if test "$VERSION" = "" ; then
18043 VERSION=$PACKAGE_VERSION;
18046 ac_config_files="$ac_config_files Makefile xft.pc src/Makefile man/Makefile"
18048 cat >confcache <<\_ACEOF
18049 # This file is a shell script that caches the results of configure
18050 # tests run on this system so they can be shared between configure
18051 # scripts and configure runs, see configure's option --config-cache.
18052 # It is not useful on other systems. If it contains results you don't
18053 # want to keep, you may remove or edit it.
18055 # config.status only pays attention to the cache file if you give it
18056 # the --recheck option to rerun configure.
18058 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18059 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18060 # following values.
18064 # The following way of writing the cache mishandles newlines in values,
18065 # but we know of no workaround that is simple, portable, and efficient.
18066 # So, we kill variables containing newlines.
18067 # Ultrix sh set writes to stderr and can't be redirected directly,
18068 # and sets the high bit in the cache file unless we assign to the vars.
18070 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18071 eval ac_val=\$$ac_var
18075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18076 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18079 _ | IFS | as_nl) ;; #(
18080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18081 *) { eval $ac_var=; unset $ac_var;} ;;
18087 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18088 *${as_nl}ac_space=\ *)
18089 # `set' does not quote correctly, so add quotes: double-quote
18090 # substitution turns \\\\ into \\, and sed turns \\ into \.
18093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18096 # `set' quotes correctly as required by POSIX, so do not add quotes.
18097 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18106 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18108 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18110 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18111 if test -w "$cache_file"; then
18112 if test "x$cache_file" != "x/dev/null"; then
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18114 $as_echo "$as_me: updating cache $cache_file" >&6;}
18115 if test ! -f "$cache_file" || test -h "$cache_file"; then
18116 cat confcache >"$cache_file"
18118 case $cache_file in #(
18120 mv -f confcache "$cache_file"$$ &&
18121 mv -f "$cache_file"$$ "$cache_file" ;; #(
18123 mv -f confcache "$cache_file" ;;
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18129 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18134 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18135 # Let make expand exec_prefix.
18136 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18138 DEFS=-DHAVE_CONFIG_H
18143 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18144 # 1. Remove the extension, and $U if already installed.
18145 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18146 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18147 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18148 # will be set to the directory where LIBOBJS objects are built.
18149 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18150 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18152 LIBOBJS=$ac_libobjs
18154 LTLIBOBJS=$ac_ltlibobjs
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18158 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18159 if test -n "$am_sleep_pid"; then
18160 # Hide warnings about reused PIDs.
18161 wait $am_sleep_pid 2>/dev/null
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18164 $as_echo "done" >&6; }
18165 if test -n "$EXEEXT"; then
18167 am__EXEEXT_FALSE='#'
18169 am__EXEEXT_TRUE='#'
18173 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18174 as_fn_error $? "conditional \"AMDEP\" was never defined.
18175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18177 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18178 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18182 : "${CONFIG_STATUS=./config.status}"
18184 ac_clean_files_save=$ac_clean_files
18185 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18187 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18189 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18191 # Generated by $as_me.
18192 # Run this file to recreate the current configuration.
18193 # Compiler output produced by configure, useful for debugging
18194 # configure, is in config.log if it exists.
18197 ac_cs_recheck=false
18200 SHELL=\${CONFIG_SHELL-$SHELL}
18203 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18204 ## -------------------- ##
18205 ## M4sh Initialization. ##
18206 ## -------------------- ##
18208 # Be more Bourne compatible
18209 DUALCASE=1; export DUALCASE # for MKS sh
18210 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18213 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18214 # is contrary to our usage. Disable this feature.
18215 alias -g '${1+"$@"}'='"$@"'
18216 setopt NO_GLOB_SUBST
18218 case `(set -o) 2>/dev/null` in #(
18230 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18231 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18232 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18233 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18234 # Prefer a ksh shell builtin over an external printf program on Solaris,
18235 # but without wasting forks for bash or zsh.
18236 if test -z "$BASH_VERSION$ZSH_VERSION" \
18237 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18238 as_echo='print -r --'
18239 as_echo_n='print -rn --'
18240 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18241 as_echo='printf %s\n'
18242 as_echo_n='printf %s'
18244 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18245 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18246 as_echo_n='/usr/ucb/echo -n'
18248 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18249 as_echo_n_body='eval
18253 expr "X$arg" : "X\\(.*\\)$as_nl";
18254 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18256 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18258 export as_echo_n_body
18259 as_echo_n='sh -c $as_echo_n_body as_echo'
18261 export as_echo_body
18262 as_echo='sh -c $as_echo_body as_echo'
18265 # The user is always right.
18266 if test "${PATH_SEPARATOR+set}" != set; then
18268 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18269 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18276 # We need space, tab and new line, in precisely that order. Quoting is
18277 # there to prevent editors from complaining about space-tab.
18278 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18279 # splitting by setting IFS to empty value.)
18282 # Find who we are. Look in the path if we contain no directory separator.
18285 *[\\/]* ) as_myself=$0 ;;
18286 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18287 for as_dir in $PATH
18290 test -z "$as_dir" && as_dir=.
18291 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18297 # We did not find ourselves, most probably we were run as `sh COMMAND'
18298 # in which case we are not to be found in the path.
18299 if test "x$as_myself" = x; then
18302 if test ! -f "$as_myself"; then
18303 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18307 # Unset variables that we do not need and which cause bugs (e.g. in
18308 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18309 # suppresses any "Segmentation fault" message there. '((' could
18310 # trigger a bug in pdksh 5.2.14.
18311 for as_var in BASH_ENV ENV MAIL MAILPATH
18312 do eval test x\${$as_var+set} = xset \
18313 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18326 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18329 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18330 # ----------------------------------------
18331 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18332 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18333 # script with STATUS, using 1 if that was 0.
18336 as_status=$1; test $as_status -eq 0 && as_status=1
18338 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18339 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18341 $as_echo "$as_me: error: $2" >&2
18342 as_fn_exit $as_status
18346 # as_fn_set_status STATUS
18347 # -----------------------
18348 # Set $? to STATUS, without forking.
18349 as_fn_set_status ()
18352 } # as_fn_set_status
18354 # as_fn_exit STATUS
18355 # -----------------
18356 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18360 as_fn_set_status $1
18366 # Portably unset VAR.
18369 { eval $1=; unset $1;}
18371 as_unset=as_fn_unset
18372 # as_fn_append VAR VALUE
18373 # ----------------------
18374 # Append the text in VALUE to the end of the definition contained in VAR. Take
18375 # advantage of any shell optimizations that allow amortized linear growth over
18376 # repeated appends, instead of the typical quadratic growth present in naive
18378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18379 eval 'as_fn_append ()
18390 # as_fn_arith ARG...
18391 # ------------------
18392 # Perform arithmetic evaluation on the ARGs, and store the result in the
18393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18394 # must be portable across $(()) and expr.
18395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18396 eval 'as_fn_arith ()
18403 as_val=`expr "$@" || test $? -eq 1`
18408 if expr a : '\(a\)' >/dev/null 2>&1 &&
18409 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18415 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18416 as_basename=basename
18421 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18427 as_me=`$as_basename -- "$0" ||
18428 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18429 X"$0" : 'X\(//\)$' \| \
18430 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18432 sed '/^.*\/\([^/][^/]*\)\/*$/{
18446 # Avoid depending upon Character Ranges.
18447 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18448 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18449 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18450 as_cr_digits='0123456789'
18451 as_cr_alnum=$as_cr_Letters$as_cr_digits
18453 ECHO_C= ECHO_N= ECHO_T=
18454 case `echo -n x` in #(((((
18456 case `echo 'xy\c'` in
18457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18466 rm -f conf$$ conf$$.exe conf$$.file
18467 if test -d conf$$.dir; then
18468 rm -f conf$$.dir/conf$$.file
18471 mkdir conf$$.dir 2>/dev/null
18473 if (echo >conf$$.file) 2>/dev/null; then
18474 if ln -s conf$$.file conf$$ 2>/dev/null; then
18476 # ... but there are two gotchas:
18477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18479 # In both cases, we have to default to `cp -p'.
18480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18482 elif ln conf$$.file conf$$ 2>/dev/null; then
18490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18491 rmdir conf$$.dir 2>/dev/null
18496 # Create "$as_dir" as a directory, including parents if necessary.
18501 -*) as_dir=./$as_dir;;
18503 test -d "$as_dir" || eval $as_mkdir_p || {
18507 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18508 *) as_qdir=$as_dir;;
18510 as_dirs="'$as_qdir' $as_dirs"
18511 as_dir=`$as_dirname -- "$as_dir" ||
18512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18513 X"$as_dir" : 'X\(//\)[^/]' \| \
18514 X"$as_dir" : 'X\(//\)$' \| \
18515 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18516 $as_echo X"$as_dir" |
18517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18521 /^X\(\/\/\)[^/].*/{
18534 test -d "$as_dir" && break
18536 test -z "$as_dirs" || eval "mkdir $as_dirs"
18537 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18541 if mkdir -p . 2>/dev/null; then
18542 as_mkdir_p='mkdir -p "$as_dir"'
18544 test -d ./-p && rmdir ./-p
18548 if test -x / >/dev/null 2>&1; then
18549 as_test_x='test -x'
18551 if ls -dL / >/dev/null 2>&1; then
18558 if test -d "$1"; then
18564 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18565 ???[sx]*):;;*)false;;esac;fi
18569 as_executable_p=$as_test_x
18571 # Sed expression to map a string onto a valid CPP name.
18572 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18574 # Sed expression to map a string onto a valid variable name.
18575 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18579 ## ----------------------------------- ##
18580 ## Main body of $CONFIG_STATUS script. ##
18581 ## ----------------------------------- ##
18583 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18586 # Save the log message, to keep $0 and so on meaningful, and to
18587 # report actual input values of CONFIG_FILES etc. instead of their
18588 # values after options handling.
18590 This file was extended by libXft $as_me 2.3.2, which was
18591 generated by GNU Autoconf 2.68. Invocation command line was
18593 CONFIG_FILES = $CONFIG_FILES
18594 CONFIG_HEADERS = $CONFIG_HEADERS
18595 CONFIG_LINKS = $CONFIG_LINKS
18596 CONFIG_COMMANDS = $CONFIG_COMMANDS
18599 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18604 case $ac_config_files in *"
18605 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18608 case $ac_config_headers in *"
18609 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18614 # Files that config.status was made for.
18615 config_files="$ac_config_files"
18616 config_headers="$ac_config_headers"
18617 config_commands="$ac_config_commands"
18621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18623 \`$as_me' instantiates files and other configuration actions
18624 from templates according to the current configuration. Unless the files
18625 and actions are specified as TAGs, all are instantiated by default.
18627 Usage: $0 [OPTION]... [TAG]...
18629 -h, --help print this help, then exit
18630 -V, --version print version number and configuration settings, then exit
18631 --config print configuration, then exit
18632 -q, --quiet, --silent
18633 do not print progress messages
18634 -d, --debug don't remove temporary files
18635 --recheck update $as_me by reconfiguring in the same conditions
18636 --file=FILE[:TEMPLATE]
18637 instantiate the configuration file FILE
18638 --header=FILE[:TEMPLATE]
18639 instantiate the configuration header FILE
18641 Configuration files:
18644 Configuration headers:
18647 Configuration commands:
18650 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18654 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18656 libXft config.status 2.3.2
18657 configured by $0, generated by GNU Autoconf 2.68,
18658 with options \\"\$ac_cs_config\\"
18660 Copyright (C) 2010 Free Software Foundation, Inc.
18661 This config.status script is free software; the Free Software Foundation
18662 gives unlimited permission to copy, distribute and modify it."
18669 test -n "\$AWK" || AWK=awk
18672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18673 # The default lists apply if the user does not specify any file.
18679 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18680 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18684 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18696 # Handling of the options.
18697 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18699 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18700 $as_echo "$ac_cs_version"; exit ;;
18701 --config | --confi | --conf | --con | --co | --c )
18702 $as_echo "$ac_cs_config"; exit ;;
18703 --debug | --debu | --deb | --de | --d | -d )
18705 --file | --fil | --fi | --f )
18708 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18709 '') as_fn_error $? "missing file argument" ;;
18711 as_fn_append CONFIG_FILES " '$ac_optarg'"
18712 ac_need_defaults=false;;
18713 --header | --heade | --head | --hea )
18716 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18718 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18719 ac_need_defaults=false;;
18721 # Conflict between --help and --header
18722 as_fn_error $? "ambiguous option: \`$1'
18723 Try \`$0 --help' for more information.";;
18724 --help | --hel | -h )
18725 $as_echo "$ac_cs_usage"; exit ;;
18726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18727 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18730 # This is an error.
18731 -*) as_fn_error $? "unrecognized option: \`$1'
18732 Try \`$0 --help' for more information." ;;
18734 *) as_fn_append ac_config_targets " $1"
18735 ac_need_defaults=false ;;
18741 ac_configure_extra_args=
18743 if $ac_cs_silent; then
18745 ac_configure_extra_args="$ac_configure_extra_args --silent"
18749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18750 if \$ac_cs_recheck; then
18751 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18753 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18754 CONFIG_SHELL='$SHELL'
18755 export CONFIG_SHELL
18760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18764 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18765 ## Running $as_me. ##
18771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18775 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18778 # The HP-UX ksh and POSIX shell print the target directory to stdout
18779 # if CDPATH is set.
18780 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18782 sed_quote_subst='$sed_quote_subst'
18783 double_quote_subst='$double_quote_subst'
18784 delay_variable_subst='$delay_variable_subst'
18785 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18786 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18787 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18788 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18789 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18790 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18791 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18792 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18793 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18794 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18795 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18796 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18797 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18798 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18799 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18800 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18801 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18802 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18803 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18804 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18805 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18806 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18807 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18808 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18809 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18810 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18811 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18812 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18813 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18814 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18815 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18816 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18817 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18818 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18819 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18820 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18821 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18822 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18823 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18824 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18825 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18826 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18827 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18828 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18829 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18830 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18831 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18832 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18833 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18834 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18835 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18836 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18837 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18838 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18839 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18840 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18841 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"`'
18842 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18843 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18844 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18845 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18846 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18847 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18848 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18849 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18850 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18851 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18852 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18853 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18854 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18855 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18856 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18857 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18858 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18859 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18860 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18861 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18862 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18863 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18864 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18865 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18866 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18867 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18868 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18869 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18870 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18871 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18872 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18873 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18874 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18875 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18876 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18877 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18878 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18879 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18880 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18881 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18882 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18883 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18884 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18885 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18886 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18887 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18888 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18889 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18890 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18891 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18892 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18893 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18894 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18895 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18896 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18897 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18898 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18899 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18900 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18901 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18902 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18903 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18904 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18905 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18906 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18907 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18908 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18909 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18910 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18911 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18912 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18913 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18914 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18917 LTCFLAGS='$LTCFLAGS'
18918 compiler='$compiler_DEFAULT'
18920 # A function that is used when there is no print builtin or printf.
18921 func_fallback_echo ()
18923 eval 'cat <<_LTECHO_EOF
18928 # Quote evaled strings.
18943 deplibs_check_method \
18948 sharedlib_from_linklib_cmd \
18951 archiver_list_spec \
18957 lt_cv_sys_global_symbol_pipe \
18958 lt_cv_sys_global_symbol_to_cdecl \
18959 lt_cv_sys_global_symbol_to_c_name_address \
18960 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18961 nm_file_list_spec \
18962 lt_prog_compiler_no_builtin_flag \
18963 lt_prog_compiler_pic \
18964 lt_prog_compiler_wl \
18965 lt_prog_compiler_static \
18966 lt_cv_prog_compiler_c_o \
18975 export_dynamic_flag_spec \
18976 whole_archive_flag_spec \
18977 compiler_needs_object \
18979 allow_undefined_flag \
18980 no_undefined_flag \
18981 hardcode_libdir_flag_spec \
18982 hardcode_libdir_separator \
18986 variables_saved_for_relink \
18988 library_names_spec \
18990 install_override_mode \
18994 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18995 *[\\\\\\\`\\"\\\$]*)
18996 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18999 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19004 # Double-quote double-evaled strings.
19005 for var in reload_cmds \
19006 old_postinstall_cmds \
19007 old_postuninstall_cmds \
19009 extract_expsyms_cmds \
19010 old_archive_from_new_cmds \
19011 old_archive_from_expsyms_cmds \
19013 archive_expsym_cmds \
19015 module_expsym_cmds \
19016 export_symbols_cmds \
19020 postuninstall_cmds \
19022 sys_lib_search_path_spec \
19023 sys_lib_dlsearch_path_spec; do
19024 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19025 *[\\\\\\\`\\"\\\$]*)
19026 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19029 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19034 ac_aux_dir='$ac_aux_dir'
19035 xsi_shell='$xsi_shell'
19036 lt_shell_append='$lt_shell_append'
19038 # See if we are running on zsh, and set the options which allow our
19039 # commands through without removal of \ escapes INIT.
19040 if test -n "\${ZSH_VERSION+set}" ; then
19041 setopt NO_GLOB_SUBST
19047 TIMESTAMP='$TIMESTAMP'
19056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19058 # Handling of arguments.
19059 for ac_config_target in $ac_config_targets
19061 case $ac_config_target in
19062 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19063 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19064 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19065 "include/X11/Xft/Xft.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xft/Xft.h" ;;
19066 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19067 "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;;
19068 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19069 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19071 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19076 # If the user did not use the arguments to specify the items to instantiate,
19077 # then the envvar interface is used. Set only those that are not.
19078 # We use the long form for the default assignment because of an extremely
19079 # bizarre bug on SunOS 4.1.3.
19080 if $ac_need_defaults; then
19081 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19082 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19083 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19086 # Have a temporary directory for convenience. Make it in the build tree
19087 # simply because there is no reason against having it here, and in addition,
19088 # creating and moving files from /tmp can sometimes cause problems.
19089 # Hook for its removal unless debugging.
19090 # Note that there is a small window in which the directory will not be cleaned:
19091 # after its creation but before its name has been assigned to `$tmp'.
19095 trap 'exit_status=$?
19096 : "${ac_tmp:=$tmp}"
19097 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19099 trap 'as_fn_exit 1' 1 2 13 15
19101 # Create a (secure) tmp directory for tmp files.
19104 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19108 tmp=./conf$$-$RANDOM
19109 (umask 077 && mkdir "$tmp")
19110 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19113 # Set up the scripts for CONFIG_FILES section.
19114 # No need to generate them if there are no CONFIG_FILES.
19115 # This happens for instance with `./config.status config.h'.
19116 if test -n "$CONFIG_FILES"; then
19119 ac_cr=`echo X | tr X '\015'`
19120 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19121 # But we know of no other shell where ac_cr would be empty at this
19122 # point, so we can use a bashism as a fallback.
19123 if test "x$ac_cr" = x; then
19124 eval ac_cr=\$\'\\r\'
19126 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19127 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19130 ac_cs_awk_cr=$ac_cr
19133 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19138 echo "cat >conf$$subs.awk <<_ACEOF" &&
19139 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19141 } >conf$$subs.sh ||
19142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19143 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19145 for ac_last_try in false false false false false :; do
19146 . ./conf$$subs.sh ||
19147 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19149 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19150 if test $ac_delim_n = $ac_delim_num; then
19152 elif $ac_last_try; then
19153 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19155 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19158 rm -f conf$$subs.sh
19160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19161 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19165 s/^/S["/; s/!.*/"]=/
19175 s/\(.\{148\}\)..*/\1/
19177 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19182 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19189 s/\(.\{148\}\)..*/\1/
19191 s/["\\]/\\&/g; s/^/"/; s/$/"/
19195 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19200 ' <conf$$subs.awk | sed '
19205 ' >>$CONFIG_STATUS || ac_write_fail=1
19206 rm -f conf$$subs.awk
19207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19209 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19210 for (key in S) S_is_set[key] = 1
19216 nfields = split(line, field, "@")
19218 len = length(field[1])
19219 for (i = 2; i < nfields; i++) {
19221 keylen = length(key)
19222 if (S_is_set[key]) {
19224 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19225 len += length(value) + length(field[++i])
19236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19237 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19238 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19241 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19242 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19245 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19246 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19247 # trailing colons and then remove the whole line if VPATH becomes empty
19248 # (actually we leave an empty line to preserve line numbers).
19249 if test "x$srcdir" = x.; then
19250 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19269 fi # test -n "$CONFIG_FILES"
19271 # Set up the scripts for CONFIG_HEADERS section.
19272 # No need to generate them if there are no CONFIG_HEADERS.
19273 # This happens for instance with `./config.status Makefile'.
19274 if test -n "$CONFIG_HEADERS"; then
19275 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19279 # Transform confdefs.h into an awk script `defines.awk', embedded as
19280 # here-document in config.status, that substitutes the proper values into
19281 # config.h.in to produce config.h.
19283 # Create a delimiter string that does not exist in confdefs.h, to ease
19284 # handling of long lines.
19286 for ac_last_try in false false :; do
19287 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19288 if test -z "$ac_tt"; then
19290 elif $ac_last_try; then
19291 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19297 # For the awk script, D is an array of macro values keyed by name,
19298 # likewise P contains macro parameters if any. Preserve backslash
19299 # newline sequences.
19301 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19303 s/.\{148\}/&'"$ac_delim"'/g
19306 s/^[ ]*#[ ]*define[ ][ ]*/ /
19313 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19315 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19320 D["\1"]=" \3\\\\\\n"\\/p
19322 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19327 s/.\{148\}/&'"$ac_delim"'/g
19332 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19335 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19337 ' <confdefs.h | sed '
19338 s/'"$ac_delim"'/"\\\
19339 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19342 for (key in D) D_is_set[key] = 1
19345 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19347 split(line, arg, " ")
19348 if (arg[1] == "#") {
19352 defundef = substr(arg[1], 2)
19355 split(mac1, mac2, "(") #)
19357 prefix = substr(line, 1, index(line, defundef) - 1)
19358 if (D_is_set[macro]) {
19359 # Preserve the white space surrounding the "#".
19360 print prefix "define", macro P[macro] D[macro]
19363 # Replace #undef with comments. This is necessary, for example,
19364 # in the case of _POSIX_SOURCE, which is predefined and required
19365 # on some systems where configure will not decide to define it.
19366 if (defundef == "undef") {
19367 print "/*", prefix defundef, macro, "*/"
19375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19376 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19377 fi # test -n "$CONFIG_HEADERS"
19380 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19385 :[FHLC]) ac_mode=$ac_tag; continue;;
19387 case $ac_mode$ac_tag in
19389 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19390 :[FH]-) ac_tag=-:-;;
19391 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19408 -) ac_f="$ac_tmp/stdin";;
19409 *) # Look for the file first in the build tree, then in the source tree
19410 # (if the path is not absolute). The absolute path cannot be DOS-style,
19411 # because $ac_f cannot contain `:'.
19415 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19417 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19419 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19420 as_fn_append ac_file_inputs " '$ac_f'"
19423 # Let's still pretend it is `configure' which instantiates (i.e., don't
19424 # use $as_me), people would be surprised to read:
19425 # /* config.h. Generated by config.status. */
19426 configure_input='Generated from '`
19427 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19429 if test x"$ac_file" != x-; then
19430 configure_input="$ac_file. $configure_input"
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19432 $as_echo "$as_me: creating $ac_file" >&6;}
19434 # Neutralize special characters interpreted by sed in replacement strings.
19435 case $configure_input in #(
19436 *\&* | *\|* | *\\* )
19437 ac_sed_conf_input=`$as_echo "$configure_input" |
19438 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19439 *) ac_sed_conf_input=$configure_input;;
19443 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19449 ac_dir=`$as_dirname -- "$ac_file" ||
19450 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19451 X"$ac_file" : 'X\(//\)[^/]' \| \
19452 X"$ac_file" : 'X\(//\)$' \| \
19453 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19454 $as_echo X"$ac_file" |
19455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19459 /^X\(\/\/\)[^/].*/{
19472 as_dir="$ac_dir"; as_fn_mkdir_p
19476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19479 # A ".." for each directory in $ac_dir_suffix.
19480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19481 case $ac_top_builddir_sub in
19482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19486 ac_abs_top_builddir=$ac_pwd
19487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19488 # for backward compatibility:
19489 ac_top_builddir=$ac_top_build_prefix
19492 .) # We are building in place.
19494 ac_top_srcdir=$ac_top_builddir_sub
19495 ac_abs_top_srcdir=$ac_pwd ;;
19496 [\\/]* | ?:[\\/]* ) # Absolute name.
19497 ac_srcdir=$srcdir$ac_dir_suffix;
19498 ac_top_srcdir=$srcdir
19499 ac_abs_top_srcdir=$srcdir ;;
19500 *) # Relative name.
19501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19502 ac_top_srcdir=$ac_top_build_prefix$srcdir
19503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19515 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19516 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19518 ac_MKDIR_P=$MKDIR_P
19520 [\\/$]* | ?:[\\/]* ) ;;
19521 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19526 # If the template does not know about datarootdir, expand it.
19527 # FIXME: This hack should be removed a few years after 2.60.
19528 ac_datarootdir_hack=; ac_datarootdir_seen=
19539 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19540 *datarootdir*) ac_datarootdir_seen=yes;;
19541 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19543 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19546 ac_datarootdir_hack='
19547 s&@datadir@&$datadir&g
19548 s&@docdir@&$docdir&g
19549 s&@infodir@&$infodir&g
19550 s&@localedir@&$localedir&g
19551 s&@mandir@&$mandir&g
19552 s&\\\${datarootdir}&$datarootdir&g' ;;
19556 # Neutralize VPATH when `$srcdir' = `.'.
19557 # Shell code in configure.ac might set extrasub.
19558 # FIXME: do we really want to maintain this feature?
19559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19560 ac_sed_extra="$ac_vpsub
19563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19566 s|@configure_input@|$ac_sed_conf_input|;t t
19567 s&@top_builddir@&$ac_top_builddir_sub&;t t
19568 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19569 s&@srcdir@&$ac_srcdir&;t t
19570 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19571 s&@top_srcdir@&$ac_top_srcdir&;t t
19572 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19573 s&@builddir@&$ac_builddir&;t t
19574 s&@abs_builddir@&$ac_abs_builddir&;t t
19575 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19576 s&@INSTALL@&$ac_INSTALL&;t t
19577 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19578 $ac_datarootdir_hack
19580 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19581 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19583 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19584 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19585 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19586 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19588 which seems to be undefined. Please make sure it is defined" >&5
19589 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19590 which seems to be undefined. Please make sure it is defined" >&2;}
19592 rm -f "$ac_tmp/stdin"
19594 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19595 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19597 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19603 if test x"$ac_file" != x-; then
19605 $as_echo "/* $configure_input */" \
19606 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19607 } >"$ac_tmp/config.h" \
19608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19609 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19611 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19614 mv "$ac_tmp/config.h" "$ac_file" \
19615 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19618 $as_echo "/* $configure_input */" \
19619 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19620 || as_fn_error $? "could not create -" "$LINENO" 5
19622 # Compute "$ac_file"'s index in $config_headers.
19625 for _am_header in $config_headers :; do
19626 case $_am_header in
19627 $_am_arg | $_am_arg:* )
19630 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19633 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19634 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19635 X"$_am_arg" : 'X\(//\)[^/]' \| \
19636 X"$_am_arg" : 'X\(//\)$' \| \
19637 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19638 $as_echo X"$_am_arg" |
19639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19643 /^X\(\/\/\)[^/].*/{
19655 s/.*/./; q'`/stamp-h$_am_stamp_count
19658 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19659 $as_echo "$as_me: executing $ac_file commands" >&6;}
19664 case $ac_file$ac_mode in
19665 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19666 # Older Autoconf quotes --file arguments for eval, but not when files
19667 # are listed without --file. Let's play safe and only enable the eval
19668 # if we detect the quoting.
19669 case $CONFIG_FILES in
19670 *\'*) eval set x "$CONFIG_FILES" ;;
19671 *) set x $CONFIG_FILES ;;
19676 # Strip MF so we end up with the name of the file.
19677 mf=`echo "$mf" | sed -e 's/:.*$//'`
19678 # Check whether this is an Automake generated Makefile or not.
19679 # We used to match only the files named 'Makefile.in', but
19680 # some people rename them; so instead we look at the file content.
19681 # Grep'ing the first line is not enough: some people post-process
19682 # each Makefile.in and add a new line on top of each file to say so.
19683 # Grep'ing the whole file is not good either: AIX grep has a line
19684 # limit of 2048, but all sed's we know have understand at least 4000.
19685 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19686 dirpart=`$as_dirname -- "$mf" ||
19687 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19688 X"$mf" : 'X\(//\)[^/]' \| \
19689 X"$mf" : 'X\(//\)$' \| \
19690 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19696 /^X\(\/\/\)[^/].*/{
19712 # Extract the definition of DEPDIR, am__include, and am__quote
19713 # from the Makefile without running 'make'.
19714 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19715 test -z "$DEPDIR" && continue
19716 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19717 test -z "$am__include" && continue
19718 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19719 # Find all dependency output files, they are included files with
19720 # $(DEPDIR) in their names. We invoke sed twice because it is the
19721 # simplest approach to changing $(DEPDIR) to its actual value in the
19723 for file in `sed -n "
19724 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19725 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19726 # Make sure the directory exists.
19727 test -f "$dirpart/$file" && continue
19728 fdir=`$as_dirname -- "$file" ||
19729 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19730 X"$file" : 'X\(//\)[^/]' \| \
19731 X"$file" : 'X\(//\)$' \| \
19732 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19733 $as_echo X"$file" |
19734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19738 /^X\(\/\/\)[^/].*/{
19751 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19752 # echo "creating $dirpart/$file"
19753 echo '# dummy' > "$dirpart/$file"
19760 # See if we are running on zsh, and set the options which allow our
19761 # commands through without removal of \ escapes.
19762 if test -n "${ZSH_VERSION+set}" ; then
19763 setopt NO_GLOB_SUBST
19766 cfgfile="${ofile}T"
19767 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19770 cat <<_LT_EOF >> "$cfgfile"
19773 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19774 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19776 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19778 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19779 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19781 # Written by Gordon Matzigkeit, 1996
19783 # This file is part of GNU Libtool.
19785 # GNU Libtool is free software; you can redistribute it and/or
19786 # modify it under the terms of the GNU General Public License as
19787 # published by the Free Software Foundation; either version 2 of
19788 # the License, or (at your option) any later version.
19790 # As a special exception to the GNU General Public License,
19791 # if you distribute this file as part of a program or library that
19792 # is built using GNU Libtool, you may include this file under the
19793 # same distribution terms that you use for the rest of that program.
19795 # GNU Libtool is distributed in the hope that it will be useful,
19796 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19797 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19798 # GNU General Public License for more details.
19800 # You should have received a copy of the GNU General Public License
19801 # along with GNU Libtool; see the file COPYING. If not, a copy
19802 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19803 # obtained by writing to the Free Software Foundation, Inc.,
19804 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19807 # The names of the tagged configurations supported by this script.
19810 # ### BEGIN LIBTOOL CONFIG
19812 # Which release of libtool.m4 was used?
19813 macro_version=$macro_version
19814 macro_revision=$macro_revision
19816 # Whether or not to build shared libraries.
19817 build_libtool_libs=$enable_shared
19819 # Whether or not to build static libraries.
19820 build_old_libs=$enable_static
19822 # What type of objects to build.
19825 # Whether or not to optimize for fast installation.
19826 fast_install=$enable_fast_install
19828 # Shell to use when invoking shell scripts.
19831 # An echo program that protects backslashes.
19834 # The PATH separator for the build system.
19835 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19838 host_alias=$host_alias
19842 # The build system.
19843 build_alias=$build_alias
19847 # A sed program that does not truncate output.
19850 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19851 Xsed="\$SED -e 1s/^X//"
19853 # A grep program that handles long lines.
19859 # A literal string matcher.
19862 # A BSD- or MS-compatible name lister.
19865 # Whether we need soft or hard links.
19868 # What is the maximum length of a command?
19869 max_cmd_len=$max_cmd_len
19871 # Object file suffix (normally "o").
19874 # Executable file suffix (normally "").
19877 # whether the shell understands "unset".
19880 # turn spaces into newlines.
19883 # turn newlines into spaces.
19886 # convert \$build file names to \$host format.
19887 to_host_file_cmd=$lt_cv_to_host_file_cmd
19889 # convert \$build files to toolchain format.
19890 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19892 # An object symbol dumper.
19893 OBJDUMP=$lt_OBJDUMP
19895 # Method to check whether dependent libraries are shared objects.
19896 deplibs_check_method=$lt_deplibs_check_method
19898 # Command to use when deplibs_check_method = "file_magic".
19899 file_magic_cmd=$lt_file_magic_cmd
19901 # How to find potential files when deplibs_check_method = "file_magic".
19902 file_magic_glob=$lt_file_magic_glob
19904 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19905 want_nocaseglob=$lt_want_nocaseglob
19907 # DLL creation program.
19908 DLLTOOL=$lt_DLLTOOL
19910 # Command to associate shared and link libraries.
19911 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19916 # Flags to create an archive.
19917 AR_FLAGS=$lt_AR_FLAGS
19919 # How to feed a file listing to the archiver.
19920 archiver_list_spec=$lt_archiver_list_spec
19922 # A symbol stripping program.
19925 # Commands used to install an old-style archive.
19927 old_postinstall_cmds=$lt_old_postinstall_cmds
19928 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19930 # Whether to use a lock for old archive extraction.
19931 lock_old_archive_extraction=$lock_old_archive_extraction
19936 # LTCC compiler flags.
19937 LTCFLAGS=$lt_CFLAGS
19939 # Take the output of nm and produce a listing of raw symbols and C names.
19940 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19942 # Transform the output of nm in a proper C declaration.
19943 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19945 # Transform the output of nm in a C name address pair.
19946 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19948 # Transform the output of nm in a C name address pair when lib prefix is needed.
19949 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19951 # Specify filename containing input files for \$NM.
19952 nm_file_list_spec=$lt_nm_file_list_spec
19954 # The root where to search for dependent libraries,and in which our libraries should be installed.
19955 lt_sysroot=$lt_sysroot
19957 # The name of the directory that contains temporary libtool files.
19960 # Used to examine libraries when file_magic_cmd begins with "file".
19961 MAGIC_CMD=$MAGIC_CMD
19963 # Must we lock files when doing compilation?
19964 need_locks=$lt_need_locks
19967 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19969 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19970 DSYMUTIL=$lt_DSYMUTIL
19972 # Tool to change global to local symbols on Mac OS X.
19975 # Tool to manipulate fat objects and archives on Mac OS X.
19978 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19981 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19982 OTOOL64=$lt_OTOOL64
19984 # Old archive suffix (normally "a").
19987 # Shared library suffix (normally ".so").
19988 shrext_cmds=$lt_shrext_cmds
19990 # The commands to extract the exported symbol list from a shared archive.
19991 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19993 # Variables whose values should be saved in libtool wrapper scripts and
19994 # restored at link time.
19995 variables_saved_for_relink=$lt_variables_saved_for_relink
19997 # Do we need the "lib" prefix for modules?
19998 need_lib_prefix=$need_lib_prefix
20000 # Do we need a version for libraries?
20001 need_version=$need_version
20003 # Library versioning type.
20004 version_type=$version_type
20006 # Shared library runtime path variable.
20007 runpath_var=$runpath_var
20009 # Shared library path variable.
20010 shlibpath_var=$shlibpath_var
20012 # Is shlibpath searched before the hard-coded library search path?
20013 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20015 # Format of library name prefix.
20016 libname_spec=$lt_libname_spec
20018 # List of archive names. First name is the real one, the rest are links.
20019 # The last name is the one that the linker finds with -lNAME
20020 library_names_spec=$lt_library_names_spec
20022 # The coded name of the library, if different from the real name.
20023 soname_spec=$lt_soname_spec
20025 # Permission mode override for installation of shared libraries.
20026 install_override_mode=$lt_install_override_mode
20028 # Command to use after installation of a shared archive.
20029 postinstall_cmds=$lt_postinstall_cmds
20031 # Command to use after uninstallation of a shared archive.
20032 postuninstall_cmds=$lt_postuninstall_cmds
20034 # Commands used to finish a libtool library installation in a directory.
20035 finish_cmds=$lt_finish_cmds
20037 # As "finish_cmds", except a single script fragment to be evaled but
20039 finish_eval=$lt_finish_eval
20041 # Whether we should hardcode library paths into libraries.
20042 hardcode_into_libs=$hardcode_into_libs
20044 # Compile-time system search path for libraries.
20045 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20047 # Run-time system search path for libraries.
20048 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20050 # Whether dlopen is supported.
20051 dlopen_support=$enable_dlopen
20053 # Whether dlopen of programs is supported.
20054 dlopen_self=$enable_dlopen_self
20056 # Whether dlopen of statically linked programs is supported.
20057 dlopen_self_static=$enable_dlopen_self_static
20059 # Commands to strip libraries.
20060 old_striplib=$lt_old_striplib
20061 striplib=$lt_striplib
20064 # The linker used to build libraries.
20067 # How to create reloadable object files.
20068 reload_flag=$lt_reload_flag
20069 reload_cmds=$lt_reload_cmds
20071 # Commands used to build an old-style archive.
20072 old_archive_cmds=$lt_old_archive_cmds
20074 # A language specific compiler.
20077 # Is the compiler the GNU compiler?
20080 # Compiler flag to turn off builtin functions.
20081 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20083 # Additional compiler flags for building library objects.
20084 pic_flag=$lt_lt_prog_compiler_pic
20086 # How to pass a linker flag through the compiler.
20087 wl=$lt_lt_prog_compiler_wl
20089 # Compiler flag to prevent dynamic linking.
20090 link_static_flag=$lt_lt_prog_compiler_static
20092 # Does compiler simultaneously support -c and -o options?
20093 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20095 # Whether or not to add -lc for building shared libraries.
20096 build_libtool_need_lc=$archive_cmds_need_lc
20098 # Whether or not to disallow shared libs when runtime libs are static.
20099 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20101 # Compiler flag to allow reflexive dlopens.
20102 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20104 # Compiler flag to generate shared objects directly from archives.
20105 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20107 # Whether the compiler copes with passing no objects directly.
20108 compiler_needs_object=$lt_compiler_needs_object
20110 # Create an old-style archive from a shared archive.
20111 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20113 # Create a temporary old-style archive to link instead of a shared archive.
20114 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20116 # Commands used to build a shared archive.
20117 archive_cmds=$lt_archive_cmds
20118 archive_expsym_cmds=$lt_archive_expsym_cmds
20120 # Commands used to build a loadable module if different from building
20121 # a shared archive.
20122 module_cmds=$lt_module_cmds
20123 module_expsym_cmds=$lt_module_expsym_cmds
20125 # Whether we are building with GNU ld or not.
20126 with_gnu_ld=$lt_with_gnu_ld
20128 # Flag that allows shared libraries with undefined symbols to be built.
20129 allow_undefined_flag=$lt_allow_undefined_flag
20131 # Flag that enforces no undefined symbols.
20132 no_undefined_flag=$lt_no_undefined_flag
20134 # Flag to hardcode \$libdir into a binary during linking.
20135 # This must work even if \$libdir does not exist
20136 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20138 # Whether we need a single "-rpath" flag with a separated argument.
20139 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20141 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20142 # DIR into the resulting binary.
20143 hardcode_direct=$hardcode_direct
20145 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20146 # DIR into the resulting binary and the resulting library dependency is
20147 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20148 # library is relocated.
20149 hardcode_direct_absolute=$hardcode_direct_absolute
20151 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20152 # into the resulting binary.
20153 hardcode_minus_L=$hardcode_minus_L
20155 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20156 # into the resulting binary.
20157 hardcode_shlibpath_var=$hardcode_shlibpath_var
20159 # Set to "yes" if building a shared library automatically hardcodes DIR
20160 # into the library and all subsequent libraries and executables linked
20162 hardcode_automatic=$hardcode_automatic
20164 # Set to yes if linker adds runtime paths of dependent libraries
20165 # to runtime path list.
20166 inherit_rpath=$inherit_rpath
20168 # Whether libtool must link a program against all its dependency libraries.
20169 link_all_deplibs=$link_all_deplibs
20171 # Set to "yes" if exported symbols are required.
20172 always_export_symbols=$always_export_symbols
20174 # The commands to list exported symbols.
20175 export_symbols_cmds=$lt_export_symbols_cmds
20177 # Symbols that should not be listed in the preloaded symbols.
20178 exclude_expsyms=$lt_exclude_expsyms
20180 # Symbols that must always be exported.
20181 include_expsyms=$lt_include_expsyms
20183 # Commands necessary for linking programs (against libraries) with templates.
20184 prelink_cmds=$lt_prelink_cmds
20186 # Commands necessary for finishing linking programs.
20187 postlink_cmds=$lt_postlink_cmds
20189 # Specify filename containing input files.
20190 file_list_spec=$lt_file_list_spec
20192 # How to hardcode a shared library path into an executable.
20193 hardcode_action=$hardcode_action
20195 # ### END LIBTOOL CONFIG
20201 cat <<\_LT_EOF >> "$cfgfile"
20202 # AIX sometimes has problems with the GCC collect2 program. For some
20203 # reason, if we set the COLLECT_NAMES environment variable, the problems
20204 # vanish in a puff of smoke.
20205 if test "X${COLLECT_NAMES+set}" != Xset; then
20207 export COLLECT_NAMES
20214 ltmain="$ac_aux_dir/ltmain.sh"
20217 # We use sed instead of cat because bash on DJGPP gets confused if
20218 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20219 # text mode, it properly converts lines to CR/LF. This bash problem
20220 # is reportedly fixed, but why not run on old versions too?
20221 sed '$q' "$ltmain" >> "$cfgfile" \
20222 || (rm -f "$cfgfile"; exit 1)
20224 if test x"$xsi_shell" = xyes; then
20225 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20229 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20230 \ * ) func_dirname_result="${3}" ;;\
20232 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20233 && mv -f "$cfgfile.tmp" "$cfgfile" \
20234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20235 test 0 -eq $? || _lt_function_replace_fail=:
20238 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20241 \ func_basename_result="${1##*/}"\
20242 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20243 && mv -f "$cfgfile.tmp" "$cfgfile" \
20244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20245 test 0 -eq $? || _lt_function_replace_fail=:
20248 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20249 func_dirname_and_basename ()\
20252 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20253 \ * ) func_dirname_result="${3}" ;;\
20255 \ func_basename_result="${1##*/}"\
20256 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20257 && mv -f "$cfgfile.tmp" "$cfgfile" \
20258 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20259 test 0 -eq $? || _lt_function_replace_fail=:
20262 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20265 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20266 \ # positional parameters, so assign one to ordinary parameter first.\
20267 \ func_stripname_result=${3}\
20268 \ func_stripname_result=${func_stripname_result#"${1}"}\
20269 \ func_stripname_result=${func_stripname_result%"${2}"}\
20270 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20271 && mv -f "$cfgfile.tmp" "$cfgfile" \
20272 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20273 test 0 -eq $? || _lt_function_replace_fail=:
20276 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20277 func_split_long_opt ()\
20279 \ func_split_long_opt_name=${1%%=*}\
20280 \ func_split_long_opt_arg=${1#*=}\
20281 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20282 && mv -f "$cfgfile.tmp" "$cfgfile" \
20283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20284 test 0 -eq $? || _lt_function_replace_fail=:
20287 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20288 func_split_short_opt ()\
20290 \ func_split_short_opt_arg=${1#??}\
20291 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20292 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20293 && mv -f "$cfgfile.tmp" "$cfgfile" \
20294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20295 test 0 -eq $? || _lt_function_replace_fail=:
20298 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20302 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20303 \ *) func_lo2o_result=${1} ;;\
20305 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20306 && mv -f "$cfgfile.tmp" "$cfgfile" \
20307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20308 test 0 -eq $? || _lt_function_replace_fail=:
20311 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20314 func_xform_result=${1%.*}.lo\
20315 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20316 && mv -f "$cfgfile.tmp" "$cfgfile" \
20317 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20318 test 0 -eq $? || _lt_function_replace_fail=:
20321 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20324 func_arith_result=$(( $* ))\
20325 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20326 && mv -f "$cfgfile.tmp" "$cfgfile" \
20327 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20328 test 0 -eq $? || _lt_function_replace_fail=:
20331 sed -e '/^func_len ()$/,/^} # func_len /c\
20334 func_len_result=${#1}\
20335 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20336 && mv -f "$cfgfile.tmp" "$cfgfile" \
20337 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20338 test 0 -eq $? || _lt_function_replace_fail=:
20342 if test x"$lt_shell_append" = xyes; then
20343 sed -e '/^func_append ()$/,/^} # func_append /c\
20346 eval "${1}+=\\${2}"\
20347 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20348 && mv -f "$cfgfile.tmp" "$cfgfile" \
20349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20350 test 0 -eq $? || _lt_function_replace_fail=:
20353 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20354 func_append_quoted ()\
20356 \ func_quote_for_eval "${2}"\
20357 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20358 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20359 && mv -f "$cfgfile.tmp" "$cfgfile" \
20360 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20361 test 0 -eq $? || _lt_function_replace_fail=:
20364 # Save a `func_append' function call where possible by direct use of '+='
20365 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20366 && mv -f "$cfgfile.tmp" "$cfgfile" \
20367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20368 test 0 -eq $? || _lt_function_replace_fail=:
20370 # Save a `func_append' function call even when '+=' is not available
20371 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20372 && mv -f "$cfgfile.tmp" "$cfgfile" \
20373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20374 test 0 -eq $? || _lt_function_replace_fail=:
20377 if test x"$_lt_function_replace_fail" = x":"; then
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20379 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20383 mv -f "$cfgfile" "$ofile" ||
20384 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20395 ac_clean_files=$ac_clean_files_save
20397 test $ac_write_fail = 0 ||
20398 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20401 # configure is writing to config.log, and then calls config.status.
20402 # config.status does its own redirection, appending to config.log.
20403 # Unfortunately, on DOS this fails, as config.log is still kept open
20404 # by configure, so config.status won't be able to write to it; its
20405 # output is simply discarded. So we exec the FD to /dev/null,
20406 # effectively closing config.log, so it can be properly (re)opened and
20407 # appended to by config.status. When coming back to configure, we
20408 # need to make the FD available again.
20409 if test "$no_create" != yes; then
20411 ac_config_status_args=
20412 test "$silent" = yes &&
20413 ac_config_status_args="$ac_config_status_args --quiet"
20415 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20417 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20418 # would make configure fail if this is the last instruction.
20419 $ac_cs_success || as_fn_exit 1
20421 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20423 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}