2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXpm 3.5.10.
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='libXpm'
573 PACKAGE_TARNAME='libXpm'
574 PACKAGE_VERSION='3.5.10'
575 PACKAGE_STRING='libXpm 3.5.10'
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
698 MAINTAINER_MODE_FALSE
708 INSTALL_STRIP_PROGRAM
750 program_transform_name
763 enable_option_checking
764 enable_maintainer_mode
769 enable_dependency_tracking
773 enable_selective_werror
774 enable_strict_compilation
779 ac_precious_vars='build_alias
795 # Initialize some variables set by options.
797 ac_init_version=false
798 ac_unrecognized_opts=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
809 program_transform_name=s,x,x,
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 # Accept the important Cygnus configure options, so we can diagnose typos.
862 case $ac_dashdash$ac_option in
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
884 cache_file=config.cache ;;
886 -datadir | --datadir | --datadi | --datad)
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
898 -disable-* | --disable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
912 eval enable_$ac_useropt=no ;;
914 -docdir | --docdir | --docdi | --doc | --do)
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 -enable-* | --enable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
938 eval enable_$ac_useropt=\$ac_optarg ;;
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
953 -help | --help | --hel | --he | -h)
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 htmldir=$ac_optarg ;;
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
983 -libdir | --libdir | --libdi | --libd)
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
995 -localedir | --localedir | --localedi | --localed | --locale)
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1074 -psdir | --psdir | --psdi | --psd | --ps)
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 sbindir=$ac_optarg ;;
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 sharedstatedir=$ac_optarg ;;
1100 -site | --site | --sit)
1102 -site=* | --site=* | --sit=*)
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1142 eval with_$ac_useropt=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1158 eval with_$ac_useropt=no ;;
1161 # Obsolete; use --with-x.
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1178 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 case $ac_envvar in #(
1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189 eval $ac_envvar=\$ac_optarg
1190 export $ac_envvar ;;
1193 # FIXME: should be removed in autoconf 3.0.
1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205 as_fn_error $? "missing argument to $ac_option"
1208 if test -n "$ac_unrecognized_opts"; then
1209 case $enable_option_checking in
1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216 # Check all directory arguments for consistency.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1222 eval ac_val=\$$ac_var
1223 # Remove trailing slashes.
1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227 eval $ac_var=\$ac_val;;
1229 # Be sure to have absolute directory names.
1231 [\\/$]* | ?:[\\/]* ) continue;;
1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1242 target=$target_alias
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246 if test "x$build_alias" = x; then
1247 cross_compiling=maybe
1248 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1249 If a cross compiler is detected then cross compile mode will be used" >&2
1250 elif test "x$build_alias" != "x$host_alias"; then
1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258 test "$silent" = yes && exec 6>/dev/null
1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262 ac_ls_di=`ls -di .` &&
1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264 as_fn_error $? "working directory cannot be determined"
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266 as_fn_error $? "pwd does not report name of working directory"
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271 ac_srcdir_defaulted=yes
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir=`$as_dirname -- "$as_myself" ||
1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$as_myself" : 'X\(//\)[^/]' \| \
1276 X"$as_myself" : 'X\(//\)$' \| \
1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278 $as_echo X"$as_myself" |
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1301 ac_srcdir_defaulted=no
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 # Report the --help message.
1331 if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1335 \`configure' configures libXpm 3.5.10 to adapt to many kinds of systems.
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE. See below for descriptions of some of the useful variables.
1342 Defaults for the options are specified in brackets.
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking ...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355 Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1366 For better control, use the options below.
1368 Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/libXpm]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1393 --program-prefix=PREFIX prepend PREFIX to installed program names
1394 --program-suffix=SUFFIX append SUFFIX to installed program names
1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1398 --build=BUILD configure for building on BUILD [guessed]
1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403 if test -n "$ac_init_help"; then
1404 case $ac_init_help in
1405 short | recursive ) echo "Configuration of libXpm 3.5.10:";;
1410 --disable-option-checking ignore unrecognized --enable/--with options
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --enable-maintainer-mode enable make rules and dependencies not useful
1414 (and sometimes confusing) to the casual installer
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-dependency-tracking speeds up one-time build
1420 --enable-dependency-tracking do not reject slow dependency extractors
1421 --disable-libtool-lock avoid locking (might break parallel builds)
1422 --disable-selective-werror
1423 Turn off selective compiler errors. (default:
1425 --enable-strict-compilation
1426 Enable all warnings from compiler and make them
1427 errors (default: disabled)
1428 --enable-silent-rules less verbose build output (undo: `make V=1')
1429 --disable-silent-rules verbose build output (undo: `make V=0')
1430 --enable-stat-zfile Search for files with .Z & .gz extensions
1431 automatically [default=yes]
1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1436 --with-pic try to use only PIC/non-PIC objects [default=use
1438 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1439 --with-sysroot=DIR Search for dependent libraries within DIR
1440 (or the compiler's sysroot if not specified).
1441 --with-localedir=<path> Path to install message files in (default:
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1453 PKG_CONFIG path to pkg-config utility
1454 XPM_CFLAGS C compiler flags for XPM, overriding pkg-config
1455 XPM_LIBS linker flags for XPM, overriding pkg-config
1456 SXPM_CFLAGS C compiler flags for SXPM, overriding pkg-config
1457 SXPM_LIBS linker flags for SXPM, overriding pkg-config
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1462 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1492 .) # We are building in place.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1525 libXpm configure 3.5.10
1526 generated by GNU Autoconf 2.68
1528 Copyright (C) 2010 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1539 # ac_fn_c_try_compile LINENO
1540 # --------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1575 } # ac_fn_c_try_compile
1577 # ac_fn_c_try_link LINENO
1578 # -----------------------
1579 # Try to link conftest.$ac_ext, and return whether this succeeded.
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext conftest$ac_exeext
1584 if { { ac_try="$ac_link"
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_link") 2>conftest.err
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest$ac_exeext && {
1603 test "$cross_compiling" = yes ||
1604 $as_test_x conftest$ac_exeext
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1613 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1614 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1615 # interfere with the next link command; also delete a directory that is
1616 # left behind by Apple's compiler. We do this before executing the actions.
1617 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1621 } # ac_fn_c_try_link
1623 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists and can be compiled using the include files in
1626 # INCLUDES, setting the cache variable VAR accordingly.
1627 ac_fn_c_check_header_compile ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 $as_echo_n "checking for $2... " >&6; }
1632 if eval \${$3+:} false; then :
1633 $as_echo_n "(cached) " >&6
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1640 if ac_fn_c_try_compile "$LINENO"; then :
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 } # ac_fn_c_check_header_compile
1654 # ac_fn_c_try_cpp LINENO
1655 # ----------------------
1656 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_cpp conftest.$ac_ext"
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } > conftest.i && {
1676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1691 # ac_fn_c_try_run LINENO
1692 # ----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694 # that executables *can* be run.
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_link"
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>&5
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709 { { case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_try") 2>&5
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; }; }; then :
1721 $as_echo "$as_me: program exited with status $ac_status" >&5
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1725 ac_retval=$ac_status
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1733 # ac_fn_c_check_func LINENO FUNC VAR
1734 # ----------------------------------
1735 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1736 ac_fn_c_check_func ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742 $as_echo_n "(cached) " >&6
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1748 #define $2 innocuous_$2
1750 /* System header to define __stub macros and hopefully few prototypes,
1751 which can conflict with char $2 (); below.
1752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1753 <limits.h> exists even on freestanding compilers. */
1756 # include <limits.h>
1758 # include <assert.h>
1763 /* Override any GCC internal prototype to avoid an error.
1764 Use char because int might match the return type of a GCC
1765 builtin and then its argument prototype would still apply. */
1770 /* The GNU C library defines this for functions which it implements
1771 to always fail with ENOSYS. Some functions are actually named
1772 something starting with __ and the normal name is an alias. */
1773 #if defined __stub_$2 || defined __stub___$2
1785 if ac_fn_c_try_link "$LINENO"; then :
1790 rm -f core conftest.err conftest.$ac_objext \
1791 conftest$ac_exeext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 } # ac_fn_c_check_func
1800 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1801 # ---------------------------------------------
1802 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1804 ac_fn_c_check_decl ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 as_decl_name=`echo $2|sed 's/ *(.*//'`
1808 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1810 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1811 if eval \${$3+:} false; then :
1812 $as_echo_n "(cached) " >&6
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1820 #ifndef $as_decl_name
1822 (void) $as_decl_use;
1824 (void) $as_decl_name;
1832 if ac_fn_c_try_compile "$LINENO"; then :
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 } # ac_fn_c_check_decl
1845 cat >config.log <<_ACEOF
1846 This file contains any messages produced by compilers while
1847 running configure, to aid debugging if configure makes a mistake.
1849 It was created by libXpm $as_me 3.5.10, which was
1850 generated by GNU Autoconf 2.68. Invocation command line was
1862 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1863 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1864 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1865 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1866 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1868 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1869 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1871 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1872 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1873 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1874 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1875 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1876 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1877 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir=.
1886 $as_echo "PATH: $as_dir"
1902 # Keep a trace of the command line.
1903 # Strip out --no-create and --no-recursion so they do not pile up.
1904 # Strip out --silent because we don't want to record it for future runs.
1905 # Also quote any args containing shell meta-characters.
1906 # Make two passes to allow for proper duplicate-argument suppression.
1910 ac_must_keep_next=false
1916 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1917 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1918 | -silent | --silent | --silen | --sile | --sil)
1921 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1926 as_fn_append ac_configure_args1 " '$ac_arg'"
1927 if test $ac_must_keep_next = true; then
1928 ac_must_keep_next=false # Got value, back to normal.
1931 *=* | --config-cache | -C | -disable-* | --disable-* \
1932 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1933 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1934 | -with-* | --with-* | -without-* | --without-* | --x)
1935 case "$ac_configure_args0 " in
1936 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1939 -* ) ac_must_keep_next=true ;;
1942 as_fn_append ac_configure_args " '$ac_arg'"
1947 { ac_configure_args0=; unset ac_configure_args0;}
1948 { ac_configure_args1=; unset ac_configure_args1;}
1950 # When interrupted or exit'd, cleanup temporary files, and complete
1951 # config.log. We remove comments because anyway the quotes in there
1952 # would cause problems or look ugly.
1953 # WARNING: Use '\'' to represent an apostrophe within the trap.
1954 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1955 trap 'exit_status=$?
1956 # Save into config.log some information that might help in debugging.
1960 $as_echo "## ---------------- ##
1961 ## Cache variables. ##
1962 ## ---------------- ##"
1964 # The following way of writing the cache mishandles newlines in values,
1966 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1967 eval ac_val=\$$ac_var
1971 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1975 _ | IFS | as_nl) ;; #(
1976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1977 *) { eval $ac_var=; unset $ac_var;} ;;
1982 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1983 *${as_nl}ac_space=\ *)
1985 "s/'\''/'\''\\\\'\'''\''/g;
1986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1996 $as_echo "## ----------------- ##
1997 ## Output variables. ##
1998 ## ----------------- ##"
2000 for ac_var in $ac_subst_vars
2002 eval ac_val=\$$ac_var
2004 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006 $as_echo "$ac_var='\''$ac_val'\''"
2010 if test -n "$ac_subst_files"; then
2011 $as_echo "## ------------------- ##
2012 ## File substitutions. ##
2013 ## ------------------- ##"
2015 for ac_var in $ac_subst_files
2017 eval ac_val=\$$ac_var
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 $as_echo "$ac_var='\''$ac_val'\''"
2026 if test -s confdefs.h; then
2027 $as_echo "## ----------- ##
2034 test "$ac_signal" != 0 &&
2035 $as_echo "$as_me: caught signal $ac_signal"
2036 $as_echo "$as_me: exit $exit_status"
2038 rm -f core *.core core.conftest.* &&
2039 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2042 for ac_signal in 1 2 13 15; do
2043 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2047 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2048 rm -f -r conftest* confdefs.h
2050 $as_echo "/* confdefs.h */" > confdefs.h
2052 # Predefined preprocessor variables.
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_NAME "$PACKAGE_NAME"
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_STRING "$PACKAGE_STRING"
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_URL "$PACKAGE_URL"
2079 # Let the site file select an alternate cache file if it wants to.
2080 # Prefer an explicitly selected file to automatically selected ones.
2083 if test -n "$CONFIG_SITE"; then
2084 # We do not want a PATH search for config.site.
2085 case $CONFIG_SITE in #((
2086 -*) ac_site_file1=./$CONFIG_SITE;;
2087 */*) ac_site_file1=$CONFIG_SITE;;
2088 *) ac_site_file1=./$CONFIG_SITE;;
2090 elif test "x$prefix" != xNONE; then
2091 ac_site_file1=$prefix/share/config.site
2092 ac_site_file2=$prefix/etc/config.site
2094 ac_site_file1=$ac_default_prefix/share/config.site
2095 ac_site_file2=$ac_default_prefix/etc/config.site
2097 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2099 test "x$ac_site_file" = xNONE && continue
2100 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2102 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2103 sed 's/^/| /' "$ac_site_file" >&5
2105 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2107 as_fn_error $? "failed to load site script $ac_site_file
2108 See \`config.log' for more details" "$LINENO" 5; }
2112 if test -r "$cache_file"; then
2113 # Some versions of bash will fail to source /dev/null (special files
2114 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2115 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2117 $as_echo "$as_me: loading cache $cache_file" >&6;}
2119 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2120 *) . "./$cache_file";;
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2125 $as_echo "$as_me: creating cache $cache_file" >&6;}
2129 # Check that the precious variables saved in the cache have kept the same
2131 ac_cache_corrupted=false
2132 for ac_var in $ac_precious_vars; do
2133 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2134 eval ac_new_set=\$ac_env_${ac_var}_set
2135 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2136 eval ac_new_val=\$ac_env_${ac_var}_value
2137 case $ac_old_set,$ac_new_set in
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2140 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2141 ac_cache_corrupted=: ;;
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2144 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2145 ac_cache_corrupted=: ;;
2148 if test "x$ac_old_val" != "x$ac_new_val"; then
2149 # differences in whitespace do not lead to failure.
2150 ac_old_val_w=`echo x $ac_old_val`
2151 ac_new_val_w=`echo x $ac_new_val`
2152 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2154 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2155 ac_cache_corrupted=:
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2158 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2159 eval $ac_var=\$ac_old_val
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2162 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2164 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2167 # Pass precious variables to config.status.
2168 if test "$ac_new_set" = set; then
2170 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2171 *) ac_arg=$ac_var=$ac_new_val ;;
2173 case " $ac_configure_args " in
2174 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2175 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2179 if $ac_cache_corrupted; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2183 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2184 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2186 ## -------------------- ##
2187 ## Main body of script. ##
2188 ## -------------------- ##
2191 ac_cpp='$CPP $CPPFLAGS'
2192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2198 ac_config_headers="$ac_config_headers config.h"
2202 # Initialize Automake
2203 am__api_version='1.11'
2206 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2207 if test -f "$ac_dir/install-sh"; then
2209 ac_install_sh="$ac_aux_dir/install-sh -c"
2211 elif test -f "$ac_dir/install.sh"; then
2213 ac_install_sh="$ac_aux_dir/install.sh -c"
2215 elif test -f "$ac_dir/shtool"; then
2217 ac_install_sh="$ac_aux_dir/shtool install -c"
2221 if test -z "$ac_aux_dir"; then
2222 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2225 # These three variables are undocumented and unsupported,
2226 # and are intended to be withdrawn in a future Autoconf release.
2227 # They can cause serious problems if a builder's source tree is in a directory
2228 # whose full name contains unusual characters.
2229 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2230 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2231 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2234 # Find a good install program. We prefer a C program (faster),
2235 # so one script is as good as another. But avoid the broken or
2236 # incompatible versions:
2237 # SysV /etc/install, /usr/sbin/install
2238 # SunOS /usr/etc/install
2239 # IRIX /sbin/install
2241 # AmigaOS /C/install, which installs bootblocks on floppy discs
2242 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2243 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2244 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2245 # OS/2's system install, which has a completely different semantic
2246 # ./install, which can be erroneously created by make from ./install.sh.
2247 # Reject install programs that cannot install multiple files.
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2249 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2250 if test -z "$INSTALL"; then
2251 if ${ac_cv_path_install+:} false; then :
2252 $as_echo_n "(cached) " >&6
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 test -z "$as_dir" && as_dir=.
2259 # Account for people who put trailing slashes in PATH elements.
2260 case $as_dir/ in #((
2261 ./ | .// | /[cC]/* | \
2262 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2263 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2266 # OSF1 and SCO ODT 3.0 have their own names for install.
2267 # Don't use installbsd from OSF since it installs stuff as root
2269 for ac_prog in ginstall scoinst install; do
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2272 if test $ac_prog = install &&
2273 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274 # AIX install. It has an incompatible calling convention.
2276 elif test $ac_prog = install &&
2277 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278 # program-specific install script used by HP pwplus--don't use.
2281 rm -rf conftest.one conftest.two conftest.dir
2282 echo one > conftest.one
2283 echo two > conftest.two
2285 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2286 test -s conftest.one && test -s conftest.two &&
2287 test -s conftest.dir/conftest.one &&
2288 test -s conftest.dir/conftest.two
2290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2303 rm -rf conftest.one conftest.two conftest.dir
2306 if test "${ac_cv_path_install+set}" = set; then
2307 INSTALL=$ac_cv_path_install
2309 # As a last resort, use the slow shell script. Don't cache a
2310 # value for INSTALL within a source directory, because that will
2311 # break other packages using the cache if that directory is
2312 # removed, or if the value is a relative name.
2313 INSTALL=$ac_install_sh
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2317 $as_echo "$INSTALL" >&6; }
2319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2320 # It thinks the first close brace ends the variable substitution.
2321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2328 $as_echo_n "checking whether build environment is sane... " >&6; }
2331 echo timestamp > conftest.file
2332 # Reject unsafe characters in $srcdir or the absolute working directory
2333 # name. Accept space and tab only in the latter.
2337 *[\\\"\#\$\&\'\`$am_lf]*)
2338 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2341 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2342 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2345 # Do `set' in a subshell so we don't clobber the current shell's
2346 # arguments. Must try -L first in case configure is actually a
2347 # symlink; some systems play weird games with the mod time of symlinks
2348 # (eg FreeBSD returns the mod time of the symlink's containing
2351 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2352 if test "$*" = "X"; then
2354 set X `ls -t "$srcdir/configure" conftest.file`
2357 if test "$*" != "X $srcdir/configure conftest.file" \
2358 && test "$*" != "X conftest.file $srcdir/configure"; then
2360 # If neither matched, then we have a broken ls. This can happen
2361 # if, for instance, CONFIG_SHELL is bash and it inherits a
2362 # broken ls alias from the environment. This has actually
2363 # happened. Such a system could not be considered "sane".
2364 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2365 alias in your environment" "$LINENO" 5
2368 test "$2" = conftest.file
2374 as_fn_error $? "newly created file is older than distributed files!
2375 Check your system clock" "$LINENO" 5
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2378 $as_echo "yes" >&6; }
2379 test "$program_prefix" != NONE &&
2380 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2381 # Use a double $ so make ignores it.
2382 test "$program_suffix" != NONE &&
2383 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2384 # Double any \ or $.
2385 # By default was `s,x,x', remove it if useless.
2386 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2387 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2389 # expand $ac_aux_dir to an absolute path
2390 am_aux_dir=`cd $ac_aux_dir && pwd`
2392 if test x"${MISSING+set}" != xset; then
2395 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2397 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2400 # Use eval to expand $SHELL
2401 if eval "$MISSING --run true"; then
2402 am_missing_run="$MISSING --run "
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2406 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2409 if test x"${install_sh}" != xset; then
2412 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2414 install_sh="\${SHELL} $am_aux_dir/install-sh"
2418 # Installed binaries are usually stripped using `strip' when the user
2419 # run `make install-strip'. However `strip' might not be the right
2420 # tool to use in cross-compilation environments, therefore Automake
2421 # will honor the `STRIP' environment variable to overrule this program.
2422 if test "$cross_compiling" != no; then
2423 if test -n "$ac_tool_prefix"; then
2424 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2425 set dummy ${ac_tool_prefix}strip; ac_word=$2
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2427 $as_echo_n "checking for $ac_word... " >&6; }
2428 if ${ac_cv_prog_STRIP+:} false; then :
2429 $as_echo_n "(cached) " >&6
2431 if test -n "$STRIP"; then
2432 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 STRIP=$ac_cv_prog_STRIP
2452 if test -n "$STRIP"; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2454 $as_echo "$STRIP" >&6; }
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2457 $as_echo "no" >&6; }
2462 if test -z "$ac_cv_prog_STRIP"; then
2464 # Extract the first word of "strip", so it can be a program name with args.
2465 set dummy strip; ac_word=$2
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2469 $as_echo_n "(cached) " >&6
2471 if test -n "$ac_ct_STRIP"; then
2472 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_ac_ct_STRIP="strip"
2482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2492 if test -n "$ac_ct_STRIP"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2494 $as_echo "$ac_ct_STRIP" >&6; }
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497 $as_echo "no" >&6; }
2500 if test "x$ac_ct_STRIP" = x; then
2503 case $cross_compiling:$ac_tool_warned in
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2507 ac_tool_warned=yes ;;
2512 STRIP="$ac_cv_prog_STRIP"
2516 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2519 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2520 if test -z "$MKDIR_P"; then
2521 if ${ac_cv_path_mkdir+:} false; then :
2522 $as_echo_n "(cached) " >&6
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2528 test -z "$as_dir" && as_dir=.
2529 for ac_prog in mkdir gmkdir; do
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2532 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2533 'mkdir (GNU coreutils) '* | \
2534 'mkdir (coreutils) '* | \
2535 'mkdir (fileutils) '4.1*)
2536 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2546 test -d ./--version && rmdir ./--version
2547 if test "${ac_cv_path_mkdir+set}" = set; then
2548 MKDIR_P="$ac_cv_path_mkdir -p"
2550 # As a last resort, use the slow shell script. Don't cache a
2551 # value for MKDIR_P within a source directory, because that will
2552 # break other packages using the cache if that directory is
2553 # removed, or if the value is a relative name.
2554 MKDIR_P="$ac_install_sh -d"
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2558 $as_echo "$MKDIR_P" >&6; }
2562 [\\/$]* | ?:[\\/]*) ;;
2563 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2566 for ac_prog in gawk mawk nawk awk
2568 # Extract the first word of "$ac_prog", so it can be a program name with args.
2569 set dummy $ac_prog; ac_word=$2
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571 $as_echo_n "checking for $ac_word... " >&6; }
2572 if ${ac_cv_prog_AWK+:} false; then :
2573 $as_echo_n "(cached) " >&6
2575 if test -n "$AWK"; then
2576 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 ac_cv_prog_AWK="$ac_prog"
2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 if test -n "$AWK"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2598 $as_echo "$AWK" >&6; }
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601 $as_echo "no" >&6; }
2605 test -n "$AWK" && break
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2609 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2611 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2612 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2613 $as_echo_n "(cached) " >&6
2615 cat >conftest.make <<\_ACEOF
2618 @echo '@@@%%%=$(MAKE)=@@@%%%'
2620 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2621 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2623 eval ac_cv_prog_make_${ac_make}_set=yes;;
2625 eval ac_cv_prog_make_${ac_make}_set=no;;
2629 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2631 $as_echo "yes" >&6; }
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 SET_MAKE="MAKE=${MAKE-make}"
2639 rm -rf .tst 2>/dev/null
2640 mkdir .tst 2>/dev/null
2641 if test -d .tst; then
2646 rmdir .tst 2>/dev/null
2648 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2649 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2650 # is not polluted with repeated "-I."
2651 am__isrc=' -I$(srcdir)'
2652 # test to see if srcdir already configured
2653 if test -f $srcdir/config.status; then
2654 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2658 # test whether we have cygpath
2659 if test -z "$CYGPATH_W"; then
2660 if (cygpath --version) >/dev/null 2>/dev/null; then
2661 CYGPATH_W='cygpath -w'
2668 # Define the identity of the package.
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE "$PACKAGE"
2678 cat >>confdefs.h <<_ACEOF
2679 #define VERSION "$VERSION"
2682 # Some tools Automake needs.
2684 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2687 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2690 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2693 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2696 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2698 # We need awk for the "check" target. The system "awk" is bad on
2700 # Always define AMTAR for backward compatibility.
2702 AMTAR=${AMTAR-"${am_missing_run}tar"}
2704 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2712 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2713 # Check whether --enable-maintainer-mode was given.
2714 if test "${enable_maintainer_mode+set}" = set; then :
2715 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2717 USE_MAINTAINER_MODE=no
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2721 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2722 if test $USE_MAINTAINER_MODE = yes; then
2723 MAINTAINER_MODE_TRUE=
2724 MAINTAINER_MODE_FALSE='#'
2726 MAINTAINER_MODE_TRUE='#'
2727 MAINTAINER_MODE_FALSE=
2730 MAINT=$MAINTAINER_MODE_TRUE
2734 # Initialize libtool
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2738 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2744 macro_revision='1.3293'
2758 ltmain="$ac_aux_dir/ltmain.sh"
2760 # Make sure we can run config.sub.
2761 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2762 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2765 $as_echo_n "checking build system type... " >&6; }
2766 if ${ac_cv_build+:} false; then :
2767 $as_echo_n "(cached) " >&6
2769 ac_build_alias=$build_alias
2770 test "x$ac_build_alias" = x &&
2771 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2772 test "x$ac_build_alias" = x &&
2773 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2774 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2775 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2779 $as_echo "$ac_cv_build" >&6; }
2780 case $ac_cv_build in
2782 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2785 ac_save_IFS=$IFS; IFS='-'
2791 # Remember, the first character of IFS is used to create $*,
2792 # except with old shells:
2795 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2799 $as_echo_n "checking host system type... " >&6; }
2800 if ${ac_cv_host+:} false; then :
2801 $as_echo_n "(cached) " >&6
2803 if test "x$host_alias" = x; then
2804 ac_cv_host=$ac_cv_build
2806 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2812 $as_echo "$ac_cv_host" >&6; }
2815 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2818 ac_save_IFS=$IFS; IFS='-'
2824 # Remember, the first character of IFS is used to create $*,
2825 # except with old shells:
2828 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2831 # Backslashify metacharacters that are still active within
2832 # double-quoted strings.
2833 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2835 # Same as above, but do not quote variable references.
2836 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2838 # Sed substitution to delay expansion of an escaped shell variable in a
2839 # double_quote_subst'ed string.
2840 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2842 # Sed substitution to delay expansion of an escaped single quote.
2843 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2845 # Sed substitution to avoid accidental globbing in evaled expressions
2846 no_glob_subst='s/\*/\\\*/g'
2848 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2849 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2850 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2853 $as_echo_n "checking how to print strings... " >&6; }
2854 # Test print first, because it will be a builtin if present.
2855 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2856 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2858 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2861 # Use this function as a fallback that always works.
2862 func_fallback_echo ()
2864 eval 'cat <<_LTECHO_EOF
2868 ECHO='func_fallback_echo'
2871 # func_echo_all arg...
2872 # Invoke $ECHO with all args, space-separated.
2879 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2880 $as_echo "printf" >&6; } ;;
2881 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2882 $as_echo "print -r" >&6; } ;;
2883 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2884 $as_echo "cat" >&6; } ;;
2900 DEPDIR="${am__leading_dot}deps"
2902 ac_config_commands="$ac_config_commands depfiles"
2905 am_make=${MAKE-make}
2906 cat > confinc << 'END'
2908 @echo this is the am__doit target
2911 # If we don't find an include directive, just comment out the code.
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2913 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2917 # First try GNU make style include.
2918 echo "include confinc" > confmf
2919 # Ignore all kinds of additional output from `make'.
2920 case `$am_make -s -f confmf 2> /dev/null` in #(
2921 *the\ am__doit\ target*)
2927 # Now try BSD make style include.
2928 if test "$am__include" = "#"; then
2929 echo '.include "confinc"' > confmf
2930 case `$am_make -s -f confmf 2> /dev/null` in #(
2931 *the\ am__doit\ target*)
2932 am__include=.include
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2941 $as_echo "$_am_result" >&6; }
2942 rm -f confinc confmf
2944 # Check whether --enable-dependency-tracking was given.
2945 if test "${enable_dependency_tracking+set}" = set; then :
2946 enableval=$enable_dependency_tracking;
2949 if test "x$enable_dependency_tracking" != xno; then
2950 am_depcomp="$ac_aux_dir/depcomp"
2953 if test "x$enable_dependency_tracking" != xno; then
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 if test -n "$ac_tool_prefix"; then
2968 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_CC+:} false; then :
2973 $as_echo_n "(cached) " >&6
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 if test -n "$CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998 $as_echo "$CC" >&6; }
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3006 if test -z "$ac_cv_prog_CC"; then
3008 # Extract the first word of "gcc", so it can be a program name with args.
3009 set dummy gcc; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3013 $as_echo_n "(cached) " >&6
3015 if test -n "$ac_ct_CC"; then
3016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_ac_ct_CC="gcc"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036 if test -n "$ac_ct_CC"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3038 $as_echo "$ac_ct_CC" >&6; }
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3044 if test "x$ac_ct_CC" = x; then
3047 case $cross_compiling:$ac_tool_warned in
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3051 ac_tool_warned=yes ;;
3059 if test -z "$CC"; then
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}cc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3078 ac_cv_prog_CC="${ac_tool_prefix}cc"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3100 if test -z "$CC"; then
3101 # Extract the first word of "cc", so it can be a program name with args.
3102 set dummy cc; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_CC+:} false; then :
3106 $as_echo_n "(cached) " >&6
3108 if test -n "$CC"; then
3109 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3120 ac_prog_rejected=yes
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 if test $ac_prog_rejected = yes; then
3132 # We found a bogon in the path, so make sure we never use it.
3133 set dummy $ac_cv_prog_CC
3135 if test $# != 0; then
3136 # We chose a different compiler from the bogus one.
3137 # However, it has the same basename, so the bogon will be chosen
3138 # first if we set CC to just the basename; use the full file name.
3140 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3146 if test -n "$CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3156 if test -z "$CC"; then
3157 if test -n "$ac_tool_prefix"; then
3158 for ac_prog in cl.exe
3160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_CC+:} false; then :
3165 $as_echo_n "(cached) " >&6
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 if test -n "$CC"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190 $as_echo "$CC" >&6; }
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3197 test -n "$CC" && break
3200 if test -z "$CC"; then
3202 for ac_prog in cl.exe
3204 # Extract the first word of "$ac_prog", so it can be a program name with args.
3205 set dummy $ac_prog; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3209 $as_echo_n "(cached) " >&6
3211 if test -n "$ac_ct_CC"; then
3212 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 test -z "$as_dir" && as_dir=.
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3221 ac_cv_prog_ac_ct_CC="$ac_prog"
3222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3232 if test -n "$ac_ct_CC"; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3234 $as_echo "$ac_ct_CC" >&6; }
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3241 test -n "$ac_ct_CC" && break
3244 if test "x$ac_ct_CC" = x; then
3247 case $cross_compiling:$ac_tool_warned in
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251 ac_tool_warned=yes ;;
3260 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error $? "no acceptable C compiler found in \$PATH
3263 See \`config.log' for more details" "$LINENO" 5; }
3265 # Provide some information about the compiler.
3266 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3269 for ac_option in --version -v -V -qversion; do
3270 { { ac_try="$ac_compiler $ac_option >&5"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3279 if test -s conftest.err; then
3281 ... rest of stderr output deleted ...
3282 10q' conftest.err >conftest.er1
3283 cat conftest.er1 >&5
3285 rm -f conftest.er1 conftest.err
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3301 ac_clean_files_save=$ac_clean_files
3302 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3303 # Try to create an executable without -o first, disregard a.out.
3304 # It will help us diagnose broken compilers, and finding out an intuition
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3307 $as_echo_n "checking whether the C compiler works... " >&6; }
3308 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3310 # The possible output files:
3311 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3314 for ac_file in $ac_files
3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3318 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3323 if { { ac_try="$ac_link_default"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_link_default") 2>&5
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; then :
3334 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3335 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3336 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3337 # so that the user can short-circuit this test for compilers unknown to
3339 for ac_file in $ac_files ''
3341 test -f "$ac_file" || continue
3343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3346 # We found the default executable, but exeext='' is most
3350 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3352 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3354 # We set ac_cv_exeext here because the later test for it is not
3355 # safe: cross compilers may not add the suffix if given an `-o'
3356 # argument, so we may need to know it at that point already.
3357 # Even if this section looks crufty: it has the advantage of
3364 test "$ac_cv_exeext" = no && ac_cv_exeext=
3369 if test -z "$ac_file"; then :
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 $as_echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377 as_fn_error 77 "C compiler cannot create executables
3378 See \`config.log' for more details" "$LINENO" 5; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381 $as_echo "yes" >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3384 $as_echo_n "checking for C compiler default output file name... " >&6; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3386 $as_echo "$ac_file" >&6; }
3387 ac_exeext=$ac_cv_exeext
3389 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3390 ac_clean_files=$ac_clean_files_save
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3392 $as_echo_n "checking for suffix of executables... " >&6; }
3393 if { { ac_try="$ac_link"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_link") 2>&5
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; then :
3404 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3405 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3406 # work properly (i.e., refer to `conftest.exe'), while it won't with
3408 for ac_file in conftest.exe conftest conftest.*; do
3409 test -f "$ac_file" || continue
3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3421 See \`config.log' for more details" "$LINENO" 5; }
3423 rm -f conftest conftest$ac_cv_exeext
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3425 $as_echo "$ac_cv_exeext" >&6; }
3427 rm -f conftest.$ac_ext
3428 EXEEXT=$ac_cv_exeext
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3436 FILE *f = fopen ("conftest.out", "w");
3437 return ferror (f) || fclose (f) != 0;
3443 ac_clean_files="$ac_clean_files conftest.out"
3444 # Check that the compiler produces executables we can run. If not, either
3445 # the compiler is broken, or we cross compile.
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3447 $as_echo_n "checking whether we are cross compiling... " >&6; }
3448 if test "$cross_compiling" != yes; then
3449 { { ac_try="$ac_link"
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_link") 2>&5
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }
3460 if { ac_try='./conftest$ac_cv_exeext'
3461 { { case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_try") 2>&5
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }; }; then
3473 if test "$cross_compiling" = maybe; then
3476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $? "cannot run C compiled programs.
3479 If you meant to cross compile, use \`--host'.
3480 See \`config.log' for more details" "$LINENO" 5; }
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3485 $as_echo "$cross_compiling" >&6; }
3487 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3488 ac_clean_files=$ac_clean_files_save
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3490 $as_echo_n "checking for suffix of object files... " >&6; }
3491 if ${ac_cv_objext+:} false; then :
3492 $as_echo_n "(cached) " >&6
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3505 rm -f conftest.o conftest.obj
3506 if { { ac_try="$ac_compile"
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_compile") 2>&5
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; then :
3517 for ac_file in conftest.o conftest.obj conftest.*; do
3518 test -f "$ac_file" || continue;
3520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3521 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3526 $as_echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $? "cannot compute suffix of object files: cannot compile
3532 See \`config.log' for more details" "$LINENO" 5; }
3534 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3537 $as_echo "$ac_cv_objext" >&6; }
3538 OBJEXT=$ac_cv_objext
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3541 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3542 if ${ac_cv_c_compiler_gnu+:} false; then :
3543 $as_echo_n "(cached) " >&6
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3559 if ac_fn_c_try_compile "$LINENO"; then :
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3569 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3570 if test $ac_compiler_gnu = yes; then
3575 ac_test_CFLAGS=${CFLAGS+set}
3576 ac_save_CFLAGS=$CFLAGS
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3578 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3579 if ${ac_cv_prog_cc_g+:} false; then :
3580 $as_echo_n "(cached) " >&6
3582 ac_save_c_werror_flag=$ac_c_werror_flag
3583 ac_c_werror_flag=yes
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3597 if ac_fn_c_try_compile "$LINENO"; then :
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3612 if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_c_werror_flag=$ac_save_c_werror_flag
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3628 if ac_fn_c_try_compile "$LINENO"; then :
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 ac_c_werror_flag=$ac_save_c_werror_flag
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3639 $as_echo "$ac_cv_prog_cc_g" >&6; }
3640 if test "$ac_test_CFLAGS" = set; then
3641 CFLAGS=$ac_save_CFLAGS
3642 elif test $ac_cv_prog_cc_g = yes; then
3643 if test "$GCC" = yes; then
3649 if test "$GCC" = yes; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3656 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3657 if ${ac_cv_prog_cc_c89+:} false; then :
3658 $as_echo_n "(cached) " >&6
3660 ac_cv_prog_cc_c89=no
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3666 #include <sys/types.h>
3667 #include <sys/stat.h>
3668 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3669 struct buf { int x; };
3670 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3671 static char *e (p, i)
3677 static char *f (char * (*g) (char **, int), char **p, ...)
3682 s = g (p, va_arg (v,int));
3687 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3688 function prototypes and stuff, but not '\xHH' hex character constants.
3689 These don't provoke an error unfortunately, instead are silently treated
3690 as 'x'. The following induces an error, until -std is added to get
3691 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3692 array size at least. It's necessary to write '\x00'==0 to get something
3693 that's true only with -std. */
3694 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3696 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3697 inside strings and character constants. */
3699 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3701 int test (int i, double x);
3702 struct s1 {int (*f) (int a);};
3703 struct s2 {int (*f) (double a);};
3704 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3710 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3715 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3716 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3718 CC="$ac_save_CC $ac_arg"
3719 if ac_fn_c_try_compile "$LINENO"; then :
3720 ac_cv_prog_cc_c89=$ac_arg
3722 rm -f core conftest.err conftest.$ac_objext
3723 test "x$ac_cv_prog_cc_c89" != "xno" && break
3725 rm -f conftest.$ac_ext
3730 case "x$ac_cv_prog_cc_c89" in
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3733 $as_echo "none needed" >&6; } ;;
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3736 $as_echo "unsupported" >&6; } ;;
3738 CC="$CC $ac_cv_prog_cc_c89"
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3740 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3742 if test "x$ac_cv_prog_cc_c89" != xno; then :
3747 ac_cpp='$CPP $CPPFLAGS'
3748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752 depcc="$CC" am_compiler_list=
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3755 $as_echo_n "checking dependency style of $depcc... " >&6; }
3756 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3757 $as_echo_n "(cached) " >&6
3759 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3760 # We make a subdir and do the tests there. Otherwise we can end up
3761 # making bogus files that we don't know about and never remove. For
3762 # instance it was reported that on HP-UX the gcc test will end up
3763 # making a dummy file named `D' -- because `-MD' means `put the output
3766 # Copy depcomp to subdir because otherwise we won't find it if we're
3767 # using a relative directory.
3768 cp "$am_depcomp" conftest.dir
3770 # We will build objects and dependencies in a subdirectory because
3771 # it helps to detect inapplicable dependency modes. For instance
3772 # both Tru64's cc and ICC support -MD to output dependencies as a
3773 # side effect of compilation, but ICC will put the dependencies in
3774 # the current directory while Tru64 will put them in the object
3778 am_cv_CC_dependencies_compiler_type=none
3779 if test "$am_compiler_list" = ""; then
3780 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3783 case " $depcc " in #(
3784 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3787 for depmode in $am_compiler_list; do
3788 # Setup a source with many dependencies, because some compilers
3789 # like to wrap large dependency lists on column 80 (with \), and
3790 # we should not choose a depcomp mode which is confused by this.
3792 # We need to recreate these files for each test, as the compiler may
3793 # overwrite some of them when testing with obscure command lines.
3794 # This happens at least with the AIX C compiler.
3796 for i in 1 2 3 4 5 6; do
3797 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3798 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3799 # Solaris 8's {/usr,}/bin/sh.
3800 touch sub/conftst$i.h
3802 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3804 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3805 # mode. It turns out that the SunPro C++ compiler does not properly
3806 # handle `-M -o', and we need to detect this. Also, some Intel
3807 # versions had trouble with output in subdirs
3808 am__obj=sub/conftest.${OBJEXT-o}
3809 am__minus_obj="-o $am__obj"
3812 # This depmode causes a compiler race in universal mode.
3813 test "$am__universal" = false || continue
3816 # after this tag, mechanisms are not by side-effect, so they'll
3817 # only be used when explicitly requested
3818 if test "x$enable_dependency_tracking" = xyes; then
3824 msvisualcpp | msvcmsys)
3825 # This compiler won't grok `-c -o', but also, the minuso test has
3826 # not run yet. These depmodes are late enough in the game, and
3827 # so weak that their functioning should not be impacted.
3828 am__obj=conftest.${OBJEXT-o}
3833 if depmode=$depmode \
3834 source=sub/conftest.c object=$am__obj \
3835 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3836 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3837 >/dev/null 2>conftest.err &&
3838 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3839 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3840 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3841 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3842 # icc doesn't choke on unknown options, it will just issue warnings
3843 # or remarks (even with -Werror). So we grep stderr for any message
3844 # that says an option was ignored or not supported.
3845 # When given -MP, icc 7.0 and 7.1 complain thusly:
3846 # icc: Command line warning: ignoring option '-M'; no argument required
3847 # The diagnosis changed in icc 8.0:
3848 # icc: Command line remark: option '-MP' not supported
3849 if (grep 'ignoring option' conftest.err ||
3850 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3851 am_cv_CC_dependencies_compiler_type=$depmode
3860 am_cv_CC_dependencies_compiler_type=none
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3865 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3866 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3869 test "x$enable_dependency_tracking" != xno \
3870 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3872 am__fastdepCC_FALSE='#'
3874 am__fastdepCC_TRUE='#'
3875 am__fastdepCC_FALSE=
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3880 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3881 if ${ac_cv_path_SED+:} false; then :
3882 $as_echo_n "(cached) " >&6
3884 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3885 for ac_i in 1 2 3 4 5 6 7; do
3886 ac_script="$ac_script$as_nl$ac_script"
3888 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3889 { ac_script=; unset ac_script;}
3890 if test -z "$SED"; then
3891 ac_path_SED_found=false
3892 # Loop through the user's path and test for each of PROGNAME-LIST
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir=.
3898 for ac_prog in sed gsed; do
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3901 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3902 # Check for GNU ac_path_SED and select it if it is found.
3903 # Check for GNU $ac_path_SED
3904 case `"$ac_path_SED" --version 2>&1` in
3906 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3909 $as_echo_n 0123456789 >"conftest.in"
3912 cat "conftest.in" "conftest.in" >"conftest.tmp"
3913 mv "conftest.tmp" "conftest.in"
3914 cp "conftest.in" "conftest.nl"
3915 $as_echo '' >> "conftest.nl"
3916 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3917 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3918 as_fn_arith $ac_count + 1 && ac_count=$as_val
3919 if test $ac_count -gt ${ac_path_SED_max-0}; then
3920 # Best one so far, save it but keep looking for a better one
3921 ac_cv_path_SED="$ac_path_SED"
3922 ac_path_SED_max=$ac_count
3924 # 10*(2^10) chars as input seems more than enough
3925 test $ac_count -gt 10 && break
3927 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3930 $ac_path_SED_found && break 3
3935 if test -z "$ac_cv_path_SED"; then
3936 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3944 $as_echo "$ac_cv_path_SED" >&6; }
3945 SED="$ac_cv_path_SED"
3948 test -z "$SED" && SED=sed
3949 Xsed="$SED -e 1s/^X//"
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3962 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3963 if ${ac_cv_path_GREP+:} false; then :
3964 $as_echo_n "(cached) " >&6
3966 if test -z "$GREP"; then
3967 ac_path_GREP_found=false
3968 # Loop through the user's path and test for each of PROGNAME-LIST
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3973 test -z "$as_dir" && as_dir=.
3974 for ac_prog in grep ggrep; do
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3977 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3978 # Check for GNU ac_path_GREP and select it if it is found.
3979 # Check for GNU $ac_path_GREP
3980 case `"$ac_path_GREP" --version 2>&1` in
3982 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3985 $as_echo_n 0123456789 >"conftest.in"
3988 cat "conftest.in" "conftest.in" >"conftest.tmp"
3989 mv "conftest.tmp" "conftest.in"
3990 cp "conftest.in" "conftest.nl"
3991 $as_echo 'GREP' >> "conftest.nl"
3992 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3994 as_fn_arith $ac_count + 1 && ac_count=$as_val
3995 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3996 # Best one so far, save it but keep looking for a better one
3997 ac_cv_path_GREP="$ac_path_GREP"
3998 ac_path_GREP_max=$ac_count
4000 # 10*(2^10) chars as input seems more than enough
4001 test $ac_count -gt 10 && break
4003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4006 $ac_path_GREP_found && break 3
4011 if test -z "$ac_cv_path_GREP"; then
4012 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4015 ac_cv_path_GREP=$GREP
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4020 $as_echo "$ac_cv_path_GREP" >&6; }
4021 GREP="$ac_cv_path_GREP"
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4025 $as_echo_n "checking for egrep... " >&6; }
4026 if ${ac_cv_path_EGREP+:} false; then :
4027 $as_echo_n "(cached) " >&6
4029 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4030 then ac_cv_path_EGREP="$GREP -E"
4032 if test -z "$EGREP"; then
4033 ac_path_EGREP_found=false
4034 # Loop through the user's path and test for each of PROGNAME-LIST
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4039 test -z "$as_dir" && as_dir=.
4040 for ac_prog in egrep; do
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4043 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4044 # Check for GNU ac_path_EGREP and select it if it is found.
4045 # Check for GNU $ac_path_EGREP
4046 case `"$ac_path_EGREP" --version 2>&1` in
4048 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4051 $as_echo_n 0123456789 >"conftest.in"
4054 cat "conftest.in" "conftest.in" >"conftest.tmp"
4055 mv "conftest.tmp" "conftest.in"
4056 cp "conftest.in" "conftest.nl"
4057 $as_echo 'EGREP' >> "conftest.nl"
4058 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4059 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4060 as_fn_arith $ac_count + 1 && ac_count=$as_val
4061 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4062 # Best one so far, save it but keep looking for a better one
4063 ac_cv_path_EGREP="$ac_path_EGREP"
4064 ac_path_EGREP_max=$ac_count
4066 # 10*(2^10) chars as input seems more than enough
4067 test $ac_count -gt 10 && break
4069 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4072 $ac_path_EGREP_found && break 3
4077 if test -z "$ac_cv_path_EGREP"; then
4078 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4081 ac_cv_path_EGREP=$EGREP
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4087 $as_echo "$ac_cv_path_EGREP" >&6; }
4088 EGREP="$ac_cv_path_EGREP"
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4092 $as_echo_n "checking for fgrep... " >&6; }
4093 if ${ac_cv_path_FGREP+:} false; then :
4094 $as_echo_n "(cached) " >&6
4096 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4097 then ac_cv_path_FGREP="$GREP -F"
4099 if test -z "$FGREP"; then
4100 ac_path_FGREP_found=false
4101 # Loop through the user's path and test for each of PROGNAME-LIST
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106 test -z "$as_dir" && as_dir=.
4107 for ac_prog in fgrep; do
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4110 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4111 # Check for GNU ac_path_FGREP and select it if it is found.
4112 # Check for GNU $ac_path_FGREP
4113 case `"$ac_path_FGREP" --version 2>&1` in
4115 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4118 $as_echo_n 0123456789 >"conftest.in"
4121 cat "conftest.in" "conftest.in" >"conftest.tmp"
4122 mv "conftest.tmp" "conftest.in"
4123 cp "conftest.in" "conftest.nl"
4124 $as_echo 'FGREP' >> "conftest.nl"
4125 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4127 as_fn_arith $ac_count + 1 && ac_count=$as_val
4128 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4129 # Best one so far, save it but keep looking for a better one
4130 ac_cv_path_FGREP="$ac_path_FGREP"
4131 ac_path_FGREP_max=$ac_count
4133 # 10*(2^10) chars as input seems more than enough
4134 test $ac_count -gt 10 && break
4136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139 $ac_path_FGREP_found && break 3
4144 if test -z "$ac_cv_path_FGREP"; then
4145 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4148 ac_cv_path_FGREP=$FGREP
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4154 $as_echo "$ac_cv_path_FGREP" >&6; }
4155 FGREP="$ac_cv_path_FGREP"
4158 test -z "$GREP" && GREP=grep
4178 # Check whether --with-gnu-ld was given.
4179 if test "${with_gnu_ld+set}" = set; then :
4180 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4186 if test "$GCC" = yes; then
4187 # Check if gcc -print-prog-name=ld gives a path.
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4189 $as_echo_n "checking for ld used by $CC... " >&6; }
4192 # gcc leaves a trailing carriage return which upsets mingw
4193 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4195 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4198 # Accept absolute paths.
4200 re_direlt='/[^/][^/]*/\.\./'
4201 # Canonicalize the pathname of ld
4202 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4203 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4204 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4206 test -z "$LD" && LD="$ac_prog"
4209 # If it fails, then pretend we aren't using GCC.
4213 # If it is relative, then search for the first ld in PATH.
4217 elif test "$with_gnu_ld" = yes; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4219 $as_echo_n "checking for GNU ld... " >&6; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4222 $as_echo_n "checking for non-GNU ld... " >&6; }
4224 if ${lt_cv_path_LD+:} false; then :
4225 $as_echo_n "(cached) " >&6
4227 if test -z "$LD"; then
4228 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4229 for ac_dir in $PATH; do
4231 test -z "$ac_dir" && ac_dir=.
4232 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4233 lt_cv_path_LD="$ac_dir/$ac_prog"
4234 # Check to see if the program is GNU ld. I'd rather use --version,
4235 # but apparently some variants of GNU ld only accept -v.
4236 # Break only if it was the GNU/non-GNU ld that we prefer.
4237 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4238 *GNU* | *'with BFD'*)
4239 test "$with_gnu_ld" != no && break
4242 test "$with_gnu_ld" != yes && break
4249 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4254 if test -n "$LD"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4256 $as_echo "$LD" >&6; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4261 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4263 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4264 if ${lt_cv_prog_gnu_ld+:} false; then :
4265 $as_echo_n "(cached) " >&6
4267 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4268 case `$LD -v 2>&1 </dev/null` in
4269 *GNU* | *'with BFD'*)
4270 lt_cv_prog_gnu_ld=yes
4273 lt_cv_prog_gnu_ld=no
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4278 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4279 with_gnu_ld=$lt_cv_prog_gnu_ld
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4290 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4291 if ${lt_cv_path_NM+:} false; then :
4292 $as_echo_n "(cached) " >&6
4294 if test -n "$NM"; then
4295 # Let the user override the test.
4298 lt_nm_to_check="${ac_tool_prefix}nm"
4299 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4300 lt_nm_to_check="$lt_nm_to_check nm"
4302 for lt_tmp_nm in $lt_nm_to_check; do
4303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4304 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4306 test -z "$ac_dir" && ac_dir=.
4307 tmp_nm="$ac_dir/$lt_tmp_nm"
4308 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4309 # Check to see if the nm accepts a BSD-compat flag.
4310 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4311 # nm: unknown option "B" ignored
4312 # Tru64's nm complains that /dev/null is an invalid object file
4313 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4314 */dev/null* | *'Invalid file or object type'*)
4315 lt_cv_path_NM="$tmp_nm -B"
4319 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4321 lt_cv_path_NM="$tmp_nm -p"
4325 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4326 continue # so that we can try to find one that supports BSD flags
4335 : ${lt_cv_path_NM=no}
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4339 $as_echo "$lt_cv_path_NM" >&6; }
4340 if test "$lt_cv_path_NM" != "no"; then
4343 # Didn't find any BSD compatible name lister, look for dumpbin.
4344 if test -n "$DUMPBIN"; then :
4345 # Let the user override the test.
4347 if test -n "$ac_tool_prefix"; then
4348 for ac_prog in dumpbin "link -dump"
4350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if ${ac_cv_prog_DUMPBIN+:} false; then :
4355 $as_echo_n "(cached) " >&6
4357 if test -n "$DUMPBIN"; then
4358 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 DUMPBIN=$ac_cv_prog_DUMPBIN
4378 if test -n "$DUMPBIN"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4380 $as_echo "$DUMPBIN" >&6; }
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$DUMPBIN" && break
4390 if test -z "$DUMPBIN"; then
4391 ac_ct_DUMPBIN=$DUMPBIN
4392 for ac_prog in dumpbin "link -dump"
4394 # Extract the first word of "$ac_prog", so it can be a program name with args.
4395 set dummy $ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4399 $as_echo_n "(cached) " >&6
4401 if test -n "$ac_ct_DUMPBIN"; then
4402 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4422 if test -n "$ac_ct_DUMPBIN"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4424 $as_echo "$ac_ct_DUMPBIN" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$ac_ct_DUMPBIN" && break
4434 if test "x$ac_ct_DUMPBIN" = x; then
4437 case $cross_compiling:$ac_tool_warned in
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4441 ac_tool_warned=yes ;;
4443 DUMPBIN=$ac_ct_DUMPBIN
4447 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4449 DUMPBIN="$DUMPBIN -symbols"
4457 if test "$DUMPBIN" != ":"; then
4461 test -z "$NM" && NM=nm
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4469 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4470 if ${lt_cv_nm_interface+:} false; then :
4471 $as_echo_n "(cached) " >&6
4473 lt_cv_nm_interface="BSD nm"
4474 echo "int some_variable = 0;" > conftest.$ac_ext
4475 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4476 (eval "$ac_compile" 2>conftest.err)
4477 cat conftest.err >&5
4478 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4479 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4480 cat conftest.err >&5
4481 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4482 cat conftest.out >&5
4483 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4484 lt_cv_nm_interface="MS dumpbin"
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4489 $as_echo "$lt_cv_nm_interface" >&6; }
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4492 $as_echo_n "checking whether ln -s works... " >&6; }
4494 if test "$LN_S" = "ln -s"; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4496 $as_echo "yes" >&6; }
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4499 $as_echo "no, using $LN_S" >&6; }
4502 # find the maximum length of command line arguments
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4504 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4505 if ${lt_cv_sys_max_cmd_len+:} false; then :
4506 $as_echo_n "(cached) " >&6
4513 # On DJGPP, this test can blow up pretty badly due to problems in libc
4514 # (any single argument exceeding 2000 bytes causes a buffer overrun
4515 # during glob expansion). Even if it were fixed, the result of this
4516 # check would be larger than it should be.
4517 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4521 # Under GNU Hurd, this test is not required because there is
4522 # no limit to the length of command line arguments.
4523 # Libtool will interpret -1 as no limit whatsoever
4524 lt_cv_sys_max_cmd_len=-1;
4527 cygwin* | mingw* | cegcc*)
4528 # On Win9x/ME, this test blows up -- it succeeds, but takes
4529 # about 5 minutes as the teststring grows exponentially.
4530 # Worse, since 9x/ME are not pre-emptively multitasking,
4531 # you end up with a "frozen" computer, even though with patience
4532 # the test eventually succeeds (with a max line length of 256k).
4533 # Instead, let's just punt: use the minimum linelength reported by
4534 # all of the supported platforms: 8192 (on NT/2K/XP).
4535 lt_cv_sys_max_cmd_len=8192;
4539 # On MiNT this can take a long time and run out of memory.
4540 lt_cv_sys_max_cmd_len=8192;
4544 # On AmigaOS with pdksh, this test takes hours, literally.
4545 # So we just punt and use a minimum line length of 8192.
4546 lt_cv_sys_max_cmd_len=8192;
4549 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4550 # This has been around since 386BSD, at least. Likely further.
4551 if test -x /sbin/sysctl; then
4552 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4553 elif test -x /usr/sbin/sysctl; then
4554 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4556 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4558 # And add a safety zone
4559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4564 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4565 lt_cv_sys_max_cmd_len=196608
4569 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4570 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4571 # nice to cause kernel panics so lets avoid the loop below.
4572 # First set a reasonable default.
4573 lt_cv_sys_max_cmd_len=16384
4575 if test -x /sbin/sysconfig; then
4576 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4577 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4582 lt_cv_sys_max_cmd_len=102400
4584 sysv5* | sco5v6* | sysv4.2uw2*)
4585 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4586 if test -n "$kargmax"; then
4587 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4589 lt_cv_sys_max_cmd_len=32768
4593 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4594 if test -n "$lt_cv_sys_max_cmd_len"; then
4595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4598 # Make teststring a little bigger before we do anything with it.
4599 # a 1K string should be a reasonable start.
4600 for i in 1 2 3 4 5 6 7 8 ; do
4601 teststring=$teststring$teststring
4603 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4604 # If test is not a shell built-in, we'll probably end up computing a
4605 # maximum length that is only half of the actual maximum length, but
4607 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4608 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4609 test $i != 17 # 1/2 MB should be enough
4612 teststring=$teststring$teststring
4614 # Only check the string length outside the loop.
4615 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4617 # Add a significant safety factor because C++ compilers can tack on
4618 # massive amounts of additional arguments before passing them to the
4619 # linker. It appears as though 1/2 is a usable value.
4620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4627 if test -n $lt_cv_sys_max_cmd_len ; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4629 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4632 $as_echo "none" >&6; }
4634 max_cmd_len=$lt_cv_sys_max_cmd_len
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4646 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4647 # Try some XSI features
4650 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4652 && eval 'test $(( 1 + 1 )) -eq 2 \
4653 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4656 $as_echo "$xsi_shell" >&6; }
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4660 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4662 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4664 && lt_shell_append=yes
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4666 $as_echo "$lt_shell_append" >&6; }
4669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4679 # test EBCDIC or ASCII
4680 case `echo X|tr X '\101'` in
4681 A) # ASCII based system
4682 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4683 lt_SP2NL='tr \040 \012'
4684 lt_NL2SP='tr \015\012 \040\040'
4686 *) # EBCDIC based system
4687 lt_SP2NL='tr \100 \n'
4688 lt_NL2SP='tr \r\n \100\100'
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4701 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4702 if ${lt_cv_to_host_file_cmd+:} false; then :
4703 $as_echo_n "(cached) " >&6
4708 *-*-mingw* ) # actually msys
4709 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4712 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4714 * ) # otherwise, assume *nix
4715 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4721 *-*-mingw* ) # actually msys
4722 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4725 lt_cv_to_host_file_cmd=func_convert_file_noop
4727 * ) # otherwise, assume *nix
4728 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4732 * ) # unhandled hosts (and "normal" native builds)
4733 lt_cv_to_host_file_cmd=func_convert_file_noop
4739 to_host_file_cmd=$lt_cv_to_host_file_cmd
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4741 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4748 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4749 if ${lt_cv_to_tool_file_cmd+:} false; then :
4750 $as_echo_n "(cached) " >&6
4752 #assume ordinary cross tools, or native build.
4753 lt_cv_to_tool_file_cmd=func_convert_file_noop
4757 *-*-mingw* ) # actually msys
4758 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4766 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4768 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4775 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4776 if ${lt_cv_ld_reload_flag+:} false; then :
4777 $as_echo_n "(cached) " >&6
4779 lt_cv_ld_reload_flag='-r'
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4782 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4783 reload_flag=$lt_cv_ld_reload_flag
4784 case $reload_flag in
4786 *) reload_flag=" $reload_flag" ;;
4788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4790 cygwin* | mingw* | pw32* | cegcc*)
4791 if test "$GCC" != yes; then
4796 if test "$GCC" = yes; then
4797 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4799 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4812 if test -n "$ac_tool_prefix"; then
4813 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4814 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if ${ac_cv_prog_OBJDUMP+:} false; then :
4818 $as_echo_n "(cached) " >&6
4820 if test -n "$OBJDUMP"; then
4821 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 OBJDUMP=$ac_cv_prog_OBJDUMP
4841 if test -n "$OBJDUMP"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4843 $as_echo "$OBJDUMP" >&6; }
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4851 if test -z "$ac_cv_prog_OBJDUMP"; then
4852 ac_ct_OBJDUMP=$OBJDUMP
4853 # Extract the first word of "objdump", so it can be a program name with args.
4854 set dummy objdump; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4858 $as_echo_n "(cached) " >&6
4860 if test -n "$ac_ct_OBJDUMP"; then
4861 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4881 if test -n "$ac_ct_OBJDUMP"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4883 $as_echo "$ac_ct_OBJDUMP" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4889 if test "x$ac_ct_OBJDUMP" = x; then
4892 case $cross_compiling:$ac_tool_warned in
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896 ac_tool_warned=yes ;;
4898 OBJDUMP=$ac_ct_OBJDUMP
4901 OBJDUMP="$ac_cv_prog_OBJDUMP"
4904 test -z "$OBJDUMP" && OBJDUMP=objdump
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4915 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4916 if ${lt_cv_deplibs_check_method+:} false; then :
4917 $as_echo_n "(cached) " >&6
4919 lt_cv_file_magic_cmd='$MAGIC_CMD'
4920 lt_cv_file_magic_test_file=
4921 lt_cv_deplibs_check_method='unknown'
4922 # Need to set the preceding variable on all platforms that support
4923 # interlibrary dependencies.
4924 # 'none' -- dependencies not supported.
4925 # `unknown' -- same as none, but documents that we really don't know.
4926 # 'pass_all' -- all dependencies passed with no checks.
4927 # 'test_compile' -- check by making test program.
4928 # 'file_magic [[regex]]' -- check by looking for files in library path
4929 # which responds to the $file_magic_cmd with a given extended regex.
4930 # If you have `file' or equivalent on your system and you're not sure
4931 # whether `pass_all' will *always* work, you probably want this one.
4935 lt_cv_deplibs_check_method=pass_all
4939 lt_cv_deplibs_check_method=pass_all
4943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4944 lt_cv_file_magic_cmd='/usr/bin/file -L'
4945 lt_cv_file_magic_test_file=/shlib/libc.so
4949 # func_win32_libid is a shell function defined in ltmain.sh
4950 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4951 lt_cv_file_magic_cmd='func_win32_libid'
4955 # Base MSYS/MinGW do not provide the 'file' command needed by
4956 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4957 # unless we find 'file', for example because we are cross-compiling.
4958 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4959 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4960 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4961 lt_cv_file_magic_cmd='func_win32_libid'
4963 # Keep this pattern in sync with the one in func_win32_libid.
4964 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4965 lt_cv_file_magic_cmd='$OBJDUMP -f'
4970 # use the weaker test based on 'objdump'. See mingw*.
4971 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4972 lt_cv_file_magic_cmd='$OBJDUMP -f'
4975 darwin* | rhapsody*)
4976 lt_cv_deplibs_check_method=pass_all
4979 freebsd* | dragonfly*)
4980 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4983 # Not sure whether the presence of OpenBSD here was a mistake.
4984 # Let's accept both of them until this is cleared up.
4985 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4986 lt_cv_file_magic_cmd=/usr/bin/file
4987 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4991 lt_cv_deplibs_check_method=pass_all
4996 lt_cv_deplibs_check_method=pass_all
5000 lt_cv_deplibs_check_method=pass_all
5003 hpux10.20* | hpux11*)
5004 lt_cv_file_magic_cmd=/usr/bin/file
5007 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5008 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5011 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]'
5012 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5015 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5016 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5022 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5026 irix5* | irix6* | nonstopux*)
5028 *-32|*"-32 ") libmagic=32-bit;;
5029 *-n32|*"-n32 ") libmagic=N32;;
5030 *-64|*"-64 ") libmagic=64-bit;;
5031 *) libmagic=never-match;;
5033 lt_cv_deplibs_check_method=pass_all
5036 # This must be Linux ELF.
5037 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5038 lt_cv_deplibs_check_method=pass_all
5042 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5051 lt_cv_file_magic_cmd=/usr/bin/file
5052 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5056 lt_cv_deplibs_check_method=pass_all
5060 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5067 osf3* | osf4* | osf5*)
5068 lt_cv_deplibs_check_method=pass_all
5072 lt_cv_deplibs_check_method=pass_all
5076 lt_cv_deplibs_check_method=pass_all
5079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5080 lt_cv_deplibs_check_method=pass_all
5084 case $host_vendor in
5086 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]'
5087 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5090 lt_cv_deplibs_check_method=pass_all
5093 lt_cv_file_magic_cmd='/bin/file'
5094 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5097 lt_cv_file_magic_cmd='/bin/file'
5098 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5099 lt_cv_file_magic_test_file=/lib/libc.so
5102 lt_cv_deplibs_check_method=pass_all
5105 lt_cv_deplibs_check_method=pass_all
5111 lt_cv_deplibs_check_method=pass_all
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5117 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5121 if test "$build" = "$host"; then
5124 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5127 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5133 file_magic_cmd=$lt_cv_file_magic_cmd
5134 deplibs_check_method=$lt_cv_deplibs_check_method
5135 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5158 if test -n "$ac_tool_prefix"; then
5159 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5160 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if ${ac_cv_prog_DLLTOOL+:} false; then :
5164 $as_echo_n "(cached) " >&6
5166 if test -n "$DLLTOOL"; then
5167 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5176 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 DLLTOOL=$ac_cv_prog_DLLTOOL
5187 if test -n "$DLLTOOL"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5189 $as_echo "$DLLTOOL" >&6; }
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5197 if test -z "$ac_cv_prog_DLLTOOL"; then
5198 ac_ct_DLLTOOL=$DLLTOOL
5199 # Extract the first word of "dlltool", so it can be a program name with args.
5200 set dummy dlltool; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5204 $as_echo_n "(cached) " >&6
5206 if test -n "$ac_ct_DLLTOOL"; then
5207 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5227 if test -n "$ac_ct_DLLTOOL"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5229 $as_echo "$ac_ct_DLLTOOL" >&6; }
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5235 if test "x$ac_ct_DLLTOOL" = x; then
5238 case $cross_compiling:$ac_tool_warned in
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5242 ac_tool_warned=yes ;;
5244 DLLTOOL=$ac_ct_DLLTOOL
5247 DLLTOOL="$ac_cv_prog_DLLTOOL"
5250 test -z "$DLLTOOL" && DLLTOOL=dlltool
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5262 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5263 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5264 $as_echo_n "(cached) " >&6
5266 lt_cv_sharedlib_from_linklib_cmd='unknown'
5269 cygwin* | mingw* | pw32* | cegcc*)
5270 # two different shell functions defined in ltmain.sh
5271 # decide which to use based on capabilities of $DLLTOOL
5272 case `$DLLTOOL --help 2>&1` in
5273 *--identify-strict*)
5274 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5277 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5282 # fallback: assume linklib IS sharedlib
5283 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5289 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5290 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5291 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5300 if test -n "$ac_tool_prefix"; then
5303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_AR+:} false; then :
5308 $as_echo_n "(cached) " >&6
5310 if test -n "$AR"; then
5311 ac_cv_prog_AR="$AR" # Let the user override the test.
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 if test -n "$AR"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5333 $as_echo "$AR" >&6; }
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5340 test -n "$AR" && break
5343 if test -z "$AR"; then
5347 # Extract the first word of "$ac_prog", so it can be a program name with args.
5348 set dummy $ac_prog; ac_word=$2
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5352 $as_echo_n "(cached) " >&6
5354 if test -n "$ac_ct_AR"; then
5355 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364 ac_cv_prog_ac_ct_AR="$ac_prog"
5365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5375 if test -n "$ac_ct_AR"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5377 $as_echo "$ac_ct_AR" >&6; }
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5384 test -n "$ac_ct_AR" && break
5387 if test "x$ac_ct_AR" = x; then
5390 case $cross_compiling:$ac_tool_warned in
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5394 ac_tool_warned=yes ;;
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5414 $as_echo_n "checking for archiver @FILE support... " >&6; }
5415 if ${lt_cv_ar_at_file+:} false; then :
5416 $as_echo_n "(cached) " >&6
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5430 if ac_fn_c_try_compile "$LINENO"; then :
5431 echo conftest.$ac_objext > conftest.lst
5432 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5434 (eval $lt_ar_try) 2>&5
5436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5437 test $ac_status = 0; }
5438 if test "$ac_status" -eq 0; then
5439 # Ensure the archiver fails upon bogus file names.
5440 rm -f conftest.$ac_objext libconftest.a
5441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5442 (eval $lt_ar_try) 2>&5
5444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5445 test $ac_status = 0; }
5446 if test "$ac_status" -ne 0; then
5450 rm -f conftest.* libconftest.a
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5457 $as_echo "$lt_cv_ar_at_file" >&6; }
5459 if test "x$lt_cv_ar_at_file" = xno; then
5462 archiver_list_spec=$lt_cv_ar_at_file
5471 if test -n "$ac_tool_prefix"; then
5472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5473 set dummy ${ac_tool_prefix}strip; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_prog_STRIP+:} false; then :
5477 $as_echo_n "(cached) " >&6
5479 if test -n "$STRIP"; then
5480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5489 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 STRIP=$ac_cv_prog_STRIP
5500 if test -n "$STRIP"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5502 $as_echo "$STRIP" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5510 if test -z "$ac_cv_prog_STRIP"; then
5512 # Extract the first word of "strip", so it can be a program name with args.
5513 set dummy strip; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5517 $as_echo_n "(cached) " >&6
5519 if test -n "$ac_ct_STRIP"; then
5520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529 ac_cv_prog_ac_ct_STRIP="strip"
5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5540 if test -n "$ac_ct_STRIP"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5542 $as_echo "$ac_ct_STRIP" >&6; }
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5548 if test "x$ac_ct_STRIP" = x; then
5551 case $cross_compiling:$ac_tool_warned in
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5555 ac_tool_warned=yes ;;
5560 STRIP="$ac_cv_prog_STRIP"
5563 test -z "$STRIP" && STRIP=:
5570 if test -n "$ac_tool_prefix"; then
5571 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5572 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_RANLIB+:} false; then :
5576 $as_echo_n "(cached) " >&6
5578 if test -n "$RANLIB"; then
5579 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5588 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 RANLIB=$ac_cv_prog_RANLIB
5599 if test -n "$RANLIB"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5601 $as_echo "$RANLIB" >&6; }
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5609 if test -z "$ac_cv_prog_RANLIB"; then
5610 ac_ct_RANLIB=$RANLIB
5611 # Extract the first word of "ranlib", so it can be a program name with args.
5612 set dummy ranlib; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5616 $as_echo_n "(cached) " >&6
5618 if test -n "$ac_ct_RANLIB"; then
5619 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 ac_cv_prog_ac_ct_RANLIB="ranlib"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5639 if test -n "$ac_ct_RANLIB"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5641 $as_echo "$ac_ct_RANLIB" >&6; }
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5647 if test "x$ac_ct_RANLIB" = x; then
5650 case $cross_compiling:$ac_tool_warned in
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654 ac_tool_warned=yes ;;
5656 RANLIB=$ac_ct_RANLIB
5659 RANLIB="$ac_cv_prog_RANLIB"
5662 test -z "$RANLIB" && RANLIB=:
5669 # Determine commands to create old-style static archives.
5670 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5671 old_postinstall_cmds='chmod 644 $oldlib'
5672 old_postuninstall_cmds=
5674 if test -n "$RANLIB"; then
5677 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5683 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5688 lock_old_archive_extraction=yes ;;
5690 lock_old_archive_extraction=no ;;
5731 # If no C compiler was specified, use CC.
5734 # If no C compiler flags were specified, use CFLAGS.
5735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5737 # Allow CC to be a program name with arguments.
5741 # Check for command to grab the raw symbol name followed by C symbol from nm.
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5743 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5744 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5745 $as_echo_n "(cached) " >&6
5748 # These are sane defaults that work on at least a few old systems.
5749 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5751 # Character class describing NM global symbol codes.
5752 symcode='[BCDEGRST]'
5754 # Regexp to match symbols that can be accessed directly from C.
5755 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5757 # Define system-specific variables.
5762 cygwin* | mingw* | pw32* | cegcc*)
5763 symcode='[ABCDGISTW]'
5766 if test "$host_cpu" = ia64; then
5767 symcode='[ABCDEGRST]'
5771 symcode='[BCDEGRST]'
5774 symcode='[BCDEGQRST]'
5785 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5793 # If we're using GNU nm, then use its standard symbol codes.
5794 case `$NM -V 2>&1` in
5795 *GNU* | *'with BFD'*)
5796 symcode='[ABCDGIRSTW]' ;;
5799 # Transform an extracted symbol line into a proper C declaration.
5800 # Some systems (esp. on ia64) link data and code symbols differently,
5801 # so use this general approach.
5802 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5804 # Transform an extracted symbol line into symbol name and symbol address
5805 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5806 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'"
5808 # Handle CRLF in mingw tool chain
5812 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5816 # Try without a prefix underscore, then with it.
5817 for ac_symprfx in "" "_"; do
5819 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5820 symxfrm="\\1 $ac_symprfx\\2 \\2"
5822 # Write the raw and C identifiers.
5823 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5824 # Fake it for dumpbin and say T for any non-static function
5825 # and D for any global variable.
5826 # Also find C++ and __fastcall symbols from MSVC++,
5827 # which start with @ or ?.
5828 lt_cv_sys_global_symbol_pipe="$AWK '"\
5829 " {last_section=section; section=\$ 3};"\
5830 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5831 " \$ 0!~/External *\|/{next};"\
5832 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5833 " {if(hide[section]) next};"\
5834 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5835 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5836 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5837 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5838 " ' prfx=^$ac_symprfx"
5840 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5842 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5844 # Check to see that the pipe works correctly.
5848 cat > conftest.$ac_ext <<_LT_EOF
5853 void nm_test_func(void);
5854 void nm_test_func(void){}
5858 int main(){nm_test_var='a';nm_test_func();return(0);}
5861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5862 (eval $ac_compile) 2>&5
5864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5865 test $ac_status = 0; }; then
5866 # Now try to grab the symbols.
5868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5869 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5872 test $ac_status = 0; } && test -s "$nlist"; then
5873 # Try sorting and uniquifying the output.
5874 if sort "$nlist" | uniq > "$nlist"T; then
5875 mv -f "$nlist"T "$nlist"
5880 # Make sure that we snagged all the symbols we need.
5881 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5882 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5883 cat <<_LT_EOF > conftest.$ac_ext
5884 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5885 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5886 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5887 relocations are performed -- see ld's documentation on pseudo-relocs. */
5888 # define LT_DLSYM_CONST
5889 #elif defined(__osf__)
5890 /* This system does not cope well with relocations in const data. */
5891 # define LT_DLSYM_CONST
5893 # define LT_DLSYM_CONST const
5901 # Now generate the symbol file.
5902 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5904 cat <<_LT_EOF >> conftest.$ac_ext
5906 /* The mapping between symbol names and symbols. */
5907 LT_DLSYM_CONST struct {
5911 lt__PROGRAM__LTX_preloaded_symbols[] =
5913 { "@PROGRAM@", (void *) 0 },
5915 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5916 cat <<\_LT_EOF >> conftest.$ac_ext
5920 /* This works around a problem in FreeBSD linker */
5921 #ifdef FREEBSD_WORKAROUND
5922 static const void *lt_preloaded_setup() {
5923 return lt__PROGRAM__LTX_preloaded_symbols;
5931 # Now try linking the two files.
5932 mv conftest.$ac_objext conftstm.$ac_objext
5933 lt_globsym_save_LIBS=$LIBS
5934 lt_globsym_save_CFLAGS=$CFLAGS
5935 LIBS="conftstm.$ac_objext"
5936 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5938 (eval $ac_link) 2>&5
5940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5941 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5944 LIBS=$lt_globsym_save_LIBS
5945 CFLAGS=$lt_globsym_save_CFLAGS
5947 echo "cannot find nm_test_func in $nlist" >&5
5950 echo "cannot find nm_test_var in $nlist" >&5
5953 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5956 echo "$progname: failed program was:" >&5
5957 cat conftest.$ac_ext >&5
5959 rm -rf conftest* conftst*
5961 # Do not use the global_symbol_pipe unless it works.
5962 if test "$pipe_works" = yes; then
5965 lt_cv_sys_global_symbol_pipe=
5971 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5972 lt_cv_sys_global_symbol_to_cdecl=
5974 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5976 $as_echo "failed" >&6; }
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5979 $as_echo "ok" >&6; }
5982 # Response file support.
5983 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5984 nm_file_list_spec='@'
5985 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5986 nm_file_list_spec='@'
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6016 $as_echo_n "checking for sysroot... " >&6; }
6018 # Check whether --with-sysroot was given.
6019 if test "${with_sysroot+set}" = set; then :
6020 withval=$with_sysroot;
6027 case ${with_sysroot} in #(
6029 if test "$GCC" = yes; then
6030 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6034 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6040 $as_echo "${with_sysroot}" >&6; }
6041 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6046 $as_echo "${lt_sysroot:-no}" >&6; }
6052 # Check whether --enable-libtool-lock was given.
6053 if test "${enable_libtool_lock+set}" = set; then :
6054 enableval=$enable_libtool_lock;
6057 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6059 # Some flags need to be propagated to the compiler or linker for good
6063 # Find out which ABI we are using.
6064 echo 'int i;' > conftest.$ac_ext
6065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6066 (eval $ac_compile) 2>&5
6068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6069 test $ac_status = 0; }; then
6070 case `/usr/bin/file conftest.$ac_objext` in
6082 # Find out which ABI we are using.
6083 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6085 (eval $ac_compile) 2>&5
6087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6088 test $ac_status = 0; }; then
6089 if test "$lt_cv_prog_gnu_ld" = yes; then
6090 case `/usr/bin/file conftest.$ac_objext` in
6092 LD="${LD-ld} -melf32bsmip"
6095 LD="${LD-ld} -melf32bmipn32"
6098 LD="${LD-ld} -melf64bmip"
6102 case `/usr/bin/file conftest.$ac_objext` in
6118 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6119 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6120 # Find out which ABI we are using.
6121 echo 'int i;' > conftest.$ac_ext
6122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6123 (eval $ac_compile) 2>&5
6125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6126 test $ac_status = 0; }; then
6127 case `/usr/bin/file conftest.o` in
6130 x86_64-*kfreebsd*-gnu)
6131 LD="${LD-ld} -m elf_i386_fbsd"
6134 LD="${LD-ld} -m elf_i386"
6136 ppc64-*linux*|powerpc64-*linux*)
6137 LD="${LD-ld} -m elf32ppclinux"
6140 LD="${LD-ld} -m elf_s390"
6143 LD="${LD-ld} -m elf32_sparc"
6149 x86_64-*kfreebsd*-gnu)
6150 LD="${LD-ld} -m elf_x86_64_fbsd"
6153 LD="${LD-ld} -m elf_x86_64"
6155 ppc*-*linux*|powerpc*-*linux*)
6156 LD="${LD-ld} -m elf64ppc"
6158 s390*-*linux*|s390*-*tpf*)
6159 LD="${LD-ld} -m elf64_s390"
6162 LD="${LD-ld} -m elf64_sparc"
6172 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6173 SAVE_CFLAGS="$CFLAGS"
6174 CFLAGS="$CFLAGS -belf"
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6176 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6177 if ${lt_cv_cc_needs_belf+:} false; then :
6178 $as_echo_n "(cached) " >&6
6181 ac_cpp='$CPP $CPPFLAGS'
6182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6197 if ac_fn_c_try_link "$LINENO"; then :
6198 lt_cv_cc_needs_belf=yes
6200 lt_cv_cc_needs_belf=no
6202 rm -f core conftest.err conftest.$ac_objext \
6203 conftest$ac_exeext conftest.$ac_ext
6205 ac_cpp='$CPP $CPPFLAGS'
6206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6212 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6213 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6214 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6215 CFLAGS="$SAVE_CFLAGS"
6219 # Find out which ABI we are using.
6220 echo 'int i;' > conftest.$ac_ext
6221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6222 (eval $ac_compile) 2>&5
6224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6225 test $ac_status = 0; }; then
6226 case `/usr/bin/file conftest.o` in
6228 case $lt_cv_prog_gnu_ld in
6229 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6231 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6243 need_locks="$enable_libtool_lock"
6245 if test -n "$ac_tool_prefix"; then
6246 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6247 set dummy ${ac_tool_prefix}mt; ac_word=$2
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6251 $as_echo_n "(cached) " >&6
6253 if test -n "$MANIFEST_TOOL"; then
6254 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6274 if test -n "$MANIFEST_TOOL"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6276 $as_echo "$MANIFEST_TOOL" >&6; }
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6284 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6285 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6286 # Extract the first word of "mt", so it can be a program name with args.
6287 set dummy mt; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6291 $as_echo_n "(cached) " >&6
6293 if test -n "$ac_ct_MANIFEST_TOOL"; then
6294 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6314 if test -n "$ac_ct_MANIFEST_TOOL"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6316 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6322 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6325 case $cross_compiling:$ac_tool_warned in
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329 ac_tool_warned=yes ;;
6331 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6334 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6337 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6339 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6340 if ${lt_cv_path_mainfest_tool+:} false; then :
6341 $as_echo_n "(cached) " >&6
6343 lt_cv_path_mainfest_tool=no
6344 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6345 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6346 cat conftest.err >&5
6347 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6348 lt_cv_path_mainfest_tool=yes
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6353 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6354 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6364 rhapsody* | darwin*)
6365 if test -n "$ac_tool_prefix"; then
6366 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6367 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6371 $as_echo_n "(cached) " >&6
6373 if test -n "$DSYMUTIL"; then
6374 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6394 if test -n "$DSYMUTIL"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6396 $as_echo "$DSYMUTIL" >&6; }
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6404 if test -z "$ac_cv_prog_DSYMUTIL"; then
6405 ac_ct_DSYMUTIL=$DSYMUTIL
6406 # Extract the first word of "dsymutil", so it can be a program name with args.
6407 set dummy dsymutil; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$ac_ct_DSYMUTIL"; then
6414 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6434 if test -n "$ac_ct_DSYMUTIL"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6436 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6442 if test "x$ac_ct_DSYMUTIL" = x; then
6445 case $cross_compiling:$ac_tool_warned in
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449 ac_tool_warned=yes ;;
6451 DSYMUTIL=$ac_ct_DSYMUTIL
6454 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6457 if test -n "$ac_tool_prefix"; then
6458 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6459 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461 $as_echo_n "checking for $ac_word... " >&6; }
6462 if ${ac_cv_prog_NMEDIT+:} false; then :
6463 $as_echo_n "(cached) " >&6
6465 if test -n "$NMEDIT"; then
6466 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 NMEDIT=$ac_cv_prog_NMEDIT
6486 if test -n "$NMEDIT"; then
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6488 $as_echo "$NMEDIT" >&6; }
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6496 if test -z "$ac_cv_prog_NMEDIT"; then
6497 ac_ct_NMEDIT=$NMEDIT
6498 # Extract the first word of "nmedit", so it can be a program name with args.
6499 set dummy nmedit; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6503 $as_echo_n "(cached) " >&6
6505 if test -n "$ac_ct_NMEDIT"; then
6506 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6526 if test -n "$ac_ct_NMEDIT"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6528 $as_echo "$ac_ct_NMEDIT" >&6; }
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6534 if test "x$ac_ct_NMEDIT" = x; then
6537 case $cross_compiling:$ac_tool_warned in
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6541 ac_tool_warned=yes ;;
6543 NMEDIT=$ac_ct_NMEDIT
6546 NMEDIT="$ac_cv_prog_NMEDIT"
6549 if test -n "$ac_tool_prefix"; then
6550 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if ${ac_cv_prog_LIPO+:} false; then :
6555 $as_echo_n "(cached) " >&6
6557 if test -n "$LIPO"; then
6558 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6567 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 LIPO=$ac_cv_prog_LIPO
6578 if test -n "$LIPO"; then
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6580 $as_echo "$LIPO" >&6; }
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6588 if test -z "$ac_cv_prog_LIPO"; then
6590 # Extract the first word of "lipo", so it can be a program name with args.
6591 set dummy lipo; ac_word=$2
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 $as_echo_n "checking for $ac_word... " >&6; }
6594 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6595 $as_echo_n "(cached) " >&6
6597 if test -n "$ac_ct_LIPO"; then
6598 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607 ac_cv_prog_ac_ct_LIPO="lipo"
6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6618 if test -n "$ac_ct_LIPO"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6620 $as_echo "$ac_ct_LIPO" >&6; }
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6626 if test "x$ac_ct_LIPO" = x; then
6629 case $cross_compiling:$ac_tool_warned in
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6633 ac_tool_warned=yes ;;
6638 LIPO="$ac_cv_prog_LIPO"
6641 if test -n "$ac_tool_prefix"; then
6642 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6643 set dummy ${ac_tool_prefix}otool; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if ${ac_cv_prog_OTOOL+:} false; then :
6647 $as_echo_n "(cached) " >&6
6649 if test -n "$OTOOL"; then
6650 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 OTOOL=$ac_cv_prog_OTOOL
6670 if test -n "$OTOOL"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6672 $as_echo "$OTOOL" >&6; }
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6680 if test -z "$ac_cv_prog_OTOOL"; then
6682 # Extract the first word of "otool", so it can be a program name with args.
6683 set dummy otool; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6687 $as_echo_n "(cached) " >&6
6689 if test -n "$ac_ct_OTOOL"; then
6690 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699 ac_cv_prog_ac_ct_OTOOL="otool"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6710 if test -n "$ac_ct_OTOOL"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6712 $as_echo "$ac_ct_OTOOL" >&6; }
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6718 if test "x$ac_ct_OTOOL" = x; then
6721 case $cross_compiling:$ac_tool_warned in
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6725 ac_tool_warned=yes ;;
6730 OTOOL="$ac_cv_prog_OTOOL"
6733 if test -n "$ac_tool_prefix"; then
6734 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6735 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if ${ac_cv_prog_OTOOL64+:} false; then :
6739 $as_echo_n "(cached) " >&6
6741 if test -n "$OTOOL64"; then
6742 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 OTOOL64=$ac_cv_prog_OTOOL64
6762 if test -n "$OTOOL64"; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6764 $as_echo "$OTOOL64" >&6; }
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6772 if test -z "$ac_cv_prog_OTOOL64"; then
6773 ac_ct_OTOOL64=$OTOOL64
6774 # Extract the first word of "otool64", so it can be a program name with args.
6775 set dummy otool64; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6779 $as_echo_n "(cached) " >&6
6781 if test -n "$ac_ct_OTOOL64"; then
6782 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_prog_ac_ct_OTOOL64="otool64"
6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6802 if test -n "$ac_ct_OTOOL64"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6804 $as_echo "$ac_ct_OTOOL64" >&6; }
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6810 if test "x$ac_ct_OTOOL64" = x; then
6813 case $cross_compiling:$ac_tool_warned in
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817 ac_tool_warned=yes ;;
6819 OTOOL64=$ac_ct_OTOOL64
6822 OTOOL64="$ac_cv_prog_OTOOL64"
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6852 $as_echo_n "checking for -single_module linker flag... " >&6; }
6853 if ${lt_cv_apple_cc_single_mod+:} false; then :
6854 $as_echo_n "(cached) " >&6
6856 lt_cv_apple_cc_single_mod=no
6857 if test -z "${LT_MULTI_MODULE}"; then
6858 # By default we will add the -single_module flag. You can override
6859 # by either setting the environment variable LT_MULTI_MODULE
6860 # non-empty at configure time, or by adding -multi_module to the
6862 rm -rf libconftest.dylib*
6863 echo "int foo(void){return 1;}" > conftest.c
6864 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6865 -dynamiclib -Wl,-single_module conftest.c" >&5
6866 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6867 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6869 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6870 lt_cv_apple_cc_single_mod=yes
6872 cat conftest.err >&5
6874 rm -rf libconftest.dylib*
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6879 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6881 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6882 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6883 $as_echo_n "(cached) " >&6
6885 lt_cv_ld_exported_symbols_list=no
6886 save_LDFLAGS=$LDFLAGS
6887 echo "_main" > conftest.sym
6888 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6900 if ac_fn_c_try_link "$LINENO"; then :
6901 lt_cv_ld_exported_symbols_list=yes
6903 lt_cv_ld_exported_symbols_list=no
6905 rm -f core conftest.err conftest.$ac_objext \
6906 conftest$ac_exeext conftest.$ac_ext
6907 LDFLAGS="$save_LDFLAGS"
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6911 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6913 $as_echo_n "checking for -force_load linker flag... " >&6; }
6914 if ${lt_cv_ld_force_load+:} false; then :
6915 $as_echo_n "(cached) " >&6
6917 lt_cv_ld_force_load=no
6918 cat > conftest.c << _LT_EOF
6919 int forced_loaded() { return 2;}
6921 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6922 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6923 echo "$AR cru libconftest.a conftest.o" >&5
6924 $AR cru libconftest.a conftest.o 2>&5
6925 echo "$RANLIB libconftest.a" >&5
6926 $RANLIB libconftest.a 2>&5
6927 cat > conftest.c << _LT_EOF
6928 int main() { return 0;}
6930 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6931 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6933 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6934 lt_cv_ld_force_load=yes
6936 cat conftest.err >&5
6938 rm -f conftest.err libconftest.a conftest conftest.c
6939 rm -rf conftest.dSYM
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6943 $as_echo "$lt_cv_ld_force_load" >&6; }
6945 rhapsody* | darwin1.[012])
6946 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6948 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6949 darwin*) # darwin 5.x on
6950 # if running on 10.5 or later, the deployment target defaults
6951 # to the OS version, if on x86, and 10.4, the deployment
6952 # target defaults to 10.4. Don't you love it?
6953 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6954 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6955 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6957 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6959 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6963 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6964 _lt_dar_single_mod='$single_module'
6966 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6967 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6969 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6971 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6972 _lt_dsymutil='~$DSYMUTIL $lib || :'
6980 ac_cpp='$CPP $CPPFLAGS'
6981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6985 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6986 # On Suns, sometimes $CPP names a directory.
6987 if test -n "$CPP" && test -d "$CPP"; then
6990 if test -z "$CPP"; then
6991 if ${ac_cv_prog_CPP+:} false; then :
6992 $as_echo_n "(cached) " >&6
6994 # Double quotes because CPP needs to be expanded
6995 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6998 for ac_c_preproc_warn_flag in '' yes
7000 # Use a header file that comes with gcc, so configuring glibc
7001 # with a fresh cross-compiler works.
7002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7003 # <limits.h> exists even on freestanding compilers.
7004 # On the NeXT, cc -E runs the code through the compiler's parser,
7005 # not just through cpp. "Syntax error" is here to catch this case.
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7009 # include <limits.h>
7011 # include <assert.h>
7015 if ac_fn_c_try_cpp "$LINENO"; then :
7018 # Broken: fails on valid input.
7021 rm -f conftest.err conftest.i conftest.$ac_ext
7023 # OK, works on sane cases. Now check whether nonexistent headers
7024 # can be detected and how.
7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h. */
7027 #include <ac_nonexistent.h>
7029 if ac_fn_c_try_cpp "$LINENO"; then :
7030 # Broken: success on invalid input.
7033 # Passes both tests.
7037 rm -f conftest.err conftest.i conftest.$ac_ext
7040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7041 rm -f conftest.i conftest.err conftest.$ac_ext
7042 if $ac_preproc_ok; then :
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7055 $as_echo "$CPP" >&6; }
7057 for ac_c_preproc_warn_flag in '' yes
7059 # Use a header file that comes with gcc, so configuring glibc
7060 # with a fresh cross-compiler works.
7061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7062 # <limits.h> exists even on freestanding compilers.
7063 # On the NeXT, cc -E runs the code through the compiler's parser,
7064 # not just through cpp. "Syntax error" is here to catch this case.
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7068 # include <limits.h>
7070 # include <assert.h>
7074 if ac_fn_c_try_cpp "$LINENO"; then :
7077 # Broken: fails on valid input.
7080 rm -f conftest.err conftest.i conftest.$ac_ext
7082 # OK, works on sane cases. Now check whether nonexistent headers
7083 # can be detected and how.
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7086 #include <ac_nonexistent.h>
7088 if ac_fn_c_try_cpp "$LINENO"; then :
7089 # Broken: success on invalid input.
7092 # Passes both tests.
7096 rm -f conftest.err conftest.i conftest.$ac_ext
7099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7100 rm -f conftest.i conftest.err conftest.$ac_ext
7101 if $ac_preproc_ok; then :
7104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7106 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7107 See \`config.log' for more details" "$LINENO" 5; }
7111 ac_cpp='$CPP $CPPFLAGS'
7112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7118 $as_echo_n "checking for ANSI C header files... " >&6; }
7119 if ${ac_cv_header_stdc+:} false; then :
7120 $as_echo_n "(cached) " >&6
7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7137 if ac_fn_c_try_compile "$LINENO"; then :
7138 ac_cv_header_stdc=yes
7140 ac_cv_header_stdc=no
7142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144 if test $ac_cv_header_stdc = yes; then
7145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7152 $EGREP "memchr" >/dev/null 2>&1; then :
7155 ac_cv_header_stdc=no
7161 if test $ac_cv_header_stdc = yes; then
7162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7169 $EGREP "free" >/dev/null 2>&1; then :
7172 ac_cv_header_stdc=no
7178 if test $ac_cv_header_stdc = yes; then
7179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7180 if test "$cross_compiling" = yes; then :
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7187 #if ((' ' & 0x0FF) == 0x020)
7188 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7189 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7191 # define ISLOWER(c) \
7192 (('a' <= (c) && (c) <= 'i') \
7193 || ('j' <= (c) && (c) <= 'r') \
7194 || ('s' <= (c) && (c) <= 'z'))
7195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7203 for (i = 0; i < 256; i++)
7204 if (XOR (islower (i), ISLOWER (i))
7205 || toupper (i) != TOUPPER (i))
7210 if ac_fn_c_try_run "$LINENO"; then :
7213 ac_cv_header_stdc=no
7215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7216 conftest.$ac_objext conftest.beam conftest.$ac_ext
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7222 $as_echo "$ac_cv_header_stdc" >&6; }
7223 if test $ac_cv_header_stdc = yes; then
7225 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7229 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7230 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7231 inttypes.h stdint.h unistd.h
7233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7234 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7236 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7237 cat >>confdefs.h <<_ACEOF
7238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7246 for ac_header in dlfcn.h
7248 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7250 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7251 cat >>confdefs.h <<_ACEOF
7252 #define HAVE_DLFCN_H 1
7273 # Check whether --enable-shared was given.
7274 if test "${enable_shared+set}" = set; then :
7275 enableval=$enable_shared; p=${PACKAGE-default}
7277 yes) enable_shared=yes ;;
7278 no) enable_shared=no ;;
7281 # Look at the argument we got. We use all the common list separators.
7282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7283 for pkg in $enableval; do
7285 if test "X$pkg" = "X$p"; then
7304 # Check whether --enable-static was given.
7305 if test "${enable_static+set}" = set; then :
7306 enableval=$enable_static; p=${PACKAGE-default}
7308 yes) enable_static=yes ;;
7309 no) enable_static=no ;;
7312 # Look at the argument we got. We use all the common list separators.
7313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7314 for pkg in $enableval; do
7316 if test "X$pkg" = "X$p"; then
7336 # Check whether --with-pic was given.
7337 if test "${with_pic+set}" = set; then :
7338 withval=$with_pic; pic_mode="$withval"
7344 test -z "$pic_mode" && pic_mode=default
7352 # Check whether --enable-fast-install was given.
7353 if test "${enable_fast_install+set}" = set; then :
7354 enableval=$enable_fast_install; p=${PACKAGE-default}
7356 yes) enable_fast_install=yes ;;
7357 no) enable_fast_install=no ;;
7359 enable_fast_install=no
7360 # Look at the argument we got. We use all the common list separators.
7361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7362 for pkg in $enableval; do
7364 if test "X$pkg" = "X$p"; then
7365 enable_fast_install=yes
7372 enable_fast_install=yes
7385 # This can be used to rebuild libtool when needed
7386 LIBTOOL_DEPS="$ltmain"
7388 # Always use our own libtool.
7389 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7416 test -z "$LN_S" && LN_S="ln -s"
7431 if test -n "${ZSH_VERSION+set}" ; then
7432 setopt NO_GLOB_SUBST
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7436 $as_echo_n "checking for objdir... " >&6; }
7437 if ${lt_cv_objdir+:} false; then :
7438 $as_echo_n "(cached) " >&6
7440 rm -f .libs 2>/dev/null
7441 mkdir .libs 2>/dev/null
7442 if test -d .libs; then
7445 # MS-DOS does not allow filenames that begin with a dot.
7448 rmdir .libs 2>/dev/null
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7451 $as_echo "$lt_cv_objdir" >&6; }
7452 objdir=$lt_cv_objdir
7458 cat >>confdefs.h <<_ACEOF
7459 #define LT_OBJDIR "$lt_cv_objdir/"
7467 # AIX sometimes has problems with the GCC collect2 program. For some
7468 # reason, if we set the COLLECT_NAMES environment variable, the problems
7469 # vanish in a puff of smoke.
7470 if test "X${COLLECT_NAMES+set}" != Xset; then
7472 export COLLECT_NAMES
7479 can_build_shared=yes
7481 # All known linkers require a `.a' archive for static linking (except MSVC,
7482 # which needs '.lib').
7485 with_gnu_ld="$lt_cv_prog_gnu_ld"
7488 old_CFLAGS="$CFLAGS"
7490 # Set sane defaults for various variables
7491 test -z "$CC" && CC=cc
7492 test -z "$LTCC" && LTCC=$CC
7493 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7494 test -z "$LD" && LD=ld
7495 test -z "$ac_objext" && ac_objext=o
7497 for cc_temp in $compiler""; do
7499 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7500 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7505 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7508 # Only perform the check for file, if the check method requires it
7509 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7510 case $deplibs_check_method in
7512 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7514 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7515 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7516 $as_echo_n "(cached) " >&6
7520 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7523 lt_save_MAGIC_CMD="$MAGIC_CMD"
7524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7525 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7526 for ac_dir in $ac_dummy; do
7528 test -z "$ac_dir" && ac_dir=.
7529 if test -f $ac_dir/${ac_tool_prefix}file; then
7530 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7531 if test -n "$file_magic_test_file"; then
7532 case $deplibs_check_method in
7534 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7536 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7537 $EGREP "$file_magic_regex" > /dev/null; then
7542 *** Warning: the command libtool uses to detect shared libraries,
7543 *** $file_magic_cmd, produces output that libtool cannot recognize.
7544 *** The result is that libtool may fail to recognize shared libraries
7545 *** as such. This will affect the creation of libtool libraries that
7546 *** depend on shared libraries, but programs linked with such libtool
7547 *** libraries will work regardless of this problem. Nevertheless, you
7548 *** may want to report the problem to your system manager and/or to
7549 *** bug-libtool@gnu.org
7559 MAGIC_CMD="$lt_save_MAGIC_CMD"
7564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7565 if test -n "$MAGIC_CMD"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7567 $as_echo "$MAGIC_CMD" >&6; }
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7577 if test -z "$lt_cv_path_MAGIC_CMD"; then
7578 if test -n "$ac_tool_prefix"; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7580 $as_echo_n "checking for file... " >&6; }
7581 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7582 $as_echo_n "(cached) " >&6
7586 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7589 lt_save_MAGIC_CMD="$MAGIC_CMD"
7590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7591 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7592 for ac_dir in $ac_dummy; do
7594 test -z "$ac_dir" && ac_dir=.
7595 if test -f $ac_dir/file; then
7596 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7597 if test -n "$file_magic_test_file"; then
7598 case $deplibs_check_method in
7600 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7602 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7603 $EGREP "$file_magic_regex" > /dev/null; then
7608 *** Warning: the command libtool uses to detect shared libraries,
7609 *** $file_magic_cmd, produces output that libtool cannot recognize.
7610 *** The result is that libtool may fail to recognize shared libraries
7611 *** as such. This will affect the creation of libtool libraries that
7612 *** depend on shared libraries, but programs linked with such libtool
7613 *** libraries will work regardless of this problem. Nevertheless, you
7614 *** may want to report the problem to your system manager and/or to
7615 *** bug-libtool@gnu.org
7625 MAGIC_CMD="$lt_save_MAGIC_CMD"
7630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7631 if test -n "$MAGIC_CMD"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7633 $as_echo "$MAGIC_CMD" >&6; }
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7649 # Use C for the default configuration in the libtool script
7653 ac_cpp='$CPP $CPPFLAGS'
7654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7659 # Source file extension for C test sources.
7662 # Object file extension for compiled C test sources.
7666 # Code to be used in simple compile tests
7667 lt_simple_compile_test_code="int some_variable = 0;"
7669 # Code to be used in simple link tests
7670 lt_simple_link_test_code='int main(){return(0);}'
7678 # If no C compiler was specified, use CC.
7681 # If no C compiler flags were specified, use CFLAGS.
7682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7684 # Allow CC to be a program name with arguments.
7687 # Save the default compiler, since it gets overwritten when the other
7688 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7689 compiler_DEFAULT=$CC
7691 # save warnings/boilerplate of simple test code
7692 ac_outfile=conftest.$ac_objext
7693 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7694 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7695 _lt_compiler_boilerplate=`cat conftest.err`
7698 ac_outfile=conftest.$ac_objext
7699 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7700 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7701 _lt_linker_boilerplate=`cat conftest.err`
7705 if test -n "$compiler"; then
7707 lt_prog_compiler_no_builtin_flag=
7709 if test "$GCC" = yes; then
7710 case $cc_basename in
7712 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7714 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7718 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7719 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7720 $as_echo_n "(cached) " >&6
7722 lt_cv_prog_compiler_rtti_exceptions=no
7723 ac_outfile=conftest.$ac_objext
7724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7725 lt_compiler_flag="-fno-rtti -fno-exceptions"
7726 # Insert the option either (1) after the last *FLAGS variable, or
7727 # (2) before a word containing "conftest.", or (3) at the end.
7728 # Note that $ac_compile itself does not contain backslashes and begins
7729 # with a dollar sign (not a hyphen), so the echo should work correctly.
7730 # The option is referenced via a variable to avoid confusing sed.
7731 lt_compile=`echo "$ac_compile" | $SED \
7732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7734 -e 's:$: $lt_compiler_flag:'`
7735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7736 (eval "$lt_compile" 2>conftest.err)
7738 cat conftest.err >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 if (exit $ac_status) && test -s "$ac_outfile"; then
7741 # The compiler can only warn and ignore the option if not recognized
7742 # So say no if there are warnings other than the usual output.
7743 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7745 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7746 lt_cv_prog_compiler_rtti_exceptions=yes
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7753 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7755 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7756 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7768 lt_prog_compiler_wl=
7769 lt_prog_compiler_pic=
7770 lt_prog_compiler_static=
7773 if test "$GCC" = yes; then
7774 lt_prog_compiler_wl='-Wl,'
7775 lt_prog_compiler_static='-static'
7779 # All AIX code is PIC.
7780 if test "$host_cpu" = ia64; then
7781 # AIX 5 now supports IA64 processor
7782 lt_prog_compiler_static='-Bstatic'
7789 # see comment about AmigaOS4 .so support
7790 lt_prog_compiler_pic='-fPIC'
7793 # FIXME: we need at least 68020 code to build shared libraries, but
7794 # adding the `-m68020' flag to GCC prevents building anything better,
7796 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7801 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7802 # PIC is the default for these OSes.
7805 mingw* | cygwin* | pw32* | os2* | cegcc*)
7806 # This hack is so that the source file can tell whether it is being
7807 # built for inclusion in a dll (and should export symbols for example).
7808 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7809 # (--disable-auto-import) libraries
7810 lt_prog_compiler_pic='-DDLL_EXPORT'
7813 darwin* | rhapsody*)
7814 # PIC is the default on this platform
7815 # Common symbols not allowed in MH_DYLIB files
7816 lt_prog_compiler_pic='-fno-common'
7820 # PIC is the default for Haiku.
7821 # The "-static" flag exists, but is broken.
7822 lt_prog_compiler_static=
7826 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7827 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7828 # sets the default TLS model and affects inlining.
7834 lt_prog_compiler_pic='-fPIC'
7840 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7841 # Instead, we relocate shared libraries at runtime.
7845 # Just because we use GCC doesn't mean we suddenly get shared libraries
7846 # on systems that don't support them.
7847 lt_prog_compiler_can_build_shared=no
7852 # QNX uses GNU C++, but need to define -shared option too, otherwise
7854 lt_prog_compiler_pic='-fPIC -shared'
7858 if test -d /usr/nec; then
7859 lt_prog_compiler_pic=-Kconform_pic
7864 lt_prog_compiler_pic='-fPIC'
7868 case $cc_basename in
7869 nvcc*) # Cuda Compiler Driver 2.2
7870 lt_prog_compiler_wl='-Xlinker '
7871 lt_prog_compiler_pic='-Xcompiler -fPIC'
7875 # PORTME Check for flag to pass linker flags through the system compiler.
7878 lt_prog_compiler_wl='-Wl,'
7879 if test "$host_cpu" = ia64; then
7880 # AIX 5 now supports IA64 processor
7881 lt_prog_compiler_static='-Bstatic'
7883 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7887 mingw* | cygwin* | pw32* | os2* | cegcc*)
7888 # This hack is so that the source file can tell whether it is being
7889 # built for inclusion in a dll (and should export symbols for example).
7890 lt_prog_compiler_pic='-DDLL_EXPORT'
7893 hpux9* | hpux10* | hpux11*)
7894 lt_prog_compiler_wl='-Wl,'
7895 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7902 lt_prog_compiler_pic='+Z'
7905 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7906 lt_prog_compiler_static='${wl}-a ${wl}archive'
7909 irix5* | irix6* | nonstopux*)
7910 lt_prog_compiler_wl='-Wl,'
7911 # PIC (with -KPIC) is the default.
7912 lt_prog_compiler_static='-non_shared'
7915 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7916 case $cc_basename in
7917 # old Intel for x86_64 which still supported -KPIC.
7919 lt_prog_compiler_wl='-Wl,'
7920 lt_prog_compiler_pic='-KPIC'
7921 lt_prog_compiler_static='-static'
7923 # icc used to be incompatible with GCC.
7924 # ICC 10 doesn't accept -KPIC any more.
7926 lt_prog_compiler_wl='-Wl,'
7927 lt_prog_compiler_pic='-fPIC'
7928 lt_prog_compiler_static='-static'
7930 # Lahey Fortran 8.1.
7932 lt_prog_compiler_wl='-Wl,'
7933 lt_prog_compiler_pic='--shared'
7934 lt_prog_compiler_static='--static'
7937 # NAG Fortran compiler
7938 lt_prog_compiler_wl='-Wl,-Wl,,'
7939 lt_prog_compiler_pic='-PIC'
7940 lt_prog_compiler_static='-Bstatic'
7942 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7943 # Portland Group compilers (*not* the Pentium gcc compiler,
7944 # which looks to be a dead project)
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_pic='-fpic'
7947 lt_prog_compiler_static='-Bstatic'
7950 lt_prog_compiler_wl='-Wl,'
7951 # All Alpha code is PIC.
7952 lt_prog_compiler_static='-non_shared'
7954 xl* | bgxl* | bgf* | mpixl*)
7955 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7956 lt_prog_compiler_wl='-Wl,'
7957 lt_prog_compiler_pic='-qpic'
7958 lt_prog_compiler_static='-qstaticlink'
7961 case `$CC -V 2>&1 | sed 5q` in
7962 *Sun\ F* | *Sun*Fortran*)
7963 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7964 lt_prog_compiler_pic='-KPIC'
7965 lt_prog_compiler_static='-Bstatic'
7966 lt_prog_compiler_wl=''
7970 lt_prog_compiler_pic='-KPIC'
7971 lt_prog_compiler_static='-Bstatic'
7972 lt_prog_compiler_wl='-Wl,'
7980 lt_prog_compiler_pic='-KPIC'
7981 lt_prog_compiler_static='-Bstatic'
7985 # QNX uses GNU C++, but need to define -shared option too, otherwise
7987 lt_prog_compiler_pic='-fPIC -shared'
7990 osf3* | osf4* | osf5*)
7991 lt_prog_compiler_wl='-Wl,'
7992 # All OSF/1 code is PIC.
7993 lt_prog_compiler_static='-non_shared'
7997 lt_prog_compiler_static='-non_shared'
8001 lt_prog_compiler_pic='-KPIC'
8002 lt_prog_compiler_static='-Bstatic'
8003 case $cc_basename in
8004 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8005 lt_prog_compiler_wl='-Qoption ld ';;
8007 lt_prog_compiler_wl='-Wl,';;
8012 lt_prog_compiler_wl='-Qoption ld '
8013 lt_prog_compiler_pic='-PIC'
8014 lt_prog_compiler_static='-Bstatic'
8017 sysv4 | sysv4.2uw2* | sysv4.3*)
8018 lt_prog_compiler_wl='-Wl,'
8019 lt_prog_compiler_pic='-KPIC'
8020 lt_prog_compiler_static='-Bstatic'
8024 if test -d /usr/nec ;then
8025 lt_prog_compiler_pic='-Kconform_pic'
8026 lt_prog_compiler_static='-Bstatic'
8030 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_pic='-KPIC'
8033 lt_prog_compiler_static='-Bstatic'
8037 lt_prog_compiler_wl='-Wl,'
8038 lt_prog_compiler_can_build_shared=no
8042 lt_prog_compiler_pic='-pic'
8043 lt_prog_compiler_static='-Bstatic'
8047 lt_prog_compiler_can_build_shared=no
8053 # For platforms which do not support PIC, -DPIC is meaningless:
8055 lt_prog_compiler_pic=
8058 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8063 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8064 if ${lt_cv_prog_compiler_pic+:} false; then :
8065 $as_echo_n "(cached) " >&6
8067 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8070 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8071 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8074 # Check to make sure the PIC flag actually works.
8076 if test -n "$lt_prog_compiler_pic"; then
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8078 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8079 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8080 $as_echo_n "(cached) " >&6
8082 lt_cv_prog_compiler_pic_works=no
8083 ac_outfile=conftest.$ac_objext
8084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8085 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8086 # Insert the option either (1) after the last *FLAGS variable, or
8087 # (2) before a word containing "conftest.", or (3) at the end.
8088 # Note that $ac_compile itself does not contain backslashes and begins
8089 # with a dollar sign (not a hyphen), so the echo should work correctly.
8090 # The option is referenced via a variable to avoid confusing sed.
8091 lt_compile=`echo "$ac_compile" | $SED \
8092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8094 -e 's:$: $lt_compiler_flag:'`
8095 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8096 (eval "$lt_compile" 2>conftest.err)
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 if (exit $ac_status) && test -s "$ac_outfile"; then
8101 # The compiler can only warn and ignore the option if not recognized
8102 # So say no if there are warnings other than the usual output.
8103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8105 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8106 lt_cv_prog_compiler_pic_works=yes
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8113 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8115 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8116 case $lt_prog_compiler_pic in
8118 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8121 lt_prog_compiler_pic=
8122 lt_prog_compiler_can_build_shared=no
8138 # Check to make sure the static flag actually works.
8140 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8142 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8143 if ${lt_cv_prog_compiler_static_works+:} false; then :
8144 $as_echo_n "(cached) " >&6
8146 lt_cv_prog_compiler_static_works=no
8147 save_LDFLAGS="$LDFLAGS"
8148 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8149 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8150 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8151 # The linker can only warn and ignore the option if not recognized
8152 # So say no if there are warnings
8153 if test -s conftest.err; then
8154 # Append any errors to the config.log.
8155 cat conftest.err 1>&5
8156 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8158 if diff conftest.exp conftest.er2 >/dev/null; then
8159 lt_cv_prog_compiler_static_works=yes
8162 lt_cv_prog_compiler_static_works=yes
8166 LDFLAGS="$save_LDFLAGS"
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8170 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8172 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8175 lt_prog_compiler_static=
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8185 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8186 if ${lt_cv_prog_compiler_c_o+:} false; then :
8187 $as_echo_n "(cached) " >&6
8189 lt_cv_prog_compiler_c_o=no
8190 $RM -r conftest 2>/dev/null
8194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8196 lt_compiler_flag="-o out/conftest2.$ac_objext"
8197 # Insert the option either (1) after the last *FLAGS variable, or
8198 # (2) before a word containing "conftest.", or (3) at the end.
8199 # Note that $ac_compile itself does not contain backslashes and begins
8200 # with a dollar sign (not a hyphen), so the echo should work correctly.
8201 lt_compile=`echo "$ac_compile" | $SED \
8202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8204 -e 's:$: $lt_compiler_flag:'`
8205 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8206 (eval "$lt_compile" 2>out/conftest.err)
8208 cat out/conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8212 # The compiler can only warn and ignore the option if not recognized
8213 # So say no if there are warnings
8214 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8215 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8216 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8217 lt_cv_prog_compiler_c_o=yes
8222 # SGI C++ compiler will create directory out/ii_files/ for
8223 # template instantiation
8224 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8225 $RM out/* && rmdir out
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8232 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8240 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8241 if ${lt_cv_prog_compiler_c_o+:} false; then :
8242 $as_echo_n "(cached) " >&6
8244 lt_cv_prog_compiler_c_o=no
8245 $RM -r conftest 2>/dev/null
8249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8251 lt_compiler_flag="-o out/conftest2.$ac_objext"
8252 # Insert the option either (1) after the last *FLAGS variable, or
8253 # (2) before a word containing "conftest.", or (3) at the end.
8254 # Note that $ac_compile itself does not contain backslashes and begins
8255 # with a dollar sign (not a hyphen), so the echo should work correctly.
8256 lt_compile=`echo "$ac_compile" | $SED \
8257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8259 -e 's:$: $lt_compiler_flag:'`
8260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8261 (eval "$lt_compile" 2>out/conftest.err)
8263 cat out/conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8267 # The compiler can only warn and ignore the option if not recognized
8268 # So say no if there are warnings
8269 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8270 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8271 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8272 lt_cv_prog_compiler_c_o=yes
8277 # SGI C++ compiler will create directory out/ii_files/ for
8278 # template instantiation
8279 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8280 $RM out/* && rmdir out
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8287 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8292 hard_links="nottested"
8293 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8294 # do not overwrite the value of need_locks provided by the user
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8296 $as_echo_n "checking if we can lock with hard links... " >&6; }
8299 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8301 ln conftest.a conftest.b 2>&5 || hard_links=no
8302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8304 $as_echo "$hard_links" >&6; }
8305 if test "$hard_links" = no; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8307 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8320 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8323 allow_undefined_flag=
8324 always_export_symbols=no
8326 archive_expsym_cmds=
8327 compiler_needs_object=no
8328 enable_shared_with_static_runtimes=no
8329 export_dynamic_flag_spec=
8330 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8331 hardcode_automatic=no
8333 hardcode_direct_absolute=no
8334 hardcode_libdir_flag_spec=
8335 hardcode_libdir_flag_spec_ld=
8336 hardcode_libdir_separator=
8338 hardcode_shlibpath_var=unsupported
8340 link_all_deplibs=unknown
8343 old_archive_from_new_cmds=
8344 old_archive_from_expsyms_cmds=
8345 thread_safe_flag_spec=
8346 whole_archive_flag_spec=
8347 # include_expsyms should be a list of space-separated symbols to be *always*
8348 # included in the symbol list
8350 # exclude_expsyms can be an extended regexp of symbols to exclude
8351 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8352 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8353 # as well as any symbol that contains `d'.
8354 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8355 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8356 # platforms (ab)use it in PIC code, but their linkers get confused if
8357 # the symbol is explicitly referenced. Since portable code cannot
8358 # rely on this symbol name, it's probably fine to never include it in
8359 # preloaded symbol tables.
8360 # Exclude shared library initialization/finalization symbols.
8361 extract_expsyms_cmds=
8364 cygwin* | mingw* | pw32* | cegcc*)
8365 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8366 # When not using gcc, we currently assume that we are using
8367 # Microsoft Visual C++.
8368 if test "$GCC" != yes; then
8373 # we just hope/assume this is gcc and not c89 (= MSVC++)
8383 # On some targets, GNU ld is compatible enough with the native linker
8384 # that we're better off using the native interface for both.
8385 lt_use_gnu_ld_interface=no
8386 if test "$with_gnu_ld" = yes; then
8389 # The AIX port of GNU ld has always aspired to compatibility
8390 # with the native linker. However, as the warning in the GNU ld
8391 # block says, versions before 2.19.5* couldn't really create working
8392 # shared libraries, regardless of the interface used.
8393 case `$LD -v 2>&1` in
8394 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8395 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8396 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8398 lt_use_gnu_ld_interface=yes
8403 lt_use_gnu_ld_interface=yes
8408 if test "$lt_use_gnu_ld_interface" = yes; then
8409 # If archive_cmds runs LD, not CC, wlarc should be empty
8412 # Set some defaults for GNU ld with shared library support. These
8413 # are reset later if shared libraries are not supported. Putting them
8414 # here allows them to be overridden if necessary.
8415 runpath_var=LD_RUN_PATH
8416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8417 export_dynamic_flag_spec='${wl}--export-dynamic'
8418 # ancient GNU ld didn't support --whole-archive et. al.
8419 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8420 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8422 whole_archive_flag_spec=
8424 supports_anon_versioning=no
8425 case `$LD -v 2>&1` in
8426 *GNU\ gold*) supports_anon_versioning=yes ;;
8427 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8428 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8429 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8430 *\ 2.11.*) ;; # other 2.11 versions
8431 *) supports_anon_versioning=yes ;;
8434 # See if GNU ld supports shared libraries.
8437 # On AIX/PPC, the GNU linker is very broken
8438 if test "$host_cpu" != ia64; then
8442 *** Warning: the GNU linker, at least up to release 2.19, is reported
8443 *** to be unable to reliably create shared libraries on AIX.
8444 *** Therefore, libtool is disabling shared libraries support. If you
8445 *** really care for shared libraries, you may want to install binutils
8446 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8447 *** You will then need to restart the configuration process.
8456 # see comment about AmigaOS4 .so support
8457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8458 archive_expsym_cmds=''
8461 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)'
8462 hardcode_libdir_flag_spec='-L$libdir'
8463 hardcode_minus_L=yes
8469 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8470 allow_undefined_flag=unsupported
8471 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8472 # support --undefined. This deserves some investigation. FIXME
8473 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8479 cygwin* | mingw* | pw32* | cegcc*)
8480 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8481 # as there is no search path for DLLs.
8482 hardcode_libdir_flag_spec='-L$libdir'
8483 export_dynamic_flag_spec='${wl}--export-all-symbols'
8484 allow_undefined_flag=unsupported
8485 always_export_symbols=no
8486 enable_shared_with_static_runtimes=yes
8487 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'
8488 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8490 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8492 # If the export-symbols file already is a .def file (1st line
8493 # is EXPORTS), use it as is; otherwise, prepend...
8494 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8495 cp $export_symbols $output_objdir/$soname.def;
8497 echo EXPORTS > $output_objdir/$soname.def;
8498 cat $export_symbols >> $output_objdir/$soname.def;
8500 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8508 link_all_deplibs=yes
8513 hardcode_shlibpath_var=no
8514 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8515 export_dynamic_flag_spec='${wl}-E'
8516 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8517 # Instead, shared libraries are loaded at an image base (0x10000000 by
8518 # default) and relocated if they conflict, which is a slow very memory
8519 # consuming and fragmenting process. To avoid this, we pick a random,
8520 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8521 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8522 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8523 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'
8526 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8528 if test "$host_os" = linux-dietlibc; then
8529 case $cc_basename in
8530 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8533 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8534 && test "$tmp_diet" = no
8536 tmp_addflag=' $pic_flag'
8537 tmp_sharedflag='-shared'
8538 case $cc_basename,$host_cpu in
8539 pgcc*) # Portland Group C compiler
8540 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'
8541 tmp_addflag=' $pic_flag'
8543 pgf77* | pgf90* | pgf95* | pgfortran*)
8544 # Portland Group f77 and f90 compilers
8545 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'
8546 tmp_addflag=' $pic_flag -Mnomain' ;;
8547 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8548 tmp_addflag=' -i_dynamic' ;;
8549 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8550 tmp_addflag=' -i_dynamic -nofor_main' ;;
8551 ifc* | ifort*) # Intel Fortran compiler
8552 tmp_addflag=' -nofor_main' ;;
8553 lf95*) # Lahey Fortran 8.1
8554 whole_archive_flag_spec=
8555 tmp_sharedflag='--shared' ;;
8556 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8557 tmp_sharedflag='-qmkshrobj'
8559 nvcc*) # Cuda Compiler Driver 2.2
8560 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'
8561 compiler_needs_object=yes
8564 case `$CC -V 2>&1 | sed 5q` in
8565 *Sun\ C*) # Sun C 5.9
8566 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'
8567 compiler_needs_object=yes
8568 tmp_sharedflag='-G' ;;
8569 *Sun\ F*) # Sun Fortran 8.3
8570 tmp_sharedflag='-G' ;;
8572 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8574 if test "x$supports_anon_versioning" = xyes; then
8575 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8576 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8577 echo "local: *; };" >> $output_objdir/$libname.ver~
8578 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8581 case $cc_basename in
8582 xlf* | bgf* | bgxlf* | mpixlf*)
8583 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8584 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8585 hardcode_libdir_flag_spec=
8586 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8587 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8588 if test "x$supports_anon_versioning" = xyes; then
8589 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8590 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8591 echo "local: *; };" >> $output_objdir/$libname.ver~
8592 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8602 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8603 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8606 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8607 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8612 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8616 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8617 *** create shared libraries on Solaris systems. Therefore, libtool
8618 *** is disabling shared libraries support. We urge you to upgrade GNU
8619 *** binutils to release 2.9.1 or newer. Another option is to modify
8620 *** your PATH or compiler configuration so that the native linker is
8621 *** used, and then restart.
8624 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8626 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8633 case `$LD -v 2>&1` in
8634 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8638 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8639 *** reliably create shared libraries on SCO systems. Therefore, libtool
8640 *** is disabling shared libraries support. We urge you to upgrade GNU
8641 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8642 *** your PATH or compiler configuration so that the native linker is
8643 *** used, and then restart.
8648 # For security reasons, it is highly recommended that you always
8649 # use absolute paths for naming shared libraries, and exclude the
8650 # DT_RUNPATH tag from executables and libraries. But doing so
8651 # requires that you compile everything twice, which is a pain.
8652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8655 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8664 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8667 hardcode_shlibpath_var=no
8671 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8672 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8673 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8680 if test "$ld_shlibs" = no; then
8682 hardcode_libdir_flag_spec=
8683 export_dynamic_flag_spec=
8684 whole_archive_flag_spec=
8687 # PORTME fill in a description of your system's linker (not GNU ld)
8690 allow_undefined_flag=unsupported
8691 always_export_symbols=yes
8692 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'
8693 # Note: this linker hardcodes the directories in LIBPATH if there
8694 # are no directories specified by -L.
8695 hardcode_minus_L=yes
8696 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8697 # Neither direct hardcoding nor static linking is supported with a
8699 hardcode_direct=unsupported
8704 if test "$host_cpu" = ia64; then
8705 # On IA64, the linker does run time linking by default, so we don't
8706 # have to do anything special.
8707 aix_use_runtimelinking=no
8708 exp_sym_flag='-Bexport'
8711 # If we're using GNU nm, then we don't want the "-C" option.
8712 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8713 # Also, AIX nm treats weak defined symbols like other global
8714 # defined symbols, whereas GNU nm marks them as "W".
8715 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8716 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'
8718 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'
8720 aix_use_runtimelinking=no
8722 # Test if we are trying to use run time linking or normal
8723 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8724 # need to do runtime linking.
8725 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8726 for ld_flag in $LDFLAGS; do
8727 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8728 aix_use_runtimelinking=yes
8735 exp_sym_flag='-bexport'
8736 no_entry_flag='-bnoentry'
8739 # When large executables or shared objects are built, AIX ld can
8740 # have problems creating the table of contents. If linking a library
8741 # or program results in "error TOC overflow" add -mminimal-toc to
8742 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8743 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8747 hardcode_direct_absolute=yes
8748 hardcode_libdir_separator=':'
8749 link_all_deplibs=yes
8750 file_list_spec='${wl}-f,'
8752 if test "$GCC" = yes; then
8753 case $host_os in aix4.[012]|aix4.[012].*)
8754 # We only want to do this on AIX 4.2 and lower, the check
8755 # below for broken collect2 doesn't work under 4.3+
8756 collect2name=`${CC} -print-prog-name=collect2`
8757 if test -f "$collect2name" &&
8758 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8760 # We have reworked collect2
8763 # We have old collect2
8764 hardcode_direct=unsupported
8765 # It fails to find uninstalled libraries when the uninstalled
8766 # path is not listed in the libpath. Setting hardcode_minus_L
8767 # to unsupported forces relinking
8768 hardcode_minus_L=yes
8769 hardcode_libdir_flag_spec='-L$libdir'
8770 hardcode_libdir_separator=
8774 shared_flag='-shared'
8775 if test "$aix_use_runtimelinking" = yes; then
8776 shared_flag="$shared_flag "'${wl}-G'
8780 if test "$host_cpu" = ia64; then
8781 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8782 # chokes on -Wl,-G. The following line is correct:
8785 if test "$aix_use_runtimelinking" = yes; then
8786 shared_flag='${wl}-G'
8788 shared_flag='${wl}-bM:SRE'
8793 export_dynamic_flag_spec='${wl}-bexpall'
8794 # It seems that -bexpall does not export symbols beginning with
8795 # underscore (_), so it is better to generate a list of symbols to export.
8796 always_export_symbols=yes
8797 if test "$aix_use_runtimelinking" = yes; then
8798 # Warning - without using the other runtime loading flags (-brtl),
8799 # -berok will link without error, but may produce a broken library.
8800 allow_undefined_flag='-berok'
8801 # Determine the default libpath from the value encoded in an
8803 if test "${lt_cv_aix_libpath+set}" = set; then
8804 aix_libpath=$lt_cv_aix_libpath
8806 if ${lt_cv_aix_libpath_+:} false; then :
8807 $as_echo_n "(cached) " >&6
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8820 if ac_fn_c_try_link "$LINENO"; then :
8822 lt_aix_libpath_sed='
8823 /Import File Strings/,/^$/ {
8825 s/^0 *\([^ ]*\) *$/\1/
8829 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8830 # Check for a 64-bit object if we didn't find anything.
8831 if test -z "$lt_cv_aix_libpath_"; then
8832 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8835 rm -f core conftest.err conftest.$ac_objext \
8836 conftest$ac_exeext conftest.$ac_ext
8837 if test -z "$lt_cv_aix_libpath_"; then
8838 lt_cv_aix_libpath_="/usr/lib:/lib"
8843 aix_libpath=$lt_cv_aix_libpath_
8846 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8847 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"
8849 if test "$host_cpu" = ia64; then
8850 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8851 allow_undefined_flag="-z nodefs"
8852 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"
8854 # Determine the default libpath from the value encoded in an
8856 if test "${lt_cv_aix_libpath+set}" = set; then
8857 aix_libpath=$lt_cv_aix_libpath
8859 if ${lt_cv_aix_libpath_+:} false; then :
8860 $as_echo_n "(cached) " >&6
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8873 if ac_fn_c_try_link "$LINENO"; then :
8875 lt_aix_libpath_sed='
8876 /Import File Strings/,/^$/ {
8878 s/^0 *\([^ ]*\) *$/\1/
8882 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8883 # Check for a 64-bit object if we didn't find anything.
8884 if test -z "$lt_cv_aix_libpath_"; then
8885 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8888 rm -f core conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8890 if test -z "$lt_cv_aix_libpath_"; then
8891 lt_cv_aix_libpath_="/usr/lib:/lib"
8896 aix_libpath=$lt_cv_aix_libpath_
8899 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8900 # Warning - without using the other run time loading flags,
8901 # -berok will link without error, but may produce a broken library.
8902 no_undefined_flag=' ${wl}-bernotok'
8903 allow_undefined_flag=' ${wl}-berok'
8904 if test "$with_gnu_ld" = yes; then
8905 # We only use this code for GNU lds that support --whole-archive.
8906 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8908 # Exported symbols can be pulled into shared objects from archives
8909 whole_archive_flag_spec='$convenience'
8911 archive_cmds_need_lc=yes
8912 # This is similar to how AIX traditionally builds its shared libraries.
8913 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'
8921 # see comment about AmigaOS4 .so support
8922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8923 archive_expsym_cmds=''
8926 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)'
8927 hardcode_libdir_flag_spec='-L$libdir'
8928 hardcode_minus_L=yes
8934 export_dynamic_flag_spec=-rdynamic
8937 cygwin* | mingw* | pw32* | cegcc*)
8938 # When not using gcc, we currently assume that we are using
8939 # Microsoft Visual C++.
8940 # hardcode_libdir_flag_spec is actually meaningless, as there is
8941 # no search path for DLLs.
8942 case $cc_basename in
8945 hardcode_libdir_flag_spec=' '
8946 allow_undefined_flag=unsupported
8947 always_export_symbols=yes
8949 # Tell ltmain to make .lib files, not .a files.
8951 # Tell ltmain to make .dll files, not .so files.
8953 # FIXME: Setting linknames here is a bad hack.
8954 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8955 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8956 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8958 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8960 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8962 # The linker will not automatically build a static lib if we build a DLL.
8963 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8964 enable_shared_with_static_runtimes=yes
8965 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8967 old_postinstall_cmds='chmod 644 $oldlib'
8968 postlink_cmds='lt_outputfile="@OUTPUT@"~
8969 lt_tool_outputfile="@TOOL_OUTPUT@"~
8970 case $lt_outputfile in
8973 lt_outputfile="$lt_outputfile.exe"
8974 lt_tool_outputfile="$lt_tool_outputfile.exe"
8977 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8978 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8979 $RM "$lt_outputfile.manifest";
8983 # Assume MSVC wrapper
8984 hardcode_libdir_flag_spec=' '
8985 allow_undefined_flag=unsupported
8986 # Tell ltmain to make .lib files, not .a files.
8988 # Tell ltmain to make .dll files, not .so files.
8990 # FIXME: Setting linknames here is a bad hack.
8991 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8992 # The linker will automatically build a .lib file if we build a DLL.
8993 old_archive_from_new_cmds='true'
8994 # FIXME: Should let the user specify the lib program.
8995 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8996 enable_shared_with_static_runtimes=yes
9001 darwin* | rhapsody*)
9004 archive_cmds_need_lc=no
9006 hardcode_automatic=yes
9007 hardcode_shlibpath_var=unsupported
9008 if test "$lt_cv_ld_force_load" = "yes"; then
9009 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\"`'
9011 whole_archive_flag_spec=''
9013 link_all_deplibs=yes
9014 allow_undefined_flag="$_lt_dar_allow_undefined"
9015 case $cc_basename in
9016 ifort*) _lt_dar_can_shared=yes ;;
9017 *) _lt_dar_can_shared=$GCC ;;
9019 if test "$_lt_dar_can_shared" = "yes"; then
9020 output_verbose_link_cmd=func_echo_all
9021 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9022 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9023 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}"
9024 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}"
9033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9034 hardcode_libdir_flag_spec='-L$libdir'
9035 hardcode_shlibpath_var=no
9042 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9043 # support. Future versions do this automatically, but an explicit c++rt0.o
9044 # does not break anything, and helps significantly (at the cost of a little
9047 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9048 hardcode_libdir_flag_spec='-R$libdir'
9050 hardcode_shlibpath_var=no
9053 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9057 hardcode_minus_L=yes
9058 hardcode_shlibpath_var=no
9061 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9062 freebsd* | dragonfly*)
9063 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9064 hardcode_libdir_flag_spec='-R$libdir'
9066 hardcode_shlibpath_var=no
9070 if test "$GCC" = yes; then
9071 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'
9073 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'
9075 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9076 hardcode_libdir_separator=:
9079 # hardcode_minus_L: Not really in the search PATH,
9080 # but as the default location of the library.
9081 hardcode_minus_L=yes
9082 export_dynamic_flag_spec='${wl}-E'
9086 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9087 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9089 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9091 if test "$with_gnu_ld" = no; then
9092 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9093 hardcode_libdir_flag_spec_ld='+b $libdir'
9094 hardcode_libdir_separator=:
9096 hardcode_direct_absolute=yes
9097 export_dynamic_flag_spec='${wl}-E'
9098 # hardcode_minus_L: Not really in the search PATH,
9099 # but as the default location of the library.
9100 hardcode_minus_L=yes
9105 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9108 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9111 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9114 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9120 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9123 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9127 # Older versions of the 11.00 compiler do not understand -b yet
9128 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9130 $as_echo_n "checking if $CC understands -b... " >&6; }
9131 if ${lt_cv_prog_compiler__b+:} false; then :
9132 $as_echo_n "(cached) " >&6
9134 lt_cv_prog_compiler__b=no
9135 save_LDFLAGS="$LDFLAGS"
9136 LDFLAGS="$LDFLAGS -b"
9137 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9138 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9139 # The linker can only warn and ignore the option if not recognized
9140 # So say no if there are warnings
9141 if test -s conftest.err; then
9142 # Append any errors to the config.log.
9143 cat conftest.err 1>&5
9144 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9146 if diff conftest.exp conftest.er2 >/dev/null; then
9147 lt_cv_prog_compiler__b=yes
9150 lt_cv_prog_compiler__b=yes
9154 LDFLAGS="$save_LDFLAGS"
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9158 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9160 if test x"$lt_cv_prog_compiler__b" = xyes; then
9161 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9163 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9169 if test "$with_gnu_ld" = no; then
9170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9171 hardcode_libdir_separator=:
9176 hardcode_shlibpath_var=no
9180 hardcode_direct_absolute=yes
9181 export_dynamic_flag_spec='${wl}-E'
9183 # hardcode_minus_L: Not really in the search PATH,
9184 # but as the default location of the library.
9185 hardcode_minus_L=yes
9191 irix5* | irix6* | nonstopux*)
9192 if test "$GCC" = yes; then
9193 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'
9194 # Try to use the -exported_symbol ld option, if it does not
9195 # work, assume that -exports_file does not work either and
9196 # implicitly export all symbols.
9197 # This should be the same for all languages, so no per-tag cache variable.
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9199 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9200 if ${lt_cv_irix_exported_symbol+:} false; then :
9201 $as_echo_n "(cached) " >&6
9203 save_LDFLAGS="$LDFLAGS"
9204 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 int foo (void) { return 0; }
9209 if ac_fn_c_try_link "$LINENO"; then :
9210 lt_cv_irix_exported_symbol=yes
9212 lt_cv_irix_exported_symbol=no
9214 rm -f core conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
9216 LDFLAGS="$save_LDFLAGS"
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9219 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9220 if test "$lt_cv_irix_exported_symbol" = yes; then
9221 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'
9224 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'
9225 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'
9227 archive_cmds_need_lc='no'
9228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229 hardcode_libdir_separator=:
9231 link_all_deplibs=yes
9235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9238 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9240 hardcode_libdir_flag_spec='-R$libdir'
9242 hardcode_shlibpath_var=no
9246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9249 hardcode_libdir_separator=:
9250 hardcode_shlibpath_var=no
9257 if test -f /usr/libexec/ld.so; then
9259 hardcode_shlibpath_var=no
9260 hardcode_direct_absolute=yes
9261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9262 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9263 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9264 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9265 export_dynamic_flag_spec='${wl}-E'
9268 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9270 hardcode_libdir_flag_spec='-R$libdir'
9273 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9274 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9284 hardcode_libdir_flag_spec='-L$libdir'
9285 hardcode_minus_L=yes
9286 allow_undefined_flag=unsupported
9287 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'
9288 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9292 if test "$GCC" = yes; then
9293 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9294 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'
9296 allow_undefined_flag=' -expect_unresolved \*'
9297 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'
9299 archive_cmds_need_lc='no'
9300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301 hardcode_libdir_separator=:
9304 osf4* | osf5*) # as osf3* with the addition of -msym flag
9305 if test "$GCC" = yes; then
9306 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9307 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'
9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9310 allow_undefined_flag=' -expect_unresolved \*'
9311 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'
9312 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~
9313 $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'
9315 # Both c and cxx compiler support -rpath directly
9316 hardcode_libdir_flag_spec='-rpath $libdir'
9318 archive_cmds_need_lc='no'
9319 hardcode_libdir_separator=:
9323 no_undefined_flag=' -z defs'
9324 if test "$GCC" = yes; then
9326 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9328 $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'
9330 case `$CC -V 2>&1` in
9333 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9334 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9335 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9339 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9341 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9345 hardcode_libdir_flag_spec='-R$libdir'
9346 hardcode_shlibpath_var=no
9348 solaris2.[0-5] | solaris2.[0-5].*) ;;
9350 # The compiler driver will combine and reorder linker options,
9351 # but understands `-z linker_flag'. GCC discards it without `$wl',
9352 # but is careful enough not to reorder.
9353 # Supported since Solaris 2.6 (maybe 2.5.1?)
9354 if test "$GCC" = yes; then
9355 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9357 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9361 link_all_deplibs=yes
9365 if test "x$host_vendor" = xsequent; then
9366 # Use $CC to link under sequent, because it throws in some extra .o
9367 # files that make .init and .fini sections work.
9368 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9370 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_libdir_flag_spec='-L$libdir'
9374 hardcode_minus_L=yes
9375 hardcode_shlibpath_var=no
9379 case $host_vendor in
9381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382 hardcode_direct=yes # is this really true???
9385 ## LD is ld it makes a PLAMLIB
9386 ## CC just makes a GrossModule.
9387 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9388 reload_cmds='$CC -r -o $output$reload_objs'
9392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9393 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9396 runpath_var='LD_RUN_PATH'
9397 hardcode_shlibpath_var=no
9401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9402 hardcode_shlibpath_var=no
9403 export_dynamic_flag_spec='-Bexport'
9407 if test -d /usr/nec; then
9408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9409 hardcode_shlibpath_var=no
9410 runpath_var=LD_RUN_PATH
9411 hardcode_runpath_var=yes
9416 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9417 no_undefined_flag='${wl}-z,text'
9418 archive_cmds_need_lc=no
9419 hardcode_shlibpath_var=no
9420 runpath_var='LD_RUN_PATH'
9422 if test "$GCC" = yes; then
9423 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9424 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9426 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9427 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9431 sysv5* | sco3.2v5* | sco5v6*)
9432 # Note: We can NOT use -z defs as we might desire, because we do not
9433 # link with -lc, and that would cause any symbols used from libc to
9434 # always be unresolved, which means just about no library would
9435 # ever link correctly. If we're not using GNU ld we use -z text
9436 # though, which does catch some bad symbols but isn't as heavy-handed
9438 no_undefined_flag='${wl}-z,text'
9439 allow_undefined_flag='${wl}-z,nodefs'
9440 archive_cmds_need_lc=no
9441 hardcode_shlibpath_var=no
9442 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9443 hardcode_libdir_separator=':'
9444 link_all_deplibs=yes
9445 export_dynamic_flag_spec='${wl}-Bexport'
9446 runpath_var='LD_RUN_PATH'
9448 if test "$GCC" = yes; then
9449 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9450 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9452 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459 hardcode_libdir_flag_spec='-L$libdir'
9460 hardcode_shlibpath_var=no
9468 if test x$host_vendor = xsni; then
9470 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9471 export_dynamic_flag_spec='${wl}-Blargedynsym'
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9478 $as_echo "$ld_shlibs" >&6; }
9479 test "$ld_shlibs" = no && can_build_shared=no
9481 with_gnu_ld=$with_gnu_ld
9498 # Do we need to explicitly link libc?
9500 case "x$archive_cmds_need_lc" in
9502 # Assume -lc should be added
9503 archive_cmds_need_lc=yes
9505 if test "$enable_shared" = yes && test "$GCC" = yes; then
9506 case $archive_cmds in
9508 # FIXME: we may have to deal with multi-command sequences.
9511 # Test whether the compiler implicitly links with -lc since on some
9512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9513 # to ld, don't add -lc before -lgcc.
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9515 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9516 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9517 $as_echo_n "(cached) " >&6
9520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9523 (eval $ac_compile) 2>&5
9525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9526 test $ac_status = 0; } 2>conftest.err; then
9529 libobjs=conftest.$ac_objext
9531 wl=$lt_prog_compiler_wl
9532 pic_flag=$lt_prog_compiler_pic
9538 lt_save_allow_undefined_flag=$allow_undefined_flag
9539 allow_undefined_flag=
9540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9541 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9544 test $ac_status = 0; }
9546 lt_cv_archive_cmds_need_lc=no
9548 lt_cv_archive_cmds_need_lc=yes
9550 allow_undefined_flag=$lt_save_allow_undefined_flag
9552 cat conftest.err 1>&5
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9558 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9559 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9723 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9725 if test "$GCC" = yes; then
9727 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9728 *) lt_awk_arg="/^libraries:/" ;;
9731 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9732 *) lt_sed_strip_eq="s,=/,/,g" ;;
9734 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9735 case $lt_search_path_spec in
9737 # if the path contains ";" then we assume it to be the separator
9738 # otherwise default to the standard path separator (i.e. ":") - it is
9739 # assumed that no part of a normal pathname contains ";" but that should
9740 # okay in the real world where ";" in dirpaths is itself problematic.
9741 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9744 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9747 # Ok, now we have the path, separated by spaces, we can step through it
9748 # and add multilib dir if necessary.
9749 lt_tmp_lt_search_path_spec=
9750 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9751 for lt_sys_path in $lt_search_path_spec; do
9752 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9753 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9755 test -d "$lt_sys_path" && \
9756 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9759 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9760 BEGIN {RS=" "; FS="/|\n";} {
9763 for (lt_i = NF; lt_i > 0; lt_i--) {
9764 if ($lt_i != "" && $lt_i != ".") {
9765 if ($lt_i == "..") {
9768 if (lt_count == 0) {
9769 lt_foo="/" $lt_i lt_foo;
9776 if (lt_foo != "") { lt_freq[lt_foo]++; }
9777 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9779 # AWK program above erroneously prepends '/' to C:/dos/paths
9782 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9783 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9785 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9787 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9790 libname_spec='lib$name'
9798 shlibpath_overrides_runpath=unknown
9800 dynamic_linker="$host_os ld.so"
9801 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9802 need_lib_prefix=unknown
9803 hardcode_into_libs=no
9805 # when you set need_version to no, make sure it does not cause -set_version
9806 # flags to be left without arguments
9807 need_version=unknown
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9813 shlibpath_var=LIBPATH
9815 # AIX 3 has no versioning support, so we append a major version to the name.
9816 soname_spec='${libname}${release}${shared_ext}$major'
9823 hardcode_into_libs=yes
9824 if test "$host_cpu" = ia64; then
9825 # AIX 5 supports IA64
9826 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9827 shlibpath_var=LD_LIBRARY_PATH
9829 # With GCC up to 2.95.x, collect2 would create an import file
9830 # for dependence libraries. The import file would start with
9831 # the line `#! .'. This would cause the generated library to
9832 # depend on `.', always an invalid library. This was fixed in
9833 # development snapshots of GCC prior to 3.0.
9835 aix4 | aix4.[01] | aix4.[01].*)
9836 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9838 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9845 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9846 # soname into executable. Probably we can add versioning support to
9847 # collect2, so additional links can be useful in future.
9848 if test "$aix_use_runtimelinking" = yes; then
9849 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9850 # instead of lib<name>.a to let people know that these are not
9851 # typical AIX shared libraries.
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9854 # We preserve .a as extension for shared libraries through AIX4.2
9855 # and later when we are not doing run time linking.
9856 library_names_spec='${libname}${release}.a $libname.a'
9857 soname_spec='${libname}${release}${shared_ext}$major'
9859 shlibpath_var=LIBPATH
9866 # Since July 2007 AmigaOS4 officially supports .so libraries.
9867 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9871 library_names_spec='$libname.ixlibrary $libname.a'
9872 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9873 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'
9879 library_names_spec='${libname}${shared_ext}'
9880 dynamic_linker="$host_os ld.so"
9881 shlibpath_var=LIBRARY_PATH
9887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9888 soname_spec='${libname}${release}${shared_ext}$major'
9889 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9892 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9893 # the default ld.so.conf also contains /usr/contrib/lib and
9894 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9895 # libtool to hard-code these into programs
9898 cygwin* | mingw* | pw32* | cegcc*)
9899 version_type=windows
9904 case $GCC,$cc_basename in
9907 library_names_spec='$libname.dll.a'
9908 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9909 postinstall_cmds='base_file=`basename \${file}`~
9910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9911 dldir=$destdir/`dirname \$dlpath`~
9912 test -d \$dldir || mkdir -p \$dldir~
9913 $install_prog $dir/$dlname \$dldir/$dlname~
9914 chmod a+x \$dldir/$dlname~
9915 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9916 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9918 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9919 dlpath=$dir/\$dldll~
9921 shlibpath_overrides_runpath=yes
9925 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9926 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9928 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9931 # MinGW DLLs use traditional 'lib' prefix
9932 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9935 # pw32 DLLs use 'pw' prefix rather than 'lib'
9936 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9939 dynamic_linker='Win32 ld.exe'
9944 libname_spec='$name'
9945 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9946 library_names_spec='${libname}.dll.lib'
9950 sys_lib_search_path_spec=
9956 # Let DOS variable expansion print the short 8.3 style file name.
9957 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9958 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9961 # Convert to MSYS style.
9962 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9965 # Convert to unix form, then to dos form, then back to unix form
9966 # but this time dos style (no spaces!) so that the unix form looks
9967 # like /cygdrive/c/PROGRA~1:/cygdr...
9968 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9969 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9970 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9973 sys_lib_search_path_spec="$LIB"
9974 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9975 # It is most probably a Windows format PATH.
9976 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9978 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9980 # FIXME: find the short name or the path components, as spaces are
9981 # common. (e.g. "Program Files" -> "PROGRA~1")
9985 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9986 postinstall_cmds='base_file=`basename \${file}`~
9987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9988 dldir=$destdir/`dirname \$dlpath`~
9989 test -d \$dldir || mkdir -p \$dldir~
9990 $install_prog $dir/$dlname \$dldir/$dlname'
9991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9992 dlpath=$dir/\$dldll~
9994 shlibpath_overrides_runpath=yes
9995 dynamic_linker='Win32 link.exe'
9999 # Assume MSVC wrapper
10000 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10001 dynamic_linker='Win32 ld.exe'
10004 # FIXME: first we should search . and the directory the executable is in
10008 darwin* | rhapsody*)
10009 dynamic_linker="$host_os dyld"
10010 version_type=darwin
10013 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10014 soname_spec='${libname}${release}${major}$shared_ext'
10015 shlibpath_overrides_runpath=yes
10016 shlibpath_var=DYLD_LIBRARY_PATH
10017 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10019 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10020 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 shlibpath_var=LD_LIBRARY_PATH
10036 freebsd* | dragonfly*)
10037 # DragonFly does not have aout. When/if they implement a new
10038 # versioning mechanism, adjust this.
10039 if test -x /usr/bin/objformat; then
10040 objformat=`/usr/bin/objformat`
10043 freebsd[123]*) objformat=aout ;;
10044 *) objformat=elf ;;
10047 version_type=freebsd-$objformat
10048 case $version_type in
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10059 shlibpath_var=LD_LIBRARY_PATH
10062 shlibpath_overrides_runpath=yes
10064 freebsd3.[01]* | freebsdelf3.[01]*)
10065 shlibpath_overrides_runpath=yes
10066 hardcode_into_libs=yes
10068 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10069 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10070 shlibpath_overrides_runpath=no
10071 hardcode_into_libs=yes
10073 *) # from 4.6 on, and DragonFly
10074 shlibpath_overrides_runpath=yes
10075 hardcode_into_libs=yes
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10085 soname_spec='${libname}${release}${shared_ext}$major'
10086 shlibpath_var=LD_LIBRARY_PATH
10087 hardcode_into_libs=yes
10094 dynamic_linker="$host_os runtime_loader"
10095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10096 soname_spec='${libname}${release}${shared_ext}$major'
10097 shlibpath_var=LIBRARY_PATH
10098 shlibpath_overrides_runpath=yes
10099 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10100 hardcode_into_libs=yes
10103 hpux9* | hpux10* | hpux11*)
10104 # Give a soname corresponding to the major version so that dld.sl refuses to
10105 # link against other versions.
10112 hardcode_into_libs=yes
10113 dynamic_linker="$host_os dld.so"
10114 shlibpath_var=LD_LIBRARY_PATH
10115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 soname_spec='${libname}${release}${shared_ext}$major'
10118 if test "X$HPUX_IA64_MODE" = X32; then
10119 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10121 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10127 hardcode_into_libs=yes
10128 dynamic_linker="$host_os dld.sl"
10129 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10138 dynamic_linker="$host_os dld.sl"
10139 shlibpath_var=SHLIB_PATH
10140 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10145 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10146 postinstall_cmds='chmod 555 $lib'
10147 # or fails outright, so override atomically:
10148 install_override_mode=555
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10156 soname_spec='${libname}${release}${shared_ext}$major'
10157 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10158 shlibpath_var=LD_LIBRARY_PATH
10159 shlibpath_overrides_runpath=no
10160 hardcode_into_libs=yes
10163 irix5* | irix6* | nonstopux*)
10165 nonstopux*) version_type=nonstopux ;;
10167 if test "$lt_cv_prog_gnu_ld" = yes; then
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10178 irix5* | nonstopux*)
10179 libsuff= shlibsuff=
10182 case $LD in # libtool.m4 will add one of these switches to LD
10183 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10184 libsuff= shlibsuff= libmagic=32-bit;;
10185 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10186 libsuff=32 shlibsuff=N32 libmagic=N32;;
10187 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10188 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10189 *) libsuff= shlibsuff= libmagic=never-match;;
10193 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10194 shlibpath_overrides_runpath=no
10195 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10196 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10197 hardcode_into_libs=yes
10200 # No shared lib support for Linux oldld, aout, or coff.
10201 linux*oldld* | linux*aout* | linux*coff*)
10205 # This must be Linux ELF.
10206 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10213 shlibpath_var=LD_LIBRARY_PATH
10214 shlibpath_overrides_runpath=no
10216 # Some binutils ld are patched to set DT_RUNPATH
10217 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10218 $as_echo_n "(cached) " >&6
10220 lt_cv_shlibpath_overrides_runpath=no
10221 save_LDFLAGS=$LDFLAGS
10222 save_libdir=$libdir
10223 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10224 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10236 if ac_fn_c_try_link "$LINENO"; then :
10237 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10238 lt_cv_shlibpath_overrides_runpath=yes
10241 rm -f core conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243 LDFLAGS=$save_LDFLAGS
10244 libdir=$save_libdir
10248 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10250 # This implies no fast_install, which is unacceptable.
10251 # Some rework will be needed to allow for fast_install
10252 # before this can be enabled.
10253 hardcode_into_libs=yes
10255 # Append ld.so.conf contents to the search path
10256 if test -f /etc/ld.so.conf; then
10257 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' ' '`
10258 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10261 # We used to test for /lib/ld.so.1 and disable shared libraries on
10262 # powerpc, because MkLinux only supported shared libraries with the
10263 # GNU dynamic linker. Since this was broken with cross compilers,
10264 # most powerpc-linux boxes support dynamic linking these days and
10265 # people can always --disable-shared, the test was removed, and we
10266 # assume the GNU/Linux dynamic linker is in use.
10267 dynamic_linker='GNU/Linux ld.so'
10274 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10277 dynamic_linker='NetBSD (a.out) ld.so'
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 dynamic_linker='NetBSD ld.elf_so'
10283 shlibpath_var=LD_LIBRARY_PATH
10284 shlibpath_overrides_runpath=yes
10285 hardcode_into_libs=yes
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=yes
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300 soname_spec='${libname}${release}${shared_ext}$major'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 shlibpath_overrides_runpath=no
10303 hardcode_into_libs=yes
10304 dynamic_linker='ldqnx.so'
10309 sys_lib_dlsearch_path_spec="/usr/lib"
10311 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10313 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10314 *) need_version=no ;;
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10321 openbsd2.[89] | openbsd2.[89].*)
10322 shlibpath_overrides_runpath=no
10325 shlibpath_overrides_runpath=yes
10329 shlibpath_overrides_runpath=yes
10334 libname_spec='$name'
10337 library_names_spec='$libname${shared_ext} $libname.a'
10338 dynamic_linker='OS/2 ld.exe'
10339 shlibpath_var=LIBPATH
10342 osf3* | osf4* | osf5*)
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10350 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362 soname_spec='${libname}${release}${shared_ext}$major'
10363 shlibpath_var=LD_LIBRARY_PATH
10364 shlibpath_overrides_runpath=yes
10365 hardcode_into_libs=yes
10366 # ldd complains unless libraries are executable
10367 postinstall_cmds='chmod +x $lib'
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10373 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 shlibpath_overrides_runpath=yes
10376 if test "$with_gnu_ld" = yes; then
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 shlibpath_var=LD_LIBRARY_PATH
10387 case $host_vendor in
10389 shlibpath_overrides_runpath=no
10391 runpath_var=LD_RUN_PATH
10399 shlibpath_overrides_runpath=no
10400 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10406 if test -d /usr/nec ;then
10408 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10409 soname_spec='$libname${shared_ext}.$major'
10410 shlibpath_var=LD_LIBRARY_PATH
10414 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10415 version_type=freebsd-elf
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 shlibpath_overrides_runpath=yes
10422 hardcode_into_libs=yes
10423 if test "$with_gnu_ld" = yes; then
10424 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10426 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10429 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10433 sys_lib_dlsearch_path_spec='/usr/lib'
10437 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 shlibpath_overrides_runpath=no
10444 hardcode_into_libs=yes
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 shlibpath_var=LD_LIBRARY_PATH
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10459 $as_echo "$dynamic_linker" >&6; }
10460 test "$dynamic_linker" = no && can_build_shared=no
10462 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10463 if test "$GCC" = yes; then
10464 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10467 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10468 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10470 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10471 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10566 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10568 if test -n "$hardcode_libdir_flag_spec" ||
10569 test -n "$runpath_var" ||
10570 test "X$hardcode_automatic" = "Xyes" ; then
10572 # We can hardcode non-existent directories.
10573 if test "$hardcode_direct" != no &&
10574 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10575 # have to relink, otherwise we might link with an installed library
10576 # when we should be linking with a yet-to-be-installed one
10577 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10578 test "$hardcode_minus_L" != no; then
10579 # Linking always hardcodes the temporary library directory.
10580 hardcode_action=relink
10582 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10583 hardcode_action=immediate
10586 # We cannot hardcode anything, or else we can only hardcode existing
10588 hardcode_action=unsupported
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10591 $as_echo "$hardcode_action" >&6; }
10593 if test "$hardcode_action" = relink ||
10594 test "$inherit_rpath" = yes; then
10595 # Fast installation is not supported
10596 enable_fast_install=no
10597 elif test "$shlibpath_overrides_runpath" = yes ||
10598 test "$enable_shared" = no; then
10599 # Fast installation is not necessary
10600 enable_fast_install=needless
10608 if test "x$enable_dlopen" != xyes; then
10609 enable_dlopen=unknown
10610 enable_dlopen_self=unknown
10611 enable_dlopen_self_static=unknown
10618 lt_cv_dlopen="load_add_on"
10620 lt_cv_dlopen_self=yes
10623 mingw* | pw32* | cegcc*)
10624 lt_cv_dlopen="LoadLibrary"
10629 lt_cv_dlopen="dlopen"
10634 # if libdl is installed we need to link against it
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10636 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10637 if ${ac_cv_lib_dl_dlopen+:} false; then :
10638 $as_echo_n "(cached) " >&6
10640 ac_check_lib_save_LIBS=$LIBS
10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h. */
10645 /* Override any GCC internal prototype to avoid an error.
10646 Use char because int might match the return type of a GCC
10647 builtin and then its argument prototype would still apply. */
10660 if ac_fn_c_try_link "$LINENO"; then :
10661 ac_cv_lib_dl_dlopen=yes
10663 ac_cv_lib_dl_dlopen=no
10665 rm -f core conftest.err conftest.$ac_objext \
10666 conftest$ac_exeext conftest.$ac_ext
10667 LIBS=$ac_check_lib_save_LIBS
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10670 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10671 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10672 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10675 lt_cv_dlopen="dyld"
10677 lt_cv_dlopen_self=yes
10684 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10685 if test "x$ac_cv_func_shl_load" = xyes; then :
10686 lt_cv_dlopen="shl_load"
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10689 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10690 if ${ac_cv_lib_dld_shl_load+:} false; then :
10691 $as_echo_n "(cached) " >&6
10693 ac_check_lib_save_LIBS=$LIBS
10695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10698 /* Override any GCC internal prototype to avoid an error.
10699 Use char because int might match the return type of a GCC
10700 builtin and then its argument prototype would still apply. */
10708 return shl_load ();
10713 if ac_fn_c_try_link "$LINENO"; then :
10714 ac_cv_lib_dld_shl_load=yes
10716 ac_cv_lib_dld_shl_load=no
10718 rm -f core conftest.err conftest.$ac_objext \
10719 conftest$ac_exeext conftest.$ac_ext
10720 LIBS=$ac_check_lib_save_LIBS
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10723 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10724 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10725 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10727 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10728 if test "x$ac_cv_func_dlopen" = xyes; then :
10729 lt_cv_dlopen="dlopen"
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10732 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10733 if ${ac_cv_lib_dl_dlopen+:} false; then :
10734 $as_echo_n "(cached) " >&6
10736 ac_check_lib_save_LIBS=$LIBS
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10741 /* Override any GCC internal prototype to avoid an error.
10742 Use char because int might match the return type of a GCC
10743 builtin and then its argument prototype would still apply. */
10756 if ac_fn_c_try_link "$LINENO"; then :
10757 ac_cv_lib_dl_dlopen=yes
10759 ac_cv_lib_dl_dlopen=no
10761 rm -f core conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
10763 LIBS=$ac_check_lib_save_LIBS
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10766 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10767 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10768 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10771 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10772 if ${ac_cv_lib_svld_dlopen+:} false; then :
10773 $as_echo_n "(cached) " >&6
10775 ac_check_lib_save_LIBS=$LIBS
10776 LIBS="-lsvld $LIBS"
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10780 /* Override any GCC internal prototype to avoid an error.
10781 Use char because int might match the return type of a GCC
10782 builtin and then its argument prototype would still apply. */
10795 if ac_fn_c_try_link "$LINENO"; then :
10796 ac_cv_lib_svld_dlopen=yes
10798 ac_cv_lib_svld_dlopen=no
10800 rm -f core conftest.err conftest.$ac_objext \
10801 conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10805 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10806 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10807 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10810 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10811 if ${ac_cv_lib_dld_dld_link+:} false; then :
10812 $as_echo_n "(cached) " >&6
10814 ac_check_lib_save_LIBS=$LIBS
10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h. */
10819 /* Override any GCC internal prototype to avoid an error.
10820 Use char because int might match the return type of a GCC
10821 builtin and then its argument prototype would still apply. */
10829 return dld_link ();
10834 if ac_fn_c_try_link "$LINENO"; then :
10835 ac_cv_lib_dld_dld_link=yes
10837 ac_cv_lib_dld_dld_link=no
10839 rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
10841 LIBS=$ac_check_lib_save_LIBS
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10844 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10845 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10846 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10867 if test "x$lt_cv_dlopen" != xno; then
10873 case $lt_cv_dlopen in
10875 save_CPPFLAGS="$CPPFLAGS"
10876 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10878 save_LDFLAGS="$LDFLAGS"
10879 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10882 LIBS="$lt_cv_dlopen_libs $LIBS"
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10885 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10886 if ${lt_cv_dlopen_self+:} false; then :
10887 $as_echo_n "(cached) " >&6
10889 if test "$cross_compiling" = yes; then :
10890 lt_cv_dlopen_self=cross
10892 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10893 lt_status=$lt_dlunknown
10894 cat > conftest.$ac_ext <<_LT_EOF
10895 #line $LINENO "configure"
10896 #include "confdefs.h"
10905 # define LT_DLGLOBAL RTLD_GLOBAL
10908 # define LT_DLGLOBAL DL_GLOBAL
10910 # define LT_DLGLOBAL 0
10914 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10915 find out it does not work in some platform. */
10916 #ifndef LT_DLLAZY_OR_NOW
10918 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10921 # define LT_DLLAZY_OR_NOW DL_LAZY
10924 # define LT_DLLAZY_OR_NOW RTLD_NOW
10927 # define LT_DLLAZY_OR_NOW DL_NOW
10929 # define LT_DLLAZY_OR_NOW 0
10936 /* When -fvisbility=hidden is used, assume the code has been annotated
10937 correspondingly for the symbols needed. */
10938 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10939 int fnord () __attribute__((visibility("default")));
10942 int fnord () { return 42; }
10945 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10946 int status = $lt_dlunknown;
10950 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10953 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10954 else puts (dlerror ());
10956 /* dlclose (self); */
10964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10965 (eval $ac_link) 2>&5
10967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10968 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10969 (./conftest; exit; ) >&5 2>/dev/null
10971 case x$lt_status in
10972 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10973 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10974 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10977 # compilation failed
10978 lt_cv_dlopen_self=no
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10986 $as_echo "$lt_cv_dlopen_self" >&6; }
10988 if test "x$lt_cv_dlopen_self" = xyes; then
10989 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10991 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10992 if ${lt_cv_dlopen_self_static+:} false; then :
10993 $as_echo_n "(cached) " >&6
10995 if test "$cross_compiling" = yes; then :
10996 lt_cv_dlopen_self_static=cross
10998 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10999 lt_status=$lt_dlunknown
11000 cat > conftest.$ac_ext <<_LT_EOF
11001 #line $LINENO "configure"
11002 #include "confdefs.h"
11011 # define LT_DLGLOBAL RTLD_GLOBAL
11014 # define LT_DLGLOBAL DL_GLOBAL
11016 # define LT_DLGLOBAL 0
11020 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11021 find out it does not work in some platform. */
11022 #ifndef LT_DLLAZY_OR_NOW
11024 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11027 # define LT_DLLAZY_OR_NOW DL_LAZY
11030 # define LT_DLLAZY_OR_NOW RTLD_NOW
11033 # define LT_DLLAZY_OR_NOW DL_NOW
11035 # define LT_DLLAZY_OR_NOW 0
11042 /* When -fvisbility=hidden is used, assume the code has been annotated
11043 correspondingly for the symbols needed. */
11044 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11045 int fnord () __attribute__((visibility("default")));
11048 int fnord () { return 42; }
11051 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11052 int status = $lt_dlunknown;
11056 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11059 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11060 else puts (dlerror ());
11062 /* dlclose (self); */
11070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11071 (eval $ac_link) 2>&5
11073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11074 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11075 (./conftest; exit; ) >&5 2>/dev/null
11077 case x$lt_status in
11078 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11079 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11080 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11083 # compilation failed
11084 lt_cv_dlopen_self_static=no
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11092 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11095 CPPFLAGS="$save_CPPFLAGS"
11096 LDFLAGS="$save_LDFLAGS"
11101 case $lt_cv_dlopen_self in
11102 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11103 *) enable_dlopen_self=unknown ;;
11106 case $lt_cv_dlopen_self_static in
11107 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11108 *) enable_dlopen_self_static=unknown ;;
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11131 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11132 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11133 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11134 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11136 $as_echo "yes" >&6; }
11138 # FIXME - insert some real tests, host_os isn't really good enough
11141 if test -n "$STRIP" ; then
11142 striplib="$STRIP -x"
11143 old_striplib="$STRIP -S"
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11145 $as_echo "yes" >&6; }
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148 $as_echo "no" >&6; }
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153 $as_echo "no" >&6; }
11169 # Report which library types will actually be built
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11171 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11173 $as_echo "$can_build_shared" >&6; }
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11176 $as_echo_n "checking whether to build shared libraries... " >&6; }
11177 test "$can_build_shared" = "no" && enable_shared=no
11179 # On AIX, shared libraries and static libraries use the same namespace, and
11180 # are all built from PIC.
11183 test "$enable_shared" = yes && enable_static=no
11184 if test -n "$RANLIB"; then
11185 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11186 postinstall_cmds='$RANLIB $lib'
11191 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11192 test "$enable_shared" = yes && enable_static=no
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11197 $as_echo "$enable_shared" >&6; }
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11200 $as_echo_n "checking whether to build static libraries... " >&6; }
11201 # Make sure either enable_shared or enable_static is yes.
11202 test "$enable_shared" = yes || enable_static=yes
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11204 $as_echo "$enable_static" >&6; }
11211 ac_cpp='$CPP $CPPFLAGS'
11212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11230 ac_config_commands="$ac_config_commands libtool"
11235 # Only expand once:
11239 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11252 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11253 if ${ac_cv_prog_cc_c99+:} false; then :
11254 $as_echo_n "(cached) " >&6
11256 ac_cv_prog_cc_c99=no
11258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h. */
11260 #include <stdarg.h>
11261 #include <stdbool.h>
11262 #include <stdlib.h>
11266 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11267 #define debug(...) fprintf (stderr, __VA_ARGS__)
11268 #define showlist(...) puts (#__VA_ARGS__)
11269 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11271 test_varargs_macros (void)
11276 debug ("X = %d\n", x);
11277 showlist (The first, second, and third items.);
11278 report (x>y, "x is %d but y is %d", x, y);
11281 // Check long long types.
11282 #define BIG64 18446744073709551615ull
11283 #define BIG32 4294967295ul
11284 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11286 your preprocessor is broken;
11290 your preprocessor is broken;
11292 static long long int bignum = -9223372036854775807LL;
11293 static unsigned long long int ubignum = BIG64;
11295 struct incomplete_array
11301 struct named_init {
11303 const wchar_t *name;
11307 typedef const char *ccp;
11310 test_restrict (ccp restrict text)
11312 // See if C++-style comments work.
11313 // Iterate through items via the restricted pointer.
11314 // Also check for declarations in for loops.
11315 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11320 // Check varargs and va_copy.
11322 test_varargs (const char *format, ...)
11325 va_start (args, format);
11327 va_copy (args_copy, args);
11337 case 's': // string
11338 str = va_arg (args_copy, const char *);
11341 number = va_arg (args_copy, int);
11344 fnumber = va_arg (args_copy, double);
11350 va_end (args_copy);
11359 _Bool success = false;
11362 if (test_restrict ("String literal") == 0)
11364 char *restrict newvar = "Another string";
11367 test_varargs ("s, d' f .", "string", 65, 34.234);
11368 test_varargs_macros ();
11370 // Check flexible array members.
11371 struct incomplete_array *ia =
11372 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11374 for (int i = 0; i < ia->datasize; ++i)
11375 ia->data[i] = i * 1.234;
11377 // Check named initializers.
11378 struct named_init ni = {
11380 .name = L"Test wide string",
11381 .average = 543.34343,
11386 int dynamic_array[ni.number];
11387 dynamic_array[ni.number - 1] = 543;
11389 // work around unused variable warnings
11390 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11391 || dynamic_array[ni.number - 1] != 543);
11397 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11399 CC="$ac_save_CC $ac_arg"
11400 if ac_fn_c_try_compile "$LINENO"; then :
11401 ac_cv_prog_cc_c99=$ac_arg
11403 rm -f core conftest.err conftest.$ac_objext
11404 test "x$ac_cv_prog_cc_c99" != "xno" && break
11406 rm -f conftest.$ac_ext
11411 case "x$ac_cv_prog_cc_c99" in
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11414 $as_echo "none needed" >&6; } ;;
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11417 $as_echo "unsupported" >&6; } ;;
11419 CC="$CC $ac_cv_prog_cc_c99"
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11421 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11423 if test "x$ac_cv_prog_cc_c99" != xno; then :
11432 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11433 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11439 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11440 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11446 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11447 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11456 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11457 if test -n "$ac_tool_prefix"; then
11458 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11459 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11461 $as_echo_n "checking for $ac_word... " >&6; }
11462 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11463 $as_echo_n "(cached) " >&6
11465 case $PKG_CONFIG in
11467 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471 for as_dir in $PATH
11474 test -z "$as_dir" && as_dir=.
11475 for ac_exec_ext in '' $ac_executable_extensions; do
11476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11477 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11488 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11489 if test -n "$PKG_CONFIG"; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11491 $as_echo "$PKG_CONFIG" >&6; }
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11499 if test -z "$ac_cv_path_PKG_CONFIG"; then
11500 ac_pt_PKG_CONFIG=$PKG_CONFIG
11501 # Extract the first word of "pkg-config", so it can be a program name with args.
11502 set dummy pkg-config; ac_word=$2
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504 $as_echo_n "checking for $ac_word... " >&6; }
11505 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11506 $as_echo_n "(cached) " >&6
11508 case $ac_pt_PKG_CONFIG in
11510 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in $PATH
11517 test -z "$as_dir" && as_dir=.
11518 for ac_exec_ext in '' $ac_executable_extensions; do
11519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11520 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11532 if test -n "$ac_pt_PKG_CONFIG"; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11534 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11540 if test "x$ac_pt_PKG_CONFIG" = x; then
11543 case $cross_compiling:$ac_tool_warned in
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11547 ac_tool_warned=yes ;;
11549 PKG_CONFIG=$ac_pt_PKG_CONFIG
11552 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11556 if test -n "$PKG_CONFIG"; then
11557 _pkg_min_version=0.9.0
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11559 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11560 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11562 $as_echo "yes" >&6; }
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11575 # Check whether --enable-selective-werror was given.
11576 if test "${enable_selective_werror+set}" = set; then :
11577 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11579 SELECTIVE_WERROR=yes
11586 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11587 if test "x$SUNCC" = "xyes"; then
11593 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11605 xorg_testset_save_CFLAGS="$CFLAGS"
11607 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11610 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11611 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11612 $as_echo_n "(cached) " >&6
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11618 if ac_fn_c_try_compile "$LINENO"; then :
11619 xorg_cv_compiler_flag_unknown_warning_option=yes
11621 xorg_cv_compiler_flag_unknown_warning_option=no
11623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11626 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11627 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11628 CFLAGS="$xorg_testset_save_CFLAGS"
11631 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11632 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11637 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11638 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11639 $as_echo_n "(cached) " >&6
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11645 if ac_fn_c_try_compile "$LINENO"; then :
11646 xorg_cv_compiler_flag_unused_command_line_argument=yes
11648 xorg_cv_compiler_flag_unused_command_line_argument=no
11650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11653 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11654 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11655 CFLAGS="$xorg_testset_save_CFLAGS"
11660 if test $found = "no" ; then
11661 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11665 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11669 CFLAGS="$CFLAGS -Wall"
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11672 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11673 cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
11674 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11675 $as_echo_n "(cached) " >&6
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11688 if ac_fn_c_try_link "$LINENO"; then :
11689 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11691 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11693 rm -f core conftest.err conftest.$ac_objext \
11694 conftest$ac_exeext conftest.$ac_ext
11698 CFLAGS="$xorg_testset_save_CFLAGS"
11700 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11702 $as_echo "$supported" >&6; }
11703 if test "$supported" = "yes" ; then
11704 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11721 xorg_testset_save_CFLAGS="$CFLAGS"
11723 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11726 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11727 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11728 $as_echo_n "(cached) " >&6
11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11734 if ac_fn_c_try_compile "$LINENO"; then :
11735 xorg_cv_compiler_flag_unknown_warning_option=yes
11737 xorg_cv_compiler_flag_unknown_warning_option=no
11739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11742 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11743 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11744 CFLAGS="$xorg_testset_save_CFLAGS"
11747 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11748 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11753 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11754 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11755 $as_echo_n "(cached) " >&6
11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h. */
11761 if ac_fn_c_try_compile "$LINENO"; then :
11762 xorg_cv_compiler_flag_unused_command_line_argument=yes
11764 xorg_cv_compiler_flag_unused_command_line_argument=no
11766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11769 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11770 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11771 CFLAGS="$xorg_testset_save_CFLAGS"
11776 if test $found = "no" ; then
11777 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11781 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11785 CFLAGS="$CFLAGS -Wpointer-arith"
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11788 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11789 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
11790 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11791 $as_echo_n "(cached) " >&6
11793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h. */
11804 if ac_fn_c_try_link "$LINENO"; then :
11805 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11807 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11809 rm -f core conftest.err conftest.$ac_objext \
11810 conftest$ac_exeext conftest.$ac_ext
11814 CFLAGS="$xorg_testset_save_CFLAGS"
11816 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11818 $as_echo "$supported" >&6; }
11819 if test "$supported" = "yes" ; then
11820 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11837 xorg_testset_save_CFLAGS="$CFLAGS"
11839 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11842 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11843 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11844 $as_echo_n "(cached) " >&6
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11850 if ac_fn_c_try_compile "$LINENO"; then :
11851 xorg_cv_compiler_flag_unknown_warning_option=yes
11853 xorg_cv_compiler_flag_unknown_warning_option=no
11855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11858 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11859 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11860 CFLAGS="$xorg_testset_save_CFLAGS"
11863 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11864 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11869 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11870 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11871 $as_echo_n "(cached) " >&6
11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h. */
11877 if ac_fn_c_try_compile "$LINENO"; then :
11878 xorg_cv_compiler_flag_unused_command_line_argument=yes
11880 xorg_cv_compiler_flag_unused_command_line_argument=no
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11885 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11886 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11887 CFLAGS="$xorg_testset_save_CFLAGS"
11892 if test $found = "no" ; then
11893 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11897 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11901 CFLAGS="$CFLAGS -Wmissing-declarations"
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11904 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11905 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
11906 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11907 $as_echo_n "(cached) " >&6
11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11920 if ac_fn_c_try_link "$LINENO"; then :
11921 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11923 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11925 rm -f core conftest.err conftest.$ac_objext \
11926 conftest$ac_exeext conftest.$ac_ext
11930 CFLAGS="$xorg_testset_save_CFLAGS"
11932 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11934 $as_echo "$supported" >&6; }
11935 if test "$supported" = "yes" ; then
11936 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
11953 xorg_testset_save_CFLAGS="$CFLAGS"
11955 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11958 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11959 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11960 $as_echo_n "(cached) " >&6
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11966 if ac_fn_c_try_compile "$LINENO"; then :
11967 xorg_cv_compiler_flag_unknown_warning_option=yes
11969 xorg_cv_compiler_flag_unknown_warning_option=no
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11974 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11975 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11976 CFLAGS="$xorg_testset_save_CFLAGS"
11979 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11980 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11985 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11986 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11987 $as_echo_n "(cached) " >&6
11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h. */
11993 if ac_fn_c_try_compile "$LINENO"; then :
11994 xorg_cv_compiler_flag_unused_command_line_argument=yes
11996 xorg_cv_compiler_flag_unused_command_line_argument=no
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12001 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12002 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12003 CFLAGS="$xorg_testset_save_CFLAGS"
12008 if test $found = "no" ; then
12009 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12013 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12017 CFLAGS="$CFLAGS -Wformat=2"
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12020 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12021 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12022 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12023 $as_echo_n "(cached) " >&6
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h. */
12036 if ac_fn_c_try_link "$LINENO"; then :
12037 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12039 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12041 rm -f core conftest.err conftest.$ac_objext \
12042 conftest$ac_exeext conftest.$ac_ext
12046 CFLAGS="$xorg_testset_save_CFLAGS"
12048 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12050 $as_echo "$supported" >&6; }
12051 if test "$supported" = "yes" ; then
12052 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12057 if test $found = "no" ; then
12058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12062 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12066 CFLAGS="$CFLAGS -Wformat"
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12069 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12070 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12071 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12072 $as_echo_n "(cached) " >&6
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12085 if ac_fn_c_try_link "$LINENO"; then :
12086 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12088 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12090 rm -f core conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12095 CFLAGS="$xorg_testset_save_CFLAGS"
12097 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12099 $as_echo "$supported" >&6; }
12100 if test "$supported" = "yes" ; then
12101 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12120 xorg_testset_save_CFLAGS="$CFLAGS"
12122 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12125 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12126 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12127 $as_echo_n "(cached) " >&6
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12133 if ac_fn_c_try_compile "$LINENO"; then :
12134 xorg_cv_compiler_flag_unknown_warning_option=yes
12136 xorg_cv_compiler_flag_unknown_warning_option=no
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12141 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12142 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12143 CFLAGS="$xorg_testset_save_CFLAGS"
12146 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12147 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12152 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12153 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12154 $as_echo_n "(cached) " >&6
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12160 if ac_fn_c_try_compile "$LINENO"; then :
12161 xorg_cv_compiler_flag_unused_command_line_argument=yes
12163 xorg_cv_compiler_flag_unused_command_line_argument=no
12165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12168 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12169 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12170 CFLAGS="$xorg_testset_save_CFLAGS"
12175 if test $found = "no" ; then
12176 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12180 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12184 CFLAGS="$CFLAGS -Wstrict-prototypes"
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12187 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12188 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12189 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12190 $as_echo_n "(cached) " >&6
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12203 if ac_fn_c_try_link "$LINENO"; then :
12204 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12206 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12208 rm -f core conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext conftest.$ac_ext
12213 CFLAGS="$xorg_testset_save_CFLAGS"
12215 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12217 $as_echo "$supported" >&6; }
12218 if test "$supported" = "yes" ; then
12219 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12236 xorg_testset_save_CFLAGS="$CFLAGS"
12238 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12241 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12242 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12243 $as_echo_n "(cached) " >&6
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12249 if ac_fn_c_try_compile "$LINENO"; then :
12250 xorg_cv_compiler_flag_unknown_warning_option=yes
12252 xorg_cv_compiler_flag_unknown_warning_option=no
12254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12257 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12258 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12259 CFLAGS="$xorg_testset_save_CFLAGS"
12262 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12263 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12268 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12269 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12270 $as_echo_n "(cached) " >&6
12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h. */
12276 if ac_fn_c_try_compile "$LINENO"; then :
12277 xorg_cv_compiler_flag_unused_command_line_argument=yes
12279 xorg_cv_compiler_flag_unused_command_line_argument=no
12281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12284 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12285 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12286 CFLAGS="$xorg_testset_save_CFLAGS"
12291 if test $found = "no" ; then
12292 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12296 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12300 CFLAGS="$CFLAGS -Wmissing-prototypes"
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12303 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12304 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12305 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12306 $as_echo_n "(cached) " >&6
12308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12319 if ac_fn_c_try_link "$LINENO"; then :
12320 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12322 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12324 rm -f core conftest.err conftest.$ac_objext \
12325 conftest$ac_exeext conftest.$ac_ext
12329 CFLAGS="$xorg_testset_save_CFLAGS"
12331 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12333 $as_echo "$supported" >&6; }
12334 if test "$supported" = "yes" ; then
12335 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12352 xorg_testset_save_CFLAGS="$CFLAGS"
12354 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12357 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12358 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12359 $as_echo_n "(cached) " >&6
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12365 if ac_fn_c_try_compile "$LINENO"; then :
12366 xorg_cv_compiler_flag_unknown_warning_option=yes
12368 xorg_cv_compiler_flag_unknown_warning_option=no
12370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12373 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12374 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12375 CFLAGS="$xorg_testset_save_CFLAGS"
12378 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12379 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12384 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12385 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12386 $as_echo_n "(cached) " >&6
12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h. */
12392 if ac_fn_c_try_compile "$LINENO"; then :
12393 xorg_cv_compiler_flag_unused_command_line_argument=yes
12395 xorg_cv_compiler_flag_unused_command_line_argument=no
12397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12400 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12401 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12402 CFLAGS="$xorg_testset_save_CFLAGS"
12407 if test $found = "no" ; then
12408 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12412 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12416 CFLAGS="$CFLAGS -Wnested-externs"
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12419 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12420 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12421 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12422 $as_echo_n "(cached) " >&6
12424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h. */
12435 if ac_fn_c_try_link "$LINENO"; then :
12436 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12438 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12440 rm -f core conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext conftest.$ac_ext
12445 CFLAGS="$xorg_testset_save_CFLAGS"
12447 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12449 $as_echo "$supported" >&6; }
12450 if test "$supported" = "yes" ; then
12451 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12468 xorg_testset_save_CFLAGS="$CFLAGS"
12470 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12473 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12474 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12475 $as_echo_n "(cached) " >&6
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12481 if ac_fn_c_try_compile "$LINENO"; then :
12482 xorg_cv_compiler_flag_unknown_warning_option=yes
12484 xorg_cv_compiler_flag_unknown_warning_option=no
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12489 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12490 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12491 CFLAGS="$xorg_testset_save_CFLAGS"
12494 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12495 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12500 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12501 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12502 $as_echo_n "(cached) " >&6
12504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h. */
12508 if ac_fn_c_try_compile "$LINENO"; then :
12509 xorg_cv_compiler_flag_unused_command_line_argument=yes
12511 xorg_cv_compiler_flag_unused_command_line_argument=no
12513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12516 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12517 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12518 CFLAGS="$xorg_testset_save_CFLAGS"
12523 if test $found = "no" ; then
12524 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12528 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12532 CFLAGS="$CFLAGS -Wbad-function-cast"
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12535 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12536 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12537 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12538 $as_echo_n "(cached) " >&6
12540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h. */
12551 if ac_fn_c_try_link "$LINENO"; then :
12552 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12554 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12556 rm -f core conftest.err conftest.$ac_objext \
12557 conftest$ac_exeext conftest.$ac_ext
12561 CFLAGS="$xorg_testset_save_CFLAGS"
12563 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12565 $as_echo "$supported" >&6; }
12566 if test "$supported" = "yes" ; then
12567 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12584 xorg_testset_save_CFLAGS="$CFLAGS"
12586 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12589 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12590 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12591 $as_echo_n "(cached) " >&6
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12597 if ac_fn_c_try_compile "$LINENO"; then :
12598 xorg_cv_compiler_flag_unknown_warning_option=yes
12600 xorg_cv_compiler_flag_unknown_warning_option=no
12602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12605 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12606 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12607 CFLAGS="$xorg_testset_save_CFLAGS"
12610 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12611 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12616 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12617 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12618 $as_echo_n "(cached) " >&6
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12624 if ac_fn_c_try_compile "$LINENO"; then :
12625 xorg_cv_compiler_flag_unused_command_line_argument=yes
12627 xorg_cv_compiler_flag_unused_command_line_argument=no
12629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12632 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12633 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12634 CFLAGS="$xorg_testset_save_CFLAGS"
12639 if test $found = "no" ; then
12640 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12644 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12648 CFLAGS="$CFLAGS -Wold-style-definition"
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12651 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12652 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12653 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12654 $as_echo_n "(cached) " >&6
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12667 if ac_fn_c_try_link "$LINENO"; then :
12668 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12670 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12672 rm -f core conftest.err conftest.$ac_objext \
12673 conftest$ac_exeext conftest.$ac_ext
12677 CFLAGS="$xorg_testset_save_CFLAGS"
12679 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12681 $as_echo "$supported" >&6; }
12682 if test "$supported" = "yes" ; then
12683 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12700 xorg_testset_save_CFLAGS="$CFLAGS"
12702 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12705 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12706 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12707 $as_echo_n "(cached) " >&6
12709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12710 /* end confdefs.h. */
12713 if ac_fn_c_try_compile "$LINENO"; then :
12714 xorg_cv_compiler_flag_unknown_warning_option=yes
12716 xorg_cv_compiler_flag_unknown_warning_option=no
12718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12721 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12722 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12723 CFLAGS="$xorg_testset_save_CFLAGS"
12726 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12727 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12732 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12733 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12734 $as_echo_n "(cached) " >&6
12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h. */
12740 if ac_fn_c_try_compile "$LINENO"; then :
12741 xorg_cv_compiler_flag_unused_command_line_argument=yes
12743 xorg_cv_compiler_flag_unused_command_line_argument=no
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12748 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12749 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12750 CFLAGS="$xorg_testset_save_CFLAGS"
12755 if test $found = "no" ; then
12756 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12760 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12764 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12767 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12768 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
12769 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12770 $as_echo_n "(cached) " >&6
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12783 if ac_fn_c_try_link "$LINENO"; then :
12784 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12786 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12788 rm -f core conftest.err conftest.$ac_objext \
12789 conftest$ac_exeext conftest.$ac_ext
12793 CFLAGS="$xorg_testset_save_CFLAGS"
12795 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12797 $as_echo "$supported" >&6; }
12798 if test "$supported" = "yes" ; then
12799 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12808 # This chunk adds additional warnings that could catch undesired effects.
12820 xorg_testset_save_CFLAGS="$CFLAGS"
12822 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12825 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12826 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12827 $as_echo_n "(cached) " >&6
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12833 if ac_fn_c_try_compile "$LINENO"; then :
12834 xorg_cv_compiler_flag_unknown_warning_option=yes
12836 xorg_cv_compiler_flag_unknown_warning_option=no
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12841 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12842 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12843 CFLAGS="$xorg_testset_save_CFLAGS"
12846 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12847 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12852 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12853 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12854 $as_echo_n "(cached) " >&6
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12860 if ac_fn_c_try_compile "$LINENO"; then :
12861 xorg_cv_compiler_flag_unused_command_line_argument=yes
12863 xorg_cv_compiler_flag_unused_command_line_argument=no
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12868 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12869 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12870 CFLAGS="$xorg_testset_save_CFLAGS"
12875 if test $found = "no" ; then
12876 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12880 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12884 CFLAGS="$CFLAGS -Wunused"
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12887 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
12888 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
12889 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12890 $as_echo_n "(cached) " >&6
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12903 if ac_fn_c_try_link "$LINENO"; then :
12904 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12906 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12908 rm -f core conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12913 CFLAGS="$xorg_testset_save_CFLAGS"
12915 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12917 $as_echo "$supported" >&6; }
12918 if test "$supported" = "yes" ; then
12919 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12936 xorg_testset_save_CFLAGS="$CFLAGS"
12938 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12941 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12942 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12943 $as_echo_n "(cached) " >&6
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12949 if ac_fn_c_try_compile "$LINENO"; then :
12950 xorg_cv_compiler_flag_unknown_warning_option=yes
12952 xorg_cv_compiler_flag_unknown_warning_option=no
12954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12957 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12958 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12959 CFLAGS="$xorg_testset_save_CFLAGS"
12962 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12963 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12968 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12969 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12970 $as_echo_n "(cached) " >&6
12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12976 if ac_fn_c_try_compile "$LINENO"; then :
12977 xorg_cv_compiler_flag_unused_command_line_argument=yes
12979 xorg_cv_compiler_flag_unused_command_line_argument=no
12981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12984 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12985 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12986 CFLAGS="$xorg_testset_save_CFLAGS"
12991 if test $found = "no" ; then
12992 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12996 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13000 CFLAGS="$CFLAGS -Wuninitialized"
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13003 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13004 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
13005 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13006 $as_echo_n "(cached) " >&6
13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13019 if ac_fn_c_try_link "$LINENO"; then :
13020 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13022 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13024 rm -f core conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext conftest.$ac_ext
13029 CFLAGS="$xorg_testset_save_CFLAGS"
13031 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13033 $as_echo "$supported" >&6; }
13034 if test "$supported" = "yes" ; then
13035 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13052 xorg_testset_save_CFLAGS="$CFLAGS"
13054 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13057 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13058 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13059 $as_echo_n "(cached) " >&6
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13065 if ac_fn_c_try_compile "$LINENO"; then :
13066 xorg_cv_compiler_flag_unknown_warning_option=yes
13068 xorg_cv_compiler_flag_unknown_warning_option=no
13070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13073 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13074 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13075 CFLAGS="$xorg_testset_save_CFLAGS"
13078 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13079 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13084 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13085 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13086 $as_echo_n "(cached) " >&6
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13092 if ac_fn_c_try_compile "$LINENO"; then :
13093 xorg_cv_compiler_flag_unused_command_line_argument=yes
13095 xorg_cv_compiler_flag_unused_command_line_argument=no
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13100 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13101 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13102 CFLAGS="$xorg_testset_save_CFLAGS"
13107 if test $found = "no" ; then
13108 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13112 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13116 CFLAGS="$CFLAGS -Wshadow"
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13119 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13120 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13121 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13122 $as_echo_n "(cached) " >&6
13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13135 if ac_fn_c_try_link "$LINENO"; then :
13136 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13138 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13140 rm -f core conftest.err conftest.$ac_objext \
13141 conftest$ac_exeext conftest.$ac_ext
13145 CFLAGS="$xorg_testset_save_CFLAGS"
13147 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13149 $as_echo "$supported" >&6; }
13150 if test "$supported" = "yes" ; then
13151 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13168 xorg_testset_save_CFLAGS="$CFLAGS"
13170 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13173 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13174 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13175 $as_echo_n "(cached) " >&6
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13181 if ac_fn_c_try_compile "$LINENO"; then :
13182 xorg_cv_compiler_flag_unknown_warning_option=yes
13184 xorg_cv_compiler_flag_unknown_warning_option=no
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13189 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13190 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13191 CFLAGS="$xorg_testset_save_CFLAGS"
13194 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13195 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13200 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13201 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13202 $as_echo_n "(cached) " >&6
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h. */
13208 if ac_fn_c_try_compile "$LINENO"; then :
13209 xorg_cv_compiler_flag_unused_command_line_argument=yes
13211 xorg_cv_compiler_flag_unused_command_line_argument=no
13213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13216 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13217 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13218 CFLAGS="$xorg_testset_save_CFLAGS"
13223 if test $found = "no" ; then
13224 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13228 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13232 CFLAGS="$CFLAGS -Wcast-qual"
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13235 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13236 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13237 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13238 $as_echo_n "(cached) " >&6
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13251 if ac_fn_c_try_link "$LINENO"; then :
13252 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13254 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13256 rm -f core conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext conftest.$ac_ext
13261 CFLAGS="$xorg_testset_save_CFLAGS"
13263 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13265 $as_echo "$supported" >&6; }
13266 if test "$supported" = "yes" ; then
13267 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13284 xorg_testset_save_CFLAGS="$CFLAGS"
13286 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13289 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13290 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13291 $as_echo_n "(cached) " >&6
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13297 if ac_fn_c_try_compile "$LINENO"; then :
13298 xorg_cv_compiler_flag_unknown_warning_option=yes
13300 xorg_cv_compiler_flag_unknown_warning_option=no
13302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13305 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13306 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13307 CFLAGS="$xorg_testset_save_CFLAGS"
13310 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13311 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13316 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13317 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13318 $as_echo_n "(cached) " >&6
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13324 if ac_fn_c_try_compile "$LINENO"; then :
13325 xorg_cv_compiler_flag_unused_command_line_argument=yes
13327 xorg_cv_compiler_flag_unused_command_line_argument=no
13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13332 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13333 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13334 CFLAGS="$xorg_testset_save_CFLAGS"
13339 if test $found = "no" ; then
13340 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13344 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13348 CFLAGS="$CFLAGS -Wmissing-noreturn"
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13351 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13352 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13353 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13354 $as_echo_n "(cached) " >&6
13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13367 if ac_fn_c_try_link "$LINENO"; then :
13368 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13370 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13372 rm -f core conftest.err conftest.$ac_objext \
13373 conftest$ac_exeext conftest.$ac_ext
13377 CFLAGS="$xorg_testset_save_CFLAGS"
13379 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13381 $as_echo "$supported" >&6; }
13382 if test "$supported" = "yes" ; then
13383 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13400 xorg_testset_save_CFLAGS="$CFLAGS"
13402 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13405 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13406 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13407 $as_echo_n "(cached) " >&6
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13413 if ac_fn_c_try_compile "$LINENO"; then :
13414 xorg_cv_compiler_flag_unknown_warning_option=yes
13416 xorg_cv_compiler_flag_unknown_warning_option=no
13418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13421 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13422 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13423 CFLAGS="$xorg_testset_save_CFLAGS"
13426 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13427 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13432 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13433 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13434 $as_echo_n "(cached) " >&6
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13440 if ac_fn_c_try_compile "$LINENO"; then :
13441 xorg_cv_compiler_flag_unused_command_line_argument=yes
13443 xorg_cv_compiler_flag_unused_command_line_argument=no
13445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13448 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13449 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13450 CFLAGS="$xorg_testset_save_CFLAGS"
13455 if test $found = "no" ; then
13456 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13460 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13464 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13467 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13468 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13469 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13470 $as_echo_n "(cached) " >&6
13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473 /* end confdefs.h. */
13483 if ac_fn_c_try_link "$LINENO"; then :
13484 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13486 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13488 rm -f core conftest.err conftest.$ac_objext \
13489 conftest$ac_exeext conftest.$ac_ext
13493 CFLAGS="$xorg_testset_save_CFLAGS"
13495 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13497 $as_echo "$supported" >&6; }
13498 if test "$supported" = "yes" ; then
13499 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13516 xorg_testset_save_CFLAGS="$CFLAGS"
13518 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13521 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13522 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13523 $as_echo_n "(cached) " >&6
13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13529 if ac_fn_c_try_compile "$LINENO"; then :
13530 xorg_cv_compiler_flag_unknown_warning_option=yes
13532 xorg_cv_compiler_flag_unknown_warning_option=no
13534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13537 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13538 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13539 CFLAGS="$xorg_testset_save_CFLAGS"
13542 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13543 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13548 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13549 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13550 $as_echo_n "(cached) " >&6
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13556 if ac_fn_c_try_compile "$LINENO"; then :
13557 xorg_cv_compiler_flag_unused_command_line_argument=yes
13559 xorg_cv_compiler_flag_unused_command_line_argument=no
13561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13564 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13565 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13566 CFLAGS="$xorg_testset_save_CFLAGS"
13571 if test $found = "no" ; then
13572 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13576 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13580 CFLAGS="$CFLAGS -Wredundant-decls"
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13583 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13584 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13585 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13586 $as_echo_n "(cached) " >&6
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13599 if ac_fn_c_try_link "$LINENO"; then :
13600 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13602 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13604 rm -f core conftest.err conftest.$ac_objext \
13605 conftest$ac_exeext conftest.$ac_ext
13609 CFLAGS="$xorg_testset_save_CFLAGS"
13611 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13613 $as_echo "$supported" >&6; }
13614 if test "$supported" = "yes" ; then
13615 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13622 # These are currently disabled because they are noisy. They will be enabled
13623 # in the future once the codebase is sufficiently modernized to silence
13624 # them. For now, I don't want them to drown out the other warnings.
13625 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13626 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13627 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13629 # Turn some warnings into errors, so we don't accidently get successful builds
13630 # when there are problems that should be fixed.
13632 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13644 xorg_testset_save_CFLAGS="$CFLAGS"
13646 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13649 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13650 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13651 $as_echo_n "(cached) " >&6
13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h. */
13657 if ac_fn_c_try_compile "$LINENO"; then :
13658 xorg_cv_compiler_flag_unknown_warning_option=yes
13660 xorg_cv_compiler_flag_unknown_warning_option=no
13662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13665 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13666 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13667 CFLAGS="$xorg_testset_save_CFLAGS"
13670 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13671 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13676 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13677 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13678 $as_echo_n "(cached) " >&6
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13684 if ac_fn_c_try_compile "$LINENO"; then :
13685 xorg_cv_compiler_flag_unused_command_line_argument=yes
13687 xorg_cv_compiler_flag_unused_command_line_argument=no
13689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13692 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13693 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13694 CFLAGS="$xorg_testset_save_CFLAGS"
13699 if test $found = "no" ; then
13700 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13704 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13708 CFLAGS="$CFLAGS -Werror=implicit"
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13711 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13712 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13713 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13714 $as_echo_n "(cached) " >&6
13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h. */
13727 if ac_fn_c_try_link "$LINENO"; then :
13728 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13730 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13732 rm -f core conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext conftest.$ac_ext
13737 CFLAGS="$xorg_testset_save_CFLAGS"
13739 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13741 $as_echo "$supported" >&6; }
13742 if test "$supported" = "yes" ; then
13743 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13748 if test $found = "no" ; then
13749 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13753 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13757 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13760 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13761 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
13762 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13763 $as_echo_n "(cached) " >&6
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h. */
13776 if ac_fn_c_try_link "$LINENO"; then :
13777 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13779 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13781 rm -f core conftest.err conftest.$ac_objext \
13782 conftest$ac_exeext conftest.$ac_ext
13786 CFLAGS="$xorg_testset_save_CFLAGS"
13788 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13790 $as_echo "$supported" >&6; }
13791 if test "$supported" = "yes" ; then
13792 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13809 xorg_testset_save_CFLAGS="$CFLAGS"
13811 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13814 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13815 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13816 $as_echo_n "(cached) " >&6
13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h. */
13822 if ac_fn_c_try_compile "$LINENO"; then :
13823 xorg_cv_compiler_flag_unknown_warning_option=yes
13825 xorg_cv_compiler_flag_unknown_warning_option=no
13827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13830 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13831 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13832 CFLAGS="$xorg_testset_save_CFLAGS"
13835 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13841 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13842 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13843 $as_echo_n "(cached) " >&6
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13849 if ac_fn_c_try_compile "$LINENO"; then :
13850 xorg_cv_compiler_flag_unused_command_line_argument=yes
13852 xorg_cv_compiler_flag_unused_command_line_argument=no
13854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13857 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13858 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13859 CFLAGS="$xorg_testset_save_CFLAGS"
13864 if test $found = "no" ; then
13865 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13869 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13873 CFLAGS="$CFLAGS -Werror=nonnull"
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13876 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13877 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
13878 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13879 $as_echo_n "(cached) " >&6
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13892 if ac_fn_c_try_link "$LINENO"; then :
13893 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13895 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13897 rm -f core conftest.err conftest.$ac_objext \
13898 conftest$ac_exeext conftest.$ac_ext
13902 CFLAGS="$xorg_testset_save_CFLAGS"
13904 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13906 $as_echo "$supported" >&6; }
13907 if test "$supported" = "yes" ; then
13908 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13925 xorg_testset_save_CFLAGS="$CFLAGS"
13927 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13930 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13931 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13932 $as_echo_n "(cached) " >&6
13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h. */
13938 if ac_fn_c_try_compile "$LINENO"; then :
13939 xorg_cv_compiler_flag_unknown_warning_option=yes
13941 xorg_cv_compiler_flag_unknown_warning_option=no
13943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13946 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13947 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13948 CFLAGS="$xorg_testset_save_CFLAGS"
13951 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13952 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13957 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13958 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13959 $as_echo_n "(cached) " >&6
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13965 if ac_fn_c_try_compile "$LINENO"; then :
13966 xorg_cv_compiler_flag_unused_command_line_argument=yes
13968 xorg_cv_compiler_flag_unused_command_line_argument=no
13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13973 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13974 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13975 CFLAGS="$xorg_testset_save_CFLAGS"
13980 if test $found = "no" ; then
13981 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13985 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13989 CFLAGS="$CFLAGS -Werror=init-self"
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
13992 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
13993 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
13994 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13995 $as_echo_n "(cached) " >&6
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
14008 if ac_fn_c_try_link "$LINENO"; then :
14009 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14011 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14013 rm -f core conftest.err conftest.$ac_objext \
14014 conftest$ac_exeext conftest.$ac_ext
14018 CFLAGS="$xorg_testset_save_CFLAGS"
14020 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14022 $as_echo "$supported" >&6; }
14023 if test "$supported" = "yes" ; then
14024 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14041 xorg_testset_save_CFLAGS="$CFLAGS"
14043 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14046 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14047 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14048 $as_echo_n "(cached) " >&6
14050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14051 /* end confdefs.h. */
14054 if ac_fn_c_try_compile "$LINENO"; then :
14055 xorg_cv_compiler_flag_unknown_warning_option=yes
14057 xorg_cv_compiler_flag_unknown_warning_option=no
14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14062 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14063 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14064 CFLAGS="$xorg_testset_save_CFLAGS"
14067 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14068 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14073 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14074 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14075 $as_echo_n "(cached) " >&6
14077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14078 /* end confdefs.h. */
14081 if ac_fn_c_try_compile "$LINENO"; then :
14082 xorg_cv_compiler_flag_unused_command_line_argument=yes
14084 xorg_cv_compiler_flag_unused_command_line_argument=no
14086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14089 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14090 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14091 CFLAGS="$xorg_testset_save_CFLAGS"
14096 if test $found = "no" ; then
14097 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14101 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14105 CFLAGS="$CFLAGS -Werror=main"
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14108 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14109 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14110 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14111 $as_echo_n "(cached) " >&6
14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14114 /* end confdefs.h. */
14124 if ac_fn_c_try_link "$LINENO"; then :
14125 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14127 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14129 rm -f core conftest.err conftest.$ac_objext \
14130 conftest$ac_exeext conftest.$ac_ext
14134 CFLAGS="$xorg_testset_save_CFLAGS"
14136 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14138 $as_echo "$supported" >&6; }
14139 if test "$supported" = "yes" ; then
14140 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14157 xorg_testset_save_CFLAGS="$CFLAGS"
14159 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14162 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14163 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14164 $as_echo_n "(cached) " >&6
14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h. */
14170 if ac_fn_c_try_compile "$LINENO"; then :
14171 xorg_cv_compiler_flag_unknown_warning_option=yes
14173 xorg_cv_compiler_flag_unknown_warning_option=no
14175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14178 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14179 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14180 CFLAGS="$xorg_testset_save_CFLAGS"
14183 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14184 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14189 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14190 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14191 $as_echo_n "(cached) " >&6
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h. */
14197 if ac_fn_c_try_compile "$LINENO"; then :
14198 xorg_cv_compiler_flag_unused_command_line_argument=yes
14200 xorg_cv_compiler_flag_unused_command_line_argument=no
14202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14205 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14206 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14207 CFLAGS="$xorg_testset_save_CFLAGS"
14212 if test $found = "no" ; then
14213 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14217 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14221 CFLAGS="$CFLAGS -Werror=missing-braces"
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14224 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14225 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14226 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14227 $as_echo_n "(cached) " >&6
14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230 /* end confdefs.h. */
14240 if ac_fn_c_try_link "$LINENO"; then :
14241 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14243 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14245 rm -f core conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
14250 CFLAGS="$xorg_testset_save_CFLAGS"
14252 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14254 $as_echo "$supported" >&6; }
14255 if test "$supported" = "yes" ; then
14256 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14273 xorg_testset_save_CFLAGS="$CFLAGS"
14275 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14278 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14279 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14280 $as_echo_n "(cached) " >&6
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14286 if ac_fn_c_try_compile "$LINENO"; then :
14287 xorg_cv_compiler_flag_unknown_warning_option=yes
14289 xorg_cv_compiler_flag_unknown_warning_option=no
14291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14294 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14295 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14296 CFLAGS="$xorg_testset_save_CFLAGS"
14299 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14300 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14305 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14306 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14307 $as_echo_n "(cached) " >&6
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14313 if ac_fn_c_try_compile "$LINENO"; then :
14314 xorg_cv_compiler_flag_unused_command_line_argument=yes
14316 xorg_cv_compiler_flag_unused_command_line_argument=no
14318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14321 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14322 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14323 CFLAGS="$xorg_testset_save_CFLAGS"
14328 if test $found = "no" ; then
14329 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14333 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14337 CFLAGS="$CFLAGS -Werror=sequence-point"
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14340 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14341 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14342 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14343 $as_echo_n "(cached) " >&6
14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14356 if ac_fn_c_try_link "$LINENO"; then :
14357 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14359 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14361 rm -f core conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext conftest.$ac_ext
14366 CFLAGS="$xorg_testset_save_CFLAGS"
14368 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14370 $as_echo "$supported" >&6; }
14371 if test "$supported" = "yes" ; then
14372 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14389 xorg_testset_save_CFLAGS="$CFLAGS"
14391 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14394 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14395 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14396 $as_echo_n "(cached) " >&6
14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h. */
14402 if ac_fn_c_try_compile "$LINENO"; then :
14403 xorg_cv_compiler_flag_unknown_warning_option=yes
14405 xorg_cv_compiler_flag_unknown_warning_option=no
14407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14410 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14411 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14412 CFLAGS="$xorg_testset_save_CFLAGS"
14415 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14416 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14421 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14422 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14423 $as_echo_n "(cached) " >&6
14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 /* end confdefs.h. */
14429 if ac_fn_c_try_compile "$LINENO"; then :
14430 xorg_cv_compiler_flag_unused_command_line_argument=yes
14432 xorg_cv_compiler_flag_unused_command_line_argument=no
14434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14437 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14438 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14439 CFLAGS="$xorg_testset_save_CFLAGS"
14444 if test $found = "no" ; then
14445 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14449 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14453 CFLAGS="$CFLAGS -Werror=return-type"
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14456 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14457 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14458 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14459 $as_echo_n "(cached) " >&6
14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h. */
14472 if ac_fn_c_try_link "$LINENO"; then :
14473 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14475 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14477 rm -f core conftest.err conftest.$ac_objext \
14478 conftest$ac_exeext conftest.$ac_ext
14482 CFLAGS="$xorg_testset_save_CFLAGS"
14484 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14486 $as_echo "$supported" >&6; }
14487 if test "$supported" = "yes" ; then
14488 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14493 if test $found = "no" ; then
14494 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14498 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14502 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14505 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14506 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14507 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14508 $as_echo_n "(cached) " >&6
14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511 /* end confdefs.h. */
14521 if ac_fn_c_try_link "$LINENO"; then :
14522 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14524 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14526 rm -f core conftest.err conftest.$ac_objext \
14527 conftest$ac_exeext conftest.$ac_ext
14531 CFLAGS="$xorg_testset_save_CFLAGS"
14533 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14535 $as_echo "$supported" >&6; }
14536 if test "$supported" = "yes" ; then
14537 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14554 xorg_testset_save_CFLAGS="$CFLAGS"
14556 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14559 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14560 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14561 $as_echo_n "(cached) " >&6
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14567 if ac_fn_c_try_compile "$LINENO"; then :
14568 xorg_cv_compiler_flag_unknown_warning_option=yes
14570 xorg_cv_compiler_flag_unknown_warning_option=no
14572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14575 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14576 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14577 CFLAGS="$xorg_testset_save_CFLAGS"
14580 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14581 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14586 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14587 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14588 $as_echo_n "(cached) " >&6
14590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14591 /* end confdefs.h. */
14594 if ac_fn_c_try_compile "$LINENO"; then :
14595 xorg_cv_compiler_flag_unused_command_line_argument=yes
14597 xorg_cv_compiler_flag_unused_command_line_argument=no
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14602 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14603 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14604 CFLAGS="$xorg_testset_save_CFLAGS"
14609 if test $found = "no" ; then
14610 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14614 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14618 CFLAGS="$CFLAGS -Werror=trigraphs"
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14621 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14622 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14623 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14624 $as_echo_n "(cached) " >&6
14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627 /* end confdefs.h. */
14637 if ac_fn_c_try_link "$LINENO"; then :
14638 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14640 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14642 rm -f core conftest.err conftest.$ac_objext \
14643 conftest$ac_exeext conftest.$ac_ext
14647 CFLAGS="$xorg_testset_save_CFLAGS"
14649 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14651 $as_echo "$supported" >&6; }
14652 if test "$supported" = "yes" ; then
14653 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14670 xorg_testset_save_CFLAGS="$CFLAGS"
14672 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14675 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14676 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14677 $as_echo_n "(cached) " >&6
14679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h. */
14683 if ac_fn_c_try_compile "$LINENO"; then :
14684 xorg_cv_compiler_flag_unknown_warning_option=yes
14686 xorg_cv_compiler_flag_unknown_warning_option=no
14688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14691 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14692 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14693 CFLAGS="$xorg_testset_save_CFLAGS"
14696 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14697 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14702 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14703 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14704 $as_echo_n "(cached) " >&6
14706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707 /* end confdefs.h. */
14710 if ac_fn_c_try_compile "$LINENO"; then :
14711 xorg_cv_compiler_flag_unused_command_line_argument=yes
14713 xorg_cv_compiler_flag_unused_command_line_argument=no
14715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14718 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14719 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14720 CFLAGS="$xorg_testset_save_CFLAGS"
14725 if test $found = "no" ; then
14726 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14730 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14734 CFLAGS="$CFLAGS -Werror=array-bounds"
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14737 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14738 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14739 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14740 $as_echo_n "(cached) " >&6
14742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h. */
14753 if ac_fn_c_try_link "$LINENO"; then :
14754 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14756 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14758 rm -f core conftest.err conftest.$ac_objext \
14759 conftest$ac_exeext conftest.$ac_ext
14763 CFLAGS="$xorg_testset_save_CFLAGS"
14765 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14767 $as_echo "$supported" >&6; }
14768 if test "$supported" = "yes" ; then
14769 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14786 xorg_testset_save_CFLAGS="$CFLAGS"
14788 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14791 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14792 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14793 $as_echo_n "(cached) " >&6
14795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796 /* end confdefs.h. */
14799 if ac_fn_c_try_compile "$LINENO"; then :
14800 xorg_cv_compiler_flag_unknown_warning_option=yes
14802 xorg_cv_compiler_flag_unknown_warning_option=no
14804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14807 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14808 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14809 CFLAGS="$xorg_testset_save_CFLAGS"
14812 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14813 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14818 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14819 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14820 $as_echo_n "(cached) " >&6
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14826 if ac_fn_c_try_compile "$LINENO"; then :
14827 xorg_cv_compiler_flag_unused_command_line_argument=yes
14829 xorg_cv_compiler_flag_unused_command_line_argument=no
14831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14834 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14835 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14836 CFLAGS="$xorg_testset_save_CFLAGS"
14841 if test $found = "no" ; then
14842 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14846 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14850 CFLAGS="$CFLAGS -Werror=write-strings"
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14853 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14854 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
14855 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14856 $as_echo_n "(cached) " >&6
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h. */
14869 if ac_fn_c_try_link "$LINENO"; then :
14870 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14872 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14874 rm -f core conftest.err conftest.$ac_objext \
14875 conftest$ac_exeext conftest.$ac_ext
14879 CFLAGS="$xorg_testset_save_CFLAGS"
14881 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14883 $as_echo "$supported" >&6; }
14884 if test "$supported" = "yes" ; then
14885 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14902 xorg_testset_save_CFLAGS="$CFLAGS"
14904 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14907 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14908 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14909 $as_echo_n "(cached) " >&6
14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14915 if ac_fn_c_try_compile "$LINENO"; then :
14916 xorg_cv_compiler_flag_unknown_warning_option=yes
14918 xorg_cv_compiler_flag_unknown_warning_option=no
14920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14923 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14924 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14925 CFLAGS="$xorg_testset_save_CFLAGS"
14928 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14929 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14934 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14935 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14936 $as_echo_n "(cached) " >&6
14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14942 if ac_fn_c_try_compile "$LINENO"; then :
14943 xorg_cv_compiler_flag_unused_command_line_argument=yes
14945 xorg_cv_compiler_flag_unused_command_line_argument=no
14947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14950 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14951 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14952 CFLAGS="$xorg_testset_save_CFLAGS"
14957 if test $found = "no" ; then
14958 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14962 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14966 CFLAGS="$CFLAGS -Werror=address"
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
14969 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
14970 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
14971 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14972 $as_echo_n "(cached) " >&6
14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975 /* end confdefs.h. */
14985 if ac_fn_c_try_link "$LINENO"; then :
14986 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14988 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14990 rm -f core conftest.err conftest.$ac_objext \
14991 conftest$ac_exeext conftest.$ac_ext
14995 CFLAGS="$xorg_testset_save_CFLAGS"
14997 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14999 $as_echo "$supported" >&6; }
15000 if test "$supported" = "yes" ; then
15001 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15018 xorg_testset_save_CFLAGS="$CFLAGS"
15020 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15023 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15024 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15025 $as_echo_n "(cached) " >&6
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15031 if ac_fn_c_try_compile "$LINENO"; then :
15032 xorg_cv_compiler_flag_unknown_warning_option=yes
15034 xorg_cv_compiler_flag_unknown_warning_option=no
15036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15039 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15040 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15041 CFLAGS="$xorg_testset_save_CFLAGS"
15044 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15045 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15050 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15051 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15052 $as_echo_n "(cached) " >&6
15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15058 if ac_fn_c_try_compile "$LINENO"; then :
15059 xorg_cv_compiler_flag_unused_command_line_argument=yes
15061 xorg_cv_compiler_flag_unused_command_line_argument=no
15063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15066 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15067 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15068 CFLAGS="$xorg_testset_save_CFLAGS"
15073 if test $found = "no" ; then
15074 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15078 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15082 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15085 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15086 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15087 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15088 $as_echo_n "(cached) " >&6
15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15101 if ac_fn_c_try_link "$LINENO"; then :
15102 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15104 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15106 rm -f core conftest.err conftest.$ac_objext \
15107 conftest$ac_exeext conftest.$ac_ext
15111 CFLAGS="$xorg_testset_save_CFLAGS"
15113 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15115 $as_echo "$supported" >&6; }
15116 if test "$supported" = "yes" ; then
15117 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15122 if test $found = "no" ; then
15123 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15127 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15131 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15134 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15135 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15136 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15137 $as_echo_n "(cached) " >&6
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15150 if ac_fn_c_try_link "$LINENO"; then :
15151 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15153 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15155 rm -f core conftest.err conftest.$ac_objext \
15156 conftest$ac_exeext conftest.$ac_ext
15160 CFLAGS="$xorg_testset_save_CFLAGS"
15162 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15164 $as_echo "$supported" >&6; }
15165 if test "$supported" = "yes" ; then
15166 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15183 xorg_testset_save_CFLAGS="$CFLAGS"
15185 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15188 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15189 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15190 $as_echo_n "(cached) " >&6
15192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15193 /* end confdefs.h. */
15196 if ac_fn_c_try_compile "$LINENO"; then :
15197 xorg_cv_compiler_flag_unknown_warning_option=yes
15199 xorg_cv_compiler_flag_unknown_warning_option=no
15201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15204 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15205 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15206 CFLAGS="$xorg_testset_save_CFLAGS"
15209 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15210 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15215 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15216 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15217 $as_echo_n "(cached) " >&6
15219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h. */
15223 if ac_fn_c_try_compile "$LINENO"; then :
15224 xorg_cv_compiler_flag_unused_command_line_argument=yes
15226 xorg_cv_compiler_flag_unused_command_line_argument=no
15228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15231 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15232 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15233 CFLAGS="$xorg_testset_save_CFLAGS"
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 -Werror=pointer-to-int-cast"
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15250 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15251 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15252 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} 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 :
15267 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15269 eval `$as_echo "$cacheid" | $as_tr_sh`=no
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=$`$as_echo "$cacheid" | $as_tr_sh`
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 -Werror=pointer-to-int-cast"
15287 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15289 { $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
15290 $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;}
15302 xorg_testset_save_CFLAGS="$CFLAGS"
15304 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15307 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15308 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15309 $as_echo_n "(cached) " >&6
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15315 if ac_fn_c_try_compile "$LINENO"; then :
15316 xorg_cv_compiler_flag_unknown_warning_option=yes
15318 xorg_cv_compiler_flag_unknown_warning_option=no
15320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15323 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15324 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15325 CFLAGS="$xorg_testset_save_CFLAGS"
15328 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15329 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15334 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15335 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15336 $as_echo_n "(cached) " >&6
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15342 if ac_fn_c_try_compile "$LINENO"; then :
15343 xorg_cv_compiler_flag_unused_command_line_argument=yes
15345 xorg_cv_compiler_flag_unused_command_line_argument=no
15347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15350 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15351 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15352 CFLAGS="$xorg_testset_save_CFLAGS"
15357 if test $found = "no" ; then
15358 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15362 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15366 CFLAGS="$CFLAGS -Wimplicit"
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15369 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15370 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15371 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15372 $as_echo_n "(cached) " >&6
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15385 if ac_fn_c_try_link "$LINENO"; then :
15386 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15388 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15390 rm -f core conftest.err conftest.$ac_objext \
15391 conftest$ac_exeext conftest.$ac_ext
15395 CFLAGS="$xorg_testset_save_CFLAGS"
15397 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15399 $as_echo "$supported" >&6; }
15400 if test "$supported" = "yes" ; then
15401 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15418 xorg_testset_save_CFLAGS="$CFLAGS"
15420 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15423 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15424 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15425 $as_echo_n "(cached) " >&6
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15431 if ac_fn_c_try_compile "$LINENO"; then :
15432 xorg_cv_compiler_flag_unknown_warning_option=yes
15434 xorg_cv_compiler_flag_unknown_warning_option=no
15436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15439 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15440 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15441 CFLAGS="$xorg_testset_save_CFLAGS"
15444 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15445 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15450 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15451 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15452 $as_echo_n "(cached) " >&6
15454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15455 /* end confdefs.h. */
15458 if ac_fn_c_try_compile "$LINENO"; then :
15459 xorg_cv_compiler_flag_unused_command_line_argument=yes
15461 xorg_cv_compiler_flag_unused_command_line_argument=no
15463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15466 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15467 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15468 CFLAGS="$xorg_testset_save_CFLAGS"
15473 if test $found = "no" ; then
15474 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15478 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15482 CFLAGS="$CFLAGS -Wnonnull"
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15485 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15486 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15487 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15488 $as_echo_n "(cached) " >&6
15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491 /* end confdefs.h. */
15501 if ac_fn_c_try_link "$LINENO"; then :
15502 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15504 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15506 rm -f core conftest.err conftest.$ac_objext \
15507 conftest$ac_exeext conftest.$ac_ext
15511 CFLAGS="$xorg_testset_save_CFLAGS"
15513 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15515 $as_echo "$supported" >&6; }
15516 if test "$supported" = "yes" ; then
15517 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15534 xorg_testset_save_CFLAGS="$CFLAGS"
15536 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15539 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15540 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15541 $as_echo_n "(cached) " >&6
15543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15544 /* end confdefs.h. */
15547 if ac_fn_c_try_compile "$LINENO"; then :
15548 xorg_cv_compiler_flag_unknown_warning_option=yes
15550 xorg_cv_compiler_flag_unknown_warning_option=no
15552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15555 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15556 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15557 CFLAGS="$xorg_testset_save_CFLAGS"
15560 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15561 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15566 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15567 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15568 $as_echo_n "(cached) " >&6
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15574 if ac_fn_c_try_compile "$LINENO"; then :
15575 xorg_cv_compiler_flag_unused_command_line_argument=yes
15577 xorg_cv_compiler_flag_unused_command_line_argument=no
15579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15582 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15583 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15584 CFLAGS="$xorg_testset_save_CFLAGS"
15589 if test $found = "no" ; then
15590 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15594 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15598 CFLAGS="$CFLAGS -Winit-self"
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15601 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15602 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15603 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15604 $as_echo_n "(cached) " >&6
15606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607 /* end confdefs.h. */
15617 if ac_fn_c_try_link "$LINENO"; then :
15618 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15620 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15622 rm -f core conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
15627 CFLAGS="$xorg_testset_save_CFLAGS"
15629 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15631 $as_echo "$supported" >&6; }
15632 if test "$supported" = "yes" ; then
15633 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15650 xorg_testset_save_CFLAGS="$CFLAGS"
15652 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15655 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15656 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15657 $as_echo_n "(cached) " >&6
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15663 if ac_fn_c_try_compile "$LINENO"; then :
15664 xorg_cv_compiler_flag_unknown_warning_option=yes
15666 xorg_cv_compiler_flag_unknown_warning_option=no
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15671 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15672 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15673 CFLAGS="$xorg_testset_save_CFLAGS"
15676 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15677 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15682 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15683 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15684 $as_echo_n "(cached) " >&6
15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687 /* end confdefs.h. */
15690 if ac_fn_c_try_compile "$LINENO"; then :
15691 xorg_cv_compiler_flag_unused_command_line_argument=yes
15693 xorg_cv_compiler_flag_unused_command_line_argument=no
15695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15698 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15699 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15700 CFLAGS="$xorg_testset_save_CFLAGS"
15705 if test $found = "no" ; then
15706 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15710 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15714 CFLAGS="$CFLAGS -Wmain"
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15717 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15718 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15719 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15720 $as_echo_n "(cached) " >&6
15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h. */
15733 if ac_fn_c_try_link "$LINENO"; then :
15734 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15736 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15738 rm -f core conftest.err conftest.$ac_objext \
15739 conftest$ac_exeext conftest.$ac_ext
15743 CFLAGS="$xorg_testset_save_CFLAGS"
15745 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15747 $as_echo "$supported" >&6; }
15748 if test "$supported" = "yes" ; then
15749 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15766 xorg_testset_save_CFLAGS="$CFLAGS"
15768 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15771 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15772 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15773 $as_echo_n "(cached) " >&6
15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h. */
15779 if ac_fn_c_try_compile "$LINENO"; then :
15780 xorg_cv_compiler_flag_unknown_warning_option=yes
15782 xorg_cv_compiler_flag_unknown_warning_option=no
15784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15787 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15788 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15789 CFLAGS="$xorg_testset_save_CFLAGS"
15792 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15793 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15798 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15799 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15800 $as_echo_n "(cached) " >&6
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15806 if ac_fn_c_try_compile "$LINENO"; then :
15807 xorg_cv_compiler_flag_unused_command_line_argument=yes
15809 xorg_cv_compiler_flag_unused_command_line_argument=no
15811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15814 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15815 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15816 CFLAGS="$xorg_testset_save_CFLAGS"
15821 if test $found = "no" ; then
15822 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15826 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15830 CFLAGS="$CFLAGS -Wmissing-braces"
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15833 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15834 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
15835 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15836 $as_echo_n "(cached) " >&6
15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839 /* end confdefs.h. */
15849 if ac_fn_c_try_link "$LINENO"; then :
15850 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15852 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15854 rm -f core conftest.err conftest.$ac_objext \
15855 conftest$ac_exeext conftest.$ac_ext
15859 CFLAGS="$xorg_testset_save_CFLAGS"
15861 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15863 $as_echo "$supported" >&6; }
15864 if test "$supported" = "yes" ; then
15865 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15882 xorg_testset_save_CFLAGS="$CFLAGS"
15884 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15887 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15888 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15889 $as_echo_n "(cached) " >&6
15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15895 if ac_fn_c_try_compile "$LINENO"; then :
15896 xorg_cv_compiler_flag_unknown_warning_option=yes
15898 xorg_cv_compiler_flag_unknown_warning_option=no
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15903 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15904 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15905 CFLAGS="$xorg_testset_save_CFLAGS"
15908 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15909 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15914 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15915 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15916 $as_echo_n "(cached) " >&6
15918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919 /* end confdefs.h. */
15922 if ac_fn_c_try_compile "$LINENO"; then :
15923 xorg_cv_compiler_flag_unused_command_line_argument=yes
15925 xorg_cv_compiler_flag_unused_command_line_argument=no
15927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15930 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15931 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15932 CFLAGS="$xorg_testset_save_CFLAGS"
15937 if test $found = "no" ; then
15938 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15942 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15946 CFLAGS="$CFLAGS -Wsequence-point"
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
15949 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
15950 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
15951 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15952 $as_echo_n "(cached) " >&6
15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15965 if ac_fn_c_try_link "$LINENO"; then :
15966 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15968 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15970 rm -f core conftest.err conftest.$ac_objext \
15971 conftest$ac_exeext conftest.$ac_ext
15975 CFLAGS="$xorg_testset_save_CFLAGS"
15977 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15979 $as_echo "$supported" >&6; }
15980 if test "$supported" = "yes" ; then
15981 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
15998 xorg_testset_save_CFLAGS="$CFLAGS"
16000 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16003 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16004 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16005 $as_echo_n "(cached) " >&6
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16011 if ac_fn_c_try_compile "$LINENO"; then :
16012 xorg_cv_compiler_flag_unknown_warning_option=yes
16014 xorg_cv_compiler_flag_unknown_warning_option=no
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16019 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16020 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16021 CFLAGS="$xorg_testset_save_CFLAGS"
16024 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16025 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16030 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16031 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16032 $as_echo_n "(cached) " >&6
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035 /* end confdefs.h. */
16038 if ac_fn_c_try_compile "$LINENO"; then :
16039 xorg_cv_compiler_flag_unused_command_line_argument=yes
16041 xorg_cv_compiler_flag_unused_command_line_argument=no
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16046 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16047 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16048 CFLAGS="$xorg_testset_save_CFLAGS"
16053 if test $found = "no" ; then
16054 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16058 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16062 CFLAGS="$CFLAGS -Wreturn-type"
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16065 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16066 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16067 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16068 $as_echo_n "(cached) " >&6
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16081 if ac_fn_c_try_link "$LINENO"; then :
16082 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16084 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16086 rm -f core conftest.err conftest.$ac_objext \
16087 conftest$ac_exeext conftest.$ac_ext
16091 CFLAGS="$xorg_testset_save_CFLAGS"
16093 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16095 $as_echo "$supported" >&6; }
16096 if test "$supported" = "yes" ; then
16097 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16114 xorg_testset_save_CFLAGS="$CFLAGS"
16116 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16119 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16120 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16121 $as_echo_n "(cached) " >&6
16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h. */
16127 if ac_fn_c_try_compile "$LINENO"; then :
16128 xorg_cv_compiler_flag_unknown_warning_option=yes
16130 xorg_cv_compiler_flag_unknown_warning_option=no
16132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16135 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16136 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16137 CFLAGS="$xorg_testset_save_CFLAGS"
16140 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16141 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16146 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16147 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16148 $as_echo_n "(cached) " >&6
16150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16151 /* end confdefs.h. */
16154 if ac_fn_c_try_compile "$LINENO"; then :
16155 xorg_cv_compiler_flag_unused_command_line_argument=yes
16157 xorg_cv_compiler_flag_unused_command_line_argument=no
16159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16162 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16163 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16164 CFLAGS="$xorg_testset_save_CFLAGS"
16169 if test $found = "no" ; then
16170 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16174 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16178 CFLAGS="$CFLAGS -Wtrigraphs"
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16181 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16182 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16183 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16184 $as_echo_n "(cached) " >&6
16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h. */
16197 if ac_fn_c_try_link "$LINENO"; then :
16198 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16200 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16202 rm -f core conftest.err conftest.$ac_objext \
16203 conftest$ac_exeext conftest.$ac_ext
16207 CFLAGS="$xorg_testset_save_CFLAGS"
16209 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16211 $as_echo "$supported" >&6; }
16212 if test "$supported" = "yes" ; then
16213 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16230 xorg_testset_save_CFLAGS="$CFLAGS"
16232 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16235 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16236 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16237 $as_echo_n "(cached) " >&6
16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h. */
16243 if ac_fn_c_try_compile "$LINENO"; then :
16244 xorg_cv_compiler_flag_unknown_warning_option=yes
16246 xorg_cv_compiler_flag_unknown_warning_option=no
16248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16251 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16252 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16253 CFLAGS="$xorg_testset_save_CFLAGS"
16256 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16262 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16263 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16264 $as_echo_n "(cached) " >&6
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16270 if ac_fn_c_try_compile "$LINENO"; then :
16271 xorg_cv_compiler_flag_unused_command_line_argument=yes
16273 xorg_cv_compiler_flag_unused_command_line_argument=no
16275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16278 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16279 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16280 CFLAGS="$xorg_testset_save_CFLAGS"
16285 if test $found = "no" ; then
16286 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16290 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16294 CFLAGS="$CFLAGS -Warray-bounds"
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16297 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16298 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16299 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16300 $as_echo_n "(cached) " >&6
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16313 if ac_fn_c_try_link "$LINENO"; then :
16314 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16316 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16318 rm -f core conftest.err conftest.$ac_objext \
16319 conftest$ac_exeext conftest.$ac_ext
16323 CFLAGS="$xorg_testset_save_CFLAGS"
16325 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16327 $as_echo "$supported" >&6; }
16328 if test "$supported" = "yes" ; then
16329 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16346 xorg_testset_save_CFLAGS="$CFLAGS"
16348 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16351 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16352 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16353 $as_echo_n "(cached) " >&6
16355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16356 /* end confdefs.h. */
16359 if ac_fn_c_try_compile "$LINENO"; then :
16360 xorg_cv_compiler_flag_unknown_warning_option=yes
16362 xorg_cv_compiler_flag_unknown_warning_option=no
16364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16367 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16368 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16369 CFLAGS="$xorg_testset_save_CFLAGS"
16372 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16373 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16378 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16379 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16380 $as_echo_n "(cached) " >&6
16382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383 /* end confdefs.h. */
16386 if ac_fn_c_try_compile "$LINENO"; then :
16387 xorg_cv_compiler_flag_unused_command_line_argument=yes
16389 xorg_cv_compiler_flag_unused_command_line_argument=no
16391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16394 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16395 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16396 CFLAGS="$xorg_testset_save_CFLAGS"
16401 if test $found = "no" ; then
16402 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16406 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16410 CFLAGS="$CFLAGS -Wwrite-strings"
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16413 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16414 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16415 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16416 $as_echo_n "(cached) " >&6
16418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h. */
16429 if ac_fn_c_try_link "$LINENO"; then :
16430 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16432 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16434 rm -f core conftest.err conftest.$ac_objext \
16435 conftest$ac_exeext conftest.$ac_ext
16439 CFLAGS="$xorg_testset_save_CFLAGS"
16441 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16443 $as_echo "$supported" >&6; }
16444 if test "$supported" = "yes" ; then
16445 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16462 xorg_testset_save_CFLAGS="$CFLAGS"
16464 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16467 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16468 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16469 $as_echo_n "(cached) " >&6
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16475 if ac_fn_c_try_compile "$LINENO"; then :
16476 xorg_cv_compiler_flag_unknown_warning_option=yes
16478 xorg_cv_compiler_flag_unknown_warning_option=no
16480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16483 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16484 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16485 CFLAGS="$xorg_testset_save_CFLAGS"
16488 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16489 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16494 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16495 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16496 $as_echo_n "(cached) " >&6
16498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h. */
16502 if ac_fn_c_try_compile "$LINENO"; then :
16503 xorg_cv_compiler_flag_unused_command_line_argument=yes
16505 xorg_cv_compiler_flag_unused_command_line_argument=no
16507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16510 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16511 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16512 CFLAGS="$xorg_testset_save_CFLAGS"
16517 if test $found = "no" ; then
16518 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16522 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16526 CFLAGS="$CFLAGS -Waddress"
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16529 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16530 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16531 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16532 $as_echo_n "(cached) " >&6
16534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535 /* end confdefs.h. */
16545 if ac_fn_c_try_link "$LINENO"; then :
16546 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16548 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16550 rm -f core conftest.err conftest.$ac_objext \
16551 conftest$ac_exeext conftest.$ac_ext
16555 CFLAGS="$xorg_testset_save_CFLAGS"
16557 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16559 $as_echo "$supported" >&6; }
16560 if test "$supported" = "yes" ; then
16561 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16578 xorg_testset_save_CFLAGS="$CFLAGS"
16580 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16583 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16584 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16585 $as_echo_n "(cached) " >&6
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16591 if ac_fn_c_try_compile "$LINENO"; then :
16592 xorg_cv_compiler_flag_unknown_warning_option=yes
16594 xorg_cv_compiler_flag_unknown_warning_option=no
16596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16599 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16600 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16601 CFLAGS="$xorg_testset_save_CFLAGS"
16604 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16605 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16610 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16611 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16612 $as_echo_n "(cached) " >&6
16614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615 /* end confdefs.h. */
16618 if ac_fn_c_try_compile "$LINENO"; then :
16619 xorg_cv_compiler_flag_unused_command_line_argument=yes
16621 xorg_cv_compiler_flag_unused_command_line_argument=no
16623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16626 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16627 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16628 CFLAGS="$xorg_testset_save_CFLAGS"
16633 if test $found = "no" ; then
16634 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16638 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16642 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16645 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16646 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16647 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16648 $as_echo_n "(cached) " >&6
16650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16651 /* end confdefs.h. */
16661 if ac_fn_c_try_link "$LINENO"; then :
16662 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16664 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16666 rm -f core conftest.err conftest.$ac_objext \
16667 conftest$ac_exeext conftest.$ac_ext
16671 CFLAGS="$xorg_testset_save_CFLAGS"
16673 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16675 $as_echo "$supported" >&6; }
16676 if test "$supported" = "yes" ; then
16677 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16694 xorg_testset_save_CFLAGS="$CFLAGS"
16696 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16699 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16700 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16701 $as_echo_n "(cached) " >&6
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16707 if ac_fn_c_try_compile "$LINENO"; then :
16708 xorg_cv_compiler_flag_unknown_warning_option=yes
16710 xorg_cv_compiler_flag_unknown_warning_option=no
16712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16715 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16716 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16717 CFLAGS="$xorg_testset_save_CFLAGS"
16720 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16721 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16726 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16727 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16728 $as_echo_n "(cached) " >&6
16730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731 /* end confdefs.h. */
16734 if ac_fn_c_try_compile "$LINENO"; then :
16735 xorg_cv_compiler_flag_unused_command_line_argument=yes
16737 xorg_cv_compiler_flag_unused_command_line_argument=no
16739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16742 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16743 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16744 CFLAGS="$xorg_testset_save_CFLAGS"
16749 if test $found = "no" ; then
16750 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16754 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16758 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16761 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16762 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16763 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16764 $as_echo_n "(cached) " >&6
16766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767 /* end confdefs.h. */
16777 if ac_fn_c_try_link "$LINENO"; then :
16778 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16780 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16782 rm -f core conftest.err conftest.$ac_objext \
16783 conftest$ac_exeext conftest.$ac_ext
16787 CFLAGS="$xorg_testset_save_CFLAGS"
16789 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16791 $as_echo "$supported" >&6; }
16792 if test "$supported" = "yes" ; then
16793 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16807 CWARNFLAGS="$BASE_CFLAGS"
16808 if test "x$GCC" = xyes ; then
16809 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16819 # Check whether --enable-strict-compilation was given.
16820 if test "${enable_strict_compilation+set}" = set; then :
16821 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16843 xorg_testset_save_CFLAGS="$CFLAGS"
16845 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16848 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16849 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16850 $as_echo_n "(cached) " >&6
16852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853 /* end confdefs.h. */
16856 if ac_fn_c_try_compile "$LINENO"; then :
16857 xorg_cv_compiler_flag_unknown_warning_option=yes
16859 xorg_cv_compiler_flag_unknown_warning_option=no
16861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16864 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16865 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16866 CFLAGS="$xorg_testset_save_CFLAGS"
16869 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16870 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16875 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16876 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16877 $as_echo_n "(cached) " >&6
16879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16880 /* end confdefs.h. */
16883 if ac_fn_c_try_compile "$LINENO"; then :
16884 xorg_cv_compiler_flag_unused_command_line_argument=yes
16886 xorg_cv_compiler_flag_unused_command_line_argument=no
16888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16891 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16892 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16893 CFLAGS="$xorg_testset_save_CFLAGS"
16898 if test $found = "no" ; then
16899 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16903 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16907 CFLAGS="$CFLAGS -pedantic"
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
16910 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
16911 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
16912 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16913 $as_echo_n "(cached) " >&6
16915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h. */
16926 if ac_fn_c_try_link "$LINENO"; then :
16927 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16929 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16931 rm -f core conftest.err conftest.$ac_objext \
16932 conftest$ac_exeext conftest.$ac_ext
16936 CFLAGS="$xorg_testset_save_CFLAGS"
16938 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16940 $as_echo "$supported" >&6; }
16941 if test "$supported" = "yes" ; then
16942 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
16959 xorg_testset_save_CFLAGS="$CFLAGS"
16961 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16964 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16965 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16966 $as_echo_n "(cached) " >&6
16968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16969 /* end confdefs.h. */
16972 if ac_fn_c_try_compile "$LINENO"; then :
16973 xorg_cv_compiler_flag_unknown_warning_option=yes
16975 xorg_cv_compiler_flag_unknown_warning_option=no
16977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16980 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16981 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16982 CFLAGS="$xorg_testset_save_CFLAGS"
16985 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16986 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16991 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16992 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16993 $as_echo_n "(cached) " >&6
16995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16996 /* end confdefs.h. */
16999 if ac_fn_c_try_compile "$LINENO"; then :
17000 xorg_cv_compiler_flag_unused_command_line_argument=yes
17002 xorg_cv_compiler_flag_unused_command_line_argument=no
17004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17007 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17008 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17009 CFLAGS="$xorg_testset_save_CFLAGS"
17014 if test $found = "no" ; then
17015 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17019 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17023 CFLAGS="$CFLAGS -Werror"
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17026 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17027 cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17028 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17029 $as_echo_n "(cached) " >&6
17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17042 if ac_fn_c_try_link "$LINENO"; then :
17043 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17045 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17047 rm -f core conftest.err conftest.$ac_objext \
17048 conftest$ac_exeext conftest.$ac_ext
17052 CFLAGS="$xorg_testset_save_CFLAGS"
17054 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17056 $as_echo "$supported" >&6; }
17057 if test "$supported" = "yes" ; then
17058 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17063 if test $found = "no" ; then
17064 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17068 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17072 CFLAGS="$CFLAGS -errwarn"
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17075 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17076 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17077 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17078 $as_echo_n "(cached) " >&6
17080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17081 /* end confdefs.h. */
17091 if ac_fn_c_try_link "$LINENO"; then :
17092 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17094 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17096 rm -f core conftest.err conftest.$ac_objext \
17097 conftest$ac_exeext conftest.$ac_ext
17101 CFLAGS="$xorg_testset_save_CFLAGS"
17103 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17105 $as_echo "$supported" >&6; }
17106 if test "$supported" = "yes" ; then
17107 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17114 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17115 # activate it with -Werror, so we add it here explicitly.
17127 xorg_testset_save_CFLAGS="$CFLAGS"
17129 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17132 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17133 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17134 $as_echo_n "(cached) " >&6
17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h. */
17140 if ac_fn_c_try_compile "$LINENO"; then :
17141 xorg_cv_compiler_flag_unknown_warning_option=yes
17143 xorg_cv_compiler_flag_unknown_warning_option=no
17145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17148 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17149 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17150 CFLAGS="$xorg_testset_save_CFLAGS"
17153 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17154 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17159 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17160 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17161 $as_echo_n "(cached) " >&6
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h. */
17167 if ac_fn_c_try_compile "$LINENO"; then :
17168 xorg_cv_compiler_flag_unused_command_line_argument=yes
17170 xorg_cv_compiler_flag_unused_command_line_argument=no
17172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17175 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17176 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17177 CFLAGS="$xorg_testset_save_CFLAGS"
17182 if test $found = "no" ; then
17183 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17187 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17191 CFLAGS="$CFLAGS -Werror=attributes"
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17194 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17195 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17196 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17197 $as_echo_n "(cached) " >&6
17199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h. */
17210 if ac_fn_c_try_link "$LINENO"; then :
17211 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17213 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17215 rm -f core conftest.err conftest.$ac_objext \
17216 conftest$ac_exeext conftest.$ac_ext
17220 CFLAGS="$xorg_testset_save_CFLAGS"
17222 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17224 $as_echo "$supported" >&6; }
17225 if test "$supported" = "yes" ; then
17226 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17233 if test "x$STRICT_COMPILE" = "xyes"; then
17234 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17235 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17243 cat >>confdefs.h <<_ACEOF
17244 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17247 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17248 if test "x$PVM" = "x"; then
17252 cat >>confdefs.h <<_ACEOF
17253 #define PACKAGE_VERSION_MINOR $PVM
17256 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17257 if test "x$PVP" = "x"; then
17261 cat >>confdefs.h <<_ACEOF
17262 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17267 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17268 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17269 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17270 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17275 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17276 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17277 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17278 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17279 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17286 if test x$APP_MAN_SUFFIX = x ; then
17289 if test x$APP_MAN_DIR = x ; then
17290 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17293 if test x$LIB_MAN_SUFFIX = x ; then
17296 if test x$LIB_MAN_DIR = x ; then
17297 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17300 if test x$FILE_MAN_SUFFIX = x ; then
17302 solaris*) FILE_MAN_SUFFIX=4 ;;
17303 *) FILE_MAN_SUFFIX=5 ;;
17306 if test x$FILE_MAN_DIR = x ; then
17307 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17310 if test x$MISC_MAN_SUFFIX = x ; then
17312 solaris*) MISC_MAN_SUFFIX=5 ;;
17313 *) MISC_MAN_SUFFIX=7 ;;
17316 if test x$MISC_MAN_DIR = x ; then
17317 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17320 if test x$DRIVER_MAN_SUFFIX = x ; then
17322 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17323 *) DRIVER_MAN_SUFFIX=4 ;;
17326 if test x$DRIVER_MAN_DIR = x ; then
17327 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17330 if test x$ADMIN_MAN_SUFFIX = x ; then
17332 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17333 *) ADMIN_MAN_SUFFIX=8 ;;
17336 if test x$ADMIN_MAN_DIR = x ; then
17337 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17354 XORG_MAN_PAGE="X Version 11"
17357 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17358 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17359 -e 's|__xservername__|Xorg|g' \
17360 -e 's|__xconfigfile__|xorg.conf|g' \
17361 -e 's|__projectroot__|\$(prefix)|g' \
17362 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17363 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17364 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17365 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17366 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17367 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17368 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17372 # Check whether --enable-silent-rules was given.
17373 if test "${enable_silent_rules+set}" = set; then :
17374 enableval=$enable_silent_rules;
17377 case $enable_silent_rules in
17378 yes) AM_DEFAULT_VERBOSITY=0;;
17379 no) AM_DEFAULT_VERBOSITY=1;;
17380 *) AM_DEFAULT_VERBOSITY=0;;
17386 # Checks for library functions
17387 for ac_func in strlcat
17389 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17390 if test "x$ac_cv_func_strlcat" = xyes; then :
17391 cat >>confdefs.h <<_ACEOF
17392 #define HAVE_STRLCAT 1
17399 # Obtain compiler/linker options for dependencies
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5
17403 $as_echo_n "checking for XPM... " >&6; }
17405 if test -n "$XPM_CFLAGS"; then
17406 pkg_cv_XPM_CFLAGS="$XPM_CFLAGS"
17407 elif test -n "$PKG_CONFIG"; then
17408 if test -n "$PKG_CONFIG" && \
17409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5
17410 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
17412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17413 test $ac_status = 0; }; then
17414 pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11" 2>/dev/null`
17421 if test -n "$XPM_LIBS"; then
17422 pkg_cv_XPM_LIBS="$XPM_LIBS"
17423 elif test -n "$PKG_CONFIG"; then
17424 if test -n "$PKG_CONFIG" && \
17425 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5
17426 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
17428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17429 test $ac_status = 0; }; then
17430 pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xproto x11" 2>/dev/null`
17440 if test $pkg_failed = yes; then
17442 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17443 _pkg_short_errors_supported=yes
17445 _pkg_short_errors_supported=no
17447 if test $_pkg_short_errors_supported = yes; then
17448 XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11" 2>&1`
17450 XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11" 2>&1`
17452 # Put the nasty error message in config.log where it belongs
17453 echo "$XPM_PKG_ERRORS" >&5
17455 as_fn_error $? "Package requirements (xproto x11) were not met:
17459 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17460 installed software in a non-standard prefix.
17462 Alternatively, you may set the environment variables XPM_CFLAGS
17463 and XPM_LIBS to avoid the need to call pkg-config.
17464 See the pkg-config man page for more details.
17466 elif test $pkg_failed = untried; then
17467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17469 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17470 is in your PATH or set the PKG_CONFIG environment variable to the full
17471 path to pkg-config.
17473 Alternatively, you may set the environment variables XPM_CFLAGS
17474 and XPM_LIBS to avoid the need to call pkg-config.
17475 See the pkg-config man page for more details.
17477 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17478 See \`config.log' for more details" "$LINENO" 5; }
17480 XPM_CFLAGS=$pkg_cv_XPM_CFLAGS
17481 XPM_LIBS=$pkg_cv_XPM_LIBS
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17483 $as_echo "yes" >&6; }
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SXPM" >&5
17489 $as_echo_n "checking for SXPM... " >&6; }
17491 if test -n "$SXPM_CFLAGS"; then
17492 pkg_cv_SXPM_CFLAGS="$SXPM_CFLAGS"
17493 elif test -n "$PKG_CONFIG"; then
17494 if test -n "$PKG_CONFIG" && \
17495 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto\""; } >&5
17496 ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto") 2>&5
17498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17499 test $ac_status = 0; }; then
17500 pkg_cv_SXPM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xext xextproto" 2>/dev/null`
17507 if test -n "$SXPM_LIBS"; then
17508 pkg_cv_SXPM_LIBS="$SXPM_LIBS"
17509 elif test -n "$PKG_CONFIG"; then
17510 if test -n "$PKG_CONFIG" && \
17511 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto\""; } >&5
17512 ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto") 2>&5
17514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17515 test $ac_status = 0; }; then
17516 pkg_cv_SXPM_LIBS=`$PKG_CONFIG --libs "x11 xt xext xextproto" 2>/dev/null`
17526 if test $pkg_failed = yes; then
17528 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17529 _pkg_short_errors_supported=yes
17531 _pkg_short_errors_supported=no
17533 if test $_pkg_short_errors_supported = yes; then
17534 SXPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xt xext xextproto" 2>&1`
17536 SXPM_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xt xext xextproto" 2>&1`
17538 # Put the nasty error message in config.log where it belongs
17539 echo "$SXPM_PKG_ERRORS" >&5
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17542 $as_echo "no" >&6; }
17544 elif test $pkg_failed = untried; then
17547 SXPM_CFLAGS=$pkg_cv_SXPM_CFLAGS
17548 SXPM_LIBS=$pkg_cv_SXPM_LIBS
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17550 $as_echo "yes" >&6; }
17553 if test x$build_sxpm = xtrue; then
17555 BUILD_SXPM_FALSE='#'
17557 BUILD_SXPM_TRUE='#'
17562 # Internationalization & localization support
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
17564 $as_echo_n "checking for library containing gettext... " >&6; }
17565 if ${ac_cv_search_gettext+:} false; then :
17566 $as_echo_n "(cached) " >&6
17568 ac_func_search_save_LIBS=$LIBS
17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17572 /* Override any GCC internal prototype to avoid an error.
17573 Use char because int might match the return type of a GCC
17574 builtin and then its argument prototype would still apply. */
17587 for ac_lib in '' intl; do
17588 if test -z "$ac_lib"; then
17589 ac_res="none required"
17592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17594 if ac_fn_c_try_link "$LINENO"; then :
17595 ac_cv_search_gettext=$ac_res
17597 rm -f core conftest.err conftest.$ac_objext \
17599 if ${ac_cv_search_gettext+:} false; then :
17603 if ${ac_cv_search_gettext+:} false; then :
17606 ac_cv_search_gettext=no
17608 rm conftest.$ac_ext
17609 LIBS=$ac_func_search_save_LIBS
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
17612 $as_echo "$ac_cv_search_gettext" >&6; }
17613 ac_res=$ac_cv_search_gettext
17614 if test "$ac_res" != no; then :
17615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
17622 $as_echo_n "checking where to install localized messages... " >&6; }
17624 # Check whether --with-localedir was given.
17625 if test "${with_localedir+set}" = set; then :
17626 withval=$with_localedir; LOCALEDIR=${withval}
17628 LOCALEDIR=${datadir}/locale
17634 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17635 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17636 eval ax_define_dir="\"$LOCALEDIR\""
17637 eval ax_define_dir="\"$ax_define_dir\""
17638 LOCALEDIR="$ax_define_dir"
17641 cat >>confdefs.h <<_ACEOF
17642 #define LOCALEDIR "$ax_define_dir"
17645 test "$prefix_NONE" && prefix=NONE
17646 test "$exec_prefix_NONE" && exec_prefix=NONE
17648 if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
17650 $as_echo "nowhere" >&6; }
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
17654 $as_echo "$LOCALEDIR" >&6; }
17657 if test "x$USE_GETTEXT" = "xyes" ; then
17659 $as_echo "#define USE_GETTEXT 1" >>confdefs.h
17662 if test "x$USE_GETTEXT" = "xyes"; then
17664 USE_GETTEXT_FALSE='#'
17666 USE_GETTEXT_TRUE='#'
17671 # Optional feature: When ___.xpm is requested, also look for ___.xpm.Z & .gz
17672 # Replaces ZFILEDEF = -DSTAT_ZFILE in old Imakefile
17673 # Check whether --enable-stat-zfile was given.
17674 if test "${enable_stat_zfile+set}" = set; then :
17675 enableval=$enable_stat_zfile; STAT_ZFILE=$enableval
17680 if test x$STAT_ZFILE = xyes ; then
17682 $as_echo "#define STAT_ZFILE 1" >>confdefs.h
17686 ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile man/Makefile src/Makefile sxpm/Makefile cxpm/Makefile xpm.pc"
17688 cat >confcache <<\_ACEOF
17689 # This file is a shell script that caches the results of configure
17690 # tests run on this system so they can be shared between configure
17691 # scripts and configure runs, see configure's option --config-cache.
17692 # It is not useful on other systems. If it contains results you don't
17693 # want to keep, you may remove or edit it.
17695 # config.status only pays attention to the cache file if you give it
17696 # the --recheck option to rerun configure.
17698 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17699 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17700 # following values.
17704 # The following way of writing the cache mishandles newlines in values,
17705 # but we know of no workaround that is simple, portable, and efficient.
17706 # So, we kill variables containing newlines.
17707 # Ultrix sh set writes to stderr and can't be redirected directly,
17708 # and sets the high bit in the cache file unless we assign to the vars.
17710 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17711 eval ac_val=\$$ac_var
17715 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17716 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17719 _ | IFS | as_nl) ;; #(
17720 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17721 *) { eval $ac_var=; unset $ac_var;} ;;
17727 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17728 *${as_nl}ac_space=\ *)
17729 # `set' does not quote correctly, so add quotes: double-quote
17730 # substitution turns \\\\ into \\, and sed turns \\ into \.
17733 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17736 # `set' quotes correctly as required by POSIX, so do not add quotes.
17737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17746 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17748 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17750 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17751 if test -w "$cache_file"; then
17752 if test "x$cache_file" != "x/dev/null"; then
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17754 $as_echo "$as_me: updating cache $cache_file" >&6;}
17755 if test ! -f "$cache_file" || test -h "$cache_file"; then
17756 cat confcache >"$cache_file"
17758 case $cache_file in #(
17760 mv -f confcache "$cache_file"$$ &&
17761 mv -f "$cache_file"$$ "$cache_file" ;; #(
17763 mv -f confcache "$cache_file" ;;
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17769 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17774 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17775 # Let make expand exec_prefix.
17776 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17778 DEFS=-DHAVE_CONFIG_H
17783 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17784 # 1. Remove the extension, and $U if already installed.
17785 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17786 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17787 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17788 # will be set to the directory where LIBOBJS objects are built.
17789 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17790 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17792 LIBOBJS=$ac_libobjs
17794 LTLIBOBJS=$ac_ltlibobjs
17797 if test -n "$EXEEXT"; then
17799 am__EXEEXT_FALSE='#'
17801 am__EXEEXT_TRUE='#'
17805 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17806 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17809 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17810 as_fn_error $? "conditional \"AMDEP\" was never defined.
17811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17813 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17814 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17817 if test -z "${BUILD_SXPM_TRUE}" && test -z "${BUILD_SXPM_FALSE}"; then
17818 as_fn_error $? "conditional \"BUILD_SXPM\" was never defined.
17819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17821 if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
17822 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
17823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17826 : "${CONFIG_STATUS=./config.status}"
17828 ac_clean_files_save=$ac_clean_files
17829 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17831 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17833 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17835 # Generated by $as_me.
17836 # Run this file to recreate the current configuration.
17837 # Compiler output produced by configure, useful for debugging
17838 # configure, is in config.log if it exists.
17841 ac_cs_recheck=false
17844 SHELL=\${CONFIG_SHELL-$SHELL}
17847 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17848 ## -------------------- ##
17849 ## M4sh Initialization. ##
17850 ## -------------------- ##
17852 # Be more Bourne compatible
17853 DUALCASE=1; export DUALCASE # for MKS sh
17854 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17857 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17858 # is contrary to our usage. Disable this feature.
17859 alias -g '${1+"$@"}'='"$@"'
17860 setopt NO_GLOB_SUBST
17862 case `(set -o) 2>/dev/null` in #(
17874 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17875 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17876 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17878 # Prefer a ksh shell builtin over an external printf program on Solaris,
17879 # but without wasting forks for bash or zsh.
17880 if test -z "$BASH_VERSION$ZSH_VERSION" \
17881 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17882 as_echo='print -r --'
17883 as_echo_n='print -rn --'
17884 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17885 as_echo='printf %s\n'
17886 as_echo_n='printf %s'
17888 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17889 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17890 as_echo_n='/usr/ucb/echo -n'
17892 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17893 as_echo_n_body='eval
17897 expr "X$arg" : "X\\(.*\\)$as_nl";
17898 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17900 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17902 export as_echo_n_body
17903 as_echo_n='sh -c $as_echo_n_body as_echo'
17905 export as_echo_body
17906 as_echo='sh -c $as_echo_body as_echo'
17909 # The user is always right.
17910 if test "${PATH_SEPARATOR+set}" != set; then
17912 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17913 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17920 # We need space, tab and new line, in precisely that order. Quoting is
17921 # there to prevent editors from complaining about space-tab.
17922 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17923 # splitting by setting IFS to empty value.)
17926 # Find who we are. Look in the path if we contain no directory separator.
17929 *[\\/]* ) as_myself=$0 ;;
17930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17931 for as_dir in $PATH
17934 test -z "$as_dir" && as_dir=.
17935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17941 # We did not find ourselves, most probably we were run as `sh COMMAND'
17942 # in which case we are not to be found in the path.
17943 if test "x$as_myself" = x; then
17946 if test ! -f "$as_myself"; then
17947 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17951 # Unset variables that we do not need and which cause bugs (e.g. in
17952 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17953 # suppresses any "Segmentation fault" message there. '((' could
17954 # trigger a bug in pdksh 5.2.14.
17955 for as_var in BASH_ENV ENV MAIL MAILPATH
17956 do eval test x\${$as_var+set} = xset \
17957 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17970 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17973 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17974 # ----------------------------------------
17975 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17976 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17977 # script with STATUS, using 1 if that was 0.
17980 as_status=$1; test $as_status -eq 0 && as_status=1
17982 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17983 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17985 $as_echo "$as_me: error: $2" >&2
17986 as_fn_exit $as_status
17990 # as_fn_set_status STATUS
17991 # -----------------------
17992 # Set $? to STATUS, without forking.
17993 as_fn_set_status ()
17996 } # as_fn_set_status
17998 # as_fn_exit STATUS
17999 # -----------------
18000 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18004 as_fn_set_status $1
18010 # Portably unset VAR.
18013 { eval $1=; unset $1;}
18015 as_unset=as_fn_unset
18016 # as_fn_append VAR VALUE
18017 # ----------------------
18018 # Append the text in VALUE to the end of the definition contained in VAR. Take
18019 # advantage of any shell optimizations that allow amortized linear growth over
18020 # repeated appends, instead of the typical quadratic growth present in naive
18022 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18023 eval 'as_fn_append ()
18034 # as_fn_arith ARG...
18035 # ------------------
18036 # Perform arithmetic evaluation on the ARGs, and store the result in the
18037 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18038 # must be portable across $(()) and expr.
18039 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18040 eval 'as_fn_arith ()
18047 as_val=`expr "$@" || test $? -eq 1`
18052 if expr a : '\(a\)' >/dev/null 2>&1 &&
18053 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18060 as_basename=basename
18065 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18071 as_me=`$as_basename -- "$0" ||
18072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18073 X"$0" : 'X\(//\)$' \| \
18074 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18076 sed '/^.*\/\([^/][^/]*\)\/*$/{
18090 # Avoid depending upon Character Ranges.
18091 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18092 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18093 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18094 as_cr_digits='0123456789'
18095 as_cr_alnum=$as_cr_Letters$as_cr_digits
18097 ECHO_C= ECHO_N= ECHO_T=
18098 case `echo -n x` in #(((((
18100 case `echo 'xy\c'` in
18101 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18103 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18110 rm -f conf$$ conf$$.exe conf$$.file
18111 if test -d conf$$.dir; then
18112 rm -f conf$$.dir/conf$$.file
18115 mkdir conf$$.dir 2>/dev/null
18117 if (echo >conf$$.file) 2>/dev/null; then
18118 if ln -s conf$$.file conf$$ 2>/dev/null; then
18120 # ... but there are two gotchas:
18121 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18122 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18123 # In both cases, we have to default to `cp -p'.
18124 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18126 elif ln conf$$.file conf$$ 2>/dev/null; then
18134 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18135 rmdir conf$$.dir 2>/dev/null
18140 # Create "$as_dir" as a directory, including parents if necessary.
18145 -*) as_dir=./$as_dir;;
18147 test -d "$as_dir" || eval $as_mkdir_p || {
18151 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18152 *) as_qdir=$as_dir;;
18154 as_dirs="'$as_qdir' $as_dirs"
18155 as_dir=`$as_dirname -- "$as_dir" ||
18156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18157 X"$as_dir" : 'X\(//\)[^/]' \| \
18158 X"$as_dir" : 'X\(//\)$' \| \
18159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18160 $as_echo X"$as_dir" |
18161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18165 /^X\(\/\/\)[^/].*/{
18178 test -d "$as_dir" && break
18180 test -z "$as_dirs" || eval "mkdir $as_dirs"
18181 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18185 if mkdir -p . 2>/dev/null; then
18186 as_mkdir_p='mkdir -p "$as_dir"'
18188 test -d ./-p && rmdir ./-p
18192 if test -x / >/dev/null 2>&1; then
18193 as_test_x='test -x'
18195 if ls -dL / >/dev/null 2>&1; then
18202 if test -d "$1"; then
18208 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18209 ???[sx]*):;;*)false;;esac;fi
18213 as_executable_p=$as_test_x
18215 # Sed expression to map a string onto a valid CPP name.
18216 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18218 # Sed expression to map a string onto a valid variable name.
18219 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18223 ## ----------------------------------- ##
18224 ## Main body of $CONFIG_STATUS script. ##
18225 ## ----------------------------------- ##
18227 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18230 # Save the log message, to keep $0 and so on meaningful, and to
18231 # report actual input values of CONFIG_FILES etc. instead of their
18232 # values after options handling.
18234 This file was extended by libXpm $as_me 3.5.10, which was
18235 generated by GNU Autoconf 2.68. Invocation command line was
18237 CONFIG_FILES = $CONFIG_FILES
18238 CONFIG_HEADERS = $CONFIG_HEADERS
18239 CONFIG_LINKS = $CONFIG_LINKS
18240 CONFIG_COMMANDS = $CONFIG_COMMANDS
18243 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18248 case $ac_config_files in *"
18249 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18252 case $ac_config_headers in *"
18253 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18258 # Files that config.status was made for.
18259 config_files="$ac_config_files"
18260 config_headers="$ac_config_headers"
18261 config_commands="$ac_config_commands"
18265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18267 \`$as_me' instantiates files and other configuration actions
18268 from templates according to the current configuration. Unless the files
18269 and actions are specified as TAGs, all are instantiated by default.
18271 Usage: $0 [OPTION]... [TAG]...
18273 -h, --help print this help, then exit
18274 -V, --version print version number and configuration settings, then exit
18275 --config print configuration, then exit
18276 -q, --quiet, --silent
18277 do not print progress messages
18278 -d, --debug don't remove temporary files
18279 --recheck update $as_me by reconfiguring in the same conditions
18280 --file=FILE[:TEMPLATE]
18281 instantiate the configuration file FILE
18282 --header=FILE[:TEMPLATE]
18283 instantiate the configuration header FILE
18285 Configuration files:
18288 Configuration headers:
18291 Configuration commands:
18294 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18298 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18300 libXpm config.status 3.5.10
18301 configured by $0, generated by GNU Autoconf 2.68,
18302 with options \\"\$ac_cs_config\\"
18304 Copyright (C) 2010 Free Software Foundation, Inc.
18305 This config.status script is free software; the Free Software Foundation
18306 gives unlimited permission to copy, distribute and modify it."
18313 test -n "\$AWK" || AWK=awk
18316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18317 # The default lists apply if the user does not specify any file.
18323 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18324 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18340 # Handling of the options.
18341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18343 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18344 $as_echo "$ac_cs_version"; exit ;;
18345 --config | --confi | --conf | --con | --co | --c )
18346 $as_echo "$ac_cs_config"; exit ;;
18347 --debug | --debu | --deb | --de | --d | -d )
18349 --file | --fil | --fi | --f )
18352 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18353 '') as_fn_error $? "missing file argument" ;;
18355 as_fn_append CONFIG_FILES " '$ac_optarg'"
18356 ac_need_defaults=false;;
18357 --header | --heade | --head | --hea )
18360 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18362 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18363 ac_need_defaults=false;;
18365 # Conflict between --help and --header
18366 as_fn_error $? "ambiguous option: \`$1'
18367 Try \`$0 --help' for more information.";;
18368 --help | --hel | -h )
18369 $as_echo "$ac_cs_usage"; exit ;;
18370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18371 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18374 # This is an error.
18375 -*) as_fn_error $? "unrecognized option: \`$1'
18376 Try \`$0 --help' for more information." ;;
18378 *) as_fn_append ac_config_targets " $1"
18379 ac_need_defaults=false ;;
18385 ac_configure_extra_args=
18387 if $ac_cs_silent; then
18389 ac_configure_extra_args="$ac_configure_extra_args --silent"
18393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18394 if \$ac_cs_recheck; then
18395 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18397 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18398 CONFIG_SHELL='$SHELL'
18399 export CONFIG_SHELL
18404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18408 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18409 ## Running $as_me. ##
18415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18419 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18422 # The HP-UX ksh and POSIX shell print the target directory to stdout
18423 # if CDPATH is set.
18424 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18426 sed_quote_subst='$sed_quote_subst'
18427 double_quote_subst='$double_quote_subst'
18428 delay_variable_subst='$delay_variable_subst'
18429 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18430 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18431 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18432 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18433 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18434 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18435 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18436 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18437 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18438 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18439 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18440 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18441 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18442 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18443 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18444 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18445 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18446 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18447 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18448 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18449 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18450 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18451 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18452 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18453 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18454 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18455 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18456 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18457 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18458 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18459 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18460 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18461 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18462 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18463 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18464 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18465 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18466 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18467 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18468 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18469 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18470 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18471 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18472 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18473 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18474 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18475 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18476 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18477 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18478 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18479 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18480 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18481 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18482 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18483 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18484 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"`'
18485 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18486 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18487 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18488 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18489 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18490 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18491 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18492 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18493 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18494 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18495 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18496 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18497 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18498 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18499 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18500 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18501 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18502 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18503 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18504 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18505 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18506 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18507 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18508 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18509 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18510 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18511 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18512 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18513 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18514 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18515 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18516 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18517 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18518 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18519 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18520 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18521 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18522 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18523 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18524 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18525 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18526 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18527 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18528 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18529 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18530 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18531 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18532 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18533 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18534 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18535 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18536 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18537 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18538 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18539 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18540 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18541 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18542 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18543 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18544 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18545 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18546 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18547 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18548 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18549 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18550 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18551 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18552 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18553 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18554 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18555 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18556 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18557 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18558 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18561 LTCFLAGS='$LTCFLAGS'
18562 compiler='$compiler_DEFAULT'
18564 # A function that is used when there is no print builtin or printf.
18565 func_fallback_echo ()
18567 eval 'cat <<_LTECHO_EOF
18572 # Quote evaled strings.
18586 deplibs_check_method \
18591 sharedlib_from_linklib_cmd \
18594 archiver_list_spec \
18600 lt_cv_sys_global_symbol_pipe \
18601 lt_cv_sys_global_symbol_to_cdecl \
18602 lt_cv_sys_global_symbol_to_c_name_address \
18603 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18604 nm_file_list_spec \
18605 lt_prog_compiler_no_builtin_flag \
18606 lt_prog_compiler_pic \
18607 lt_prog_compiler_wl \
18608 lt_prog_compiler_static \
18609 lt_cv_prog_compiler_c_o \
18618 export_dynamic_flag_spec \
18619 whole_archive_flag_spec \
18620 compiler_needs_object \
18622 allow_undefined_flag \
18623 no_undefined_flag \
18624 hardcode_libdir_flag_spec \
18625 hardcode_libdir_flag_spec_ld \
18626 hardcode_libdir_separator \
18630 variables_saved_for_relink \
18632 library_names_spec \
18634 install_override_mode \
18638 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18639 *[\\\\\\\`\\"\\\$]*)
18640 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18643 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18648 # Double-quote double-evaled strings.
18649 for var in reload_cmds \
18650 old_postinstall_cmds \
18651 old_postuninstall_cmds \
18653 extract_expsyms_cmds \
18654 old_archive_from_new_cmds \
18655 old_archive_from_expsyms_cmds \
18657 archive_expsym_cmds \
18659 module_expsym_cmds \
18660 export_symbols_cmds \
18664 postuninstall_cmds \
18666 sys_lib_search_path_spec \
18667 sys_lib_dlsearch_path_spec; do
18668 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18669 *[\\\\\\\`\\"\\\$]*)
18670 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18673 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18678 ac_aux_dir='$ac_aux_dir'
18679 xsi_shell='$xsi_shell'
18680 lt_shell_append='$lt_shell_append'
18682 # See if we are running on zsh, and set the options which allow our
18683 # commands through without removal of \ escapes INIT.
18684 if test -n "\${ZSH_VERSION+set}" ; then
18685 setopt NO_GLOB_SUBST
18691 TIMESTAMP='$TIMESTAMP'
18700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18702 # Handling of arguments.
18703 for ac_config_target in $ac_config_targets
18705 case $ac_config_target in
18706 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18707 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18708 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18709 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18710 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18711 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18712 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18713 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18714 "sxpm/Makefile") CONFIG_FILES="$CONFIG_FILES sxpm/Makefile" ;;
18715 "cxpm/Makefile") CONFIG_FILES="$CONFIG_FILES cxpm/Makefile" ;;
18716 "xpm.pc") CONFIG_FILES="$CONFIG_FILES xpm.pc" ;;
18718 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18723 # If the user did not use the arguments to specify the items to instantiate,
18724 # then the envvar interface is used. Set only those that are not.
18725 # We use the long form for the default assignment because of an extremely
18726 # bizarre bug on SunOS 4.1.3.
18727 if $ac_need_defaults; then
18728 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18729 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18730 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18733 # Have a temporary directory for convenience. Make it in the build tree
18734 # simply because there is no reason against having it here, and in addition,
18735 # creating and moving files from /tmp can sometimes cause problems.
18736 # Hook for its removal unless debugging.
18737 # Note that there is a small window in which the directory will not be cleaned:
18738 # after its creation but before its name has been assigned to `$tmp'.
18742 trap 'exit_status=$?
18743 : "${ac_tmp:=$tmp}"
18744 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18746 trap 'as_fn_exit 1' 1 2 13 15
18748 # Create a (secure) tmp directory for tmp files.
18751 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18755 tmp=./conf$$-$RANDOM
18756 (umask 077 && mkdir "$tmp")
18757 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18760 # Set up the scripts for CONFIG_FILES section.
18761 # No need to generate them if there are no CONFIG_FILES.
18762 # This happens for instance with `./config.status config.h'.
18763 if test -n "$CONFIG_FILES"; then
18766 ac_cr=`echo X | tr X '\015'`
18767 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18768 # But we know of no other shell where ac_cr would be empty at this
18769 # point, so we can use a bashism as a fallback.
18770 if test "x$ac_cr" = x; then
18771 eval ac_cr=\$\'\\r\'
18773 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18774 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18777 ac_cs_awk_cr=$ac_cr
18780 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18785 echo "cat >conf$$subs.awk <<_ACEOF" &&
18786 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18788 } >conf$$subs.sh ||
18789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18790 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18792 for ac_last_try in false false false false false :; do
18793 . ./conf$$subs.sh ||
18794 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18796 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18797 if test $ac_delim_n = $ac_delim_num; then
18799 elif $ac_last_try; then
18800 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18805 rm -f conf$$subs.sh
18807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18808 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18812 s/^/S["/; s/!.*/"]=/
18822 s/\(.\{148\}\)..*/\1/
18824 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18836 s/\(.\{148\}\)..*/\1/
18838 s/["\\]/\\&/g; s/^/"/; s/$/"/
18842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18847 ' <conf$$subs.awk | sed '
18852 ' >>$CONFIG_STATUS || ac_write_fail=1
18853 rm -f conf$$subs.awk
18854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18856 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18857 for (key in S) S_is_set[key] = 1
18863 nfields = split(line, field, "@")
18865 len = length(field[1])
18866 for (i = 2; i < nfields; i++) {
18868 keylen = length(key)
18869 if (S_is_set[key]) {
18871 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18872 len += length(value) + length(field[++i])
18883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18884 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18885 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18888 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18889 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18892 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18893 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18894 # trailing colons and then remove the whole line if VPATH becomes empty
18895 # (actually we leave an empty line to preserve line numbers).
18896 if test "x$srcdir" = x.; then
18897 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18916 fi # test -n "$CONFIG_FILES"
18918 # Set up the scripts for CONFIG_HEADERS section.
18919 # No need to generate them if there are no CONFIG_HEADERS.
18920 # This happens for instance with `./config.status Makefile'.
18921 if test -n "$CONFIG_HEADERS"; then
18922 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18926 # Transform confdefs.h into an awk script `defines.awk', embedded as
18927 # here-document in config.status, that substitutes the proper values into
18928 # config.h.in to produce config.h.
18930 # Create a delimiter string that does not exist in confdefs.h, to ease
18931 # handling of long lines.
18933 for ac_last_try in false false :; do
18934 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18935 if test -z "$ac_tt"; then
18937 elif $ac_last_try; then
18938 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18940 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18944 # For the awk script, D is an array of macro values keyed by name,
18945 # likewise P contains macro parameters if any. Preserve backslash
18946 # newline sequences.
18948 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18950 s/.\{148\}/&'"$ac_delim"'/g
18953 s/^[ ]*#[ ]*define[ ][ ]*/ /
18960 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18962 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18967 D["\1"]=" \3\\\\\\n"\\/p
18969 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18974 s/.\{148\}/&'"$ac_delim"'/g
18979 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18982 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18984 ' <confdefs.h | sed '
18985 s/'"$ac_delim"'/"\\\
18986 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18989 for (key in D) D_is_set[key] = 1
18992 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18994 split(line, arg, " ")
18995 if (arg[1] == "#") {
18999 defundef = substr(arg[1], 2)
19002 split(mac1, mac2, "(") #)
19004 prefix = substr(line, 1, index(line, defundef) - 1)
19005 if (D_is_set[macro]) {
19006 # Preserve the white space surrounding the "#".
19007 print prefix "define", macro P[macro] D[macro]
19010 # Replace #undef with comments. This is necessary, for example,
19011 # in the case of _POSIX_SOURCE, which is predefined and required
19012 # on some systems where configure will not decide to define it.
19013 if (defundef == "undef") {
19014 print "/*", prefix defundef, macro, "*/"
19022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19023 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19024 fi # test -n "$CONFIG_HEADERS"
19027 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19032 :[FHLC]) ac_mode=$ac_tag; continue;;
19034 case $ac_mode$ac_tag in
19036 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19037 :[FH]-) ac_tag=-:-;;
19038 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19055 -) ac_f="$ac_tmp/stdin";;
19056 *) # Look for the file first in the build tree, then in the source tree
19057 # (if the path is not absolute). The absolute path cannot be DOS-style,
19058 # because $ac_f cannot contain `:'.
19062 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19064 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19066 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19067 as_fn_append ac_file_inputs " '$ac_f'"
19070 # Let's still pretend it is `configure' which instantiates (i.e., don't
19071 # use $as_me), people would be surprised to read:
19072 # /* config.h. Generated by config.status. */
19073 configure_input='Generated from '`
19074 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19076 if test x"$ac_file" != x-; then
19077 configure_input="$ac_file. $configure_input"
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19079 $as_echo "$as_me: creating $ac_file" >&6;}
19081 # Neutralize special characters interpreted by sed in replacement strings.
19082 case $configure_input in #(
19083 *\&* | *\|* | *\\* )
19084 ac_sed_conf_input=`$as_echo "$configure_input" |
19085 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19086 *) ac_sed_conf_input=$configure_input;;
19090 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19096 ac_dir=`$as_dirname -- "$ac_file" ||
19097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19098 X"$ac_file" : 'X\(//\)[^/]' \| \
19099 X"$ac_file" : 'X\(//\)$' \| \
19100 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19101 $as_echo X"$ac_file" |
19102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19106 /^X\(\/\/\)[^/].*/{
19119 as_dir="$ac_dir"; as_fn_mkdir_p
19123 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19125 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19126 # A ".." for each directory in $ac_dir_suffix.
19127 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19128 case $ac_top_builddir_sub in
19129 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19130 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19133 ac_abs_top_builddir=$ac_pwd
19134 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19135 # for backward compatibility:
19136 ac_top_builddir=$ac_top_build_prefix
19139 .) # We are building in place.
19141 ac_top_srcdir=$ac_top_builddir_sub
19142 ac_abs_top_srcdir=$ac_pwd ;;
19143 [\\/]* | ?:[\\/]* ) # Absolute name.
19144 ac_srcdir=$srcdir$ac_dir_suffix;
19145 ac_top_srcdir=$srcdir
19146 ac_abs_top_srcdir=$srcdir ;;
19147 *) # Relative name.
19148 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19149 ac_top_srcdir=$ac_top_build_prefix$srcdir
19150 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19152 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19162 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19163 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19165 ac_MKDIR_P=$MKDIR_P
19167 [\\/$]* | ?:[\\/]* ) ;;
19168 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19173 # If the template does not know about datarootdir, expand it.
19174 # FIXME: This hack should be removed a few years after 2.60.
19175 ac_datarootdir_hack=; ac_datarootdir_seen=
19186 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19187 *datarootdir*) ac_datarootdir_seen=yes;;
19188 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19190 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19193 ac_datarootdir_hack='
19194 s&@datadir@&$datadir&g
19195 s&@docdir@&$docdir&g
19196 s&@infodir@&$infodir&g
19197 s&@localedir@&$localedir&g
19198 s&@mandir@&$mandir&g
19199 s&\\\${datarootdir}&$datarootdir&g' ;;
19203 # Neutralize VPATH when `$srcdir' = `.'.
19204 # Shell code in configure.ac might set extrasub.
19205 # FIXME: do we really want to maintain this feature?
19206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19207 ac_sed_extra="$ac_vpsub
19210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19213 s|@configure_input@|$ac_sed_conf_input|;t t
19214 s&@top_builddir@&$ac_top_builddir_sub&;t t
19215 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19216 s&@srcdir@&$ac_srcdir&;t t
19217 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19218 s&@top_srcdir@&$ac_top_srcdir&;t t
19219 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19220 s&@builddir@&$ac_builddir&;t t
19221 s&@abs_builddir@&$ac_abs_builddir&;t t
19222 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19223 s&@INSTALL@&$ac_INSTALL&;t t
19224 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19225 $ac_datarootdir_hack
19227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19228 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19231 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19232 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19233 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19235 which seems to be undefined. Please make sure it is defined" >&5
19236 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19237 which seems to be undefined. Please make sure it is defined" >&2;}
19239 rm -f "$ac_tmp/stdin"
19241 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19242 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19250 if test x"$ac_file" != x-; then
19252 $as_echo "/* $configure_input */" \
19253 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19254 } >"$ac_tmp/config.h" \
19255 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19256 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19258 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19261 mv "$ac_tmp/config.h" "$ac_file" \
19262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19265 $as_echo "/* $configure_input */" \
19266 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19267 || as_fn_error $? "could not create -" "$LINENO" 5
19269 # Compute "$ac_file"'s index in $config_headers.
19272 for _am_header in $config_headers :; do
19273 case $_am_header in
19274 $_am_arg | $_am_arg:* )
19277 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19280 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19281 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19282 X"$_am_arg" : 'X\(//\)[^/]' \| \
19283 X"$_am_arg" : 'X\(//\)$' \| \
19284 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19285 $as_echo X"$_am_arg" |
19286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19290 /^X\(\/\/\)[^/].*/{
19302 s/.*/./; q'`/stamp-h$_am_stamp_count
19305 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19306 $as_echo "$as_me: executing $ac_file commands" >&6;}
19311 case $ac_file$ac_mode in
19312 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19313 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19314 # are listed without --file. Let's play safe and only enable the eval
19315 # if we detect the quoting.
19316 case $CONFIG_FILES in
19317 *\'*) eval set x "$CONFIG_FILES" ;;
19318 *) set x $CONFIG_FILES ;;
19323 # Strip MF so we end up with the name of the file.
19324 mf=`echo "$mf" | sed -e 's/:.*$//'`
19325 # Check whether this is an Automake generated Makefile or not.
19326 # We used to match only the files named `Makefile.in', but
19327 # some people rename them; so instead we look at the file content.
19328 # Grep'ing the first line is not enough: some people post-process
19329 # each Makefile.in and add a new line on top of each file to say so.
19330 # Grep'ing the whole file is not good either: AIX grep has a line
19331 # limit of 2048, but all sed's we know have understand at least 4000.
19332 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19333 dirpart=`$as_dirname -- "$mf" ||
19334 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19335 X"$mf" : 'X\(//\)[^/]' \| \
19336 X"$mf" : 'X\(//\)$' \| \
19337 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19343 /^X\(\/\/\)[^/].*/{
19359 # Extract the definition of DEPDIR, am__include, and am__quote
19360 # from the Makefile without running `make'.
19361 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19362 test -z "$DEPDIR" && continue
19363 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19364 test -z "am__include" && continue
19365 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19366 # When using ansi2knr, U may be empty or an underscore; expand it
19367 U=`sed -n 's/^U = //p' < "$mf"`
19368 # Find all dependency output files, they are included files with
19369 # $(DEPDIR) in their names. We invoke sed twice because it is the
19370 # simplest approach to changing $(DEPDIR) to its actual value in the
19372 for file in `sed -n "
19373 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19374 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19375 # Make sure the directory exists.
19376 test -f "$dirpart/$file" && continue
19377 fdir=`$as_dirname -- "$file" ||
19378 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19379 X"$file" : 'X\(//\)[^/]' \| \
19380 X"$file" : 'X\(//\)$' \| \
19381 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19382 $as_echo X"$file" |
19383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19387 /^X\(\/\/\)[^/].*/{
19400 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19401 # echo "creating $dirpart/$file"
19402 echo '# dummy' > "$dirpart/$file"
19409 # See if we are running on zsh, and set the options which allow our
19410 # commands through without removal of \ escapes.
19411 if test -n "${ZSH_VERSION+set}" ; then
19412 setopt NO_GLOB_SUBST
19415 cfgfile="${ofile}T"
19416 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19419 cat <<_LT_EOF >> "$cfgfile"
19422 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19423 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19424 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19425 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19427 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19428 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19430 # Written by Gordon Matzigkeit, 1996
19432 # This file is part of GNU Libtool.
19434 # GNU Libtool is free software; you can redistribute it and/or
19435 # modify it under the terms of the GNU General Public License as
19436 # published by the Free Software Foundation; either version 2 of
19437 # the License, or (at your option) any later version.
19439 # As a special exception to the GNU General Public License,
19440 # if you distribute this file as part of a program or library that
19441 # is built using GNU Libtool, you may include this file under the
19442 # same distribution terms that you use for the rest of that program.
19444 # GNU Libtool is distributed in the hope that it will be useful,
19445 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19446 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19447 # GNU General Public License for more details.
19449 # You should have received a copy of the GNU General Public License
19450 # along with GNU Libtool; see the file COPYING. If not, a copy
19451 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19452 # obtained by writing to the Free Software Foundation, Inc.,
19453 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19456 # The names of the tagged configurations supported by this script.
19459 # ### BEGIN LIBTOOL CONFIG
19461 # Which release of libtool.m4 was used?
19462 macro_version=$macro_version
19463 macro_revision=$macro_revision
19465 # Whether or not to build shared libraries.
19466 build_libtool_libs=$enable_shared
19468 # Whether or not to build static libraries.
19469 build_old_libs=$enable_static
19471 # What type of objects to build.
19474 # Whether or not to optimize for fast installation.
19475 fast_install=$enable_fast_install
19477 # Shell to use when invoking shell scripts.
19480 # An echo program that protects backslashes.
19484 host_alias=$host_alias
19488 # The build system.
19489 build_alias=$build_alias
19493 # A sed program that does not truncate output.
19496 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19497 Xsed="\$SED -e 1s/^X//"
19499 # A grep program that handles long lines.
19505 # A literal string matcher.
19508 # A BSD- or MS-compatible name lister.
19511 # Whether we need soft or hard links.
19514 # What is the maximum length of a command?
19515 max_cmd_len=$max_cmd_len
19517 # Object file suffix (normally "o").
19520 # Executable file suffix (normally "").
19523 # whether the shell understands "unset".
19526 # turn spaces into newlines.
19529 # turn newlines into spaces.
19532 # convert \$build file names to \$host format.
19533 to_host_file_cmd=$lt_cv_to_host_file_cmd
19535 # convert \$build files to toolchain format.
19536 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19538 # An object symbol dumper.
19539 OBJDUMP=$lt_OBJDUMP
19541 # Method to check whether dependent libraries are shared objects.
19542 deplibs_check_method=$lt_deplibs_check_method
19544 # Command to use when deplibs_check_method = "file_magic".
19545 file_magic_cmd=$lt_file_magic_cmd
19547 # How to find potential files when deplibs_check_method = "file_magic".
19548 file_magic_glob=$lt_file_magic_glob
19550 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19551 want_nocaseglob=$lt_want_nocaseglob
19553 # DLL creation program.
19554 DLLTOOL=$lt_DLLTOOL
19556 # Command to associate shared and link libraries.
19557 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19562 # Flags to create an archive.
19563 AR_FLAGS=$lt_AR_FLAGS
19565 # How to feed a file listing to the archiver.
19566 archiver_list_spec=$lt_archiver_list_spec
19568 # A symbol stripping program.
19571 # Commands used to install an old-style archive.
19573 old_postinstall_cmds=$lt_old_postinstall_cmds
19574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19576 # Whether to use a lock for old archive extraction.
19577 lock_old_archive_extraction=$lock_old_archive_extraction
19582 # LTCC compiler flags.
19583 LTCFLAGS=$lt_CFLAGS
19585 # Take the output of nm and produce a listing of raw symbols and C names.
19586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19588 # Transform the output of nm in a proper C declaration.
19589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19591 # Transform the output of nm in a C name address pair.
19592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19594 # Transform the output of nm in a C name address pair when lib prefix is needed.
19595 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19597 # Specify filename containing input files for \$NM.
19598 nm_file_list_spec=$lt_nm_file_list_spec
19600 # The root where to search for dependent libraries,and in which our libraries should be installed.
19601 lt_sysroot=$lt_sysroot
19603 # The name of the directory that contains temporary libtool files.
19606 # Used to examine libraries when file_magic_cmd begins with "file".
19607 MAGIC_CMD=$MAGIC_CMD
19609 # Must we lock files when doing compilation?
19610 need_locks=$lt_need_locks
19613 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19615 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19616 DSYMUTIL=$lt_DSYMUTIL
19618 # Tool to change global to local symbols on Mac OS X.
19621 # Tool to manipulate fat objects and archives on Mac OS X.
19624 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19627 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19628 OTOOL64=$lt_OTOOL64
19630 # Old archive suffix (normally "a").
19633 # Shared library suffix (normally ".so").
19634 shrext_cmds=$lt_shrext_cmds
19636 # The commands to extract the exported symbol list from a shared archive.
19637 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19639 # Variables whose values should be saved in libtool wrapper scripts and
19640 # restored at link time.
19641 variables_saved_for_relink=$lt_variables_saved_for_relink
19643 # Do we need the "lib" prefix for modules?
19644 need_lib_prefix=$need_lib_prefix
19646 # Do we need a version for libraries?
19647 need_version=$need_version
19649 # Library versioning type.
19650 version_type=$version_type
19652 # Shared library runtime path variable.
19653 runpath_var=$runpath_var
19655 # Shared library path variable.
19656 shlibpath_var=$shlibpath_var
19658 # Is shlibpath searched before the hard-coded library search path?
19659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19661 # Format of library name prefix.
19662 libname_spec=$lt_libname_spec
19664 # List of archive names. First name is the real one, the rest are links.
19665 # The last name is the one that the linker finds with -lNAME
19666 library_names_spec=$lt_library_names_spec
19668 # The coded name of the library, if different from the real name.
19669 soname_spec=$lt_soname_spec
19671 # Permission mode override for installation of shared libraries.
19672 install_override_mode=$lt_install_override_mode
19674 # Command to use after installation of a shared archive.
19675 postinstall_cmds=$lt_postinstall_cmds
19677 # Command to use after uninstallation of a shared archive.
19678 postuninstall_cmds=$lt_postuninstall_cmds
19680 # Commands used to finish a libtool library installation in a directory.
19681 finish_cmds=$lt_finish_cmds
19683 # As "finish_cmds", except a single script fragment to be evaled but
19685 finish_eval=$lt_finish_eval
19687 # Whether we should hardcode library paths into libraries.
19688 hardcode_into_libs=$hardcode_into_libs
19690 # Compile-time system search path for libraries.
19691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19693 # Run-time system search path for libraries.
19694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19696 # Whether dlopen is supported.
19697 dlopen_support=$enable_dlopen
19699 # Whether dlopen of programs is supported.
19700 dlopen_self=$enable_dlopen_self
19702 # Whether dlopen of statically linked programs is supported.
19703 dlopen_self_static=$enable_dlopen_self_static
19705 # Commands to strip libraries.
19706 old_striplib=$lt_old_striplib
19707 striplib=$lt_striplib
19710 # The linker used to build libraries.
19713 # How to create reloadable object files.
19714 reload_flag=$lt_reload_flag
19715 reload_cmds=$lt_reload_cmds
19717 # Commands used to build an old-style archive.
19718 old_archive_cmds=$lt_old_archive_cmds
19720 # A language specific compiler.
19723 # Is the compiler the GNU compiler?
19726 # Compiler flag to turn off builtin functions.
19727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19729 # Additional compiler flags for building library objects.
19730 pic_flag=$lt_lt_prog_compiler_pic
19732 # How to pass a linker flag through the compiler.
19733 wl=$lt_lt_prog_compiler_wl
19735 # Compiler flag to prevent dynamic linking.
19736 link_static_flag=$lt_lt_prog_compiler_static
19738 # Does compiler simultaneously support -c and -o options?
19739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19741 # Whether or not to add -lc for building shared libraries.
19742 build_libtool_need_lc=$archive_cmds_need_lc
19744 # Whether or not to disallow shared libs when runtime libs are static.
19745 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19747 # Compiler flag to allow reflexive dlopens.
19748 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19750 # Compiler flag to generate shared objects directly from archives.
19751 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19753 # Whether the compiler copes with passing no objects directly.
19754 compiler_needs_object=$lt_compiler_needs_object
19756 # Create an old-style archive from a shared archive.
19757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19759 # Create a temporary old-style archive to link instead of a shared archive.
19760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19762 # Commands used to build a shared archive.
19763 archive_cmds=$lt_archive_cmds
19764 archive_expsym_cmds=$lt_archive_expsym_cmds
19766 # Commands used to build a loadable module if different from building
19767 # a shared archive.
19768 module_cmds=$lt_module_cmds
19769 module_expsym_cmds=$lt_module_expsym_cmds
19771 # Whether we are building with GNU ld or not.
19772 with_gnu_ld=$lt_with_gnu_ld
19774 # Flag that allows shared libraries with undefined symbols to be built.
19775 allow_undefined_flag=$lt_allow_undefined_flag
19777 # Flag that enforces no undefined symbols.
19778 no_undefined_flag=$lt_no_undefined_flag
19780 # Flag to hardcode \$libdir into a binary during linking.
19781 # This must work even if \$libdir does not exist
19782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19784 # If ld is used when linking, flag to hardcode \$libdir into a binary
19785 # during linking. This must work even if \$libdir does not exist.
19786 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19788 # Whether we need a single "-rpath" flag with a separated argument.
19789 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19791 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19792 # DIR into the resulting binary.
19793 hardcode_direct=$hardcode_direct
19795 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19796 # DIR into the resulting binary and the resulting library dependency is
19797 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19798 # library is relocated.
19799 hardcode_direct_absolute=$hardcode_direct_absolute
19801 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19802 # into the resulting binary.
19803 hardcode_minus_L=$hardcode_minus_L
19805 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19806 # into the resulting binary.
19807 hardcode_shlibpath_var=$hardcode_shlibpath_var
19809 # Set to "yes" if building a shared library automatically hardcodes DIR
19810 # into the library and all subsequent libraries and executables linked
19812 hardcode_automatic=$hardcode_automatic
19814 # Set to yes if linker adds runtime paths of dependent libraries
19815 # to runtime path list.
19816 inherit_rpath=$inherit_rpath
19818 # Whether libtool must link a program against all its dependency libraries.
19819 link_all_deplibs=$link_all_deplibs
19821 # Set to "yes" if exported symbols are required.
19822 always_export_symbols=$always_export_symbols
19824 # The commands to list exported symbols.
19825 export_symbols_cmds=$lt_export_symbols_cmds
19827 # Symbols that should not be listed in the preloaded symbols.
19828 exclude_expsyms=$lt_exclude_expsyms
19830 # Symbols that must always be exported.
19831 include_expsyms=$lt_include_expsyms
19833 # Commands necessary for linking programs (against libraries) with templates.
19834 prelink_cmds=$lt_prelink_cmds
19836 # Commands necessary for finishing linking programs.
19837 postlink_cmds=$lt_postlink_cmds
19839 # Specify filename containing input files.
19840 file_list_spec=$lt_file_list_spec
19842 # How to hardcode a shared library path into an executable.
19843 hardcode_action=$hardcode_action
19845 # ### END LIBTOOL CONFIG
19851 cat <<\_LT_EOF >> "$cfgfile"
19852 # AIX sometimes has problems with the GCC collect2 program. For some
19853 # reason, if we set the COLLECT_NAMES environment variable, the problems
19854 # vanish in a puff of smoke.
19855 if test "X${COLLECT_NAMES+set}" != Xset; then
19857 export COLLECT_NAMES
19864 ltmain="$ac_aux_dir/ltmain.sh"
19867 # We use sed instead of cat because bash on DJGPP gets confused if
19868 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19869 # text mode, it properly converts lines to CR/LF. This bash problem
19870 # is reportedly fixed, but why not run on old versions too?
19871 sed '$q' "$ltmain" >> "$cfgfile" \
19872 || (rm -f "$cfgfile"; exit 1)
19874 if test x"$xsi_shell" = xyes; then
19875 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19879 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19880 \ * ) func_dirname_result="${3}" ;;\
19882 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19883 && mv -f "$cfgfile.tmp" "$cfgfile" \
19884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19885 test 0 -eq $? || _lt_function_replace_fail=:
19888 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19891 \ func_basename_result="${1##*/}"\
19892 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19893 && mv -f "$cfgfile.tmp" "$cfgfile" \
19894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19895 test 0 -eq $? || _lt_function_replace_fail=:
19898 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19899 func_dirname_and_basename ()\
19902 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19903 \ * ) func_dirname_result="${3}" ;;\
19905 \ func_basename_result="${1##*/}"\
19906 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19907 && mv -f "$cfgfile.tmp" "$cfgfile" \
19908 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19909 test 0 -eq $? || _lt_function_replace_fail=:
19912 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19915 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19916 \ # positional parameters, so assign one to ordinary parameter first.\
19917 \ func_stripname_result=${3}\
19918 \ func_stripname_result=${func_stripname_result#"${1}"}\
19919 \ func_stripname_result=${func_stripname_result%"${2}"}\
19920 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19921 && mv -f "$cfgfile.tmp" "$cfgfile" \
19922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19923 test 0 -eq $? || _lt_function_replace_fail=:
19926 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19927 func_split_long_opt ()\
19929 \ func_split_long_opt_name=${1%%=*}\
19930 \ func_split_long_opt_arg=${1#*=}\
19931 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19932 && mv -f "$cfgfile.tmp" "$cfgfile" \
19933 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19934 test 0 -eq $? || _lt_function_replace_fail=:
19937 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19938 func_split_short_opt ()\
19940 \ func_split_short_opt_arg=${1#??}\
19941 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19942 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19943 && mv -f "$cfgfile.tmp" "$cfgfile" \
19944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19945 test 0 -eq $? || _lt_function_replace_fail=:
19948 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19952 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19953 \ *) func_lo2o_result=${1} ;;\
19955 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19956 && mv -f "$cfgfile.tmp" "$cfgfile" \
19957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19958 test 0 -eq $? || _lt_function_replace_fail=:
19961 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19964 func_xform_result=${1%.*}.lo\
19965 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19966 && mv -f "$cfgfile.tmp" "$cfgfile" \
19967 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19968 test 0 -eq $? || _lt_function_replace_fail=:
19971 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19974 func_arith_result=$(( $* ))\
19975 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19976 && mv -f "$cfgfile.tmp" "$cfgfile" \
19977 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19978 test 0 -eq $? || _lt_function_replace_fail=:
19981 sed -e '/^func_len ()$/,/^} # func_len /c\
19984 func_len_result=${#1}\
19985 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19986 && mv -f "$cfgfile.tmp" "$cfgfile" \
19987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19988 test 0 -eq $? || _lt_function_replace_fail=:
19992 if test x"$lt_shell_append" = xyes; then
19993 sed -e '/^func_append ()$/,/^} # func_append /c\
19996 eval "${1}+=\\${2}"\
19997 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19998 && mv -f "$cfgfile.tmp" "$cfgfile" \
19999 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20000 test 0 -eq $? || _lt_function_replace_fail=:
20003 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20004 func_append_quoted ()\
20006 \ func_quote_for_eval "${2}"\
20007 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20008 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20009 && mv -f "$cfgfile.tmp" "$cfgfile" \
20010 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20011 test 0 -eq $? || _lt_function_replace_fail=:
20014 # Save a `func_append' function call where possible by direct use of '+='
20015 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20016 && mv -f "$cfgfile.tmp" "$cfgfile" \
20017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20018 test 0 -eq $? || _lt_function_replace_fail=:
20020 # Save a `func_append' function call even when '+=' is not available
20021 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20022 && mv -f "$cfgfile.tmp" "$cfgfile" \
20023 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20024 test 0 -eq $? || _lt_function_replace_fail=:
20027 if test x"$_lt_function_replace_fail" = x":"; then
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20029 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20033 mv -f "$cfgfile" "$ofile" ||
20034 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20045 ac_clean_files=$ac_clean_files_save
20047 test $ac_write_fail = 0 ||
20048 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20051 # configure is writing to config.log, and then calls config.status.
20052 # config.status does its own redirection, appending to config.log.
20053 # Unfortunately, on DOS this fails, as config.log is still kept open
20054 # by configure, so config.status won't be able to write to it; its
20055 # output is simply discarded. So we exec the FD to /dev/null,
20056 # effectively closing config.log, so it can be properly (re)opened and
20057 # appended to by config.status. When coming back to configure, we
20058 # need to make the FD available again.
20059 if test "$no_create" != yes; then
20061 ac_config_status_args=
20062 test "$silent" = yes &&
20063 ac_config_status_args="$ac_config_status_args --quiet"
20065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20068 # would make configure fail if this is the last instruction.
20069 $ac_cs_success || as_fn_exit 1
20071 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20073 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}