2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXft 2.3.1.
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.1'
575 PACKAGE_STRING='libXft 2.3.1'
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
697 MAINTAINER_MODE_FALSE
707 INSTALL_STRIP_PROGRAM
749 program_transform_name
762 enable_option_checking
763 enable_maintainer_mode
768 enable_dependency_tracking
772 enable_selective_werror
773 enable_strict_compilation
776 ac_precious_vars='build_alias
794 # Initialize some variables set by options.
796 ac_init_version=false
797 ac_unrecognized_opts=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
808 program_transform_name=s,x,x,
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 includedir='${prefix}/include'
831 oldincludedir='/usr/include'
832 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833 infodir='${datarootdir}/info'
838 libdir='${exec_prefix}/lib'
839 localedir='${datarootdir}/locale'
840 mandir='${datarootdir}/man'
846 # If the previous option needs an argument, assign it.
847 if test -n "$ac_prev"; then
848 eval $ac_prev=\$ac_option
854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 # Accept the important Cygnus configure options, so we can diagnose typos.
861 case $ac_dashdash$ac_option in
865 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 -build | --build | --buil | --bui | --bu)
871 ac_prev=build_alias ;;
872 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873 build_alias=$ac_optarg ;;
875 -cache-file | --cache-file | --cache-fil | --cache-fi \
876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877 ac_prev=cache_file ;;
878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880 cache_file=$ac_optarg ;;
883 cache_file=config.cache ;;
885 -datadir | --datadir | --datadi | --datad)
887 -datadir=* | --datadir=* | --datadi=* | --datad=*)
888 datadir=$ac_optarg ;;
890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891 | --dataroo | --dataro | --datar)
892 ac_prev=datarootdir ;;
893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895 datarootdir=$ac_optarg ;;
897 -disable-* | --disable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
911 eval enable_$ac_useropt=no ;;
913 -docdir | --docdir | --docdi | --doc | --do)
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 -enable-* | --enable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
937 eval enable_$ac_useropt=\$ac_optarg ;;
939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941 | --exec | --exe | --ex)
942 ac_prev=exec_prefix ;;
943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945 | --exec=* | --exe=* | --ex=*)
946 exec_prefix=$ac_optarg ;;
948 -gas | --gas | --ga | --g)
949 # Obsolete; use --with-gas.
952 -help | --help | --hel | --he | -h)
954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955 ac_init_help=recursive ;;
956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957 ac_init_help=short ;;
959 -host | --host | --hos | --ho)
960 ac_prev=host_alias ;;
961 -host=* | --host=* | --hos=* | --ho=*)
962 host_alias=$ac_optarg ;;
964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 htmldir=$ac_optarg ;;
970 -includedir | --includedir | --includedi | --included | --include \
971 | --includ | --inclu | --incl | --inc)
972 ac_prev=includedir ;;
973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974 | --includ=* | --inclu=* | --incl=* | --inc=*)
975 includedir=$ac_optarg ;;
977 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980 infodir=$ac_optarg ;;
982 -libdir | --libdir | --libdi | --libd)
984 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988 | --libexe | --libex | --libe)
989 ac_prev=libexecdir ;;
990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991 | --libexe=* | --libex=* | --libe=*)
992 libexecdir=$ac_optarg ;;
994 -localedir | --localedir | --localedi | --localed | --locale)
996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997 localedir=$ac_optarg ;;
999 -localstatedir | --localstatedir | --localstatedi | --localstated \
1000 | --localstate | --localstat | --localsta | --localst | --locals)
1001 ac_prev=localstatedir ;;
1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004 localstatedir=$ac_optarg ;;
1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009 mandir=$ac_optarg ;;
1011 -nfp | --nfp | --nf)
1012 # Obsolete; use --without-fp.
1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016 | --no-cr | --no-c | -n)
1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025 | --oldin | --oldi | --old | --ol | --o)
1026 ac_prev=oldincludedir ;;
1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030 oldincludedir=$ac_optarg ;;
1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035 prefix=$ac_optarg ;;
1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038 | --program-pre | --program-pr | --program-p)
1039 ac_prev=program_prefix ;;
1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042 program_prefix=$ac_optarg ;;
1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045 | --program-suf | --program-su | --program-s)
1046 ac_prev=program_suffix ;;
1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049 program_suffix=$ac_optarg ;;
1051 -program-transform-name | --program-transform-name \
1052 | --program-transform-nam | --program-transform-na \
1053 | --program-transform-n | --program-transform- \
1054 | --program-transform | --program-transfor \
1055 | --program-transfo | --program-transf \
1056 | --program-trans | --program-tran \
1057 | --progr-tra | --program-tr | --program-t)
1058 ac_prev=program_transform_name ;;
1059 -program-transform-name=* | --program-transform-name=* \
1060 | --program-transform-nam=* | --program-transform-na=* \
1061 | --program-transform-n=* | --program-transform-=* \
1062 | --program-transform=* | --program-transfor=* \
1063 | --program-transfo=* | --program-transf=* \
1064 | --program-trans=* | --program-tran=* \
1065 | --progr-tra=* | --program-tr=* | --program-t=*)
1066 program_transform_name=$ac_optarg ;;
1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071 pdfdir=$ac_optarg ;;
1073 -psdir | --psdir | --psdi | --psd | --ps)
1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086 sbindir=$ac_optarg ;;
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090 | --sharedst | --shareds | --shared | --share | --shar \
1092 ac_prev=sharedstatedir ;;
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097 sharedstatedir=$ac_optarg ;;
1099 -site | --site | --sit)
1101 -site=* | --site=* | --sit=*)
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107 srcdir=$ac_optarg ;;
1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110 | --syscon | --sysco | --sysc | --sys | --sy)
1111 ac_prev=sysconfdir ;;
1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114 sysconfdir=$ac_optarg ;;
1116 -target | --target | --targe | --targ | --tar | --ta | --t)
1117 ac_prev=target_alias ;;
1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119 target_alias=$ac_optarg ;;
1121 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 -version | --version | --versio | --versi | --vers | -V)
1125 ac_init_version=: ;;
1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1141 eval with_$ac_useropt=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1157 eval with_$ac_useropt=no ;;
1160 # Obsolete; use --with-x.
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1177 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 case $ac_envvar in #(
1185 '' | [0-9]* | *[!_$as_cr_alnum]* )
1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202 if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 as_fn_error $? "missing argument to $ac_option"
1207 if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in
1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 # Check all directory arguments for consistency.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1222 # Remove trailing slashes.
1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\$ac_val;;
1228 # Be sure to have absolute directory names.
1230 [\\/$]* | ?:[\\/]* ) continue;;
1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1241 target=$target_alias
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x; then
1245 if test "x$build_alias" = x; then
1246 cross_compiling=maybe
1247 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1248 If a cross compiler is detected then cross compile mode will be used" >&2
1249 elif test "x$build_alias" != "x$host_alias"; then
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257 test "$silent" = yes && exec 6>/dev/null
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 as_fn_error $? "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 as_fn_error $? "pwd does not report name of working directory"
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 $as_echo X"$as_myself" |
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1300 ac_srcdir_defaulted=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1334 \`configure' configures libXft 2.3.1 to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking ...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/libXft]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1392 --program-prefix=PREFIX prepend PREFIX to installed program names
1393 --program-suffix=SUFFIX append SUFFIX to installed program names
1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1397 --build=BUILD configure for building on BUILD [guessed]
1398 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive ) echo "Configuration of libXft 2.3.1:";;
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --enable-maintainer-mode enable make rules and dependencies not useful
1413 (and sometimes confusing) to the casual installer
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-dependency-tracking speeds up one-time build
1419 --enable-dependency-tracking do not reject slow dependency extractors
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)
1427 --enable-silent-rules less verbose build output (undo: `make V=1')
1428 --disable-silent-rules verbose build output (undo: `make V=0')
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1436 --with-sysroot=DIR Search for dependent libraries within DIR
1437 (or the compiler's sysroot if not specified).
1439 Some influential environment variables:
1440 CC C compiler command
1441 CFLAGS C compiler flags
1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443 nonstandard directory <lib dir>
1444 LIBS libraries to pass to the linker, e.g. -l<library>
1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446 you have headers in a nonstandard directory <include dir>
1448 PKG_CONFIG path to pkg-config utility
1450 C compiler flags for XRENDER, overriding pkg-config
1452 linker flags for XRENDER, overriding pkg-config
1454 C compiler flags for FREETYPE, overriding pkg-config
1456 linker flags for FREETYPE, overriding pkg-config
1458 C compiler flags for FONTCONFIG, overriding pkg-config
1460 linker flags for FONTCONFIG, overriding pkg-config
1462 Use these variables to override the choices made by `configure' or to help
1463 it to find libraries and programs with nonstandard names/locations.
1465 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1470 if test "$ac_init_help" = "recursive"; then
1471 # If there are subdirs, report their specific --help.
1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473 test -d "$ac_dir" ||
1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484 case $ac_top_builddir_sub in
1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1495 .) # We are building in place.
1497 ac_top_srcdir=$ac_top_builddir_sub
1498 ac_abs_top_srcdir=$ac_pwd ;;
1499 [\\/]* | ?:[\\/]* ) # Absolute name.
1500 ac_srcdir=$srcdir$ac_dir_suffix;
1501 ac_top_srcdir=$srcdir
1502 ac_abs_top_srcdir=$srcdir ;;
1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505 ac_top_srcdir=$ac_top_build_prefix$srcdir
1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for guested configure.
1512 if test -f "$ac_srcdir/configure.gnu"; then
1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515 elif test -f "$ac_srcdir/configure"; then
1517 $SHELL "$ac_srcdir/configure" --help=recursive
1519 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 cd "$ac_pwd" || { ac_status=$?; break; }
1525 test -n "$ac_init_help" && exit $ac_status
1526 if $ac_init_version; then
1528 libXft configure 2.3.1
1529 generated by GNU Autoconf 2.68
1531 Copyright (C) 2010 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1538 ## ------------------------ ##
1539 ## Autoconf initialization. ##
1540 ## ------------------------ ##
1542 # ac_fn_c_try_compile LINENO
1543 # --------------------------
1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_compile ()
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext
1549 if { { ac_try="$ac_compile"
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_compile") 2>conftest.err
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest.$ac_objext; then :
1570 $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1578 } # ac_fn_c_try_compile
1580 # ac_fn_c_try_link LINENO
1581 # -----------------------
1582 # Try to link conftest.$ac_ext, and return whether this succeeded.
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext conftest$ac_exeext
1587 if { { ac_try="$ac_link"
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_link") 2>conftest.err
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest$ac_exeext && {
1606 test "$cross_compiling" = yes ||
1607 $as_test_x conftest$ac_exeext
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1616 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1617 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1618 # interfere with the next link command; also delete a directory that is
1619 # left behind by Apple's compiler. We do this before executing the actions.
1620 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1624 } # ac_fn_c_try_link
1626 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1627 # -------------------------------------------------------
1628 # Tests whether HEADER exists and can be compiled using the include files in
1629 # INCLUDES, setting the cache variable VAR accordingly.
1630 ac_fn_c_check_header_compile ()
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634 $as_echo_n "checking for $2... " >&6; }
1635 if eval \${$3+:} false; then :
1636 $as_echo_n "(cached) " >&6
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1643 if ac_fn_c_try_compile "$LINENO"; then :
1648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 } # ac_fn_c_check_header_compile
1657 # ac_fn_c_try_cpp LINENO
1658 # ----------------------
1659 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_cpp conftest.$ac_ext"
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } > conftest.i && {
1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=$ac_status
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1736 # ac_fn_c_check_func LINENO FUNC VAR
1737 # ----------------------------------
1738 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1739 ac_fn_c_check_func ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745 $as_echo_n "(cached) " >&6
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1749 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1751 #define $2 innocuous_$2
1753 /* System header to define __stub macros and hopefully few prototypes,
1754 which can conflict with char $2 (); below.
1755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1756 <limits.h> exists even on freestanding compilers. */
1759 # include <limits.h>
1761 # include <assert.h>
1766 /* Override any GCC internal prototype to avoid an error.
1767 Use char because int might match the return type of a GCC
1768 builtin and then its argument prototype would still apply. */
1773 /* The GNU C library defines this for functions which it implements
1774 to always fail with ENOSYS. Some functions are actually named
1775 something starting with __ and the normal name is an alias. */
1776 #if defined __stub_$2 || defined __stub___$2
1788 if ac_fn_c_try_link "$LINENO"; then :
1793 rm -f core conftest.err conftest.$ac_objext \
1794 conftest$ac_exeext conftest.$ac_ext
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 } # ac_fn_c_check_func
1803 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1804 # ---------------------------------------------
1805 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1807 ac_fn_c_check_decl ()
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 as_decl_name=`echo $2|sed 's/ *(.*//'`
1811 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1813 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1814 if eval \${$3+:} false; then :
1815 $as_echo_n "(cached) " >&6
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1823 #ifndef $as_decl_name
1825 (void) $as_decl_use;
1827 (void) $as_decl_name;
1835 if ac_fn_c_try_compile "$LINENO"; then :
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 } # ac_fn_c_check_decl
1848 cat >config.log <<_ACEOF
1849 This file contains any messages produced by compilers while
1850 running configure, to aid debugging if configure makes a mistake.
1852 It was created by libXft $as_me 2.3.1, which was
1853 generated by GNU Autoconf 2.68. Invocation command line was
1865 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1866 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1867 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1868 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1869 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1871 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1872 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1874 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1875 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1876 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1877 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1878 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1879 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1880 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 test -z "$as_dir" && as_dir=.
1889 $as_echo "PATH: $as_dir"
1905 # Keep a trace of the command line.
1906 # Strip out --no-create and --no-recursion so they do not pile up.
1907 # Strip out --silent because we don't want to record it for future runs.
1908 # Also quote any args containing shell meta-characters.
1909 # Make two passes to allow for proper duplicate-argument suppression.
1913 ac_must_keep_next=false
1919 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1920 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1921 | -silent | --silent | --silen | --sile | --sil)
1924 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1929 as_fn_append ac_configure_args1 " '$ac_arg'"
1930 if test $ac_must_keep_next = true; then
1931 ac_must_keep_next=false # Got value, back to normal.
1934 *=* | --config-cache | -C | -disable-* | --disable-* \
1935 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1936 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1937 | -with-* | --with-* | -without-* | --without-* | --x)
1938 case "$ac_configure_args0 " in
1939 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942 -* ) ac_must_keep_next=true ;;
1945 as_fn_append ac_configure_args " '$ac_arg'"
1950 { ac_configure_args0=; unset ac_configure_args0;}
1951 { ac_configure_args1=; unset ac_configure_args1;}
1953 # When interrupted or exit'd, cleanup temporary files, and complete
1954 # config.log. We remove comments because anyway the quotes in there
1955 # would cause problems or look ugly.
1956 # WARNING: Use '\'' to represent an apostrophe within the trap.
1957 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1958 trap 'exit_status=$?
1959 # Save into config.log some information that might help in debugging.
1963 $as_echo "## ---------------- ##
1964 ## Cache variables. ##
1965 ## ---------------- ##"
1967 # The following way of writing the cache mishandles newlines in values,
1969 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1970 eval ac_val=\$$ac_var
1974 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1975 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1978 _ | IFS | as_nl) ;; #(
1979 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1980 *) { eval $ac_var=; unset $ac_var;} ;;
1985 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1986 *${as_nl}ac_space=\ *)
1988 "s/'\''/'\''\\\\'\'''\''/g;
1989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1992 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1999 $as_echo "## ----------------- ##
2000 ## Output variables. ##
2001 ## ----------------- ##"
2003 for ac_var in $ac_subst_vars
2005 eval ac_val=\$$ac_var
2007 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009 $as_echo "$ac_var='\''$ac_val'\''"
2013 if test -n "$ac_subst_files"; then
2014 $as_echo "## ------------------- ##
2015 ## File substitutions. ##
2016 ## ------------------- ##"
2018 for ac_var in $ac_subst_files
2020 eval ac_val=\$$ac_var
2022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024 $as_echo "$ac_var='\''$ac_val'\''"
2029 if test -s confdefs.h; then
2030 $as_echo "## ----------- ##
2037 test "$ac_signal" != 0 &&
2038 $as_echo "$as_me: caught signal $ac_signal"
2039 $as_echo "$as_me: exit $exit_status"
2041 rm -f core *.core core.conftest.* &&
2042 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2045 for ac_signal in 1 2 13 15; do
2046 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2050 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2051 rm -f -r conftest* confdefs.h
2053 $as_echo "/* confdefs.h */" > confdefs.h
2055 # Predefined preprocessor variables.
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_NAME "$PACKAGE_NAME"
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_STRING "$PACKAGE_STRING"
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_URL "$PACKAGE_URL"
2082 # Let the site file select an alternate cache file if it wants to.
2083 # Prefer an explicitly selected file to automatically selected ones.
2086 if test -n "$CONFIG_SITE"; then
2087 # We do not want a PATH search for config.site.
2088 case $CONFIG_SITE in #((
2089 -*) ac_site_file1=./$CONFIG_SITE;;
2090 */*) ac_site_file1=$CONFIG_SITE;;
2091 *) ac_site_file1=./$CONFIG_SITE;;
2093 elif test "x$prefix" != xNONE; then
2094 ac_site_file1=$prefix/share/config.site
2095 ac_site_file2=$prefix/etc/config.site
2097 ac_site_file1=$ac_default_prefix/share/config.site
2098 ac_site_file2=$ac_default_prefix/etc/config.site
2100 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2102 test "x$ac_site_file" = xNONE && continue
2103 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2105 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2106 sed 's/^/| /' "$ac_site_file" >&5
2108 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2110 as_fn_error $? "failed to load site script $ac_site_file
2111 See \`config.log' for more details" "$LINENO" 5; }
2115 if test -r "$cache_file"; then
2116 # Some versions of bash will fail to source /dev/null (special files
2117 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2118 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2120 $as_echo "$as_me: loading cache $cache_file" >&6;}
2122 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2123 *) . "./$cache_file";;
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2128 $as_echo "$as_me: creating cache $cache_file" >&6;}
2132 # Check that the precious variables saved in the cache have kept the same
2134 ac_cache_corrupted=false
2135 for ac_var in $ac_precious_vars; do
2136 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2137 eval ac_new_set=\$ac_env_${ac_var}_set
2138 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2139 eval ac_new_val=\$ac_env_${ac_var}_value
2140 case $ac_old_set,$ac_new_set in
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2143 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2144 ac_cache_corrupted=: ;;
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2147 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2148 ac_cache_corrupted=: ;;
2151 if test "x$ac_old_val" != "x$ac_new_val"; then
2152 # differences in whitespace do not lead to failure.
2153 ac_old_val_w=`echo x $ac_old_val`
2154 ac_new_val_w=`echo x $ac_new_val`
2155 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2157 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2158 ac_cache_corrupted=:
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2161 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2162 eval $ac_var=\$ac_old_val
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2165 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2167 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2170 # Pass precious variables to config.status.
2171 if test "$ac_new_set" = set; then
2173 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2174 *) ac_arg=$ac_var=$ac_new_val ;;
2176 case " $ac_configure_args " in
2177 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2178 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2182 if $ac_cache_corrupted; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2186 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2187 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2189 ## -------------------- ##
2190 ## Main body of script. ##
2191 ## -------------------- ##
2194 ac_cpp='$CPP $CPPFLAGS'
2195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2201 ac_config_headers="$ac_config_headers config.h"
2204 # Initialize Automake
2205 am__api_version='1.11'
2208 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2209 if test -f "$ac_dir/install-sh"; then
2211 ac_install_sh="$ac_aux_dir/install-sh -c"
2213 elif test -f "$ac_dir/install.sh"; then
2215 ac_install_sh="$ac_aux_dir/install.sh -c"
2217 elif test -f "$ac_dir/shtool"; then
2219 ac_install_sh="$ac_aux_dir/shtool install -c"
2223 if test -z "$ac_aux_dir"; then
2224 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2227 # These three variables are undocumented and unsupported,
2228 # and are intended to be withdrawn in a future Autoconf release.
2229 # They can cause serious problems if a builder's source tree is in a directory
2230 # whose full name contains unusual characters.
2231 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2232 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2233 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2236 # Find a good install program. We prefer a C program (faster),
2237 # so one script is as good as another. But avoid the broken or
2238 # incompatible versions:
2239 # SysV /etc/install, /usr/sbin/install
2240 # SunOS /usr/etc/install
2241 # IRIX /sbin/install
2243 # AmigaOS /C/install, which installs bootblocks on floppy discs
2244 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2245 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2246 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2247 # OS/2's system install, which has a completely different semantic
2248 # ./install, which can be erroneously created by make from ./install.sh.
2249 # Reject install programs that cannot install multiple files.
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2251 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2252 if test -z "$INSTALL"; then
2253 if ${ac_cv_path_install+:} false; then :
2254 $as_echo_n "(cached) " >&6
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 # Account for people who put trailing slashes in PATH elements.
2262 case $as_dir/ in #((
2263 ./ | .// | /[cC]/* | \
2264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2265 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2268 # OSF1 and SCO ODT 3.0 have their own names for install.
2269 # Don't use installbsd from OSF since it installs stuff as root
2271 for ac_prog in ginstall scoinst install; do
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2274 if test $ac_prog = install &&
2275 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2276 # AIX install. It has an incompatible calling convention.
2278 elif test $ac_prog = install &&
2279 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2280 # program-specific install script used by HP pwplus--don't use.
2283 rm -rf conftest.one conftest.two conftest.dir
2284 echo one > conftest.one
2285 echo two > conftest.two
2287 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2288 test -s conftest.one && test -s conftest.two &&
2289 test -s conftest.dir/conftest.one &&
2290 test -s conftest.dir/conftest.two
2292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2305 rm -rf conftest.one conftest.two conftest.dir
2308 if test "${ac_cv_path_install+set}" = set; then
2309 INSTALL=$ac_cv_path_install
2311 # As a last resort, use the slow shell script. Don't cache a
2312 # value for INSTALL within a source directory, because that will
2313 # break other packages using the cache if that directory is
2314 # removed, or if the value is a relative name.
2315 INSTALL=$ac_install_sh
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2319 $as_echo "$INSTALL" >&6; }
2321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2322 # It thinks the first close brace ends the variable substitution.
2323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2330 $as_echo_n "checking whether build environment is sane... " >&6; }
2333 echo timestamp > conftest.file
2334 # Reject unsafe characters in $srcdir or the absolute working directory
2335 # name. Accept space and tab only in the latter.
2339 *[\\\"\#\$\&\'\`$am_lf]*)
2340 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2343 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2344 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2347 # Do `set' in a subshell so we don't clobber the current shell's
2348 # arguments. Must try -L first in case configure is actually a
2349 # symlink; some systems play weird games with the mod time of symlinks
2350 # (eg FreeBSD returns the mod time of the symlink's containing
2353 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2354 if test "$*" = "X"; then
2356 set X `ls -t "$srcdir/configure" conftest.file`
2359 if test "$*" != "X $srcdir/configure conftest.file" \
2360 && test "$*" != "X conftest.file $srcdir/configure"; then
2362 # If neither matched, then we have a broken ls. This can happen
2363 # if, for instance, CONFIG_SHELL is bash and it inherits a
2364 # broken ls alias from the environment. This has actually
2365 # happened. Such a system could not be considered "sane".
2366 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2367 alias in your environment" "$LINENO" 5
2370 test "$2" = conftest.file
2376 as_fn_error $? "newly created file is older than distributed files!
2377 Check your system clock" "$LINENO" 5
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2380 $as_echo "yes" >&6; }
2381 test "$program_prefix" != NONE &&
2382 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2383 # Use a double $ so make ignores it.
2384 test "$program_suffix" != NONE &&
2385 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2386 # Double any \ or $.
2387 # By default was `s,x,x', remove it if useless.
2388 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2389 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2391 # expand $ac_aux_dir to an absolute path
2392 am_aux_dir=`cd $ac_aux_dir && pwd`
2394 if test x"${MISSING+set}" != xset; then
2397 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2399 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2402 # Use eval to expand $SHELL
2403 if eval "$MISSING --run true"; then
2404 am_missing_run="$MISSING --run "
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2408 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2411 if test x"${install_sh}" != xset; then
2414 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2416 install_sh="\${SHELL} $am_aux_dir/install-sh"
2420 # Installed binaries are usually stripped using `strip' when the user
2421 # run `make install-strip'. However `strip' might not be the right
2422 # tool to use in cross-compilation environments, therefore Automake
2423 # will honor the `STRIP' environment variable to overrule this program.
2424 if test "$cross_compiling" != no; then
2425 if test -n "$ac_tool_prefix"; then
2426 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2427 set dummy ${ac_tool_prefix}strip; ac_word=$2
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2429 $as_echo_n "checking for $ac_word... " >&6; }
2430 if ${ac_cv_prog_STRIP+:} false; then :
2431 $as_echo_n "(cached) " >&6
2433 if test -n "$STRIP"; then
2434 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 STRIP=$ac_cv_prog_STRIP
2454 if test -n "$STRIP"; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2456 $as_echo "$STRIP" >&6; }
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2459 $as_echo "no" >&6; }
2464 if test -z "$ac_cv_prog_STRIP"; then
2466 # Extract the first word of "strip", so it can be a program name with args.
2467 set dummy strip; ac_word=$2
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2471 $as_echo_n "(cached) " >&6
2473 if test -n "$ac_ct_STRIP"; then
2474 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_ac_ct_STRIP="strip"
2484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2494 if test -n "$ac_ct_STRIP"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2496 $as_echo "$ac_ct_STRIP" >&6; }
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499 $as_echo "no" >&6; }
2502 if test "x$ac_ct_STRIP" = x; then
2505 case $cross_compiling:$ac_tool_warned in
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2509 ac_tool_warned=yes ;;
2514 STRIP="$ac_cv_prog_STRIP"
2518 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2521 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2522 if test -z "$MKDIR_P"; then
2523 if ${ac_cv_path_mkdir+:} false; then :
2524 $as_echo_n "(cached) " >&6
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2530 test -z "$as_dir" && as_dir=.
2531 for ac_prog in mkdir gmkdir; do
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2534 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2535 'mkdir (GNU coreutils) '* | \
2536 'mkdir (coreutils) '* | \
2537 'mkdir (fileutils) '4.1*)
2538 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2548 test -d ./--version && rmdir ./--version
2549 if test "${ac_cv_path_mkdir+set}" = set; then
2550 MKDIR_P="$ac_cv_path_mkdir -p"
2552 # As a last resort, use the slow shell script. Don't cache a
2553 # value for MKDIR_P within a source directory, because that will
2554 # break other packages using the cache if that directory is
2555 # removed, or if the value is a relative name.
2556 MKDIR_P="$ac_install_sh -d"
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2560 $as_echo "$MKDIR_P" >&6; }
2564 [\\/$]* | ?:[\\/]*) ;;
2565 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2568 for ac_prog in gawk mawk nawk awk
2570 # Extract the first word of "$ac_prog", so it can be a program name with args.
2571 set dummy $ac_prog; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if ${ac_cv_prog_AWK+:} false; then :
2575 $as_echo_n "(cached) " >&6
2577 if test -n "$AWK"; then
2578 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_AWK="$ac_prog"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 if test -n "$AWK"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2600 $as_echo "$AWK" >&6; }
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2607 test -n "$AWK" && break
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2611 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2613 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2614 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2615 $as_echo_n "(cached) " >&6
2617 cat >conftest.make <<\_ACEOF
2620 @echo '@@@%%%=$(MAKE)=@@@%%%'
2622 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2623 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2625 eval ac_cv_prog_make_${ac_make}_set=yes;;
2627 eval ac_cv_prog_make_${ac_make}_set=no;;
2631 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2633 $as_echo "yes" >&6; }
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2638 SET_MAKE="MAKE=${MAKE-make}"
2641 rm -rf .tst 2>/dev/null
2642 mkdir .tst 2>/dev/null
2643 if test -d .tst; then
2648 rmdir .tst 2>/dev/null
2650 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2651 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2652 # is not polluted with repeated "-I."
2653 am__isrc=' -I$(srcdir)'
2654 # test to see if srcdir already configured
2655 if test -f $srcdir/config.status; then
2656 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2660 # test whether we have cygpath
2661 if test -z "$CYGPATH_W"; then
2662 if (cygpath --version) >/dev/null 2>/dev/null; then
2663 CYGPATH_W='cygpath -w'
2670 # Define the identity of the package.
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE "$PACKAGE"
2680 cat >>confdefs.h <<_ACEOF
2681 #define VERSION "$VERSION"
2684 # Some tools Automake needs.
2686 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2689 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2692 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2695 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2698 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2700 # We need awk for the "check" target. The system "awk" is bad on
2702 # Always define AMTAR for backward compatibility.
2704 AMTAR=${AMTAR-"${am_missing_run}tar"}
2706 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2714 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2715 # Check whether --enable-maintainer-mode was given.
2716 if test "${enable_maintainer_mode+set}" = set; then :
2717 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2719 USE_MAINTAINER_MODE=no
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2723 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2724 if test $USE_MAINTAINER_MODE = yes; then
2725 MAINTAINER_MODE_TRUE=
2726 MAINTAINER_MODE_FALSE='#'
2728 MAINTAINER_MODE_TRUE='#'
2729 MAINTAINER_MODE_FALSE=
2732 MAINT=$MAINTAINER_MODE_TRUE
2736 # Initialize libtool
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2740 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2745 macro_version='2.4.2'
2746 macro_revision='1.3337'
2760 ltmain="$ac_aux_dir/ltmain.sh"
2762 # Make sure we can run config.sub.
2763 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2764 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2767 $as_echo_n "checking build system type... " >&6; }
2768 if ${ac_cv_build+:} false; then :
2769 $as_echo_n "(cached) " >&6
2771 ac_build_alias=$build_alias
2772 test "x$ac_build_alias" = x &&
2773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2774 test "x$ac_build_alias" = x &&
2775 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2776 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2781 $as_echo "$ac_cv_build" >&6; }
2782 case $ac_cv_build in
2784 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2787 ac_save_IFS=$IFS; IFS='-'
2793 # Remember, the first character of IFS is used to create $*,
2794 # except with old shells:
2797 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2801 $as_echo_n "checking host system type... " >&6; }
2802 if ${ac_cv_host+:} false; then :
2803 $as_echo_n "(cached) " >&6
2805 if test "x$host_alias" = x; then
2806 ac_cv_host=$ac_cv_build
2808 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2814 $as_echo "$ac_cv_host" >&6; }
2817 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2820 ac_save_IFS=$IFS; IFS='-'
2826 # Remember, the first character of IFS is used to create $*,
2827 # except with old shells:
2830 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2833 # Backslashify metacharacters that are still active within
2834 # double-quoted strings.
2835 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2837 # Same as above, but do not quote variable references.
2838 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2840 # Sed substitution to delay expansion of an escaped shell variable in a
2841 # double_quote_subst'ed string.
2842 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2844 # Sed substitution to delay expansion of an escaped single quote.
2845 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2847 # Sed substitution to avoid accidental globbing in evaled expressions
2848 no_glob_subst='s/\*/\\\*/g'
2850 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2851 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2852 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2855 $as_echo_n "checking how to print strings... " >&6; }
2856 # Test print first, because it will be a builtin if present.
2857 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2858 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2860 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2863 # Use this function as a fallback that always works.
2864 func_fallback_echo ()
2866 eval 'cat <<_LTECHO_EOF
2870 ECHO='func_fallback_echo'
2873 # func_echo_all arg...
2874 # Invoke $ECHO with all args, space-separated.
2881 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2882 $as_echo "printf" >&6; } ;;
2883 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2884 $as_echo "print -r" >&6; } ;;
2885 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2886 $as_echo "cat" >&6; } ;;
2902 DEPDIR="${am__leading_dot}deps"
2904 ac_config_commands="$ac_config_commands depfiles"
2907 am_make=${MAKE-make}
2908 cat > confinc << 'END'
2910 @echo this is the am__doit target
2913 # If we don't find an include directive, just comment out the code.
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2915 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2919 # First try GNU make style include.
2920 echo "include confinc" > confmf
2921 # Ignore all kinds of additional output from `make'.
2922 case `$am_make -s -f confmf 2> /dev/null` in #(
2923 *the\ am__doit\ target*)
2929 # Now try BSD make style include.
2930 if test "$am__include" = "#"; then
2931 echo '.include "confinc"' > confmf
2932 case `$am_make -s -f confmf 2> /dev/null` in #(
2933 *the\ am__doit\ target*)
2934 am__include=.include
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2943 $as_echo "$_am_result" >&6; }
2944 rm -f confinc confmf
2946 # Check whether --enable-dependency-tracking was given.
2947 if test "${enable_dependency_tracking+set}" = set; then :
2948 enableval=$enable_dependency_tracking;
2951 if test "x$enable_dependency_tracking" != xno; then
2952 am_depcomp="$ac_aux_dir/depcomp"
2956 if test "x$enable_dependency_tracking" != xno; then
2966 ac_cpp='$CPP $CPPFLAGS'
2967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970 if test -n "$ac_tool_prefix"; then
2971 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2972 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_prog_CC+:} false; then :
2976 $as_echo_n "(cached) " >&6
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 if test -n "$CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3001 $as_echo "$CC" >&6; }
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3009 if test -z "$ac_cv_prog_CC"; then
3011 # Extract the first word of "gcc", so it can be a program name with args.
3012 set dummy gcc; ac_word=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3016 $as_echo_n "(cached) " >&6
3018 if test -n "$ac_ct_CC"; then
3019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028 ac_cv_prog_ac_ct_CC="gcc"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3039 if test -n "$ac_ct_CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3041 $as_echo "$ac_ct_CC" >&6; }
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3047 if test "x$ac_ct_CC" = x; then
3050 case $cross_compiling:$ac_tool_warned in
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3054 ac_tool_warned=yes ;;
3062 if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}cc; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_CC+:} false; then :
3069 $as_echo_n "(cached) " >&6
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081 ac_cv_prog_CC="${ac_tool_prefix}cc"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 if test -n "$CC"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094 $as_echo "$CC" >&6; }
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3103 if test -z "$CC"; then
3104 # Extract the first word of "cc", so it can be a program name with args.
3105 set dummy cc; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if ${ac_cv_prog_CC+:} false; then :
3109 $as_echo_n "(cached) " >&6
3111 if test -n "$CC"; then
3112 ac_cv_prog_CC="$CC" # Let the user override the test.
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3123 ac_prog_rejected=yes
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 if test $ac_prog_rejected = yes; then
3135 # We found a bogon in the path, so make sure we never use it.
3136 set dummy $ac_cv_prog_CC
3138 if test $# != 0; then
3139 # We chose a different compiler from the bogus one.
3140 # However, it has the same basename, so the bogon will be chosen
3141 # first if we set CC to just the basename; use the full file name.
3143 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3159 if test -z "$CC"; then
3160 if test -n "$ac_tool_prefix"; then
3161 for ac_prog in cl.exe
3163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3170 if test -n "$CC"; then
3171 ac_cv_prog_CC="$CC" # Let the user override the test.
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 if test -n "$CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193 $as_echo "$CC" >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3200 test -n "$CC" && break
3203 if test -z "$CC"; then
3205 for ac_prog in cl.exe
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208 set dummy $ac_prog; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3212 $as_echo_n "(cached) " >&6
3214 if test -n "$ac_ct_CC"; then
3215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224 ac_cv_prog_ac_ct_CC="$ac_prog"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3235 if test -n "$ac_ct_CC"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3237 $as_echo "$ac_ct_CC" >&6; }
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3244 test -n "$ac_ct_CC" && break
3247 if test "x$ac_ct_CC" = x; then
3250 case $cross_compiling:$ac_tool_warned in
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254 ac_tool_warned=yes ;;
3263 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 as_fn_error $? "no acceptable C compiler found in \$PATH
3266 See \`config.log' for more details" "$LINENO" 5; }
3268 # Provide some information about the compiler.
3269 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3272 for ac_option in --version -v -V -qversion; do
3273 { { ac_try="$ac_compiler $ac_option >&5"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3282 if test -s conftest.err; then
3284 ... rest of stderr output deleted ...
3285 10q' conftest.err >conftest.er1
3286 cat conftest.er1 >&5
3288 rm -f conftest.er1 conftest.err
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3304 ac_clean_files_save=$ac_clean_files
3305 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3306 # Try to create an executable without -o first, disregard a.out.
3307 # It will help us diagnose broken compilers, and finding out an intuition
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3310 $as_echo_n "checking whether the C compiler works... " >&6; }
3311 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3313 # The possible output files:
3314 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3317 for ac_file in $ac_files
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3321 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3326 if { { ac_try="$ac_link_default"
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_link_default") 2>&5
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3338 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3339 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3340 # so that the user can short-circuit this test for compilers unknown to
3342 for ac_file in $ac_files ''
3344 test -f "$ac_file" || continue
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3349 # We found the default executable, but exeext='' is most
3353 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3355 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3357 # We set ac_cv_exeext here because the later test for it is not
3358 # safe: cross compilers may not add the suffix if given an `-o'
3359 # argument, so we may need to know it at that point already.
3360 # Even if this section looks crufty: it has the advantage of
3367 test "$ac_cv_exeext" = no && ac_cv_exeext=
3372 if test -z "$ac_file"; then :
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 $as_echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error 77 "C compiler cannot create executables
3381 See \`config.log' for more details" "$LINENO" 5; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3384 $as_echo "yes" >&6; }
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3387 $as_echo_n "checking for C compiler default output file name... " >&6; }
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3389 $as_echo "$ac_file" >&6; }
3390 ac_exeext=$ac_cv_exeext
3392 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3393 ac_clean_files=$ac_clean_files_save
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3395 $as_echo_n "checking for suffix of executables... " >&6; }
3396 if { { ac_try="$ac_link"
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_link") 2>&5
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; then :
3407 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3408 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3409 # work properly (i.e., refer to `conftest.exe'), while it won't with
3411 for ac_file in conftest.exe conftest conftest.*; do
3412 test -f "$ac_file" || continue
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3424 See \`config.log' for more details" "$LINENO" 5; }
3426 rm -f conftest conftest$ac_cv_exeext
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3428 $as_echo "$ac_cv_exeext" >&6; }
3430 rm -f conftest.$ac_ext
3431 EXEEXT=$ac_cv_exeext
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3439 FILE *f = fopen ("conftest.out", "w");
3440 return ferror (f) || fclose (f) != 0;
3446 ac_clean_files="$ac_clean_files conftest.out"
3447 # Check that the compiler produces executables we can run. If not, either
3448 # the compiler is broken, or we cross compile.
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3450 $as_echo_n "checking whether we are cross compiling... " >&6; }
3451 if test "$cross_compiling" != yes; then
3452 { { ac_try="$ac_link"
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_link") 2>&5
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }
3463 if { ac_try='./conftest$ac_cv_exeext'
3464 { { case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_try") 2>&5
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }; }; then
3476 if test "$cross_compiling" = maybe; then
3479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 as_fn_error $? "cannot run C compiled programs.
3482 If you meant to cross compile, use \`--host'.
3483 See \`config.log' for more details" "$LINENO" 5; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3488 $as_echo "$cross_compiling" >&6; }
3490 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3491 ac_clean_files=$ac_clean_files_save
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3493 $as_echo_n "checking for suffix of object files... " >&6; }
3494 if ${ac_cv_objext+:} false; then :
3495 $as_echo_n "(cached) " >&6
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3508 rm -f conftest.o conftest.obj
3509 if { { ac_try="$ac_compile"
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_compile") 2>&5
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; then :
3520 for ac_file in conftest.o conftest.obj conftest.*; do
3521 test -f "$ac_file" || continue;
3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3529 $as_echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error $? "cannot compute suffix of object files: cannot compile
3535 See \`config.log' for more details" "$LINENO" 5; }
3537 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3540 $as_echo "$ac_cv_objext" >&6; }
3541 OBJEXT=$ac_cv_objext
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3544 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3545 if ${ac_cv_c_compiler_gnu+:} false; then :
3546 $as_echo_n "(cached) " >&6
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3562 if ac_fn_c_try_compile "$LINENO"; then :
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3572 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3573 if test $ac_compiler_gnu = yes; then
3578 ac_test_CFLAGS=${CFLAGS+set}
3579 ac_save_CFLAGS=$CFLAGS
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3581 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3582 if ${ac_cv_prog_cc_g+:} false; then :
3583 $as_echo_n "(cached) " >&6
3585 ac_save_c_werror_flag=$ac_c_werror_flag
3586 ac_c_werror_flag=yes
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3600 if ac_fn_c_try_compile "$LINENO"; then :
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3615 if ac_fn_c_try_compile "$LINENO"; then :
3618 ac_c_werror_flag=$ac_save_c_werror_flag
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3631 if ac_fn_c_try_compile "$LINENO"; then :
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_c_werror_flag=$ac_save_c_werror_flag
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3642 $as_echo "$ac_cv_prog_cc_g" >&6; }
3643 if test "$ac_test_CFLAGS" = set; then
3644 CFLAGS=$ac_save_CFLAGS
3645 elif test $ac_cv_prog_cc_g = yes; then
3646 if test "$GCC" = yes; then
3652 if test "$GCC" = yes; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3659 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3660 if ${ac_cv_prog_cc_c89+:} false; then :
3661 $as_echo_n "(cached) " >&6
3663 ac_cv_prog_cc_c89=no
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3669 #include <sys/types.h>
3670 #include <sys/stat.h>
3671 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3672 struct buf { int x; };
3673 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3674 static char *e (p, i)
3680 static char *f (char * (*g) (char **, int), char **p, ...)
3685 s = g (p, va_arg (v,int));
3690 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3691 function prototypes and stuff, but not '\xHH' hex character constants.
3692 These don't provoke an error unfortunately, instead are silently treated
3693 as 'x'. The following induces an error, until -std is added to get
3694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3695 array size at least. It's necessary to write '\x00'==0 to get something
3696 that's true only with -std. */
3697 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3699 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3700 inside strings and character constants. */
3702 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3704 int test (int i, double x);
3705 struct s1 {int (*f) (int a);};
3706 struct s2 {int (*f) (double a);};
3707 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3713 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3718 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3719 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3721 CC="$ac_save_CC $ac_arg"
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723 ac_cv_prog_cc_c89=$ac_arg
3725 rm -f core conftest.err conftest.$ac_objext
3726 test "x$ac_cv_prog_cc_c89" != "xno" && break
3728 rm -f conftest.$ac_ext
3733 case "x$ac_cv_prog_cc_c89" in
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3736 $as_echo "none needed" >&6; } ;;
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3739 $as_echo "unsupported" >&6; } ;;
3741 CC="$CC $ac_cv_prog_cc_c89"
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3743 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3745 if test "x$ac_cv_prog_cc_c89" != xno; then :
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 depcc="$CC" am_compiler_list=
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3758 $as_echo_n "checking dependency style of $depcc... " >&6; }
3759 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3760 $as_echo_n "(cached) " >&6
3762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3763 # We make a subdir and do the tests there. Otherwise we can end up
3764 # making bogus files that we don't know about and never remove. For
3765 # instance it was reported that on HP-UX the gcc test will end up
3766 # making a dummy file named `D' -- because `-MD' means `put the output
3770 # Copy depcomp to subdir because otherwise we won't find it if we're
3771 # using a relative directory.
3772 cp "$am_depcomp" conftest.dir
3774 # We will build objects and dependencies in a subdirectory because
3775 # it helps to detect inapplicable dependency modes. For instance
3776 # both Tru64's cc and ICC support -MD to output dependencies as a
3777 # side effect of compilation, but ICC will put the dependencies in
3778 # the current directory while Tru64 will put them in the object
3782 am_cv_CC_dependencies_compiler_type=none
3783 if test "$am_compiler_list" = ""; then
3784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3787 case " $depcc " in #(
3788 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3791 for depmode in $am_compiler_list; do
3792 # Setup a source with many dependencies, because some compilers
3793 # like to wrap large dependency lists on column 80 (with \), and
3794 # we should not choose a depcomp mode which is confused by this.
3796 # We need to recreate these files for each test, as the compiler may
3797 # overwrite some of them when testing with obscure command lines.
3798 # This happens at least with the AIX C compiler.
3800 for i in 1 2 3 4 5 6; do
3801 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3802 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3803 # Solaris 8's {/usr,}/bin/sh.
3804 touch sub/conftst$i.h
3806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3808 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3809 # mode. It turns out that the SunPro C++ compiler does not properly
3810 # handle `-M -o', and we need to detect this. Also, some Intel
3811 # versions had trouble with output in subdirs
3812 am__obj=sub/conftest.${OBJEXT-o}
3813 am__minus_obj="-o $am__obj"
3816 # This depmode causes a compiler race in universal mode.
3817 test "$am__universal" = false || continue
3820 # after this tag, mechanisms are not by side-effect, so they'll
3821 # only be used when explicitly requested
3822 if test "x$enable_dependency_tracking" = xyes; then
3828 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3829 # This compiler won't grok `-c -o', but also, the minuso test has
3830 # not run yet. These depmodes are late enough in the game, and
3831 # so weak that their functioning should not be impacted.
3832 am__obj=conftest.${OBJEXT-o}
3837 if depmode=$depmode \
3838 source=sub/conftest.c object=$am__obj \
3839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3840 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3841 >/dev/null 2>conftest.err &&
3842 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3844 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3846 # icc doesn't choke on unknown options, it will just issue warnings
3847 # or remarks (even with -Werror). So we grep stderr for any message
3848 # that says an option was ignored or not supported.
3849 # When given -MP, icc 7.0 and 7.1 complain thusly:
3850 # icc: Command line warning: ignoring option '-M'; no argument required
3851 # The diagnosis changed in icc 8.0:
3852 # icc: Command line remark: option '-MP' not supported
3853 if (grep 'ignoring option' conftest.err ||
3854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3855 am_cv_CC_dependencies_compiler_type=$depmode
3864 am_cv_CC_dependencies_compiler_type=none
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3869 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3870 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3873 test "x$enable_dependency_tracking" != xno \
3874 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3876 am__fastdepCC_FALSE='#'
3878 am__fastdepCC_TRUE='#'
3879 am__fastdepCC_FALSE=
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3884 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3885 if ${ac_cv_path_SED+:} false; then :
3886 $as_echo_n "(cached) " >&6
3888 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3889 for ac_i in 1 2 3 4 5 6 7; do
3890 ac_script="$ac_script$as_nl$ac_script"
3892 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3893 { ac_script=; unset ac_script;}
3894 if test -z "$SED"; then
3895 ac_path_SED_found=false
3896 # Loop through the user's path and test for each of PROGNAME-LIST
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 test -z "$as_dir" && as_dir=.
3902 for ac_prog in sed gsed; do
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3905 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3906 # Check for GNU ac_path_SED and select it if it is found.
3907 # Check for GNU $ac_path_SED
3908 case `"$ac_path_SED" --version 2>&1` in
3910 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3913 $as_echo_n 0123456789 >"conftest.in"
3916 cat "conftest.in" "conftest.in" >"conftest.tmp"
3917 mv "conftest.tmp" "conftest.in"
3918 cp "conftest.in" "conftest.nl"
3919 $as_echo '' >> "conftest.nl"
3920 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3922 as_fn_arith $ac_count + 1 && ac_count=$as_val
3923 if test $ac_count -gt ${ac_path_SED_max-0}; then
3924 # Best one so far, save it but keep looking for a better one
3925 ac_cv_path_SED="$ac_path_SED"
3926 ac_path_SED_max=$ac_count
3928 # 10*(2^10) chars as input seems more than enough
3929 test $ac_count -gt 10 && break
3931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3934 $ac_path_SED_found && break 3
3939 if test -z "$ac_cv_path_SED"; then
3940 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3948 $as_echo "$ac_cv_path_SED" >&6; }
3949 SED="$ac_cv_path_SED"
3952 test -z "$SED" && SED=sed
3953 Xsed="$SED -e 1s/^X//"
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3966 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3967 if ${ac_cv_path_GREP+:} false; then :
3968 $as_echo_n "(cached) " >&6
3970 if test -z "$GREP"; then
3971 ac_path_GREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977 test -z "$as_dir" && as_dir=.
3978 for ac_prog in grep ggrep; do
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3982 # Check for GNU ac_path_GREP and select it if it is found.
3983 # Check for GNU $ac_path_GREP
3984 case `"$ac_path_GREP" --version 2>&1` in
3986 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3989 $as_echo_n 0123456789 >"conftest.in"
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
3995 $as_echo 'GREP' >> "conftest.nl"
3996 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998 as_fn_arith $ac_count + 1 && ac_count=$as_val
3999 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_GREP="$ac_path_GREP"
4002 ac_path_GREP_max=$ac_count
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 $ac_path_GREP_found && break 3
4015 if test -z "$ac_cv_path_GREP"; then
4016 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4019 ac_cv_path_GREP=$GREP
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4024 $as_echo "$ac_cv_path_GREP" >&6; }
4025 GREP="$ac_cv_path_GREP"
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4029 $as_echo_n "checking for egrep... " >&6; }
4030 if ${ac_cv_path_EGREP+:} false; then :
4031 $as_echo_n "(cached) " >&6
4033 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4034 then ac_cv_path_EGREP="$GREP -E"
4036 if test -z "$EGREP"; then
4037 ac_path_EGREP_found=false
4038 # Loop through the user's path and test for each of PROGNAME-LIST
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4043 test -z "$as_dir" && as_dir=.
4044 for ac_prog in egrep; do
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4047 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4048 # Check for GNU ac_path_EGREP and select it if it is found.
4049 # Check for GNU $ac_path_EGREP
4050 case `"$ac_path_EGREP" --version 2>&1` in
4052 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4055 $as_echo_n 0123456789 >"conftest.in"
4058 cat "conftest.in" "conftest.in" >"conftest.tmp"
4059 mv "conftest.tmp" "conftest.in"
4060 cp "conftest.in" "conftest.nl"
4061 $as_echo 'EGREP' >> "conftest.nl"
4062 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4064 as_fn_arith $ac_count + 1 && ac_count=$as_val
4065 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4066 # Best one so far, save it but keep looking for a better one
4067 ac_cv_path_EGREP="$ac_path_EGREP"
4068 ac_path_EGREP_max=$ac_count
4070 # 10*(2^10) chars as input seems more than enough
4071 test $ac_count -gt 10 && break
4073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4076 $ac_path_EGREP_found && break 3
4081 if test -z "$ac_cv_path_EGREP"; then
4082 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4085 ac_cv_path_EGREP=$EGREP
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4091 $as_echo "$ac_cv_path_EGREP" >&6; }
4092 EGREP="$ac_cv_path_EGREP"
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4096 $as_echo_n "checking for fgrep... " >&6; }
4097 if ${ac_cv_path_FGREP+:} false; then :
4098 $as_echo_n "(cached) " >&6
4100 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4101 then ac_cv_path_FGREP="$GREP -F"
4103 if test -z "$FGREP"; then
4104 ac_path_FGREP_found=false
4105 # Loop through the user's path and test for each of PROGNAME-LIST
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4110 test -z "$as_dir" && as_dir=.
4111 for ac_prog in fgrep; do
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4114 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4115 # Check for GNU ac_path_FGREP and select it if it is found.
4116 # Check for GNU $ac_path_FGREP
4117 case `"$ac_path_FGREP" --version 2>&1` in
4119 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4122 $as_echo_n 0123456789 >"conftest.in"
4125 cat "conftest.in" "conftest.in" >"conftest.tmp"
4126 mv "conftest.tmp" "conftest.in"
4127 cp "conftest.in" "conftest.nl"
4128 $as_echo 'FGREP' >> "conftest.nl"
4129 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4131 as_fn_arith $ac_count + 1 && ac_count=$as_val
4132 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4133 # Best one so far, save it but keep looking for a better one
4134 ac_cv_path_FGREP="$ac_path_FGREP"
4135 ac_path_FGREP_max=$ac_count
4137 # 10*(2^10) chars as input seems more than enough
4138 test $ac_count -gt 10 && break
4140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4143 $ac_path_FGREP_found && break 3
4148 if test -z "$ac_cv_path_FGREP"; then
4149 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4152 ac_cv_path_FGREP=$FGREP
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4158 $as_echo "$ac_cv_path_FGREP" >&6; }
4159 FGREP="$ac_cv_path_FGREP"
4162 test -z "$GREP" && GREP=grep
4182 # Check whether --with-gnu-ld was given.
4183 if test "${with_gnu_ld+set}" = set; then :
4184 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4190 if test "$GCC" = yes; then
4191 # Check if gcc -print-prog-name=ld gives a path.
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4193 $as_echo_n "checking for ld used by $CC... " >&6; }
4196 # gcc leaves a trailing carriage return which upsets mingw
4197 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4199 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4202 # Accept absolute paths.
4204 re_direlt='/[^/][^/]*/\.\./'
4205 # Canonicalize the pathname of ld
4206 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4207 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4208 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4210 test -z "$LD" && LD="$ac_prog"
4213 # If it fails, then pretend we aren't using GCC.
4217 # If it is relative, then search for the first ld in PATH.
4221 elif test "$with_gnu_ld" = yes; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4223 $as_echo_n "checking for GNU ld... " >&6; }
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4226 $as_echo_n "checking for non-GNU ld... " >&6; }
4228 if ${lt_cv_path_LD+:} false; then :
4229 $as_echo_n "(cached) " >&6
4231 if test -z "$LD"; then
4232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4233 for ac_dir in $PATH; do
4235 test -z "$ac_dir" && ac_dir=.
4236 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4237 lt_cv_path_LD="$ac_dir/$ac_prog"
4238 # Check to see if the program is GNU ld. I'd rather use --version,
4239 # but apparently some variants of GNU ld only accept -v.
4240 # Break only if it was the GNU/non-GNU ld that we prefer.
4241 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4242 *GNU* | *'with BFD'*)
4243 test "$with_gnu_ld" != no && break
4246 test "$with_gnu_ld" != yes && break
4253 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4258 if test -n "$LD"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4260 $as_echo "$LD" >&6; }
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4265 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4267 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4268 if ${lt_cv_prog_gnu_ld+:} false; then :
4269 $as_echo_n "(cached) " >&6
4271 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4272 case `$LD -v 2>&1 </dev/null` in
4273 *GNU* | *'with BFD'*)
4274 lt_cv_prog_gnu_ld=yes
4277 lt_cv_prog_gnu_ld=no
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4282 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4283 with_gnu_ld=$lt_cv_prog_gnu_ld
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4294 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4295 if ${lt_cv_path_NM+:} false; then :
4296 $as_echo_n "(cached) " >&6
4298 if test -n "$NM"; then
4299 # Let the user override the test.
4302 lt_nm_to_check="${ac_tool_prefix}nm"
4303 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4304 lt_nm_to_check="$lt_nm_to_check nm"
4306 for lt_tmp_nm in $lt_nm_to_check; do
4307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4308 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4310 test -z "$ac_dir" && ac_dir=.
4311 tmp_nm="$ac_dir/$lt_tmp_nm"
4312 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4313 # Check to see if the nm accepts a BSD-compat flag.
4314 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4315 # nm: unknown option "B" ignored
4316 # Tru64's nm complains that /dev/null is an invalid object file
4317 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4318 */dev/null* | *'Invalid file or object type'*)
4319 lt_cv_path_NM="$tmp_nm -B"
4323 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4325 lt_cv_path_NM="$tmp_nm -p"
4329 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4330 continue # so that we can try to find one that supports BSD flags
4339 : ${lt_cv_path_NM=no}
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4343 $as_echo "$lt_cv_path_NM" >&6; }
4344 if test "$lt_cv_path_NM" != "no"; then
4347 # Didn't find any BSD compatible name lister, look for dumpbin.
4348 if test -n "$DUMPBIN"; then :
4349 # Let the user override the test.
4351 if test -n "$ac_tool_prefix"; then
4352 for ac_prog in dumpbin "link -dump"
4354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if ${ac_cv_prog_DUMPBIN+:} false; then :
4359 $as_echo_n "(cached) " >&6
4361 if test -n "$DUMPBIN"; then
4362 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 DUMPBIN=$ac_cv_prog_DUMPBIN
4382 if test -n "$DUMPBIN"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4384 $as_echo "$DUMPBIN" >&6; }
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4391 test -n "$DUMPBIN" && break
4394 if test -z "$DUMPBIN"; then
4395 ac_ct_DUMPBIN=$DUMPBIN
4396 for ac_prog in dumpbin "link -dump"
4398 # Extract the first word of "$ac_prog", so it can be a program name with args.
4399 set dummy $ac_prog; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4403 $as_echo_n "(cached) " >&6
4405 if test -n "$ac_ct_DUMPBIN"; then
4406 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4426 if test -n "$ac_ct_DUMPBIN"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4428 $as_echo "$ac_ct_DUMPBIN" >&6; }
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4435 test -n "$ac_ct_DUMPBIN" && break
4438 if test "x$ac_ct_DUMPBIN" = x; then
4441 case $cross_compiling:$ac_tool_warned in
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4445 ac_tool_warned=yes ;;
4447 DUMPBIN=$ac_ct_DUMPBIN
4451 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4453 DUMPBIN="$DUMPBIN -symbols"
4461 if test "$DUMPBIN" != ":"; then
4465 test -z "$NM" && NM=nm
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4473 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4474 if ${lt_cv_nm_interface+:} false; then :
4475 $as_echo_n "(cached) " >&6
4477 lt_cv_nm_interface="BSD nm"
4478 echo "int some_variable = 0;" > conftest.$ac_ext
4479 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4480 (eval "$ac_compile" 2>conftest.err)
4481 cat conftest.err >&5
4482 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4483 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4484 cat conftest.err >&5
4485 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4486 cat conftest.out >&5
4487 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4488 lt_cv_nm_interface="MS dumpbin"
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4493 $as_echo "$lt_cv_nm_interface" >&6; }
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4496 $as_echo_n "checking whether ln -s works... " >&6; }
4498 if test "$LN_S" = "ln -s"; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4500 $as_echo "yes" >&6; }
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4503 $as_echo "no, using $LN_S" >&6; }
4506 # find the maximum length of command line arguments
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4508 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4509 if ${lt_cv_sys_max_cmd_len+:} false; then :
4510 $as_echo_n "(cached) " >&6
4517 # On DJGPP, this test can blow up pretty badly due to problems in libc
4518 # (any single argument exceeding 2000 bytes causes a buffer overrun
4519 # during glob expansion). Even if it were fixed, the result of this
4520 # check would be larger than it should be.
4521 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4525 # Under GNU Hurd, this test is not required because there is
4526 # no limit to the length of command line arguments.
4527 # Libtool will interpret -1 as no limit whatsoever
4528 lt_cv_sys_max_cmd_len=-1;
4531 cygwin* | mingw* | cegcc*)
4532 # On Win9x/ME, this test blows up -- it succeeds, but takes
4533 # about 5 minutes as the teststring grows exponentially.
4534 # Worse, since 9x/ME are not pre-emptively multitasking,
4535 # you end up with a "frozen" computer, even though with patience
4536 # the test eventually succeeds (with a max line length of 256k).
4537 # Instead, let's just punt: use the minimum linelength reported by
4538 # all of the supported platforms: 8192 (on NT/2K/XP).
4539 lt_cv_sys_max_cmd_len=8192;
4543 # On MiNT this can take a long time and run out of memory.
4544 lt_cv_sys_max_cmd_len=8192;
4548 # On AmigaOS with pdksh, this test takes hours, literally.
4549 # So we just punt and use a minimum line length of 8192.
4550 lt_cv_sys_max_cmd_len=8192;
4553 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4554 # This has been around since 386BSD, at least. Likely further.
4555 if test -x /sbin/sysctl; then
4556 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4557 elif test -x /usr/sbin/sysctl; then
4558 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4560 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4562 # And add a safety zone
4563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4568 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4569 lt_cv_sys_max_cmd_len=196608
4573 # The test takes a long time on OS/2.
4574 lt_cv_sys_max_cmd_len=8192
4578 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4579 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4580 # nice to cause kernel panics so lets avoid the loop below.
4581 # First set a reasonable default.
4582 lt_cv_sys_max_cmd_len=16384
4584 if test -x /sbin/sysconfig; then
4585 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4586 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4591 lt_cv_sys_max_cmd_len=102400
4593 sysv5* | sco5v6* | sysv4.2uw2*)
4594 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4595 if test -n "$kargmax"; then
4596 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4598 lt_cv_sys_max_cmd_len=32768
4602 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4603 if test -n "$lt_cv_sys_max_cmd_len"; then
4604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4607 # Make teststring a little bigger before we do anything with it.
4608 # a 1K string should be a reasonable start.
4609 for i in 1 2 3 4 5 6 7 8 ; do
4610 teststring=$teststring$teststring
4612 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4613 # If test is not a shell built-in, we'll probably end up computing a
4614 # maximum length that is only half of the actual maximum length, but
4616 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4617 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4618 test $i != 17 # 1/2 MB should be enough
4621 teststring=$teststring$teststring
4623 # Only check the string length outside the loop.
4624 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4626 # Add a significant safety factor because C++ compilers can tack on
4627 # massive amounts of additional arguments before passing them to the
4628 # linker. It appears as though 1/2 is a usable value.
4629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4636 if test -n $lt_cv_sys_max_cmd_len ; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4638 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4641 $as_echo "none" >&6; }
4643 max_cmd_len=$lt_cv_sys_max_cmd_len
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4655 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4656 # Try some XSI features
4659 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4661 && eval 'test $(( 1 + 1 )) -eq 2 \
4662 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4665 $as_echo "$xsi_shell" >&6; }
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4669 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4671 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4673 && lt_shell_append=yes
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4675 $as_echo "$lt_shell_append" >&6; }
4678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4688 # test EBCDIC or ASCII
4689 case `echo X|tr X '\101'` in
4690 A) # ASCII based system
4691 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4692 lt_SP2NL='tr \040 \012'
4693 lt_NL2SP='tr \015\012 \040\040'
4695 *) # EBCDIC based system
4696 lt_SP2NL='tr \100 \n'
4697 lt_NL2SP='tr \r\n \100\100'
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4710 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4711 if ${lt_cv_to_host_file_cmd+:} false; then :
4712 $as_echo_n "(cached) " >&6
4717 *-*-mingw* ) # actually msys
4718 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4721 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4723 * ) # otherwise, assume *nix
4724 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4730 *-*-mingw* ) # actually msys
4731 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4734 lt_cv_to_host_file_cmd=func_convert_file_noop
4736 * ) # otherwise, assume *nix
4737 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4741 * ) # unhandled hosts (and "normal" native builds)
4742 lt_cv_to_host_file_cmd=func_convert_file_noop
4748 to_host_file_cmd=$lt_cv_to_host_file_cmd
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4750 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4757 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4758 if ${lt_cv_to_tool_file_cmd+:} false; then :
4759 $as_echo_n "(cached) " >&6
4761 #assume ordinary cross tools, or native build.
4762 lt_cv_to_tool_file_cmd=func_convert_file_noop
4766 *-*-mingw* ) # actually msys
4767 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4775 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4777 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4784 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4785 if ${lt_cv_ld_reload_flag+:} false; then :
4786 $as_echo_n "(cached) " >&6
4788 lt_cv_ld_reload_flag='-r'
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4791 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4792 reload_flag=$lt_cv_ld_reload_flag
4793 case $reload_flag in
4795 *) reload_flag=" $reload_flag" ;;
4797 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4799 cygwin* | mingw* | pw32* | cegcc*)
4800 if test "$GCC" != yes; then
4805 if test "$GCC" = yes; then
4806 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4808 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4821 if test -n "$ac_tool_prefix"; then
4822 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4823 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if ${ac_cv_prog_OBJDUMP+:} false; then :
4827 $as_echo_n "(cached) " >&6
4829 if test -n "$OBJDUMP"; then
4830 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 OBJDUMP=$ac_cv_prog_OBJDUMP
4850 if test -n "$OBJDUMP"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4852 $as_echo "$OBJDUMP" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4860 if test -z "$ac_cv_prog_OBJDUMP"; then
4861 ac_ct_OBJDUMP=$OBJDUMP
4862 # Extract the first word of "objdump", so it can be a program name with args.
4863 set dummy objdump; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4867 $as_echo_n "(cached) " >&6
4869 if test -n "$ac_ct_OBJDUMP"; then
4870 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4890 if test -n "$ac_ct_OBJDUMP"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4892 $as_echo "$ac_ct_OBJDUMP" >&6; }
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4898 if test "x$ac_ct_OBJDUMP" = x; then
4901 case $cross_compiling:$ac_tool_warned in
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4905 ac_tool_warned=yes ;;
4907 OBJDUMP=$ac_ct_OBJDUMP
4910 OBJDUMP="$ac_cv_prog_OBJDUMP"
4913 test -z "$OBJDUMP" && OBJDUMP=objdump
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4924 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4925 if ${lt_cv_deplibs_check_method+:} false; then :
4926 $as_echo_n "(cached) " >&6
4928 lt_cv_file_magic_cmd='$MAGIC_CMD'
4929 lt_cv_file_magic_test_file=
4930 lt_cv_deplibs_check_method='unknown'
4931 # Need to set the preceding variable on all platforms that support
4932 # interlibrary dependencies.
4933 # 'none' -- dependencies not supported.
4934 # `unknown' -- same as none, but documents that we really don't know.
4935 # 'pass_all' -- all dependencies passed with no checks.
4936 # 'test_compile' -- check by making test program.
4937 # 'file_magic [[regex]]' -- check by looking for files in library path
4938 # which responds to the $file_magic_cmd with a given extended regex.
4939 # If you have `file' or equivalent on your system and you're not sure
4940 # whether `pass_all' will *always* work, you probably want this one.
4944 lt_cv_deplibs_check_method=pass_all
4948 lt_cv_deplibs_check_method=pass_all
4952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4953 lt_cv_file_magic_cmd='/usr/bin/file -L'
4954 lt_cv_file_magic_test_file=/shlib/libc.so
4958 # func_win32_libid is a shell function defined in ltmain.sh
4959 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4960 lt_cv_file_magic_cmd='func_win32_libid'
4964 # Base MSYS/MinGW do not provide the 'file' command needed by
4965 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4966 # unless we find 'file', for example because we are cross-compiling.
4967 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4968 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4970 lt_cv_file_magic_cmd='func_win32_libid'
4972 # Keep this pattern in sync with the one in func_win32_libid.
4973 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4974 lt_cv_file_magic_cmd='$OBJDUMP -f'
4979 # use the weaker test based on 'objdump'. See mingw*.
4980 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4981 lt_cv_file_magic_cmd='$OBJDUMP -f'
4984 darwin* | rhapsody*)
4985 lt_cv_deplibs_check_method=pass_all
4988 freebsd* | dragonfly*)
4989 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4992 # Not sure whether the presence of OpenBSD here was a mistake.
4993 # Let's accept both of them until this is cleared up.
4994 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4995 lt_cv_file_magic_cmd=/usr/bin/file
4996 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5000 lt_cv_deplibs_check_method=pass_all
5005 lt_cv_deplibs_check_method=pass_all
5009 lt_cv_deplibs_check_method=pass_all
5012 hpux10.20* | hpux11*)
5013 lt_cv_file_magic_cmd=/usr/bin/file
5016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5017 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5020 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]'
5021 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5025 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5031 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5035 irix5* | irix6* | nonstopux*)
5037 *-32|*"-32 ") libmagic=32-bit;;
5038 *-n32|*"-n32 ") libmagic=N32;;
5039 *-64|*"-64 ") libmagic=64-bit;;
5040 *) libmagic=never-match;;
5042 lt_cv_deplibs_check_method=pass_all
5045 # This must be glibc/ELF.
5046 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5047 lt_cv_deplibs_check_method=pass_all
5051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5060 lt_cv_file_magic_cmd=/usr/bin/file
5061 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5065 lt_cv_deplibs_check_method=pass_all
5069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5076 osf3* | osf4* | osf5*)
5077 lt_cv_deplibs_check_method=pass_all
5081 lt_cv_deplibs_check_method=pass_all
5085 lt_cv_deplibs_check_method=pass_all
5088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5089 lt_cv_deplibs_check_method=pass_all
5093 case $host_vendor in
5095 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]'
5096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5099 lt_cv_deplibs_check_method=pass_all
5102 lt_cv_file_magic_cmd='/bin/file'
5103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5106 lt_cv_file_magic_cmd='/bin/file'
5107 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5108 lt_cv_file_magic_test_file=/lib/libc.so
5111 lt_cv_deplibs_check_method=pass_all
5114 lt_cv_deplibs_check_method=pass_all
5120 lt_cv_deplibs_check_method=pass_all
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5126 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5130 if test "$build" = "$host"; then
5133 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5136 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5142 file_magic_cmd=$lt_cv_file_magic_cmd
5143 deplibs_check_method=$lt_cv_deplibs_check_method
5144 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5167 if test -n "$ac_tool_prefix"; then
5168 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5169 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171 $as_echo_n "checking for $ac_word... " >&6; }
5172 if ${ac_cv_prog_DLLTOOL+:} false; then :
5173 $as_echo_n "(cached) " >&6
5175 if test -n "$DLLTOOL"; then
5176 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 DLLTOOL=$ac_cv_prog_DLLTOOL
5196 if test -n "$DLLTOOL"; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5198 $as_echo "$DLLTOOL" >&6; }
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5206 if test -z "$ac_cv_prog_DLLTOOL"; then
5207 ac_ct_DLLTOOL=$DLLTOOL
5208 # Extract the first word of "dlltool", so it can be a program name with args.
5209 set dummy dlltool; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 if test -n "$ac_ct_DLLTOOL"; then
5216 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5236 if test -n "$ac_ct_DLLTOOL"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5238 $as_echo "$ac_ct_DLLTOOL" >&6; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5244 if test "x$ac_ct_DLLTOOL" = x; then
5247 case $cross_compiling:$ac_tool_warned in
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5251 ac_tool_warned=yes ;;
5253 DLLTOOL=$ac_ct_DLLTOOL
5256 DLLTOOL="$ac_cv_prog_DLLTOOL"
5259 test -z "$DLLTOOL" && DLLTOOL=dlltool
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5271 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5272 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5273 $as_echo_n "(cached) " >&6
5275 lt_cv_sharedlib_from_linklib_cmd='unknown'
5278 cygwin* | mingw* | pw32* | cegcc*)
5279 # two different shell functions defined in ltmain.sh
5280 # decide which to use based on capabilities of $DLLTOOL
5281 case `$DLLTOOL --help 2>&1` in
5282 *--identify-strict*)
5283 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5286 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5291 # fallback: assume linklib IS sharedlib
5292 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5298 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5299 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5300 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5309 if test -n "$ac_tool_prefix"; then
5312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if ${ac_cv_prog_AR+:} false; then :
5317 $as_echo_n "(cached) " >&6
5319 if test -n "$AR"; then
5320 ac_cv_prog_AR="$AR" # Let the user override the test.
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 if test -n "$AR"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5342 $as_echo "$AR" >&6; }
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5349 test -n "$AR" && break
5352 if test -z "$AR"; then
5356 # Extract the first word of "$ac_prog", so it can be a program name with args.
5357 set dummy $ac_prog; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5361 $as_echo_n "(cached) " >&6
5363 if test -n "$ac_ct_AR"; then
5364 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_prog_ac_ct_AR="$ac_prog"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5384 if test -n "$ac_ct_AR"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5386 $as_echo "$ac_ct_AR" >&6; }
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5393 test -n "$ac_ct_AR" && break
5396 if test "x$ac_ct_AR" = x; then
5399 case $cross_compiling:$ac_tool_warned in
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5403 ac_tool_warned=yes ;;
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5423 $as_echo_n "checking for archiver @FILE support... " >&6; }
5424 if ${lt_cv_ar_at_file+:} false; then :
5425 $as_echo_n "(cached) " >&6
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5439 if ac_fn_c_try_compile "$LINENO"; then :
5440 echo conftest.$ac_objext > conftest.lst
5441 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5443 (eval $lt_ar_try) 2>&5
5445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5446 test $ac_status = 0; }
5447 if test "$ac_status" -eq 0; then
5448 # Ensure the archiver fails upon bogus file names.
5449 rm -f conftest.$ac_objext libconftest.a
5450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5451 (eval $lt_ar_try) 2>&5
5453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5454 test $ac_status = 0; }
5455 if test "$ac_status" -ne 0; then
5459 rm -f conftest.* libconftest.a
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5466 $as_echo "$lt_cv_ar_at_file" >&6; }
5468 if test "x$lt_cv_ar_at_file" = xno; then
5471 archiver_list_spec=$lt_cv_ar_at_file
5480 if test -n "$ac_tool_prefix"; then
5481 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5482 set dummy ${ac_tool_prefix}strip; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_STRIP+:} false; then :
5486 $as_echo_n "(cached) " >&6
5488 if test -n "$STRIP"; then
5489 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 STRIP=$ac_cv_prog_STRIP
5509 if test -n "$STRIP"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5511 $as_echo "$STRIP" >&6; }
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5519 if test -z "$ac_cv_prog_STRIP"; then
5521 # Extract the first word of "strip", so it can be a program name with args.
5522 set dummy strip; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5526 $as_echo_n "(cached) " >&6
5528 if test -n "$ac_ct_STRIP"; then
5529 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538 ac_cv_prog_ac_ct_STRIP="strip"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5549 if test -n "$ac_ct_STRIP"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5551 $as_echo "$ac_ct_STRIP" >&6; }
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5557 if test "x$ac_ct_STRIP" = x; then
5560 case $cross_compiling:$ac_tool_warned in
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5564 ac_tool_warned=yes ;;
5569 STRIP="$ac_cv_prog_STRIP"
5572 test -z "$STRIP" && STRIP=:
5579 if test -n "$ac_tool_prefix"; then
5580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_prog_RANLIB+:} false; then :
5585 $as_echo_n "(cached) " >&6
5587 if test -n "$RANLIB"; then
5588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 RANLIB=$ac_cv_prog_RANLIB
5608 if test -n "$RANLIB"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5610 $as_echo "$RANLIB" >&6; }
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5618 if test -z "$ac_cv_prog_RANLIB"; then
5619 ac_ct_RANLIB=$RANLIB
5620 # Extract the first word of "ranlib", so it can be a program name with args.
5621 set dummy ranlib; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5625 $as_echo_n "(cached) " >&6
5627 if test -n "$ac_ct_RANLIB"; then
5628 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637 ac_cv_prog_ac_ct_RANLIB="ranlib"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5648 if test -n "$ac_ct_RANLIB"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5650 $as_echo "$ac_ct_RANLIB" >&6; }
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5656 if test "x$ac_ct_RANLIB" = x; then
5659 case $cross_compiling:$ac_tool_warned in
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5663 ac_tool_warned=yes ;;
5665 RANLIB=$ac_ct_RANLIB
5668 RANLIB="$ac_cv_prog_RANLIB"
5671 test -z "$RANLIB" && RANLIB=:
5678 # Determine commands to create old-style static archives.
5679 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5680 old_postinstall_cmds='chmod 644 $oldlib'
5681 old_postuninstall_cmds=
5683 if test -n "$RANLIB"; then
5686 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5689 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5692 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5697 lock_old_archive_extraction=yes ;;
5699 lock_old_archive_extraction=no ;;
5740 # If no C compiler was specified, use CC.
5743 # If no C compiler flags were specified, use CFLAGS.
5744 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5746 # Allow CC to be a program name with arguments.
5750 # Check for command to grab the raw symbol name followed by C symbol from nm.
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5752 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5753 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5754 $as_echo_n "(cached) " >&6
5757 # These are sane defaults that work on at least a few old systems.
5758 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5760 # Character class describing NM global symbol codes.
5761 symcode='[BCDEGRST]'
5763 # Regexp to match symbols that can be accessed directly from C.
5764 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5766 # Define system-specific variables.
5771 cygwin* | mingw* | pw32* | cegcc*)
5772 symcode='[ABCDGISTW]'
5775 if test "$host_cpu" = ia64; then
5776 symcode='[ABCDEGRST]'
5780 symcode='[BCDEGRST]'
5783 symcode='[BCDEGQRST]'
5794 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5802 # If we're using GNU nm, then use its standard symbol codes.
5803 case `$NM -V 2>&1` in
5804 *GNU* | *'with BFD'*)
5805 symcode='[ABCDGIRSTW]' ;;
5808 # Transform an extracted symbol line into a proper C declaration.
5809 # Some systems (esp. on ia64) link data and code symbols differently,
5810 # so use this general approach.
5811 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5813 # Transform an extracted symbol line into symbol name and symbol address
5814 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5815 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'"
5817 # Handle CRLF in mingw tool chain
5821 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5825 # Try without a prefix underscore, then with it.
5826 for ac_symprfx in "" "_"; do
5828 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5829 symxfrm="\\1 $ac_symprfx\\2 \\2"
5831 # Write the raw and C identifiers.
5832 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5833 # Fake it for dumpbin and say T for any non-static function
5834 # and D for any global variable.
5835 # Also find C++ and __fastcall symbols from MSVC++,
5836 # which start with @ or ?.
5837 lt_cv_sys_global_symbol_pipe="$AWK '"\
5838 " {last_section=section; section=\$ 3};"\
5839 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5840 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5841 " \$ 0!~/External *\|/{next};"\
5842 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5843 " {if(hide[section]) next};"\
5844 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5845 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5846 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5847 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5848 " ' prfx=^$ac_symprfx"
5850 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5852 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5854 # Check to see that the pipe works correctly.
5858 cat > conftest.$ac_ext <<_LT_EOF
5863 void nm_test_func(void);
5864 void nm_test_func(void){}
5868 int main(){nm_test_var='a';nm_test_func();return(0);}
5871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5872 (eval $ac_compile) 2>&5
5874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5875 test $ac_status = 0; }; then
5876 # Now try to grab the symbols.
5878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5879 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5882 test $ac_status = 0; } && test -s "$nlist"; then
5883 # Try sorting and uniquifying the output.
5884 if sort "$nlist" | uniq > "$nlist"T; then
5885 mv -f "$nlist"T "$nlist"
5890 # Make sure that we snagged all the symbols we need.
5891 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5892 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5893 cat <<_LT_EOF > conftest.$ac_ext
5894 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5895 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5896 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5897 relocations are performed -- see ld's documentation on pseudo-relocs. */
5898 # define LT_DLSYM_CONST
5899 #elif defined(__osf__)
5900 /* This system does not cope well with relocations in const data. */
5901 # define LT_DLSYM_CONST
5903 # define LT_DLSYM_CONST const
5911 # Now generate the symbol file.
5912 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5914 cat <<_LT_EOF >> conftest.$ac_ext
5916 /* The mapping between symbol names and symbols. */
5917 LT_DLSYM_CONST struct {
5921 lt__PROGRAM__LTX_preloaded_symbols[] =
5923 { "@PROGRAM@", (void *) 0 },
5925 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5926 cat <<\_LT_EOF >> conftest.$ac_ext
5930 /* This works around a problem in FreeBSD linker */
5931 #ifdef FREEBSD_WORKAROUND
5932 static const void *lt_preloaded_setup() {
5933 return lt__PROGRAM__LTX_preloaded_symbols;
5941 # Now try linking the two files.
5942 mv conftest.$ac_objext conftstm.$ac_objext
5943 lt_globsym_save_LIBS=$LIBS
5944 lt_globsym_save_CFLAGS=$CFLAGS
5945 LIBS="conftstm.$ac_objext"
5946 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5948 (eval $ac_link) 2>&5
5950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5951 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5954 LIBS=$lt_globsym_save_LIBS
5955 CFLAGS=$lt_globsym_save_CFLAGS
5957 echo "cannot find nm_test_func in $nlist" >&5
5960 echo "cannot find nm_test_var in $nlist" >&5
5963 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5966 echo "$progname: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5969 rm -rf conftest* conftst*
5971 # Do not use the global_symbol_pipe unless it works.
5972 if test "$pipe_works" = yes; then
5975 lt_cv_sys_global_symbol_pipe=
5981 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5982 lt_cv_sys_global_symbol_to_cdecl=
5984 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5986 $as_echo "failed" >&6; }
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5989 $as_echo "ok" >&6; }
5992 # Response file support.
5993 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5994 nm_file_list_spec='@'
5995 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5996 nm_file_list_spec='@'
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6026 $as_echo_n "checking for sysroot... " >&6; }
6028 # Check whether --with-sysroot was given.
6029 if test "${with_sysroot+set}" = set; then :
6030 withval=$with_sysroot;
6037 case ${with_sysroot} in #(
6039 if test "$GCC" = yes; then
6040 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6044 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6050 $as_echo "${with_sysroot}" >&6; }
6051 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6056 $as_echo "${lt_sysroot:-no}" >&6; }
6062 # Check whether --enable-libtool-lock was given.
6063 if test "${enable_libtool_lock+set}" = set; then :
6064 enableval=$enable_libtool_lock;
6067 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6069 # Some flags need to be propagated to the compiler or linker for good
6073 # Find out which ABI we are using.
6074 echo 'int i;' > conftest.$ac_ext
6075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6076 (eval $ac_compile) 2>&5
6078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6079 test $ac_status = 0; }; then
6080 case `/usr/bin/file conftest.$ac_objext` in
6092 # Find out which ABI we are using.
6093 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6095 (eval $ac_compile) 2>&5
6097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6098 test $ac_status = 0; }; then
6099 if test "$lt_cv_prog_gnu_ld" = yes; then
6100 case `/usr/bin/file conftest.$ac_objext` in
6102 LD="${LD-ld} -melf32bsmip"
6105 LD="${LD-ld} -melf32bmipn32"
6108 LD="${LD-ld} -melf64bmip"
6112 case `/usr/bin/file conftest.$ac_objext` in
6128 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6129 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6130 # Find out which ABI we are using.
6131 echo 'int i;' > conftest.$ac_ext
6132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6133 (eval $ac_compile) 2>&5
6135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6136 test $ac_status = 0; }; then
6137 case `/usr/bin/file conftest.o` in
6140 x86_64-*kfreebsd*-gnu)
6141 LD="${LD-ld} -m elf_i386_fbsd"
6144 LD="${LD-ld} -m elf_i386"
6146 ppc64-*linux*|powerpc64-*linux*)
6147 LD="${LD-ld} -m elf32ppclinux"
6150 LD="${LD-ld} -m elf_s390"
6153 LD="${LD-ld} -m elf32_sparc"
6159 x86_64-*kfreebsd*-gnu)
6160 LD="${LD-ld} -m elf_x86_64_fbsd"
6163 LD="${LD-ld} -m elf_x86_64"
6165 ppc*-*linux*|powerpc*-*linux*)
6166 LD="${LD-ld} -m elf64ppc"
6168 s390*-*linux*|s390*-*tpf*)
6169 LD="${LD-ld} -m elf64_s390"
6172 LD="${LD-ld} -m elf64_sparc"
6182 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6183 SAVE_CFLAGS="$CFLAGS"
6184 CFLAGS="$CFLAGS -belf"
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6186 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6187 if ${lt_cv_cc_needs_belf+:} false; then :
6188 $as_echo_n "(cached) " >&6
6191 ac_cpp='$CPP $CPPFLAGS'
6192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6207 if ac_fn_c_try_link "$LINENO"; then :
6208 lt_cv_cc_needs_belf=yes
6210 lt_cv_cc_needs_belf=no
6212 rm -f core conftest.err conftest.$ac_objext \
6213 conftest$ac_exeext conftest.$ac_ext
6215 ac_cpp='$CPP $CPPFLAGS'
6216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6222 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6223 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6224 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6225 CFLAGS="$SAVE_CFLAGS"
6229 # Find out which ABI we are using.
6230 echo 'int i;' > conftest.$ac_ext
6231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6232 (eval $ac_compile) 2>&5
6234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6235 test $ac_status = 0; }; then
6236 case `/usr/bin/file conftest.o` in
6238 case $lt_cv_prog_gnu_ld in
6242 LD="${LD-ld} -m elf_x86_64"
6245 LD="${LD-ld} -m elf64_sparc"
6248 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6249 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6254 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6266 need_locks="$enable_libtool_lock"
6268 if test -n "$ac_tool_prefix"; then
6269 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6270 set dummy ${ac_tool_prefix}mt; ac_word=$2
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272 $as_echo_n "checking for $ac_word... " >&6; }
6273 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6274 $as_echo_n "(cached) " >&6
6276 if test -n "$MANIFEST_TOOL"; then
6277 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6297 if test -n "$MANIFEST_TOOL"; then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6299 $as_echo "$MANIFEST_TOOL" >&6; }
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302 $as_echo "no" >&6; }
6307 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6308 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6309 # Extract the first word of "mt", so it can be a program name with args.
6310 set dummy mt; ac_word=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6314 $as_echo_n "(cached) " >&6
6316 if test -n "$ac_ct_MANIFEST_TOOL"; then
6317 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6337 if test -n "$ac_ct_MANIFEST_TOOL"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6339 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6345 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6348 case $cross_compiling:$ac_tool_warned in
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6352 ac_tool_warned=yes ;;
6354 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6357 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6360 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6362 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6363 if ${lt_cv_path_mainfest_tool+:} false; then :
6364 $as_echo_n "(cached) " >&6
6366 lt_cv_path_mainfest_tool=no
6367 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6368 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6369 cat conftest.err >&5
6370 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6371 lt_cv_path_mainfest_tool=yes
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6376 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6377 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6387 rhapsody* | darwin*)
6388 if test -n "$ac_tool_prefix"; then
6389 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6390 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6394 $as_echo_n "(cached) " >&6
6396 if test -n "$DSYMUTIL"; then
6397 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6417 if test -n "$DSYMUTIL"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6419 $as_echo "$DSYMUTIL" >&6; }
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6427 if test -z "$ac_cv_prog_DSYMUTIL"; then
6428 ac_ct_DSYMUTIL=$DSYMUTIL
6429 # Extract the first word of "dsymutil", so it can be a program name with args.
6430 set dummy dsymutil; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6434 $as_echo_n "(cached) " >&6
6436 if test -n "$ac_ct_DSYMUTIL"; then
6437 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6457 if test -n "$ac_ct_DSYMUTIL"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6459 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6465 if test "x$ac_ct_DSYMUTIL" = x; then
6468 case $cross_compiling:$ac_tool_warned in
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6472 ac_tool_warned=yes ;;
6474 DSYMUTIL=$ac_ct_DSYMUTIL
6477 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6480 if test -n "$ac_tool_prefix"; then
6481 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6482 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if ${ac_cv_prog_NMEDIT+:} false; then :
6486 $as_echo_n "(cached) " >&6
6488 if test -n "$NMEDIT"; then
6489 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 NMEDIT=$ac_cv_prog_NMEDIT
6509 if test -n "$NMEDIT"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6511 $as_echo "$NMEDIT" >&6; }
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6519 if test -z "$ac_cv_prog_NMEDIT"; then
6520 ac_ct_NMEDIT=$NMEDIT
6521 # Extract the first word of "nmedit", so it can be a program name with args.
6522 set dummy nmedit; ac_word=$2
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6526 $as_echo_n "(cached) " >&6
6528 if test -n "$ac_ct_NMEDIT"; then
6529 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6549 if test -n "$ac_ct_NMEDIT"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6551 $as_echo "$ac_ct_NMEDIT" >&6; }
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6557 if test "x$ac_ct_NMEDIT" = x; then
6560 case $cross_compiling:$ac_tool_warned in
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564 ac_tool_warned=yes ;;
6566 NMEDIT=$ac_ct_NMEDIT
6569 NMEDIT="$ac_cv_prog_NMEDIT"
6572 if test -n "$ac_tool_prefix"; then
6573 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6574 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if ${ac_cv_prog_LIPO+:} false; then :
6578 $as_echo_n "(cached) " >&6
6580 if test -n "$LIPO"; then
6581 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 LIPO=$ac_cv_prog_LIPO
6601 if test -n "$LIPO"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6603 $as_echo "$LIPO" >&6; }
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6611 if test -z "$ac_cv_prog_LIPO"; then
6613 # Extract the first word of "lipo", so it can be a program name with args.
6614 set dummy lipo; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6618 $as_echo_n "(cached) " >&6
6620 if test -n "$ac_ct_LIPO"; then
6621 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_prog_ac_ct_LIPO="lipo"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6641 if test -n "$ac_ct_LIPO"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6643 $as_echo "$ac_ct_LIPO" >&6; }
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6649 if test "x$ac_ct_LIPO" = x; then
6652 case $cross_compiling:$ac_tool_warned in
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6656 ac_tool_warned=yes ;;
6661 LIPO="$ac_cv_prog_LIPO"
6664 if test -n "$ac_tool_prefix"; then
6665 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6666 set dummy ${ac_tool_prefix}otool; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_prog_OTOOL+:} false; then :
6670 $as_echo_n "(cached) " >&6
6672 if test -n "$OTOOL"; then
6673 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 OTOOL=$ac_cv_prog_OTOOL
6693 if test -n "$OTOOL"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6695 $as_echo "$OTOOL" >&6; }
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6703 if test -z "$ac_cv_prog_OTOOL"; then
6705 # Extract the first word of "otool", so it can be a program name with args.
6706 set dummy otool; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6710 $as_echo_n "(cached) " >&6
6712 if test -n "$ac_ct_OTOOL"; then
6713 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_prog_ac_ct_OTOOL="otool"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6733 if test -n "$ac_ct_OTOOL"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6735 $as_echo "$ac_ct_OTOOL" >&6; }
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6741 if test "x$ac_ct_OTOOL" = x; then
6744 case $cross_compiling:$ac_tool_warned in
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6748 ac_tool_warned=yes ;;
6753 OTOOL="$ac_cv_prog_OTOOL"
6756 if test -n "$ac_tool_prefix"; then
6757 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6758 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if ${ac_cv_prog_OTOOL64+:} false; then :
6762 $as_echo_n "(cached) " >&6
6764 if test -n "$OTOOL64"; then
6765 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 OTOOL64=$ac_cv_prog_OTOOL64
6785 if test -n "$OTOOL64"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6787 $as_echo "$OTOOL64" >&6; }
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6795 if test -z "$ac_cv_prog_OTOOL64"; then
6796 ac_ct_OTOOL64=$OTOOL64
6797 # Extract the first word of "otool64", so it can be a program name with args.
6798 set dummy otool64; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6802 $as_echo_n "(cached) " >&6
6804 if test -n "$ac_ct_OTOOL64"; then
6805 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_prog_ac_ct_OTOOL64="otool64"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6825 if test -n "$ac_ct_OTOOL64"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6827 $as_echo "$ac_ct_OTOOL64" >&6; }
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6833 if test "x$ac_ct_OTOOL64" = x; then
6836 case $cross_compiling:$ac_tool_warned in
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6840 ac_tool_warned=yes ;;
6842 OTOOL64=$ac_ct_OTOOL64
6845 OTOOL64="$ac_cv_prog_OTOOL64"
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6875 $as_echo_n "checking for -single_module linker flag... " >&6; }
6876 if ${lt_cv_apple_cc_single_mod+:} false; then :
6877 $as_echo_n "(cached) " >&6
6879 lt_cv_apple_cc_single_mod=no
6880 if test -z "${LT_MULTI_MODULE}"; then
6881 # By default we will add the -single_module flag. You can override
6882 # by either setting the environment variable LT_MULTI_MODULE
6883 # non-empty at configure time, or by adding -multi_module to the
6885 rm -rf libconftest.dylib*
6886 echo "int foo(void){return 1;}" > conftest.c
6887 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6888 -dynamiclib -Wl,-single_module conftest.c" >&5
6889 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6890 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6892 # If there is a non-empty error log, and "single_module"
6893 # appears in it, assume the flag caused a linker warning
6894 if test -s conftest.err && $GREP single_module conftest.err; then
6895 cat conftest.err >&5
6896 # Otherwise, if the output was created with a 0 exit code from
6897 # the compiler, it worked.
6898 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6899 lt_cv_apple_cc_single_mod=yes
6901 cat conftest.err >&5
6903 rm -rf libconftest.dylib*
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6908 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6911 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6912 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6913 $as_echo_n "(cached) " >&6
6915 lt_cv_ld_exported_symbols_list=no
6916 save_LDFLAGS=$LDFLAGS
6917 echo "_main" > conftest.sym
6918 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6930 if ac_fn_c_try_link "$LINENO"; then :
6931 lt_cv_ld_exported_symbols_list=yes
6933 lt_cv_ld_exported_symbols_list=no
6935 rm -f core conftest.err conftest.$ac_objext \
6936 conftest$ac_exeext conftest.$ac_ext
6937 LDFLAGS="$save_LDFLAGS"
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6941 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6944 $as_echo_n "checking for -force_load linker flag... " >&6; }
6945 if ${lt_cv_ld_force_load+:} false; then :
6946 $as_echo_n "(cached) " >&6
6948 lt_cv_ld_force_load=no
6949 cat > conftest.c << _LT_EOF
6950 int forced_loaded() { return 2;}
6952 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6953 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6954 echo "$AR cru libconftest.a conftest.o" >&5
6955 $AR cru libconftest.a conftest.o 2>&5
6956 echo "$RANLIB libconftest.a" >&5
6957 $RANLIB libconftest.a 2>&5
6958 cat > conftest.c << _LT_EOF
6959 int main() { return 0;}
6961 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6962 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6964 if test -s conftest.err && $GREP force_load conftest.err; then
6965 cat conftest.err >&5
6966 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6967 lt_cv_ld_force_load=yes
6969 cat conftest.err >&5
6971 rm -f conftest.err libconftest.a conftest conftest.c
6972 rm -rf conftest.dSYM
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6976 $as_echo "$lt_cv_ld_force_load" >&6; }
6978 rhapsody* | darwin1.[012])
6979 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6981 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6982 darwin*) # darwin 5.x on
6983 # if running on 10.5 or later, the deployment target defaults
6984 # to the OS version, if on x86, and 10.4, the deployment
6985 # target defaults to 10.4. Don't you love it?
6986 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6987 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6988 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6990 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6992 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6996 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6997 _lt_dar_single_mod='$single_module'
6999 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7000 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7002 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7004 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7005 _lt_dsymutil='~$DSYMUTIL $lib || :'
7013 ac_cpp='$CPP $CPPFLAGS'
7014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7018 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7019 # On Suns, sometimes $CPP names a directory.
7020 if test -n "$CPP" && test -d "$CPP"; then
7023 if test -z "$CPP"; then
7024 if ${ac_cv_prog_CPP+:} false; then :
7025 $as_echo_n "(cached) " >&6
7027 # Double quotes because CPP needs to be expanded
7028 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7031 for ac_c_preproc_warn_flag in '' yes
7033 # Use a header file that comes with gcc, so configuring glibc
7034 # with a fresh cross-compiler works.
7035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7036 # <limits.h> exists even on freestanding compilers.
7037 # On the NeXT, cc -E runs the code through the compiler's parser,
7038 # not just through cpp. "Syntax error" is here to catch this case.
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7042 # include <limits.h>
7044 # include <assert.h>
7048 if ac_fn_c_try_cpp "$LINENO"; then :
7051 # Broken: fails on valid input.
7054 rm -f conftest.err conftest.i conftest.$ac_ext
7056 # OK, works on sane cases. Now check whether nonexistent headers
7057 # can be detected and how.
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7060 #include <ac_nonexistent.h>
7062 if ac_fn_c_try_cpp "$LINENO"; then :
7063 # Broken: success on invalid input.
7066 # Passes both tests.
7070 rm -f conftest.err conftest.i conftest.$ac_ext
7073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7074 rm -f conftest.i conftest.err conftest.$ac_ext
7075 if $ac_preproc_ok; then :
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7088 $as_echo "$CPP" >&6; }
7090 for ac_c_preproc_warn_flag in '' yes
7092 # Use a header file that comes with gcc, so configuring glibc
7093 # with a fresh cross-compiler works.
7094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7095 # <limits.h> exists even on freestanding compilers.
7096 # On the NeXT, cc -E runs the code through the compiler's parser,
7097 # not just through cpp. "Syntax error" is here to catch this case.
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7101 # include <limits.h>
7103 # include <assert.h>
7107 if ac_fn_c_try_cpp "$LINENO"; then :
7110 # Broken: fails on valid input.
7113 rm -f conftest.err conftest.i conftest.$ac_ext
7115 # OK, works on sane cases. Now check whether nonexistent headers
7116 # can be detected and how.
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 #include <ac_nonexistent.h>
7121 if ac_fn_c_try_cpp "$LINENO"; then :
7122 # Broken: success on invalid input.
7125 # Passes both tests.
7129 rm -f conftest.err conftest.i conftest.$ac_ext
7132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7133 rm -f conftest.i conftest.err conftest.$ac_ext
7134 if $ac_preproc_ok; then :
7137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7139 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7140 See \`config.log' for more details" "$LINENO" 5; }
7144 ac_cpp='$CPP $CPPFLAGS'
7145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7151 $as_echo_n "checking for ANSI C header files... " >&6; }
7152 if ${ac_cv_header_stdc+:} false; then :
7153 $as_echo_n "(cached) " >&6
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7170 if ac_fn_c_try_compile "$LINENO"; then :
7171 ac_cv_header_stdc=yes
7173 ac_cv_header_stdc=no
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 if test $ac_cv_header_stdc = yes; then
7178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7185 $EGREP "memchr" >/dev/null 2>&1; then :
7188 ac_cv_header_stdc=no
7194 if test $ac_cv_header_stdc = yes; then
7195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7202 $EGREP "free" >/dev/null 2>&1; then :
7205 ac_cv_header_stdc=no
7211 if test $ac_cv_header_stdc = yes; then
7212 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7213 if test "$cross_compiling" = yes; then :
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7220 #if ((' ' & 0x0FF) == 0x020)
7221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7224 # define ISLOWER(c) \
7225 (('a' <= (c) && (c) <= 'i') \
7226 || ('j' <= (c) && (c) <= 'r') \
7227 || ('s' <= (c) && (c) <= 'z'))
7228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7236 for (i = 0; i < 256; i++)
7237 if (XOR (islower (i), ISLOWER (i))
7238 || toupper (i) != TOUPPER (i))
7243 if ac_fn_c_try_run "$LINENO"; then :
7246 ac_cv_header_stdc=no
7248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7249 conftest.$ac_objext conftest.beam conftest.$ac_ext
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7255 $as_echo "$ac_cv_header_stdc" >&6; }
7256 if test $ac_cv_header_stdc = yes; then
7258 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7262 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7263 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7264 inttypes.h stdint.h unistd.h
7266 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7267 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7269 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7270 cat >>confdefs.h <<_ACEOF
7271 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7279 for ac_header in dlfcn.h
7281 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7283 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7284 cat >>confdefs.h <<_ACEOF
7285 #define HAVE_DLFCN_H 1
7306 # Check whether --enable-shared was given.
7307 if test "${enable_shared+set}" = set; then :
7308 enableval=$enable_shared; p=${PACKAGE-default}
7310 yes) enable_shared=yes ;;
7311 no) enable_shared=no ;;
7314 # Look at the argument we got. We use all the common list separators.
7315 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7316 for pkg in $enableval; do
7318 if test "X$pkg" = "X$p"; then
7337 # Check whether --enable-static was given.
7338 if test "${enable_static+set}" = set; then :
7339 enableval=$enable_static; p=${PACKAGE-default}
7341 yes) enable_static=yes ;;
7342 no) enable_static=no ;;
7345 # Look at the argument we got. We use all the common list separators.
7346 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7347 for pkg in $enableval; do
7349 if test "X$pkg" = "X$p"; then
7369 # Check whether --with-pic was given.
7370 if test "${with_pic+set}" = set; then :
7371 withval=$with_pic; lt_p=${PACKAGE-default}
7373 yes|no) pic_mode=$withval ;;
7376 # Look at the argument we got. We use all the common list separators.
7377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7378 for lt_pkg in $withval; do
7380 if test "X$lt_pkg" = "X$lt_p"; then
7392 test -z "$pic_mode" && pic_mode=default
7400 # Check whether --enable-fast-install was given.
7401 if test "${enable_fast_install+set}" = set; then :
7402 enableval=$enable_fast_install; p=${PACKAGE-default}
7404 yes) enable_fast_install=yes ;;
7405 no) enable_fast_install=no ;;
7407 enable_fast_install=no
7408 # Look at the argument we got. We use all the common list separators.
7409 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7410 for pkg in $enableval; do
7412 if test "X$pkg" = "X$p"; then
7413 enable_fast_install=yes
7420 enable_fast_install=yes
7433 # This can be used to rebuild libtool when needed
7434 LIBTOOL_DEPS="$ltmain"
7436 # Always use our own libtool.
7437 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7468 test -z "$LN_S" && LN_S="ln -s"
7483 if test -n "${ZSH_VERSION+set}" ; then
7484 setopt NO_GLOB_SUBST
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7488 $as_echo_n "checking for objdir... " >&6; }
7489 if ${lt_cv_objdir+:} false; then :
7490 $as_echo_n "(cached) " >&6
7492 rm -f .libs 2>/dev/null
7493 mkdir .libs 2>/dev/null
7494 if test -d .libs; then
7497 # MS-DOS does not allow filenames that begin with a dot.
7500 rmdir .libs 2>/dev/null
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7503 $as_echo "$lt_cv_objdir" >&6; }
7504 objdir=$lt_cv_objdir
7510 cat >>confdefs.h <<_ACEOF
7511 #define LT_OBJDIR "$lt_cv_objdir/"
7519 # AIX sometimes has problems with the GCC collect2 program. For some
7520 # reason, if we set the COLLECT_NAMES environment variable, the problems
7521 # vanish in a puff of smoke.
7522 if test "X${COLLECT_NAMES+set}" != Xset; then
7524 export COLLECT_NAMES
7531 can_build_shared=yes
7533 # All known linkers require a `.a' archive for static linking (except MSVC,
7534 # which needs '.lib').
7537 with_gnu_ld="$lt_cv_prog_gnu_ld"
7540 old_CFLAGS="$CFLAGS"
7542 # Set sane defaults for various variables
7543 test -z "$CC" && CC=cc
7544 test -z "$LTCC" && LTCC=$CC
7545 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7546 test -z "$LD" && LD=ld
7547 test -z "$ac_objext" && ac_objext=o
7549 for cc_temp in $compiler""; do
7551 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7552 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7557 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7560 # Only perform the check for file, if the check method requires it
7561 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7562 case $deplibs_check_method in
7564 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7566 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7567 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7568 $as_echo_n "(cached) " >&6
7572 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7575 lt_save_MAGIC_CMD="$MAGIC_CMD"
7576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7577 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7578 for ac_dir in $ac_dummy; do
7580 test -z "$ac_dir" && ac_dir=.
7581 if test -f $ac_dir/${ac_tool_prefix}file; then
7582 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7583 if test -n "$file_magic_test_file"; then
7584 case $deplibs_check_method in
7586 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7588 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7589 $EGREP "$file_magic_regex" > /dev/null; then
7594 *** Warning: the command libtool uses to detect shared libraries,
7595 *** $file_magic_cmd, produces output that libtool cannot recognize.
7596 *** The result is that libtool may fail to recognize shared libraries
7597 *** as such. This will affect the creation of libtool libraries that
7598 *** depend on shared libraries, but programs linked with such libtool
7599 *** libraries will work regardless of this problem. Nevertheless, you
7600 *** may want to report the problem to your system manager and/or to
7601 *** bug-libtool@gnu.org
7611 MAGIC_CMD="$lt_save_MAGIC_CMD"
7616 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7617 if test -n "$MAGIC_CMD"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7619 $as_echo "$MAGIC_CMD" >&6; }
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7629 if test -z "$lt_cv_path_MAGIC_CMD"; then
7630 if test -n "$ac_tool_prefix"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7632 $as_echo_n "checking for file... " >&6; }
7633 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7634 $as_echo_n "(cached) " >&6
7638 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7641 lt_save_MAGIC_CMD="$MAGIC_CMD"
7642 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7643 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7644 for ac_dir in $ac_dummy; do
7646 test -z "$ac_dir" && ac_dir=.
7647 if test -f $ac_dir/file; then
7648 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7649 if test -n "$file_magic_test_file"; then
7650 case $deplibs_check_method in
7652 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7654 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7655 $EGREP "$file_magic_regex" > /dev/null; then
7660 *** Warning: the command libtool uses to detect shared libraries,
7661 *** $file_magic_cmd, produces output that libtool cannot recognize.
7662 *** The result is that libtool may fail to recognize shared libraries
7663 *** as such. This will affect the creation of libtool libraries that
7664 *** depend on shared libraries, but programs linked with such libtool
7665 *** libraries will work regardless of this problem. Nevertheless, you
7666 *** may want to report the problem to your system manager and/or to
7667 *** bug-libtool@gnu.org
7677 MAGIC_CMD="$lt_save_MAGIC_CMD"
7682 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7683 if test -n "$MAGIC_CMD"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7685 $as_echo "$MAGIC_CMD" >&6; }
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7701 # Use C for the default configuration in the libtool script
7705 ac_cpp='$CPP $CPPFLAGS'
7706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7711 # Source file extension for C test sources.
7714 # Object file extension for compiled C test sources.
7718 # Code to be used in simple compile tests
7719 lt_simple_compile_test_code="int some_variable = 0;"
7721 # Code to be used in simple link tests
7722 lt_simple_link_test_code='int main(){return(0);}'
7730 # If no C compiler was specified, use CC.
7733 # If no C compiler flags were specified, use CFLAGS.
7734 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7736 # Allow CC to be a program name with arguments.
7739 # Save the default compiler, since it gets overwritten when the other
7740 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7741 compiler_DEFAULT=$CC
7743 # save warnings/boilerplate of simple test code
7744 ac_outfile=conftest.$ac_objext
7745 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7746 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7747 _lt_compiler_boilerplate=`cat conftest.err`
7750 ac_outfile=conftest.$ac_objext
7751 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7752 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7753 _lt_linker_boilerplate=`cat conftest.err`
7757 if test -n "$compiler"; then
7759 lt_prog_compiler_no_builtin_flag=
7761 if test "$GCC" = yes; then
7762 case $cc_basename in
7764 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7766 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7770 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7771 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7772 $as_echo_n "(cached) " >&6
7774 lt_cv_prog_compiler_rtti_exceptions=no
7775 ac_outfile=conftest.$ac_objext
7776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7777 lt_compiler_flag="-fno-rtti -fno-exceptions"
7778 # Insert the option either (1) after the last *FLAGS variable, or
7779 # (2) before a word containing "conftest.", or (3) at the end.
7780 # Note that $ac_compile itself does not contain backslashes and begins
7781 # with a dollar sign (not a hyphen), so the echo should work correctly.
7782 # The option is referenced via a variable to avoid confusing sed.
7783 lt_compile=`echo "$ac_compile" | $SED \
7784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7786 -e 's:$: $lt_compiler_flag:'`
7787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7788 (eval "$lt_compile" 2>conftest.err)
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 if (exit $ac_status) && test -s "$ac_outfile"; then
7793 # The compiler can only warn and ignore the option if not recognized
7794 # So say no if there are warnings other than the usual output.
7795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7798 lt_cv_prog_compiler_rtti_exceptions=yes
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7805 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7807 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7808 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7820 lt_prog_compiler_wl=
7821 lt_prog_compiler_pic=
7822 lt_prog_compiler_static=
7825 if test "$GCC" = yes; then
7826 lt_prog_compiler_wl='-Wl,'
7827 lt_prog_compiler_static='-static'
7831 # All AIX code is PIC.
7832 if test "$host_cpu" = ia64; then
7833 # AIX 5 now supports IA64 processor
7834 lt_prog_compiler_static='-Bstatic'
7841 # see comment about AmigaOS4 .so support
7842 lt_prog_compiler_pic='-fPIC'
7845 # FIXME: we need at least 68020 code to build shared libraries, but
7846 # adding the `-m68020' flag to GCC prevents building anything better,
7848 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7853 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7854 # PIC is the default for these OSes.
7857 mingw* | cygwin* | pw32* | os2* | cegcc*)
7858 # This hack is so that the source file can tell whether it is being
7859 # built for inclusion in a dll (and should export symbols for example).
7860 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7861 # (--disable-auto-import) libraries
7862 lt_prog_compiler_pic='-DDLL_EXPORT'
7865 darwin* | rhapsody*)
7866 # PIC is the default on this platform
7867 # Common symbols not allowed in MH_DYLIB files
7868 lt_prog_compiler_pic='-fno-common'
7872 # PIC is the default for Haiku.
7873 # The "-static" flag exists, but is broken.
7874 lt_prog_compiler_static=
7878 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7879 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7880 # sets the default TLS model and affects inlining.
7886 lt_prog_compiler_pic='-fPIC'
7892 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7893 # Instead, we relocate shared libraries at runtime.
7897 # Just because we use GCC doesn't mean we suddenly get shared libraries
7898 # on systems that don't support them.
7899 lt_prog_compiler_can_build_shared=no
7904 # QNX uses GNU C++, but need to define -shared option too, otherwise
7906 lt_prog_compiler_pic='-fPIC -shared'
7910 if test -d /usr/nec; then
7911 lt_prog_compiler_pic=-Kconform_pic
7916 lt_prog_compiler_pic='-fPIC'
7920 case $cc_basename in
7921 nvcc*) # Cuda Compiler Driver 2.2
7922 lt_prog_compiler_wl='-Xlinker '
7923 if test -n "$lt_prog_compiler_pic"; then
7924 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7929 # PORTME Check for flag to pass linker flags through the system compiler.
7932 lt_prog_compiler_wl='-Wl,'
7933 if test "$host_cpu" = ia64; then
7934 # AIX 5 now supports IA64 processor
7935 lt_prog_compiler_static='-Bstatic'
7937 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7941 mingw* | cygwin* | pw32* | os2* | cegcc*)
7942 # This hack is so that the source file can tell whether it is being
7943 # built for inclusion in a dll (and should export symbols for example).
7944 lt_prog_compiler_pic='-DDLL_EXPORT'
7947 hpux9* | hpux10* | hpux11*)
7948 lt_prog_compiler_wl='-Wl,'
7949 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7956 lt_prog_compiler_pic='+Z'
7959 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7960 lt_prog_compiler_static='${wl}-a ${wl}archive'
7963 irix5* | irix6* | nonstopux*)
7964 lt_prog_compiler_wl='-Wl,'
7965 # PIC (with -KPIC) is the default.
7966 lt_prog_compiler_static='-non_shared'
7969 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7970 case $cc_basename in
7971 # old Intel for x86_64 which still supported -KPIC.
7973 lt_prog_compiler_wl='-Wl,'
7974 lt_prog_compiler_pic='-KPIC'
7975 lt_prog_compiler_static='-static'
7977 # icc used to be incompatible with GCC.
7978 # ICC 10 doesn't accept -KPIC any more.
7980 lt_prog_compiler_wl='-Wl,'
7981 lt_prog_compiler_pic='-fPIC'
7982 lt_prog_compiler_static='-static'
7984 # Lahey Fortran 8.1.
7986 lt_prog_compiler_wl='-Wl,'
7987 lt_prog_compiler_pic='--shared'
7988 lt_prog_compiler_static='--static'
7991 # NAG Fortran compiler
7992 lt_prog_compiler_wl='-Wl,-Wl,,'
7993 lt_prog_compiler_pic='-PIC'
7994 lt_prog_compiler_static='-Bstatic'
7996 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7997 # Portland Group compilers (*not* the Pentium gcc compiler,
7998 # which looks to be a dead project)
7999 lt_prog_compiler_wl='-Wl,'
8000 lt_prog_compiler_pic='-fpic'
8001 lt_prog_compiler_static='-Bstatic'
8004 lt_prog_compiler_wl='-Wl,'
8005 # All Alpha code is PIC.
8006 lt_prog_compiler_static='-non_shared'
8008 xl* | bgxl* | bgf* | mpixl*)
8009 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8010 lt_prog_compiler_wl='-Wl,'
8011 lt_prog_compiler_pic='-qpic'
8012 lt_prog_compiler_static='-qstaticlink'
8015 case `$CC -V 2>&1 | sed 5q` in
8016 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8017 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8018 lt_prog_compiler_pic='-KPIC'
8019 lt_prog_compiler_static='-Bstatic'
8020 lt_prog_compiler_wl=''
8022 *Sun\ F* | *Sun*Fortran*)
8023 lt_prog_compiler_pic='-KPIC'
8024 lt_prog_compiler_static='-Bstatic'
8025 lt_prog_compiler_wl='-Qoption ld '
8029 lt_prog_compiler_pic='-KPIC'
8030 lt_prog_compiler_static='-Bstatic'
8031 lt_prog_compiler_wl='-Wl,'
8033 *Intel*\ [CF]*Compiler*)
8034 lt_prog_compiler_wl='-Wl,'
8035 lt_prog_compiler_pic='-fPIC'
8036 lt_prog_compiler_static='-static'
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='-fpic'
8041 lt_prog_compiler_static='-Bstatic'
8049 lt_prog_compiler_pic='-KPIC'
8050 lt_prog_compiler_static='-Bstatic'
8054 # QNX uses GNU C++, but need to define -shared option too, otherwise
8056 lt_prog_compiler_pic='-fPIC -shared'
8059 osf3* | osf4* | osf5*)
8060 lt_prog_compiler_wl='-Wl,'
8061 # All OSF/1 code is PIC.
8062 lt_prog_compiler_static='-non_shared'
8066 lt_prog_compiler_static='-non_shared'
8070 lt_prog_compiler_pic='-KPIC'
8071 lt_prog_compiler_static='-Bstatic'
8072 case $cc_basename in
8073 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8074 lt_prog_compiler_wl='-Qoption ld ';;
8076 lt_prog_compiler_wl='-Wl,';;
8081 lt_prog_compiler_wl='-Qoption ld '
8082 lt_prog_compiler_pic='-PIC'
8083 lt_prog_compiler_static='-Bstatic'
8086 sysv4 | sysv4.2uw2* | sysv4.3*)
8087 lt_prog_compiler_wl='-Wl,'
8088 lt_prog_compiler_pic='-KPIC'
8089 lt_prog_compiler_static='-Bstatic'
8093 if test -d /usr/nec ;then
8094 lt_prog_compiler_pic='-Kconform_pic'
8095 lt_prog_compiler_static='-Bstatic'
8099 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8100 lt_prog_compiler_wl='-Wl,'
8101 lt_prog_compiler_pic='-KPIC'
8102 lt_prog_compiler_static='-Bstatic'
8106 lt_prog_compiler_wl='-Wl,'
8107 lt_prog_compiler_can_build_shared=no
8111 lt_prog_compiler_pic='-pic'
8112 lt_prog_compiler_static='-Bstatic'
8116 lt_prog_compiler_can_build_shared=no
8122 # For platforms which do not support PIC, -DPIC is meaningless:
8124 lt_prog_compiler_pic=
8127 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8132 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8133 if ${lt_cv_prog_compiler_pic+:} false; then :
8134 $as_echo_n "(cached) " >&6
8136 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8139 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8140 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8143 # Check to make sure the PIC flag actually works.
8145 if test -n "$lt_prog_compiler_pic"; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8147 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8148 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8149 $as_echo_n "(cached) " >&6
8151 lt_cv_prog_compiler_pic_works=no
8152 ac_outfile=conftest.$ac_objext
8153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8154 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8155 # Insert the option either (1) after the last *FLAGS variable, or
8156 # (2) before a word containing "conftest.", or (3) at the end.
8157 # Note that $ac_compile itself does not contain backslashes and begins
8158 # with a dollar sign (not a hyphen), so the echo should work correctly.
8159 # The option is referenced via a variable to avoid confusing sed.
8160 lt_compile=`echo "$ac_compile" | $SED \
8161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8163 -e 's:$: $lt_compiler_flag:'`
8164 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8165 (eval "$lt_compile" 2>conftest.err)
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 if (exit $ac_status) && test -s "$ac_outfile"; then
8170 # The compiler can only warn and ignore the option if not recognized
8171 # So say no if there are warnings other than the usual output.
8172 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8175 lt_cv_prog_compiler_pic_works=yes
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8182 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8184 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8185 case $lt_prog_compiler_pic in
8187 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8190 lt_prog_compiler_pic=
8191 lt_prog_compiler_can_build_shared=no
8207 # Check to make sure the static flag actually works.
8209 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8211 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8212 if ${lt_cv_prog_compiler_static_works+:} false; then :
8213 $as_echo_n "(cached) " >&6
8215 lt_cv_prog_compiler_static_works=no
8216 save_LDFLAGS="$LDFLAGS"
8217 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8218 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8219 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8220 # The linker can only warn and ignore the option if not recognized
8221 # So say no if there are warnings
8222 if test -s conftest.err; then
8223 # Append any errors to the config.log.
8224 cat conftest.err 1>&5
8225 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8227 if diff conftest.exp conftest.er2 >/dev/null; then
8228 lt_cv_prog_compiler_static_works=yes
8231 lt_cv_prog_compiler_static_works=yes
8235 LDFLAGS="$save_LDFLAGS"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8239 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8241 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8244 lt_prog_compiler_static=
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8254 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8255 if ${lt_cv_prog_compiler_c_o+:} false; then :
8256 $as_echo_n "(cached) " >&6
8258 lt_cv_prog_compiler_c_o=no
8259 $RM -r conftest 2>/dev/null
8263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8265 lt_compiler_flag="-o out/conftest2.$ac_objext"
8266 # Insert the option either (1) after the last *FLAGS variable, or
8267 # (2) before a word containing "conftest.", or (3) at the end.
8268 # Note that $ac_compile itself does not contain backslashes and begins
8269 # with a dollar sign (not a hyphen), so the echo should work correctly.
8270 lt_compile=`echo "$ac_compile" | $SED \
8271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8273 -e 's:$: $lt_compiler_flag:'`
8274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8275 (eval "$lt_compile" 2>out/conftest.err)
8277 cat out/conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8281 # The compiler can only warn and ignore the option if not recognized
8282 # So say no if there are warnings
8283 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8286 lt_cv_prog_compiler_c_o=yes
8291 # SGI C++ compiler will create directory out/ii_files/ for
8292 # template instantiation
8293 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8294 $RM out/* && rmdir out
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8301 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8309 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8310 if ${lt_cv_prog_compiler_c_o+:} false; then :
8311 $as_echo_n "(cached) " >&6
8313 lt_cv_prog_compiler_c_o=no
8314 $RM -r conftest 2>/dev/null
8318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8320 lt_compiler_flag="-o out/conftest2.$ac_objext"
8321 # Insert the option either (1) after the last *FLAGS variable, or
8322 # (2) before a word containing "conftest.", or (3) at the end.
8323 # Note that $ac_compile itself does not contain backslashes and begins
8324 # with a dollar sign (not a hyphen), so the echo should work correctly.
8325 lt_compile=`echo "$ac_compile" | $SED \
8326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8328 -e 's:$: $lt_compiler_flag:'`
8329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8330 (eval "$lt_compile" 2>out/conftest.err)
8332 cat out/conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8336 # The compiler can only warn and ignore the option if not recognized
8337 # So say no if there are warnings
8338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8339 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8340 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8341 lt_cv_prog_compiler_c_o=yes
8346 # SGI C++ compiler will create directory out/ii_files/ for
8347 # template instantiation
8348 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8349 $RM out/* && rmdir out
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8356 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8361 hard_links="nottested"
8362 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8363 # do not overwrite the value of need_locks provided by the user
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8365 $as_echo_n "checking if we can lock with hard links... " >&6; }
8368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8370 ln conftest.a conftest.b 2>&5 || hard_links=no
8371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8373 $as_echo "$hard_links" >&6; }
8374 if test "$hard_links" = no; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8376 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8389 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8392 allow_undefined_flag=
8393 always_export_symbols=no
8395 archive_expsym_cmds=
8396 compiler_needs_object=no
8397 enable_shared_with_static_runtimes=no
8398 export_dynamic_flag_spec=
8399 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8400 hardcode_automatic=no
8402 hardcode_direct_absolute=no
8403 hardcode_libdir_flag_spec=
8404 hardcode_libdir_separator=
8406 hardcode_shlibpath_var=unsupported
8408 link_all_deplibs=unknown
8411 old_archive_from_new_cmds=
8412 old_archive_from_expsyms_cmds=
8413 thread_safe_flag_spec=
8414 whole_archive_flag_spec=
8415 # include_expsyms should be a list of space-separated symbols to be *always*
8416 # included in the symbol list
8418 # exclude_expsyms can be an extended regexp of symbols to exclude
8419 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8420 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8421 # as well as any symbol that contains `d'.
8422 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8423 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8424 # platforms (ab)use it in PIC code, but their linkers get confused if
8425 # the symbol is explicitly referenced. Since portable code cannot
8426 # rely on this symbol name, it's probably fine to never include it in
8427 # preloaded symbol tables.
8428 # Exclude shared library initialization/finalization symbols.
8429 extract_expsyms_cmds=
8432 cygwin* | mingw* | pw32* | cegcc*)
8433 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8434 # When not using gcc, we currently assume that we are using
8435 # Microsoft Visual C++.
8436 if test "$GCC" != yes; then
8441 # we just hope/assume this is gcc and not c89 (= MSVC++)
8451 # On some targets, GNU ld is compatible enough with the native linker
8452 # that we're better off using the native interface for both.
8453 lt_use_gnu_ld_interface=no
8454 if test "$with_gnu_ld" = yes; then
8457 # The AIX port of GNU ld has always aspired to compatibility
8458 # with the native linker. However, as the warning in the GNU ld
8459 # block says, versions before 2.19.5* couldn't really create working
8460 # shared libraries, regardless of the interface used.
8461 case `$LD -v 2>&1` in
8462 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8463 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8464 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8466 lt_use_gnu_ld_interface=yes
8471 lt_use_gnu_ld_interface=yes
8476 if test "$lt_use_gnu_ld_interface" = yes; then
8477 # If archive_cmds runs LD, not CC, wlarc should be empty
8480 # Set some defaults for GNU ld with shared library support. These
8481 # are reset later if shared libraries are not supported. Putting them
8482 # here allows them to be overridden if necessary.
8483 runpath_var=LD_RUN_PATH
8484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8485 export_dynamic_flag_spec='${wl}--export-dynamic'
8486 # ancient GNU ld didn't support --whole-archive et. al.
8487 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8488 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8490 whole_archive_flag_spec=
8492 supports_anon_versioning=no
8493 case `$LD -v 2>&1` in
8494 *GNU\ gold*) supports_anon_versioning=yes ;;
8495 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8496 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8497 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8498 *\ 2.11.*) ;; # other 2.11 versions
8499 *) supports_anon_versioning=yes ;;
8502 # See if GNU ld supports shared libraries.
8505 # On AIX/PPC, the GNU linker is very broken
8506 if test "$host_cpu" != ia64; then
8510 *** Warning: the GNU linker, at least up to release 2.19, is reported
8511 *** to be unable to reliably create shared libraries on AIX.
8512 *** Therefore, libtool is disabling shared libraries support. If you
8513 *** really care for shared libraries, you may want to install binutils
8514 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8515 *** You will then need to restart the configuration process.
8524 # see comment about AmigaOS4 .so support
8525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8526 archive_expsym_cmds=''
8529 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)'
8530 hardcode_libdir_flag_spec='-L$libdir'
8531 hardcode_minus_L=yes
8537 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8538 allow_undefined_flag=unsupported
8539 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8540 # support --undefined. This deserves some investigation. FIXME
8541 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8547 cygwin* | mingw* | pw32* | cegcc*)
8548 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8549 # as there is no search path for DLLs.
8550 hardcode_libdir_flag_spec='-L$libdir'
8551 export_dynamic_flag_spec='${wl}--export-all-symbols'
8552 allow_undefined_flag=unsupported
8553 always_export_symbols=no
8554 enable_shared_with_static_runtimes=yes
8555 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'
8556 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8558 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8560 # If the export-symbols file already is a .def file (1st line
8561 # is EXPORTS), use it as is; otherwise, prepend...
8562 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8563 cp $export_symbols $output_objdir/$soname.def;
8565 echo EXPORTS > $output_objdir/$soname.def;
8566 cat $export_symbols >> $output_objdir/$soname.def;
8568 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8576 link_all_deplibs=yes
8581 hardcode_shlibpath_var=no
8582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8583 export_dynamic_flag_spec='${wl}-E'
8584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8585 # Instead, shared libraries are loaded at an image base (0x10000000 by
8586 # default) and relocated if they conflict, which is a slow very memory
8587 # consuming and fragmenting process. To avoid this, we pick a random,
8588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8590 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8591 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'
8594 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8596 if test "$host_os" = linux-dietlibc; then
8597 case $cc_basename in
8598 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8601 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8602 && test "$tmp_diet" = no
8604 tmp_addflag=' $pic_flag'
8605 tmp_sharedflag='-shared'
8606 case $cc_basename,$host_cpu in
8607 pgcc*) # Portland Group C compiler
8608 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'
8609 tmp_addflag=' $pic_flag'
8611 pgf77* | pgf90* | pgf95* | pgfortran*)
8612 # Portland Group f77 and f90 compilers
8613 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'
8614 tmp_addflag=' $pic_flag -Mnomain' ;;
8615 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8616 tmp_addflag=' -i_dynamic' ;;
8617 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8618 tmp_addflag=' -i_dynamic -nofor_main' ;;
8619 ifc* | ifort*) # Intel Fortran compiler
8620 tmp_addflag=' -nofor_main' ;;
8621 lf95*) # Lahey Fortran 8.1
8622 whole_archive_flag_spec=
8623 tmp_sharedflag='--shared' ;;
8624 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8625 tmp_sharedflag='-qmkshrobj'
8627 nvcc*) # Cuda Compiler Driver 2.2
8628 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'
8629 compiler_needs_object=yes
8632 case `$CC -V 2>&1 | sed 5q` in
8633 *Sun\ C*) # Sun C 5.9
8634 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'
8635 compiler_needs_object=yes
8636 tmp_sharedflag='-G' ;;
8637 *Sun\ F*) # Sun Fortran 8.3
8638 tmp_sharedflag='-G' ;;
8640 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642 if test "x$supports_anon_versioning" = xyes; then
8643 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8645 echo "local: *; };" >> $output_objdir/$libname.ver~
8646 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8649 case $cc_basename in
8650 xlf* | bgf* | bgxlf* | mpixlf*)
8651 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8652 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8654 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8655 if test "x$supports_anon_versioning" = xyes; then
8656 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8657 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8658 echo "local: *; };" >> $output_objdir/$libname.ver~
8659 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8669 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8670 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8673 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8674 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8679 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8683 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8684 *** create shared libraries on Solaris systems. Therefore, libtool
8685 *** is disabling shared libraries support. We urge you to upgrade GNU
8686 *** binutils to release 2.9.1 or newer. Another option is to modify
8687 *** your PATH or compiler configuration so that the native linker is
8688 *** used, and then restart.
8691 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8692 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8700 case `$LD -v 2>&1` in
8701 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8705 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8706 *** reliably create shared libraries on SCO systems. Therefore, libtool
8707 *** is disabling shared libraries support. We urge you to upgrade GNU
8708 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8709 *** your PATH or compiler configuration so that the native linker is
8710 *** used, and then restart.
8715 # For security reasons, it is highly recommended that you always
8716 # use absolute paths for naming shared libraries, and exclude the
8717 # DT_RUNPATH tag from executables and libraries. But doing so
8718 # requires that you compile everything twice, which is a pain.
8719 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8731 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8734 hardcode_shlibpath_var=no
8738 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8739 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8740 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8747 if test "$ld_shlibs" = no; then
8749 hardcode_libdir_flag_spec=
8750 export_dynamic_flag_spec=
8751 whole_archive_flag_spec=
8754 # PORTME fill in a description of your system's linker (not GNU ld)
8757 allow_undefined_flag=unsupported
8758 always_export_symbols=yes
8759 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'
8760 # Note: this linker hardcodes the directories in LIBPATH if there
8761 # are no directories specified by -L.
8762 hardcode_minus_L=yes
8763 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8764 # Neither direct hardcoding nor static linking is supported with a
8766 hardcode_direct=unsupported
8771 if test "$host_cpu" = ia64; then
8772 # On IA64, the linker does run time linking by default, so we don't
8773 # have to do anything special.
8774 aix_use_runtimelinking=no
8775 exp_sym_flag='-Bexport'
8778 # If we're using GNU nm, then we don't want the "-C" option.
8779 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8780 # Also, AIX nm treats weak defined symbols like other global
8781 # defined symbols, whereas GNU nm marks them as "W".
8782 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8783 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'
8785 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'
8787 aix_use_runtimelinking=no
8789 # Test if we are trying to use run time linking or normal
8790 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8791 # need to do runtime linking.
8792 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8793 for ld_flag in $LDFLAGS; do
8794 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8795 aix_use_runtimelinking=yes
8802 exp_sym_flag='-bexport'
8803 no_entry_flag='-bnoentry'
8806 # When large executables or shared objects are built, AIX ld can
8807 # have problems creating the table of contents. If linking a library
8808 # or program results in "error TOC overflow" add -mminimal-toc to
8809 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8810 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8814 hardcode_direct_absolute=yes
8815 hardcode_libdir_separator=':'
8816 link_all_deplibs=yes
8817 file_list_spec='${wl}-f,'
8819 if test "$GCC" = yes; then
8820 case $host_os in aix4.[012]|aix4.[012].*)
8821 # We only want to do this on AIX 4.2 and lower, the check
8822 # below for broken collect2 doesn't work under 4.3+
8823 collect2name=`${CC} -print-prog-name=collect2`
8824 if test -f "$collect2name" &&
8825 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8827 # We have reworked collect2
8830 # We have old collect2
8831 hardcode_direct=unsupported
8832 # It fails to find uninstalled libraries when the uninstalled
8833 # path is not listed in the libpath. Setting hardcode_minus_L
8834 # to unsupported forces relinking
8835 hardcode_minus_L=yes
8836 hardcode_libdir_flag_spec='-L$libdir'
8837 hardcode_libdir_separator=
8841 shared_flag='-shared'
8842 if test "$aix_use_runtimelinking" = yes; then
8843 shared_flag="$shared_flag "'${wl}-G'
8847 if test "$host_cpu" = ia64; then
8848 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8849 # chokes on -Wl,-G. The following line is correct:
8852 if test "$aix_use_runtimelinking" = yes; then
8853 shared_flag='${wl}-G'
8855 shared_flag='${wl}-bM:SRE'
8860 export_dynamic_flag_spec='${wl}-bexpall'
8861 # It seems that -bexpall does not export symbols beginning with
8862 # underscore (_), so it is better to generate a list of symbols to export.
8863 always_export_symbols=yes
8864 if test "$aix_use_runtimelinking" = yes; then
8865 # Warning - without using the other runtime loading flags (-brtl),
8866 # -berok will link without error, but may produce a broken library.
8867 allow_undefined_flag='-berok'
8868 # Determine the default libpath from the value encoded in an
8870 if test "${lt_cv_aix_libpath+set}" = set; then
8871 aix_libpath=$lt_cv_aix_libpath
8873 if ${lt_cv_aix_libpath_+:} false; then :
8874 $as_echo_n "(cached) " >&6
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8887 if ac_fn_c_try_link "$LINENO"; then :
8889 lt_aix_libpath_sed='
8890 /Import File Strings/,/^$/ {
8892 s/^0 *\([^ ]*\) *$/\1/
8896 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8897 # Check for a 64-bit object if we didn't find anything.
8898 if test -z "$lt_cv_aix_libpath_"; then
8899 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8902 rm -f core conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8904 if test -z "$lt_cv_aix_libpath_"; then
8905 lt_cv_aix_libpath_="/usr/lib:/lib"
8910 aix_libpath=$lt_cv_aix_libpath_
8913 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8914 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"
8916 if test "$host_cpu" = ia64; then
8917 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8918 allow_undefined_flag="-z nodefs"
8919 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"
8921 # Determine the default libpath from the value encoded in an
8923 if test "${lt_cv_aix_libpath+set}" = set; then
8924 aix_libpath=$lt_cv_aix_libpath
8926 if ${lt_cv_aix_libpath_+:} false; then :
8927 $as_echo_n "(cached) " >&6
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8940 if ac_fn_c_try_link "$LINENO"; then :
8942 lt_aix_libpath_sed='
8943 /Import File Strings/,/^$/ {
8945 s/^0 *\([^ ]*\) *$/\1/
8949 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8950 # Check for a 64-bit object if we didn't find anything.
8951 if test -z "$lt_cv_aix_libpath_"; then
8952 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8955 rm -f core conftest.err conftest.$ac_objext \
8956 conftest$ac_exeext conftest.$ac_ext
8957 if test -z "$lt_cv_aix_libpath_"; then
8958 lt_cv_aix_libpath_="/usr/lib:/lib"
8963 aix_libpath=$lt_cv_aix_libpath_
8966 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8967 # Warning - without using the other run time loading flags,
8968 # -berok will link without error, but may produce a broken library.
8969 no_undefined_flag=' ${wl}-bernotok'
8970 allow_undefined_flag=' ${wl}-berok'
8971 if test "$with_gnu_ld" = yes; then
8972 # We only use this code for GNU lds that support --whole-archive.
8973 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8975 # Exported symbols can be pulled into shared objects from archives
8976 whole_archive_flag_spec='$convenience'
8978 archive_cmds_need_lc=yes
8979 # This is similar to how AIX traditionally builds its shared libraries.
8980 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'
8988 # see comment about AmigaOS4 .so support
8989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8990 archive_expsym_cmds=''
8993 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)'
8994 hardcode_libdir_flag_spec='-L$libdir'
8995 hardcode_minus_L=yes
9001 export_dynamic_flag_spec=-rdynamic
9004 cygwin* | mingw* | pw32* | cegcc*)
9005 # When not using gcc, we currently assume that we are using
9006 # Microsoft Visual C++.
9007 # hardcode_libdir_flag_spec is actually meaningless, as there is
9008 # no search path for DLLs.
9009 case $cc_basename in
9012 hardcode_libdir_flag_spec=' '
9013 allow_undefined_flag=unsupported
9014 always_export_symbols=yes
9016 # Tell ltmain to make .lib files, not .a files.
9018 # Tell ltmain to make .dll files, not .so files.
9020 # FIXME: Setting linknames here is a bad hack.
9021 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9022 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9023 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9025 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9027 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9029 # The linker will not automatically build a static lib if we build a DLL.
9030 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9031 enable_shared_with_static_runtimes=yes
9032 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9033 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9035 old_postinstall_cmds='chmod 644 $oldlib'
9036 postlink_cmds='lt_outputfile="@OUTPUT@"~
9037 lt_tool_outputfile="@TOOL_OUTPUT@"~
9038 case $lt_outputfile in
9041 lt_outputfile="$lt_outputfile.exe"
9042 lt_tool_outputfile="$lt_tool_outputfile.exe"
9045 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9046 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9047 $RM "$lt_outputfile.manifest";
9051 # Assume MSVC wrapper
9052 hardcode_libdir_flag_spec=' '
9053 allow_undefined_flag=unsupported
9054 # Tell ltmain to make .lib files, not .a files.
9056 # Tell ltmain to make .dll files, not .so files.
9058 # FIXME: Setting linknames here is a bad hack.
9059 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9060 # The linker will automatically build a .lib file if we build a DLL.
9061 old_archive_from_new_cmds='true'
9062 # FIXME: Should let the user specify the lib program.
9063 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9064 enable_shared_with_static_runtimes=yes
9069 darwin* | rhapsody*)
9072 archive_cmds_need_lc=no
9074 hardcode_automatic=yes
9075 hardcode_shlibpath_var=unsupported
9076 if test "$lt_cv_ld_force_load" = "yes"; then
9077 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\"`'
9080 whole_archive_flag_spec=''
9082 link_all_deplibs=yes
9083 allow_undefined_flag="$_lt_dar_allow_undefined"
9084 case $cc_basename in
9085 ifort*) _lt_dar_can_shared=yes ;;
9086 *) _lt_dar_can_shared=$GCC ;;
9088 if test "$_lt_dar_can_shared" = "yes"; then
9089 output_verbose_link_cmd=func_echo_all
9090 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9091 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9092 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}"
9093 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}"
9102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9103 hardcode_libdir_flag_spec='-L$libdir'
9104 hardcode_shlibpath_var=no
9107 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9108 # support. Future versions do this automatically, but an explicit c++rt0.o
9109 # does not break anything, and helps significantly (at the cost of a little
9112 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9113 hardcode_libdir_flag_spec='-R$libdir'
9115 hardcode_shlibpath_var=no
9118 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9122 hardcode_minus_L=yes
9123 hardcode_shlibpath_var=no
9126 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9127 freebsd* | dragonfly*)
9128 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9129 hardcode_libdir_flag_spec='-R$libdir'
9131 hardcode_shlibpath_var=no
9135 if test "$GCC" = yes; then
9136 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'
9138 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'
9140 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9141 hardcode_libdir_separator=:
9144 # hardcode_minus_L: Not really in the search PATH,
9145 # but as the default location of the library.
9146 hardcode_minus_L=yes
9147 export_dynamic_flag_spec='${wl}-E'
9151 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9152 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9154 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9156 if test "$with_gnu_ld" = no; then
9157 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9158 hardcode_libdir_separator=:
9160 hardcode_direct_absolute=yes
9161 export_dynamic_flag_spec='${wl}-E'
9162 # hardcode_minus_L: Not really in the search PATH,
9163 # but as the default location of the library.
9164 hardcode_minus_L=yes
9169 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9172 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9175 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9178 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9184 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9187 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9191 # Older versions of the 11.00 compiler do not understand -b yet
9192 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9194 $as_echo_n "checking if $CC understands -b... " >&6; }
9195 if ${lt_cv_prog_compiler__b+:} false; then :
9196 $as_echo_n "(cached) " >&6
9198 lt_cv_prog_compiler__b=no
9199 save_LDFLAGS="$LDFLAGS"
9200 LDFLAGS="$LDFLAGS -b"
9201 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9202 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9203 # The linker can only warn and ignore the option if not recognized
9204 # So say no if there are warnings
9205 if test -s conftest.err; then
9206 # Append any errors to the config.log.
9207 cat conftest.err 1>&5
9208 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9210 if diff conftest.exp conftest.er2 >/dev/null; then
9211 lt_cv_prog_compiler__b=yes
9214 lt_cv_prog_compiler__b=yes
9218 LDFLAGS="$save_LDFLAGS"
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9222 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9224 if test x"$lt_cv_prog_compiler__b" = xyes; then
9225 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9227 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9233 if test "$with_gnu_ld" = no; then
9234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9235 hardcode_libdir_separator=:
9240 hardcode_shlibpath_var=no
9244 hardcode_direct_absolute=yes
9245 export_dynamic_flag_spec='${wl}-E'
9247 # hardcode_minus_L: Not really in the search PATH,
9248 # but as the default location of the library.
9249 hardcode_minus_L=yes
9255 irix5* | irix6* | nonstopux*)
9256 if test "$GCC" = yes; then
9257 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'
9258 # Try to use the -exported_symbol ld option, if it does not
9259 # work, assume that -exports_file does not work either and
9260 # implicitly export all symbols.
9261 # This should be the same for all languages, so no per-tag cache variable.
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9263 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9264 if ${lt_cv_irix_exported_symbol+:} false; then :
9265 $as_echo_n "(cached) " >&6
9267 save_LDFLAGS="$LDFLAGS"
9268 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9271 int foo (void) { return 0; }
9273 if ac_fn_c_try_link "$LINENO"; then :
9274 lt_cv_irix_exported_symbol=yes
9276 lt_cv_irix_exported_symbol=no
9278 rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280 LDFLAGS="$save_LDFLAGS"
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9283 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9284 if test "$lt_cv_irix_exported_symbol" = yes; then
9285 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'
9288 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'
9289 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'
9291 archive_cmds_need_lc='no'
9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293 hardcode_libdir_separator=:
9295 link_all_deplibs=yes
9299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9302 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9304 hardcode_libdir_flag_spec='-R$libdir'
9306 hardcode_shlibpath_var=no
9310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9313 hardcode_libdir_separator=:
9314 hardcode_shlibpath_var=no
9321 if test -f /usr/libexec/ld.so; then
9323 hardcode_shlibpath_var=no
9324 hardcode_direct_absolute=yes
9325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9327 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9328 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9329 export_dynamic_flag_spec='${wl}-E'
9332 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9334 hardcode_libdir_flag_spec='-R$libdir'
9337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9338 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9348 hardcode_libdir_flag_spec='-L$libdir'
9349 hardcode_minus_L=yes
9350 allow_undefined_flag=unsupported
9351 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'
9352 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9356 if test "$GCC" = yes; then
9357 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9358 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'
9360 allow_undefined_flag=' -expect_unresolved \*'
9361 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'
9363 archive_cmds_need_lc='no'
9364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9365 hardcode_libdir_separator=:
9368 osf4* | osf5*) # as osf3* with the addition of -msym flag
9369 if test "$GCC" = yes; then
9370 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9371 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'
9372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9374 allow_undefined_flag=' -expect_unresolved \*'
9375 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'
9376 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~
9377 $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'
9379 # Both c and cxx compiler support -rpath directly
9380 hardcode_libdir_flag_spec='-rpath $libdir'
9382 archive_cmds_need_lc='no'
9383 hardcode_libdir_separator=:
9387 no_undefined_flag=' -z defs'
9388 if test "$GCC" = yes; then
9390 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9392 $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'
9394 case `$CC -V 2>&1` in
9397 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9403 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9404 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9405 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9409 hardcode_libdir_flag_spec='-R$libdir'
9410 hardcode_shlibpath_var=no
9412 solaris2.[0-5] | solaris2.[0-5].*) ;;
9414 # The compiler driver will combine and reorder linker options,
9415 # but understands `-z linker_flag'. GCC discards it without `$wl',
9416 # but is careful enough not to reorder.
9417 # Supported since Solaris 2.6 (maybe 2.5.1?)
9418 if test "$GCC" = yes; then
9419 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9421 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9425 link_all_deplibs=yes
9429 if test "x$host_vendor" = xsequent; then
9430 # Use $CC to link under sequent, because it throws in some extra .o
9431 # files that make .init and .fini sections work.
9432 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9434 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9436 hardcode_libdir_flag_spec='-L$libdir'
9438 hardcode_minus_L=yes
9439 hardcode_shlibpath_var=no
9443 case $host_vendor in
9445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_direct=yes # is this really true???
9449 ## LD is ld it makes a PLAMLIB
9450 ## CC just makes a GrossModule.
9451 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9452 reload_cmds='$CC -r -o $output$reload_objs'
9456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9457 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9460 runpath_var='LD_RUN_PATH'
9461 hardcode_shlibpath_var=no
9465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9466 hardcode_shlibpath_var=no
9467 export_dynamic_flag_spec='-Bexport'
9471 if test -d /usr/nec; then
9472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 hardcode_shlibpath_var=no
9474 runpath_var=LD_RUN_PATH
9475 hardcode_runpath_var=yes
9480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9481 no_undefined_flag='${wl}-z,text'
9482 archive_cmds_need_lc=no
9483 hardcode_shlibpath_var=no
9484 runpath_var='LD_RUN_PATH'
9486 if test "$GCC" = yes; then
9487 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9488 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9491 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495 sysv5* | sco3.2v5* | sco5v6*)
9496 # Note: We can NOT use -z defs as we might desire, because we do not
9497 # link with -lc, and that would cause any symbols used from libc to
9498 # always be unresolved, which means just about no library would
9499 # ever link correctly. If we're not using GNU ld we use -z text
9500 # though, which does catch some bad symbols but isn't as heavy-handed
9502 no_undefined_flag='${wl}-z,text'
9503 allow_undefined_flag='${wl}-z,nodefs'
9504 archive_cmds_need_lc=no
9505 hardcode_shlibpath_var=no
9506 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9507 hardcode_libdir_separator=':'
9508 link_all_deplibs=yes
9509 export_dynamic_flag_spec='${wl}-Bexport'
9510 runpath_var='LD_RUN_PATH'
9512 if test "$GCC" = yes; then
9513 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9516 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9517 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9523 hardcode_libdir_flag_spec='-L$libdir'
9524 hardcode_shlibpath_var=no
9532 if test x$host_vendor = xsni; then
9534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9535 export_dynamic_flag_spec='${wl}-Blargedynsym'
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9542 $as_echo "$ld_shlibs" >&6; }
9543 test "$ld_shlibs" = no && can_build_shared=no
9545 with_gnu_ld=$with_gnu_ld
9562 # Do we need to explicitly link libc?
9564 case "x$archive_cmds_need_lc" in
9566 # Assume -lc should be added
9567 archive_cmds_need_lc=yes
9569 if test "$enable_shared" = yes && test "$GCC" = yes; then
9570 case $archive_cmds in
9572 # FIXME: we may have to deal with multi-command sequences.
9575 # Test whether the compiler implicitly links with -lc since on some
9576 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9577 # to ld, don't add -lc before -lgcc.
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9579 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9580 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9581 $as_echo_n "(cached) " >&6
9584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9587 (eval $ac_compile) 2>&5
9589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9590 test $ac_status = 0; } 2>conftest.err; then
9593 libobjs=conftest.$ac_objext
9595 wl=$lt_prog_compiler_wl
9596 pic_flag=$lt_prog_compiler_pic
9602 lt_save_allow_undefined_flag=$allow_undefined_flag
9603 allow_undefined_flag=
9604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9605 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9608 test $ac_status = 0; }
9610 lt_cv_archive_cmds_need_lc=no
9612 lt_cv_archive_cmds_need_lc=yes
9614 allow_undefined_flag=$lt_save_allow_undefined_flag
9616 cat conftest.err 1>&5
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9622 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9623 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9782 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9784 if test "$GCC" = yes; then
9786 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9787 *) lt_awk_arg="/^libraries:/" ;;
9790 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9791 *) lt_sed_strip_eq="s,=/,/,g" ;;
9793 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9794 case $lt_search_path_spec in
9796 # if the path contains ";" then we assume it to be the separator
9797 # otherwise default to the standard path separator (i.e. ":") - it is
9798 # assumed that no part of a normal pathname contains ";" but that should
9799 # okay in the real world where ";" in dirpaths is itself problematic.
9800 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9803 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9806 # Ok, now we have the path, separated by spaces, we can step through it
9807 # and add multilib dir if necessary.
9808 lt_tmp_lt_search_path_spec=
9809 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9810 for lt_sys_path in $lt_search_path_spec; do
9811 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9812 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9814 test -d "$lt_sys_path" && \
9815 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9818 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9819 BEGIN {RS=" "; FS="/|\n";} {
9822 for (lt_i = NF; lt_i > 0; lt_i--) {
9823 if ($lt_i != "" && $lt_i != ".") {
9824 if ($lt_i == "..") {
9827 if (lt_count == 0) {
9828 lt_foo="/" $lt_i lt_foo;
9835 if (lt_foo != "") { lt_freq[lt_foo]++; }
9836 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9838 # AWK program above erroneously prepends '/' to C:/dos/paths
9841 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9842 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9844 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9846 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9849 libname_spec='lib$name'
9857 shlibpath_overrides_runpath=unknown
9859 dynamic_linker="$host_os ld.so"
9860 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9861 need_lib_prefix=unknown
9862 hardcode_into_libs=no
9864 # when you set need_version to no, make sure it does not cause -set_version
9865 # flags to be left without arguments
9866 need_version=unknown
9870 version_type=linux # correct to gnu/linux during the next big refactor
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9872 shlibpath_var=LIBPATH
9874 # AIX 3 has no versioning support, so we append a major version to the name.
9875 soname_spec='${libname}${release}${shared_ext}$major'
9879 version_type=linux # correct to gnu/linux during the next big refactor
9882 hardcode_into_libs=yes
9883 if test "$host_cpu" = ia64; then
9884 # AIX 5 supports IA64
9885 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9886 shlibpath_var=LD_LIBRARY_PATH
9888 # With GCC up to 2.95.x, collect2 would create an import file
9889 # for dependence libraries. The import file would start with
9890 # the line `#! .'. This would cause the generated library to
9891 # depend on `.', always an invalid library. This was fixed in
9892 # development snapshots of GCC prior to 3.0.
9894 aix4 | aix4.[01] | aix4.[01].*)
9895 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9897 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9904 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9905 # soname into executable. Probably we can add versioning support to
9906 # collect2, so additional links can be useful in future.
9907 if test "$aix_use_runtimelinking" = yes; then
9908 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9909 # instead of lib<name>.a to let people know that these are not
9910 # typical AIX shared libraries.
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9913 # We preserve .a as extension for shared libraries through AIX4.2
9914 # and later when we are not doing run time linking.
9915 library_names_spec='${libname}${release}.a $libname.a'
9916 soname_spec='${libname}${release}${shared_ext}$major'
9918 shlibpath_var=LIBPATH
9925 # Since July 2007 AmigaOS4 officially supports .so libraries.
9926 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930 library_names_spec='$libname.ixlibrary $libname.a'
9931 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9932 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'
9938 library_names_spec='${libname}${shared_ext}'
9939 dynamic_linker="$host_os ld.so"
9940 shlibpath_var=LIBRARY_PATH
9944 version_type=linux # correct to gnu/linux during the next big refactor
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947 soname_spec='${libname}${release}${shared_ext}$major'
9948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9949 shlibpath_var=LD_LIBRARY_PATH
9950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9952 # the default ld.so.conf also contains /usr/contrib/lib and
9953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9954 # libtool to hard-code these into programs
9957 cygwin* | mingw* | pw32* | cegcc*)
9958 version_type=windows
9963 case $GCC,$cc_basename in
9966 library_names_spec='$libname.dll.a'
9967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9968 postinstall_cmds='base_file=`basename \${file}`~
9969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9970 dldir=$destdir/`dirname \$dlpath`~
9971 test -d \$dldir || mkdir -p \$dldir~
9972 $install_prog $dir/$dlname \$dldir/$dlname~
9973 chmod a+x \$dldir/$dlname~
9974 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9975 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9978 dlpath=$dir/\$dldll~
9980 shlibpath_overrides_runpath=yes
9984 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9985 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9987 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9990 # MinGW DLLs use traditional 'lib' prefix
9991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9994 # pw32 DLLs use 'pw' prefix rather than 'lib'
9995 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9998 dynamic_linker='Win32 ld.exe'
10003 libname_spec='$name'
10004 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10005 library_names_spec='${libname}.dll.lib'
10009 sys_lib_search_path_spec=
10012 for lt_path in $LIB
10015 # Let DOS variable expansion print the short 8.3 style file name.
10016 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10017 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10020 # Convert to MSYS style.
10021 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10024 # Convert to unix form, then to dos form, then back to unix form
10025 # but this time dos style (no spaces!) so that the unix form looks
10026 # like /cygdrive/c/PROGRA~1:/cygdr...
10027 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10028 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10029 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10032 sys_lib_search_path_spec="$LIB"
10033 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10034 # It is most probably a Windows format PATH.
10035 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10037 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10039 # FIXME: find the short name or the path components, as spaces are
10040 # common. (e.g. "Program Files" -> "PROGRA~1")
10044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10045 postinstall_cmds='base_file=`basename \${file}`~
10046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10047 dldir=$destdir/`dirname \$dlpath`~
10048 test -d \$dldir || mkdir -p \$dldir~
10049 $install_prog $dir/$dlname \$dldir/$dlname'
10050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10051 dlpath=$dir/\$dldll~
10053 shlibpath_overrides_runpath=yes
10054 dynamic_linker='Win32 link.exe'
10058 # Assume MSVC wrapper
10059 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10060 dynamic_linker='Win32 ld.exe'
10063 # FIXME: first we should search . and the directory the executable is in
10067 darwin* | rhapsody*)
10068 dynamic_linker="$host_os dyld"
10069 version_type=darwin
10072 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10073 soname_spec='${libname}${release}${major}$shared_ext'
10074 shlibpath_overrides_runpath=yes
10075 shlibpath_var=DYLD_LIBRARY_PATH
10076 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10078 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10079 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10083 version_type=linux # correct to gnu/linux during the next big refactor
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10087 soname_spec='${libname}${release}${shared_ext}$major'
10088 shlibpath_var=LD_LIBRARY_PATH
10091 freebsd* | dragonfly*)
10092 # DragonFly does not have aout. When/if they implement a new
10093 # versioning mechanism, adjust this.
10094 if test -x /usr/bin/objformat; then
10095 objformat=`/usr/bin/objformat`
10098 freebsd[23].*) objformat=aout ;;
10099 *) objformat=elf ;;
10102 version_type=freebsd-$objformat
10103 case $version_type in
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10114 shlibpath_var=LD_LIBRARY_PATH
10117 shlibpath_overrides_runpath=yes
10119 freebsd3.[01]* | freebsdelf3.[01]*)
10120 shlibpath_overrides_runpath=yes
10121 hardcode_into_libs=yes
10123 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10124 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10125 shlibpath_overrides_runpath=no
10126 hardcode_into_libs=yes
10128 *) # from 4.6 on, and DragonFly
10129 shlibpath_overrides_runpath=yes
10130 hardcode_into_libs=yes
10136 version_type=linux # correct to gnu/linux during the next big refactor
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 shlibpath_var=LD_LIBRARY_PATH
10142 shlibpath_overrides_runpath=no
10143 hardcode_into_libs=yes
10147 version_type=linux # correct to gnu/linux during the next big refactor
10150 dynamic_linker="$host_os runtime_loader"
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 shlibpath_var=LIBRARY_PATH
10154 shlibpath_overrides_runpath=yes
10155 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10156 hardcode_into_libs=yes
10159 hpux9* | hpux10* | hpux11*)
10160 # Give a soname corresponding to the major version so that dld.sl refuses to
10161 # link against other versions.
10168 hardcode_into_libs=yes
10169 dynamic_linker="$host_os dld.so"
10170 shlibpath_var=LD_LIBRARY_PATH
10171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 if test "X$HPUX_IA64_MODE" = X32; then
10175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10183 hardcode_into_libs=yes
10184 dynamic_linker="$host_os dld.sl"
10185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10194 dynamic_linker="$host_os dld.sl"
10195 shlibpath_var=SHLIB_PATH
10196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198 soname_spec='${libname}${release}${shared_ext}$major'
10201 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10202 postinstall_cmds='chmod 555 $lib'
10203 # or fails outright, so override atomically:
10204 install_override_mode=555
10208 version_type=linux # correct to gnu/linux during the next big refactor
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10214 shlibpath_var=LD_LIBRARY_PATH
10215 shlibpath_overrides_runpath=no
10216 hardcode_into_libs=yes
10219 irix5* | irix6* | nonstopux*)
10221 nonstopux*) version_type=nonstopux ;;
10223 if test "$lt_cv_prog_gnu_ld" = yes; then
10224 version_type=linux # correct to gnu/linux during the next big refactor
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10234 irix5* | nonstopux*)
10235 libsuff= shlibsuff=
10238 case $LD in # libtool.m4 will add one of these switches to LD
10239 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10240 libsuff= shlibsuff= libmagic=32-bit;;
10241 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10242 libsuff=32 shlibsuff=N32 libmagic=N32;;
10243 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10244 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10245 *) libsuff= shlibsuff= libmagic=never-match;;
10249 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10250 shlibpath_overrides_runpath=no
10251 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10252 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10253 hardcode_into_libs=yes
10256 # No shared lib support for Linux oldld, aout, or coff.
10257 linux*oldld* | linux*aout* | linux*coff*)
10261 # This must be glibc/ELF.
10262 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10263 version_type=linux # correct to gnu/linux during the next big refactor
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=no
10272 # Some binutils ld are patched to set DT_RUNPATH
10273 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10274 $as_echo_n "(cached) " >&6
10276 lt_cv_shlibpath_overrides_runpath=no
10277 save_LDFLAGS=$LDFLAGS
10278 save_libdir=$libdir
10279 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10280 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h. */
10292 if ac_fn_c_try_link "$LINENO"; then :
10293 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10294 lt_cv_shlibpath_overrides_runpath=yes
10297 rm -f core conftest.err conftest.$ac_objext \
10298 conftest$ac_exeext conftest.$ac_ext
10299 LDFLAGS=$save_LDFLAGS
10300 libdir=$save_libdir
10304 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10306 # This implies no fast_install, which is unacceptable.
10307 # Some rework will be needed to allow for fast_install
10308 # before this can be enabled.
10309 hardcode_into_libs=yes
10311 # Append ld.so.conf contents to the search path
10312 if test -f /etc/ld.so.conf; then
10313 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' ' '`
10314 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10317 # We used to test for /lib/ld.so.1 and disable shared libraries on
10318 # powerpc, because MkLinux only supported shared libraries with the
10319 # GNU dynamic linker. Since this was broken with cross compilers,
10320 # most powerpc-linux boxes support dynamic linking these days and
10321 # people can always --disable-shared, the test was removed, and we
10322 # assume the GNU/Linux dynamic linker is in use.
10323 dynamic_linker='GNU/Linux ld.so'
10330 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10333 dynamic_linker='NetBSD (a.out) ld.so'
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 dynamic_linker='NetBSD ld.elf_so'
10339 shlibpath_var=LD_LIBRARY_PATH
10340 shlibpath_overrides_runpath=yes
10341 hardcode_into_libs=yes
10345 version_type=linux # correct to gnu/linux during the next big refactor
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 shlibpath_var=LD_LIBRARY_PATH
10348 shlibpath_overrides_runpath=yes
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10357 shlibpath_var=LD_LIBRARY_PATH
10358 shlibpath_overrides_runpath=no
10359 hardcode_into_libs=yes
10360 dynamic_linker='ldqnx.so'
10365 sys_lib_dlsearch_path_spec="/usr/lib"
10367 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10369 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10370 *) need_version=no ;;
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10377 openbsd2.[89] | openbsd2.[89].*)
10378 shlibpath_overrides_runpath=no
10381 shlibpath_overrides_runpath=yes
10385 shlibpath_overrides_runpath=yes
10390 libname_spec='$name'
10393 library_names_spec='$libname${shared_ext} $libname.a'
10394 dynamic_linker='OS/2 ld.exe'
10395 shlibpath_var=LIBPATH
10398 osf3* | osf4* | osf5*)
10402 soname_spec='${libname}${release}${shared_ext}$major'
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10406 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10414 version_type=linux # correct to gnu/linux during the next big refactor
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 shlibpath_overrides_runpath=yes
10421 hardcode_into_libs=yes
10422 # ldd complains unless libraries are executable
10423 postinstall_cmds='chmod +x $lib'
10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10429 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10430 shlibpath_var=LD_LIBRARY_PATH
10431 shlibpath_overrides_runpath=yes
10432 if test "$with_gnu_ld" = yes; then
10439 version_type=linux # correct to gnu/linux during the next big refactor
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 soname_spec='${libname}${release}${shared_ext}$major'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 case $host_vendor in
10445 shlibpath_overrides_runpath=no
10447 runpath_var=LD_RUN_PATH
10455 shlibpath_overrides_runpath=no
10456 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10462 if test -d /usr/nec ;then
10463 version_type=linux # correct to gnu/linux during the next big refactor
10464 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10465 soname_spec='$libname${shared_ext}.$major'
10466 shlibpath_var=LD_LIBRARY_PATH
10470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10471 version_type=freebsd-elf
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 shlibpath_var=LD_LIBRARY_PATH
10477 shlibpath_overrides_runpath=yes
10478 hardcode_into_libs=yes
10479 if test "$with_gnu_ld" = yes; then
10480 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10482 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10485 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10489 sys_lib_dlsearch_path_spec='/usr/lib'
10493 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10494 version_type=linux # correct to gnu/linux during the next big refactor
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498 shlibpath_var=LD_LIBRARY_PATH
10499 shlibpath_overrides_runpath=no
10500 hardcode_into_libs=yes
10504 version_type=linux # correct to gnu/linux during the next big refactor
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506 soname_spec='${libname}${release}${shared_ext}$major'
10507 shlibpath_var=LD_LIBRARY_PATH
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10515 $as_echo "$dynamic_linker" >&6; }
10516 test "$dynamic_linker" = no && can_build_shared=no
10518 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10519 if test "$GCC" = yes; then
10520 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10523 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10524 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10526 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10527 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10622 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10624 if test -n "$hardcode_libdir_flag_spec" ||
10625 test -n "$runpath_var" ||
10626 test "X$hardcode_automatic" = "Xyes" ; then
10628 # We can hardcode non-existent directories.
10629 if test "$hardcode_direct" != no &&
10630 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10631 # have to relink, otherwise we might link with an installed library
10632 # when we should be linking with a yet-to-be-installed one
10633 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10634 test "$hardcode_minus_L" != no; then
10635 # Linking always hardcodes the temporary library directory.
10636 hardcode_action=relink
10638 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10639 hardcode_action=immediate
10642 # We cannot hardcode anything, or else we can only hardcode existing
10644 hardcode_action=unsupported
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10647 $as_echo "$hardcode_action" >&6; }
10649 if test "$hardcode_action" = relink ||
10650 test "$inherit_rpath" = yes; then
10651 # Fast installation is not supported
10652 enable_fast_install=no
10653 elif test "$shlibpath_overrides_runpath" = yes ||
10654 test "$enable_shared" = no; then
10655 # Fast installation is not necessary
10656 enable_fast_install=needless
10664 if test "x$enable_dlopen" != xyes; then
10665 enable_dlopen=unknown
10666 enable_dlopen_self=unknown
10667 enable_dlopen_self_static=unknown
10674 lt_cv_dlopen="load_add_on"
10676 lt_cv_dlopen_self=yes
10679 mingw* | pw32* | cegcc*)
10680 lt_cv_dlopen="LoadLibrary"
10685 lt_cv_dlopen="dlopen"
10690 # if libdl is installed we need to link against it
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10692 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10693 if ${ac_cv_lib_dl_dlopen+:} false; then :
10694 $as_echo_n "(cached) " >&6
10696 ac_check_lib_save_LIBS=$LIBS
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10701 /* Override any GCC internal prototype to avoid an error.
10702 Use char because int might match the return type of a GCC
10703 builtin and then its argument prototype would still apply. */
10716 if ac_fn_c_try_link "$LINENO"; then :
10717 ac_cv_lib_dl_dlopen=yes
10719 ac_cv_lib_dl_dlopen=no
10721 rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723 LIBS=$ac_check_lib_save_LIBS
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10726 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10727 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10731 lt_cv_dlopen="dyld"
10733 lt_cv_dlopen_self=yes
10740 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10741 if test "x$ac_cv_func_shl_load" = xyes; then :
10742 lt_cv_dlopen="shl_load"
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10745 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10746 if ${ac_cv_lib_dld_shl_load+:} false; then :
10747 $as_echo_n "(cached) " >&6
10749 ac_check_lib_save_LIBS=$LIBS
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10754 /* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
10764 return shl_load ();
10769 if ac_fn_c_try_link "$LINENO"; then :
10770 ac_cv_lib_dld_shl_load=yes
10772 ac_cv_lib_dld_shl_load=no
10774 rm -f core conftest.err conftest.$ac_objext \
10775 conftest$ac_exeext conftest.$ac_ext
10776 LIBS=$ac_check_lib_save_LIBS
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10779 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10780 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10781 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10783 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10784 if test "x$ac_cv_func_dlopen" = xyes; then :
10785 lt_cv_dlopen="dlopen"
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10788 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10789 if ${ac_cv_lib_dl_dlopen+:} false; then :
10790 $as_echo_n "(cached) " >&6
10792 ac_check_lib_save_LIBS=$LIBS
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10797 /* Override any GCC internal prototype to avoid an error.
10798 Use char because int might match the return type of a GCC
10799 builtin and then its argument prototype would still apply. */
10812 if ac_fn_c_try_link "$LINENO"; then :
10813 ac_cv_lib_dl_dlopen=yes
10815 ac_cv_lib_dl_dlopen=no
10817 rm -f core conftest.err conftest.$ac_objext \
10818 conftest$ac_exeext conftest.$ac_ext
10819 LIBS=$ac_check_lib_save_LIBS
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10822 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10823 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10827 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10828 if ${ac_cv_lib_svld_dlopen+:} false; then :
10829 $as_echo_n "(cached) " >&6
10831 ac_check_lib_save_LIBS=$LIBS
10832 LIBS="-lsvld $LIBS"
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10836 /* Override any GCC internal prototype to avoid an error.
10837 Use char because int might match the return type of a GCC
10838 builtin and then its argument prototype would still apply. */
10851 if ac_fn_c_try_link "$LINENO"; then :
10852 ac_cv_lib_svld_dlopen=yes
10854 ac_cv_lib_svld_dlopen=no
10856 rm -f core conftest.err conftest.$ac_objext \
10857 conftest$ac_exeext conftest.$ac_ext
10858 LIBS=$ac_check_lib_save_LIBS
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10861 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10862 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10866 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10867 if ${ac_cv_lib_dld_dld_link+:} false; then :
10868 $as_echo_n "(cached) " >&6
10870 ac_check_lib_save_LIBS=$LIBS
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10875 /* Override any GCC internal prototype to avoid an error.
10876 Use char because int might match the return type of a GCC
10877 builtin and then its argument prototype would still apply. */
10885 return dld_link ();
10890 if ac_fn_c_try_link "$LINENO"; then :
10891 ac_cv_lib_dld_dld_link=yes
10893 ac_cv_lib_dld_dld_link=no
10895 rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10900 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10901 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10902 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10923 if test "x$lt_cv_dlopen" != xno; then
10929 case $lt_cv_dlopen in
10931 save_CPPFLAGS="$CPPFLAGS"
10932 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10934 save_LDFLAGS="$LDFLAGS"
10935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10938 LIBS="$lt_cv_dlopen_libs $LIBS"
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10942 if ${lt_cv_dlopen_self+:} false; then :
10943 $as_echo_n "(cached) " >&6
10945 if test "$cross_compiling" = yes; then :
10946 lt_cv_dlopen_self=cross
10948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10949 lt_status=$lt_dlunknown
10950 cat > conftest.$ac_ext <<_LT_EOF
10951 #line $LINENO "configure"
10952 #include "confdefs.h"
10961 # define LT_DLGLOBAL RTLD_GLOBAL
10964 # define LT_DLGLOBAL DL_GLOBAL
10966 # define LT_DLGLOBAL 0
10970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10971 find out it does not work in some platform. */
10972 #ifndef LT_DLLAZY_OR_NOW
10974 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10977 # define LT_DLLAZY_OR_NOW DL_LAZY
10980 # define LT_DLLAZY_OR_NOW RTLD_NOW
10983 # define LT_DLLAZY_OR_NOW DL_NOW
10985 # define LT_DLLAZY_OR_NOW 0
10992 /* When -fvisbility=hidden is used, assume the code has been annotated
10993 correspondingly for the symbols needed. */
10994 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10995 int fnord () __attribute__((visibility("default")));
10998 int fnord () { return 42; }
11001 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11002 int status = $lt_dlunknown;
11006 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11009 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11010 else puts (dlerror ());
11012 /* dlclose (self); */
11020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11021 (eval $ac_link) 2>&5
11023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11024 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11025 (./conftest; exit; ) >&5 2>/dev/null
11027 case x$lt_status in
11028 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11029 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11030 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11033 # compilation failed
11034 lt_cv_dlopen_self=no
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11042 $as_echo "$lt_cv_dlopen_self" >&6; }
11044 if test "x$lt_cv_dlopen_self" = xyes; then
11045 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11047 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11048 if ${lt_cv_dlopen_self_static+:} false; then :
11049 $as_echo_n "(cached) " >&6
11051 if test "$cross_compiling" = yes; then :
11052 lt_cv_dlopen_self_static=cross
11054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11055 lt_status=$lt_dlunknown
11056 cat > conftest.$ac_ext <<_LT_EOF
11057 #line $LINENO "configure"
11058 #include "confdefs.h"
11067 # define LT_DLGLOBAL RTLD_GLOBAL
11070 # define LT_DLGLOBAL DL_GLOBAL
11072 # define LT_DLGLOBAL 0
11076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11077 find out it does not work in some platform. */
11078 #ifndef LT_DLLAZY_OR_NOW
11080 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11083 # define LT_DLLAZY_OR_NOW DL_LAZY
11086 # define LT_DLLAZY_OR_NOW RTLD_NOW
11089 # define LT_DLLAZY_OR_NOW DL_NOW
11091 # define LT_DLLAZY_OR_NOW 0
11098 /* When -fvisbility=hidden is used, assume the code has been annotated
11099 correspondingly for the symbols needed. */
11100 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11101 int fnord () __attribute__((visibility("default")));
11104 int fnord () { return 42; }
11107 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11108 int status = $lt_dlunknown;
11112 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11115 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11116 else puts (dlerror ());
11118 /* dlclose (self); */
11126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11127 (eval $ac_link) 2>&5
11129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11130 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11131 (./conftest; exit; ) >&5 2>/dev/null
11133 case x$lt_status in
11134 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11135 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11136 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11139 # compilation failed
11140 lt_cv_dlopen_self_static=no
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11148 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11151 CPPFLAGS="$save_CPPFLAGS"
11152 LDFLAGS="$save_LDFLAGS"
11157 case $lt_cv_dlopen_self in
11158 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11159 *) enable_dlopen_self=unknown ;;
11162 case $lt_cv_dlopen_self_static in
11163 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11164 *) enable_dlopen_self_static=unknown ;;
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11187 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11188 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11189 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11190 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11192 $as_echo "yes" >&6; }
11194 # FIXME - insert some real tests, host_os isn't really good enough
11197 if test -n "$STRIP" ; then
11198 striplib="$STRIP -x"
11199 old_striplib="$STRIP -S"
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11201 $as_echo "yes" >&6; }
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11204 $as_echo "no" >&6; }
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11209 $as_echo "no" >&6; }
11225 # Report which library types will actually be built
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11227 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11229 $as_echo "$can_build_shared" >&6; }
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11232 $as_echo_n "checking whether to build shared libraries... " >&6; }
11233 test "$can_build_shared" = "no" && enable_shared=no
11235 # On AIX, shared libraries and static libraries use the same namespace, and
11236 # are all built from PIC.
11239 test "$enable_shared" = yes && enable_static=no
11240 if test -n "$RANLIB"; then
11241 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11242 postinstall_cmds='$RANLIB $lib'
11247 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11248 test "$enable_shared" = yes && enable_static=no
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11253 $as_echo "$enable_shared" >&6; }
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11256 $as_echo_n "checking whether to build static libraries... " >&6; }
11257 # Make sure either enable_shared or enable_static is yes.
11258 test "$enable_shared" = yes || enable_static=yes
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11260 $as_echo "$enable_static" >&6; }
11267 ac_cpp='$CPP $CPPFLAGS'
11268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11288 ac_config_commands="$ac_config_commands libtool"
11293 # Only expand once:
11297 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11310 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11311 if ${ac_cv_prog_cc_c99+:} false; then :
11312 $as_echo_n "(cached) " >&6
11314 ac_cv_prog_cc_c99=no
11316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h. */
11318 #include <stdarg.h>
11319 #include <stdbool.h>
11320 #include <stdlib.h>
11324 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11325 #define debug(...) fprintf (stderr, __VA_ARGS__)
11326 #define showlist(...) puts (#__VA_ARGS__)
11327 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11329 test_varargs_macros (void)
11334 debug ("X = %d\n", x);
11335 showlist (The first, second, and third items.);
11336 report (x>y, "x is %d but y is %d", x, y);
11339 // Check long long types.
11340 #define BIG64 18446744073709551615ull
11341 #define BIG32 4294967295ul
11342 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11344 your preprocessor is broken;
11348 your preprocessor is broken;
11350 static long long int bignum = -9223372036854775807LL;
11351 static unsigned long long int ubignum = BIG64;
11353 struct incomplete_array
11359 struct named_init {
11361 const wchar_t *name;
11365 typedef const char *ccp;
11368 test_restrict (ccp restrict text)
11370 // See if C++-style comments work.
11371 // Iterate through items via the restricted pointer.
11372 // Also check for declarations in for loops.
11373 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11378 // Check varargs and va_copy.
11380 test_varargs (const char *format, ...)
11383 va_start (args, format);
11385 va_copy (args_copy, args);
11395 case 's': // string
11396 str = va_arg (args_copy, const char *);
11399 number = va_arg (args_copy, int);
11402 fnumber = va_arg (args_copy, double);
11408 va_end (args_copy);
11417 _Bool success = false;
11420 if (test_restrict ("String literal") == 0)
11422 char *restrict newvar = "Another string";
11425 test_varargs ("s, d' f .", "string", 65, 34.234);
11426 test_varargs_macros ();
11428 // Check flexible array members.
11429 struct incomplete_array *ia =
11430 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11432 for (int i = 0; i < ia->datasize; ++i)
11433 ia->data[i] = i * 1.234;
11435 // Check named initializers.
11436 struct named_init ni = {
11438 .name = L"Test wide string",
11439 .average = 543.34343,
11444 int dynamic_array[ni.number];
11445 dynamic_array[ni.number - 1] = 543;
11447 // work around unused variable warnings
11448 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11449 || dynamic_array[ni.number - 1] != 543);
11455 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11457 CC="$ac_save_CC $ac_arg"
11458 if ac_fn_c_try_compile "$LINENO"; then :
11459 ac_cv_prog_cc_c99=$ac_arg
11461 rm -f core conftest.err conftest.$ac_objext
11462 test "x$ac_cv_prog_cc_c99" != "xno" && break
11464 rm -f conftest.$ac_ext
11469 case "x$ac_cv_prog_cc_c99" in
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11472 $as_echo "none needed" >&6; } ;;
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11475 $as_echo "unsupported" >&6; } ;;
11477 CC="$CC $ac_cv_prog_cc_c99"
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11479 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11481 if test "x$ac_cv_prog_cc_c99" != xno; then :
11490 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11491 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11497 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11498 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11504 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11505 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11514 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11515 if test -n "$ac_tool_prefix"; then
11516 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11517 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11519 $as_echo_n "checking for $ac_word... " >&6; }
11520 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11521 $as_echo_n "(cached) " >&6
11523 case $PKG_CONFIG in
11525 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11529 for as_dir in $PATH
11532 test -z "$as_dir" && as_dir=.
11533 for ac_exec_ext in '' $ac_executable_extensions; do
11534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11535 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11546 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11547 if test -n "$PKG_CONFIG"; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11549 $as_echo "$PKG_CONFIG" >&6; }
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; }
11557 if test -z "$ac_cv_path_PKG_CONFIG"; then
11558 ac_pt_PKG_CONFIG=$PKG_CONFIG
11559 # Extract the first word of "pkg-config", so it can be a program name with args.
11560 set dummy pkg-config; ac_word=$2
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562 $as_echo_n "checking for $ac_word... " >&6; }
11563 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11564 $as_echo_n "(cached) " >&6
11566 case $ac_pt_PKG_CONFIG in
11568 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572 for as_dir in $PATH
11575 test -z "$as_dir" && as_dir=.
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11578 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11589 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11590 if test -n "$ac_pt_PKG_CONFIG"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11592 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11598 if test "x$ac_pt_PKG_CONFIG" = x; then
11601 case $cross_compiling:$ac_tool_warned in
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11605 ac_tool_warned=yes ;;
11607 PKG_CONFIG=$ac_pt_PKG_CONFIG
11610 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11614 if test -n "$PKG_CONFIG"; then
11615 _pkg_min_version=0.9.0
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11617 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11618 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11620 $as_echo "yes" >&6; }
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11633 # Check whether --enable-selective-werror was given.
11634 if test "${enable_selective_werror+set}" = set; then :
11635 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11637 SELECTIVE_WERROR=yes
11644 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11645 if test "x$SUNCC" = "xyes"; then
11651 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11665 xorg_testset_save_CFLAGS="$CFLAGS"
11667 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11670 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11671 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11672 $as_echo_n "(cached) " >&6
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11678 if ac_fn_c_try_compile "$LINENO"; then :
11679 xorg_cv_cc_flag_unknown_warning_option=yes
11681 xorg_cv_cc_flag_unknown_warning_option=no
11683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11686 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11688 CFLAGS="$xorg_testset_save_CFLAGS"
11691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11697 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11698 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11699 $as_echo_n "(cached) " >&6
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11705 if ac_fn_c_try_compile "$LINENO"; then :
11706 xorg_cv_cc_flag_unused_command_line_argument=yes
11708 xorg_cv_cc_flag_unused_command_line_argument=no
11710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11713 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11715 CFLAGS="$xorg_testset_save_CFLAGS"
11720 if test $found = "no" ; then
11721 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11725 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11729 CFLAGS="$CFLAGS -Wall"
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11732 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11733 cacheid=xorg_cv_cc_flag__Wall
11734 if eval \${$cacheid+:} false; then :
11735 $as_echo_n "(cached) " >&6
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 /* end confdefs.h. */
11748 if ac_fn_c_try_link "$LINENO"; then :
11753 rm -f core conftest.err conftest.$ac_objext \
11754 conftest$ac_exeext conftest.$ac_ext
11758 CFLAGS="$xorg_testset_save_CFLAGS"
11760 eval supported=\$$cacheid
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11762 $as_echo "$supported" >&6; }
11763 if test "$supported" = "yes" ; then
11764 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11783 xorg_testset_save_CFLAGS="$CFLAGS"
11785 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11788 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11789 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11790 $as_echo_n "(cached) " >&6
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11796 if ac_fn_c_try_compile "$LINENO"; then :
11797 xorg_cv_cc_flag_unknown_warning_option=yes
11799 xorg_cv_cc_flag_unknown_warning_option=no
11801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11804 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11806 CFLAGS="$xorg_testset_save_CFLAGS"
11809 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11815 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11816 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11817 $as_echo_n "(cached) " >&6
11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11823 if ac_fn_c_try_compile "$LINENO"; then :
11824 xorg_cv_cc_flag_unused_command_line_argument=yes
11826 xorg_cv_cc_flag_unused_command_line_argument=no
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11831 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11833 CFLAGS="$xorg_testset_save_CFLAGS"
11838 if test $found = "no" ; then
11839 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11843 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11847 CFLAGS="$CFLAGS -Wpointer-arith"
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11850 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11851 cacheid=xorg_cv_cc_flag__Wpointer_arith
11852 if eval \${$cacheid+:} false; then :
11853 $as_echo_n "(cached) " >&6
11855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11856 /* end confdefs.h. */
11866 if ac_fn_c_try_link "$LINENO"; then :
11871 rm -f core conftest.err conftest.$ac_objext \
11872 conftest$ac_exeext conftest.$ac_ext
11876 CFLAGS="$xorg_testset_save_CFLAGS"
11878 eval supported=\$$cacheid
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11880 $as_echo "$supported" >&6; }
11881 if test "$supported" = "yes" ; then
11882 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11901 xorg_testset_save_CFLAGS="$CFLAGS"
11903 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11906 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11907 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11908 $as_echo_n "(cached) " >&6
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11914 if ac_fn_c_try_compile "$LINENO"; then :
11915 xorg_cv_cc_flag_unknown_warning_option=yes
11917 xorg_cv_cc_flag_unknown_warning_option=no
11919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11922 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11924 CFLAGS="$xorg_testset_save_CFLAGS"
11927 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11933 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11934 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11935 $as_echo_n "(cached) " >&6
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11941 if ac_fn_c_try_compile "$LINENO"; then :
11942 xorg_cv_cc_flag_unused_command_line_argument=yes
11944 xorg_cv_cc_flag_unused_command_line_argument=no
11946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11949 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11951 CFLAGS="$xorg_testset_save_CFLAGS"
11956 if test $found = "no" ; then
11957 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11961 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11965 CFLAGS="$CFLAGS -Wmissing-declarations"
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11968 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11969 cacheid=xorg_cv_cc_flag__Wmissing_declarations
11970 if eval \${$cacheid+:} false; then :
11971 $as_echo_n "(cached) " >&6
11973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974 /* end confdefs.h. */
11984 if ac_fn_c_try_link "$LINENO"; then :
11989 rm -f core conftest.err conftest.$ac_objext \
11990 conftest$ac_exeext conftest.$ac_ext
11994 CFLAGS="$xorg_testset_save_CFLAGS"
11996 eval supported=\$$cacheid
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11998 $as_echo "$supported" >&6; }
11999 if test "$supported" = "yes" ; then
12000 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12019 xorg_testset_save_CFLAGS="$CFLAGS"
12021 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12024 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12025 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12026 $as_echo_n "(cached) " >&6
12028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12029 /* end confdefs.h. */
12032 if ac_fn_c_try_compile "$LINENO"; then :
12033 xorg_cv_cc_flag_unknown_warning_option=yes
12035 xorg_cv_cc_flag_unknown_warning_option=no
12037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12040 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12042 CFLAGS="$xorg_testset_save_CFLAGS"
12045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12051 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12052 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12053 $as_echo_n "(cached) " >&6
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12059 if ac_fn_c_try_compile "$LINENO"; then :
12060 xorg_cv_cc_flag_unused_command_line_argument=yes
12062 xorg_cv_cc_flag_unused_command_line_argument=no
12064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12067 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12069 CFLAGS="$xorg_testset_save_CFLAGS"
12074 if test $found = "no" ; then
12075 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12079 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12083 CFLAGS="$CFLAGS -Wformat=2"
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12086 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12087 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12088 if eval \${$cacheid+:} false; then :
12089 $as_echo_n "(cached) " >&6
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12102 if ac_fn_c_try_link "$LINENO"; then :
12107 rm -f core conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12112 CFLAGS="$xorg_testset_save_CFLAGS"
12114 eval supported=\$$cacheid
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12116 $as_echo "$supported" >&6; }
12117 if test "$supported" = "yes" ; then
12118 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12123 if test $found = "no" ; then
12124 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12128 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12132 CFLAGS="$CFLAGS -Wformat"
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12135 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12136 cacheid=xorg_cv_cc_flag__Wformat
12137 if eval \${$cacheid+:} false; then :
12138 $as_echo_n "(cached) " >&6
12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141 /* end confdefs.h. */
12151 if ac_fn_c_try_link "$LINENO"; then :
12156 rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12161 CFLAGS="$xorg_testset_save_CFLAGS"
12163 eval supported=\$$cacheid
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12165 $as_echo "$supported" >&6; }
12166 if test "$supported" = "yes" ; then
12167 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12188 xorg_testset_save_CFLAGS="$CFLAGS"
12190 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12193 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12194 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12195 $as_echo_n "(cached) " >&6
12197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198 /* end confdefs.h. */
12201 if ac_fn_c_try_compile "$LINENO"; then :
12202 xorg_cv_cc_flag_unknown_warning_option=yes
12204 xorg_cv_cc_flag_unknown_warning_option=no
12206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12209 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12211 CFLAGS="$xorg_testset_save_CFLAGS"
12214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12220 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12221 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12222 $as_echo_n "(cached) " >&6
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12228 if ac_fn_c_try_compile "$LINENO"; then :
12229 xorg_cv_cc_flag_unused_command_line_argument=yes
12231 xorg_cv_cc_flag_unused_command_line_argument=no
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12236 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12238 CFLAGS="$xorg_testset_save_CFLAGS"
12243 if test $found = "no" ; then
12244 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12248 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12252 CFLAGS="$CFLAGS -Wstrict-prototypes"
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12255 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12256 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12257 if eval \${$cacheid+:} false; then :
12258 $as_echo_n "(cached) " >&6
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h. */
12271 if ac_fn_c_try_link "$LINENO"; then :
12276 rm -f core conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12281 CFLAGS="$xorg_testset_save_CFLAGS"
12283 eval supported=\$$cacheid
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12285 $as_echo "$supported" >&6; }
12286 if test "$supported" = "yes" ; then
12287 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12306 xorg_testset_save_CFLAGS="$CFLAGS"
12308 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12311 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12312 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12313 $as_echo_n "(cached) " >&6
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12319 if ac_fn_c_try_compile "$LINENO"; then :
12320 xorg_cv_cc_flag_unknown_warning_option=yes
12322 xorg_cv_cc_flag_unknown_warning_option=no
12324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12327 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12329 CFLAGS="$xorg_testset_save_CFLAGS"
12332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12338 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12339 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12340 $as_echo_n "(cached) " >&6
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12346 if ac_fn_c_try_compile "$LINENO"; then :
12347 xorg_cv_cc_flag_unused_command_line_argument=yes
12349 xorg_cv_cc_flag_unused_command_line_argument=no
12351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12354 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12356 CFLAGS="$xorg_testset_save_CFLAGS"
12361 if test $found = "no" ; then
12362 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12366 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12370 CFLAGS="$CFLAGS -Wmissing-prototypes"
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12373 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12374 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12375 if eval \${$cacheid+:} false; then :
12376 $as_echo_n "(cached) " >&6
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12389 if ac_fn_c_try_link "$LINENO"; then :
12394 rm -f core conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext conftest.$ac_ext
12399 CFLAGS="$xorg_testset_save_CFLAGS"
12401 eval supported=\$$cacheid
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12403 $as_echo "$supported" >&6; }
12404 if test "$supported" = "yes" ; then
12405 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12424 xorg_testset_save_CFLAGS="$CFLAGS"
12426 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12429 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12430 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12431 $as_echo_n "(cached) " >&6
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12437 if ac_fn_c_try_compile "$LINENO"; then :
12438 xorg_cv_cc_flag_unknown_warning_option=yes
12440 xorg_cv_cc_flag_unknown_warning_option=no
12442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12445 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12447 CFLAGS="$xorg_testset_save_CFLAGS"
12450 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12456 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12457 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12458 $as_echo_n "(cached) " >&6
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12464 if ac_fn_c_try_compile "$LINENO"; then :
12465 xorg_cv_cc_flag_unused_command_line_argument=yes
12467 xorg_cv_cc_flag_unused_command_line_argument=no
12469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12472 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12474 CFLAGS="$xorg_testset_save_CFLAGS"
12479 if test $found = "no" ; then
12480 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12484 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12488 CFLAGS="$CFLAGS -Wnested-externs"
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12491 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12492 cacheid=xorg_cv_cc_flag__Wnested_externs
12493 if eval \${$cacheid+:} false; then :
12494 $as_echo_n "(cached) " >&6
12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h. */
12507 if ac_fn_c_try_link "$LINENO"; then :
12512 rm -f core conftest.err conftest.$ac_objext \
12513 conftest$ac_exeext conftest.$ac_ext
12517 CFLAGS="$xorg_testset_save_CFLAGS"
12519 eval supported=\$$cacheid
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12521 $as_echo "$supported" >&6; }
12522 if test "$supported" = "yes" ; then
12523 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12542 xorg_testset_save_CFLAGS="$CFLAGS"
12544 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12547 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12548 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12549 $as_echo_n "(cached) " >&6
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12555 if ac_fn_c_try_compile "$LINENO"; then :
12556 xorg_cv_cc_flag_unknown_warning_option=yes
12558 xorg_cv_cc_flag_unknown_warning_option=no
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12563 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12565 CFLAGS="$xorg_testset_save_CFLAGS"
12568 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12574 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12575 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12576 $as_echo_n "(cached) " >&6
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12582 if ac_fn_c_try_compile "$LINENO"; then :
12583 xorg_cv_cc_flag_unused_command_line_argument=yes
12585 xorg_cv_cc_flag_unused_command_line_argument=no
12587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12590 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12592 CFLAGS="$xorg_testset_save_CFLAGS"
12597 if test $found = "no" ; then
12598 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12602 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12606 CFLAGS="$CFLAGS -Wbad-function-cast"
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12609 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12610 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12611 if eval \${$cacheid+:} false; then :
12612 $as_echo_n "(cached) " >&6
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12625 if ac_fn_c_try_link "$LINENO"; then :
12630 rm -f core conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
12635 CFLAGS="$xorg_testset_save_CFLAGS"
12637 eval supported=\$$cacheid
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12639 $as_echo "$supported" >&6; }
12640 if test "$supported" = "yes" ; then
12641 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12660 xorg_testset_save_CFLAGS="$CFLAGS"
12662 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12665 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12666 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12667 $as_echo_n "(cached) " >&6
12669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12670 /* end confdefs.h. */
12673 if ac_fn_c_try_compile "$LINENO"; then :
12674 xorg_cv_cc_flag_unknown_warning_option=yes
12676 xorg_cv_cc_flag_unknown_warning_option=no
12678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12681 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12683 CFLAGS="$xorg_testset_save_CFLAGS"
12686 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12692 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12693 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12694 $as_echo_n "(cached) " >&6
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12700 if ac_fn_c_try_compile "$LINENO"; then :
12701 xorg_cv_cc_flag_unused_command_line_argument=yes
12703 xorg_cv_cc_flag_unused_command_line_argument=no
12705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12708 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12710 CFLAGS="$xorg_testset_save_CFLAGS"
12715 if test $found = "no" ; then
12716 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12720 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12724 CFLAGS="$CFLAGS -Wold-style-definition"
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12727 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12728 cacheid=xorg_cv_cc_flag__Wold_style_definition
12729 if eval \${$cacheid+:} false; then :
12730 $as_echo_n "(cached) " >&6
12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h. */
12743 if ac_fn_c_try_link "$LINENO"; then :
12748 rm -f core conftest.err conftest.$ac_objext \
12749 conftest$ac_exeext conftest.$ac_ext
12753 CFLAGS="$xorg_testset_save_CFLAGS"
12755 eval supported=\$$cacheid
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12757 $as_echo "$supported" >&6; }
12758 if test "$supported" = "yes" ; then
12759 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12778 xorg_testset_save_CFLAGS="$CFLAGS"
12780 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12783 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12784 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12785 $as_echo_n "(cached) " >&6
12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h. */
12791 if ac_fn_c_try_compile "$LINENO"; then :
12792 xorg_cv_cc_flag_unknown_warning_option=yes
12794 xorg_cv_cc_flag_unknown_warning_option=no
12796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12799 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12801 CFLAGS="$xorg_testset_save_CFLAGS"
12804 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12810 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12811 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12812 $as_echo_n "(cached) " >&6
12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815 /* end confdefs.h. */
12818 if ac_fn_c_try_compile "$LINENO"; then :
12819 xorg_cv_cc_flag_unused_command_line_argument=yes
12821 xorg_cv_cc_flag_unused_command_line_argument=no
12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12826 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12828 CFLAGS="$xorg_testset_save_CFLAGS"
12833 if test $found = "no" ; then
12834 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12838 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12842 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12845 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12846 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12847 if eval \${$cacheid+:} false; then :
12848 $as_echo_n "(cached) " >&6
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12861 if ac_fn_c_try_link "$LINENO"; then :
12866 rm -f core conftest.err conftest.$ac_objext \
12867 conftest$ac_exeext conftest.$ac_ext
12871 CFLAGS="$xorg_testset_save_CFLAGS"
12873 eval supported=\$$cacheid
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12875 $as_echo "$supported" >&6; }
12876 if test "$supported" = "yes" ; then
12877 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12886 # This chunk adds additional warnings that could catch undesired effects.
12900 xorg_testset_save_CFLAGS="$CFLAGS"
12902 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12905 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12906 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12907 $as_echo_n "(cached) " >&6
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12913 if ac_fn_c_try_compile "$LINENO"; then :
12914 xorg_cv_cc_flag_unknown_warning_option=yes
12916 xorg_cv_cc_flag_unknown_warning_option=no
12918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12921 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12923 CFLAGS="$xorg_testset_save_CFLAGS"
12926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12932 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12933 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12934 $as_echo_n "(cached) " >&6
12936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937 /* end confdefs.h. */
12940 if ac_fn_c_try_compile "$LINENO"; then :
12941 xorg_cv_cc_flag_unused_command_line_argument=yes
12943 xorg_cv_cc_flag_unused_command_line_argument=no
12945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12948 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12950 CFLAGS="$xorg_testset_save_CFLAGS"
12955 if test $found = "no" ; then
12956 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12960 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12964 CFLAGS="$CFLAGS -Wunused"
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12967 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
12968 cacheid=xorg_cv_cc_flag__Wunused
12969 if eval \${$cacheid+:} false; then :
12970 $as_echo_n "(cached) " >&6
12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12983 if ac_fn_c_try_link "$LINENO"; then :
12988 rm -f core conftest.err conftest.$ac_objext \
12989 conftest$ac_exeext conftest.$ac_ext
12993 CFLAGS="$xorg_testset_save_CFLAGS"
12995 eval supported=\$$cacheid
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12997 $as_echo "$supported" >&6; }
12998 if test "$supported" = "yes" ; then
12999 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13018 xorg_testset_save_CFLAGS="$CFLAGS"
13020 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13023 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13024 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13025 $as_echo_n "(cached) " >&6
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13031 if ac_fn_c_try_compile "$LINENO"; then :
13032 xorg_cv_cc_flag_unknown_warning_option=yes
13034 xorg_cv_cc_flag_unknown_warning_option=no
13036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13039 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13041 CFLAGS="$xorg_testset_save_CFLAGS"
13044 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13050 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13051 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13052 $as_echo_n "(cached) " >&6
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13058 if ac_fn_c_try_compile "$LINENO"; then :
13059 xorg_cv_cc_flag_unused_command_line_argument=yes
13061 xorg_cv_cc_flag_unused_command_line_argument=no
13063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13066 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13068 CFLAGS="$xorg_testset_save_CFLAGS"
13073 if test $found = "no" ; then
13074 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13078 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13082 CFLAGS="$CFLAGS -Wuninitialized"
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13085 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13086 cacheid=xorg_cv_cc_flag__Wuninitialized
13087 if eval \${$cacheid+:} false; then :
13088 $as_echo_n "(cached) " >&6
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13101 if ac_fn_c_try_link "$LINENO"; then :
13106 rm -f core conftest.err conftest.$ac_objext \
13107 conftest$ac_exeext conftest.$ac_ext
13111 CFLAGS="$xorg_testset_save_CFLAGS"
13113 eval supported=\$$cacheid
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13115 $as_echo "$supported" >&6; }
13116 if test "$supported" = "yes" ; then
13117 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13136 xorg_testset_save_CFLAGS="$CFLAGS"
13138 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13141 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13142 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13143 $as_echo_n "(cached) " >&6
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13149 if ac_fn_c_try_compile "$LINENO"; then :
13150 xorg_cv_cc_flag_unknown_warning_option=yes
13152 xorg_cv_cc_flag_unknown_warning_option=no
13154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13157 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13159 CFLAGS="$xorg_testset_save_CFLAGS"
13162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13168 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13169 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13170 $as_echo_n "(cached) " >&6
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13176 if ac_fn_c_try_compile "$LINENO"; then :
13177 xorg_cv_cc_flag_unused_command_line_argument=yes
13179 xorg_cv_cc_flag_unused_command_line_argument=no
13181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13184 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13186 CFLAGS="$xorg_testset_save_CFLAGS"
13191 if test $found = "no" ; then
13192 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13196 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13200 CFLAGS="$CFLAGS -Wshadow"
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13203 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13204 cacheid=xorg_cv_cc_flag__Wshadow
13205 if eval \${$cacheid+:} false; then :
13206 $as_echo_n "(cached) " >&6
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13219 if ac_fn_c_try_link "$LINENO"; then :
13224 rm -f core conftest.err conftest.$ac_objext \
13225 conftest$ac_exeext conftest.$ac_ext
13229 CFLAGS="$xorg_testset_save_CFLAGS"
13231 eval supported=\$$cacheid
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13233 $as_echo "$supported" >&6; }
13234 if test "$supported" = "yes" ; then
13235 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13254 xorg_testset_save_CFLAGS="$CFLAGS"
13256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13259 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13260 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13261 $as_echo_n "(cached) " >&6
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13267 if ac_fn_c_try_compile "$LINENO"; then :
13268 xorg_cv_cc_flag_unknown_warning_option=yes
13270 xorg_cv_cc_flag_unknown_warning_option=no
13272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13275 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13277 CFLAGS="$xorg_testset_save_CFLAGS"
13280 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13286 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13287 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13288 $as_echo_n "(cached) " >&6
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13294 if ac_fn_c_try_compile "$LINENO"; then :
13295 xorg_cv_cc_flag_unused_command_line_argument=yes
13297 xorg_cv_cc_flag_unused_command_line_argument=no
13299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13302 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13304 CFLAGS="$xorg_testset_save_CFLAGS"
13309 if test $found = "no" ; then
13310 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13314 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13318 CFLAGS="$CFLAGS -Wcast-qual"
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13321 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13322 cacheid=xorg_cv_cc_flag__Wcast_qual
13323 if eval \${$cacheid+:} false; then :
13324 $as_echo_n "(cached) " >&6
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h. */
13337 if ac_fn_c_try_link "$LINENO"; then :
13342 rm -f core conftest.err conftest.$ac_objext \
13343 conftest$ac_exeext conftest.$ac_ext
13347 CFLAGS="$xorg_testset_save_CFLAGS"
13349 eval supported=\$$cacheid
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13351 $as_echo "$supported" >&6; }
13352 if test "$supported" = "yes" ; then
13353 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13372 xorg_testset_save_CFLAGS="$CFLAGS"
13374 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13377 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13378 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13379 $as_echo_n "(cached) " >&6
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13385 if ac_fn_c_try_compile "$LINENO"; then :
13386 xorg_cv_cc_flag_unknown_warning_option=yes
13388 xorg_cv_cc_flag_unknown_warning_option=no
13390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13393 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13395 CFLAGS="$xorg_testset_save_CFLAGS"
13398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13404 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13405 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13406 $as_echo_n "(cached) " >&6
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13412 if ac_fn_c_try_compile "$LINENO"; then :
13413 xorg_cv_cc_flag_unused_command_line_argument=yes
13415 xorg_cv_cc_flag_unused_command_line_argument=no
13417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13420 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13422 CFLAGS="$xorg_testset_save_CFLAGS"
13427 if test $found = "no" ; then
13428 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13432 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13436 CFLAGS="$CFLAGS -Wmissing-noreturn"
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13439 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13440 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13441 if eval \${$cacheid+:} false; then :
13442 $as_echo_n "(cached) " >&6
13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13455 if ac_fn_c_try_link "$LINENO"; then :
13460 rm -f core conftest.err conftest.$ac_objext \
13461 conftest$ac_exeext conftest.$ac_ext
13465 CFLAGS="$xorg_testset_save_CFLAGS"
13467 eval supported=\$$cacheid
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13469 $as_echo "$supported" >&6; }
13470 if test "$supported" = "yes" ; then
13471 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13490 xorg_testset_save_CFLAGS="$CFLAGS"
13492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13495 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13496 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13497 $as_echo_n "(cached) " >&6
13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13500 /* end confdefs.h. */
13503 if ac_fn_c_try_compile "$LINENO"; then :
13504 xorg_cv_cc_flag_unknown_warning_option=yes
13506 xorg_cv_cc_flag_unknown_warning_option=no
13508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13511 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13513 CFLAGS="$xorg_testset_save_CFLAGS"
13516 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13522 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13523 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13524 $as_echo_n "(cached) " >&6
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527 /* end confdefs.h. */
13530 if ac_fn_c_try_compile "$LINENO"; then :
13531 xorg_cv_cc_flag_unused_command_line_argument=yes
13533 xorg_cv_cc_flag_unused_command_line_argument=no
13535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13538 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13540 CFLAGS="$xorg_testset_save_CFLAGS"
13545 if test $found = "no" ; then
13546 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13550 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13554 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13557 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13558 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13559 if eval \${$cacheid+:} false; then :
13560 $as_echo_n "(cached) " >&6
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13573 if ac_fn_c_try_link "$LINENO"; then :
13578 rm -f core conftest.err conftest.$ac_objext \
13579 conftest$ac_exeext conftest.$ac_ext
13583 CFLAGS="$xorg_testset_save_CFLAGS"
13585 eval supported=\$$cacheid
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13587 $as_echo "$supported" >&6; }
13588 if test "$supported" = "yes" ; then
13589 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13608 xorg_testset_save_CFLAGS="$CFLAGS"
13610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13613 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13614 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13615 $as_echo_n "(cached) " >&6
13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13621 if ac_fn_c_try_compile "$LINENO"; then :
13622 xorg_cv_cc_flag_unknown_warning_option=yes
13624 xorg_cv_cc_flag_unknown_warning_option=no
13626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13629 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13631 CFLAGS="$xorg_testset_save_CFLAGS"
13634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13640 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13641 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13642 $as_echo_n "(cached) " >&6
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13648 if ac_fn_c_try_compile "$LINENO"; then :
13649 xorg_cv_cc_flag_unused_command_line_argument=yes
13651 xorg_cv_cc_flag_unused_command_line_argument=no
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13656 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13658 CFLAGS="$xorg_testset_save_CFLAGS"
13663 if test $found = "no" ; then
13664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13668 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13672 CFLAGS="$CFLAGS -Wredundant-decls"
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13675 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13676 cacheid=xorg_cv_cc_flag__Wredundant_decls
13677 if eval \${$cacheid+:} false; then :
13678 $as_echo_n "(cached) " >&6
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13691 if ac_fn_c_try_link "$LINENO"; then :
13696 rm -f core conftest.err conftest.$ac_objext \
13697 conftest$ac_exeext conftest.$ac_ext
13701 CFLAGS="$xorg_testset_save_CFLAGS"
13703 eval supported=\$$cacheid
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13705 $as_echo "$supported" >&6; }
13706 if test "$supported" = "yes" ; then
13707 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13714 # These are currently disabled because they are noisy. They will be enabled
13715 # in the future once the codebase is sufficiently modernized to silence
13716 # them. For now, I don't want them to drown out the other warnings.
13717 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13718 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13719 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13721 # Turn some warnings into errors, so we don't accidently get successful builds
13722 # when there are problems that should be fixed.
13724 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13738 xorg_testset_save_CFLAGS="$CFLAGS"
13740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13743 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13744 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13745 $as_echo_n "(cached) " >&6
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13751 if ac_fn_c_try_compile "$LINENO"; then :
13752 xorg_cv_cc_flag_unknown_warning_option=yes
13754 xorg_cv_cc_flag_unknown_warning_option=no
13756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13759 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13761 CFLAGS="$xorg_testset_save_CFLAGS"
13764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13771 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13772 $as_echo_n "(cached) " >&6
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13778 if ac_fn_c_try_compile "$LINENO"; then :
13779 xorg_cv_cc_flag_unused_command_line_argument=yes
13781 xorg_cv_cc_flag_unused_command_line_argument=no
13783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13786 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13788 CFLAGS="$xorg_testset_save_CFLAGS"
13793 if test $found = "no" ; then
13794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13802 CFLAGS="$CFLAGS -Werror=implicit"
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13805 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13806 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
13807 if eval \${$cacheid+:} false; then :
13808 $as_echo_n "(cached) " >&6
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13821 if ac_fn_c_try_link "$LINENO"; then :
13826 rm -f core conftest.err conftest.$ac_objext \
13827 conftest$ac_exeext conftest.$ac_ext
13831 CFLAGS="$xorg_testset_save_CFLAGS"
13833 eval supported=\$$cacheid
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13835 $as_echo "$supported" >&6; }
13836 if test "$supported" = "yes" ; then
13837 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13842 if test $found = "no" ; then
13843 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13847 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13851 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13854 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13855 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
13856 if eval \${$cacheid+:} false; then :
13857 $as_echo_n "(cached) " >&6
13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860 /* end confdefs.h. */
13870 if ac_fn_c_try_link "$LINENO"; then :
13875 rm -f core conftest.err conftest.$ac_objext \
13876 conftest$ac_exeext conftest.$ac_ext
13880 CFLAGS="$xorg_testset_save_CFLAGS"
13882 eval supported=\$$cacheid
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13884 $as_echo "$supported" >&6; }
13885 if test "$supported" = "yes" ; then
13886 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13905 xorg_testset_save_CFLAGS="$CFLAGS"
13907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13910 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13911 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13912 $as_echo_n "(cached) " >&6
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13918 if ac_fn_c_try_compile "$LINENO"; then :
13919 xorg_cv_cc_flag_unknown_warning_option=yes
13921 xorg_cv_cc_flag_unknown_warning_option=no
13923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13926 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13928 CFLAGS="$xorg_testset_save_CFLAGS"
13931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13937 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13938 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13939 $as_echo_n "(cached) " >&6
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13945 if ac_fn_c_try_compile "$LINENO"; then :
13946 xorg_cv_cc_flag_unused_command_line_argument=yes
13948 xorg_cv_cc_flag_unused_command_line_argument=no
13950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13953 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13955 CFLAGS="$xorg_testset_save_CFLAGS"
13960 if test $found = "no" ; then
13961 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13965 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13969 CFLAGS="$CFLAGS -Werror=nonnull"
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13972 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13973 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
13974 if eval \${$cacheid+:} false; then :
13975 $as_echo_n "(cached) " >&6
13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h. */
13988 if ac_fn_c_try_link "$LINENO"; then :
13993 rm -f core conftest.err conftest.$ac_objext \
13994 conftest$ac_exeext conftest.$ac_ext
13998 CFLAGS="$xorg_testset_save_CFLAGS"
14000 eval supported=\$$cacheid
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14002 $as_echo "$supported" >&6; }
14003 if test "$supported" = "yes" ; then
14004 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14023 xorg_testset_save_CFLAGS="$CFLAGS"
14025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14028 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14029 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14030 $as_echo_n "(cached) " >&6
14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14036 if ac_fn_c_try_compile "$LINENO"; then :
14037 xorg_cv_cc_flag_unknown_warning_option=yes
14039 xorg_cv_cc_flag_unknown_warning_option=no
14041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14044 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14046 CFLAGS="$xorg_testset_save_CFLAGS"
14049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14055 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14056 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14057 $as_echo_n "(cached) " >&6
14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060 /* end confdefs.h. */
14063 if ac_fn_c_try_compile "$LINENO"; then :
14064 xorg_cv_cc_flag_unused_command_line_argument=yes
14066 xorg_cv_cc_flag_unused_command_line_argument=no
14068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14071 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14073 CFLAGS="$xorg_testset_save_CFLAGS"
14078 if test $found = "no" ; then
14079 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14083 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14087 CFLAGS="$CFLAGS -Werror=init-self"
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14090 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14091 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14092 if eval \${$cacheid+:} false; then :
14093 $as_echo_n "(cached) " >&6
14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h. */
14106 if ac_fn_c_try_link "$LINENO"; then :
14111 rm -f core conftest.err conftest.$ac_objext \
14112 conftest$ac_exeext conftest.$ac_ext
14116 CFLAGS="$xorg_testset_save_CFLAGS"
14118 eval supported=\$$cacheid
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14120 $as_echo "$supported" >&6; }
14121 if test "$supported" = "yes" ; then
14122 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14141 xorg_testset_save_CFLAGS="$CFLAGS"
14143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14146 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14147 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14148 $as_echo_n "(cached) " >&6
14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14154 if ac_fn_c_try_compile "$LINENO"; then :
14155 xorg_cv_cc_flag_unknown_warning_option=yes
14157 xorg_cv_cc_flag_unknown_warning_option=no
14159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14162 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14164 CFLAGS="$xorg_testset_save_CFLAGS"
14167 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14173 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14174 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14175 $as_echo_n "(cached) " >&6
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14181 if ac_fn_c_try_compile "$LINENO"; then :
14182 xorg_cv_cc_flag_unused_command_line_argument=yes
14184 xorg_cv_cc_flag_unused_command_line_argument=no
14186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14189 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14191 CFLAGS="$xorg_testset_save_CFLAGS"
14196 if test $found = "no" ; then
14197 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14201 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14205 CFLAGS="$CFLAGS -Werror=main"
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14208 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14209 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14210 if eval \${$cacheid+:} false; then :
14211 $as_echo_n "(cached) " >&6
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14224 if ac_fn_c_try_link "$LINENO"; then :
14229 rm -f core conftest.err conftest.$ac_objext \
14230 conftest$ac_exeext conftest.$ac_ext
14234 CFLAGS="$xorg_testset_save_CFLAGS"
14236 eval supported=\$$cacheid
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14238 $as_echo "$supported" >&6; }
14239 if test "$supported" = "yes" ; then
14240 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14259 xorg_testset_save_CFLAGS="$CFLAGS"
14261 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14264 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14265 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14266 $as_echo_n "(cached) " >&6
14268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14269 /* end confdefs.h. */
14272 if ac_fn_c_try_compile "$LINENO"; then :
14273 xorg_cv_cc_flag_unknown_warning_option=yes
14275 xorg_cv_cc_flag_unknown_warning_option=no
14277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14280 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14282 CFLAGS="$xorg_testset_save_CFLAGS"
14285 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14291 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14292 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14293 $as_echo_n "(cached) " >&6
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h. */
14299 if ac_fn_c_try_compile "$LINENO"; then :
14300 xorg_cv_cc_flag_unused_command_line_argument=yes
14302 xorg_cv_cc_flag_unused_command_line_argument=no
14304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14307 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14309 CFLAGS="$xorg_testset_save_CFLAGS"
14314 if test $found = "no" ; then
14315 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14319 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14323 CFLAGS="$CFLAGS -Werror=missing-braces"
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14326 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14327 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14328 if eval \${$cacheid+:} false; then :
14329 $as_echo_n "(cached) " >&6
14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332 /* end confdefs.h. */
14342 if ac_fn_c_try_link "$LINENO"; then :
14347 rm -f core conftest.err conftest.$ac_objext \
14348 conftest$ac_exeext conftest.$ac_ext
14352 CFLAGS="$xorg_testset_save_CFLAGS"
14354 eval supported=\$$cacheid
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14356 $as_echo "$supported" >&6; }
14357 if test "$supported" = "yes" ; then
14358 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14377 xorg_testset_save_CFLAGS="$CFLAGS"
14379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14382 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14383 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14384 $as_echo_n "(cached) " >&6
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14390 if ac_fn_c_try_compile "$LINENO"; then :
14391 xorg_cv_cc_flag_unknown_warning_option=yes
14393 xorg_cv_cc_flag_unknown_warning_option=no
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14398 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14400 CFLAGS="$xorg_testset_save_CFLAGS"
14403 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14409 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14410 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14411 $as_echo_n "(cached) " >&6
14413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414 /* end confdefs.h. */
14417 if ac_fn_c_try_compile "$LINENO"; then :
14418 xorg_cv_cc_flag_unused_command_line_argument=yes
14420 xorg_cv_cc_flag_unused_command_line_argument=no
14422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14425 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14427 CFLAGS="$xorg_testset_save_CFLAGS"
14432 if test $found = "no" ; then
14433 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14437 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14441 CFLAGS="$CFLAGS -Werror=sequence-point"
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14444 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14445 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14446 if eval \${$cacheid+:} false; then :
14447 $as_echo_n "(cached) " >&6
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14460 if ac_fn_c_try_link "$LINENO"; then :
14465 rm -f core conftest.err conftest.$ac_objext \
14466 conftest$ac_exeext conftest.$ac_ext
14470 CFLAGS="$xorg_testset_save_CFLAGS"
14472 eval supported=\$$cacheid
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14474 $as_echo "$supported" >&6; }
14475 if test "$supported" = "yes" ; then
14476 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14495 xorg_testset_save_CFLAGS="$CFLAGS"
14497 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14500 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14501 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14502 $as_echo_n "(cached) " >&6
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14508 if ac_fn_c_try_compile "$LINENO"; then :
14509 xorg_cv_cc_flag_unknown_warning_option=yes
14511 xorg_cv_cc_flag_unknown_warning_option=no
14513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14516 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14518 CFLAGS="$xorg_testset_save_CFLAGS"
14521 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14527 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14528 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14529 $as_echo_n "(cached) " >&6
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14535 if ac_fn_c_try_compile "$LINENO"; then :
14536 xorg_cv_cc_flag_unused_command_line_argument=yes
14538 xorg_cv_cc_flag_unused_command_line_argument=no
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14543 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14544 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14545 CFLAGS="$xorg_testset_save_CFLAGS"
14550 if test $found = "no" ; then
14551 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14555 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14559 CFLAGS="$CFLAGS -Werror=return-type"
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14562 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14563 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14564 if eval \${$cacheid+:} false; then :
14565 $as_echo_n "(cached) " >&6
14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14578 if ac_fn_c_try_link "$LINENO"; then :
14583 rm -f core conftest.err conftest.$ac_objext \
14584 conftest$ac_exeext conftest.$ac_ext
14588 CFLAGS="$xorg_testset_save_CFLAGS"
14590 eval supported=\$$cacheid
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14592 $as_echo "$supported" >&6; }
14593 if test "$supported" = "yes" ; then
14594 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14599 if test $found = "no" ; then
14600 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14604 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14608 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14611 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14612 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14613 if eval \${$cacheid+:} false; then :
14614 $as_echo_n "(cached) " >&6
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14627 if ac_fn_c_try_link "$LINENO"; then :
14632 rm -f core conftest.err conftest.$ac_objext \
14633 conftest$ac_exeext conftest.$ac_ext
14637 CFLAGS="$xorg_testset_save_CFLAGS"
14639 eval supported=\$$cacheid
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14641 $as_echo "$supported" >&6; }
14642 if test "$supported" = "yes" ; then
14643 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14662 xorg_testset_save_CFLAGS="$CFLAGS"
14664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14667 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14668 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14669 $as_echo_n "(cached) " >&6
14671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14672 /* end confdefs.h. */
14675 if ac_fn_c_try_compile "$LINENO"; then :
14676 xorg_cv_cc_flag_unknown_warning_option=yes
14678 xorg_cv_cc_flag_unknown_warning_option=no
14680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14683 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14685 CFLAGS="$xorg_testset_save_CFLAGS"
14688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14694 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14695 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14696 $as_echo_n "(cached) " >&6
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14702 if ac_fn_c_try_compile "$LINENO"; then :
14703 xorg_cv_cc_flag_unused_command_line_argument=yes
14705 xorg_cv_cc_flag_unused_command_line_argument=no
14707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14710 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14712 CFLAGS="$xorg_testset_save_CFLAGS"
14717 if test $found = "no" ; then
14718 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14722 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14726 CFLAGS="$CFLAGS -Werror=trigraphs"
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14729 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14730 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14731 if eval \${$cacheid+:} false; then :
14732 $as_echo_n "(cached) " >&6
14734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14735 /* end confdefs.h. */
14745 if ac_fn_c_try_link "$LINENO"; then :
14750 rm -f core conftest.err conftest.$ac_objext \
14751 conftest$ac_exeext conftest.$ac_ext
14755 CFLAGS="$xorg_testset_save_CFLAGS"
14757 eval supported=\$$cacheid
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14759 $as_echo "$supported" >&6; }
14760 if test "$supported" = "yes" ; then
14761 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14780 xorg_testset_save_CFLAGS="$CFLAGS"
14782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14785 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14786 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14787 $as_echo_n "(cached) " >&6
14789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14790 /* end confdefs.h. */
14793 if ac_fn_c_try_compile "$LINENO"; then :
14794 xorg_cv_cc_flag_unknown_warning_option=yes
14796 xorg_cv_cc_flag_unknown_warning_option=no
14798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14801 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14803 CFLAGS="$xorg_testset_save_CFLAGS"
14806 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14812 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14813 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14814 $as_echo_n "(cached) " >&6
14816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14820 if ac_fn_c_try_compile "$LINENO"; then :
14821 xorg_cv_cc_flag_unused_command_line_argument=yes
14823 xorg_cv_cc_flag_unused_command_line_argument=no
14825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14828 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14830 CFLAGS="$xorg_testset_save_CFLAGS"
14835 if test $found = "no" ; then
14836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14840 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14844 CFLAGS="$CFLAGS -Werror=array-bounds"
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14847 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14848 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
14849 if eval \${$cacheid+:} false; then :
14850 $as_echo_n "(cached) " >&6
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14863 if ac_fn_c_try_link "$LINENO"; then :
14868 rm -f core conftest.err conftest.$ac_objext \
14869 conftest$ac_exeext conftest.$ac_ext
14873 CFLAGS="$xorg_testset_save_CFLAGS"
14875 eval supported=\$$cacheid
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14877 $as_echo "$supported" >&6; }
14878 if test "$supported" = "yes" ; then
14879 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14898 xorg_testset_save_CFLAGS="$CFLAGS"
14900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14903 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14904 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14905 $as_echo_n "(cached) " >&6
14907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14908 /* end confdefs.h. */
14911 if ac_fn_c_try_compile "$LINENO"; then :
14912 xorg_cv_cc_flag_unknown_warning_option=yes
14914 xorg_cv_cc_flag_unknown_warning_option=no
14916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14919 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14921 CFLAGS="$xorg_testset_save_CFLAGS"
14924 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14930 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14931 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14932 $as_echo_n "(cached) " >&6
14934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14938 if ac_fn_c_try_compile "$LINENO"; then :
14939 xorg_cv_cc_flag_unused_command_line_argument=yes
14941 xorg_cv_cc_flag_unused_command_line_argument=no
14943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14946 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14948 CFLAGS="$xorg_testset_save_CFLAGS"
14953 if test $found = "no" ; then
14954 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14958 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14962 CFLAGS="$CFLAGS -Werror=write-strings"
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14965 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14966 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
14967 if eval \${$cacheid+:} false; then :
14968 $as_echo_n "(cached) " >&6
14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h. */
14981 if ac_fn_c_try_link "$LINENO"; then :
14986 rm -f core conftest.err conftest.$ac_objext \
14987 conftest$ac_exeext conftest.$ac_ext
14991 CFLAGS="$xorg_testset_save_CFLAGS"
14993 eval supported=\$$cacheid
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14995 $as_echo "$supported" >&6; }
14996 if test "$supported" = "yes" ; then
14997 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15016 xorg_testset_save_CFLAGS="$CFLAGS"
15018 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15021 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15022 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15023 $as_echo_n "(cached) " >&6
15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h. */
15029 if ac_fn_c_try_compile "$LINENO"; then :
15030 xorg_cv_cc_flag_unknown_warning_option=yes
15032 xorg_cv_cc_flag_unknown_warning_option=no
15034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15037 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15039 CFLAGS="$xorg_testset_save_CFLAGS"
15042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15048 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15049 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15050 $as_echo_n "(cached) " >&6
15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053 /* end confdefs.h. */
15056 if ac_fn_c_try_compile "$LINENO"; then :
15057 xorg_cv_cc_flag_unused_command_line_argument=yes
15059 xorg_cv_cc_flag_unused_command_line_argument=no
15061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15064 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15066 CFLAGS="$xorg_testset_save_CFLAGS"
15071 if test $found = "no" ; then
15072 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15076 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15080 CFLAGS="$CFLAGS -Werror=address"
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15083 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15084 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15085 if eval \${$cacheid+:} false; then :
15086 $as_echo_n "(cached) " >&6
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15099 if ac_fn_c_try_link "$LINENO"; then :
15104 rm -f core conftest.err conftest.$ac_objext \
15105 conftest$ac_exeext conftest.$ac_ext
15109 CFLAGS="$xorg_testset_save_CFLAGS"
15111 eval supported=\$$cacheid
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15113 $as_echo "$supported" >&6; }
15114 if test "$supported" = "yes" ; then
15115 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15134 xorg_testset_save_CFLAGS="$CFLAGS"
15136 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15139 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15140 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15141 $as_echo_n "(cached) " >&6
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144 /* end confdefs.h. */
15147 if ac_fn_c_try_compile "$LINENO"; then :
15148 xorg_cv_cc_flag_unknown_warning_option=yes
15150 xorg_cv_cc_flag_unknown_warning_option=no
15152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15155 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15157 CFLAGS="$xorg_testset_save_CFLAGS"
15160 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15166 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15167 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15168 $as_echo_n "(cached) " >&6
15170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171 /* end confdefs.h. */
15174 if ac_fn_c_try_compile "$LINENO"; then :
15175 xorg_cv_cc_flag_unused_command_line_argument=yes
15177 xorg_cv_cc_flag_unused_command_line_argument=no
15179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15182 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15184 CFLAGS="$xorg_testset_save_CFLAGS"
15189 if test $found = "no" ; then
15190 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15194 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15198 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15201 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15202 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15203 if eval \${$cacheid+:} false; then :
15204 $as_echo_n "(cached) " >&6
15206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15207 /* end confdefs.h. */
15217 if ac_fn_c_try_link "$LINENO"; then :
15222 rm -f core conftest.err conftest.$ac_objext \
15223 conftest$ac_exeext conftest.$ac_ext
15227 CFLAGS="$xorg_testset_save_CFLAGS"
15229 eval supported=\$$cacheid
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15231 $as_echo "$supported" >&6; }
15232 if test "$supported" = "yes" ; then
15233 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15238 if test $found = "no" ; then
15239 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15243 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15247 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15250 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15251 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15252 if eval \${$cacheid+:} false; then :
15253 $as_echo_n "(cached) " >&6
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15266 if ac_fn_c_try_link "$LINENO"; then :
15271 rm -f core conftest.err conftest.$ac_objext \
15272 conftest$ac_exeext conftest.$ac_ext
15276 CFLAGS="$xorg_testset_save_CFLAGS"
15278 eval supported=\$$cacheid
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15280 $as_echo "$supported" >&6; }
15281 if test "$supported" = "yes" ; then
15282 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15301 xorg_testset_save_CFLAGS="$CFLAGS"
15303 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15306 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15307 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15308 $as_echo_n "(cached) " >&6
15310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h. */
15314 if ac_fn_c_try_compile "$LINENO"; then :
15315 xorg_cv_cc_flag_unknown_warning_option=yes
15317 xorg_cv_cc_flag_unknown_warning_option=no
15319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15322 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15324 CFLAGS="$xorg_testset_save_CFLAGS"
15327 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15333 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15334 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15335 $as_echo_n "(cached) " >&6
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15341 if ac_fn_c_try_compile "$LINENO"; then :
15342 xorg_cv_cc_flag_unused_command_line_argument=yes
15344 xorg_cv_cc_flag_unused_command_line_argument=no
15346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15349 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15351 CFLAGS="$xorg_testset_save_CFLAGS"
15356 if test $found = "no" ; then
15357 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15361 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15365 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15368 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15369 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15370 if eval \${$cacheid+:} false; then :
15371 $as_echo_n "(cached) " >&6
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15384 if ac_fn_c_try_link "$LINENO"; then :
15389 rm -f core conftest.err conftest.$ac_objext \
15390 conftest$ac_exeext conftest.$ac_ext
15394 CFLAGS="$xorg_testset_save_CFLAGS"
15396 eval supported=\$$cacheid
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15398 $as_echo "$supported" >&6; }
15399 if test "$supported" = "yes" ; then
15400 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15405 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15407 { $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
15408 $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;}
15422 xorg_testset_save_CFLAGS="$CFLAGS"
15424 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15427 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15428 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15429 $as_echo_n "(cached) " >&6
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15435 if ac_fn_c_try_compile "$LINENO"; then :
15436 xorg_cv_cc_flag_unknown_warning_option=yes
15438 xorg_cv_cc_flag_unknown_warning_option=no
15440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15443 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15445 CFLAGS="$xorg_testset_save_CFLAGS"
15448 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15454 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15455 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15456 $as_echo_n "(cached) " >&6
15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459 /* end confdefs.h. */
15462 if ac_fn_c_try_compile "$LINENO"; then :
15463 xorg_cv_cc_flag_unused_command_line_argument=yes
15465 xorg_cv_cc_flag_unused_command_line_argument=no
15467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15470 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15472 CFLAGS="$xorg_testset_save_CFLAGS"
15477 if test $found = "no" ; then
15478 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15482 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15486 CFLAGS="$CFLAGS -Wimplicit"
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15489 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15490 cacheid=xorg_cv_cc_flag__Wimplicit
15491 if eval \${$cacheid+:} false; then :
15492 $as_echo_n "(cached) " >&6
15494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15495 /* end confdefs.h. */
15505 if ac_fn_c_try_link "$LINENO"; then :
15510 rm -f core conftest.err conftest.$ac_objext \
15511 conftest$ac_exeext conftest.$ac_ext
15515 CFLAGS="$xorg_testset_save_CFLAGS"
15517 eval supported=\$$cacheid
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15519 $as_echo "$supported" >&6; }
15520 if test "$supported" = "yes" ; then
15521 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15540 xorg_testset_save_CFLAGS="$CFLAGS"
15542 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15545 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15546 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15547 $as_echo_n "(cached) " >&6
15549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15550 /* end confdefs.h. */
15553 if ac_fn_c_try_compile "$LINENO"; then :
15554 xorg_cv_cc_flag_unknown_warning_option=yes
15556 xorg_cv_cc_flag_unknown_warning_option=no
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15561 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15563 CFLAGS="$xorg_testset_save_CFLAGS"
15566 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15572 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15573 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15574 $as_echo_n "(cached) " >&6
15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15580 if ac_fn_c_try_compile "$LINENO"; then :
15581 xorg_cv_cc_flag_unused_command_line_argument=yes
15583 xorg_cv_cc_flag_unused_command_line_argument=no
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15588 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15590 CFLAGS="$xorg_testset_save_CFLAGS"
15595 if test $found = "no" ; then
15596 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15600 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15604 CFLAGS="$CFLAGS -Wnonnull"
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15607 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15608 cacheid=xorg_cv_cc_flag__Wnonnull
15609 if eval \${$cacheid+:} false; then :
15610 $as_echo_n "(cached) " >&6
15612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15613 /* end confdefs.h. */
15623 if ac_fn_c_try_link "$LINENO"; then :
15628 rm -f core conftest.err conftest.$ac_objext \
15629 conftest$ac_exeext conftest.$ac_ext
15633 CFLAGS="$xorg_testset_save_CFLAGS"
15635 eval supported=\$$cacheid
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15637 $as_echo "$supported" >&6; }
15638 if test "$supported" = "yes" ; then
15639 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15658 xorg_testset_save_CFLAGS="$CFLAGS"
15660 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15663 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15664 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15665 $as_echo_n "(cached) " >&6
15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15671 if ac_fn_c_try_compile "$LINENO"; then :
15672 xorg_cv_cc_flag_unknown_warning_option=yes
15674 xorg_cv_cc_flag_unknown_warning_option=no
15676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15679 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15681 CFLAGS="$xorg_testset_save_CFLAGS"
15684 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15690 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15691 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15692 $as_echo_n "(cached) " >&6
15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h. */
15698 if ac_fn_c_try_compile "$LINENO"; then :
15699 xorg_cv_cc_flag_unused_command_line_argument=yes
15701 xorg_cv_cc_flag_unused_command_line_argument=no
15703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15706 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15708 CFLAGS="$xorg_testset_save_CFLAGS"
15713 if test $found = "no" ; then
15714 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15718 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15722 CFLAGS="$CFLAGS -Winit-self"
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15725 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15726 cacheid=xorg_cv_cc_flag__Winit_self
15727 if eval \${$cacheid+:} false; then :
15728 $as_echo_n "(cached) " >&6
15730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15731 /* end confdefs.h. */
15741 if ac_fn_c_try_link "$LINENO"; then :
15746 rm -f core conftest.err conftest.$ac_objext \
15747 conftest$ac_exeext conftest.$ac_ext
15751 CFLAGS="$xorg_testset_save_CFLAGS"
15753 eval supported=\$$cacheid
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15755 $as_echo "$supported" >&6; }
15756 if test "$supported" = "yes" ; then
15757 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15776 xorg_testset_save_CFLAGS="$CFLAGS"
15778 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15781 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15782 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15783 $as_echo_n "(cached) " >&6
15785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15786 /* end confdefs.h. */
15789 if ac_fn_c_try_compile "$LINENO"; then :
15790 xorg_cv_cc_flag_unknown_warning_option=yes
15792 xorg_cv_cc_flag_unknown_warning_option=no
15794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15797 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15799 CFLAGS="$xorg_testset_save_CFLAGS"
15802 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15808 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15809 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15810 $as_echo_n "(cached) " >&6
15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813 /* end confdefs.h. */
15816 if ac_fn_c_try_compile "$LINENO"; then :
15817 xorg_cv_cc_flag_unused_command_line_argument=yes
15819 xorg_cv_cc_flag_unused_command_line_argument=no
15821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15824 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15826 CFLAGS="$xorg_testset_save_CFLAGS"
15831 if test $found = "no" ; then
15832 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15836 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15840 CFLAGS="$CFLAGS -Wmain"
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15843 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15844 cacheid=xorg_cv_cc_flag__Wmain
15845 if eval \${$cacheid+:} false; then :
15846 $as_echo_n "(cached) " >&6
15848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15859 if ac_fn_c_try_link "$LINENO"; then :
15864 rm -f core conftest.err conftest.$ac_objext \
15865 conftest$ac_exeext conftest.$ac_ext
15869 CFLAGS="$xorg_testset_save_CFLAGS"
15871 eval supported=\$$cacheid
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15873 $as_echo "$supported" >&6; }
15874 if test "$supported" = "yes" ; then
15875 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15894 xorg_testset_save_CFLAGS="$CFLAGS"
15896 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15899 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15900 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15901 $as_echo_n "(cached) " >&6
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15907 if ac_fn_c_try_compile "$LINENO"; then :
15908 xorg_cv_cc_flag_unknown_warning_option=yes
15910 xorg_cv_cc_flag_unknown_warning_option=no
15912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15915 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15917 CFLAGS="$xorg_testset_save_CFLAGS"
15920 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15926 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15927 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15928 $as_echo_n "(cached) " >&6
15930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h. */
15934 if ac_fn_c_try_compile "$LINENO"; then :
15935 xorg_cv_cc_flag_unused_command_line_argument=yes
15937 xorg_cv_cc_flag_unused_command_line_argument=no
15939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15942 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15944 CFLAGS="$xorg_testset_save_CFLAGS"
15949 if test $found = "no" ; then
15950 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15954 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15958 CFLAGS="$CFLAGS -Wmissing-braces"
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15961 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15962 cacheid=xorg_cv_cc_flag__Wmissing_braces
15963 if eval \${$cacheid+:} false; then :
15964 $as_echo_n "(cached) " >&6
15966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15967 /* end confdefs.h. */
15977 if ac_fn_c_try_link "$LINENO"; then :
15982 rm -f core conftest.err conftest.$ac_objext \
15983 conftest$ac_exeext conftest.$ac_ext
15987 CFLAGS="$xorg_testset_save_CFLAGS"
15989 eval supported=\$$cacheid
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15991 $as_echo "$supported" >&6; }
15992 if test "$supported" = "yes" ; then
15993 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16012 xorg_testset_save_CFLAGS="$CFLAGS"
16014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16017 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16018 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16019 $as_echo_n "(cached) " >&6
16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h. */
16025 if ac_fn_c_try_compile "$LINENO"; then :
16026 xorg_cv_cc_flag_unknown_warning_option=yes
16028 xorg_cv_cc_flag_unknown_warning_option=no
16030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16033 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16035 CFLAGS="$xorg_testset_save_CFLAGS"
16038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16044 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16045 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16046 $as_echo_n "(cached) " >&6
16048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16052 if ac_fn_c_try_compile "$LINENO"; then :
16053 xorg_cv_cc_flag_unused_command_line_argument=yes
16055 xorg_cv_cc_flag_unused_command_line_argument=no
16057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16060 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16062 CFLAGS="$xorg_testset_save_CFLAGS"
16067 if test $found = "no" ; then
16068 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16072 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16076 CFLAGS="$CFLAGS -Wsequence-point"
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16079 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16080 cacheid=xorg_cv_cc_flag__Wsequence_point
16081 if eval \${$cacheid+:} false; then :
16082 $as_echo_n "(cached) " >&6
16084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h. */
16095 if ac_fn_c_try_link "$LINENO"; then :
16100 rm -f core conftest.err conftest.$ac_objext \
16101 conftest$ac_exeext conftest.$ac_ext
16105 CFLAGS="$xorg_testset_save_CFLAGS"
16107 eval supported=\$$cacheid
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16109 $as_echo "$supported" >&6; }
16110 if test "$supported" = "yes" ; then
16111 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16130 xorg_testset_save_CFLAGS="$CFLAGS"
16132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16135 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16136 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16137 $as_echo_n "(cached) " >&6
16139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16140 /* end confdefs.h. */
16143 if ac_fn_c_try_compile "$LINENO"; then :
16144 xorg_cv_cc_flag_unknown_warning_option=yes
16146 xorg_cv_cc_flag_unknown_warning_option=no
16148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16151 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16153 CFLAGS="$xorg_testset_save_CFLAGS"
16156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16162 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16163 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16164 $as_echo_n "(cached) " >&6
16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167 /* end confdefs.h. */
16170 if ac_fn_c_try_compile "$LINENO"; then :
16171 xorg_cv_cc_flag_unused_command_line_argument=yes
16173 xorg_cv_cc_flag_unused_command_line_argument=no
16175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16178 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16180 CFLAGS="$xorg_testset_save_CFLAGS"
16185 if test $found = "no" ; then
16186 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16190 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16194 CFLAGS="$CFLAGS -Wreturn-type"
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16197 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16198 cacheid=xorg_cv_cc_flag__Wreturn_type
16199 if eval \${$cacheid+:} false; then :
16200 $as_echo_n "(cached) " >&6
16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h. */
16213 if ac_fn_c_try_link "$LINENO"; then :
16218 rm -f core conftest.err conftest.$ac_objext \
16219 conftest$ac_exeext conftest.$ac_ext
16223 CFLAGS="$xorg_testset_save_CFLAGS"
16225 eval supported=\$$cacheid
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16227 $as_echo "$supported" >&6; }
16228 if test "$supported" = "yes" ; then
16229 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16248 xorg_testset_save_CFLAGS="$CFLAGS"
16250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16253 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16254 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16255 $as_echo_n "(cached) " >&6
16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258 /* end confdefs.h. */
16261 if ac_fn_c_try_compile "$LINENO"; then :
16262 xorg_cv_cc_flag_unknown_warning_option=yes
16264 xorg_cv_cc_flag_unknown_warning_option=no
16266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16269 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16271 CFLAGS="$xorg_testset_save_CFLAGS"
16274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16280 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16281 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16282 $as_echo_n "(cached) " >&6
16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285 /* end confdefs.h. */
16288 if ac_fn_c_try_compile "$LINENO"; then :
16289 xorg_cv_cc_flag_unused_command_line_argument=yes
16291 xorg_cv_cc_flag_unused_command_line_argument=no
16293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16296 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16298 CFLAGS="$xorg_testset_save_CFLAGS"
16303 if test $found = "no" ; then
16304 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16308 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16312 CFLAGS="$CFLAGS -Wtrigraphs"
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16315 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16316 cacheid=xorg_cv_cc_flag__Wtrigraphs
16317 if eval \${$cacheid+:} false; then :
16318 $as_echo_n "(cached) " >&6
16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h. */
16331 if ac_fn_c_try_link "$LINENO"; then :
16336 rm -f core conftest.err conftest.$ac_objext \
16337 conftest$ac_exeext conftest.$ac_ext
16341 CFLAGS="$xorg_testset_save_CFLAGS"
16343 eval supported=\$$cacheid
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16345 $as_echo "$supported" >&6; }
16346 if test "$supported" = "yes" ; then
16347 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16366 xorg_testset_save_CFLAGS="$CFLAGS"
16368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16371 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16372 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16373 $as_echo_n "(cached) " >&6
16375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376 /* end confdefs.h. */
16379 if ac_fn_c_try_compile "$LINENO"; then :
16380 xorg_cv_cc_flag_unknown_warning_option=yes
16382 xorg_cv_cc_flag_unknown_warning_option=no
16384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16387 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16389 CFLAGS="$xorg_testset_save_CFLAGS"
16392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16398 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16399 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16400 $as_echo_n "(cached) " >&6
16402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16403 /* end confdefs.h. */
16406 if ac_fn_c_try_compile "$LINENO"; then :
16407 xorg_cv_cc_flag_unused_command_line_argument=yes
16409 xorg_cv_cc_flag_unused_command_line_argument=no
16411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16414 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16416 CFLAGS="$xorg_testset_save_CFLAGS"
16421 if test $found = "no" ; then
16422 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16426 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16430 CFLAGS="$CFLAGS -Warray-bounds"
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16433 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16434 cacheid=xorg_cv_cc_flag__Warray_bounds
16435 if eval \${$cacheid+:} false; then :
16436 $as_echo_n "(cached) " >&6
16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h. */
16449 if ac_fn_c_try_link "$LINENO"; then :
16454 rm -f core conftest.err conftest.$ac_objext \
16455 conftest$ac_exeext conftest.$ac_ext
16459 CFLAGS="$xorg_testset_save_CFLAGS"
16461 eval supported=\$$cacheid
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16463 $as_echo "$supported" >&6; }
16464 if test "$supported" = "yes" ; then
16465 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16484 xorg_testset_save_CFLAGS="$CFLAGS"
16486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16490 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16491 $as_echo_n "(cached) " >&6
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16497 if ac_fn_c_try_compile "$LINENO"; then :
16498 xorg_cv_cc_flag_unknown_warning_option=yes
16500 xorg_cv_cc_flag_unknown_warning_option=no
16502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16505 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16507 CFLAGS="$xorg_testset_save_CFLAGS"
16510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16516 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16517 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16518 $as_echo_n "(cached) " >&6
16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521 /* end confdefs.h. */
16524 if ac_fn_c_try_compile "$LINENO"; then :
16525 xorg_cv_cc_flag_unused_command_line_argument=yes
16527 xorg_cv_cc_flag_unused_command_line_argument=no
16529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16532 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16534 CFLAGS="$xorg_testset_save_CFLAGS"
16539 if test $found = "no" ; then
16540 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16544 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16548 CFLAGS="$CFLAGS -Wwrite-strings"
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16551 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16552 cacheid=xorg_cv_cc_flag__Wwrite_strings
16553 if eval \${$cacheid+:} false; then :
16554 $as_echo_n "(cached) " >&6
16556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557 /* end confdefs.h. */
16567 if ac_fn_c_try_link "$LINENO"; then :
16572 rm -f core conftest.err conftest.$ac_objext \
16573 conftest$ac_exeext conftest.$ac_ext
16577 CFLAGS="$xorg_testset_save_CFLAGS"
16579 eval supported=\$$cacheid
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16581 $as_echo "$supported" >&6; }
16582 if test "$supported" = "yes" ; then
16583 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16602 xorg_testset_save_CFLAGS="$CFLAGS"
16604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16609 $as_echo_n "(cached) " >&6
16611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16612 /* end confdefs.h. */
16615 if ac_fn_c_try_compile "$LINENO"; then :
16616 xorg_cv_cc_flag_unknown_warning_option=yes
16618 xorg_cv_cc_flag_unknown_warning_option=no
16620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16625 CFLAGS="$xorg_testset_save_CFLAGS"
16628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16636 $as_echo_n "(cached) " >&6
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16642 if ac_fn_c_try_compile "$LINENO"; then :
16643 xorg_cv_cc_flag_unused_command_line_argument=yes
16645 xorg_cv_cc_flag_unused_command_line_argument=no
16647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16652 CFLAGS="$xorg_testset_save_CFLAGS"
16657 if test $found = "no" ; then
16658 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16662 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16666 CFLAGS="$CFLAGS -Waddress"
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16669 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16670 cacheid=xorg_cv_cc_flag__Waddress
16671 if eval \${$cacheid+:} false; then :
16672 $as_echo_n "(cached) " >&6
16674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675 /* end confdefs.h. */
16685 if ac_fn_c_try_link "$LINENO"; then :
16690 rm -f core conftest.err conftest.$ac_objext \
16691 conftest$ac_exeext conftest.$ac_ext
16695 CFLAGS="$xorg_testset_save_CFLAGS"
16697 eval supported=\$$cacheid
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16699 $as_echo "$supported" >&6; }
16700 if test "$supported" = "yes" ; then
16701 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16720 xorg_testset_save_CFLAGS="$CFLAGS"
16722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16727 $as_echo_n "(cached) " >&6
16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16733 if ac_fn_c_try_compile "$LINENO"; then :
16734 xorg_cv_cc_flag_unknown_warning_option=yes
16736 xorg_cv_cc_flag_unknown_warning_option=no
16738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16743 CFLAGS="$xorg_testset_save_CFLAGS"
16746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16754 $as_echo_n "(cached) " >&6
16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16760 if ac_fn_c_try_compile "$LINENO"; then :
16761 xorg_cv_cc_flag_unused_command_line_argument=yes
16763 xorg_cv_cc_flag_unused_command_line_argument=no
16765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16770 CFLAGS="$xorg_testset_save_CFLAGS"
16775 if test $found = "no" ; then
16776 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16780 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16784 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16787 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16788 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16789 if eval \${$cacheid+:} false; then :
16790 $as_echo_n "(cached) " >&6
16792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793 /* end confdefs.h. */
16803 if ac_fn_c_try_link "$LINENO"; then :
16808 rm -f core conftest.err conftest.$ac_objext \
16809 conftest$ac_exeext conftest.$ac_ext
16813 CFLAGS="$xorg_testset_save_CFLAGS"
16815 eval supported=\$$cacheid
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16817 $as_echo "$supported" >&6; }
16818 if test "$supported" = "yes" ; then
16819 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16838 xorg_testset_save_CFLAGS="$CFLAGS"
16840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16843 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16844 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16845 $as_echo_n "(cached) " >&6
16847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16848 /* end confdefs.h. */
16851 if ac_fn_c_try_compile "$LINENO"; then :
16852 xorg_cv_cc_flag_unknown_warning_option=yes
16854 xorg_cv_cc_flag_unknown_warning_option=no
16856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16859 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16861 CFLAGS="$xorg_testset_save_CFLAGS"
16864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16870 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16871 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16872 $as_echo_n "(cached) " >&6
16874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875 /* end confdefs.h. */
16878 if ac_fn_c_try_compile "$LINENO"; then :
16879 xorg_cv_cc_flag_unused_command_line_argument=yes
16881 xorg_cv_cc_flag_unused_command_line_argument=no
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16886 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16888 CFLAGS="$xorg_testset_save_CFLAGS"
16893 if test $found = "no" ; then
16894 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16898 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16902 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16905 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16906 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
16907 if eval \${$cacheid+:} false; then :
16908 $as_echo_n "(cached) " >&6
16910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16911 /* end confdefs.h. */
16921 if ac_fn_c_try_link "$LINENO"; then :
16926 rm -f core conftest.err conftest.$ac_objext \
16927 conftest$ac_exeext conftest.$ac_ext
16931 CFLAGS="$xorg_testset_save_CFLAGS"
16933 eval supported=\$$cacheid
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16935 $as_echo "$supported" >&6; }
16936 if test "$supported" = "yes" ; then
16937 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16951 CWARNFLAGS="$BASE_CFLAGS"
16952 if test "x$GCC" = xyes ; then
16953 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16963 # Check whether --enable-strict-compilation was given.
16964 if test "${enable_strict_compilation+set}" = set; then :
16965 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16989 xorg_testset_save_CFLAGS="$CFLAGS"
16991 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16994 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16995 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16996 $as_echo_n "(cached) " >&6
16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999 /* end confdefs.h. */
17002 if ac_fn_c_try_compile "$LINENO"; then :
17003 xorg_cv_cc_flag_unknown_warning_option=yes
17005 xorg_cv_cc_flag_unknown_warning_option=no
17007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17010 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17012 CFLAGS="$xorg_testset_save_CFLAGS"
17015 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17021 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17022 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17023 $as_echo_n "(cached) " >&6
17025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026 /* end confdefs.h. */
17029 if ac_fn_c_try_compile "$LINENO"; then :
17030 xorg_cv_cc_flag_unused_command_line_argument=yes
17032 xorg_cv_cc_flag_unused_command_line_argument=no
17034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17037 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17039 CFLAGS="$xorg_testset_save_CFLAGS"
17044 if test $found = "no" ; then
17045 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17049 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17053 CFLAGS="$CFLAGS -pedantic"
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17056 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17057 cacheid=xorg_cv_cc_flag__pedantic
17058 if eval \${$cacheid+:} false; then :
17059 $as_echo_n "(cached) " >&6
17061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062 /* end confdefs.h. */
17072 if ac_fn_c_try_link "$LINENO"; then :
17077 rm -f core conftest.err conftest.$ac_objext \
17078 conftest$ac_exeext conftest.$ac_ext
17082 CFLAGS="$xorg_testset_save_CFLAGS"
17084 eval supported=\$$cacheid
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17086 $as_echo "$supported" >&6; }
17087 if test "$supported" = "yes" ; then
17088 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17107 xorg_testset_save_CFLAGS="$CFLAGS"
17109 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17112 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17113 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17114 $as_echo_n "(cached) " >&6
17116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17117 /* end confdefs.h. */
17120 if ac_fn_c_try_compile "$LINENO"; then :
17121 xorg_cv_cc_flag_unknown_warning_option=yes
17123 xorg_cv_cc_flag_unknown_warning_option=no
17125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17128 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17130 CFLAGS="$xorg_testset_save_CFLAGS"
17133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17139 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17140 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17141 $as_echo_n "(cached) " >&6
17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h. */
17147 if ac_fn_c_try_compile "$LINENO"; then :
17148 xorg_cv_cc_flag_unused_command_line_argument=yes
17150 xorg_cv_cc_flag_unused_command_line_argument=no
17152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17155 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17157 CFLAGS="$xorg_testset_save_CFLAGS"
17162 if test $found = "no" ; then
17163 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17167 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17171 CFLAGS="$CFLAGS -Werror"
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17174 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17175 cacheid=xorg_cv_cc_flag__Werror
17176 if eval \${$cacheid+:} false; then :
17177 $as_echo_n "(cached) " >&6
17179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17180 /* end confdefs.h. */
17190 if ac_fn_c_try_link "$LINENO"; then :
17195 rm -f core conftest.err conftest.$ac_objext \
17196 conftest$ac_exeext conftest.$ac_ext
17200 CFLAGS="$xorg_testset_save_CFLAGS"
17202 eval supported=\$$cacheid
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17204 $as_echo "$supported" >&6; }
17205 if test "$supported" = "yes" ; then
17206 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17211 if test $found = "no" ; then
17212 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17216 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17220 CFLAGS="$CFLAGS -errwarn"
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17223 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17224 cacheid=xorg_cv_cc_flag__errwarn
17225 if eval \${$cacheid+:} false; then :
17226 $as_echo_n "(cached) " >&6
17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h. */
17239 if ac_fn_c_try_link "$LINENO"; then :
17244 rm -f core conftest.err conftest.$ac_objext \
17245 conftest$ac_exeext conftest.$ac_ext
17249 CFLAGS="$xorg_testset_save_CFLAGS"
17251 eval supported=\$$cacheid
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17253 $as_echo "$supported" >&6; }
17254 if test "$supported" = "yes" ; then
17255 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17262 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17263 # activate it with -Werror, so we add it here explicitly.
17277 xorg_testset_save_CFLAGS="$CFLAGS"
17279 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17282 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17283 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17284 $as_echo_n "(cached) " >&6
17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287 /* end confdefs.h. */
17290 if ac_fn_c_try_compile "$LINENO"; then :
17291 xorg_cv_cc_flag_unknown_warning_option=yes
17293 xorg_cv_cc_flag_unknown_warning_option=no
17295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17298 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17300 CFLAGS="$xorg_testset_save_CFLAGS"
17303 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17309 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17310 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17311 $as_echo_n "(cached) " >&6
17313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314 /* end confdefs.h. */
17317 if ac_fn_c_try_compile "$LINENO"; then :
17318 xorg_cv_cc_flag_unused_command_line_argument=yes
17320 xorg_cv_cc_flag_unused_command_line_argument=no
17322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17325 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17327 CFLAGS="$xorg_testset_save_CFLAGS"
17332 if test $found = "no" ; then
17333 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17337 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17341 CFLAGS="$CFLAGS -Werror=attributes"
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17344 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17345 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17346 if eval \${$cacheid+:} false; then :
17347 $as_echo_n "(cached) " >&6
17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350 /* end confdefs.h. */
17360 if ac_fn_c_try_link "$LINENO"; then :
17365 rm -f core conftest.err conftest.$ac_objext \
17366 conftest$ac_exeext conftest.$ac_ext
17370 CFLAGS="$xorg_testset_save_CFLAGS"
17372 eval supported=\$$cacheid
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17374 $as_echo "$supported" >&6; }
17375 if test "$supported" = "yes" ; then
17376 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17383 if test "x$STRICT_COMPILE" = "xyes"; then
17384 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17385 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17393 cat >>confdefs.h <<_ACEOF
17394 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17397 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17398 if test "x$PVM" = "x"; then
17402 cat >>confdefs.h <<_ACEOF
17403 #define PACKAGE_VERSION_MINOR $PVM
17406 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17407 if test "x$PVP" = "x"; then
17411 cat >>confdefs.h <<_ACEOF
17412 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17417 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17418 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17419 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17420 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17425 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17426 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17427 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17428 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17429 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17436 if test x$APP_MAN_SUFFIX = x ; then
17439 if test x$APP_MAN_DIR = x ; then
17440 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17443 if test x$LIB_MAN_SUFFIX = x ; then
17446 if test x$LIB_MAN_DIR = x ; then
17447 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17450 if test x$FILE_MAN_SUFFIX = x ; then
17452 solaris*) FILE_MAN_SUFFIX=4 ;;
17453 *) FILE_MAN_SUFFIX=5 ;;
17456 if test x$FILE_MAN_DIR = x ; then
17457 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17460 if test x$MISC_MAN_SUFFIX = x ; then
17462 solaris*) MISC_MAN_SUFFIX=5 ;;
17463 *) MISC_MAN_SUFFIX=7 ;;
17466 if test x$MISC_MAN_DIR = x ; then
17467 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17470 if test x$DRIVER_MAN_SUFFIX = x ; then
17472 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17473 *) DRIVER_MAN_SUFFIX=4 ;;
17476 if test x$DRIVER_MAN_DIR = x ; then
17477 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17480 if test x$ADMIN_MAN_SUFFIX = x ; then
17482 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17483 *) ADMIN_MAN_SUFFIX=8 ;;
17486 if test x$ADMIN_MAN_DIR = x ; then
17487 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17504 XORG_MAN_PAGE="X Version 11"
17507 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17508 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17509 -e 's|__xservername__|Xorg|g' \
17510 -e 's|__xconfigfile__|xorg.conf|g' \
17511 -e 's|__projectroot__|\$(prefix)|g' \
17512 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17513 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17514 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17515 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17516 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17517 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17518 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17522 # Check whether --enable-silent-rules was given.
17523 if test "${enable_silent_rules+set}" = set; then :
17524 enableval=$enable_silent_rules;
17527 case $enable_silent_rules in
17528 yes) AM_DEFAULT_VERBOSITY=0;;
17529 no) AM_DEFAULT_VERBOSITY=1;;
17530 *) AM_DEFAULT_VERBOSITY=0;;
17536 # Set library version for Xft.h from package version set in AC_INIT
17537 # copied from PACKAGE_VERSION_* settings in XORG_VERSION
17538 ac_config_headers="$ac_config_headers include/X11/Xft/Xft.h"
17541 cat >>confdefs.h <<_ACEOF
17542 #define XFT_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17546 cat >>confdefs.h <<_ACEOF
17547 #define XFT_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17551 cat >>confdefs.h <<_ACEOF
17552 #define XFT_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17556 XFT_LT_VERSION=`echo $PACKAGE_VERSION | tr '.' ':'`
17560 # Check for Xrender
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
17565 $as_echo_n "checking for XRENDER... " >&6; }
17567 if test -n "$XRENDER_CFLAGS"; then
17568 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
17569 elif test -n "$PKG_CONFIG"; then
17570 if test -n "$PKG_CONFIG" && \
17571 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
17572 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
17574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17575 test $ac_status = 0; }; then
17576 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 x11" 2>/dev/null`
17583 if test -n "$XRENDER_LIBS"; then
17584 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
17585 elif test -n "$PKG_CONFIG"; then
17586 if test -n "$PKG_CONFIG" && \
17587 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
17588 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
17590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17591 test $ac_status = 0; }; then
17592 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 x11" 2>/dev/null`
17602 if test $pkg_failed = yes; then
17604 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17605 _pkg_short_errors_supported=yes
17607 _pkg_short_errors_supported=no
17609 if test $_pkg_short_errors_supported = yes; then
17610 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender >= 0.8.2 x11" 2>&1`
17612 XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender >= 0.8.2 x11" 2>&1`
17614 # Put the nasty error message in config.log where it belongs
17615 echo "$XRENDER_PKG_ERRORS" >&5
17617 as_fn_error $? "Package requirements (xrender >= 0.8.2 x11) were not met:
17619 $XRENDER_PKG_ERRORS
17621 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17622 installed software in a non-standard prefix.
17624 Alternatively, you may set the environment variables XRENDER_CFLAGS
17625 and XRENDER_LIBS to avoid the need to call pkg-config.
17626 See the pkg-config man page for more details.
17628 elif test $pkg_failed = untried; then
17629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17631 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17632 is in your PATH or set the PKG_CONFIG environment variable to the full
17633 path to pkg-config.
17635 Alternatively, you may set the environment variables XRENDER_CFLAGS
17636 and XRENDER_LIBS to avoid the need to call pkg-config.
17637 See the pkg-config man page for more details.
17639 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17640 See \`config.log' for more details" "$LINENO" 5; }
17642 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
17643 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17645 $as_echo "yes" >&6; }
17649 # Check freetype configuration
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
17653 $as_echo_n "checking for FREETYPE... " >&6; }
17655 if test -n "$FREETYPE_CFLAGS"; then
17656 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
17657 elif test -n "$PKG_CONFIG"; then
17658 if test -n "$PKG_CONFIG" && \
17659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
17660 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
17662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17663 test $ac_status = 0; }; then
17664 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.6" 2>/dev/null`
17671 if test -n "$FREETYPE_LIBS"; then
17672 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
17673 elif test -n "$PKG_CONFIG"; then
17674 if test -n "$PKG_CONFIG" && \
17675 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
17676 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
17678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17679 test $ac_status = 0; }; then
17680 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.6" 2>/dev/null`
17690 if test $pkg_failed = yes; then
17692 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17693 _pkg_short_errors_supported=yes
17695 _pkg_short_errors_supported=no
17697 if test $_pkg_short_errors_supported = yes; then
17698 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2 >= 2.1.6" 2>&1`
17700 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2 >= 2.1.6" 2>&1`
17702 # Put the nasty error message in config.log where it belongs
17703 echo "$FREETYPE_PKG_ERRORS" >&5
17705 as_fn_error $? "Package requirements (freetype2 >= 2.1.6) were not met:
17707 $FREETYPE_PKG_ERRORS
17709 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17710 installed software in a non-standard prefix.
17712 Alternatively, you may set the environment variables FREETYPE_CFLAGS
17713 and FREETYPE_LIBS to avoid the need to call pkg-config.
17714 See the pkg-config man page for more details.
17716 elif test $pkg_failed = untried; then
17717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17719 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17720 is in your PATH or set the PKG_CONFIG environment variable to the full
17721 path to pkg-config.
17723 Alternatively, you may set the environment variables FREETYPE_CFLAGS
17724 and FREETYPE_LIBS to avoid the need to call pkg-config.
17725 See the pkg-config man page for more details.
17727 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17728 See \`config.log' for more details" "$LINENO" 5; }
17730 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
17731 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17733 $as_echo "yes" >&6; }
17737 # Check fontconfig configuration
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
17741 $as_echo_n "checking for FONTCONFIG... " >&6; }
17743 if test -n "$FONTCONFIG_CFLAGS"; then
17744 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
17745 elif test -n "$PKG_CONFIG"; then
17746 if test -n "$PKG_CONFIG" && \
17747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
17748 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
17750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17751 test $ac_status = 0; }; then
17752 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.5.92" 2>/dev/null`
17759 if test -n "$FONTCONFIG_LIBS"; then
17760 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
17761 elif test -n "$PKG_CONFIG"; then
17762 if test -n "$PKG_CONFIG" && \
17763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
17764 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
17766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17767 test $ac_status = 0; }; then
17768 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.5.92" 2>/dev/null`
17778 if test $pkg_failed = yes; then
17780 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17781 _pkg_short_errors_supported=yes
17783 _pkg_short_errors_supported=no
17785 if test $_pkg_short_errors_supported = yes; then
17786 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.5.92" 2>&1`
17788 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.5.92" 2>&1`
17790 # Put the nasty error message in config.log where it belongs
17791 echo "$FONTCONFIG_PKG_ERRORS" >&5
17793 as_fn_error $? "Package requirements (fontconfig >= 2.5.92) were not met:
17795 $FONTCONFIG_PKG_ERRORS
17797 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17798 installed software in a non-standard prefix.
17800 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
17801 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
17802 See the pkg-config man page for more details.
17804 elif test $pkg_failed = untried; then
17805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17807 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17808 is in your PATH or set the PKG_CONFIG environment variable to the full
17809 path to pkg-config.
17811 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
17812 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
17813 See the pkg-config man page for more details.
17815 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17816 See \`config.log' for more details" "$LINENO" 5; }
17818 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
17819 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17821 $as_echo "yes" >&6; }
17832 if test "$VERSION" = "" ; then
17833 VERSION=$PACKAGE_VERSION;
17836 ac_config_files="$ac_config_files Makefile xft.pc src/Makefile man/Makefile"
17838 cat >confcache <<\_ACEOF
17839 # This file is a shell script that caches the results of configure
17840 # tests run on this system so they can be shared between configure
17841 # scripts and configure runs, see configure's option --config-cache.
17842 # It is not useful on other systems. If it contains results you don't
17843 # want to keep, you may remove or edit it.
17845 # config.status only pays attention to the cache file if you give it
17846 # the --recheck option to rerun configure.
17848 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17849 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17850 # following values.
17854 # The following way of writing the cache mishandles newlines in values,
17855 # but we know of no workaround that is simple, portable, and efficient.
17856 # So, we kill variables containing newlines.
17857 # Ultrix sh set writes to stderr and can't be redirected directly,
17858 # and sets the high bit in the cache file unless we assign to the vars.
17860 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17861 eval ac_val=\$$ac_var
17865 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17866 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17869 _ | IFS | as_nl) ;; #(
17870 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17871 *) { eval $ac_var=; unset $ac_var;} ;;
17877 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17878 *${as_nl}ac_space=\ *)
17879 # `set' does not quote correctly, so add quotes: double-quote
17880 # substitution turns \\\\ into \\, and sed turns \\ into \.
17883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17886 # `set' quotes correctly as required by POSIX, so do not add quotes.
17887 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17896 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17898 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17900 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17901 if test -w "$cache_file"; then
17902 if test "x$cache_file" != "x/dev/null"; then
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17904 $as_echo "$as_me: updating cache $cache_file" >&6;}
17905 if test ! -f "$cache_file" || test -h "$cache_file"; then
17906 cat confcache >"$cache_file"
17908 case $cache_file in #(
17910 mv -f confcache "$cache_file"$$ &&
17911 mv -f "$cache_file"$$ "$cache_file" ;; #(
17913 mv -f confcache "$cache_file" ;;
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17919 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17924 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17925 # Let make expand exec_prefix.
17926 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17928 DEFS=-DHAVE_CONFIG_H
17933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17934 # 1. Remove the extension, and $U if already installed.
17935 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17936 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17937 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17938 # will be set to the directory where LIBOBJS objects are built.
17939 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17940 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17942 LIBOBJS=$ac_libobjs
17944 LTLIBOBJS=$ac_ltlibobjs
17947 if test -n "$EXEEXT"; then
17949 am__EXEEXT_FALSE='#'
17951 am__EXEEXT_TRUE='#'
17955 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17956 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17959 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17960 as_fn_error $? "conditional \"AMDEP\" was never defined.
17961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17963 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17964 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17968 : "${CONFIG_STATUS=./config.status}"
17970 ac_clean_files_save=$ac_clean_files
17971 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17973 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17975 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17977 # Generated by $as_me.
17978 # Run this file to recreate the current configuration.
17979 # Compiler output produced by configure, useful for debugging
17980 # configure, is in config.log if it exists.
17983 ac_cs_recheck=false
17986 SHELL=\${CONFIG_SHELL-$SHELL}
17989 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17990 ## -------------------- ##
17991 ## M4sh Initialization. ##
17992 ## -------------------- ##
17994 # Be more Bourne compatible
17995 DUALCASE=1; export DUALCASE # for MKS sh
17996 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17999 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18000 # is contrary to our usage. Disable this feature.
18001 alias -g '${1+"$@"}'='"$@"'
18002 setopt NO_GLOB_SUBST
18004 case `(set -o) 2>/dev/null` in #(
18016 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18017 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18018 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18019 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18020 # Prefer a ksh shell builtin over an external printf program on Solaris,
18021 # but without wasting forks for bash or zsh.
18022 if test -z "$BASH_VERSION$ZSH_VERSION" \
18023 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18024 as_echo='print -r --'
18025 as_echo_n='print -rn --'
18026 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18027 as_echo='printf %s\n'
18028 as_echo_n='printf %s'
18030 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18031 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18032 as_echo_n='/usr/ucb/echo -n'
18034 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18035 as_echo_n_body='eval
18039 expr "X$arg" : "X\\(.*\\)$as_nl";
18040 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18042 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18044 export as_echo_n_body
18045 as_echo_n='sh -c $as_echo_n_body as_echo'
18047 export as_echo_body
18048 as_echo='sh -c $as_echo_body as_echo'
18051 # The user is always right.
18052 if test "${PATH_SEPARATOR+set}" != set; then
18054 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18055 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18062 # We need space, tab and new line, in precisely that order. Quoting is
18063 # there to prevent editors from complaining about space-tab.
18064 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18065 # splitting by setting IFS to empty value.)
18068 # Find who we are. Look in the path if we contain no directory separator.
18071 *[\\/]* ) as_myself=$0 ;;
18072 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18073 for as_dir in $PATH
18076 test -z "$as_dir" && as_dir=.
18077 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18083 # We did not find ourselves, most probably we were run as `sh COMMAND'
18084 # in which case we are not to be found in the path.
18085 if test "x$as_myself" = x; then
18088 if test ! -f "$as_myself"; then
18089 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18093 # Unset variables that we do not need and which cause bugs (e.g. in
18094 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18095 # suppresses any "Segmentation fault" message there. '((' could
18096 # trigger a bug in pdksh 5.2.14.
18097 for as_var in BASH_ENV ENV MAIL MAILPATH
18098 do eval test x\${$as_var+set} = xset \
18099 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18112 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18115 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18116 # ----------------------------------------
18117 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18118 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18119 # script with STATUS, using 1 if that was 0.
18122 as_status=$1; test $as_status -eq 0 && as_status=1
18124 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18125 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18127 $as_echo "$as_me: error: $2" >&2
18128 as_fn_exit $as_status
18132 # as_fn_set_status STATUS
18133 # -----------------------
18134 # Set $? to STATUS, without forking.
18135 as_fn_set_status ()
18138 } # as_fn_set_status
18140 # as_fn_exit STATUS
18141 # -----------------
18142 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18146 as_fn_set_status $1
18152 # Portably unset VAR.
18155 { eval $1=; unset $1;}
18157 as_unset=as_fn_unset
18158 # as_fn_append VAR VALUE
18159 # ----------------------
18160 # Append the text in VALUE to the end of the definition contained in VAR. Take
18161 # advantage of any shell optimizations that allow amortized linear growth over
18162 # repeated appends, instead of the typical quadratic growth present in naive
18164 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18165 eval 'as_fn_append ()
18176 # as_fn_arith ARG...
18177 # ------------------
18178 # Perform arithmetic evaluation on the ARGs, and store the result in the
18179 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18180 # must be portable across $(()) and expr.
18181 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18182 eval 'as_fn_arith ()
18189 as_val=`expr "$@" || test $? -eq 1`
18194 if expr a : '\(a\)' >/dev/null 2>&1 &&
18195 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18201 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18202 as_basename=basename
18207 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18213 as_me=`$as_basename -- "$0" ||
18214 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18215 X"$0" : 'X\(//\)$' \| \
18216 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18218 sed '/^.*\/\([^/][^/]*\)\/*$/{
18232 # Avoid depending upon Character Ranges.
18233 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18234 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18235 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18236 as_cr_digits='0123456789'
18237 as_cr_alnum=$as_cr_Letters$as_cr_digits
18239 ECHO_C= ECHO_N= ECHO_T=
18240 case `echo -n x` in #(((((
18242 case `echo 'xy\c'` in
18243 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18245 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18252 rm -f conf$$ conf$$.exe conf$$.file
18253 if test -d conf$$.dir; then
18254 rm -f conf$$.dir/conf$$.file
18257 mkdir conf$$.dir 2>/dev/null
18259 if (echo >conf$$.file) 2>/dev/null; then
18260 if ln -s conf$$.file conf$$ 2>/dev/null; then
18262 # ... but there are two gotchas:
18263 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18264 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18265 # In both cases, we have to default to `cp -p'.
18266 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18268 elif ln conf$$.file conf$$ 2>/dev/null; then
18276 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18277 rmdir conf$$.dir 2>/dev/null
18282 # Create "$as_dir" as a directory, including parents if necessary.
18287 -*) as_dir=./$as_dir;;
18289 test -d "$as_dir" || eval $as_mkdir_p || {
18293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18294 *) as_qdir=$as_dir;;
18296 as_dirs="'$as_qdir' $as_dirs"
18297 as_dir=`$as_dirname -- "$as_dir" ||
18298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18299 X"$as_dir" : 'X\(//\)[^/]' \| \
18300 X"$as_dir" : 'X\(//\)$' \| \
18301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18302 $as_echo X"$as_dir" |
18303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18307 /^X\(\/\/\)[^/].*/{
18320 test -d "$as_dir" && break
18322 test -z "$as_dirs" || eval "mkdir $as_dirs"
18323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18327 if mkdir -p . 2>/dev/null; then
18328 as_mkdir_p='mkdir -p "$as_dir"'
18330 test -d ./-p && rmdir ./-p
18334 if test -x / >/dev/null 2>&1; then
18335 as_test_x='test -x'
18337 if ls -dL / >/dev/null 2>&1; then
18344 if test -d "$1"; then
18350 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18351 ???[sx]*):;;*)false;;esac;fi
18355 as_executable_p=$as_test_x
18357 # Sed expression to map a string onto a valid CPP name.
18358 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18360 # Sed expression to map a string onto a valid variable name.
18361 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18365 ## ----------------------------------- ##
18366 ## Main body of $CONFIG_STATUS script. ##
18367 ## ----------------------------------- ##
18369 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18372 # Save the log message, to keep $0 and so on meaningful, and to
18373 # report actual input values of CONFIG_FILES etc. instead of their
18374 # values after options handling.
18376 This file was extended by libXft $as_me 2.3.1, which was
18377 generated by GNU Autoconf 2.68. Invocation command line was
18379 CONFIG_FILES = $CONFIG_FILES
18380 CONFIG_HEADERS = $CONFIG_HEADERS
18381 CONFIG_LINKS = $CONFIG_LINKS
18382 CONFIG_COMMANDS = $CONFIG_COMMANDS
18385 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18390 case $ac_config_files in *"
18391 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18394 case $ac_config_headers in *"
18395 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18400 # Files that config.status was made for.
18401 config_files="$ac_config_files"
18402 config_headers="$ac_config_headers"
18403 config_commands="$ac_config_commands"
18407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18409 \`$as_me' instantiates files and other configuration actions
18410 from templates according to the current configuration. Unless the files
18411 and actions are specified as TAGs, all are instantiated by default.
18413 Usage: $0 [OPTION]... [TAG]...
18415 -h, --help print this help, then exit
18416 -V, --version print version number and configuration settings, then exit
18417 --config print configuration, then exit
18418 -q, --quiet, --silent
18419 do not print progress messages
18420 -d, --debug don't remove temporary files
18421 --recheck update $as_me by reconfiguring in the same conditions
18422 --file=FILE[:TEMPLATE]
18423 instantiate the configuration file FILE
18424 --header=FILE[:TEMPLATE]
18425 instantiate the configuration header FILE
18427 Configuration files:
18430 Configuration headers:
18433 Configuration commands:
18436 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18440 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18442 libXft config.status 2.3.1
18443 configured by $0, generated by GNU Autoconf 2.68,
18444 with options \\"\$ac_cs_config\\"
18446 Copyright (C) 2010 Free Software Foundation, Inc.
18447 This config.status script is free software; the Free Software Foundation
18448 gives unlimited permission to copy, distribute and modify it."
18455 test -n "\$AWK" || AWK=awk
18458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18459 # The default lists apply if the user does not specify any file.
18465 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18466 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18470 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18482 # Handling of the options.
18483 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18485 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18486 $as_echo "$ac_cs_version"; exit ;;
18487 --config | --confi | --conf | --con | --co | --c )
18488 $as_echo "$ac_cs_config"; exit ;;
18489 --debug | --debu | --deb | --de | --d | -d )
18491 --file | --fil | --fi | --f )
18494 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18495 '') as_fn_error $? "missing file argument" ;;
18497 as_fn_append CONFIG_FILES " '$ac_optarg'"
18498 ac_need_defaults=false;;
18499 --header | --heade | --head | --hea )
18502 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18504 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18505 ac_need_defaults=false;;
18507 # Conflict between --help and --header
18508 as_fn_error $? "ambiguous option: \`$1'
18509 Try \`$0 --help' for more information.";;
18510 --help | --hel | -h )
18511 $as_echo "$ac_cs_usage"; exit ;;
18512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18513 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18516 # This is an error.
18517 -*) as_fn_error $? "unrecognized option: \`$1'
18518 Try \`$0 --help' for more information." ;;
18520 *) as_fn_append ac_config_targets " $1"
18521 ac_need_defaults=false ;;
18527 ac_configure_extra_args=
18529 if $ac_cs_silent; then
18531 ac_configure_extra_args="$ac_configure_extra_args --silent"
18535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18536 if \$ac_cs_recheck; then
18537 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18539 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18540 CONFIG_SHELL='$SHELL'
18541 export CONFIG_SHELL
18546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18550 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18551 ## Running $as_me. ##
18557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18561 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18564 # The HP-UX ksh and POSIX shell print the target directory to stdout
18565 # if CDPATH is set.
18566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18568 sed_quote_subst='$sed_quote_subst'
18569 double_quote_subst='$double_quote_subst'
18570 delay_variable_subst='$delay_variable_subst'
18571 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18572 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18573 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18574 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18575 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18576 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18577 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18578 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18579 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18580 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18581 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18582 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18583 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18584 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18585 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18586 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18587 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18588 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18589 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18590 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18591 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18592 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18593 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18594 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18595 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18596 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18597 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18598 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18599 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18600 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18601 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18602 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18603 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18604 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18605 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18606 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18607 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18608 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18609 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18610 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18611 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18612 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18613 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18614 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18615 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18616 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18617 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18618 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18619 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18620 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18621 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18622 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18623 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18624 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18625 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18626 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18627 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"`'
18628 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18629 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18630 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18631 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18632 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18633 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18634 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18635 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18636 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18637 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18638 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18639 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18640 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18641 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18642 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18643 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18644 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18645 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18646 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18647 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18648 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18649 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18650 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18651 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18652 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18653 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18654 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18655 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18656 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18657 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18658 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18659 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18660 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18661 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18662 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18663 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18664 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18665 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18666 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18667 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18668 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18669 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18670 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18671 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18672 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18673 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18674 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18675 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18676 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18677 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18678 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18679 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18680 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18681 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18682 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18683 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18684 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18685 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18686 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18687 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18688 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18689 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18690 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18691 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18692 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18693 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18694 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18695 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18696 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18697 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18698 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18699 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18700 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18703 LTCFLAGS='$LTCFLAGS'
18704 compiler='$compiler_DEFAULT'
18706 # A function that is used when there is no print builtin or printf.
18707 func_fallback_echo ()
18709 eval 'cat <<_LTECHO_EOF
18714 # Quote evaled strings.
18729 deplibs_check_method \
18734 sharedlib_from_linklib_cmd \
18737 archiver_list_spec \
18743 lt_cv_sys_global_symbol_pipe \
18744 lt_cv_sys_global_symbol_to_cdecl \
18745 lt_cv_sys_global_symbol_to_c_name_address \
18746 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18747 nm_file_list_spec \
18748 lt_prog_compiler_no_builtin_flag \
18749 lt_prog_compiler_pic \
18750 lt_prog_compiler_wl \
18751 lt_prog_compiler_static \
18752 lt_cv_prog_compiler_c_o \
18761 export_dynamic_flag_spec \
18762 whole_archive_flag_spec \
18763 compiler_needs_object \
18765 allow_undefined_flag \
18766 no_undefined_flag \
18767 hardcode_libdir_flag_spec \
18768 hardcode_libdir_separator \
18772 variables_saved_for_relink \
18774 library_names_spec \
18776 install_override_mode \
18780 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18781 *[\\\\\\\`\\"\\\$]*)
18782 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18785 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18790 # Double-quote double-evaled strings.
18791 for var in reload_cmds \
18792 old_postinstall_cmds \
18793 old_postuninstall_cmds \
18795 extract_expsyms_cmds \
18796 old_archive_from_new_cmds \
18797 old_archive_from_expsyms_cmds \
18799 archive_expsym_cmds \
18801 module_expsym_cmds \
18802 export_symbols_cmds \
18806 postuninstall_cmds \
18808 sys_lib_search_path_spec \
18809 sys_lib_dlsearch_path_spec; do
18810 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18811 *[\\\\\\\`\\"\\\$]*)
18812 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18815 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18820 ac_aux_dir='$ac_aux_dir'
18821 xsi_shell='$xsi_shell'
18822 lt_shell_append='$lt_shell_append'
18824 # See if we are running on zsh, and set the options which allow our
18825 # commands through without removal of \ escapes INIT.
18826 if test -n "\${ZSH_VERSION+set}" ; then
18827 setopt NO_GLOB_SUBST
18833 TIMESTAMP='$TIMESTAMP'
18842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18844 # Handling of arguments.
18845 for ac_config_target in $ac_config_targets
18847 case $ac_config_target in
18848 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18849 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18850 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18851 "include/X11/Xft/Xft.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xft/Xft.h" ;;
18852 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18853 "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;;
18854 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18855 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18857 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18862 # If the user did not use the arguments to specify the items to instantiate,
18863 # then the envvar interface is used. Set only those that are not.
18864 # We use the long form for the default assignment because of an extremely
18865 # bizarre bug on SunOS 4.1.3.
18866 if $ac_need_defaults; then
18867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18872 # Have a temporary directory for convenience. Make it in the build tree
18873 # simply because there is no reason against having it here, and in addition,
18874 # creating and moving files from /tmp can sometimes cause problems.
18875 # Hook for its removal unless debugging.
18876 # Note that there is a small window in which the directory will not be cleaned:
18877 # after its creation but before its name has been assigned to `$tmp'.
18881 trap 'exit_status=$?
18882 : "${ac_tmp:=$tmp}"
18883 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18885 trap 'as_fn_exit 1' 1 2 13 15
18887 # Create a (secure) tmp directory for tmp files.
18890 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18894 tmp=./conf$$-$RANDOM
18895 (umask 077 && mkdir "$tmp")
18896 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18899 # Set up the scripts for CONFIG_FILES section.
18900 # No need to generate them if there are no CONFIG_FILES.
18901 # This happens for instance with `./config.status config.h'.
18902 if test -n "$CONFIG_FILES"; then
18905 ac_cr=`echo X | tr X '\015'`
18906 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18907 # But we know of no other shell where ac_cr would be empty at this
18908 # point, so we can use a bashism as a fallback.
18909 if test "x$ac_cr" = x; then
18910 eval ac_cr=\$\'\\r\'
18912 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18913 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18916 ac_cs_awk_cr=$ac_cr
18919 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18924 echo "cat >conf$$subs.awk <<_ACEOF" &&
18925 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18927 } >conf$$subs.sh ||
18928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18929 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18931 for ac_last_try in false false false false false :; do
18932 . ./conf$$subs.sh ||
18933 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18935 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18936 if test $ac_delim_n = $ac_delim_num; then
18938 elif $ac_last_try; then
18939 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18944 rm -f conf$$subs.sh
18946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18947 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18951 s/^/S["/; s/!.*/"]=/
18961 s/\(.\{148\}\)..*/\1/
18963 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18968 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18975 s/\(.\{148\}\)..*/\1/
18977 s/["\\]/\\&/g; s/^/"/; s/$/"/
18981 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18986 ' <conf$$subs.awk | sed '
18991 ' >>$CONFIG_STATUS || ac_write_fail=1
18992 rm -f conf$$subs.awk
18993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18995 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18996 for (key in S) S_is_set[key] = 1
19002 nfields = split(line, field, "@")
19004 len = length(field[1])
19005 for (i = 2; i < nfields; i++) {
19007 keylen = length(key)
19008 if (S_is_set[key]) {
19010 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19011 len += length(value) + length(field[++i])
19022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19023 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19024 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19027 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19028 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19031 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19032 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19033 # trailing colons and then remove the whole line if VPATH becomes empty
19034 # (actually we leave an empty line to preserve line numbers).
19035 if test "x$srcdir" = x.; then
19036 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19055 fi # test -n "$CONFIG_FILES"
19057 # Set up the scripts for CONFIG_HEADERS section.
19058 # No need to generate them if there are no CONFIG_HEADERS.
19059 # This happens for instance with `./config.status Makefile'.
19060 if test -n "$CONFIG_HEADERS"; then
19061 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19065 # Transform confdefs.h into an awk script `defines.awk', embedded as
19066 # here-document in config.status, that substitutes the proper values into
19067 # config.h.in to produce config.h.
19069 # Create a delimiter string that does not exist in confdefs.h, to ease
19070 # handling of long lines.
19072 for ac_last_try in false false :; do
19073 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19074 if test -z "$ac_tt"; then
19076 elif $ac_last_try; then
19077 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19083 # For the awk script, D is an array of macro values keyed by name,
19084 # likewise P contains macro parameters if any. Preserve backslash
19085 # newline sequences.
19087 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19089 s/.\{148\}/&'"$ac_delim"'/g
19092 s/^[ ]*#[ ]*define[ ][ ]*/ /
19099 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19101 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19105 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19106 D["\1"]=" \3\\\\\\n"\\/p
19108 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19113 s/.\{148\}/&'"$ac_delim"'/g
19118 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19121 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19123 ' <confdefs.h | sed '
19124 s/'"$ac_delim"'/"\\\
19125 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19128 for (key in D) D_is_set[key] = 1
19131 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19133 split(line, arg, " ")
19134 if (arg[1] == "#") {
19138 defundef = substr(arg[1], 2)
19141 split(mac1, mac2, "(") #)
19143 prefix = substr(line, 1, index(line, defundef) - 1)
19144 if (D_is_set[macro]) {
19145 # Preserve the white space surrounding the "#".
19146 print prefix "define", macro P[macro] D[macro]
19149 # Replace #undef with comments. This is necessary, for example,
19150 # in the case of _POSIX_SOURCE, which is predefined and required
19151 # on some systems where configure will not decide to define it.
19152 if (defundef == "undef") {
19153 print "/*", prefix defundef, macro, "*/"
19161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19162 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19163 fi # test -n "$CONFIG_HEADERS"
19166 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19171 :[FHLC]) ac_mode=$ac_tag; continue;;
19173 case $ac_mode$ac_tag in
19175 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19176 :[FH]-) ac_tag=-:-;;
19177 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19194 -) ac_f="$ac_tmp/stdin";;
19195 *) # Look for the file first in the build tree, then in the source tree
19196 # (if the path is not absolute). The absolute path cannot be DOS-style,
19197 # because $ac_f cannot contain `:'.
19201 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19203 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19205 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19206 as_fn_append ac_file_inputs " '$ac_f'"
19209 # Let's still pretend it is `configure' which instantiates (i.e., don't
19210 # use $as_me), people would be surprised to read:
19211 # /* config.h. Generated by config.status. */
19212 configure_input='Generated from '`
19213 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19215 if test x"$ac_file" != x-; then
19216 configure_input="$ac_file. $configure_input"
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19218 $as_echo "$as_me: creating $ac_file" >&6;}
19220 # Neutralize special characters interpreted by sed in replacement strings.
19221 case $configure_input in #(
19222 *\&* | *\|* | *\\* )
19223 ac_sed_conf_input=`$as_echo "$configure_input" |
19224 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19225 *) ac_sed_conf_input=$configure_input;;
19229 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19235 ac_dir=`$as_dirname -- "$ac_file" ||
19236 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19237 X"$ac_file" : 'X\(//\)[^/]' \| \
19238 X"$ac_file" : 'X\(//\)$' \| \
19239 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19240 $as_echo X"$ac_file" |
19241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19245 /^X\(\/\/\)[^/].*/{
19258 as_dir="$ac_dir"; as_fn_mkdir_p
19262 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19264 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19265 # A ".." for each directory in $ac_dir_suffix.
19266 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19267 case $ac_top_builddir_sub in
19268 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19269 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19272 ac_abs_top_builddir=$ac_pwd
19273 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19274 # for backward compatibility:
19275 ac_top_builddir=$ac_top_build_prefix
19278 .) # We are building in place.
19280 ac_top_srcdir=$ac_top_builddir_sub
19281 ac_abs_top_srcdir=$ac_pwd ;;
19282 [\\/]* | ?:[\\/]* ) # Absolute name.
19283 ac_srcdir=$srcdir$ac_dir_suffix;
19284 ac_top_srcdir=$srcdir
19285 ac_abs_top_srcdir=$srcdir ;;
19286 *) # Relative name.
19287 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19288 ac_top_srcdir=$ac_top_build_prefix$srcdir
19289 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19291 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19301 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19302 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19304 ac_MKDIR_P=$MKDIR_P
19306 [\\/$]* | ?:[\\/]* ) ;;
19307 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19312 # If the template does not know about datarootdir, expand it.
19313 # FIXME: This hack should be removed a few years after 2.60.
19314 ac_datarootdir_hack=; ac_datarootdir_seen=
19325 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19326 *datarootdir*) ac_datarootdir_seen=yes;;
19327 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19329 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19332 ac_datarootdir_hack='
19333 s&@datadir@&$datadir&g
19334 s&@docdir@&$docdir&g
19335 s&@infodir@&$infodir&g
19336 s&@localedir@&$localedir&g
19337 s&@mandir@&$mandir&g
19338 s&\\\${datarootdir}&$datarootdir&g' ;;
19342 # Neutralize VPATH when `$srcdir' = `.'.
19343 # Shell code in configure.ac might set extrasub.
19344 # FIXME: do we really want to maintain this feature?
19345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19346 ac_sed_extra="$ac_vpsub
19349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19352 s|@configure_input@|$ac_sed_conf_input|;t t
19353 s&@top_builddir@&$ac_top_builddir_sub&;t t
19354 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19355 s&@srcdir@&$ac_srcdir&;t t
19356 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19357 s&@top_srcdir@&$ac_top_srcdir&;t t
19358 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19359 s&@builddir@&$ac_builddir&;t t
19360 s&@abs_builddir@&$ac_abs_builddir&;t t
19361 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19362 s&@INSTALL@&$ac_INSTALL&;t t
19363 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19364 $ac_datarootdir_hack
19366 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19367 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19369 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19370 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19371 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19372 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19374 which seems to be undefined. Please make sure it is defined" >&5
19375 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19376 which seems to be undefined. Please make sure it is defined" >&2;}
19378 rm -f "$ac_tmp/stdin"
19380 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19381 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19389 if test x"$ac_file" != x-; then
19391 $as_echo "/* $configure_input */" \
19392 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19393 } >"$ac_tmp/config.h" \
19394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19395 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19397 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19400 mv "$ac_tmp/config.h" "$ac_file" \
19401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19404 $as_echo "/* $configure_input */" \
19405 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19406 || as_fn_error $? "could not create -" "$LINENO" 5
19408 # Compute "$ac_file"'s index in $config_headers.
19411 for _am_header in $config_headers :; do
19412 case $_am_header in
19413 $_am_arg | $_am_arg:* )
19416 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19419 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19420 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19421 X"$_am_arg" : 'X\(//\)[^/]' \| \
19422 X"$_am_arg" : 'X\(//\)$' \| \
19423 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19424 $as_echo X"$_am_arg" |
19425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19429 /^X\(\/\/\)[^/].*/{
19441 s/.*/./; q'`/stamp-h$_am_stamp_count
19444 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19445 $as_echo "$as_me: executing $ac_file commands" >&6;}
19450 case $ac_file$ac_mode in
19451 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19452 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19453 # are listed without --file. Let's play safe and only enable the eval
19454 # if we detect the quoting.
19455 case $CONFIG_FILES in
19456 *\'*) eval set x "$CONFIG_FILES" ;;
19457 *) set x $CONFIG_FILES ;;
19462 # Strip MF so we end up with the name of the file.
19463 mf=`echo "$mf" | sed -e 's/:.*$//'`
19464 # Check whether this is an Automake generated Makefile or not.
19465 # We used to match only the files named `Makefile.in', but
19466 # some people rename them; so instead we look at the file content.
19467 # Grep'ing the first line is not enough: some people post-process
19468 # each Makefile.in and add a new line on top of each file to say so.
19469 # Grep'ing the whole file is not good either: AIX grep has a line
19470 # limit of 2048, but all sed's we know have understand at least 4000.
19471 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19472 dirpart=`$as_dirname -- "$mf" ||
19473 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19474 X"$mf" : 'X\(//\)[^/]' \| \
19475 X"$mf" : 'X\(//\)$' \| \
19476 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19482 /^X\(\/\/\)[^/].*/{
19498 # Extract the definition of DEPDIR, am__include, and am__quote
19499 # from the Makefile without running `make'.
19500 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19501 test -z "$DEPDIR" && continue
19502 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19503 test -z "am__include" && continue
19504 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19505 # When using ansi2knr, U may be empty or an underscore; expand it
19506 U=`sed -n 's/^U = //p' < "$mf"`
19507 # Find all dependency output files, they are included files with
19508 # $(DEPDIR) in their names. We invoke sed twice because it is the
19509 # simplest approach to changing $(DEPDIR) to its actual value in the
19511 for file in `sed -n "
19512 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19513 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19514 # Make sure the directory exists.
19515 test -f "$dirpart/$file" && continue
19516 fdir=`$as_dirname -- "$file" ||
19517 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19518 X"$file" : 'X\(//\)[^/]' \| \
19519 X"$file" : 'X\(//\)$' \| \
19520 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19521 $as_echo X"$file" |
19522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19526 /^X\(\/\/\)[^/].*/{
19539 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19540 # echo "creating $dirpart/$file"
19541 echo '# dummy' > "$dirpart/$file"
19548 # See if we are running on zsh, and set the options which allow our
19549 # commands through without removal of \ escapes.
19550 if test -n "${ZSH_VERSION+set}" ; then
19551 setopt NO_GLOB_SUBST
19554 cfgfile="${ofile}T"
19555 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19558 cat <<_LT_EOF >> "$cfgfile"
19561 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19562 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19563 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19564 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19566 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19567 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19569 # Written by Gordon Matzigkeit, 1996
19571 # This file is part of GNU Libtool.
19573 # GNU Libtool is free software; you can redistribute it and/or
19574 # modify it under the terms of the GNU General Public License as
19575 # published by the Free Software Foundation; either version 2 of
19576 # the License, or (at your option) any later version.
19578 # As a special exception to the GNU General Public License,
19579 # if you distribute this file as part of a program or library that
19580 # is built using GNU Libtool, you may include this file under the
19581 # same distribution terms that you use for the rest of that program.
19583 # GNU Libtool is distributed in the hope that it will be useful,
19584 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19585 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19586 # GNU General Public License for more details.
19588 # You should have received a copy of the GNU General Public License
19589 # along with GNU Libtool; see the file COPYING. If not, a copy
19590 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19591 # obtained by writing to the Free Software Foundation, Inc.,
19592 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19595 # The names of the tagged configurations supported by this script.
19598 # ### BEGIN LIBTOOL CONFIG
19600 # Which release of libtool.m4 was used?
19601 macro_version=$macro_version
19602 macro_revision=$macro_revision
19604 # Whether or not to build shared libraries.
19605 build_libtool_libs=$enable_shared
19607 # Whether or not to build static libraries.
19608 build_old_libs=$enable_static
19610 # What type of objects to build.
19613 # Whether or not to optimize for fast installation.
19614 fast_install=$enable_fast_install
19616 # Shell to use when invoking shell scripts.
19619 # An echo program that protects backslashes.
19622 # The PATH separator for the build system.
19623 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19626 host_alias=$host_alias
19630 # The build system.
19631 build_alias=$build_alias
19635 # A sed program that does not truncate output.
19638 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19639 Xsed="\$SED -e 1s/^X//"
19641 # A grep program that handles long lines.
19647 # A literal string matcher.
19650 # A BSD- or MS-compatible name lister.
19653 # Whether we need soft or hard links.
19656 # What is the maximum length of a command?
19657 max_cmd_len=$max_cmd_len
19659 # Object file suffix (normally "o").
19662 # Executable file suffix (normally "").
19665 # whether the shell understands "unset".
19668 # turn spaces into newlines.
19671 # turn newlines into spaces.
19674 # convert \$build file names to \$host format.
19675 to_host_file_cmd=$lt_cv_to_host_file_cmd
19677 # convert \$build files to toolchain format.
19678 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19680 # An object symbol dumper.
19681 OBJDUMP=$lt_OBJDUMP
19683 # Method to check whether dependent libraries are shared objects.
19684 deplibs_check_method=$lt_deplibs_check_method
19686 # Command to use when deplibs_check_method = "file_magic".
19687 file_magic_cmd=$lt_file_magic_cmd
19689 # How to find potential files when deplibs_check_method = "file_magic".
19690 file_magic_glob=$lt_file_magic_glob
19692 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19693 want_nocaseglob=$lt_want_nocaseglob
19695 # DLL creation program.
19696 DLLTOOL=$lt_DLLTOOL
19698 # Command to associate shared and link libraries.
19699 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19704 # Flags to create an archive.
19705 AR_FLAGS=$lt_AR_FLAGS
19707 # How to feed a file listing to the archiver.
19708 archiver_list_spec=$lt_archiver_list_spec
19710 # A symbol stripping program.
19713 # Commands used to install an old-style archive.
19715 old_postinstall_cmds=$lt_old_postinstall_cmds
19716 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19718 # Whether to use a lock for old archive extraction.
19719 lock_old_archive_extraction=$lock_old_archive_extraction
19724 # LTCC compiler flags.
19725 LTCFLAGS=$lt_CFLAGS
19727 # Take the output of nm and produce a listing of raw symbols and C names.
19728 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19730 # Transform the output of nm in a proper C declaration.
19731 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19733 # Transform the output of nm in a C name address pair.
19734 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19736 # Transform the output of nm in a C name address pair when lib prefix is needed.
19737 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19739 # Specify filename containing input files for \$NM.
19740 nm_file_list_spec=$lt_nm_file_list_spec
19742 # The root where to search for dependent libraries,and in which our libraries should be installed.
19743 lt_sysroot=$lt_sysroot
19745 # The name of the directory that contains temporary libtool files.
19748 # Used to examine libraries when file_magic_cmd begins with "file".
19749 MAGIC_CMD=$MAGIC_CMD
19751 # Must we lock files when doing compilation?
19752 need_locks=$lt_need_locks
19755 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19757 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19758 DSYMUTIL=$lt_DSYMUTIL
19760 # Tool to change global to local symbols on Mac OS X.
19763 # Tool to manipulate fat objects and archives on Mac OS X.
19766 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19769 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19770 OTOOL64=$lt_OTOOL64
19772 # Old archive suffix (normally "a").
19775 # Shared library suffix (normally ".so").
19776 shrext_cmds=$lt_shrext_cmds
19778 # The commands to extract the exported symbol list from a shared archive.
19779 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19781 # Variables whose values should be saved in libtool wrapper scripts and
19782 # restored at link time.
19783 variables_saved_for_relink=$lt_variables_saved_for_relink
19785 # Do we need the "lib" prefix for modules?
19786 need_lib_prefix=$need_lib_prefix
19788 # Do we need a version for libraries?
19789 need_version=$need_version
19791 # Library versioning type.
19792 version_type=$version_type
19794 # Shared library runtime path variable.
19795 runpath_var=$runpath_var
19797 # Shared library path variable.
19798 shlibpath_var=$shlibpath_var
19800 # Is shlibpath searched before the hard-coded library search path?
19801 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19803 # Format of library name prefix.
19804 libname_spec=$lt_libname_spec
19806 # List of archive names. First name is the real one, the rest are links.
19807 # The last name is the one that the linker finds with -lNAME
19808 library_names_spec=$lt_library_names_spec
19810 # The coded name of the library, if different from the real name.
19811 soname_spec=$lt_soname_spec
19813 # Permission mode override for installation of shared libraries.
19814 install_override_mode=$lt_install_override_mode
19816 # Command to use after installation of a shared archive.
19817 postinstall_cmds=$lt_postinstall_cmds
19819 # Command to use after uninstallation of a shared archive.
19820 postuninstall_cmds=$lt_postuninstall_cmds
19822 # Commands used to finish a libtool library installation in a directory.
19823 finish_cmds=$lt_finish_cmds
19825 # As "finish_cmds", except a single script fragment to be evaled but
19827 finish_eval=$lt_finish_eval
19829 # Whether we should hardcode library paths into libraries.
19830 hardcode_into_libs=$hardcode_into_libs
19832 # Compile-time system search path for libraries.
19833 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19835 # Run-time system search path for libraries.
19836 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19838 # Whether dlopen is supported.
19839 dlopen_support=$enable_dlopen
19841 # Whether dlopen of programs is supported.
19842 dlopen_self=$enable_dlopen_self
19844 # Whether dlopen of statically linked programs is supported.
19845 dlopen_self_static=$enable_dlopen_self_static
19847 # Commands to strip libraries.
19848 old_striplib=$lt_old_striplib
19849 striplib=$lt_striplib
19852 # The linker used to build libraries.
19855 # How to create reloadable object files.
19856 reload_flag=$lt_reload_flag
19857 reload_cmds=$lt_reload_cmds
19859 # Commands used to build an old-style archive.
19860 old_archive_cmds=$lt_old_archive_cmds
19862 # A language specific compiler.
19865 # Is the compiler the GNU compiler?
19868 # Compiler flag to turn off builtin functions.
19869 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19871 # Additional compiler flags for building library objects.
19872 pic_flag=$lt_lt_prog_compiler_pic
19874 # How to pass a linker flag through the compiler.
19875 wl=$lt_lt_prog_compiler_wl
19877 # Compiler flag to prevent dynamic linking.
19878 link_static_flag=$lt_lt_prog_compiler_static
19880 # Does compiler simultaneously support -c and -o options?
19881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19883 # Whether or not to add -lc for building shared libraries.
19884 build_libtool_need_lc=$archive_cmds_need_lc
19886 # Whether or not to disallow shared libs when runtime libs are static.
19887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19889 # Compiler flag to allow reflexive dlopens.
19890 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19892 # Compiler flag to generate shared objects directly from archives.
19893 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19895 # Whether the compiler copes with passing no objects directly.
19896 compiler_needs_object=$lt_compiler_needs_object
19898 # Create an old-style archive from a shared archive.
19899 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19901 # Create a temporary old-style archive to link instead of a shared archive.
19902 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19904 # Commands used to build a shared archive.
19905 archive_cmds=$lt_archive_cmds
19906 archive_expsym_cmds=$lt_archive_expsym_cmds
19908 # Commands used to build a loadable module if different from building
19909 # a shared archive.
19910 module_cmds=$lt_module_cmds
19911 module_expsym_cmds=$lt_module_expsym_cmds
19913 # Whether we are building with GNU ld or not.
19914 with_gnu_ld=$lt_with_gnu_ld
19916 # Flag that allows shared libraries with undefined symbols to be built.
19917 allow_undefined_flag=$lt_allow_undefined_flag
19919 # Flag that enforces no undefined symbols.
19920 no_undefined_flag=$lt_no_undefined_flag
19922 # Flag to hardcode \$libdir into a binary during linking.
19923 # This must work even if \$libdir does not exist
19924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19926 # Whether we need a single "-rpath" flag with a separated argument.
19927 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19929 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19930 # DIR into the resulting binary.
19931 hardcode_direct=$hardcode_direct
19933 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19934 # DIR into the resulting binary and the resulting library dependency is
19935 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19936 # library is relocated.
19937 hardcode_direct_absolute=$hardcode_direct_absolute
19939 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19940 # into the resulting binary.
19941 hardcode_minus_L=$hardcode_minus_L
19943 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19944 # into the resulting binary.
19945 hardcode_shlibpath_var=$hardcode_shlibpath_var
19947 # Set to "yes" if building a shared library automatically hardcodes DIR
19948 # into the library and all subsequent libraries and executables linked
19950 hardcode_automatic=$hardcode_automatic
19952 # Set to yes if linker adds runtime paths of dependent libraries
19953 # to runtime path list.
19954 inherit_rpath=$inherit_rpath
19956 # Whether libtool must link a program against all its dependency libraries.
19957 link_all_deplibs=$link_all_deplibs
19959 # Set to "yes" if exported symbols are required.
19960 always_export_symbols=$always_export_symbols
19962 # The commands to list exported symbols.
19963 export_symbols_cmds=$lt_export_symbols_cmds
19965 # Symbols that should not be listed in the preloaded symbols.
19966 exclude_expsyms=$lt_exclude_expsyms
19968 # Symbols that must always be exported.
19969 include_expsyms=$lt_include_expsyms
19971 # Commands necessary for linking programs (against libraries) with templates.
19972 prelink_cmds=$lt_prelink_cmds
19974 # Commands necessary for finishing linking programs.
19975 postlink_cmds=$lt_postlink_cmds
19977 # Specify filename containing input files.
19978 file_list_spec=$lt_file_list_spec
19980 # How to hardcode a shared library path into an executable.
19981 hardcode_action=$hardcode_action
19983 # ### END LIBTOOL CONFIG
19989 cat <<\_LT_EOF >> "$cfgfile"
19990 # AIX sometimes has problems with the GCC collect2 program. For some
19991 # reason, if we set the COLLECT_NAMES environment variable, the problems
19992 # vanish in a puff of smoke.
19993 if test "X${COLLECT_NAMES+set}" != Xset; then
19995 export COLLECT_NAMES
20002 ltmain="$ac_aux_dir/ltmain.sh"
20005 # We use sed instead of cat because bash on DJGPP gets confused if
20006 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20007 # text mode, it properly converts lines to CR/LF. This bash problem
20008 # is reportedly fixed, but why not run on old versions too?
20009 sed '$q' "$ltmain" >> "$cfgfile" \
20010 || (rm -f "$cfgfile"; exit 1)
20012 if test x"$xsi_shell" = xyes; then
20013 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20017 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20018 \ * ) func_dirname_result="${3}" ;;\
20020 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20021 && mv -f "$cfgfile.tmp" "$cfgfile" \
20022 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20023 test 0 -eq $? || _lt_function_replace_fail=:
20026 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20029 \ func_basename_result="${1##*/}"\
20030 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20031 && mv -f "$cfgfile.tmp" "$cfgfile" \
20032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20033 test 0 -eq $? || _lt_function_replace_fail=:
20036 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20037 func_dirname_and_basename ()\
20040 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20041 \ * ) func_dirname_result="${3}" ;;\
20043 \ func_basename_result="${1##*/}"\
20044 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20045 && mv -f "$cfgfile.tmp" "$cfgfile" \
20046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20047 test 0 -eq $? || _lt_function_replace_fail=:
20050 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20053 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20054 \ # positional parameters, so assign one to ordinary parameter first.\
20055 \ func_stripname_result=${3}\
20056 \ func_stripname_result=${func_stripname_result#"${1}"}\
20057 \ func_stripname_result=${func_stripname_result%"${2}"}\
20058 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20059 && mv -f "$cfgfile.tmp" "$cfgfile" \
20060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20061 test 0 -eq $? || _lt_function_replace_fail=:
20064 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20065 func_split_long_opt ()\
20067 \ func_split_long_opt_name=${1%%=*}\
20068 \ func_split_long_opt_arg=${1#*=}\
20069 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20070 && mv -f "$cfgfile.tmp" "$cfgfile" \
20071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20072 test 0 -eq $? || _lt_function_replace_fail=:
20075 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20076 func_split_short_opt ()\
20078 \ func_split_short_opt_arg=${1#??}\
20079 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20080 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20081 && mv -f "$cfgfile.tmp" "$cfgfile" \
20082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20083 test 0 -eq $? || _lt_function_replace_fail=:
20086 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20090 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20091 \ *) func_lo2o_result=${1} ;;\
20093 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20094 && mv -f "$cfgfile.tmp" "$cfgfile" \
20095 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20096 test 0 -eq $? || _lt_function_replace_fail=:
20099 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20102 func_xform_result=${1%.*}.lo\
20103 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20104 && mv -f "$cfgfile.tmp" "$cfgfile" \
20105 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20106 test 0 -eq $? || _lt_function_replace_fail=:
20109 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20112 func_arith_result=$(( $* ))\
20113 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20114 && mv -f "$cfgfile.tmp" "$cfgfile" \
20115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20116 test 0 -eq $? || _lt_function_replace_fail=:
20119 sed -e '/^func_len ()$/,/^} # func_len /c\
20122 func_len_result=${#1}\
20123 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20124 && mv -f "$cfgfile.tmp" "$cfgfile" \
20125 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20126 test 0 -eq $? || _lt_function_replace_fail=:
20130 if test x"$lt_shell_append" = xyes; then
20131 sed -e '/^func_append ()$/,/^} # func_append /c\
20134 eval "${1}+=\\${2}"\
20135 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20136 && mv -f "$cfgfile.tmp" "$cfgfile" \
20137 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20138 test 0 -eq $? || _lt_function_replace_fail=:
20141 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20142 func_append_quoted ()\
20144 \ func_quote_for_eval "${2}"\
20145 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20146 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20147 && mv -f "$cfgfile.tmp" "$cfgfile" \
20148 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20149 test 0 -eq $? || _lt_function_replace_fail=:
20152 # Save a `func_append' function call where possible by direct use of '+='
20153 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20154 && mv -f "$cfgfile.tmp" "$cfgfile" \
20155 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20156 test 0 -eq $? || _lt_function_replace_fail=:
20158 # Save a `func_append' function call even when '+=' is not available
20159 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20160 && mv -f "$cfgfile.tmp" "$cfgfile" \
20161 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20162 test 0 -eq $? || _lt_function_replace_fail=:
20165 if test x"$_lt_function_replace_fail" = x":"; then
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20167 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20171 mv -f "$cfgfile" "$ofile" ||
20172 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20183 ac_clean_files=$ac_clean_files_save
20185 test $ac_write_fail = 0 ||
20186 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20189 # configure is writing to config.log, and then calls config.status.
20190 # config.status does its own redirection, appending to config.log.
20191 # Unfortunately, on DOS this fails, as config.log is still kept open
20192 # by configure, so config.status won't be able to write to it; its
20193 # output is simply discarded. So we exec the FD to /dev/null,
20194 # effectively closing config.log, so it can be properly (re)opened and
20195 # appended to by config.status. When coming back to configure, we
20196 # need to make the FD available again.
20197 if test "$no_create" != yes; then
20199 ac_config_status_args=
20200 test "$silent" = yes &&
20201 ac_config_status_args="$ac_config_status_args --quiet"
20203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20206 # would make configure fail if this is the last instruction.
20207 $ac_cs_success || as_fn_exit 1
20209 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20211 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}