2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXScrnSaver 1.2.2.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
572 PACKAGE_NAME='libXScrnSaver'
573 PACKAGE_TARNAME='libXScrnSaver'
574 PACKAGE_VERSION='1.2.2'
575 PACKAGE_STRING='libXScrnSaver 1.2.2'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_subst_vars='am__EXEEXT_FALSE
701 MAINTAINER_MODE_FALSE
711 INSTALL_STRIP_PROGRAM
753 program_transform_name
766 enable_option_checking
767 enable_maintainer_mode
772 enable_dependency_tracking
776 enable_selective_werror
777 enable_strict_compilation
779 enable_malloc0returnsnull
783 ac_precious_vars='build_alias
799 # Initialize some variables set by options.
801 ac_init_version=false
802 ac_unrecognized_opts=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
813 program_transform_name=s,x,x,
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 includedir='${prefix}/include'
836 oldincludedir='/usr/include'
837 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838 infodir='${datarootdir}/info'
843 libdir='${exec_prefix}/lib'
844 localedir='${datarootdir}/locale'
845 mandir='${datarootdir}/man'
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
853 eval $ac_prev=\$ac_option
859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 # Accept the important Cygnus configure options, so we can diagnose typos.
866 case $ac_dashdash$ac_option in
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
888 cache_file=config.cache ;;
890 -datadir | --datadir | --datadi | --datad)
892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
893 datadir=$ac_optarg ;;
895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
902 -disable-* | --disable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
916 eval enable_$ac_useropt=no ;;
918 -docdir | --docdir | --docdi | --doc | --do)
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 -enable-* | --enable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
942 eval enable_$ac_useropt=\$ac_optarg ;;
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
957 -help | --help | --hel | --he | -h)
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 htmldir=$ac_optarg ;;
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
987 -libdir | --libdir | --libdi | --libd)
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1078 -psdir | --psdir | --psdi | --psd | --ps)
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 sbindir=$ac_optarg ;;
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 sharedstatedir=$ac_optarg ;;
1104 -site | --site | --sit)
1106 -site=* | --site=* | --sit=*)
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval with_$ac_useropt=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1162 eval with_$ac_useropt=no ;;
1165 # Obsolete; use --with-x.
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1182 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183 Try \`$0 --help' for more information"
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 case $ac_envvar in #(
1190 '' | [0-9]* | *[!_$as_cr_alnum]* )
1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1197 # FIXME: should be removed in autoconf 3.0.
1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207 if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 as_fn_error $? "missing argument to $ac_option"
1212 if test -n "$ac_unrecognized_opts"; then
1213 case $enable_option_checking in
1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 # Check all directory arguments for consistency.
1221 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
1226 eval ac_val=\$$ac_var
1227 # Remove trailing slashes.
1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231 eval $ac_var=\$ac_val;;
1233 # Be sure to have absolute directory names.
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 # There might be people who depend on the old broken behavior: `$host'
1242 # used to hold the argument of --host etc.
1243 # FIXME: To remove some day.
1246 target=$target_alias
1248 # FIXME: To remove some day.
1249 if test "x$host_alias" != x; then
1250 if test "x$build_alias" = x; then
1251 cross_compiling=maybe
1252 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1253 If a cross compiler is detected then cross compile mode will be used" >&2
1254 elif test "x$build_alias" != "x$host_alias"; then
1260 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262 test "$silent" = yes && exec 6>/dev/null
1265 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266 ac_ls_di=`ls -di .` &&
1267 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268 as_fn_error $? "working directory cannot be determined"
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270 as_fn_error $? "pwd does not report name of working directory"
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$as_myself" ||
1278 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$as_myself" : 'X\(//\)[^/]' \| \
1280 X"$as_myself" : 'X\(//\)$' \| \
1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282 $as_echo X"$as_myself" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1305 ac_srcdir_defaulted=no
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 # When building in place, set srcdir=.
1316 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 # Remove unnecessary trailing slashes from srcdir.
1320 # Double slashes in file names in object file debugging info
1321 # mess up M-x gdb in Emacs.
1323 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 for ac_var in $ac_precious_vars; do
1326 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_${ac_var}_value=\$${ac_var}
1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333 # Report the --help message.
1335 if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1339 \`configure' configures libXScrnSaver 1.2.2 to adapt to many kinds of systems.
1341 Usage: $0 [OPTION]... [VAR=VALUE]...
1343 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344 VAR=VALUE. See below for descriptions of some of the useful variables.
1346 Defaults for the options are specified in brackets.
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
1353 -q, --quiet, --silent do not print \`checking ...' messages
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for \`--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359 Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
1361 [$ac_default_prefix]
1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 By default, \`make install' will install all the files in
1366 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368 for instance \`--prefix=\$HOME'.
1370 For better control, use the options below.
1372 Fine tuning of the installation directories:
1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/libXScrnSaver]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1407 if test -n "$ac_init_help"; then
1408 case $ac_init_help in
1409 short | recursive ) echo "Configuration of libXScrnSaver 1.2.2:";;
1414 --disable-option-checking ignore unrecognized --enable/--with options
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --enable-maintainer-mode enable make rules and dependencies not useful
1418 (and sometimes confusing) to the casual installer
1419 --enable-shared[=PKGS] build shared libraries [default=yes]
1420 --enable-static[=PKGS] build static libraries [default=yes]
1421 --enable-fast-install[=PKGS]
1422 optimize for fast installation [default=yes]
1423 --disable-dependency-tracking speeds up one-time build
1424 --enable-dependency-tracking do not reject slow dependency extractors
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1426 --disable-selective-werror
1427 Turn off selective compiler errors. (default:
1429 --enable-strict-compilation
1430 Enable all warnings from compiler and make them
1431 errors (default: disabled)
1432 --enable-silent-rules less verbose build output (undo: `make V=1')
1433 --disable-silent-rules verbose build output (undo: `make V=0')
1434 --enable-malloc0returnsnull
1435 malloc(0) returns NULL (default: auto)
1436 --enable-lint-library Create lint library (default: disabled)
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-pic try to use only PIC/non-PIC objects [default=use
1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1444 --with-sysroot=DIR Search for dependent libraries within DIR
1445 (or the compiler's sysroot if not specified).
1446 --with-lint Use a lint-style source code checker (default:
1449 Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1458 PKG_CONFIG path to pkg-config utility
1460 C compiler flags for XSCRNSAVER, overriding pkg-config
1462 linker flags for XSCRNSAVER, overriding pkg-config
1463 LINT Path to a lint-style command
1464 LINT_FLAGS Flags for the lint-style command
1466 Use these variables to override the choices made by `configure' or to help
1467 it to find libraries and programs with nonstandard names/locations.
1469 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1474 if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477 test -d "$ac_dir" ||
1478 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1499 .) # We are building in place.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1523 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1532 libXScrnSaver configure 1.2.2
1533 generated by GNU Autoconf 2.68
1535 Copyright (C) 2010 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1542 ## ------------------------ ##
1543 ## Autoconf initialization. ##
1544 ## ------------------------ ##
1546 # ac_fn_c_try_compile LINENO
1547 # --------------------------
1548 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_compile ()
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 rm -f conftest.$ac_objext
1553 if { { ac_try="$ac_compile"
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_compile") 2>conftest.err
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } && {
1569 test -z "$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 } && test -s conftest.$ac_objext; then :
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1582 } # ac_fn_c_try_compile
1584 # ac_fn_c_try_link LINENO
1585 # -----------------------
1586 # Try to link conftest.$ac_ext, and return whether this succeeded.
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext conftest$ac_exeext
1591 if { { ac_try="$ac_link"
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_link") 2>conftest.err
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest$ac_exeext && {
1610 test "$cross_compiling" = yes ||
1611 $as_test_x conftest$ac_exeext
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1620 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1621 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1622 # interfere with the next link command; also delete a directory that is
1623 # left behind by Apple's compiler. We do this before executing the actions.
1624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1628 } # ac_fn_c_try_link
1630 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1631 # -------------------------------------------------------
1632 # Tests whether HEADER exists and can be compiled using the include files in
1633 # INCLUDES, setting the cache variable VAR accordingly.
1634 ac_fn_c_check_header_compile ()
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638 $as_echo_n "checking for $2... " >&6; }
1639 if eval \${$3+:} false; then :
1640 $as_echo_n "(cached) " >&6
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1647 if ac_fn_c_try_compile "$LINENO"; then :
1652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656 $as_echo "$ac_res" >&6; }
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 } # ac_fn_c_check_header_compile
1661 # ac_fn_c_try_cpp LINENO
1662 # ----------------------
1663 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if { { ac_try="$ac_cpp conftest.$ac_ext"
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } > conftest.i && {
1683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1698 # ac_fn_c_try_run LINENO
1699 # ----------------------
1700 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1701 # that executables *can* be run.
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_link"
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_link") 2>&5
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1716 { { case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_try") 2>&5
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; }; }; then :
1728 $as_echo "$as_me: program exited with status $ac_status" >&5
1729 $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1732 ac_retval=$ac_status
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1740 # ac_fn_c_check_func LINENO FUNC VAR
1741 # ----------------------------------
1742 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1743 ac_fn_c_check_func ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if eval \${$3+:} false; then :
1749 $as_echo_n "(cached) " >&6
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1753 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1755 #define $2 innocuous_$2
1757 /* System header to define __stub macros and hopefully few prototypes,
1758 which can conflict with char $2 (); below.
1759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1760 <limits.h> exists even on freestanding compilers. */
1763 # include <limits.h>
1765 # include <assert.h>
1770 /* Override any GCC internal prototype to avoid an error.
1771 Use char because int might match the return type of a GCC
1772 builtin and then its argument prototype would still apply. */
1777 /* The GNU C library defines this for functions which it implements
1778 to always fail with ENOSYS. Some functions are actually named
1779 something starting with __ and the normal name is an alias. */
1780 #if defined __stub_$2 || defined __stub___$2
1792 if ac_fn_c_try_link "$LINENO"; then :
1797 rm -f core conftest.err conftest.$ac_objext \
1798 conftest$ac_exeext conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 } # ac_fn_c_check_func
1807 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1808 # ---------------------------------------------
1809 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1811 ac_fn_c_check_decl ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 as_decl_name=`echo $2|sed 's/ *(.*//'`
1815 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1817 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1818 if eval \${$3+:} false; then :
1819 $as_echo_n "(cached) " >&6
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1827 #ifndef $as_decl_name
1829 (void) $as_decl_use;
1831 (void) $as_decl_name;
1839 if ac_fn_c_try_compile "$LINENO"; then :
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 } # ac_fn_c_check_decl
1852 cat >config.log <<_ACEOF
1853 This file contains any messages produced by compilers while
1854 running configure, to aid debugging if configure makes a mistake.
1856 It was created by libXScrnSaver $as_me 1.2.2, which was
1857 generated by GNU Autoconf 2.68. Invocation command line was
1869 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1870 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1871 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1872 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1873 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1875 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1876 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1878 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1879 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1880 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1881 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1882 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1883 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1884 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir=.
1893 $as_echo "PATH: $as_dir"
1909 # Keep a trace of the command line.
1910 # Strip out --no-create and --no-recursion so they do not pile up.
1911 # Strip out --silent because we don't want to record it for future runs.
1912 # Also quote any args containing shell meta-characters.
1913 # Make two passes to allow for proper duplicate-argument suppression.
1917 ac_must_keep_next=false
1923 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1925 | -silent | --silent | --silen | --sile | --sil)
1928 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1931 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1933 as_fn_append ac_configure_args1 " '$ac_arg'"
1934 if test $ac_must_keep_next = true; then
1935 ac_must_keep_next=false # Got value, back to normal.
1938 *=* | --config-cache | -C | -disable-* | --disable-* \
1939 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1940 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1941 | -with-* | --with-* | -without-* | --without-* | --x)
1942 case "$ac_configure_args0 " in
1943 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1946 -* ) ac_must_keep_next=true ;;
1949 as_fn_append ac_configure_args " '$ac_arg'"
1954 { ac_configure_args0=; unset ac_configure_args0;}
1955 { ac_configure_args1=; unset ac_configure_args1;}
1957 # When interrupted or exit'd, cleanup temporary files, and complete
1958 # config.log. We remove comments because anyway the quotes in there
1959 # would cause problems or look ugly.
1960 # WARNING: Use '\'' to represent an apostrophe within the trap.
1961 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1962 trap 'exit_status=$?
1963 # Save into config.log some information that might help in debugging.
1967 $as_echo "## ---------------- ##
1968 ## Cache variables. ##
1969 ## ---------------- ##"
1971 # The following way of writing the cache mishandles newlines in values,
1973 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1974 eval ac_val=\$$ac_var
1978 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1979 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1982 _ | IFS | as_nl) ;; #(
1983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1984 *) { eval $ac_var=; unset $ac_var;} ;;
1989 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1990 *${as_nl}ac_space=\ *)
1992 "s/'\''/'\''\\\\'\'''\''/g;
1993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2003 $as_echo "## ----------------- ##
2004 ## Output variables. ##
2005 ## ----------------- ##"
2007 for ac_var in $ac_subst_vars
2009 eval ac_val=\$$ac_var
2011 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013 $as_echo "$ac_var='\''$ac_val'\''"
2017 if test -n "$ac_subst_files"; then
2018 $as_echo "## ------------------- ##
2019 ## File substitutions. ##
2020 ## ------------------- ##"
2022 for ac_var in $ac_subst_files
2024 eval ac_val=\$$ac_var
2026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028 $as_echo "$ac_var='\''$ac_val'\''"
2033 if test -s confdefs.h; then
2034 $as_echo "## ----------- ##
2041 test "$ac_signal" != 0 &&
2042 $as_echo "$as_me: caught signal $ac_signal"
2043 $as_echo "$as_me: exit $exit_status"
2045 rm -f core *.core core.conftest.* &&
2046 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2049 for ac_signal in 1 2 13 15; do
2050 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2054 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2055 rm -f -r conftest* confdefs.h
2057 $as_echo "/* confdefs.h */" > confdefs.h
2059 # Predefined preprocessor variables.
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_NAME "$PACKAGE_NAME"
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_STRING "$PACKAGE_STRING"
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_URL "$PACKAGE_URL"
2086 # Let the site file select an alternate cache file if it wants to.
2087 # Prefer an explicitly selected file to automatically selected ones.
2090 if test -n "$CONFIG_SITE"; then
2091 # We do not want a PATH search for config.site.
2092 case $CONFIG_SITE in #((
2093 -*) ac_site_file1=./$CONFIG_SITE;;
2094 */*) ac_site_file1=$CONFIG_SITE;;
2095 *) ac_site_file1=./$CONFIG_SITE;;
2097 elif test "x$prefix" != xNONE; then
2098 ac_site_file1=$prefix/share/config.site
2099 ac_site_file2=$prefix/etc/config.site
2101 ac_site_file1=$ac_default_prefix/share/config.site
2102 ac_site_file2=$ac_default_prefix/etc/config.site
2104 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2106 test "x$ac_site_file" = xNONE && continue
2107 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2109 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2110 sed 's/^/| /' "$ac_site_file" >&5
2112 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2114 as_fn_error $? "failed to load site script $ac_site_file
2115 See \`config.log' for more details" "$LINENO" 5; }
2119 if test -r "$cache_file"; then
2120 # Some versions of bash will fail to source /dev/null (special files
2121 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2122 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2124 $as_echo "$as_me: loading cache $cache_file" >&6;}
2126 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2127 *) . "./$cache_file";;
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2132 $as_echo "$as_me: creating cache $cache_file" >&6;}
2136 # Check that the precious variables saved in the cache have kept the same
2138 ac_cache_corrupted=false
2139 for ac_var in $ac_precious_vars; do
2140 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2141 eval ac_new_set=\$ac_env_${ac_var}_set
2142 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2143 eval ac_new_val=\$ac_env_${ac_var}_value
2144 case $ac_old_set,$ac_new_set in
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2147 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2148 ac_cache_corrupted=: ;;
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2151 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2152 ac_cache_corrupted=: ;;
2155 if test "x$ac_old_val" != "x$ac_new_val"; then
2156 # differences in whitespace do not lead to failure.
2157 ac_old_val_w=`echo x $ac_old_val`
2158 ac_new_val_w=`echo x $ac_new_val`
2159 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2161 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2162 ac_cache_corrupted=:
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2165 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2166 eval $ac_var=\$ac_old_val
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2169 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2171 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2174 # Pass precious variables to config.status.
2175 if test "$ac_new_set" = set; then
2177 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2178 *) ac_arg=$ac_var=$ac_new_val ;;
2180 case " $ac_configure_args " in
2181 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2182 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2186 if $ac_cache_corrupted; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2190 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2191 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2193 ## -------------------- ##
2194 ## Main body of script. ##
2195 ## -------------------- ##
2198 ac_cpp='$CPP $CPPFLAGS'
2199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2205 ac_config_headers="$ac_config_headers config.h"
2208 # Initialize Automake
2209 am__api_version='1.11'
2212 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2213 if test -f "$ac_dir/install-sh"; then
2215 ac_install_sh="$ac_aux_dir/install-sh -c"
2217 elif test -f "$ac_dir/install.sh"; then
2219 ac_install_sh="$ac_aux_dir/install.sh -c"
2221 elif test -f "$ac_dir/shtool"; then
2223 ac_install_sh="$ac_aux_dir/shtool install -c"
2227 if test -z "$ac_aux_dir"; then
2228 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2231 # These three variables are undocumented and unsupported,
2232 # and are intended to be withdrawn in a future Autoconf release.
2233 # They can cause serious problems if a builder's source tree is in a directory
2234 # whose full name contains unusual characters.
2235 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2236 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2237 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2240 # Find a good install program. We prefer a C program (faster),
2241 # so one script is as good as another. But avoid the broken or
2242 # incompatible versions:
2243 # SysV /etc/install, /usr/sbin/install
2244 # SunOS /usr/etc/install
2245 # IRIX /sbin/install
2247 # AmigaOS /C/install, which installs bootblocks on floppy discs
2248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2251 # OS/2's system install, which has a completely different semantic
2252 # ./install, which can be erroneously created by make from ./install.sh.
2253 # Reject install programs that cannot install multiple files.
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2255 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2256 if test -z "$INSTALL"; then
2257 if ${ac_cv_path_install+:} false; then :
2258 $as_echo_n "(cached) " >&6
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 test -z "$as_dir" && as_dir=.
2265 # Account for people who put trailing slashes in PATH elements.
2266 case $as_dir/ in #((
2267 ./ | .// | /[cC]/* | \
2268 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2269 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2272 # OSF1 and SCO ODT 3.0 have their own names for install.
2273 # Don't use installbsd from OSF since it installs stuff as root
2275 for ac_prog in ginstall scoinst install; do
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2278 if test $ac_prog = install &&
2279 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2280 # AIX install. It has an incompatible calling convention.
2282 elif test $ac_prog = install &&
2283 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2284 # program-specific install script used by HP pwplus--don't use.
2287 rm -rf conftest.one conftest.two conftest.dir
2288 echo one > conftest.one
2289 echo two > conftest.two
2291 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2292 test -s conftest.one && test -s conftest.two &&
2293 test -s conftest.dir/conftest.one &&
2294 test -s conftest.dir/conftest.two
2296 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2309 rm -rf conftest.one conftest.two conftest.dir
2312 if test "${ac_cv_path_install+set}" = set; then
2313 INSTALL=$ac_cv_path_install
2315 # As a last resort, use the slow shell script. Don't cache a
2316 # value for INSTALL within a source directory, because that will
2317 # break other packages using the cache if that directory is
2318 # removed, or if the value is a relative name.
2319 INSTALL=$ac_install_sh
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2323 $as_echo "$INSTALL" >&6; }
2325 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2326 # It thinks the first close brace ends the variable substitution.
2327 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2329 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2331 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2334 $as_echo_n "checking whether build environment is sane... " >&6; }
2337 echo timestamp > conftest.file
2338 # Reject unsafe characters in $srcdir or the absolute working directory
2339 # name. Accept space and tab only in the latter.
2343 *[\\\"\#\$\&\'\`$am_lf]*)
2344 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2347 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2348 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2351 # Do `set' in a subshell so we don't clobber the current shell's
2352 # arguments. Must try -L first in case configure is actually a
2353 # symlink; some systems play weird games with the mod time of symlinks
2354 # (eg FreeBSD returns the mod time of the symlink's containing
2357 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2358 if test "$*" = "X"; then
2360 set X `ls -t "$srcdir/configure" conftest.file`
2363 if test "$*" != "X $srcdir/configure conftest.file" \
2364 && test "$*" != "X conftest.file $srcdir/configure"; then
2366 # If neither matched, then we have a broken ls. This can happen
2367 # if, for instance, CONFIG_SHELL is bash and it inherits a
2368 # broken ls alias from the environment. This has actually
2369 # happened. Such a system could not be considered "sane".
2370 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2371 alias in your environment" "$LINENO" 5
2374 test "$2" = conftest.file
2380 as_fn_error $? "newly created file is older than distributed files!
2381 Check your system clock" "$LINENO" 5
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2384 $as_echo "yes" >&6; }
2385 test "$program_prefix" != NONE &&
2386 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2387 # Use a double $ so make ignores it.
2388 test "$program_suffix" != NONE &&
2389 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2390 # Double any \ or $.
2391 # By default was `s,x,x', remove it if useless.
2392 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2393 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2395 # expand $ac_aux_dir to an absolute path
2396 am_aux_dir=`cd $ac_aux_dir && pwd`
2398 if test x"${MISSING+set}" != xset; then
2401 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2403 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2406 # Use eval to expand $SHELL
2407 if eval "$MISSING --run true"; then
2408 am_missing_run="$MISSING --run "
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2412 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2415 if test x"${install_sh}" != xset; then
2418 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2420 install_sh="\${SHELL} $am_aux_dir/install-sh"
2424 # Installed binaries are usually stripped using `strip' when the user
2425 # run `make install-strip'. However `strip' might not be the right
2426 # tool to use in cross-compilation environments, therefore Automake
2427 # will honor the `STRIP' environment variable to overrule this program.
2428 if test "$cross_compiling" != no; then
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2431 set dummy ${ac_tool_prefix}strip; ac_word=$2
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2433 $as_echo_n "checking for $ac_word... " >&6; }
2434 if ${ac_cv_prog_STRIP+:} false; then :
2435 $as_echo_n "(cached) " >&6
2437 if test -n "$STRIP"; then
2438 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2447 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 STRIP=$ac_cv_prog_STRIP
2458 if test -n "$STRIP"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2460 $as_echo "$STRIP" >&6; }
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463 $as_echo "no" >&6; }
2468 if test -z "$ac_cv_prog_STRIP"; then
2470 # Extract the first word of "strip", so it can be a program name with args.
2471 set dummy strip; ac_word=$2
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473 $as_echo_n "checking for $ac_word... " >&6; }
2474 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2475 $as_echo_n "(cached) " >&6
2477 if test -n "$ac_ct_STRIP"; then
2478 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487 ac_cv_prog_ac_ct_STRIP="strip"
2488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2498 if test -n "$ac_ct_STRIP"; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2500 $as_echo "$ac_ct_STRIP" >&6; }
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503 $as_echo "no" >&6; }
2506 if test "x$ac_ct_STRIP" = x; then
2509 case $cross_compiling:$ac_tool_warned in
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2513 ac_tool_warned=yes ;;
2518 STRIP="$ac_cv_prog_STRIP"
2522 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2525 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2526 if test -z "$MKDIR_P"; then
2527 if ${ac_cv_path_mkdir+:} false; then :
2528 $as_echo_n "(cached) " >&6
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2534 test -z "$as_dir" && as_dir=.
2535 for ac_prog in mkdir gmkdir; do
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2538 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2539 'mkdir (GNU coreutils) '* | \
2540 'mkdir (coreutils) '* | \
2541 'mkdir (fileutils) '4.1*)
2542 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2552 test -d ./--version && rmdir ./--version
2553 if test "${ac_cv_path_mkdir+set}" = set; then
2554 MKDIR_P="$ac_cv_path_mkdir -p"
2556 # As a last resort, use the slow shell script. Don't cache a
2557 # value for MKDIR_P within a source directory, because that will
2558 # break other packages using the cache if that directory is
2559 # removed, or if the value is a relative name.
2560 MKDIR_P="$ac_install_sh -d"
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2564 $as_echo "$MKDIR_P" >&6; }
2568 [\\/$]* | ?:[\\/]*) ;;
2569 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2572 for ac_prog in gawk mawk nawk awk
2574 # Extract the first word of "$ac_prog", so it can be a program name with args.
2575 set dummy $ac_prog; ac_word=$2
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2577 $as_echo_n "checking for $ac_word... " >&6; }
2578 if ${ac_cv_prog_AWK+:} false; then :
2579 $as_echo_n "(cached) " >&6
2581 if test -n "$AWK"; then
2582 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 ac_cv_prog_AWK="$ac_prog"
2592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 if test -n "$AWK"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2604 $as_echo "$AWK" >&6; }
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607 $as_echo "no" >&6; }
2611 test -n "$AWK" && break
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2615 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2617 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2618 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2619 $as_echo_n "(cached) " >&6
2621 cat >conftest.make <<\_ACEOF
2624 @echo '@@@%%%=$(MAKE)=@@@%%%'
2626 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2627 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2629 eval ac_cv_prog_make_${ac_make}_set=yes;;
2631 eval ac_cv_prog_make_${ac_make}_set=no;;
2635 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2637 $as_echo "yes" >&6; }
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2642 SET_MAKE="MAKE=${MAKE-make}"
2645 rm -rf .tst 2>/dev/null
2646 mkdir .tst 2>/dev/null
2647 if test -d .tst; then
2652 rmdir .tst 2>/dev/null
2654 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2655 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2656 # is not polluted with repeated "-I."
2657 am__isrc=' -I$(srcdir)'
2658 # test to see if srcdir already configured
2659 if test -f $srcdir/config.status; then
2660 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2664 # test whether we have cygpath
2665 if test -z "$CYGPATH_W"; then
2666 if (cygpath --version) >/dev/null 2>/dev/null; then
2667 CYGPATH_W='cygpath -w'
2674 # Define the identity of the package.
2675 PACKAGE='libXScrnSaver'
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE "$PACKAGE"
2684 cat >>confdefs.h <<_ACEOF
2685 #define VERSION "$VERSION"
2688 # Some tools Automake needs.
2690 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2693 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2696 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2699 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2702 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2704 # We need awk for the "check" target. The system "awk" is bad on
2706 # Always define AMTAR for backward compatibility.
2708 AMTAR=${AMTAR-"${am_missing_run}tar"}
2710 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2718 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2719 # Check whether --enable-maintainer-mode was given.
2720 if test "${enable_maintainer_mode+set}" = set; then :
2721 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2723 USE_MAINTAINER_MODE=no
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2727 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2728 if test $USE_MAINTAINER_MODE = yes; then
2729 MAINTAINER_MODE_TRUE=
2730 MAINTAINER_MODE_FALSE='#'
2732 MAINTAINER_MODE_TRUE='#'
2733 MAINTAINER_MODE_FALSE=
2736 MAINT=$MAINTAINER_MODE_TRUE
2740 # Initialize libtool
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2744 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2750 macro_revision='1.3293'
2764 ltmain="$ac_aux_dir/ltmain.sh"
2766 # Make sure we can run config.sub.
2767 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2768 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2771 $as_echo_n "checking build system type... " >&6; }
2772 if ${ac_cv_build+:} false; then :
2773 $as_echo_n "(cached) " >&6
2775 ac_build_alias=$build_alias
2776 test "x$ac_build_alias" = x &&
2777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2778 test "x$ac_build_alias" = x &&
2779 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2780 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2781 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2785 $as_echo "$ac_cv_build" >&6; }
2786 case $ac_cv_build in
2788 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2791 ac_save_IFS=$IFS; IFS='-'
2797 # Remember, the first character of IFS is used to create $*,
2798 # except with old shells:
2801 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2805 $as_echo_n "checking host system type... " >&6; }
2806 if ${ac_cv_host+:} false; then :
2807 $as_echo_n "(cached) " >&6
2809 if test "x$host_alias" = x; then
2810 ac_cv_host=$ac_cv_build
2812 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2813 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2818 $as_echo "$ac_cv_host" >&6; }
2821 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2824 ac_save_IFS=$IFS; IFS='-'
2830 # Remember, the first character of IFS is used to create $*,
2831 # except with old shells:
2834 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2837 # Backslashify metacharacters that are still active within
2838 # double-quoted strings.
2839 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2841 # Same as above, but do not quote variable references.
2842 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2844 # Sed substitution to delay expansion of an escaped shell variable in a
2845 # double_quote_subst'ed string.
2846 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2848 # Sed substitution to delay expansion of an escaped single quote.
2849 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2851 # Sed substitution to avoid accidental globbing in evaled expressions
2852 no_glob_subst='s/\*/\\\*/g'
2854 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2855 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2856 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2859 $as_echo_n "checking how to print strings... " >&6; }
2860 # Test print first, because it will be a builtin if present.
2861 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2862 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2864 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2867 # Use this function as a fallback that always works.
2868 func_fallback_echo ()
2870 eval 'cat <<_LTECHO_EOF
2874 ECHO='func_fallback_echo'
2877 # func_echo_all arg...
2878 # Invoke $ECHO with all args, space-separated.
2885 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2886 $as_echo "printf" >&6; } ;;
2887 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2888 $as_echo "print -r" >&6; } ;;
2889 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2890 $as_echo "cat" >&6; } ;;
2906 DEPDIR="${am__leading_dot}deps"
2908 ac_config_commands="$ac_config_commands depfiles"
2911 am_make=${MAKE-make}
2912 cat > confinc << 'END'
2914 @echo this is the am__doit target
2917 # If we don't find an include directive, just comment out the code.
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2919 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2923 # First try GNU make style include.
2924 echo "include confinc" > confmf
2925 # Ignore all kinds of additional output from `make'.
2926 case `$am_make -s -f confmf 2> /dev/null` in #(
2927 *the\ am__doit\ target*)
2933 # Now try BSD make style include.
2934 if test "$am__include" = "#"; then
2935 echo '.include "confinc"' > confmf
2936 case `$am_make -s -f confmf 2> /dev/null` in #(
2937 *the\ am__doit\ target*)
2938 am__include=.include
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2947 $as_echo "$_am_result" >&6; }
2948 rm -f confinc confmf
2950 # Check whether --enable-dependency-tracking was given.
2951 if test "${enable_dependency_tracking+set}" = set; then :
2952 enableval=$enable_dependency_tracking;
2955 if test "x$enable_dependency_tracking" != xno; then
2956 am_depcomp="$ac_aux_dir/depcomp"
2959 if test "x$enable_dependency_tracking" != xno; then
2969 ac_cpp='$CPP $CPPFLAGS'
2970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 if test -n "$ac_tool_prefix"; then
2974 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2975 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if ${ac_cv_prog_CC+:} false; then :
2979 $as_echo_n "(cached) " >&6
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 if test -n "$CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3012 if test -z "$ac_cv_prog_CC"; then
3014 # Extract the first word of "gcc", so it can be a program name with args.
3015 set dummy gcc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3019 $as_echo_n "(cached) " >&6
3021 if test -n "$ac_ct_CC"; then
3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 ac_cv_prog_ac_ct_CC="gcc"
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3042 if test -n "$ac_ct_CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3044 $as_echo "$ac_ct_CC" >&6; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3050 if test "x$ac_ct_CC" = x; then
3053 case $cross_compiling:$ac_tool_warned in
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3057 ac_tool_warned=yes ;;
3065 if test -z "$CC"; then
3066 if test -n "$ac_tool_prefix"; then
3067 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3068 set dummy ${ac_tool_prefix}cc; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if ${ac_cv_prog_CC+:} false; then :
3072 $as_echo_n "(cached) " >&6
3074 if test -n "$CC"; then
3075 ac_cv_prog_CC="$CC" # Let the user override the test.
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084 ac_cv_prog_CC="${ac_tool_prefix}cc"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 if test -n "$CC"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3097 $as_echo "$CC" >&6; }
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3106 if test -z "$CC"; then
3107 # Extract the first word of "cc", so it can be a program name with args.
3108 set dummy cc; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if ${ac_cv_prog_CC+:} false; then :
3112 $as_echo_n "(cached) " >&6
3114 if test -n "$CC"; then
3115 ac_cv_prog_CC="$CC" # Let the user override the test.
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3126 ac_prog_rejected=yes
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 if test $ac_prog_rejected = yes; then
3138 # We found a bogon in the path, so make sure we never use it.
3139 set dummy $ac_cv_prog_CC
3141 if test $# != 0; then
3142 # We chose a different compiler from the bogus one.
3143 # However, it has the same basename, so the bogon will be chosen
3144 # first if we set CC to just the basename; use the full file name.
3146 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3152 if test -n "$CC"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154 $as_echo "$CC" >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3162 if test -z "$CC"; then
3163 if test -n "$ac_tool_prefix"; then
3164 for ac_prog in cl.exe
3166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_prog_CC+:} false; then :
3171 $as_echo_n "(cached) " >&6
3173 if test -n "$CC"; then
3174 ac_cv_prog_CC="$CC" # Let the user override the test.
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 if test -n "$CC"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3196 $as_echo "$CC" >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3203 test -n "$CC" && break
3206 if test -z "$CC"; then
3208 for ac_prog in cl.exe
3210 # Extract the first word of "$ac_prog", so it can be a program name with args.
3211 set dummy $ac_prog; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3215 $as_echo_n "(cached) " >&6
3217 if test -n "$ac_ct_CC"; then
3218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227 ac_cv_prog_ac_ct_CC="$ac_prog"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3238 if test -n "$ac_ct_CC"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3240 $as_echo "$ac_ct_CC" >&6; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3247 test -n "$ac_ct_CC" && break
3250 if test "x$ac_ct_CC" = x; then
3253 case $cross_compiling:$ac_tool_warned in
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3257 ac_tool_warned=yes ;;
3266 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 as_fn_error $? "no acceptable C compiler found in \$PATH
3269 See \`config.log' for more details" "$LINENO" 5; }
3271 # Provide some information about the compiler.
3272 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3275 for ac_option in --version -v -V -qversion; do
3276 { { ac_try="$ac_compiler $ac_option >&5"
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3285 if test -s conftest.err; then
3287 ... rest of stderr output deleted ...
3288 10q' conftest.err >conftest.er1
3289 cat conftest.er1 >&5
3291 rm -f conftest.er1 conftest.err
3292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293 test $ac_status = 0; }
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3307 ac_clean_files_save=$ac_clean_files
3308 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3309 # Try to create an executable without -o first, disregard a.out.
3310 # It will help us diagnose broken compilers, and finding out an intuition
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3313 $as_echo_n "checking whether the C compiler works... " >&6; }
3314 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3316 # The possible output files:
3317 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3320 for ac_file in $ac_files
3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3324 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3329 if { { ac_try="$ac_link_default"
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336 (eval "$ac_link_default") 2>&5
3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }; then :
3340 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3341 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3342 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3343 # so that the user can short-circuit this test for compilers unknown to
3345 for ac_file in $ac_files ''
3347 test -f "$ac_file" || continue
3349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3352 # We found the default executable, but exeext='' is most
3356 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3358 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3360 # We set ac_cv_exeext here because the later test for it is not
3361 # safe: cross compilers may not add the suffix if given an `-o'
3362 # argument, so we may need to know it at that point already.
3363 # Even if this section looks crufty: it has the advantage of
3370 test "$ac_cv_exeext" = no && ac_cv_exeext=
3375 if test -z "$ac_file"; then :
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3378 $as_echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 as_fn_error 77 "C compiler cannot create executables
3384 See \`config.log' for more details" "$LINENO" 5; }
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3387 $as_echo "yes" >&6; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3390 $as_echo_n "checking for C compiler default output file name... " >&6; }
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3392 $as_echo "$ac_file" >&6; }
3393 ac_exeext=$ac_cv_exeext
3395 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3396 ac_clean_files=$ac_clean_files_save
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3398 $as_echo_n "checking for suffix of executables... " >&6; }
3399 if { { ac_try="$ac_link"
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_link") 2>&5
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }; then :
3410 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3411 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3412 # work properly (i.e., refer to `conftest.exe'), while it won't with
3414 for ac_file in conftest.exe conftest conftest.*; do
3415 test -f "$ac_file" || continue
3417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3418 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3427 See \`config.log' for more details" "$LINENO" 5; }
3429 rm -f conftest conftest$ac_cv_exeext
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3431 $as_echo "$ac_cv_exeext" >&6; }
3433 rm -f conftest.$ac_ext
3434 EXEEXT=$ac_cv_exeext
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3442 FILE *f = fopen ("conftest.out", "w");
3443 return ferror (f) || fclose (f) != 0;
3449 ac_clean_files="$ac_clean_files conftest.out"
3450 # Check that the compiler produces executables we can run. If not, either
3451 # the compiler is broken, or we cross compile.
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3453 $as_echo_n "checking whether we are cross compiling... " >&6; }
3454 if test "$cross_compiling" != yes; then
3455 { { ac_try="$ac_link"
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462 (eval "$ac_link") 2>&5
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }
3466 if { ac_try='./conftest$ac_cv_exeext'
3467 { { case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473 (eval "$ac_try") 2>&5
3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }; }; then
3479 if test "$cross_compiling" = maybe; then
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error $? "cannot run C compiled programs.
3485 If you meant to cross compile, use \`--host'.
3486 See \`config.log' for more details" "$LINENO" 5; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3491 $as_echo "$cross_compiling" >&6; }
3493 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3494 ac_clean_files=$ac_clean_files_save
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3496 $as_echo_n "checking for suffix of object files... " >&6; }
3497 if ${ac_cv_objext+:} false; then :
3498 $as_echo_n "(cached) " >&6
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3511 rm -f conftest.o conftest.obj
3512 if { { ac_try="$ac_compile"
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519 (eval "$ac_compile") 2>&5
3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522 test $ac_status = 0; }; then :
3523 for ac_file in conftest.o conftest.obj conftest.*; do
3524 test -f "$ac_file" || continue;
3526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3527 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3532 $as_echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 as_fn_error $? "cannot compute suffix of object files: cannot compile
3538 See \`config.log' for more details" "$LINENO" 5; }
3540 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3543 $as_echo "$ac_cv_objext" >&6; }
3544 OBJEXT=$ac_cv_objext
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3547 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3548 if ${ac_cv_c_compiler_gnu+:} false; then :
3549 $as_echo_n "(cached) " >&6
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3565 if ac_fn_c_try_compile "$LINENO"; then :
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3575 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3576 if test $ac_compiler_gnu = yes; then
3581 ac_test_CFLAGS=${CFLAGS+set}
3582 ac_save_CFLAGS=$CFLAGS
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3584 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3585 if ${ac_cv_prog_cc_g+:} false; then :
3586 $as_echo_n "(cached) " >&6
3588 ac_save_c_werror_flag=$ac_c_werror_flag
3589 ac_c_werror_flag=yes
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3603 if ac_fn_c_try_compile "$LINENO"; then :
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3618 if ac_fn_c_try_compile "$LINENO"; then :
3621 ac_c_werror_flag=$ac_save_c_werror_flag
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3634 if ac_fn_c_try_compile "$LINENO"; then :
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 ac_c_werror_flag=$ac_save_c_werror_flag
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3645 $as_echo "$ac_cv_prog_cc_g" >&6; }
3646 if test "$ac_test_CFLAGS" = set; then
3647 CFLAGS=$ac_save_CFLAGS
3648 elif test $ac_cv_prog_cc_g = yes; then
3649 if test "$GCC" = yes; then
3655 if test "$GCC" = yes; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3662 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3663 if ${ac_cv_prog_cc_c89+:} false; then :
3664 $as_echo_n "(cached) " >&6
3666 ac_cv_prog_cc_c89=no
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3672 #include <sys/types.h>
3673 #include <sys/stat.h>
3674 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3675 struct buf { int x; };
3676 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3677 static char *e (p, i)
3683 static char *f (char * (*g) (char **, int), char **p, ...)
3688 s = g (p, va_arg (v,int));
3693 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3694 function prototypes and stuff, but not '\xHH' hex character constants.
3695 These don't provoke an error unfortunately, instead are silently treated
3696 as 'x'. The following induces an error, until -std is added to get
3697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3698 array size at least. It's necessary to write '\x00'==0 to get something
3699 that's true only with -std. */
3700 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3702 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3703 inside strings and character constants. */
3705 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3707 int test (int i, double x);
3708 struct s1 {int (*f) (int a);};
3709 struct s2 {int (*f) (double a);};
3710 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3716 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3721 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3722 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3724 CC="$ac_save_CC $ac_arg"
3725 if ac_fn_c_try_compile "$LINENO"; then :
3726 ac_cv_prog_cc_c89=$ac_arg
3728 rm -f core conftest.err conftest.$ac_objext
3729 test "x$ac_cv_prog_cc_c89" != "xno" && break
3731 rm -f conftest.$ac_ext
3736 case "x$ac_cv_prog_cc_c89" in
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3739 $as_echo "none needed" >&6; } ;;
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3742 $as_echo "unsupported" >&6; } ;;
3744 CC="$CC $ac_cv_prog_cc_c89"
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3746 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3748 if test "x$ac_cv_prog_cc_c89" != xno; then :
3753 ac_cpp='$CPP $CPPFLAGS'
3754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758 depcc="$CC" am_compiler_list=
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3761 $as_echo_n "checking dependency style of $depcc... " >&6; }
3762 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3763 $as_echo_n "(cached) " >&6
3765 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3766 # We make a subdir and do the tests there. Otherwise we can end up
3767 # making bogus files that we don't know about and never remove. For
3768 # instance it was reported that on HP-UX the gcc test will end up
3769 # making a dummy file named `D' -- because `-MD' means `put the output
3772 # Copy depcomp to subdir because otherwise we won't find it if we're
3773 # using a relative directory.
3774 cp "$am_depcomp" conftest.dir
3776 # We will build objects and dependencies in a subdirectory because
3777 # it helps to detect inapplicable dependency modes. For instance
3778 # both Tru64's cc and ICC support -MD to output dependencies as a
3779 # side effect of compilation, but ICC will put the dependencies in
3780 # the current directory while Tru64 will put them in the object
3784 am_cv_CC_dependencies_compiler_type=none
3785 if test "$am_compiler_list" = ""; then
3786 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3789 case " $depcc " in #(
3790 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3793 for depmode in $am_compiler_list; do
3794 # Setup a source with many dependencies, because some compilers
3795 # like to wrap large dependency lists on column 80 (with \), and
3796 # we should not choose a depcomp mode which is confused by this.
3798 # We need to recreate these files for each test, as the compiler may
3799 # overwrite some of them when testing with obscure command lines.
3800 # This happens at least with the AIX C compiler.
3802 for i in 1 2 3 4 5 6; do
3803 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3804 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3805 # Solaris 8's {/usr,}/bin/sh.
3806 touch sub/conftst$i.h
3808 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3810 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3811 # mode. It turns out that the SunPro C++ compiler does not properly
3812 # handle `-M -o', and we need to detect this. Also, some Intel
3813 # versions had trouble with output in subdirs
3814 am__obj=sub/conftest.${OBJEXT-o}
3815 am__minus_obj="-o $am__obj"
3818 # This depmode causes a compiler race in universal mode.
3819 test "$am__universal" = false || continue
3822 # after this tag, mechanisms are not by side-effect, so they'll
3823 # only be used when explicitly requested
3824 if test "x$enable_dependency_tracking" = xyes; then
3830 msvisualcpp | msvcmsys)
3831 # This compiler won't grok `-c -o', but also, the minuso test has
3832 # not run yet. These depmodes are late enough in the game, and
3833 # so weak that their functioning should not be impacted.
3834 am__obj=conftest.${OBJEXT-o}
3839 if depmode=$depmode \
3840 source=sub/conftest.c object=$am__obj \
3841 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3842 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3843 >/dev/null 2>conftest.err &&
3844 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3845 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3846 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3847 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3848 # icc doesn't choke on unknown options, it will just issue warnings
3849 # or remarks (even with -Werror). So we grep stderr for any message
3850 # that says an option was ignored or not supported.
3851 # When given -MP, icc 7.0 and 7.1 complain thusly:
3852 # icc: Command line warning: ignoring option '-M'; no argument required
3853 # The diagnosis changed in icc 8.0:
3854 # icc: Command line remark: option '-MP' not supported
3855 if (grep 'ignoring option' conftest.err ||
3856 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3857 am_cv_CC_dependencies_compiler_type=$depmode
3866 am_cv_CC_dependencies_compiler_type=none
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3871 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3872 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3875 test "x$enable_dependency_tracking" != xno \
3876 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3878 am__fastdepCC_FALSE='#'
3880 am__fastdepCC_TRUE='#'
3881 am__fastdepCC_FALSE=
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3886 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3887 if ${ac_cv_path_SED+:} false; then :
3888 $as_echo_n "(cached) " >&6
3890 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3891 for ac_i in 1 2 3 4 5 6 7; do
3892 ac_script="$ac_script$as_nl$ac_script"
3894 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3895 { ac_script=; unset ac_script;}
3896 if test -z "$SED"; then
3897 ac_path_SED_found=false
3898 # Loop through the user's path and test for each of PROGNAME-LIST
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 test -z "$as_dir" && as_dir=.
3904 for ac_prog in sed gsed; do
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3907 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3908 # Check for GNU ac_path_SED and select it if it is found.
3909 # Check for GNU $ac_path_SED
3910 case `"$ac_path_SED" --version 2>&1` in
3912 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3915 $as_echo_n 0123456789 >"conftest.in"
3918 cat "conftest.in" "conftest.in" >"conftest.tmp"
3919 mv "conftest.tmp" "conftest.in"
3920 cp "conftest.in" "conftest.nl"
3921 $as_echo '' >> "conftest.nl"
3922 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3924 as_fn_arith $ac_count + 1 && ac_count=$as_val
3925 if test $ac_count -gt ${ac_path_SED_max-0}; then
3926 # Best one so far, save it but keep looking for a better one
3927 ac_cv_path_SED="$ac_path_SED"
3928 ac_path_SED_max=$ac_count
3930 # 10*(2^10) chars as input seems more than enough
3931 test $ac_count -gt 10 && break
3933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3936 $ac_path_SED_found && break 3
3941 if test -z "$ac_cv_path_SED"; then
3942 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3950 $as_echo "$ac_cv_path_SED" >&6; }
3951 SED="$ac_cv_path_SED"
3954 test -z "$SED" && SED=sed
3955 Xsed="$SED -e 1s/^X//"
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3968 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3969 if ${ac_cv_path_GREP+:} false; then :
3970 $as_echo_n "(cached) " >&6
3972 if test -z "$GREP"; then
3973 ac_path_GREP_found=false
3974 # Loop through the user's path and test for each of PROGNAME-LIST
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3979 test -z "$as_dir" && as_dir=.
3980 for ac_prog in grep ggrep; do
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3983 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3984 # Check for GNU ac_path_GREP and select it if it is found.
3985 # Check for GNU $ac_path_GREP
3986 case `"$ac_path_GREP" --version 2>&1` in
3988 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3991 $as_echo_n 0123456789 >"conftest.in"
3994 cat "conftest.in" "conftest.in" >"conftest.tmp"
3995 mv "conftest.tmp" "conftest.in"
3996 cp "conftest.in" "conftest.nl"
3997 $as_echo 'GREP' >> "conftest.nl"
3998 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000 as_fn_arith $ac_count + 1 && ac_count=$as_val
4001 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4002 # Best one so far, save it but keep looking for a better one
4003 ac_cv_path_GREP="$ac_path_GREP"
4004 ac_path_GREP_max=$ac_count
4006 # 10*(2^10) chars as input seems more than enough
4007 test $ac_count -gt 10 && break
4009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4012 $ac_path_GREP_found && break 3
4017 if test -z "$ac_cv_path_GREP"; then
4018 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4021 ac_cv_path_GREP=$GREP
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4026 $as_echo "$ac_cv_path_GREP" >&6; }
4027 GREP="$ac_cv_path_GREP"
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4031 $as_echo_n "checking for egrep... " >&6; }
4032 if ${ac_cv_path_EGREP+:} false; then :
4033 $as_echo_n "(cached) " >&6
4035 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4036 then ac_cv_path_EGREP="$GREP -E"
4038 if test -z "$EGREP"; then
4039 ac_path_EGREP_found=false
4040 # Loop through the user's path and test for each of PROGNAME-LIST
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4045 test -z "$as_dir" && as_dir=.
4046 for ac_prog in egrep; do
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4049 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4050 # Check for GNU ac_path_EGREP and select it if it is found.
4051 # Check for GNU $ac_path_EGREP
4052 case `"$ac_path_EGREP" --version 2>&1` in
4054 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4057 $as_echo_n 0123456789 >"conftest.in"
4060 cat "conftest.in" "conftest.in" >"conftest.tmp"
4061 mv "conftest.tmp" "conftest.in"
4062 cp "conftest.in" "conftest.nl"
4063 $as_echo 'EGREP' >> "conftest.nl"
4064 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4066 as_fn_arith $ac_count + 1 && ac_count=$as_val
4067 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4068 # Best one so far, save it but keep looking for a better one
4069 ac_cv_path_EGREP="$ac_path_EGREP"
4070 ac_path_EGREP_max=$ac_count
4072 # 10*(2^10) chars as input seems more than enough
4073 test $ac_count -gt 10 && break
4075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4078 $ac_path_EGREP_found && break 3
4083 if test -z "$ac_cv_path_EGREP"; then
4084 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4087 ac_cv_path_EGREP=$EGREP
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4093 $as_echo "$ac_cv_path_EGREP" >&6; }
4094 EGREP="$ac_cv_path_EGREP"
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4098 $as_echo_n "checking for fgrep... " >&6; }
4099 if ${ac_cv_path_FGREP+:} false; then :
4100 $as_echo_n "(cached) " >&6
4102 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4103 then ac_cv_path_FGREP="$GREP -F"
4105 if test -z "$FGREP"; then
4106 ac_path_FGREP_found=false
4107 # Loop through the user's path and test for each of PROGNAME-LIST
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4112 test -z "$as_dir" && as_dir=.
4113 for ac_prog in fgrep; do
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4116 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4117 # Check for GNU ac_path_FGREP and select it if it is found.
4118 # Check for GNU $ac_path_FGREP
4119 case `"$ac_path_FGREP" --version 2>&1` in
4121 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4124 $as_echo_n 0123456789 >"conftest.in"
4127 cat "conftest.in" "conftest.in" >"conftest.tmp"
4128 mv "conftest.tmp" "conftest.in"
4129 cp "conftest.in" "conftest.nl"
4130 $as_echo 'FGREP' >> "conftest.nl"
4131 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4133 as_fn_arith $ac_count + 1 && ac_count=$as_val
4134 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4135 # Best one so far, save it but keep looking for a better one
4136 ac_cv_path_FGREP="$ac_path_FGREP"
4137 ac_path_FGREP_max=$ac_count
4139 # 10*(2^10) chars as input seems more than enough
4140 test $ac_count -gt 10 && break
4142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4145 $ac_path_FGREP_found && break 3
4150 if test -z "$ac_cv_path_FGREP"; then
4151 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4154 ac_cv_path_FGREP=$FGREP
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4160 $as_echo "$ac_cv_path_FGREP" >&6; }
4161 FGREP="$ac_cv_path_FGREP"
4164 test -z "$GREP" && GREP=grep
4184 # Check whether --with-gnu-ld was given.
4185 if test "${with_gnu_ld+set}" = set; then :
4186 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4192 if test "$GCC" = yes; then
4193 # Check if gcc -print-prog-name=ld gives a path.
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4195 $as_echo_n "checking for ld used by $CC... " >&6; }
4198 # gcc leaves a trailing carriage return which upsets mingw
4199 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4201 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4204 # Accept absolute paths.
4206 re_direlt='/[^/][^/]*/\.\./'
4207 # Canonicalize the pathname of ld
4208 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4209 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4210 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4212 test -z "$LD" && LD="$ac_prog"
4215 # If it fails, then pretend we aren't using GCC.
4219 # If it is relative, then search for the first ld in PATH.
4223 elif test "$with_gnu_ld" = yes; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4225 $as_echo_n "checking for GNU ld... " >&6; }
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4228 $as_echo_n "checking for non-GNU ld... " >&6; }
4230 if ${lt_cv_path_LD+:} false; then :
4231 $as_echo_n "(cached) " >&6
4233 if test -z "$LD"; then
4234 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4235 for ac_dir in $PATH; do
4237 test -z "$ac_dir" && ac_dir=.
4238 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4239 lt_cv_path_LD="$ac_dir/$ac_prog"
4240 # Check to see if the program is GNU ld. I'd rather use --version,
4241 # but apparently some variants of GNU ld only accept -v.
4242 # Break only if it was the GNU/non-GNU ld that we prefer.
4243 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4244 *GNU* | *'with BFD'*)
4245 test "$with_gnu_ld" != no && break
4248 test "$with_gnu_ld" != yes && break
4255 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4260 if test -n "$LD"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4262 $as_echo "$LD" >&6; }
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4267 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4269 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4270 if ${lt_cv_prog_gnu_ld+:} false; then :
4271 $as_echo_n "(cached) " >&6
4273 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4274 case `$LD -v 2>&1 </dev/null` in
4275 *GNU* | *'with BFD'*)
4276 lt_cv_prog_gnu_ld=yes
4279 lt_cv_prog_gnu_ld=no
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4284 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4285 with_gnu_ld=$lt_cv_prog_gnu_ld
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4296 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4297 if ${lt_cv_path_NM+:} false; then :
4298 $as_echo_n "(cached) " >&6
4300 if test -n "$NM"; then
4301 # Let the user override the test.
4304 lt_nm_to_check="${ac_tool_prefix}nm"
4305 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4306 lt_nm_to_check="$lt_nm_to_check nm"
4308 for lt_tmp_nm in $lt_nm_to_check; do
4309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4310 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4312 test -z "$ac_dir" && ac_dir=.
4313 tmp_nm="$ac_dir/$lt_tmp_nm"
4314 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4315 # Check to see if the nm accepts a BSD-compat flag.
4316 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4317 # nm: unknown option "B" ignored
4318 # Tru64's nm complains that /dev/null is an invalid object file
4319 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4320 */dev/null* | *'Invalid file or object type'*)
4321 lt_cv_path_NM="$tmp_nm -B"
4325 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4327 lt_cv_path_NM="$tmp_nm -p"
4331 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4332 continue # so that we can try to find one that supports BSD flags
4341 : ${lt_cv_path_NM=no}
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4345 $as_echo "$lt_cv_path_NM" >&6; }
4346 if test "$lt_cv_path_NM" != "no"; then
4349 # Didn't find any BSD compatible name lister, look for dumpbin.
4350 if test -n "$DUMPBIN"; then :
4351 # Let the user override the test.
4353 if test -n "$ac_tool_prefix"; then
4354 for ac_prog in dumpbin "link -dump"
4356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359 $as_echo_n "checking for $ac_word... " >&6; }
4360 if ${ac_cv_prog_DUMPBIN+:} false; then :
4361 $as_echo_n "(cached) " >&6
4363 if test -n "$DUMPBIN"; then
4364 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 DUMPBIN=$ac_cv_prog_DUMPBIN
4384 if test -n "$DUMPBIN"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4386 $as_echo "$DUMPBIN" >&6; }
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4393 test -n "$DUMPBIN" && break
4396 if test -z "$DUMPBIN"; then
4397 ac_ct_DUMPBIN=$DUMPBIN
4398 for ac_prog in dumpbin "link -dump"
4400 # Extract the first word of "$ac_prog", so it can be a program name with args.
4401 set dummy $ac_prog; ac_word=$2
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4405 $as_echo_n "(cached) " >&6
4407 if test -n "$ac_ct_DUMPBIN"; then
4408 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4428 if test -n "$ac_ct_DUMPBIN"; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4430 $as_echo "$ac_ct_DUMPBIN" >&6; }
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 $as_echo "no" >&6; }
4437 test -n "$ac_ct_DUMPBIN" && break
4440 if test "x$ac_ct_DUMPBIN" = x; then
4443 case $cross_compiling:$ac_tool_warned in
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4447 ac_tool_warned=yes ;;
4449 DUMPBIN=$ac_ct_DUMPBIN
4453 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4455 DUMPBIN="$DUMPBIN -symbols"
4463 if test "$DUMPBIN" != ":"; then
4467 test -z "$NM" && NM=nm
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4475 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4476 if ${lt_cv_nm_interface+:} false; then :
4477 $as_echo_n "(cached) " >&6
4479 lt_cv_nm_interface="BSD nm"
4480 echo "int some_variable = 0;" > conftest.$ac_ext
4481 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4482 (eval "$ac_compile" 2>conftest.err)
4483 cat conftest.err >&5
4484 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4485 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4486 cat conftest.err >&5
4487 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4488 cat conftest.out >&5
4489 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4490 lt_cv_nm_interface="MS dumpbin"
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4495 $as_echo "$lt_cv_nm_interface" >&6; }
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4498 $as_echo_n "checking whether ln -s works... " >&6; }
4500 if test "$LN_S" = "ln -s"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4502 $as_echo "yes" >&6; }
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4505 $as_echo "no, using $LN_S" >&6; }
4508 # find the maximum length of command line arguments
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4510 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4511 if ${lt_cv_sys_max_cmd_len+:} false; then :
4512 $as_echo_n "(cached) " >&6
4519 # On DJGPP, this test can blow up pretty badly due to problems in libc
4520 # (any single argument exceeding 2000 bytes causes a buffer overrun
4521 # during glob expansion). Even if it were fixed, the result of this
4522 # check would be larger than it should be.
4523 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4527 # Under GNU Hurd, this test is not required because there is
4528 # no limit to the length of command line arguments.
4529 # Libtool will interpret -1 as no limit whatsoever
4530 lt_cv_sys_max_cmd_len=-1;
4533 cygwin* | mingw* | cegcc*)
4534 # On Win9x/ME, this test blows up -- it succeeds, but takes
4535 # about 5 minutes as the teststring grows exponentially.
4536 # Worse, since 9x/ME are not pre-emptively multitasking,
4537 # you end up with a "frozen" computer, even though with patience
4538 # the test eventually succeeds (with a max line length of 256k).
4539 # Instead, let's just punt: use the minimum linelength reported by
4540 # all of the supported platforms: 8192 (on NT/2K/XP).
4541 lt_cv_sys_max_cmd_len=8192;
4545 # On MiNT this can take a long time and run out of memory.
4546 lt_cv_sys_max_cmd_len=8192;
4550 # On AmigaOS with pdksh, this test takes hours, literally.
4551 # So we just punt and use a minimum line length of 8192.
4552 lt_cv_sys_max_cmd_len=8192;
4555 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4556 # This has been around since 386BSD, at least. Likely further.
4557 if test -x /sbin/sysctl; then
4558 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4559 elif test -x /usr/sbin/sysctl; then
4560 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4562 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4564 # And add a safety zone
4565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4566 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4570 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4571 lt_cv_sys_max_cmd_len=196608
4575 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4576 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4577 # nice to cause kernel panics so lets avoid the loop below.
4578 # First set a reasonable default.
4579 lt_cv_sys_max_cmd_len=16384
4581 if test -x /sbin/sysconfig; then
4582 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4583 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4588 lt_cv_sys_max_cmd_len=102400
4590 sysv5* | sco5v6* | sysv4.2uw2*)
4591 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4592 if test -n "$kargmax"; then
4593 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4595 lt_cv_sys_max_cmd_len=32768
4599 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4600 if test -n "$lt_cv_sys_max_cmd_len"; then
4601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4604 # Make teststring a little bigger before we do anything with it.
4605 # a 1K string should be a reasonable start.
4606 for i in 1 2 3 4 5 6 7 8 ; do
4607 teststring=$teststring$teststring
4609 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4610 # If test is not a shell built-in, we'll probably end up computing a
4611 # maximum length that is only half of the actual maximum length, but
4613 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4614 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4615 test $i != 17 # 1/2 MB should be enough
4618 teststring=$teststring$teststring
4620 # Only check the string length outside the loop.
4621 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4623 # Add a significant safety factor because C++ compilers can tack on
4624 # massive amounts of additional arguments before passing them to the
4625 # linker. It appears as though 1/2 is a usable value.
4626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4633 if test -n $lt_cv_sys_max_cmd_len ; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4635 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4638 $as_echo "none" >&6; }
4640 max_cmd_len=$lt_cv_sys_max_cmd_len
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4652 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4653 # Try some XSI features
4656 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4658 && eval 'test $(( 1 + 1 )) -eq 2 \
4659 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4662 $as_echo "$xsi_shell" >&6; }
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4666 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4668 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4670 && lt_shell_append=yes
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4672 $as_echo "$lt_shell_append" >&6; }
4675 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4685 # test EBCDIC or ASCII
4686 case `echo X|tr X '\101'` in
4687 A) # ASCII based system
4688 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4689 lt_SP2NL='tr \040 \012'
4690 lt_NL2SP='tr \015\012 \040\040'
4692 *) # EBCDIC based system
4693 lt_SP2NL='tr \100 \n'
4694 lt_NL2SP='tr \r\n \100\100'
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4707 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4708 if ${lt_cv_to_host_file_cmd+:} false; then :
4709 $as_echo_n "(cached) " >&6
4714 *-*-mingw* ) # actually msys
4715 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4718 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4720 * ) # otherwise, assume *nix
4721 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4727 *-*-mingw* ) # actually msys
4728 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4731 lt_cv_to_host_file_cmd=func_convert_file_noop
4733 * ) # otherwise, assume *nix
4734 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4738 * ) # unhandled hosts (and "normal" native builds)
4739 lt_cv_to_host_file_cmd=func_convert_file_noop
4745 to_host_file_cmd=$lt_cv_to_host_file_cmd
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4747 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4754 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4755 if ${lt_cv_to_tool_file_cmd+:} false; then :
4756 $as_echo_n "(cached) " >&6
4758 #assume ordinary cross tools, or native build.
4759 lt_cv_to_tool_file_cmd=func_convert_file_noop
4763 *-*-mingw* ) # actually msys
4764 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4772 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4774 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4781 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4782 if ${lt_cv_ld_reload_flag+:} false; then :
4783 $as_echo_n "(cached) " >&6
4785 lt_cv_ld_reload_flag='-r'
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4788 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4789 reload_flag=$lt_cv_ld_reload_flag
4790 case $reload_flag in
4792 *) reload_flag=" $reload_flag" ;;
4794 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4796 cygwin* | mingw* | pw32* | cegcc*)
4797 if test "$GCC" != yes; then
4802 if test "$GCC" = yes; then
4803 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4805 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4818 if test -n "$ac_tool_prefix"; then
4819 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4820 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if ${ac_cv_prog_OBJDUMP+:} false; then :
4824 $as_echo_n "(cached) " >&6
4826 if test -n "$OBJDUMP"; then
4827 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 OBJDUMP=$ac_cv_prog_OBJDUMP
4847 if test -n "$OBJDUMP"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4849 $as_echo "$OBJDUMP" >&6; }
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4857 if test -z "$ac_cv_prog_OBJDUMP"; then
4858 ac_ct_OBJDUMP=$OBJDUMP
4859 # Extract the first word of "objdump", so it can be a program name with args.
4860 set dummy objdump; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4864 $as_echo_n "(cached) " >&6
4866 if test -n "$ac_ct_OBJDUMP"; then
4867 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4887 if test -n "$ac_ct_OBJDUMP"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4889 $as_echo "$ac_ct_OBJDUMP" >&6; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4895 if test "x$ac_ct_OBJDUMP" = x; then
4898 case $cross_compiling:$ac_tool_warned in
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902 ac_tool_warned=yes ;;
4904 OBJDUMP=$ac_ct_OBJDUMP
4907 OBJDUMP="$ac_cv_prog_OBJDUMP"
4910 test -z "$OBJDUMP" && OBJDUMP=objdump
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4921 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4922 if ${lt_cv_deplibs_check_method+:} false; then :
4923 $as_echo_n "(cached) " >&6
4925 lt_cv_file_magic_cmd='$MAGIC_CMD'
4926 lt_cv_file_magic_test_file=
4927 lt_cv_deplibs_check_method='unknown'
4928 # Need to set the preceding variable on all platforms that support
4929 # interlibrary dependencies.
4930 # 'none' -- dependencies not supported.
4931 # `unknown' -- same as none, but documents that we really don't know.
4932 # 'pass_all' -- all dependencies passed with no checks.
4933 # 'test_compile' -- check by making test program.
4934 # 'file_magic [[regex]]' -- check by looking for files in library path
4935 # which responds to the $file_magic_cmd with a given extended regex.
4936 # If you have `file' or equivalent on your system and you're not sure
4937 # whether `pass_all' will *always* work, you probably want this one.
4941 lt_cv_deplibs_check_method=pass_all
4945 lt_cv_deplibs_check_method=pass_all
4949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4950 lt_cv_file_magic_cmd='/usr/bin/file -L'
4951 lt_cv_file_magic_test_file=/shlib/libc.so
4955 # func_win32_libid is a shell function defined in ltmain.sh
4956 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4957 lt_cv_file_magic_cmd='func_win32_libid'
4961 # Base MSYS/MinGW do not provide the 'file' command needed by
4962 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4963 # unless we find 'file', for example because we are cross-compiling.
4964 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4965 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4966 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4967 lt_cv_file_magic_cmd='func_win32_libid'
4969 # Keep this pattern in sync with the one in func_win32_libid.
4970 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4971 lt_cv_file_magic_cmd='$OBJDUMP -f'
4976 # use the weaker test based on 'objdump'. See mingw*.
4977 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4978 lt_cv_file_magic_cmd='$OBJDUMP -f'
4981 darwin* | rhapsody*)
4982 lt_cv_deplibs_check_method=pass_all
4985 freebsd* | dragonfly*)
4986 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4989 # Not sure whether the presence of OpenBSD here was a mistake.
4990 # Let's accept both of them until this is cleared up.
4991 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4992 lt_cv_file_magic_cmd=/usr/bin/file
4993 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4997 lt_cv_deplibs_check_method=pass_all
5002 lt_cv_deplibs_check_method=pass_all
5006 lt_cv_deplibs_check_method=pass_all
5009 hpux10.20* | hpux11*)
5010 lt_cv_file_magic_cmd=/usr/bin/file
5013 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5014 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5017 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]'
5018 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5021 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5022 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5028 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5032 irix5* | irix6* | nonstopux*)
5034 *-32|*"-32 ") libmagic=32-bit;;
5035 *-n32|*"-n32 ") libmagic=N32;;
5036 *-64|*"-64 ") libmagic=64-bit;;
5037 *) libmagic=never-match;;
5039 lt_cv_deplibs_check_method=pass_all
5042 # This must be Linux ELF.
5043 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5044 lt_cv_deplibs_check_method=pass_all
5048 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5057 lt_cv_file_magic_cmd=/usr/bin/file
5058 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5062 lt_cv_deplibs_check_method=pass_all
5066 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5073 osf3* | osf4* | osf5*)
5074 lt_cv_deplibs_check_method=pass_all
5078 lt_cv_deplibs_check_method=pass_all
5082 lt_cv_deplibs_check_method=pass_all
5085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5086 lt_cv_deplibs_check_method=pass_all
5090 case $host_vendor in
5092 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]'
5093 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5096 lt_cv_deplibs_check_method=pass_all
5099 lt_cv_file_magic_cmd='/bin/file'
5100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5103 lt_cv_file_magic_cmd='/bin/file'
5104 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5105 lt_cv_file_magic_test_file=/lib/libc.so
5108 lt_cv_deplibs_check_method=pass_all
5111 lt_cv_deplibs_check_method=pass_all
5117 lt_cv_deplibs_check_method=pass_all
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5123 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5127 if test "$build" = "$host"; then
5130 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5133 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5139 file_magic_cmd=$lt_cv_file_magic_cmd
5140 deplibs_check_method=$lt_cv_deplibs_check_method
5141 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5164 if test -n "$ac_tool_prefix"; then
5165 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5166 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if ${ac_cv_prog_DLLTOOL+:} false; then :
5170 $as_echo_n "(cached) " >&6
5172 if test -n "$DLLTOOL"; then
5173 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 DLLTOOL=$ac_cv_prog_DLLTOOL
5193 if test -n "$DLLTOOL"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5195 $as_echo "$DLLTOOL" >&6; }
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5203 if test -z "$ac_cv_prog_DLLTOOL"; then
5204 ac_ct_DLLTOOL=$DLLTOOL
5205 # Extract the first word of "dlltool", so it can be a program name with args.
5206 set dummy dlltool; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5210 $as_echo_n "(cached) " >&6
5212 if test -n "$ac_ct_DLLTOOL"; then
5213 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5233 if test -n "$ac_ct_DLLTOOL"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5235 $as_echo "$ac_ct_DLLTOOL" >&6; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5241 if test "x$ac_ct_DLLTOOL" = x; then
5244 case $cross_compiling:$ac_tool_warned in
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5248 ac_tool_warned=yes ;;
5250 DLLTOOL=$ac_ct_DLLTOOL
5253 DLLTOOL="$ac_cv_prog_DLLTOOL"
5256 test -z "$DLLTOOL" && DLLTOOL=dlltool
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5268 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5269 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5270 $as_echo_n "(cached) " >&6
5272 lt_cv_sharedlib_from_linklib_cmd='unknown'
5275 cygwin* | mingw* | pw32* | cegcc*)
5276 # two different shell functions defined in ltmain.sh
5277 # decide which to use based on capabilities of $DLLTOOL
5278 case `$DLLTOOL --help 2>&1` in
5279 *--identify-strict*)
5280 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5283 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5288 # fallback: assume linklib IS sharedlib
5289 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5295 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5296 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5297 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5306 if test -n "$ac_tool_prefix"; then
5309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if ${ac_cv_prog_AR+:} false; then :
5314 $as_echo_n "(cached) " >&6
5316 if test -n "$AR"; then
5317 ac_cv_prog_AR="$AR" # Let the user override the test.
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 if test -n "$AR"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5339 $as_echo "$AR" >&6; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5346 test -n "$AR" && break
5349 if test -z "$AR"; then
5353 # Extract the first word of "$ac_prog", so it can be a program name with args.
5354 set dummy $ac_prog; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5358 $as_echo_n "(cached) " >&6
5360 if test -n "$ac_ct_AR"; then
5361 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370 ac_cv_prog_ac_ct_AR="$ac_prog"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5381 if test -n "$ac_ct_AR"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5383 $as_echo "$ac_ct_AR" >&6; }
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5390 test -n "$ac_ct_AR" && break
5393 if test "x$ac_ct_AR" = x; then
5396 case $cross_compiling:$ac_tool_warned in
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5400 ac_tool_warned=yes ;;
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5420 $as_echo_n "checking for archiver @FILE support... " >&6; }
5421 if ${lt_cv_ar_at_file+:} false; then :
5422 $as_echo_n "(cached) " >&6
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5436 if ac_fn_c_try_compile "$LINENO"; then :
5437 echo conftest.$ac_objext > conftest.lst
5438 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5440 (eval $lt_ar_try) 2>&5
5442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5443 test $ac_status = 0; }
5444 if test "$ac_status" -eq 0; then
5445 # Ensure the archiver fails upon bogus file names.
5446 rm -f conftest.$ac_objext libconftest.a
5447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5448 (eval $lt_ar_try) 2>&5
5450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5451 test $ac_status = 0; }
5452 if test "$ac_status" -ne 0; then
5456 rm -f conftest.* libconftest.a
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5463 $as_echo "$lt_cv_ar_at_file" >&6; }
5465 if test "x$lt_cv_ar_at_file" = xno; then
5468 archiver_list_spec=$lt_cv_ar_at_file
5477 if test -n "$ac_tool_prefix"; then
5478 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5479 set dummy ${ac_tool_prefix}strip; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_prog_STRIP+:} false; then :
5483 $as_echo_n "(cached) " >&6
5485 if test -n "$STRIP"; then
5486 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 STRIP=$ac_cv_prog_STRIP
5506 if test -n "$STRIP"; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5508 $as_echo "$STRIP" >&6; }
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5516 if test -z "$ac_cv_prog_STRIP"; then
5518 # Extract the first word of "strip", so it can be a program name with args.
5519 set dummy strip; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5523 $as_echo_n "(cached) " >&6
5525 if test -n "$ac_ct_STRIP"; then
5526 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_prog_ac_ct_STRIP="strip"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5546 if test -n "$ac_ct_STRIP"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5548 $as_echo "$ac_ct_STRIP" >&6; }
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5554 if test "x$ac_ct_STRIP" = x; then
5557 case $cross_compiling:$ac_tool_warned in
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5561 ac_tool_warned=yes ;;
5566 STRIP="$ac_cv_prog_STRIP"
5569 test -z "$STRIP" && STRIP=:
5576 if test -n "$ac_tool_prefix"; then
5577 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5578 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if ${ac_cv_prog_RANLIB+:} false; then :
5582 $as_echo_n "(cached) " >&6
5584 if test -n "$RANLIB"; then
5585 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5594 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 RANLIB=$ac_cv_prog_RANLIB
5605 if test -n "$RANLIB"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5607 $as_echo "$RANLIB" >&6; }
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5615 if test -z "$ac_cv_prog_RANLIB"; then
5616 ac_ct_RANLIB=$RANLIB
5617 # Extract the first word of "ranlib", so it can be a program name with args.
5618 set dummy ranlib; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5622 $as_echo_n "(cached) " >&6
5624 if test -n "$ac_ct_RANLIB"; then
5625 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5634 ac_cv_prog_ac_ct_RANLIB="ranlib"
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5645 if test -n "$ac_ct_RANLIB"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5647 $as_echo "$ac_ct_RANLIB" >&6; }
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5653 if test "x$ac_ct_RANLIB" = x; then
5656 case $cross_compiling:$ac_tool_warned in
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5660 ac_tool_warned=yes ;;
5662 RANLIB=$ac_ct_RANLIB
5665 RANLIB="$ac_cv_prog_RANLIB"
5668 test -z "$RANLIB" && RANLIB=:
5675 # Determine commands to create old-style static archives.
5676 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5677 old_postinstall_cmds='chmod 644 $oldlib'
5678 old_postuninstall_cmds=
5680 if test -n "$RANLIB"; then
5683 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5686 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5689 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5694 lock_old_archive_extraction=yes ;;
5696 lock_old_archive_extraction=no ;;
5737 # If no C compiler was specified, use CC.
5740 # If no C compiler flags were specified, use CFLAGS.
5741 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5743 # Allow CC to be a program name with arguments.
5747 # Check for command to grab the raw symbol name followed by C symbol from nm.
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5749 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5750 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5751 $as_echo_n "(cached) " >&6
5754 # These are sane defaults that work on at least a few old systems.
5755 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5757 # Character class describing NM global symbol codes.
5758 symcode='[BCDEGRST]'
5760 # Regexp to match symbols that can be accessed directly from C.
5761 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5763 # Define system-specific variables.
5768 cygwin* | mingw* | pw32* | cegcc*)
5769 symcode='[ABCDGISTW]'
5772 if test "$host_cpu" = ia64; then
5773 symcode='[ABCDEGRST]'
5777 symcode='[BCDEGRST]'
5780 symcode='[BCDEGQRST]'
5791 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5799 # If we're using GNU nm, then use its standard symbol codes.
5800 case `$NM -V 2>&1` in
5801 *GNU* | *'with BFD'*)
5802 symcode='[ABCDGIRSTW]' ;;
5805 # Transform an extracted symbol line into a proper C declaration.
5806 # Some systems (esp. on ia64) link data and code symbols differently,
5807 # so use this general approach.
5808 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5810 # Transform an extracted symbol line into symbol name and symbol address
5811 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5812 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'"
5814 # Handle CRLF in mingw tool chain
5818 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5822 # Try without a prefix underscore, then with it.
5823 for ac_symprfx in "" "_"; do
5825 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5826 symxfrm="\\1 $ac_symprfx\\2 \\2"
5828 # Write the raw and C identifiers.
5829 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5830 # Fake it for dumpbin and say T for any non-static function
5831 # and D for any global variable.
5832 # Also find C++ and __fastcall symbols from MSVC++,
5833 # which start with @ or ?.
5834 lt_cv_sys_global_symbol_pipe="$AWK '"\
5835 " {last_section=section; section=\$ 3};"\
5836 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5837 " \$ 0!~/External *\|/{next};"\
5838 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5839 " {if(hide[section]) next};"\
5840 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5841 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5842 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5843 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5844 " ' prfx=^$ac_symprfx"
5846 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5848 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5850 # Check to see that the pipe works correctly.
5854 cat > conftest.$ac_ext <<_LT_EOF
5859 void nm_test_func(void);
5860 void nm_test_func(void){}
5864 int main(){nm_test_var='a';nm_test_func();return(0);}
5867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5868 (eval $ac_compile) 2>&5
5870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5871 test $ac_status = 0; }; then
5872 # Now try to grab the symbols.
5874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5875 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5878 test $ac_status = 0; } && test -s "$nlist"; then
5879 # Try sorting and uniquifying the output.
5880 if sort "$nlist" | uniq > "$nlist"T; then
5881 mv -f "$nlist"T "$nlist"
5886 # Make sure that we snagged all the symbols we need.
5887 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5888 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5889 cat <<_LT_EOF > conftest.$ac_ext
5890 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5891 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5892 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5893 relocations are performed -- see ld's documentation on pseudo-relocs. */
5894 # define LT_DLSYM_CONST
5895 #elif defined(__osf__)
5896 /* This system does not cope well with relocations in const data. */
5897 # define LT_DLSYM_CONST
5899 # define LT_DLSYM_CONST const
5907 # Now generate the symbol file.
5908 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5910 cat <<_LT_EOF >> conftest.$ac_ext
5912 /* The mapping between symbol names and symbols. */
5913 LT_DLSYM_CONST struct {
5917 lt__PROGRAM__LTX_preloaded_symbols[] =
5919 { "@PROGRAM@", (void *) 0 },
5921 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5922 cat <<\_LT_EOF >> conftest.$ac_ext
5926 /* This works around a problem in FreeBSD linker */
5927 #ifdef FREEBSD_WORKAROUND
5928 static const void *lt_preloaded_setup() {
5929 return lt__PROGRAM__LTX_preloaded_symbols;
5937 # Now try linking the two files.
5938 mv conftest.$ac_objext conftstm.$ac_objext
5939 lt_globsym_save_LIBS=$LIBS
5940 lt_globsym_save_CFLAGS=$CFLAGS
5941 LIBS="conftstm.$ac_objext"
5942 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5944 (eval $ac_link) 2>&5
5946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5947 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5950 LIBS=$lt_globsym_save_LIBS
5951 CFLAGS=$lt_globsym_save_CFLAGS
5953 echo "cannot find nm_test_func in $nlist" >&5
5956 echo "cannot find nm_test_var in $nlist" >&5
5959 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5962 echo "$progname: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5965 rm -rf conftest* conftst*
5967 # Do not use the global_symbol_pipe unless it works.
5968 if test "$pipe_works" = yes; then
5971 lt_cv_sys_global_symbol_pipe=
5977 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5978 lt_cv_sys_global_symbol_to_cdecl=
5980 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5982 $as_echo "failed" >&6; }
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5985 $as_echo "ok" >&6; }
5988 # Response file support.
5989 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5990 nm_file_list_spec='@'
5991 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5992 nm_file_list_spec='@'
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6022 $as_echo_n "checking for sysroot... " >&6; }
6024 # Check whether --with-sysroot was given.
6025 if test "${with_sysroot+set}" = set; then :
6026 withval=$with_sysroot;
6033 case ${with_sysroot} in #(
6035 if test "$GCC" = yes; then
6036 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6040 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6046 $as_echo "${with_sysroot}" >&6; }
6047 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6052 $as_echo "${lt_sysroot:-no}" >&6; }
6058 # Check whether --enable-libtool-lock was given.
6059 if test "${enable_libtool_lock+set}" = set; then :
6060 enableval=$enable_libtool_lock;
6063 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6065 # Some flags need to be propagated to the compiler or linker for good
6069 # Find out which ABI we are using.
6070 echo 'int i;' > conftest.$ac_ext
6071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6072 (eval $ac_compile) 2>&5
6074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6075 test $ac_status = 0; }; then
6076 case `/usr/bin/file conftest.$ac_objext` in
6088 # Find out which ABI we are using.
6089 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6091 (eval $ac_compile) 2>&5
6093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6094 test $ac_status = 0; }; then
6095 if test "$lt_cv_prog_gnu_ld" = yes; then
6096 case `/usr/bin/file conftest.$ac_objext` in
6098 LD="${LD-ld} -melf32bsmip"
6101 LD="${LD-ld} -melf32bmipn32"
6104 LD="${LD-ld} -melf64bmip"
6108 case `/usr/bin/file conftest.$ac_objext` in
6124 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6125 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6126 # Find out which ABI we are using.
6127 echo 'int i;' > conftest.$ac_ext
6128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6129 (eval $ac_compile) 2>&5
6131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6132 test $ac_status = 0; }; then
6133 case `/usr/bin/file conftest.o` in
6136 x86_64-*kfreebsd*-gnu)
6137 LD="${LD-ld} -m elf_i386_fbsd"
6140 LD="${LD-ld} -m elf_i386"
6142 ppc64-*linux*|powerpc64-*linux*)
6143 LD="${LD-ld} -m elf32ppclinux"
6146 LD="${LD-ld} -m elf_s390"
6149 LD="${LD-ld} -m elf32_sparc"
6155 x86_64-*kfreebsd*-gnu)
6156 LD="${LD-ld} -m elf_x86_64_fbsd"
6159 LD="${LD-ld} -m elf_x86_64"
6161 ppc*-*linux*|powerpc*-*linux*)
6162 LD="${LD-ld} -m elf64ppc"
6164 s390*-*linux*|s390*-*tpf*)
6165 LD="${LD-ld} -m elf64_s390"
6168 LD="${LD-ld} -m elf64_sparc"
6178 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6179 SAVE_CFLAGS="$CFLAGS"
6180 CFLAGS="$CFLAGS -belf"
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6182 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6183 if ${lt_cv_cc_needs_belf+:} false; then :
6184 $as_echo_n "(cached) " >&6
6187 ac_cpp='$CPP $CPPFLAGS'
6188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6203 if ac_fn_c_try_link "$LINENO"; then :
6204 lt_cv_cc_needs_belf=yes
6206 lt_cv_cc_needs_belf=no
6208 rm -f core conftest.err conftest.$ac_objext \
6209 conftest$ac_exeext conftest.$ac_ext
6211 ac_cpp='$CPP $CPPFLAGS'
6212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6218 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6219 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6220 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6221 CFLAGS="$SAVE_CFLAGS"
6225 # Find out which ABI we are using.
6226 echo 'int i;' > conftest.$ac_ext
6227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6228 (eval $ac_compile) 2>&5
6230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6231 test $ac_status = 0; }; then
6232 case `/usr/bin/file conftest.o` in
6234 case $lt_cv_prog_gnu_ld in
6235 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6237 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6249 need_locks="$enable_libtool_lock"
6251 if test -n "$ac_tool_prefix"; then
6252 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6253 set dummy ${ac_tool_prefix}mt; ac_word=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6257 $as_echo_n "(cached) " >&6
6259 if test -n "$MANIFEST_TOOL"; then
6260 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6280 if test -n "$MANIFEST_TOOL"; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6282 $as_echo "$MANIFEST_TOOL" >&6; }
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6290 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6291 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6292 # Extract the first word of "mt", so it can be a program name with args.
6293 set dummy mt; ac_word=$2
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6297 $as_echo_n "(cached) " >&6
6299 if test -n "$ac_ct_MANIFEST_TOOL"; then
6300 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6320 if test -n "$ac_ct_MANIFEST_TOOL"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6322 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6328 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6331 case $cross_compiling:$ac_tool_warned in
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6335 ac_tool_warned=yes ;;
6337 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6340 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6343 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6345 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6346 if ${lt_cv_path_mainfest_tool+:} false; then :
6347 $as_echo_n "(cached) " >&6
6349 lt_cv_path_mainfest_tool=no
6350 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6351 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6352 cat conftest.err >&5
6353 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6354 lt_cv_path_mainfest_tool=yes
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6359 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6360 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6370 rhapsody* | darwin*)
6371 if test -n "$ac_tool_prefix"; then
6372 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6373 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6377 $as_echo_n "(cached) " >&6
6379 if test -n "$DSYMUTIL"; then
6380 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6400 if test -n "$DSYMUTIL"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6402 $as_echo "$DSYMUTIL" >&6; }
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6410 if test -z "$ac_cv_prog_DSYMUTIL"; then
6411 ac_ct_DSYMUTIL=$DSYMUTIL
6412 # Extract the first word of "dsymutil", so it can be a program name with args.
6413 set dummy dsymutil; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6417 $as_echo_n "(cached) " >&6
6419 if test -n "$ac_ct_DSYMUTIL"; then
6420 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6440 if test -n "$ac_ct_DSYMUTIL"; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6442 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6448 if test "x$ac_ct_DSYMUTIL" = x; then
6451 case $cross_compiling:$ac_tool_warned in
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6455 ac_tool_warned=yes ;;
6457 DSYMUTIL=$ac_ct_DSYMUTIL
6460 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6463 if test -n "$ac_tool_prefix"; then
6464 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6465 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467 $as_echo_n "checking for $ac_word... " >&6; }
6468 if ${ac_cv_prog_NMEDIT+:} false; then :
6469 $as_echo_n "(cached) " >&6
6471 if test -n "$NMEDIT"; then
6472 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6481 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 NMEDIT=$ac_cv_prog_NMEDIT
6492 if test -n "$NMEDIT"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6494 $as_echo "$NMEDIT" >&6; }
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6502 if test -z "$ac_cv_prog_NMEDIT"; then
6503 ac_ct_NMEDIT=$NMEDIT
6504 # Extract the first word of "nmedit", so it can be a program name with args.
6505 set dummy nmedit; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6509 $as_echo_n "(cached) " >&6
6511 if test -n "$ac_ct_NMEDIT"; then
6512 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6532 if test -n "$ac_ct_NMEDIT"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6534 $as_echo "$ac_ct_NMEDIT" >&6; }
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6540 if test "x$ac_ct_NMEDIT" = x; then
6543 case $cross_compiling:$ac_tool_warned in
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6547 ac_tool_warned=yes ;;
6549 NMEDIT=$ac_ct_NMEDIT
6552 NMEDIT="$ac_cv_prog_NMEDIT"
6555 if test -n "$ac_tool_prefix"; then
6556 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6557 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559 $as_echo_n "checking for $ac_word... " >&6; }
6560 if ${ac_cv_prog_LIPO+:} false; then :
6561 $as_echo_n "(cached) " >&6
6563 if test -n "$LIPO"; then
6564 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 LIPO=$ac_cv_prog_LIPO
6584 if test -n "$LIPO"; then
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6586 $as_echo "$LIPO" >&6; }
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 $as_echo "no" >&6; }
6594 if test -z "$ac_cv_prog_LIPO"; then
6596 # Extract the first word of "lipo", so it can be a program name with args.
6597 set dummy lipo; ac_word=$2
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6601 $as_echo_n "(cached) " >&6
6603 if test -n "$ac_ct_LIPO"; then
6604 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_prog_ac_ct_LIPO="lipo"
6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6624 if test -n "$ac_ct_LIPO"; then
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6626 $as_echo "$ac_ct_LIPO" >&6; }
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6632 if test "x$ac_ct_LIPO" = x; then
6635 case $cross_compiling:$ac_tool_warned in
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6639 ac_tool_warned=yes ;;
6644 LIPO="$ac_cv_prog_LIPO"
6647 if test -n "$ac_tool_prefix"; then
6648 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6649 set dummy ${ac_tool_prefix}otool; ac_word=$2
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if ${ac_cv_prog_OTOOL+:} false; then :
6653 $as_echo_n "(cached) " >&6
6655 if test -n "$OTOOL"; then
6656 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 OTOOL=$ac_cv_prog_OTOOL
6676 if test -n "$OTOOL"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6678 $as_echo "$OTOOL" >&6; }
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6686 if test -z "$ac_cv_prog_OTOOL"; then
6688 # Extract the first word of "otool", so it can be a program name with args.
6689 set dummy otool; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6693 $as_echo_n "(cached) " >&6
6695 if test -n "$ac_ct_OTOOL"; then
6696 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_prog_ac_ct_OTOOL="otool"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6716 if test -n "$ac_ct_OTOOL"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6718 $as_echo "$ac_ct_OTOOL" >&6; }
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6724 if test "x$ac_ct_OTOOL" = x; then
6727 case $cross_compiling:$ac_tool_warned in
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6731 ac_tool_warned=yes ;;
6736 OTOOL="$ac_cv_prog_OTOOL"
6739 if test -n "$ac_tool_prefix"; then
6740 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6741 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_prog_OTOOL64+:} false; then :
6745 $as_echo_n "(cached) " >&6
6747 if test -n "$OTOOL64"; then
6748 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 OTOOL64=$ac_cv_prog_OTOOL64
6768 if test -n "$OTOOL64"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6770 $as_echo "$OTOOL64" >&6; }
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6778 if test -z "$ac_cv_prog_OTOOL64"; then
6779 ac_ct_OTOOL64=$OTOOL64
6780 # Extract the first word of "otool64", so it can be a program name with args.
6781 set dummy otool64; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6785 $as_echo_n "(cached) " >&6
6787 if test -n "$ac_ct_OTOOL64"; then
6788 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_prog_ac_ct_OTOOL64="otool64"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6808 if test -n "$ac_ct_OTOOL64"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6810 $as_echo "$ac_ct_OTOOL64" >&6; }
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6816 if test "x$ac_ct_OTOOL64" = x; then
6819 case $cross_compiling:$ac_tool_warned in
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823 ac_tool_warned=yes ;;
6825 OTOOL64=$ac_ct_OTOOL64
6828 OTOOL64="$ac_cv_prog_OTOOL64"
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6858 $as_echo_n "checking for -single_module linker flag... " >&6; }
6859 if ${lt_cv_apple_cc_single_mod+:} false; then :
6860 $as_echo_n "(cached) " >&6
6862 lt_cv_apple_cc_single_mod=no
6863 if test -z "${LT_MULTI_MODULE}"; then
6864 # By default we will add the -single_module flag. You can override
6865 # by either setting the environment variable LT_MULTI_MODULE
6866 # non-empty at configure time, or by adding -multi_module to the
6868 rm -rf libconftest.dylib*
6869 echo "int foo(void){return 1;}" > conftest.c
6870 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6871 -dynamiclib -Wl,-single_module conftest.c" >&5
6872 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6873 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6875 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6876 lt_cv_apple_cc_single_mod=yes
6878 cat conftest.err >&5
6880 rm -rf libconftest.dylib*
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6885 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6887 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6888 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6889 $as_echo_n "(cached) " >&6
6891 lt_cv_ld_exported_symbols_list=no
6892 save_LDFLAGS=$LDFLAGS
6893 echo "_main" > conftest.sym
6894 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6906 if ac_fn_c_try_link "$LINENO"; then :
6907 lt_cv_ld_exported_symbols_list=yes
6909 lt_cv_ld_exported_symbols_list=no
6911 rm -f core conftest.err conftest.$ac_objext \
6912 conftest$ac_exeext conftest.$ac_ext
6913 LDFLAGS="$save_LDFLAGS"
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6917 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6919 $as_echo_n "checking for -force_load linker flag... " >&6; }
6920 if ${lt_cv_ld_force_load+:} false; then :
6921 $as_echo_n "(cached) " >&6
6923 lt_cv_ld_force_load=no
6924 cat > conftest.c << _LT_EOF
6925 int forced_loaded() { return 2;}
6927 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6928 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6929 echo "$AR cru libconftest.a conftest.o" >&5
6930 $AR cru libconftest.a conftest.o 2>&5
6931 echo "$RANLIB libconftest.a" >&5
6932 $RANLIB libconftest.a 2>&5
6933 cat > conftest.c << _LT_EOF
6934 int main() { return 0;}
6936 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6937 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6939 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6940 lt_cv_ld_force_load=yes
6942 cat conftest.err >&5
6944 rm -f conftest.err libconftest.a conftest conftest.c
6945 rm -rf conftest.dSYM
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6949 $as_echo "$lt_cv_ld_force_load" >&6; }
6951 rhapsody* | darwin1.[012])
6952 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6954 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6955 darwin*) # darwin 5.x on
6956 # if running on 10.5 or later, the deployment target defaults
6957 # to the OS version, if on x86, and 10.4, the deployment
6958 # target defaults to 10.4. Don't you love it?
6959 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6960 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6961 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6963 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6965 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6969 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6970 _lt_dar_single_mod='$single_module'
6972 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6973 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6975 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6977 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6978 _lt_dsymutil='~$DSYMUTIL $lib || :'
6986 ac_cpp='$CPP $CPPFLAGS'
6987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6991 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6992 # On Suns, sometimes $CPP names a directory.
6993 if test -n "$CPP" && test -d "$CPP"; then
6996 if test -z "$CPP"; then
6997 if ${ac_cv_prog_CPP+:} false; then :
6998 $as_echo_n "(cached) " >&6
7000 # Double quotes because CPP needs to be expanded
7001 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7004 for ac_c_preproc_warn_flag in '' yes
7006 # Use a header file that comes with gcc, so configuring glibc
7007 # with a fresh cross-compiler works.
7008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7009 # <limits.h> exists even on freestanding compilers.
7010 # On the NeXT, cc -E runs the code through the compiler's parser,
7011 # not just through cpp. "Syntax error" is here to catch this case.
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7015 # include <limits.h>
7017 # include <assert.h>
7021 if ac_fn_c_try_cpp "$LINENO"; then :
7024 # Broken: fails on valid input.
7027 rm -f conftest.err conftest.i conftest.$ac_ext
7029 # OK, works on sane cases. Now check whether nonexistent headers
7030 # can be detected and how.
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7033 #include <ac_nonexistent.h>
7035 if ac_fn_c_try_cpp "$LINENO"; then :
7036 # Broken: success on invalid input.
7039 # Passes both tests.
7043 rm -f conftest.err conftest.i conftest.$ac_ext
7046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7047 rm -f conftest.i conftest.err conftest.$ac_ext
7048 if $ac_preproc_ok; then :
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7061 $as_echo "$CPP" >&6; }
7063 for ac_c_preproc_warn_flag in '' yes
7065 # Use a header file that comes with gcc, so configuring glibc
7066 # with a fresh cross-compiler works.
7067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7068 # <limits.h> exists even on freestanding compilers.
7069 # On the NeXT, cc -E runs the code through the compiler's parser,
7070 # not just through cpp. "Syntax error" is here to catch this case.
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7074 # include <limits.h>
7076 # include <assert.h>
7080 if ac_fn_c_try_cpp "$LINENO"; then :
7083 # Broken: fails on valid input.
7086 rm -f conftest.err conftest.i conftest.$ac_ext
7088 # OK, works on sane cases. Now check whether nonexistent headers
7089 # can be detected and how.
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7092 #include <ac_nonexistent.h>
7094 if ac_fn_c_try_cpp "$LINENO"; then :
7095 # Broken: success on invalid input.
7098 # Passes both tests.
7102 rm -f conftest.err conftest.i conftest.$ac_ext
7105 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7106 rm -f conftest.i conftest.err conftest.$ac_ext
7107 if $ac_preproc_ok; then :
7110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7112 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7113 See \`config.log' for more details" "$LINENO" 5; }
7117 ac_cpp='$CPP $CPPFLAGS'
7118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7124 $as_echo_n "checking for ANSI C header files... " >&6; }
7125 if ${ac_cv_header_stdc+:} false; then :
7126 $as_echo_n "(cached) " >&6
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7143 if ac_fn_c_try_compile "$LINENO"; then :
7144 ac_cv_header_stdc=yes
7146 ac_cv_header_stdc=no
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 if test $ac_cv_header_stdc = yes; then
7151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7158 $EGREP "memchr" >/dev/null 2>&1; then :
7161 ac_cv_header_stdc=no
7167 if test $ac_cv_header_stdc = yes; then
7168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7175 $EGREP "free" >/dev/null 2>&1; then :
7178 ac_cv_header_stdc=no
7184 if test $ac_cv_header_stdc = yes; then
7185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7186 if test "$cross_compiling" = yes; then :
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7193 #if ((' ' & 0x0FF) == 0x020)
7194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7197 # define ISLOWER(c) \
7198 (('a' <= (c) && (c) <= 'i') \
7199 || ('j' <= (c) && (c) <= 'r') \
7200 || ('s' <= (c) && (c) <= 'z'))
7201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7209 for (i = 0; i < 256; i++)
7210 if (XOR (islower (i), ISLOWER (i))
7211 || toupper (i) != TOUPPER (i))
7216 if ac_fn_c_try_run "$LINENO"; then :
7219 ac_cv_header_stdc=no
7221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7222 conftest.$ac_objext conftest.beam conftest.$ac_ext
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7228 $as_echo "$ac_cv_header_stdc" >&6; }
7229 if test $ac_cv_header_stdc = yes; then
7231 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7235 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7236 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7237 inttypes.h stdint.h unistd.h
7239 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7240 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7242 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7243 cat >>confdefs.h <<_ACEOF
7244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7252 for ac_header in dlfcn.h
7254 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7256 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7257 cat >>confdefs.h <<_ACEOF
7258 #define HAVE_DLFCN_H 1
7279 # Check whether --enable-shared was given.
7280 if test "${enable_shared+set}" = set; then :
7281 enableval=$enable_shared; p=${PACKAGE-default}
7283 yes) enable_shared=yes ;;
7284 no) enable_shared=no ;;
7287 # Look at the argument we got. We use all the common list separators.
7288 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7289 for pkg in $enableval; do
7291 if test "X$pkg" = "X$p"; then
7310 # Check whether --enable-static was given.
7311 if test "${enable_static+set}" = set; then :
7312 enableval=$enable_static; p=${PACKAGE-default}
7314 yes) enable_static=yes ;;
7315 no) enable_static=no ;;
7318 # Look at the argument we got. We use all the common list separators.
7319 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7320 for pkg in $enableval; do
7322 if test "X$pkg" = "X$p"; then
7342 # Check whether --with-pic was given.
7343 if test "${with_pic+set}" = set; then :
7344 withval=$with_pic; pic_mode="$withval"
7350 test -z "$pic_mode" && pic_mode=default
7358 # Check whether --enable-fast-install was given.
7359 if test "${enable_fast_install+set}" = set; then :
7360 enableval=$enable_fast_install; p=${PACKAGE-default}
7362 yes) enable_fast_install=yes ;;
7363 no) enable_fast_install=no ;;
7365 enable_fast_install=no
7366 # Look at the argument we got. We use all the common list separators.
7367 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7368 for pkg in $enableval; do
7370 if test "X$pkg" = "X$p"; then
7371 enable_fast_install=yes
7378 enable_fast_install=yes
7391 # This can be used to rebuild libtool when needed
7392 LIBTOOL_DEPS="$ltmain"
7394 # Always use our own libtool.
7395 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7422 test -z "$LN_S" && LN_S="ln -s"
7437 if test -n "${ZSH_VERSION+set}" ; then
7438 setopt NO_GLOB_SUBST
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7442 $as_echo_n "checking for objdir... " >&6; }
7443 if ${lt_cv_objdir+:} false; then :
7444 $as_echo_n "(cached) " >&6
7446 rm -f .libs 2>/dev/null
7447 mkdir .libs 2>/dev/null
7448 if test -d .libs; then
7451 # MS-DOS does not allow filenames that begin with a dot.
7454 rmdir .libs 2>/dev/null
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7457 $as_echo "$lt_cv_objdir" >&6; }
7458 objdir=$lt_cv_objdir
7464 cat >>confdefs.h <<_ACEOF
7465 #define LT_OBJDIR "$lt_cv_objdir/"
7473 # AIX sometimes has problems with the GCC collect2 program. For some
7474 # reason, if we set the COLLECT_NAMES environment variable, the problems
7475 # vanish in a puff of smoke.
7476 if test "X${COLLECT_NAMES+set}" != Xset; then
7478 export COLLECT_NAMES
7485 can_build_shared=yes
7487 # All known linkers require a `.a' archive for static linking (except MSVC,
7488 # which needs '.lib').
7491 with_gnu_ld="$lt_cv_prog_gnu_ld"
7494 old_CFLAGS="$CFLAGS"
7496 # Set sane defaults for various variables
7497 test -z "$CC" && CC=cc
7498 test -z "$LTCC" && LTCC=$CC
7499 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7500 test -z "$LD" && LD=ld
7501 test -z "$ac_objext" && ac_objext=o
7503 for cc_temp in $compiler""; do
7505 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7506 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7511 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7514 # Only perform the check for file, if the check method requires it
7515 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7516 case $deplibs_check_method in
7518 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7520 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7521 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7522 $as_echo_n "(cached) " >&6
7526 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7529 lt_save_MAGIC_CMD="$MAGIC_CMD"
7530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7531 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7532 for ac_dir in $ac_dummy; do
7534 test -z "$ac_dir" && ac_dir=.
7535 if test -f $ac_dir/${ac_tool_prefix}file; then
7536 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7537 if test -n "$file_magic_test_file"; then
7538 case $deplibs_check_method in
7540 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7541 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7542 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7543 $EGREP "$file_magic_regex" > /dev/null; then
7548 *** Warning: the command libtool uses to detect shared libraries,
7549 *** $file_magic_cmd, produces output that libtool cannot recognize.
7550 *** The result is that libtool may fail to recognize shared libraries
7551 *** as such. This will affect the creation of libtool libraries that
7552 *** depend on shared libraries, but programs linked with such libtool
7553 *** libraries will work regardless of this problem. Nevertheless, you
7554 *** may want to report the problem to your system manager and/or to
7555 *** bug-libtool@gnu.org
7565 MAGIC_CMD="$lt_save_MAGIC_CMD"
7570 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7571 if test -n "$MAGIC_CMD"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7573 $as_echo "$MAGIC_CMD" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7583 if test -z "$lt_cv_path_MAGIC_CMD"; then
7584 if test -n "$ac_tool_prefix"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7586 $as_echo_n "checking for file... " >&6; }
7587 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7588 $as_echo_n "(cached) " >&6
7592 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7595 lt_save_MAGIC_CMD="$MAGIC_CMD"
7596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7597 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7598 for ac_dir in $ac_dummy; do
7600 test -z "$ac_dir" && ac_dir=.
7601 if test -f $ac_dir/file; then
7602 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7603 if test -n "$file_magic_test_file"; then
7604 case $deplibs_check_method in
7606 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7608 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7609 $EGREP "$file_magic_regex" > /dev/null; then
7614 *** Warning: the command libtool uses to detect shared libraries,
7615 *** $file_magic_cmd, produces output that libtool cannot recognize.
7616 *** The result is that libtool may fail to recognize shared libraries
7617 *** as such. This will affect the creation of libtool libraries that
7618 *** depend on shared libraries, but programs linked with such libtool
7619 *** libraries will work regardless of this problem. Nevertheless, you
7620 *** may want to report the problem to your system manager and/or to
7621 *** bug-libtool@gnu.org
7631 MAGIC_CMD="$lt_save_MAGIC_CMD"
7636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7637 if test -n "$MAGIC_CMD"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7639 $as_echo "$MAGIC_CMD" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7655 # Use C for the default configuration in the libtool script
7659 ac_cpp='$CPP $CPPFLAGS'
7660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7665 # Source file extension for C test sources.
7668 # Object file extension for compiled C test sources.
7672 # Code to be used in simple compile tests
7673 lt_simple_compile_test_code="int some_variable = 0;"
7675 # Code to be used in simple link tests
7676 lt_simple_link_test_code='int main(){return(0);}'
7684 # If no C compiler was specified, use CC.
7687 # If no C compiler flags were specified, use CFLAGS.
7688 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7690 # Allow CC to be a program name with arguments.
7693 # Save the default compiler, since it gets overwritten when the other
7694 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7695 compiler_DEFAULT=$CC
7697 # save warnings/boilerplate of simple test code
7698 ac_outfile=conftest.$ac_objext
7699 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7700 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7701 _lt_compiler_boilerplate=`cat conftest.err`
7704 ac_outfile=conftest.$ac_objext
7705 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7706 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7707 _lt_linker_boilerplate=`cat conftest.err`
7711 if test -n "$compiler"; then
7713 lt_prog_compiler_no_builtin_flag=
7715 if test "$GCC" = yes; then
7716 case $cc_basename in
7718 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7720 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7724 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7725 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7726 $as_echo_n "(cached) " >&6
7728 lt_cv_prog_compiler_rtti_exceptions=no
7729 ac_outfile=conftest.$ac_objext
7730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7731 lt_compiler_flag="-fno-rtti -fno-exceptions"
7732 # Insert the option either (1) after the last *FLAGS variable, or
7733 # (2) before a word containing "conftest.", or (3) at the end.
7734 # Note that $ac_compile itself does not contain backslashes and begins
7735 # with a dollar sign (not a hyphen), so the echo should work correctly.
7736 # The option is referenced via a variable to avoid confusing sed.
7737 lt_compile=`echo "$ac_compile" | $SED \
7738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7740 -e 's:$: $lt_compiler_flag:'`
7741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7742 (eval "$lt_compile" 2>conftest.err)
7744 cat conftest.err >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 if (exit $ac_status) && test -s "$ac_outfile"; then
7747 # The compiler can only warn and ignore the option if not recognized
7748 # So say no if there are warnings other than the usual output.
7749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7752 lt_cv_prog_compiler_rtti_exceptions=yes
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7759 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7761 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7762 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7774 lt_prog_compiler_wl=
7775 lt_prog_compiler_pic=
7776 lt_prog_compiler_static=
7779 if test "$GCC" = yes; then
7780 lt_prog_compiler_wl='-Wl,'
7781 lt_prog_compiler_static='-static'
7785 # All AIX code is PIC.
7786 if test "$host_cpu" = ia64; then
7787 # AIX 5 now supports IA64 processor
7788 lt_prog_compiler_static='-Bstatic'
7795 # see comment about AmigaOS4 .so support
7796 lt_prog_compiler_pic='-fPIC'
7799 # FIXME: we need at least 68020 code to build shared libraries, but
7800 # adding the `-m68020' flag to GCC prevents building anything better,
7802 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7807 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7808 # PIC is the default for these OSes.
7811 mingw* | cygwin* | pw32* | os2* | cegcc*)
7812 # This hack is so that the source file can tell whether it is being
7813 # built for inclusion in a dll (and should export symbols for example).
7814 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7815 # (--disable-auto-import) libraries
7816 lt_prog_compiler_pic='-DDLL_EXPORT'
7819 darwin* | rhapsody*)
7820 # PIC is the default on this platform
7821 # Common symbols not allowed in MH_DYLIB files
7822 lt_prog_compiler_pic='-fno-common'
7826 # PIC is the default for Haiku.
7827 # The "-static" flag exists, but is broken.
7828 lt_prog_compiler_static=
7832 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7833 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7834 # sets the default TLS model and affects inlining.
7840 lt_prog_compiler_pic='-fPIC'
7846 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7847 # Instead, we relocate shared libraries at runtime.
7851 # Just because we use GCC doesn't mean we suddenly get shared libraries
7852 # on systems that don't support them.
7853 lt_prog_compiler_can_build_shared=no
7858 # QNX uses GNU C++, but need to define -shared option too, otherwise
7860 lt_prog_compiler_pic='-fPIC -shared'
7864 if test -d /usr/nec; then
7865 lt_prog_compiler_pic=-Kconform_pic
7870 lt_prog_compiler_pic='-fPIC'
7874 case $cc_basename in
7875 nvcc*) # Cuda Compiler Driver 2.2
7876 lt_prog_compiler_wl='-Xlinker '
7877 lt_prog_compiler_pic='-Xcompiler -fPIC'
7881 # PORTME Check for flag to pass linker flags through the system compiler.
7884 lt_prog_compiler_wl='-Wl,'
7885 if test "$host_cpu" = ia64; then
7886 # AIX 5 now supports IA64 processor
7887 lt_prog_compiler_static='-Bstatic'
7889 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7893 mingw* | cygwin* | pw32* | os2* | cegcc*)
7894 # This hack is so that the source file can tell whether it is being
7895 # built for inclusion in a dll (and should export symbols for example).
7896 lt_prog_compiler_pic='-DDLL_EXPORT'
7899 hpux9* | hpux10* | hpux11*)
7900 lt_prog_compiler_wl='-Wl,'
7901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7908 lt_prog_compiler_pic='+Z'
7911 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7912 lt_prog_compiler_static='${wl}-a ${wl}archive'
7915 irix5* | irix6* | nonstopux*)
7916 lt_prog_compiler_wl='-Wl,'
7917 # PIC (with -KPIC) is the default.
7918 lt_prog_compiler_static='-non_shared'
7921 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7922 case $cc_basename in
7923 # old Intel for x86_64 which still supported -KPIC.
7925 lt_prog_compiler_wl='-Wl,'
7926 lt_prog_compiler_pic='-KPIC'
7927 lt_prog_compiler_static='-static'
7929 # icc used to be incompatible with GCC.
7930 # ICC 10 doesn't accept -KPIC any more.
7932 lt_prog_compiler_wl='-Wl,'
7933 lt_prog_compiler_pic='-fPIC'
7934 lt_prog_compiler_static='-static'
7936 # Lahey Fortran 8.1.
7938 lt_prog_compiler_wl='-Wl,'
7939 lt_prog_compiler_pic='--shared'
7940 lt_prog_compiler_static='--static'
7943 # NAG Fortran compiler
7944 lt_prog_compiler_wl='-Wl,-Wl,,'
7945 lt_prog_compiler_pic='-PIC'
7946 lt_prog_compiler_static='-Bstatic'
7948 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7949 # Portland Group compilers (*not* the Pentium gcc compiler,
7950 # which looks to be a dead project)
7951 lt_prog_compiler_wl='-Wl,'
7952 lt_prog_compiler_pic='-fpic'
7953 lt_prog_compiler_static='-Bstatic'
7956 lt_prog_compiler_wl='-Wl,'
7957 # All Alpha code is PIC.
7958 lt_prog_compiler_static='-non_shared'
7960 xl* | bgxl* | bgf* | mpixl*)
7961 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7962 lt_prog_compiler_wl='-Wl,'
7963 lt_prog_compiler_pic='-qpic'
7964 lt_prog_compiler_static='-qstaticlink'
7967 case `$CC -V 2>&1 | sed 5q` in
7968 *Sun\ F* | *Sun*Fortran*)
7969 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7970 lt_prog_compiler_pic='-KPIC'
7971 lt_prog_compiler_static='-Bstatic'
7972 lt_prog_compiler_wl=''
7976 lt_prog_compiler_pic='-KPIC'
7977 lt_prog_compiler_static='-Bstatic'
7978 lt_prog_compiler_wl='-Wl,'
7986 lt_prog_compiler_pic='-KPIC'
7987 lt_prog_compiler_static='-Bstatic'
7991 # QNX uses GNU C++, but need to define -shared option too, otherwise
7993 lt_prog_compiler_pic='-fPIC -shared'
7996 osf3* | osf4* | osf5*)
7997 lt_prog_compiler_wl='-Wl,'
7998 # All OSF/1 code is PIC.
7999 lt_prog_compiler_static='-non_shared'
8003 lt_prog_compiler_static='-non_shared'
8007 lt_prog_compiler_pic='-KPIC'
8008 lt_prog_compiler_static='-Bstatic'
8009 case $cc_basename in
8010 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8011 lt_prog_compiler_wl='-Qoption ld ';;
8013 lt_prog_compiler_wl='-Wl,';;
8018 lt_prog_compiler_wl='-Qoption ld '
8019 lt_prog_compiler_pic='-PIC'
8020 lt_prog_compiler_static='-Bstatic'
8023 sysv4 | sysv4.2uw2* | sysv4.3*)
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_pic='-KPIC'
8026 lt_prog_compiler_static='-Bstatic'
8030 if test -d /usr/nec ;then
8031 lt_prog_compiler_pic='-Kconform_pic'
8032 lt_prog_compiler_static='-Bstatic'
8036 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8037 lt_prog_compiler_wl='-Wl,'
8038 lt_prog_compiler_pic='-KPIC'
8039 lt_prog_compiler_static='-Bstatic'
8043 lt_prog_compiler_wl='-Wl,'
8044 lt_prog_compiler_can_build_shared=no
8048 lt_prog_compiler_pic='-pic'
8049 lt_prog_compiler_static='-Bstatic'
8053 lt_prog_compiler_can_build_shared=no
8059 # For platforms which do not support PIC, -DPIC is meaningless:
8061 lt_prog_compiler_pic=
8064 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8069 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8070 if ${lt_cv_prog_compiler_pic+:} false; then :
8071 $as_echo_n "(cached) " >&6
8073 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8076 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8077 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8080 # Check to make sure the PIC flag actually works.
8082 if test -n "$lt_prog_compiler_pic"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8084 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8085 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8086 $as_echo_n "(cached) " >&6
8088 lt_cv_prog_compiler_pic_works=no
8089 ac_outfile=conftest.$ac_objext
8090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8091 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8092 # Insert the option either (1) after the last *FLAGS variable, or
8093 # (2) before a word containing "conftest.", or (3) at the end.
8094 # Note that $ac_compile itself does not contain backslashes and begins
8095 # with a dollar sign (not a hyphen), so the echo should work correctly.
8096 # The option is referenced via a variable to avoid confusing sed.
8097 lt_compile=`echo "$ac_compile" | $SED \
8098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8100 -e 's:$: $lt_compiler_flag:'`
8101 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8102 (eval "$lt_compile" 2>conftest.err)
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 if (exit $ac_status) && test -s "$ac_outfile"; then
8107 # The compiler can only warn and ignore the option if not recognized
8108 # So say no if there are warnings other than the usual output.
8109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8111 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8112 lt_cv_prog_compiler_pic_works=yes
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8119 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8121 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8122 case $lt_prog_compiler_pic in
8124 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8127 lt_prog_compiler_pic=
8128 lt_prog_compiler_can_build_shared=no
8144 # Check to make sure the static flag actually works.
8146 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8148 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8149 if ${lt_cv_prog_compiler_static_works+:} false; then :
8150 $as_echo_n "(cached) " >&6
8152 lt_cv_prog_compiler_static_works=no
8153 save_LDFLAGS="$LDFLAGS"
8154 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8155 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8156 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8157 # The linker can only warn and ignore the option if not recognized
8158 # So say no if there are warnings
8159 if test -s conftest.err; then
8160 # Append any errors to the config.log.
8161 cat conftest.err 1>&5
8162 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8164 if diff conftest.exp conftest.er2 >/dev/null; then
8165 lt_cv_prog_compiler_static_works=yes
8168 lt_cv_prog_compiler_static_works=yes
8172 LDFLAGS="$save_LDFLAGS"
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8176 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8178 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8181 lt_prog_compiler_static=
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8191 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8192 if ${lt_cv_prog_compiler_c_o+:} false; then :
8193 $as_echo_n "(cached) " >&6
8195 lt_cv_prog_compiler_c_o=no
8196 $RM -r conftest 2>/dev/null
8200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8202 lt_compiler_flag="-o out/conftest2.$ac_objext"
8203 # Insert the option either (1) after the last *FLAGS variable, or
8204 # (2) before a word containing "conftest.", or (3) at the end.
8205 # Note that $ac_compile itself does not contain backslashes and begins
8206 # with a dollar sign (not a hyphen), so the echo should work correctly.
8207 lt_compile=`echo "$ac_compile" | $SED \
8208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8210 -e 's:$: $lt_compiler_flag:'`
8211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8212 (eval "$lt_compile" 2>out/conftest.err)
8214 cat out/conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8218 # The compiler can only warn and ignore the option if not recognized
8219 # So say no if there are warnings
8220 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8221 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8222 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8223 lt_cv_prog_compiler_c_o=yes
8228 # SGI C++ compiler will create directory out/ii_files/ for
8229 # template instantiation
8230 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8231 $RM out/* && rmdir out
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8238 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8246 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8247 if ${lt_cv_prog_compiler_c_o+:} false; then :
8248 $as_echo_n "(cached) " >&6
8250 lt_cv_prog_compiler_c_o=no
8251 $RM -r conftest 2>/dev/null
8255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8257 lt_compiler_flag="-o out/conftest2.$ac_objext"
8258 # Insert the option either (1) after the last *FLAGS variable, or
8259 # (2) before a word containing "conftest.", or (3) at the end.
8260 # Note that $ac_compile itself does not contain backslashes and begins
8261 # with a dollar sign (not a hyphen), so the echo should work correctly.
8262 lt_compile=`echo "$ac_compile" | $SED \
8263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8265 -e 's:$: $lt_compiler_flag:'`
8266 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8267 (eval "$lt_compile" 2>out/conftest.err)
8269 cat out/conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8273 # The compiler can only warn and ignore the option if not recognized
8274 # So say no if there are warnings
8275 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8276 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8277 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8278 lt_cv_prog_compiler_c_o=yes
8283 # SGI C++ compiler will create directory out/ii_files/ for
8284 # template instantiation
8285 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8286 $RM out/* && rmdir out
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8293 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8298 hard_links="nottested"
8299 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8300 # do not overwrite the value of need_locks provided by the user
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8302 $as_echo_n "checking if we can lock with hard links... " >&6; }
8305 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8307 ln conftest.a conftest.b 2>&5 || hard_links=no
8308 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8310 $as_echo "$hard_links" >&6; }
8311 if test "$hard_links" = no; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8313 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8326 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8329 allow_undefined_flag=
8330 always_export_symbols=no
8332 archive_expsym_cmds=
8333 compiler_needs_object=no
8334 enable_shared_with_static_runtimes=no
8335 export_dynamic_flag_spec=
8336 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8337 hardcode_automatic=no
8339 hardcode_direct_absolute=no
8340 hardcode_libdir_flag_spec=
8341 hardcode_libdir_flag_spec_ld=
8342 hardcode_libdir_separator=
8344 hardcode_shlibpath_var=unsupported
8346 link_all_deplibs=unknown
8349 old_archive_from_new_cmds=
8350 old_archive_from_expsyms_cmds=
8351 thread_safe_flag_spec=
8352 whole_archive_flag_spec=
8353 # include_expsyms should be a list of space-separated symbols to be *always*
8354 # included in the symbol list
8356 # exclude_expsyms can be an extended regexp of symbols to exclude
8357 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8358 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8359 # as well as any symbol that contains `d'.
8360 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8361 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8362 # platforms (ab)use it in PIC code, but their linkers get confused if
8363 # the symbol is explicitly referenced. Since portable code cannot
8364 # rely on this symbol name, it's probably fine to never include it in
8365 # preloaded symbol tables.
8366 # Exclude shared library initialization/finalization symbols.
8367 extract_expsyms_cmds=
8370 cygwin* | mingw* | pw32* | cegcc*)
8371 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8372 # When not using gcc, we currently assume that we are using
8373 # Microsoft Visual C++.
8374 if test "$GCC" != yes; then
8379 # we just hope/assume this is gcc and not c89 (= MSVC++)
8389 # On some targets, GNU ld is compatible enough with the native linker
8390 # that we're better off using the native interface for both.
8391 lt_use_gnu_ld_interface=no
8392 if test "$with_gnu_ld" = yes; then
8395 # The AIX port of GNU ld has always aspired to compatibility
8396 # with the native linker. However, as the warning in the GNU ld
8397 # block says, versions before 2.19.5* couldn't really create working
8398 # shared libraries, regardless of the interface used.
8399 case `$LD -v 2>&1` in
8400 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8401 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8402 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8404 lt_use_gnu_ld_interface=yes
8409 lt_use_gnu_ld_interface=yes
8414 if test "$lt_use_gnu_ld_interface" = yes; then
8415 # If archive_cmds runs LD, not CC, wlarc should be empty
8418 # Set some defaults for GNU ld with shared library support. These
8419 # are reset later if shared libraries are not supported. Putting them
8420 # here allows them to be overridden if necessary.
8421 runpath_var=LD_RUN_PATH
8422 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8423 export_dynamic_flag_spec='${wl}--export-dynamic'
8424 # ancient GNU ld didn't support --whole-archive et. al.
8425 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8426 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8428 whole_archive_flag_spec=
8430 supports_anon_versioning=no
8431 case `$LD -v 2>&1` in
8432 *GNU\ gold*) supports_anon_versioning=yes ;;
8433 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8434 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8435 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8436 *\ 2.11.*) ;; # other 2.11 versions
8437 *) supports_anon_versioning=yes ;;
8440 # See if GNU ld supports shared libraries.
8443 # On AIX/PPC, the GNU linker is very broken
8444 if test "$host_cpu" != ia64; then
8448 *** Warning: the GNU linker, at least up to release 2.19, is reported
8449 *** to be unable to reliably create shared libraries on AIX.
8450 *** Therefore, libtool is disabling shared libraries support. If you
8451 *** really care for shared libraries, you may want to install binutils
8452 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8453 *** You will then need to restart the configuration process.
8462 # see comment about AmigaOS4 .so support
8463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8464 archive_expsym_cmds=''
8467 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)'
8468 hardcode_libdir_flag_spec='-L$libdir'
8469 hardcode_minus_L=yes
8475 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8476 allow_undefined_flag=unsupported
8477 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8478 # support --undefined. This deserves some investigation. FIXME
8479 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8485 cygwin* | mingw* | pw32* | cegcc*)
8486 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8487 # as there is no search path for DLLs.
8488 hardcode_libdir_flag_spec='-L$libdir'
8489 export_dynamic_flag_spec='${wl}--export-all-symbols'
8490 allow_undefined_flag=unsupported
8491 always_export_symbols=no
8492 enable_shared_with_static_runtimes=yes
8493 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'
8494 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8496 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8498 # If the export-symbols file already is a .def file (1st line
8499 # is EXPORTS), use it as is; otherwise, prepend...
8500 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8501 cp $export_symbols $output_objdir/$soname.def;
8503 echo EXPORTS > $output_objdir/$soname.def;
8504 cat $export_symbols >> $output_objdir/$soname.def;
8506 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8514 link_all_deplibs=yes
8519 hardcode_shlibpath_var=no
8520 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8521 export_dynamic_flag_spec='${wl}-E'
8522 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8523 # Instead, shared libraries are loaded at an image base (0x10000000 by
8524 # default) and relocated if they conflict, which is a slow very memory
8525 # consuming and fragmenting process. To avoid this, we pick a random,
8526 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8527 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8528 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8529 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'
8532 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8534 if test "$host_os" = linux-dietlibc; then
8535 case $cc_basename in
8536 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8539 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8540 && test "$tmp_diet" = no
8542 tmp_addflag=' $pic_flag'
8543 tmp_sharedflag='-shared'
8544 case $cc_basename,$host_cpu in
8545 pgcc*) # Portland Group C compiler
8546 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'
8547 tmp_addflag=' $pic_flag'
8549 pgf77* | pgf90* | pgf95* | pgfortran*)
8550 # Portland Group f77 and f90 compilers
8551 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'
8552 tmp_addflag=' $pic_flag -Mnomain' ;;
8553 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8554 tmp_addflag=' -i_dynamic' ;;
8555 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8556 tmp_addflag=' -i_dynamic -nofor_main' ;;
8557 ifc* | ifort*) # Intel Fortran compiler
8558 tmp_addflag=' -nofor_main' ;;
8559 lf95*) # Lahey Fortran 8.1
8560 whole_archive_flag_spec=
8561 tmp_sharedflag='--shared' ;;
8562 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8563 tmp_sharedflag='-qmkshrobj'
8565 nvcc*) # Cuda Compiler Driver 2.2
8566 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'
8567 compiler_needs_object=yes
8570 case `$CC -V 2>&1 | sed 5q` in
8571 *Sun\ C*) # Sun C 5.9
8572 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'
8573 compiler_needs_object=yes
8574 tmp_sharedflag='-G' ;;
8575 *Sun\ F*) # Sun Fortran 8.3
8576 tmp_sharedflag='-G' ;;
8578 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8580 if test "x$supports_anon_versioning" = xyes; then
8581 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8582 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8583 echo "local: *; };" >> $output_objdir/$libname.ver~
8584 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8587 case $cc_basename in
8588 xlf* | bgf* | bgxlf* | mpixlf*)
8589 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8590 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8591 hardcode_libdir_flag_spec=
8592 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8593 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8594 if test "x$supports_anon_versioning" = xyes; then
8595 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8596 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8597 echo "local: *; };" >> $output_objdir/$libname.ver~
8598 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8608 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8609 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8612 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8613 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8618 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8622 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8623 *** create shared libraries on Solaris systems. Therefore, libtool
8624 *** is disabling shared libraries support. We urge you to upgrade GNU
8625 *** binutils to release 2.9.1 or newer. Another option is to modify
8626 *** your PATH or compiler configuration so that the native linker is
8627 *** used, and then restart.
8630 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8631 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8632 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8639 case `$LD -v 2>&1` in
8640 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8644 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8645 *** reliably create shared libraries on SCO systems. Therefore, libtool
8646 *** is disabling shared libraries support. We urge you to upgrade GNU
8647 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8648 *** your PATH or compiler configuration so that the native linker is
8649 *** used, and then restart.
8654 # For security reasons, it is highly recommended that you always
8655 # use absolute paths for naming shared libraries, and exclude the
8656 # DT_RUNPATH tag from executables and libraries. But doing so
8657 # requires that you compile everything twice, which is a pain.
8658 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8670 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8673 hardcode_shlibpath_var=no
8677 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8678 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8679 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8686 if test "$ld_shlibs" = no; then
8688 hardcode_libdir_flag_spec=
8689 export_dynamic_flag_spec=
8690 whole_archive_flag_spec=
8693 # PORTME fill in a description of your system's linker (not GNU ld)
8696 allow_undefined_flag=unsupported
8697 always_export_symbols=yes
8698 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'
8699 # Note: this linker hardcodes the directories in LIBPATH if there
8700 # are no directories specified by -L.
8701 hardcode_minus_L=yes
8702 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8703 # Neither direct hardcoding nor static linking is supported with a
8705 hardcode_direct=unsupported
8710 if test "$host_cpu" = ia64; then
8711 # On IA64, the linker does run time linking by default, so we don't
8712 # have to do anything special.
8713 aix_use_runtimelinking=no
8714 exp_sym_flag='-Bexport'
8717 # If we're using GNU nm, then we don't want the "-C" option.
8718 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8719 # Also, AIX nm treats weak defined symbols like other global
8720 # defined symbols, whereas GNU nm marks them as "W".
8721 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8722 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'
8724 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'
8726 aix_use_runtimelinking=no
8728 # Test if we are trying to use run time linking or normal
8729 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8730 # need to do runtime linking.
8731 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8732 for ld_flag in $LDFLAGS; do
8733 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8734 aix_use_runtimelinking=yes
8741 exp_sym_flag='-bexport'
8742 no_entry_flag='-bnoentry'
8745 # When large executables or shared objects are built, AIX ld can
8746 # have problems creating the table of contents. If linking a library
8747 # or program results in "error TOC overflow" add -mminimal-toc to
8748 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8749 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8753 hardcode_direct_absolute=yes
8754 hardcode_libdir_separator=':'
8755 link_all_deplibs=yes
8756 file_list_spec='${wl}-f,'
8758 if test "$GCC" = yes; then
8759 case $host_os in aix4.[012]|aix4.[012].*)
8760 # We only want to do this on AIX 4.2 and lower, the check
8761 # below for broken collect2 doesn't work under 4.3+
8762 collect2name=`${CC} -print-prog-name=collect2`
8763 if test -f "$collect2name" &&
8764 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8766 # We have reworked collect2
8769 # We have old collect2
8770 hardcode_direct=unsupported
8771 # It fails to find uninstalled libraries when the uninstalled
8772 # path is not listed in the libpath. Setting hardcode_minus_L
8773 # to unsupported forces relinking
8774 hardcode_minus_L=yes
8775 hardcode_libdir_flag_spec='-L$libdir'
8776 hardcode_libdir_separator=
8780 shared_flag='-shared'
8781 if test "$aix_use_runtimelinking" = yes; then
8782 shared_flag="$shared_flag "'${wl}-G'
8786 if test "$host_cpu" = ia64; then
8787 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8788 # chokes on -Wl,-G. The following line is correct:
8791 if test "$aix_use_runtimelinking" = yes; then
8792 shared_flag='${wl}-G'
8794 shared_flag='${wl}-bM:SRE'
8799 export_dynamic_flag_spec='${wl}-bexpall'
8800 # It seems that -bexpall does not export symbols beginning with
8801 # underscore (_), so it is better to generate a list of symbols to export.
8802 always_export_symbols=yes
8803 if test "$aix_use_runtimelinking" = yes; then
8804 # Warning - without using the other runtime loading flags (-brtl),
8805 # -berok will link without error, but may produce a broken library.
8806 allow_undefined_flag='-berok'
8807 # Determine the default libpath from the value encoded in an
8809 if test "${lt_cv_aix_libpath+set}" = set; then
8810 aix_libpath=$lt_cv_aix_libpath
8812 if ${lt_cv_aix_libpath_+:} false; then :
8813 $as_echo_n "(cached) " >&6
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8826 if ac_fn_c_try_link "$LINENO"; then :
8828 lt_aix_libpath_sed='
8829 /Import File Strings/,/^$/ {
8831 s/^0 *\([^ ]*\) *$/\1/
8835 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8836 # Check for a 64-bit object if we didn't find anything.
8837 if test -z "$lt_cv_aix_libpath_"; then
8838 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8841 rm -f core conftest.err conftest.$ac_objext \
8842 conftest$ac_exeext conftest.$ac_ext
8843 if test -z "$lt_cv_aix_libpath_"; then
8844 lt_cv_aix_libpath_="/usr/lib:/lib"
8849 aix_libpath=$lt_cv_aix_libpath_
8852 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8853 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"
8855 if test "$host_cpu" = ia64; then
8856 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8857 allow_undefined_flag="-z nodefs"
8858 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"
8860 # Determine the default libpath from the value encoded in an
8862 if test "${lt_cv_aix_libpath+set}" = set; then
8863 aix_libpath=$lt_cv_aix_libpath
8865 if ${lt_cv_aix_libpath_+:} false; then :
8866 $as_echo_n "(cached) " >&6
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8879 if ac_fn_c_try_link "$LINENO"; then :
8881 lt_aix_libpath_sed='
8882 /Import File Strings/,/^$/ {
8884 s/^0 *\([^ ]*\) *$/\1/
8888 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8889 # Check for a 64-bit object if we didn't find anything.
8890 if test -z "$lt_cv_aix_libpath_"; then
8891 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8894 rm -f core conftest.err conftest.$ac_objext \
8895 conftest$ac_exeext conftest.$ac_ext
8896 if test -z "$lt_cv_aix_libpath_"; then
8897 lt_cv_aix_libpath_="/usr/lib:/lib"
8902 aix_libpath=$lt_cv_aix_libpath_
8905 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8906 # Warning - without using the other run time loading flags,
8907 # -berok will link without error, but may produce a broken library.
8908 no_undefined_flag=' ${wl}-bernotok'
8909 allow_undefined_flag=' ${wl}-berok'
8910 if test "$with_gnu_ld" = yes; then
8911 # We only use this code for GNU lds that support --whole-archive.
8912 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8914 # Exported symbols can be pulled into shared objects from archives
8915 whole_archive_flag_spec='$convenience'
8917 archive_cmds_need_lc=yes
8918 # This is similar to how AIX traditionally builds its shared libraries.
8919 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'
8927 # see comment about AmigaOS4 .so support
8928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8929 archive_expsym_cmds=''
8932 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)'
8933 hardcode_libdir_flag_spec='-L$libdir'
8934 hardcode_minus_L=yes
8940 export_dynamic_flag_spec=-rdynamic
8943 cygwin* | mingw* | pw32* | cegcc*)
8944 # When not using gcc, we currently assume that we are using
8945 # Microsoft Visual C++.
8946 # hardcode_libdir_flag_spec is actually meaningless, as there is
8947 # no search path for DLLs.
8948 case $cc_basename in
8951 hardcode_libdir_flag_spec=' '
8952 allow_undefined_flag=unsupported
8953 always_export_symbols=yes
8955 # Tell ltmain to make .lib files, not .a files.
8957 # Tell ltmain to make .dll files, not .so files.
8959 # FIXME: Setting linknames here is a bad hack.
8960 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8961 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8962 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8964 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8966 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8968 # The linker will not automatically build a static lib if we build a DLL.
8969 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8970 enable_shared_with_static_runtimes=yes
8971 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8973 old_postinstall_cmds='chmod 644 $oldlib'
8974 postlink_cmds='lt_outputfile="@OUTPUT@"~
8975 lt_tool_outputfile="@TOOL_OUTPUT@"~
8976 case $lt_outputfile in
8979 lt_outputfile="$lt_outputfile.exe"
8980 lt_tool_outputfile="$lt_tool_outputfile.exe"
8983 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8984 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8985 $RM "$lt_outputfile.manifest";
8989 # Assume MSVC wrapper
8990 hardcode_libdir_flag_spec=' '
8991 allow_undefined_flag=unsupported
8992 # Tell ltmain to make .lib files, not .a files.
8994 # Tell ltmain to make .dll files, not .so files.
8996 # FIXME: Setting linknames here is a bad hack.
8997 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8998 # The linker will automatically build a .lib file if we build a DLL.
8999 old_archive_from_new_cmds='true'
9000 # FIXME: Should let the user specify the lib program.
9001 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9002 enable_shared_with_static_runtimes=yes
9007 darwin* | rhapsody*)
9010 archive_cmds_need_lc=no
9012 hardcode_automatic=yes
9013 hardcode_shlibpath_var=unsupported
9014 if test "$lt_cv_ld_force_load" = "yes"; then
9015 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\"`'
9017 whole_archive_flag_spec=''
9019 link_all_deplibs=yes
9020 allow_undefined_flag="$_lt_dar_allow_undefined"
9021 case $cc_basename in
9022 ifort*) _lt_dar_can_shared=yes ;;
9023 *) _lt_dar_can_shared=$GCC ;;
9025 if test "$_lt_dar_can_shared" = "yes"; then
9026 output_verbose_link_cmd=func_echo_all
9027 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9028 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9029 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}"
9030 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}"
9039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9040 hardcode_libdir_flag_spec='-L$libdir'
9041 hardcode_shlibpath_var=no
9048 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9049 # support. Future versions do this automatically, but an explicit c++rt0.o
9050 # does not break anything, and helps significantly (at the cost of a little
9053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9054 hardcode_libdir_flag_spec='-R$libdir'
9056 hardcode_shlibpath_var=no
9059 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9063 hardcode_minus_L=yes
9064 hardcode_shlibpath_var=no
9067 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9068 freebsd* | dragonfly*)
9069 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9070 hardcode_libdir_flag_spec='-R$libdir'
9072 hardcode_shlibpath_var=no
9076 if test "$GCC" = yes; then
9077 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'
9079 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'
9081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9082 hardcode_libdir_separator=:
9085 # hardcode_minus_L: Not really in the search PATH,
9086 # but as the default location of the library.
9087 hardcode_minus_L=yes
9088 export_dynamic_flag_spec='${wl}-E'
9092 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9093 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9095 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9097 if test "$with_gnu_ld" = no; then
9098 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9099 hardcode_libdir_flag_spec_ld='+b $libdir'
9100 hardcode_libdir_separator=:
9102 hardcode_direct_absolute=yes
9103 export_dynamic_flag_spec='${wl}-E'
9104 # hardcode_minus_L: Not really in the search PATH,
9105 # but as the default location of the library.
9106 hardcode_minus_L=yes
9111 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9114 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9120 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9126 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9129 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9133 # Older versions of the 11.00 compiler do not understand -b yet
9134 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9136 $as_echo_n "checking if $CC understands -b... " >&6; }
9137 if ${lt_cv_prog_compiler__b+:} false; then :
9138 $as_echo_n "(cached) " >&6
9140 lt_cv_prog_compiler__b=no
9141 save_LDFLAGS="$LDFLAGS"
9142 LDFLAGS="$LDFLAGS -b"
9143 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9144 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9145 # The linker can only warn and ignore the option if not recognized
9146 # So say no if there are warnings
9147 if test -s conftest.err; then
9148 # Append any errors to the config.log.
9149 cat conftest.err 1>&5
9150 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9152 if diff conftest.exp conftest.er2 >/dev/null; then
9153 lt_cv_prog_compiler__b=yes
9156 lt_cv_prog_compiler__b=yes
9160 LDFLAGS="$save_LDFLAGS"
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9164 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9166 if test x"$lt_cv_prog_compiler__b" = xyes; then
9167 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9169 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9175 if test "$with_gnu_ld" = no; then
9176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9177 hardcode_libdir_separator=:
9182 hardcode_shlibpath_var=no
9186 hardcode_direct_absolute=yes
9187 export_dynamic_flag_spec='${wl}-E'
9189 # hardcode_minus_L: Not really in the search PATH,
9190 # but as the default location of the library.
9191 hardcode_minus_L=yes
9197 irix5* | irix6* | nonstopux*)
9198 if test "$GCC" = yes; then
9199 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'
9200 # Try to use the -exported_symbol ld option, if it does not
9201 # work, assume that -exports_file does not work either and
9202 # implicitly export all symbols.
9203 # This should be the same for all languages, so no per-tag cache variable.
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9205 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9206 if ${lt_cv_irix_exported_symbol+:} false; then :
9207 $as_echo_n "(cached) " >&6
9209 save_LDFLAGS="$LDFLAGS"
9210 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9213 int foo (void) { return 0; }
9215 if ac_fn_c_try_link "$LINENO"; then :
9216 lt_cv_irix_exported_symbol=yes
9218 lt_cv_irix_exported_symbol=no
9220 rm -f core conftest.err conftest.$ac_objext \
9221 conftest$ac_exeext conftest.$ac_ext
9222 LDFLAGS="$save_LDFLAGS"
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9225 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9226 if test "$lt_cv_irix_exported_symbol" = yes; then
9227 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'
9230 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'
9231 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'
9233 archive_cmds_need_lc='no'
9234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9235 hardcode_libdir_separator=:
9237 link_all_deplibs=yes
9241 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9244 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9246 hardcode_libdir_flag_spec='-R$libdir'
9248 hardcode_shlibpath_var=no
9252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255 hardcode_libdir_separator=:
9256 hardcode_shlibpath_var=no
9263 if test -f /usr/libexec/ld.so; then
9265 hardcode_shlibpath_var=no
9266 hardcode_direct_absolute=yes
9267 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9269 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9270 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9271 export_dynamic_flag_spec='${wl}-E'
9274 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9276 hardcode_libdir_flag_spec='-R$libdir'
9279 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9280 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9290 hardcode_libdir_flag_spec='-L$libdir'
9291 hardcode_minus_L=yes
9292 allow_undefined_flag=unsupported
9293 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'
9294 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9298 if test "$GCC" = yes; then
9299 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9300 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'
9302 allow_undefined_flag=' -expect_unresolved \*'
9303 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'
9305 archive_cmds_need_lc='no'
9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307 hardcode_libdir_separator=:
9310 osf4* | osf5*) # as osf3* with the addition of -msym flag
9311 if test "$GCC" = yes; then
9312 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9313 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'
9314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9316 allow_undefined_flag=' -expect_unresolved \*'
9317 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'
9318 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~
9319 $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'
9321 # Both c and cxx compiler support -rpath directly
9322 hardcode_libdir_flag_spec='-rpath $libdir'
9324 archive_cmds_need_lc='no'
9325 hardcode_libdir_separator=:
9329 no_undefined_flag=' -z defs'
9330 if test "$GCC" = yes; then
9332 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9334 $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'
9336 case `$CC -V 2>&1` in
9339 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9341 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9345 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9346 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9347 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9351 hardcode_libdir_flag_spec='-R$libdir'
9352 hardcode_shlibpath_var=no
9354 solaris2.[0-5] | solaris2.[0-5].*) ;;
9356 # The compiler driver will combine and reorder linker options,
9357 # but understands `-z linker_flag'. GCC discards it without `$wl',
9358 # but is careful enough not to reorder.
9359 # Supported since Solaris 2.6 (maybe 2.5.1?)
9360 if test "$GCC" = yes; then
9361 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9363 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9367 link_all_deplibs=yes
9371 if test "x$host_vendor" = xsequent; then
9372 # Use $CC to link under sequent, because it throws in some extra .o
9373 # files that make .init and .fini sections work.
9374 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9376 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9378 hardcode_libdir_flag_spec='-L$libdir'
9380 hardcode_minus_L=yes
9381 hardcode_shlibpath_var=no
9385 case $host_vendor in
9387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9388 hardcode_direct=yes # is this really true???
9391 ## LD is ld it makes a PLAMLIB
9392 ## CC just makes a GrossModule.
9393 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9394 reload_cmds='$CC -r -o $output$reload_objs'
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9402 runpath_var='LD_RUN_PATH'
9403 hardcode_shlibpath_var=no
9407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408 hardcode_shlibpath_var=no
9409 export_dynamic_flag_spec='-Bexport'
9413 if test -d /usr/nec; then
9414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415 hardcode_shlibpath_var=no
9416 runpath_var=LD_RUN_PATH
9417 hardcode_runpath_var=yes
9422 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9423 no_undefined_flag='${wl}-z,text'
9424 archive_cmds_need_lc=no
9425 hardcode_shlibpath_var=no
9426 runpath_var='LD_RUN_PATH'
9428 if test "$GCC" = yes; then
9429 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9430 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9433 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 sysv5* | sco3.2v5* | sco5v6*)
9438 # Note: We can NOT use -z defs as we might desire, because we do not
9439 # link with -lc, and that would cause any symbols used from libc to
9440 # always be unresolved, which means just about no library would
9441 # ever link correctly. If we're not using GNU ld we use -z text
9442 # though, which does catch some bad symbols but isn't as heavy-handed
9444 no_undefined_flag='${wl}-z,text'
9445 allow_undefined_flag='${wl}-z,nodefs'
9446 archive_cmds_need_lc=no
9447 hardcode_shlibpath_var=no
9448 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9449 hardcode_libdir_separator=':'
9450 link_all_deplibs=yes
9451 export_dynamic_flag_spec='${wl}-Bexport'
9452 runpath_var='LD_RUN_PATH'
9454 if test "$GCC" = yes; then
9455 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9456 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9458 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9459 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_libdir_flag_spec='-L$libdir'
9466 hardcode_shlibpath_var=no
9474 if test x$host_vendor = xsni; then
9476 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9477 export_dynamic_flag_spec='${wl}-Blargedynsym'
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9484 $as_echo "$ld_shlibs" >&6; }
9485 test "$ld_shlibs" = no && can_build_shared=no
9487 with_gnu_ld=$with_gnu_ld
9504 # Do we need to explicitly link libc?
9506 case "x$archive_cmds_need_lc" in
9508 # Assume -lc should be added
9509 archive_cmds_need_lc=yes
9511 if test "$enable_shared" = yes && test "$GCC" = yes; then
9512 case $archive_cmds in
9514 # FIXME: we may have to deal with multi-command sequences.
9517 # Test whether the compiler implicitly links with -lc since on some
9518 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9519 # to ld, don't add -lc before -lgcc.
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9521 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9522 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9523 $as_echo_n "(cached) " >&6
9526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9529 (eval $ac_compile) 2>&5
9531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9532 test $ac_status = 0; } 2>conftest.err; then
9535 libobjs=conftest.$ac_objext
9537 wl=$lt_prog_compiler_wl
9538 pic_flag=$lt_prog_compiler_pic
9544 lt_save_allow_undefined_flag=$allow_undefined_flag
9545 allow_undefined_flag=
9546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9547 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9550 test $ac_status = 0; }
9552 lt_cv_archive_cmds_need_lc=no
9554 lt_cv_archive_cmds_need_lc=yes
9556 allow_undefined_flag=$lt_save_allow_undefined_flag
9558 cat conftest.err 1>&5
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9564 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9565 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9729 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9731 if test "$GCC" = yes; then
9733 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9734 *) lt_awk_arg="/^libraries:/" ;;
9737 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9738 *) lt_sed_strip_eq="s,=/,/,g" ;;
9740 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9741 case $lt_search_path_spec in
9743 # if the path contains ";" then we assume it to be the separator
9744 # otherwise default to the standard path separator (i.e. ":") - it is
9745 # assumed that no part of a normal pathname contains ";" but that should
9746 # okay in the real world where ";" in dirpaths is itself problematic.
9747 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9750 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9753 # Ok, now we have the path, separated by spaces, we can step through it
9754 # and add multilib dir if necessary.
9755 lt_tmp_lt_search_path_spec=
9756 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9757 for lt_sys_path in $lt_search_path_spec; do
9758 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9759 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9761 test -d "$lt_sys_path" && \
9762 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9765 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9766 BEGIN {RS=" "; FS="/|\n";} {
9769 for (lt_i = NF; lt_i > 0; lt_i--) {
9770 if ($lt_i != "" && $lt_i != ".") {
9771 if ($lt_i == "..") {
9774 if (lt_count == 0) {
9775 lt_foo="/" $lt_i lt_foo;
9782 if (lt_foo != "") { lt_freq[lt_foo]++; }
9783 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9785 # AWK program above erroneously prepends '/' to C:/dos/paths
9788 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9789 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9791 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9793 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9796 libname_spec='lib$name'
9804 shlibpath_overrides_runpath=unknown
9806 dynamic_linker="$host_os ld.so"
9807 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9808 need_lib_prefix=unknown
9809 hardcode_into_libs=no
9811 # when you set need_version to no, make sure it does not cause -set_version
9812 # flags to be left without arguments
9813 need_version=unknown
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9819 shlibpath_var=LIBPATH
9821 # AIX 3 has no versioning support, so we append a major version to the name.
9822 soname_spec='${libname}${release}${shared_ext}$major'
9829 hardcode_into_libs=yes
9830 if test "$host_cpu" = ia64; then
9831 # AIX 5 supports IA64
9832 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9833 shlibpath_var=LD_LIBRARY_PATH
9835 # With GCC up to 2.95.x, collect2 would create an import file
9836 # for dependence libraries. The import file would start with
9837 # the line `#! .'. This would cause the generated library to
9838 # depend on `.', always an invalid library. This was fixed in
9839 # development snapshots of GCC prior to 3.0.
9841 aix4 | aix4.[01] | aix4.[01].*)
9842 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9844 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9851 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9852 # soname into executable. Probably we can add versioning support to
9853 # collect2, so additional links can be useful in future.
9854 if test "$aix_use_runtimelinking" = yes; then
9855 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9856 # instead of lib<name>.a to let people know that these are not
9857 # typical AIX shared libraries.
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860 # We preserve .a as extension for shared libraries through AIX4.2
9861 # and later when we are not doing run time linking.
9862 library_names_spec='${libname}${release}.a $libname.a'
9863 soname_spec='${libname}${release}${shared_ext}$major'
9865 shlibpath_var=LIBPATH
9872 # Since July 2007 AmigaOS4 officially supports .so libraries.
9873 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877 library_names_spec='$libname.ixlibrary $libname.a'
9878 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9879 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'
9885 library_names_spec='${libname}${shared_ext}'
9886 dynamic_linker="$host_os ld.so"
9887 shlibpath_var=LIBRARY_PATH
9893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9894 soname_spec='${libname}${release}${shared_ext}$major'
9895 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9896 shlibpath_var=LD_LIBRARY_PATH
9897 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9898 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9899 # the default ld.so.conf also contains /usr/contrib/lib and
9900 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9901 # libtool to hard-code these into programs
9904 cygwin* | mingw* | pw32* | cegcc*)
9905 version_type=windows
9910 case $GCC,$cc_basename in
9913 library_names_spec='$libname.dll.a'
9914 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9915 postinstall_cmds='base_file=`basename \${file}`~
9916 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9917 dldir=$destdir/`dirname \$dlpath`~
9918 test -d \$dldir || mkdir -p \$dldir~
9919 $install_prog $dir/$dlname \$dldir/$dlname~
9920 chmod a+x \$dldir/$dlname~
9921 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9922 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9925 dlpath=$dir/\$dldll~
9927 shlibpath_overrides_runpath=yes
9931 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9932 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9937 # MinGW DLLs use traditional 'lib' prefix
9938 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9941 # pw32 DLLs use 'pw' prefix rather than 'lib'
9942 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9945 dynamic_linker='Win32 ld.exe'
9950 libname_spec='$name'
9951 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9952 library_names_spec='${libname}.dll.lib'
9956 sys_lib_search_path_spec=
9962 # Let DOS variable expansion print the short 8.3 style file name.
9963 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9964 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9967 # Convert to MSYS style.
9968 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9971 # Convert to unix form, then to dos form, then back to unix form
9972 # but this time dos style (no spaces!) so that the unix form looks
9973 # like /cygdrive/c/PROGRA~1:/cygdr...
9974 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9975 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9976 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9979 sys_lib_search_path_spec="$LIB"
9980 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9981 # It is most probably a Windows format PATH.
9982 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9986 # FIXME: find the short name or the path components, as spaces are
9987 # common. (e.g. "Program Files" -> "PROGRA~1")
9991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9992 postinstall_cmds='base_file=`basename \${file}`~
9993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9994 dldir=$destdir/`dirname \$dlpath`~
9995 test -d \$dldir || mkdir -p \$dldir~
9996 $install_prog $dir/$dlname \$dldir/$dlname'
9997 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9998 dlpath=$dir/\$dldll~
10000 shlibpath_overrides_runpath=yes
10001 dynamic_linker='Win32 link.exe'
10005 # Assume MSVC wrapper
10006 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10007 dynamic_linker='Win32 ld.exe'
10010 # FIXME: first we should search . and the directory the executable is in
10014 darwin* | rhapsody*)
10015 dynamic_linker="$host_os dyld"
10016 version_type=darwin
10019 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10020 soname_spec='${libname}${release}${major}$shared_ext'
10021 shlibpath_overrides_runpath=yes
10022 shlibpath_var=DYLD_LIBRARY_PATH
10023 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10025 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10026 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10034 soname_spec='${libname}${release}${shared_ext}$major'
10035 shlibpath_var=LD_LIBRARY_PATH
10042 freebsd* | dragonfly*)
10043 # DragonFly does not have aout. When/if they implement a new
10044 # versioning mechanism, adjust this.
10045 if test -x /usr/bin/objformat; then
10046 objformat=`/usr/bin/objformat`
10049 freebsd[123]*) objformat=aout ;;
10050 *) objformat=elf ;;
10053 version_type=freebsd-$objformat
10054 case $version_type in
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10065 shlibpath_var=LD_LIBRARY_PATH
10068 shlibpath_overrides_runpath=yes
10070 freebsd3.[01]* | freebsdelf3.[01]*)
10071 shlibpath_overrides_runpath=yes
10072 hardcode_into_libs=yes
10074 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10075 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10076 shlibpath_overrides_runpath=no
10077 hardcode_into_libs=yes
10079 *) # from 4.6 on, and DragonFly
10080 shlibpath_overrides_runpath=yes
10081 hardcode_into_libs=yes
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 shlibpath_var=LD_LIBRARY_PATH
10093 hardcode_into_libs=yes
10100 dynamic_linker="$host_os runtime_loader"
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10102 soname_spec='${libname}${release}${shared_ext}$major'
10103 shlibpath_var=LIBRARY_PATH
10104 shlibpath_overrides_runpath=yes
10105 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10106 hardcode_into_libs=yes
10109 hpux9* | hpux10* | hpux11*)
10110 # Give a soname corresponding to the major version so that dld.sl refuses to
10111 # link against other versions.
10118 hardcode_into_libs=yes
10119 dynamic_linker="$host_os dld.so"
10120 shlibpath_var=LD_LIBRARY_PATH
10121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 if test "X$HPUX_IA64_MODE" = X32; then
10125 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10127 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10133 hardcode_into_libs=yes
10134 dynamic_linker="$host_os dld.sl"
10135 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10136 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10140 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10144 dynamic_linker="$host_os dld.sl"
10145 shlibpath_var=SHLIB_PATH
10146 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148 soname_spec='${libname}${release}${shared_ext}$major'
10151 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10152 postinstall_cmds='chmod 555 $lib'
10153 # or fails outright, so override atomically:
10154 install_override_mode=555
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10164 shlibpath_var=LD_LIBRARY_PATH
10165 shlibpath_overrides_runpath=no
10166 hardcode_into_libs=yes
10169 irix5* | irix6* | nonstopux*)
10171 nonstopux*) version_type=nonstopux ;;
10173 if test "$lt_cv_prog_gnu_ld" = yes; then
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10184 irix5* | nonstopux*)
10185 libsuff= shlibsuff=
10188 case $LD in # libtool.m4 will add one of these switches to LD
10189 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10190 libsuff= shlibsuff= libmagic=32-bit;;
10191 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10192 libsuff=32 shlibsuff=N32 libmagic=N32;;
10193 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10194 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10195 *) libsuff= shlibsuff= libmagic=never-match;;
10199 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10200 shlibpath_overrides_runpath=no
10201 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10202 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10203 hardcode_into_libs=yes
10206 # No shared lib support for Linux oldld, aout, or coff.
10207 linux*oldld* | linux*aout* | linux*coff*)
10211 # This must be Linux ELF.
10212 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10219 shlibpath_var=LD_LIBRARY_PATH
10220 shlibpath_overrides_runpath=no
10222 # Some binutils ld are patched to set DT_RUNPATH
10223 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10224 $as_echo_n "(cached) " >&6
10226 lt_cv_shlibpath_overrides_runpath=no
10227 save_LDFLAGS=$LDFLAGS
10228 save_libdir=$libdir
10229 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10230 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h. */
10242 if ac_fn_c_try_link "$LINENO"; then :
10243 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10244 lt_cv_shlibpath_overrides_runpath=yes
10247 rm -f core conftest.err conftest.$ac_objext \
10248 conftest$ac_exeext conftest.$ac_ext
10249 LDFLAGS=$save_LDFLAGS
10250 libdir=$save_libdir
10254 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10256 # This implies no fast_install, which is unacceptable.
10257 # Some rework will be needed to allow for fast_install
10258 # before this can be enabled.
10259 hardcode_into_libs=yes
10261 # Append ld.so.conf contents to the search path
10262 if test -f /etc/ld.so.conf; then
10263 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' ' '`
10264 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10267 # We used to test for /lib/ld.so.1 and disable shared libraries on
10268 # powerpc, because MkLinux only supported shared libraries with the
10269 # GNU dynamic linker. Since this was broken with cross compilers,
10270 # most powerpc-linux boxes support dynamic linking these days and
10271 # people can always --disable-shared, the test was removed, and we
10272 # assume the GNU/Linux dynamic linker is in use.
10273 dynamic_linker='GNU/Linux ld.so'
10280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10283 dynamic_linker='NetBSD (a.out) ld.so'
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 dynamic_linker='NetBSD ld.elf_so'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes
10291 hardcode_into_libs=yes
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=yes
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 shlibpath_overrides_runpath=no
10309 hardcode_into_libs=yes
10310 dynamic_linker='ldqnx.so'
10315 sys_lib_dlsearch_path_spec="/usr/lib"
10317 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10319 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10320 *) need_version=no ;;
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10327 openbsd2.[89] | openbsd2.[89].*)
10328 shlibpath_overrides_runpath=no
10331 shlibpath_overrides_runpath=yes
10335 shlibpath_overrides_runpath=yes
10340 libname_spec='$name'
10343 library_names_spec='$libname${shared_ext} $libname.a'
10344 dynamic_linker='OS/2 ld.exe'
10345 shlibpath_var=LIBPATH
10348 osf3* | osf4* | osf5*)
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10356 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=yes
10371 hardcode_into_libs=yes
10372 # ldd complains unless libraries are executable
10373 postinstall_cmds='chmod +x $lib'
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10379 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=yes
10382 if test "$with_gnu_ld" = yes; then
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 case $host_vendor in
10395 shlibpath_overrides_runpath=no
10397 runpath_var=LD_RUN_PATH
10405 shlibpath_overrides_runpath=no
10406 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10412 if test -d /usr/nec ;then
10414 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10415 soname_spec='$libname${shared_ext}.$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10421 version_type=freebsd-elf
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=yes
10428 hardcode_into_libs=yes
10429 if test "$with_gnu_ld" = yes; then
10430 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10432 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10435 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10439 sys_lib_dlsearch_path_spec='/usr/lib'
10443 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=no
10450 hardcode_into_libs=yes
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 shlibpath_var=LD_LIBRARY_PATH
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10465 $as_echo "$dynamic_linker" >&6; }
10466 test "$dynamic_linker" = no && can_build_shared=no
10468 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10469 if test "$GCC" = yes; then
10470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10473 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10474 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10476 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10477 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10572 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10574 if test -n "$hardcode_libdir_flag_spec" ||
10575 test -n "$runpath_var" ||
10576 test "X$hardcode_automatic" = "Xyes" ; then
10578 # We can hardcode non-existent directories.
10579 if test "$hardcode_direct" != no &&
10580 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10581 # have to relink, otherwise we might link with an installed library
10582 # when we should be linking with a yet-to-be-installed one
10583 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10584 test "$hardcode_minus_L" != no; then
10585 # Linking always hardcodes the temporary library directory.
10586 hardcode_action=relink
10588 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10589 hardcode_action=immediate
10592 # We cannot hardcode anything, or else we can only hardcode existing
10594 hardcode_action=unsupported
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10597 $as_echo "$hardcode_action" >&6; }
10599 if test "$hardcode_action" = relink ||
10600 test "$inherit_rpath" = yes; then
10601 # Fast installation is not supported
10602 enable_fast_install=no
10603 elif test "$shlibpath_overrides_runpath" = yes ||
10604 test "$enable_shared" = no; then
10605 # Fast installation is not necessary
10606 enable_fast_install=needless
10614 if test "x$enable_dlopen" != xyes; then
10615 enable_dlopen=unknown
10616 enable_dlopen_self=unknown
10617 enable_dlopen_self_static=unknown
10624 lt_cv_dlopen="load_add_on"
10626 lt_cv_dlopen_self=yes
10629 mingw* | pw32* | cegcc*)
10630 lt_cv_dlopen="LoadLibrary"
10635 lt_cv_dlopen="dlopen"
10640 # if libdl is installed we need to link against it
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10642 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10643 if ${ac_cv_lib_dl_dlopen+:} false; then :
10644 $as_echo_n "(cached) " >&6
10646 ac_check_lib_save_LIBS=$LIBS
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10651 /* Override any GCC internal prototype to avoid an error.
10652 Use char because int might match the return type of a GCC
10653 builtin and then its argument prototype would still apply. */
10666 if ac_fn_c_try_link "$LINENO"; then :
10667 ac_cv_lib_dl_dlopen=yes
10669 ac_cv_lib_dl_dlopen=no
10671 rm -f core conftest.err conftest.$ac_objext \
10672 conftest$ac_exeext conftest.$ac_ext
10673 LIBS=$ac_check_lib_save_LIBS
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10676 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10677 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10678 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10681 lt_cv_dlopen="dyld"
10683 lt_cv_dlopen_self=yes
10690 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10691 if test "x$ac_cv_func_shl_load" = xyes; then :
10692 lt_cv_dlopen="shl_load"
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10695 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10696 if ${ac_cv_lib_dld_shl_load+:} false; then :
10697 $as_echo_n "(cached) " >&6
10699 ac_check_lib_save_LIBS=$LIBS
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10704 /* Override any GCC internal prototype to avoid an error.
10705 Use char because int might match the return type of a GCC
10706 builtin and then its argument prototype would still apply. */
10714 return shl_load ();
10719 if ac_fn_c_try_link "$LINENO"; then :
10720 ac_cv_lib_dld_shl_load=yes
10722 ac_cv_lib_dld_shl_load=no
10724 rm -f core conftest.err conftest.$ac_objext \
10725 conftest$ac_exeext conftest.$ac_ext
10726 LIBS=$ac_check_lib_save_LIBS
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10729 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10730 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10731 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10733 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10734 if test "x$ac_cv_func_dlopen" = xyes; then :
10735 lt_cv_dlopen="dlopen"
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10738 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10739 if ${ac_cv_lib_dl_dlopen+:} false; then :
10740 $as_echo_n "(cached) " >&6
10742 ac_check_lib_save_LIBS=$LIBS
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10747 /* Override any GCC internal prototype to avoid an error.
10748 Use char because int might match the return type of a GCC
10749 builtin and then its argument prototype would still apply. */
10762 if ac_fn_c_try_link "$LINENO"; then :
10763 ac_cv_lib_dl_dlopen=yes
10765 ac_cv_lib_dl_dlopen=no
10767 rm -f core conftest.err conftest.$ac_objext \
10768 conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10772 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10773 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10774 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10777 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10778 if ${ac_cv_lib_svld_dlopen+:} false; then :
10779 $as_echo_n "(cached) " >&6
10781 ac_check_lib_save_LIBS=$LIBS
10782 LIBS="-lsvld $LIBS"
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10786 /* Override any GCC internal prototype to avoid an error.
10787 Use char because int might match the return type of a GCC
10788 builtin and then its argument prototype would still apply. */
10801 if ac_fn_c_try_link "$LINENO"; then :
10802 ac_cv_lib_svld_dlopen=yes
10804 ac_cv_lib_svld_dlopen=no
10806 rm -f core conftest.err conftest.$ac_objext \
10807 conftest$ac_exeext conftest.$ac_ext
10808 LIBS=$ac_check_lib_save_LIBS
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10811 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10812 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10813 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10816 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10817 if ${ac_cv_lib_dld_dld_link+:} false; then :
10818 $as_echo_n "(cached) " >&6
10820 ac_check_lib_save_LIBS=$LIBS
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10825 /* Override any GCC internal prototype to avoid an error.
10826 Use char because int might match the return type of a GCC
10827 builtin and then its argument prototype would still apply. */
10835 return dld_link ();
10840 if ac_fn_c_try_link "$LINENO"; then :
10841 ac_cv_lib_dld_dld_link=yes
10843 ac_cv_lib_dld_dld_link=no
10845 rm -f core conftest.err conftest.$ac_objext \
10846 conftest$ac_exeext conftest.$ac_ext
10847 LIBS=$ac_check_lib_save_LIBS
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10850 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10851 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10852 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10873 if test "x$lt_cv_dlopen" != xno; then
10879 case $lt_cv_dlopen in
10881 save_CPPFLAGS="$CPPFLAGS"
10882 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10884 save_LDFLAGS="$LDFLAGS"
10885 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10888 LIBS="$lt_cv_dlopen_libs $LIBS"
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10891 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10892 if ${lt_cv_dlopen_self+:} false; then :
10893 $as_echo_n "(cached) " >&6
10895 if test "$cross_compiling" = yes; then :
10896 lt_cv_dlopen_self=cross
10898 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10899 lt_status=$lt_dlunknown
10900 cat > conftest.$ac_ext <<_LT_EOF
10901 #line $LINENO "configure"
10902 #include "confdefs.h"
10911 # define LT_DLGLOBAL RTLD_GLOBAL
10914 # define LT_DLGLOBAL DL_GLOBAL
10916 # define LT_DLGLOBAL 0
10920 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10921 find out it does not work in some platform. */
10922 #ifndef LT_DLLAZY_OR_NOW
10924 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10927 # define LT_DLLAZY_OR_NOW DL_LAZY
10930 # define LT_DLLAZY_OR_NOW RTLD_NOW
10933 # define LT_DLLAZY_OR_NOW DL_NOW
10935 # define LT_DLLAZY_OR_NOW 0
10942 /* When -fvisbility=hidden is used, assume the code has been annotated
10943 correspondingly for the symbols needed. */
10944 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10945 int fnord () __attribute__((visibility("default")));
10948 int fnord () { return 42; }
10951 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10952 int status = $lt_dlunknown;
10956 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10959 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10960 else puts (dlerror ());
10962 /* dlclose (self); */
10970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10971 (eval $ac_link) 2>&5
10973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10974 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10975 (./conftest; exit; ) >&5 2>/dev/null
10977 case x$lt_status in
10978 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10979 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10980 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10983 # compilation failed
10984 lt_cv_dlopen_self=no
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10992 $as_echo "$lt_cv_dlopen_self" >&6; }
10994 if test "x$lt_cv_dlopen_self" = xyes; then
10995 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10997 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10998 if ${lt_cv_dlopen_self_static+:} false; then :
10999 $as_echo_n "(cached) " >&6
11001 if test "$cross_compiling" = yes; then :
11002 lt_cv_dlopen_self_static=cross
11004 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11005 lt_status=$lt_dlunknown
11006 cat > conftest.$ac_ext <<_LT_EOF
11007 #line $LINENO "configure"
11008 #include "confdefs.h"
11017 # define LT_DLGLOBAL RTLD_GLOBAL
11020 # define LT_DLGLOBAL DL_GLOBAL
11022 # define LT_DLGLOBAL 0
11026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11027 find out it does not work in some platform. */
11028 #ifndef LT_DLLAZY_OR_NOW
11030 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11033 # define LT_DLLAZY_OR_NOW DL_LAZY
11036 # define LT_DLLAZY_OR_NOW RTLD_NOW
11039 # define LT_DLLAZY_OR_NOW DL_NOW
11041 # define LT_DLLAZY_OR_NOW 0
11048 /* When -fvisbility=hidden is used, assume the code has been annotated
11049 correspondingly for the symbols needed. */
11050 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11051 int fnord () __attribute__((visibility("default")));
11054 int fnord () { return 42; }
11057 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11058 int status = $lt_dlunknown;
11062 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11065 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11066 else puts (dlerror ());
11068 /* dlclose (self); */
11076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11077 (eval $ac_link) 2>&5
11079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11080 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11081 (./conftest; exit; ) >&5 2>/dev/null
11083 case x$lt_status in
11084 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11085 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11086 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11089 # compilation failed
11090 lt_cv_dlopen_self_static=no
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11098 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11101 CPPFLAGS="$save_CPPFLAGS"
11102 LDFLAGS="$save_LDFLAGS"
11107 case $lt_cv_dlopen_self in
11108 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11109 *) enable_dlopen_self=unknown ;;
11112 case $lt_cv_dlopen_self_static in
11113 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11114 *) enable_dlopen_self_static=unknown ;;
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11137 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11138 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11139 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11140 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11142 $as_echo "yes" >&6; }
11144 # FIXME - insert some real tests, host_os isn't really good enough
11147 if test -n "$STRIP" ; then
11148 striplib="$STRIP -x"
11149 old_striplib="$STRIP -S"
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11151 $as_echo "yes" >&6; }
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11175 # Report which library types will actually be built
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11177 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11179 $as_echo "$can_build_shared" >&6; }
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11182 $as_echo_n "checking whether to build shared libraries... " >&6; }
11183 test "$can_build_shared" = "no" && enable_shared=no
11185 # On AIX, shared libraries and static libraries use the same namespace, and
11186 # are all built from PIC.
11189 test "$enable_shared" = yes && enable_static=no
11190 if test -n "$RANLIB"; then
11191 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11192 postinstall_cmds='$RANLIB $lib'
11197 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11198 test "$enable_shared" = yes && enable_static=no
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11203 $as_echo "$enable_shared" >&6; }
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11206 $as_echo_n "checking whether to build static libraries... " >&6; }
11207 # Make sure either enable_shared or enable_static is yes.
11208 test "$enable_shared" = yes || enable_static=yes
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11210 $as_echo "$enable_static" >&6; }
11217 ac_cpp='$CPP $CPPFLAGS'
11218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11236 ac_config_commands="$ac_config_commands libtool"
11241 # Only expand once:
11245 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11258 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11259 if ${ac_cv_prog_cc_c99+:} false; then :
11260 $as_echo_n "(cached) " >&6
11262 ac_cv_prog_cc_c99=no
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11266 #include <stdarg.h>
11267 #include <stdbool.h>
11268 #include <stdlib.h>
11272 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11273 #define debug(...) fprintf (stderr, __VA_ARGS__)
11274 #define showlist(...) puts (#__VA_ARGS__)
11275 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11277 test_varargs_macros (void)
11282 debug ("X = %d\n", x);
11283 showlist (The first, second, and third items.);
11284 report (x>y, "x is %d but y is %d", x, y);
11287 // Check long long types.
11288 #define BIG64 18446744073709551615ull
11289 #define BIG32 4294967295ul
11290 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11292 your preprocessor is broken;
11296 your preprocessor is broken;
11298 static long long int bignum = -9223372036854775807LL;
11299 static unsigned long long int ubignum = BIG64;
11301 struct incomplete_array
11307 struct named_init {
11309 const wchar_t *name;
11313 typedef const char *ccp;
11316 test_restrict (ccp restrict text)
11318 // See if C++-style comments work.
11319 // Iterate through items via the restricted pointer.
11320 // Also check for declarations in for loops.
11321 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11326 // Check varargs and va_copy.
11328 test_varargs (const char *format, ...)
11331 va_start (args, format);
11333 va_copy (args_copy, args);
11343 case 's': // string
11344 str = va_arg (args_copy, const char *);
11347 number = va_arg (args_copy, int);
11350 fnumber = va_arg (args_copy, double);
11356 va_end (args_copy);
11365 _Bool success = false;
11368 if (test_restrict ("String literal") == 0)
11370 char *restrict newvar = "Another string";
11373 test_varargs ("s, d' f .", "string", 65, 34.234);
11374 test_varargs_macros ();
11376 // Check flexible array members.
11377 struct incomplete_array *ia =
11378 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11380 for (int i = 0; i < ia->datasize; ++i)
11381 ia->data[i] = i * 1.234;
11383 // Check named initializers.
11384 struct named_init ni = {
11386 .name = L"Test wide string",
11387 .average = 543.34343,
11392 int dynamic_array[ni.number];
11393 dynamic_array[ni.number - 1] = 543;
11395 // work around unused variable warnings
11396 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11397 || dynamic_array[ni.number - 1] != 543);
11403 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11405 CC="$ac_save_CC $ac_arg"
11406 if ac_fn_c_try_compile "$LINENO"; then :
11407 ac_cv_prog_cc_c99=$ac_arg
11409 rm -f core conftest.err conftest.$ac_objext
11410 test "x$ac_cv_prog_cc_c99" != "xno" && break
11412 rm -f conftest.$ac_ext
11417 case "x$ac_cv_prog_cc_c99" in
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11420 $as_echo "none needed" >&6; } ;;
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11423 $as_echo "unsupported" >&6; } ;;
11425 CC="$CC $ac_cv_prog_cc_c99"
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11427 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11429 if test "x$ac_cv_prog_cc_c99" != xno; then :
11438 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11439 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11445 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11446 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11452 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11453 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11462 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11463 if test -n "$ac_tool_prefix"; then
11464 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11465 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467 $as_echo_n "checking for $ac_word... " >&6; }
11468 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11469 $as_echo_n "(cached) " >&6
11471 case $PKG_CONFIG in
11473 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477 for as_dir in $PATH
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11483 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11495 if test -n "$PKG_CONFIG"; then
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11497 $as_echo "$PKG_CONFIG" >&6; }
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500 $as_echo "no" >&6; }
11505 if test -z "$ac_cv_path_PKG_CONFIG"; then
11506 ac_pt_PKG_CONFIG=$PKG_CONFIG
11507 # Extract the first word of "pkg-config", so it can be a program name with args.
11508 set dummy pkg-config; ac_word=$2
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11510 $as_echo_n "checking for $ac_word... " >&6; }
11511 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11512 $as_echo_n "(cached) " >&6
11514 case $ac_pt_PKG_CONFIG in
11516 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520 for as_dir in $PATH
11523 test -z "$as_dir" && as_dir=.
11524 for ac_exec_ext in '' $ac_executable_extensions; do
11525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11526 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11537 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11538 if test -n "$ac_pt_PKG_CONFIG"; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11540 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543 $as_echo "no" >&6; }
11546 if test "x$ac_pt_PKG_CONFIG" = x; then
11549 case $cross_compiling:$ac_tool_warned in
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11553 ac_tool_warned=yes ;;
11555 PKG_CONFIG=$ac_pt_PKG_CONFIG
11558 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11562 if test -n "$PKG_CONFIG"; then
11563 _pkg_min_version=0.9.0
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11565 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11566 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11568 $as_echo "yes" >&6; }
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571 $as_echo "no" >&6; }
11581 # Check whether --enable-selective-werror was given.
11582 if test "${enable_selective_werror+set}" = set; then :
11583 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11585 SELECTIVE_WERROR=yes
11592 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11593 if test "x$SUNCC" = "xyes"; then
11599 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11611 xorg_testset_save_CFLAGS="$CFLAGS"
11613 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11616 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11617 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11618 $as_echo_n "(cached) " >&6
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11624 if ac_fn_c_try_compile "$LINENO"; then :
11625 xorg_cv_compiler_flag_unknown_warning_option=yes
11627 xorg_cv_compiler_flag_unknown_warning_option=no
11629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11632 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11633 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11634 CFLAGS="$xorg_testset_save_CFLAGS"
11637 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11638 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11643 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11644 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11645 $as_echo_n "(cached) " >&6
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11651 if ac_fn_c_try_compile "$LINENO"; then :
11652 xorg_cv_compiler_flag_unused_command_line_argument=yes
11654 xorg_cv_compiler_flag_unused_command_line_argument=no
11656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11659 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11660 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11661 CFLAGS="$xorg_testset_save_CFLAGS"
11666 if test $found = "no" ; then
11667 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11671 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11675 CFLAGS="$CFLAGS -Wall"
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11678 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11679 cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
11680 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11681 $as_echo_n "(cached) " >&6
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11694 if ac_fn_c_try_link "$LINENO"; then :
11695 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11697 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11699 rm -f core conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext conftest.$ac_ext
11704 CFLAGS="$xorg_testset_save_CFLAGS"
11706 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11708 $as_echo "$supported" >&6; }
11709 if test "$supported" = "yes" ; then
11710 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11727 xorg_testset_save_CFLAGS="$CFLAGS"
11729 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11732 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11733 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11734 $as_echo_n "(cached) " >&6
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h. */
11740 if ac_fn_c_try_compile "$LINENO"; then :
11741 xorg_cv_compiler_flag_unknown_warning_option=yes
11743 xorg_cv_compiler_flag_unknown_warning_option=no
11745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11748 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11749 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11750 CFLAGS="$xorg_testset_save_CFLAGS"
11753 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11754 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11759 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11760 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11761 $as_echo_n "(cached) " >&6
11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764 /* end confdefs.h. */
11767 if ac_fn_c_try_compile "$LINENO"; then :
11768 xorg_cv_compiler_flag_unused_command_line_argument=yes
11770 xorg_cv_compiler_flag_unused_command_line_argument=no
11772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11775 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11776 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11777 CFLAGS="$xorg_testset_save_CFLAGS"
11782 if test $found = "no" ; then
11783 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11787 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11791 CFLAGS="$CFLAGS -Wpointer-arith"
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11794 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11795 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
11796 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11797 $as_echo_n "(cached) " >&6
11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11810 if ac_fn_c_try_link "$LINENO"; then :
11811 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11813 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11815 rm -f core conftest.err conftest.$ac_objext \
11816 conftest$ac_exeext conftest.$ac_ext
11820 CFLAGS="$xorg_testset_save_CFLAGS"
11822 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11824 $as_echo "$supported" >&6; }
11825 if test "$supported" = "yes" ; then
11826 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11843 xorg_testset_save_CFLAGS="$CFLAGS"
11845 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11848 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11849 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11850 $as_echo_n "(cached) " >&6
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11856 if ac_fn_c_try_compile "$LINENO"; then :
11857 xorg_cv_compiler_flag_unknown_warning_option=yes
11859 xorg_cv_compiler_flag_unknown_warning_option=no
11861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11864 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11865 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11866 CFLAGS="$xorg_testset_save_CFLAGS"
11869 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11870 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11875 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11876 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11877 $as_echo_n "(cached) " >&6
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h. */
11883 if ac_fn_c_try_compile "$LINENO"; then :
11884 xorg_cv_compiler_flag_unused_command_line_argument=yes
11886 xorg_cv_compiler_flag_unused_command_line_argument=no
11888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11891 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11892 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11893 CFLAGS="$xorg_testset_save_CFLAGS"
11898 if test $found = "no" ; then
11899 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11903 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11907 CFLAGS="$CFLAGS -Wmissing-declarations"
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11910 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11911 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
11912 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11913 $as_echo_n "(cached) " >&6
11915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916 /* end confdefs.h. */
11926 if ac_fn_c_try_link "$LINENO"; then :
11927 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11929 eval `$as_echo "$cacheid" | $as_tr_sh`=no
11931 rm -f core conftest.err conftest.$ac_objext \
11932 conftest$ac_exeext conftest.$ac_ext
11936 CFLAGS="$xorg_testset_save_CFLAGS"
11938 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11940 $as_echo "$supported" >&6; }
11941 if test "$supported" = "yes" ; then
11942 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
11959 xorg_testset_save_CFLAGS="$CFLAGS"
11961 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11964 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11965 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11966 $as_echo_n "(cached) " >&6
11968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11969 /* end confdefs.h. */
11972 if ac_fn_c_try_compile "$LINENO"; then :
11973 xorg_cv_compiler_flag_unknown_warning_option=yes
11975 xorg_cv_compiler_flag_unknown_warning_option=no
11977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11980 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11981 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11982 CFLAGS="$xorg_testset_save_CFLAGS"
11985 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11986 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11991 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11992 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11993 $as_echo_n "(cached) " >&6
11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11999 if ac_fn_c_try_compile "$LINENO"; then :
12000 xorg_cv_compiler_flag_unused_command_line_argument=yes
12002 xorg_cv_compiler_flag_unused_command_line_argument=no
12004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12007 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12008 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12009 CFLAGS="$xorg_testset_save_CFLAGS"
12014 if test $found = "no" ; then
12015 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12019 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12023 CFLAGS="$CFLAGS -Wformat=2"
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12026 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12027 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12028 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12029 $as_echo_n "(cached) " >&6
12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032 /* end confdefs.h. */
12042 if ac_fn_c_try_link "$LINENO"; then :
12043 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12045 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12047 rm -f core conftest.err conftest.$ac_objext \
12048 conftest$ac_exeext conftest.$ac_ext
12052 CFLAGS="$xorg_testset_save_CFLAGS"
12054 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12056 $as_echo "$supported" >&6; }
12057 if test "$supported" = "yes" ; then
12058 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12063 if test $found = "no" ; then
12064 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12068 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12072 CFLAGS="$CFLAGS -Wformat"
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12075 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12076 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12077 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12078 $as_echo_n "(cached) " >&6
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12091 if ac_fn_c_try_link "$LINENO"; then :
12092 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12094 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12096 rm -f core conftest.err conftest.$ac_objext \
12097 conftest$ac_exeext conftest.$ac_ext
12101 CFLAGS="$xorg_testset_save_CFLAGS"
12103 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12105 $as_echo "$supported" >&6; }
12106 if test "$supported" = "yes" ; then
12107 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12126 xorg_testset_save_CFLAGS="$CFLAGS"
12128 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12131 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12132 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12133 $as_echo_n "(cached) " >&6
12135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136 /* end confdefs.h. */
12139 if ac_fn_c_try_compile "$LINENO"; then :
12140 xorg_cv_compiler_flag_unknown_warning_option=yes
12142 xorg_cv_compiler_flag_unknown_warning_option=no
12144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12147 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12148 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12149 CFLAGS="$xorg_testset_save_CFLAGS"
12152 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12153 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12158 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12159 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12160 $as_echo_n "(cached) " >&6
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12166 if ac_fn_c_try_compile "$LINENO"; then :
12167 xorg_cv_compiler_flag_unused_command_line_argument=yes
12169 xorg_cv_compiler_flag_unused_command_line_argument=no
12171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12174 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12175 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12176 CFLAGS="$xorg_testset_save_CFLAGS"
12181 if test $found = "no" ; then
12182 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12186 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12190 CFLAGS="$CFLAGS -Wstrict-prototypes"
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12193 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12194 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12195 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12196 $as_echo_n "(cached) " >&6
12198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h. */
12209 if ac_fn_c_try_link "$LINENO"; then :
12210 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12212 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12214 rm -f core conftest.err conftest.$ac_objext \
12215 conftest$ac_exeext conftest.$ac_ext
12219 CFLAGS="$xorg_testset_save_CFLAGS"
12221 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12223 $as_echo "$supported" >&6; }
12224 if test "$supported" = "yes" ; then
12225 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12242 xorg_testset_save_CFLAGS="$CFLAGS"
12244 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12247 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12248 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12249 $as_echo_n "(cached) " >&6
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12255 if ac_fn_c_try_compile "$LINENO"; then :
12256 xorg_cv_compiler_flag_unknown_warning_option=yes
12258 xorg_cv_compiler_flag_unknown_warning_option=no
12260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12263 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12264 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12265 CFLAGS="$xorg_testset_save_CFLAGS"
12268 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12269 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12274 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12275 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12276 $as_echo_n "(cached) " >&6
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12282 if ac_fn_c_try_compile "$LINENO"; then :
12283 xorg_cv_compiler_flag_unused_command_line_argument=yes
12285 xorg_cv_compiler_flag_unused_command_line_argument=no
12287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12290 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12291 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12292 CFLAGS="$xorg_testset_save_CFLAGS"
12297 if test $found = "no" ; then
12298 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12302 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12306 CFLAGS="$CFLAGS -Wmissing-prototypes"
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12309 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12310 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12311 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12312 $as_echo_n "(cached) " >&6
12314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12325 if ac_fn_c_try_link "$LINENO"; then :
12326 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12328 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12330 rm -f core conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12335 CFLAGS="$xorg_testset_save_CFLAGS"
12337 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12339 $as_echo "$supported" >&6; }
12340 if test "$supported" = "yes" ; then
12341 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12358 xorg_testset_save_CFLAGS="$CFLAGS"
12360 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12363 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12364 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12365 $as_echo_n "(cached) " >&6
12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h. */
12371 if ac_fn_c_try_compile "$LINENO"; then :
12372 xorg_cv_compiler_flag_unknown_warning_option=yes
12374 xorg_cv_compiler_flag_unknown_warning_option=no
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12379 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12380 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12381 CFLAGS="$xorg_testset_save_CFLAGS"
12384 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12385 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12390 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12391 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12392 $as_echo_n "(cached) " >&6
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h. */
12398 if ac_fn_c_try_compile "$LINENO"; then :
12399 xorg_cv_compiler_flag_unused_command_line_argument=yes
12401 xorg_cv_compiler_flag_unused_command_line_argument=no
12403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12406 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12407 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12408 CFLAGS="$xorg_testset_save_CFLAGS"
12413 if test $found = "no" ; then
12414 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12418 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12422 CFLAGS="$CFLAGS -Wnested-externs"
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12425 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12426 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12427 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12428 $as_echo_n "(cached) " >&6
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12441 if ac_fn_c_try_link "$LINENO"; then :
12442 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12444 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12446 rm -f core conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12451 CFLAGS="$xorg_testset_save_CFLAGS"
12453 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12455 $as_echo "$supported" >&6; }
12456 if test "$supported" = "yes" ; then
12457 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12474 xorg_testset_save_CFLAGS="$CFLAGS"
12476 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12479 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12480 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12481 $as_echo_n "(cached) " >&6
12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12487 if ac_fn_c_try_compile "$LINENO"; then :
12488 xorg_cv_compiler_flag_unknown_warning_option=yes
12490 xorg_cv_compiler_flag_unknown_warning_option=no
12492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12495 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12496 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12497 CFLAGS="$xorg_testset_save_CFLAGS"
12500 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12501 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12506 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12507 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12508 $as_echo_n "(cached) " >&6
12510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511 /* end confdefs.h. */
12514 if ac_fn_c_try_compile "$LINENO"; then :
12515 xorg_cv_compiler_flag_unused_command_line_argument=yes
12517 xorg_cv_compiler_flag_unused_command_line_argument=no
12519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12522 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12523 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12524 CFLAGS="$xorg_testset_save_CFLAGS"
12529 if test $found = "no" ; then
12530 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12534 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12538 CFLAGS="$CFLAGS -Wbad-function-cast"
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12541 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12542 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12543 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12544 $as_echo_n "(cached) " >&6
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12557 if ac_fn_c_try_link "$LINENO"; then :
12558 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12560 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12562 rm -f core conftest.err conftest.$ac_objext \
12563 conftest$ac_exeext conftest.$ac_ext
12567 CFLAGS="$xorg_testset_save_CFLAGS"
12569 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12571 $as_echo "$supported" >&6; }
12572 if test "$supported" = "yes" ; then
12573 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12590 xorg_testset_save_CFLAGS="$CFLAGS"
12592 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12595 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12596 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12597 $as_echo_n "(cached) " >&6
12599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h. */
12603 if ac_fn_c_try_compile "$LINENO"; then :
12604 xorg_cv_compiler_flag_unknown_warning_option=yes
12606 xorg_cv_compiler_flag_unknown_warning_option=no
12608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12611 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12612 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12613 CFLAGS="$xorg_testset_save_CFLAGS"
12616 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12617 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12622 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12623 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12624 $as_echo_n "(cached) " >&6
12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627 /* end confdefs.h. */
12630 if ac_fn_c_try_compile "$LINENO"; then :
12631 xorg_cv_compiler_flag_unused_command_line_argument=yes
12633 xorg_cv_compiler_flag_unused_command_line_argument=no
12635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12638 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12639 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12640 CFLAGS="$xorg_testset_save_CFLAGS"
12645 if test $found = "no" ; then
12646 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12650 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12654 CFLAGS="$CFLAGS -Wold-style-definition"
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12657 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12658 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12659 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12660 $as_echo_n "(cached) " >&6
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12673 if ac_fn_c_try_link "$LINENO"; then :
12674 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12676 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12678 rm -f core conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
12683 CFLAGS="$xorg_testset_save_CFLAGS"
12685 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12687 $as_echo "$supported" >&6; }
12688 if test "$supported" = "yes" ; then
12689 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12706 xorg_testset_save_CFLAGS="$CFLAGS"
12708 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12711 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12712 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12713 $as_echo_n "(cached) " >&6
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12719 if ac_fn_c_try_compile "$LINENO"; then :
12720 xorg_cv_compiler_flag_unknown_warning_option=yes
12722 xorg_cv_compiler_flag_unknown_warning_option=no
12724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12727 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12728 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12729 CFLAGS="$xorg_testset_save_CFLAGS"
12732 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12733 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12738 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12739 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12740 $as_echo_n "(cached) " >&6
12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12746 if ac_fn_c_try_compile "$LINENO"; then :
12747 xorg_cv_compiler_flag_unused_command_line_argument=yes
12749 xorg_cv_compiler_flag_unused_command_line_argument=no
12751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12754 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12755 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12756 CFLAGS="$xorg_testset_save_CFLAGS"
12761 if test $found = "no" ; then
12762 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12766 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12770 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12773 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12774 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
12775 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12776 $as_echo_n "(cached) " >&6
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12789 if ac_fn_c_try_link "$LINENO"; then :
12790 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12792 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12794 rm -f core conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
12799 CFLAGS="$xorg_testset_save_CFLAGS"
12801 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12803 $as_echo "$supported" >&6; }
12804 if test "$supported" = "yes" ; then
12805 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12814 # This chunk adds additional warnings that could catch undesired effects.
12826 xorg_testset_save_CFLAGS="$CFLAGS"
12828 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12831 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12832 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12833 $as_echo_n "(cached) " >&6
12835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836 /* end confdefs.h. */
12839 if ac_fn_c_try_compile "$LINENO"; then :
12840 xorg_cv_compiler_flag_unknown_warning_option=yes
12842 xorg_cv_compiler_flag_unknown_warning_option=no
12844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12847 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12848 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12849 CFLAGS="$xorg_testset_save_CFLAGS"
12852 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12853 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12858 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12859 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12860 $as_echo_n "(cached) " >&6
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12866 if ac_fn_c_try_compile "$LINENO"; then :
12867 xorg_cv_compiler_flag_unused_command_line_argument=yes
12869 xorg_cv_compiler_flag_unused_command_line_argument=no
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12874 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12875 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12876 CFLAGS="$xorg_testset_save_CFLAGS"
12881 if test $found = "no" ; then
12882 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12886 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12890 CFLAGS="$CFLAGS -Wunused"
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12893 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
12894 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
12895 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12896 $as_echo_n "(cached) " >&6
12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h. */
12909 if ac_fn_c_try_link "$LINENO"; then :
12910 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12912 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12914 rm -f core conftest.err conftest.$ac_objext \
12915 conftest$ac_exeext conftest.$ac_ext
12919 CFLAGS="$xorg_testset_save_CFLAGS"
12921 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12923 $as_echo "$supported" >&6; }
12924 if test "$supported" = "yes" ; then
12925 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12942 xorg_testset_save_CFLAGS="$CFLAGS"
12944 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12947 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12948 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12949 $as_echo_n "(cached) " >&6
12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952 /* end confdefs.h. */
12955 if ac_fn_c_try_compile "$LINENO"; then :
12956 xorg_cv_compiler_flag_unknown_warning_option=yes
12958 xorg_cv_compiler_flag_unknown_warning_option=no
12960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12963 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12964 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12965 CFLAGS="$xorg_testset_save_CFLAGS"
12968 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12969 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12974 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12975 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12976 $as_echo_n "(cached) " >&6
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12982 if ac_fn_c_try_compile "$LINENO"; then :
12983 xorg_cv_compiler_flag_unused_command_line_argument=yes
12985 xorg_cv_compiler_flag_unused_command_line_argument=no
12987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12990 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12991 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12992 CFLAGS="$xorg_testset_save_CFLAGS"
12997 if test $found = "no" ; then
12998 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13002 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13006 CFLAGS="$CFLAGS -Wuninitialized"
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13009 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13010 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
13011 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13012 $as_echo_n "(cached) " >&6
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13025 if ac_fn_c_try_link "$LINENO"; then :
13026 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13028 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13030 rm -f core conftest.err conftest.$ac_objext \
13031 conftest$ac_exeext conftest.$ac_ext
13035 CFLAGS="$xorg_testset_save_CFLAGS"
13037 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13039 $as_echo "$supported" >&6; }
13040 if test "$supported" = "yes" ; then
13041 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13058 xorg_testset_save_CFLAGS="$CFLAGS"
13060 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13063 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13064 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13065 $as_echo_n "(cached) " >&6
13067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068 /* end confdefs.h. */
13071 if ac_fn_c_try_compile "$LINENO"; then :
13072 xorg_cv_compiler_flag_unknown_warning_option=yes
13074 xorg_cv_compiler_flag_unknown_warning_option=no
13076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13079 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13080 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13081 CFLAGS="$xorg_testset_save_CFLAGS"
13084 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13085 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13090 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13091 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13092 $as_echo_n "(cached) " >&6
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13098 if ac_fn_c_try_compile "$LINENO"; then :
13099 xorg_cv_compiler_flag_unused_command_line_argument=yes
13101 xorg_cv_compiler_flag_unused_command_line_argument=no
13103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13106 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13107 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13108 CFLAGS="$xorg_testset_save_CFLAGS"
13113 if test $found = "no" ; then
13114 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13118 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13122 CFLAGS="$CFLAGS -Wshadow"
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13125 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13126 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13127 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13128 $as_echo_n "(cached) " >&6
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13141 if ac_fn_c_try_link "$LINENO"; then :
13142 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13144 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13146 rm -f core conftest.err conftest.$ac_objext \
13147 conftest$ac_exeext conftest.$ac_ext
13151 CFLAGS="$xorg_testset_save_CFLAGS"
13153 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13155 $as_echo "$supported" >&6; }
13156 if test "$supported" = "yes" ; then
13157 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13174 xorg_testset_save_CFLAGS="$CFLAGS"
13176 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13179 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13180 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13181 $as_echo_n "(cached) " >&6
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13187 if ac_fn_c_try_compile "$LINENO"; then :
13188 xorg_cv_compiler_flag_unknown_warning_option=yes
13190 xorg_cv_compiler_flag_unknown_warning_option=no
13192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13195 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13196 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13197 CFLAGS="$xorg_testset_save_CFLAGS"
13200 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13201 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13206 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13207 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13208 $as_echo_n "(cached) " >&6
13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h. */
13214 if ac_fn_c_try_compile "$LINENO"; then :
13215 xorg_cv_compiler_flag_unused_command_line_argument=yes
13217 xorg_cv_compiler_flag_unused_command_line_argument=no
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13222 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13223 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13224 CFLAGS="$xorg_testset_save_CFLAGS"
13229 if test $found = "no" ; then
13230 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13234 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13238 CFLAGS="$CFLAGS -Wcast-qual"
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13241 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13242 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13243 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13244 $as_echo_n "(cached) " >&6
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13257 if ac_fn_c_try_link "$LINENO"; then :
13258 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13260 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13262 rm -f core conftest.err conftest.$ac_objext \
13263 conftest$ac_exeext conftest.$ac_ext
13267 CFLAGS="$xorg_testset_save_CFLAGS"
13269 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13271 $as_echo "$supported" >&6; }
13272 if test "$supported" = "yes" ; then
13273 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13290 xorg_testset_save_CFLAGS="$CFLAGS"
13292 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13295 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13296 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13297 $as_echo_n "(cached) " >&6
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13303 if ac_fn_c_try_compile "$LINENO"; then :
13304 xorg_cv_compiler_flag_unknown_warning_option=yes
13306 xorg_cv_compiler_flag_unknown_warning_option=no
13308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13311 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13312 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13313 CFLAGS="$xorg_testset_save_CFLAGS"
13316 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13317 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13322 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13323 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13324 $as_echo_n "(cached) " >&6
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h. */
13330 if ac_fn_c_try_compile "$LINENO"; then :
13331 xorg_cv_compiler_flag_unused_command_line_argument=yes
13333 xorg_cv_compiler_flag_unused_command_line_argument=no
13335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13338 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13339 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13340 CFLAGS="$xorg_testset_save_CFLAGS"
13345 if test $found = "no" ; then
13346 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13350 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13354 CFLAGS="$CFLAGS -Wmissing-noreturn"
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13357 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13358 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13359 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13360 $as_echo_n "(cached) " >&6
13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363 /* end confdefs.h. */
13373 if ac_fn_c_try_link "$LINENO"; then :
13374 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13376 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13378 rm -f core conftest.err conftest.$ac_objext \
13379 conftest$ac_exeext conftest.$ac_ext
13383 CFLAGS="$xorg_testset_save_CFLAGS"
13385 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13387 $as_echo "$supported" >&6; }
13388 if test "$supported" = "yes" ; then
13389 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13406 xorg_testset_save_CFLAGS="$CFLAGS"
13408 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13411 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13412 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13413 $as_echo_n "(cached) " >&6
13415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13416 /* end confdefs.h. */
13419 if ac_fn_c_try_compile "$LINENO"; then :
13420 xorg_cv_compiler_flag_unknown_warning_option=yes
13422 xorg_cv_compiler_flag_unknown_warning_option=no
13424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13427 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13428 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13429 CFLAGS="$xorg_testset_save_CFLAGS"
13432 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13433 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13438 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13439 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13440 $as_echo_n "(cached) " >&6
13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h. */
13446 if ac_fn_c_try_compile "$LINENO"; then :
13447 xorg_cv_compiler_flag_unused_command_line_argument=yes
13449 xorg_cv_compiler_flag_unused_command_line_argument=no
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13454 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13455 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13456 CFLAGS="$xorg_testset_save_CFLAGS"
13461 if test $found = "no" ; then
13462 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13466 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13470 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13473 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13474 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13475 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13476 $as_echo_n "(cached) " >&6
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13489 if ac_fn_c_try_link "$LINENO"; then :
13490 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13492 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13494 rm -f core conftest.err conftest.$ac_objext \
13495 conftest$ac_exeext conftest.$ac_ext
13499 CFLAGS="$xorg_testset_save_CFLAGS"
13501 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13503 $as_echo "$supported" >&6; }
13504 if test "$supported" = "yes" ; then
13505 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13522 xorg_testset_save_CFLAGS="$CFLAGS"
13524 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13527 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13528 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13529 $as_echo_n "(cached) " >&6
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13535 if ac_fn_c_try_compile "$LINENO"; then :
13536 xorg_cv_compiler_flag_unknown_warning_option=yes
13538 xorg_cv_compiler_flag_unknown_warning_option=no
13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13543 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13544 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13545 CFLAGS="$xorg_testset_save_CFLAGS"
13548 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13549 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13554 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13555 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13556 $as_echo_n "(cached) " >&6
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h. */
13562 if ac_fn_c_try_compile "$LINENO"; then :
13563 xorg_cv_compiler_flag_unused_command_line_argument=yes
13565 xorg_cv_compiler_flag_unused_command_line_argument=no
13567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13570 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13571 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13572 CFLAGS="$xorg_testset_save_CFLAGS"
13577 if test $found = "no" ; then
13578 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13582 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13586 CFLAGS="$CFLAGS -Wredundant-decls"
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13589 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13590 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13591 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13592 $as_echo_n "(cached) " >&6
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13605 if ac_fn_c_try_link "$LINENO"; then :
13606 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13608 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13610 rm -f core conftest.err conftest.$ac_objext \
13611 conftest$ac_exeext conftest.$ac_ext
13615 CFLAGS="$xorg_testset_save_CFLAGS"
13617 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13619 $as_echo "$supported" >&6; }
13620 if test "$supported" = "yes" ; then
13621 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13628 # These are currently disabled because they are noisy. They will be enabled
13629 # in the future once the codebase is sufficiently modernized to silence
13630 # them. For now, I don't want them to drown out the other warnings.
13631 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13632 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13633 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13635 # Turn some warnings into errors, so we don't accidently get successful builds
13636 # when there are problems that should be fixed.
13638 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13650 xorg_testset_save_CFLAGS="$CFLAGS"
13652 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13655 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13656 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13657 $as_echo_n "(cached) " >&6
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13663 if ac_fn_c_try_compile "$LINENO"; then :
13664 xorg_cv_compiler_flag_unknown_warning_option=yes
13666 xorg_cv_compiler_flag_unknown_warning_option=no
13668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13671 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13672 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13673 CFLAGS="$xorg_testset_save_CFLAGS"
13676 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13677 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13682 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13683 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13684 $as_echo_n "(cached) " >&6
13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13690 if ac_fn_c_try_compile "$LINENO"; then :
13691 xorg_cv_compiler_flag_unused_command_line_argument=yes
13693 xorg_cv_compiler_flag_unused_command_line_argument=no
13695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13698 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13699 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13700 CFLAGS="$xorg_testset_save_CFLAGS"
13705 if test $found = "no" ; then
13706 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13710 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13714 CFLAGS="$CFLAGS -Werror=implicit"
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13717 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13718 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13719 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13720 $as_echo_n "(cached) " >&6
13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h. */
13733 if ac_fn_c_try_link "$LINENO"; then :
13734 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13736 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13738 rm -f core conftest.err conftest.$ac_objext \
13739 conftest$ac_exeext conftest.$ac_ext
13743 CFLAGS="$xorg_testset_save_CFLAGS"
13745 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13747 $as_echo "$supported" >&6; }
13748 if test "$supported" = "yes" ; then
13749 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13754 if test $found = "no" ; then
13755 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13759 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13763 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13766 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13767 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
13768 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13769 $as_echo_n "(cached) " >&6
13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13782 if ac_fn_c_try_link "$LINENO"; then :
13783 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13785 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13787 rm -f core conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext conftest.$ac_ext
13792 CFLAGS="$xorg_testset_save_CFLAGS"
13794 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13796 $as_echo "$supported" >&6; }
13797 if test "$supported" = "yes" ; then
13798 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13815 xorg_testset_save_CFLAGS="$CFLAGS"
13817 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13820 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13821 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13822 $as_echo_n "(cached) " >&6
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13828 if ac_fn_c_try_compile "$LINENO"; then :
13829 xorg_cv_compiler_flag_unknown_warning_option=yes
13831 xorg_cv_compiler_flag_unknown_warning_option=no
13833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13836 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13837 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13838 CFLAGS="$xorg_testset_save_CFLAGS"
13841 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13842 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13847 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13848 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13849 $as_echo_n "(cached) " >&6
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13855 if ac_fn_c_try_compile "$LINENO"; then :
13856 xorg_cv_compiler_flag_unused_command_line_argument=yes
13858 xorg_cv_compiler_flag_unused_command_line_argument=no
13860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13863 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13864 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13865 CFLAGS="$xorg_testset_save_CFLAGS"
13870 if test $found = "no" ; then
13871 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13875 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13879 CFLAGS="$CFLAGS -Werror=nonnull"
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13882 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13883 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
13884 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13885 $as_echo_n "(cached) " >&6
13887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13898 if ac_fn_c_try_link "$LINENO"; then :
13899 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13901 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13903 rm -f core conftest.err conftest.$ac_objext \
13904 conftest$ac_exeext conftest.$ac_ext
13908 CFLAGS="$xorg_testset_save_CFLAGS"
13910 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13912 $as_echo "$supported" >&6; }
13913 if test "$supported" = "yes" ; then
13914 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13931 xorg_testset_save_CFLAGS="$CFLAGS"
13933 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13936 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13937 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13938 $as_echo_n "(cached) " >&6
13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941 /* end confdefs.h. */
13944 if ac_fn_c_try_compile "$LINENO"; then :
13945 xorg_cv_compiler_flag_unknown_warning_option=yes
13947 xorg_cv_compiler_flag_unknown_warning_option=no
13949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13952 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13953 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13954 CFLAGS="$xorg_testset_save_CFLAGS"
13957 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13958 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13963 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13964 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13965 $as_echo_n "(cached) " >&6
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h. */
13971 if ac_fn_c_try_compile "$LINENO"; then :
13972 xorg_cv_compiler_flag_unused_command_line_argument=yes
13974 xorg_cv_compiler_flag_unused_command_line_argument=no
13976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13979 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13980 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13981 CFLAGS="$xorg_testset_save_CFLAGS"
13986 if test $found = "no" ; then
13987 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13991 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13995 CFLAGS="$CFLAGS -Werror=init-self"
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
13998 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
13999 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
14000 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14001 $as_echo_n "(cached) " >&6
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14014 if ac_fn_c_try_link "$LINENO"; then :
14015 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14017 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14019 rm -f core conftest.err conftest.$ac_objext \
14020 conftest$ac_exeext conftest.$ac_ext
14024 CFLAGS="$xorg_testset_save_CFLAGS"
14026 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14028 $as_echo "$supported" >&6; }
14029 if test "$supported" = "yes" ; then
14030 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14047 xorg_testset_save_CFLAGS="$CFLAGS"
14049 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14052 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14053 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14054 $as_echo_n "(cached) " >&6
14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057 /* end confdefs.h. */
14060 if ac_fn_c_try_compile "$LINENO"; then :
14061 xorg_cv_compiler_flag_unknown_warning_option=yes
14063 xorg_cv_compiler_flag_unknown_warning_option=no
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14068 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14069 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14070 CFLAGS="$xorg_testset_save_CFLAGS"
14073 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14074 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14079 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14080 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14081 $as_echo_n "(cached) " >&6
14083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14084 /* end confdefs.h. */
14087 if ac_fn_c_try_compile "$LINENO"; then :
14088 xorg_cv_compiler_flag_unused_command_line_argument=yes
14090 xorg_cv_compiler_flag_unused_command_line_argument=no
14092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14095 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14096 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14097 CFLAGS="$xorg_testset_save_CFLAGS"
14102 if test $found = "no" ; then
14103 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14107 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14111 CFLAGS="$CFLAGS -Werror=main"
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14114 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14115 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14116 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14117 $as_echo_n "(cached) " >&6
14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14130 if ac_fn_c_try_link "$LINENO"; then :
14131 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14133 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14135 rm -f core conftest.err conftest.$ac_objext \
14136 conftest$ac_exeext conftest.$ac_ext
14140 CFLAGS="$xorg_testset_save_CFLAGS"
14142 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14144 $as_echo "$supported" >&6; }
14145 if test "$supported" = "yes" ; then
14146 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14163 xorg_testset_save_CFLAGS="$CFLAGS"
14165 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14168 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14169 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14170 $as_echo_n "(cached) " >&6
14172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14173 /* end confdefs.h. */
14176 if ac_fn_c_try_compile "$LINENO"; then :
14177 xorg_cv_compiler_flag_unknown_warning_option=yes
14179 xorg_cv_compiler_flag_unknown_warning_option=no
14181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14184 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14185 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14186 CFLAGS="$xorg_testset_save_CFLAGS"
14189 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14190 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14195 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14196 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14197 $as_echo_n "(cached) " >&6
14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h. */
14203 if ac_fn_c_try_compile "$LINENO"; then :
14204 xorg_cv_compiler_flag_unused_command_line_argument=yes
14206 xorg_cv_compiler_flag_unused_command_line_argument=no
14208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14211 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14212 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14213 CFLAGS="$xorg_testset_save_CFLAGS"
14218 if test $found = "no" ; then
14219 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14223 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14227 CFLAGS="$CFLAGS -Werror=missing-braces"
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14230 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14231 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14232 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14233 $as_echo_n "(cached) " >&6
14235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h. */
14246 if ac_fn_c_try_link "$LINENO"; then :
14247 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14249 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14251 rm -f core conftest.err conftest.$ac_objext \
14252 conftest$ac_exeext conftest.$ac_ext
14256 CFLAGS="$xorg_testset_save_CFLAGS"
14258 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14260 $as_echo "$supported" >&6; }
14261 if test "$supported" = "yes" ; then
14262 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14279 xorg_testset_save_CFLAGS="$CFLAGS"
14281 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14284 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14285 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14286 $as_echo_n "(cached) " >&6
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14292 if ac_fn_c_try_compile "$LINENO"; then :
14293 xorg_cv_compiler_flag_unknown_warning_option=yes
14295 xorg_cv_compiler_flag_unknown_warning_option=no
14297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14300 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14301 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14302 CFLAGS="$xorg_testset_save_CFLAGS"
14305 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14306 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14311 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14312 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14313 $as_echo_n "(cached) " >&6
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14319 if ac_fn_c_try_compile "$LINENO"; then :
14320 xorg_cv_compiler_flag_unused_command_line_argument=yes
14322 xorg_cv_compiler_flag_unused_command_line_argument=no
14324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14327 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14328 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14329 CFLAGS="$xorg_testset_save_CFLAGS"
14334 if test $found = "no" ; then
14335 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14339 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14343 CFLAGS="$CFLAGS -Werror=sequence-point"
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14346 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14347 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14348 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14349 $as_echo_n "(cached) " >&6
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14362 if ac_fn_c_try_link "$LINENO"; then :
14363 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14365 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14367 rm -f core conftest.err conftest.$ac_objext \
14368 conftest$ac_exeext conftest.$ac_ext
14372 CFLAGS="$xorg_testset_save_CFLAGS"
14374 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14376 $as_echo "$supported" >&6; }
14377 if test "$supported" = "yes" ; then
14378 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14395 xorg_testset_save_CFLAGS="$CFLAGS"
14397 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14400 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14401 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14402 $as_echo_n "(cached) " >&6
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14408 if ac_fn_c_try_compile "$LINENO"; then :
14409 xorg_cv_compiler_flag_unknown_warning_option=yes
14411 xorg_cv_compiler_flag_unknown_warning_option=no
14413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14416 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14417 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14418 CFLAGS="$xorg_testset_save_CFLAGS"
14421 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14422 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14427 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14428 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14429 $as_echo_n "(cached) " >&6
14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14435 if ac_fn_c_try_compile "$LINENO"; then :
14436 xorg_cv_compiler_flag_unused_command_line_argument=yes
14438 xorg_cv_compiler_flag_unused_command_line_argument=no
14440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14443 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14444 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14445 CFLAGS="$xorg_testset_save_CFLAGS"
14450 if test $found = "no" ; then
14451 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14455 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14459 CFLAGS="$CFLAGS -Werror=return-type"
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14462 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14463 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14464 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14465 $as_echo_n "(cached) " >&6
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14478 if ac_fn_c_try_link "$LINENO"; then :
14479 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14481 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14483 rm -f core conftest.err conftest.$ac_objext \
14484 conftest$ac_exeext conftest.$ac_ext
14488 CFLAGS="$xorg_testset_save_CFLAGS"
14490 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14492 $as_echo "$supported" >&6; }
14493 if test "$supported" = "yes" ; then
14494 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14499 if test $found = "no" ; then
14500 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14504 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14508 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14511 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14512 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14513 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14514 $as_echo_n "(cached) " >&6
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14527 if ac_fn_c_try_link "$LINENO"; then :
14528 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14530 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14532 rm -f core conftest.err conftest.$ac_objext \
14533 conftest$ac_exeext conftest.$ac_ext
14537 CFLAGS="$xorg_testset_save_CFLAGS"
14539 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14541 $as_echo "$supported" >&6; }
14542 if test "$supported" = "yes" ; then
14543 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14560 xorg_testset_save_CFLAGS="$CFLAGS"
14562 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14565 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14566 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14567 $as_echo_n "(cached) " >&6
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14573 if ac_fn_c_try_compile "$LINENO"; then :
14574 xorg_cv_compiler_flag_unknown_warning_option=yes
14576 xorg_cv_compiler_flag_unknown_warning_option=no
14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14581 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14582 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14583 CFLAGS="$xorg_testset_save_CFLAGS"
14586 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14587 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14592 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14593 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14594 $as_echo_n "(cached) " >&6
14596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14597 /* end confdefs.h. */
14600 if ac_fn_c_try_compile "$LINENO"; then :
14601 xorg_cv_compiler_flag_unused_command_line_argument=yes
14603 xorg_cv_compiler_flag_unused_command_line_argument=no
14605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14608 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14609 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14610 CFLAGS="$xorg_testset_save_CFLAGS"
14615 if test $found = "no" ; then
14616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14620 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14624 CFLAGS="$CFLAGS -Werror=trigraphs"
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14627 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14628 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14629 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14630 $as_echo_n "(cached) " >&6
14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14643 if ac_fn_c_try_link "$LINENO"; then :
14644 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14646 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14648 rm -f core conftest.err conftest.$ac_objext \
14649 conftest$ac_exeext conftest.$ac_ext
14653 CFLAGS="$xorg_testset_save_CFLAGS"
14655 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14657 $as_echo "$supported" >&6; }
14658 if test "$supported" = "yes" ; then
14659 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14676 xorg_testset_save_CFLAGS="$CFLAGS"
14678 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14681 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14682 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14683 $as_echo_n "(cached) " >&6
14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h. */
14689 if ac_fn_c_try_compile "$LINENO"; then :
14690 xorg_cv_compiler_flag_unknown_warning_option=yes
14692 xorg_cv_compiler_flag_unknown_warning_option=no
14694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14697 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14698 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14699 CFLAGS="$xorg_testset_save_CFLAGS"
14702 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14703 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14708 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14709 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14710 $as_echo_n "(cached) " >&6
14712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713 /* end confdefs.h. */
14716 if ac_fn_c_try_compile "$LINENO"; then :
14717 xorg_cv_compiler_flag_unused_command_line_argument=yes
14719 xorg_cv_compiler_flag_unused_command_line_argument=no
14721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14724 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14725 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14726 CFLAGS="$xorg_testset_save_CFLAGS"
14731 if test $found = "no" ; then
14732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14736 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14740 CFLAGS="$CFLAGS -Werror=array-bounds"
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14743 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14744 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14745 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14746 $as_echo_n "(cached) " >&6
14748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749 /* end confdefs.h. */
14759 if ac_fn_c_try_link "$LINENO"; then :
14760 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14762 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14764 rm -f core conftest.err conftest.$ac_objext \
14765 conftest$ac_exeext conftest.$ac_ext
14769 CFLAGS="$xorg_testset_save_CFLAGS"
14771 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14773 $as_echo "$supported" >&6; }
14774 if test "$supported" = "yes" ; then
14775 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14792 xorg_testset_save_CFLAGS="$CFLAGS"
14794 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14797 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14798 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14799 $as_echo_n "(cached) " >&6
14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h. */
14805 if ac_fn_c_try_compile "$LINENO"; then :
14806 xorg_cv_compiler_flag_unknown_warning_option=yes
14808 xorg_cv_compiler_flag_unknown_warning_option=no
14810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14813 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14814 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14815 CFLAGS="$xorg_testset_save_CFLAGS"
14818 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14819 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14824 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14825 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14826 $as_echo_n "(cached) " >&6
14828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829 /* end confdefs.h. */
14832 if ac_fn_c_try_compile "$LINENO"; then :
14833 xorg_cv_compiler_flag_unused_command_line_argument=yes
14835 xorg_cv_compiler_flag_unused_command_line_argument=no
14837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14840 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14841 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14842 CFLAGS="$xorg_testset_save_CFLAGS"
14847 if test $found = "no" ; then
14848 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14852 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14856 CFLAGS="$CFLAGS -Werror=write-strings"
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14859 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14860 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
14861 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14862 $as_echo_n "(cached) " >&6
14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14875 if ac_fn_c_try_link "$LINENO"; then :
14876 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14878 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14880 rm -f core conftest.err conftest.$ac_objext \
14881 conftest$ac_exeext conftest.$ac_ext
14885 CFLAGS="$xorg_testset_save_CFLAGS"
14887 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14889 $as_echo "$supported" >&6; }
14890 if test "$supported" = "yes" ; then
14891 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14908 xorg_testset_save_CFLAGS="$CFLAGS"
14910 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14913 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14914 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14915 $as_echo_n "(cached) " >&6
14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14921 if ac_fn_c_try_compile "$LINENO"; then :
14922 xorg_cv_compiler_flag_unknown_warning_option=yes
14924 xorg_cv_compiler_flag_unknown_warning_option=no
14926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14929 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14930 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14931 CFLAGS="$xorg_testset_save_CFLAGS"
14934 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14935 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14940 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14941 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14942 $as_echo_n "(cached) " >&6
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h. */
14948 if ac_fn_c_try_compile "$LINENO"; then :
14949 xorg_cv_compiler_flag_unused_command_line_argument=yes
14951 xorg_cv_compiler_flag_unused_command_line_argument=no
14953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14956 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14957 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14958 CFLAGS="$xorg_testset_save_CFLAGS"
14963 if test $found = "no" ; then
14964 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14968 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14972 CFLAGS="$CFLAGS -Werror=address"
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
14975 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
14976 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
14977 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14978 $as_echo_n "(cached) " >&6
14980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h. */
14991 if ac_fn_c_try_link "$LINENO"; then :
14992 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14994 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14996 rm -f core conftest.err conftest.$ac_objext \
14997 conftest$ac_exeext conftest.$ac_ext
15001 CFLAGS="$xorg_testset_save_CFLAGS"
15003 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15005 $as_echo "$supported" >&6; }
15006 if test "$supported" = "yes" ; then
15007 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15024 xorg_testset_save_CFLAGS="$CFLAGS"
15026 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15029 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15030 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15031 $as_echo_n "(cached) " >&6
15033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h. */
15037 if ac_fn_c_try_compile "$LINENO"; then :
15038 xorg_cv_compiler_flag_unknown_warning_option=yes
15040 xorg_cv_compiler_flag_unknown_warning_option=no
15042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15045 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15046 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15047 CFLAGS="$xorg_testset_save_CFLAGS"
15050 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15051 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15056 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15057 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15058 $as_echo_n "(cached) " >&6
15060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15061 /* end confdefs.h. */
15064 if ac_fn_c_try_compile "$LINENO"; then :
15065 xorg_cv_compiler_flag_unused_command_line_argument=yes
15067 xorg_cv_compiler_flag_unused_command_line_argument=no
15069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15072 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15073 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15074 CFLAGS="$xorg_testset_save_CFLAGS"
15079 if test $found = "no" ; then
15080 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15084 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15088 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15091 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15092 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15093 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15094 $as_echo_n "(cached) " >&6
15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097 /* end confdefs.h. */
15107 if ac_fn_c_try_link "$LINENO"; then :
15108 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15110 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15112 rm -f core conftest.err conftest.$ac_objext \
15113 conftest$ac_exeext conftest.$ac_ext
15117 CFLAGS="$xorg_testset_save_CFLAGS"
15119 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15121 $as_echo "$supported" >&6; }
15122 if test "$supported" = "yes" ; then
15123 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15128 if test $found = "no" ; then
15129 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15133 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15137 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15140 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15141 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15142 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15143 $as_echo_n "(cached) " >&6
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15156 if ac_fn_c_try_link "$LINENO"; then :
15157 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15159 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15161 rm -f core conftest.err conftest.$ac_objext \
15162 conftest$ac_exeext conftest.$ac_ext
15166 CFLAGS="$xorg_testset_save_CFLAGS"
15168 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15170 $as_echo "$supported" >&6; }
15171 if test "$supported" = "yes" ; then
15172 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15189 xorg_testset_save_CFLAGS="$CFLAGS"
15191 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15194 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15195 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15196 $as_echo_n "(cached) " >&6
15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199 /* end confdefs.h. */
15202 if ac_fn_c_try_compile "$LINENO"; then :
15203 xorg_cv_compiler_flag_unknown_warning_option=yes
15205 xorg_cv_compiler_flag_unknown_warning_option=no
15207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15210 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15211 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15212 CFLAGS="$xorg_testset_save_CFLAGS"
15215 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15216 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15221 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15222 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15223 $as_echo_n "(cached) " >&6
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15229 if ac_fn_c_try_compile "$LINENO"; then :
15230 xorg_cv_compiler_flag_unused_command_line_argument=yes
15232 xorg_cv_compiler_flag_unused_command_line_argument=no
15234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15237 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15238 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15239 CFLAGS="$xorg_testset_save_CFLAGS"
15244 if test $found = "no" ; then
15245 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15249 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15253 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15256 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15257 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15258 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15259 $as_echo_n "(cached) " >&6
15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h. */
15272 if ac_fn_c_try_link "$LINENO"; then :
15273 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15275 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15277 rm -f core conftest.err conftest.$ac_objext \
15278 conftest$ac_exeext conftest.$ac_ext
15282 CFLAGS="$xorg_testset_save_CFLAGS"
15284 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15286 $as_echo "$supported" >&6; }
15287 if test "$supported" = "yes" ; then
15288 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15293 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15295 { $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
15296 $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;}
15308 xorg_testset_save_CFLAGS="$CFLAGS"
15310 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15313 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15314 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15315 $as_echo_n "(cached) " >&6
15317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15318 /* end confdefs.h. */
15321 if ac_fn_c_try_compile "$LINENO"; then :
15322 xorg_cv_compiler_flag_unknown_warning_option=yes
15324 xorg_cv_compiler_flag_unknown_warning_option=no
15326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15329 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15330 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15331 CFLAGS="$xorg_testset_save_CFLAGS"
15334 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15335 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15340 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15341 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15342 $as_echo_n "(cached) " >&6
15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h. */
15348 if ac_fn_c_try_compile "$LINENO"; then :
15349 xorg_cv_compiler_flag_unused_command_line_argument=yes
15351 xorg_cv_compiler_flag_unused_command_line_argument=no
15353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15356 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15357 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15358 CFLAGS="$xorg_testset_save_CFLAGS"
15363 if test $found = "no" ; then
15364 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15368 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15372 CFLAGS="$CFLAGS -Wimplicit"
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15375 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15376 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15377 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15378 $as_echo_n "(cached) " >&6
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15391 if ac_fn_c_try_link "$LINENO"; then :
15392 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15394 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15396 rm -f core conftest.err conftest.$ac_objext \
15397 conftest$ac_exeext conftest.$ac_ext
15401 CFLAGS="$xorg_testset_save_CFLAGS"
15403 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15405 $as_echo "$supported" >&6; }
15406 if test "$supported" = "yes" ; then
15407 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15424 xorg_testset_save_CFLAGS="$CFLAGS"
15426 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15429 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15430 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15431 $as_echo_n "(cached) " >&6
15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15437 if ac_fn_c_try_compile "$LINENO"; then :
15438 xorg_cv_compiler_flag_unknown_warning_option=yes
15440 xorg_cv_compiler_flag_unknown_warning_option=no
15442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15445 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15446 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15447 CFLAGS="$xorg_testset_save_CFLAGS"
15450 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15451 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15456 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15457 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15458 $as_echo_n "(cached) " >&6
15460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15461 /* end confdefs.h. */
15464 if ac_fn_c_try_compile "$LINENO"; then :
15465 xorg_cv_compiler_flag_unused_command_line_argument=yes
15467 xorg_cv_compiler_flag_unused_command_line_argument=no
15469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15472 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15473 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15474 CFLAGS="$xorg_testset_save_CFLAGS"
15479 if test $found = "no" ; then
15480 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15484 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15488 CFLAGS="$CFLAGS -Wnonnull"
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15491 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15492 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15493 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15494 $as_echo_n "(cached) " >&6
15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15507 if ac_fn_c_try_link "$LINENO"; then :
15508 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15510 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15512 rm -f core conftest.err conftest.$ac_objext \
15513 conftest$ac_exeext conftest.$ac_ext
15517 CFLAGS="$xorg_testset_save_CFLAGS"
15519 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15521 $as_echo "$supported" >&6; }
15522 if test "$supported" = "yes" ; then
15523 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15540 xorg_testset_save_CFLAGS="$CFLAGS"
15542 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15545 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15546 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15547 $as_echo_n "(cached) " >&6
15549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15550 /* end confdefs.h. */
15553 if ac_fn_c_try_compile "$LINENO"; then :
15554 xorg_cv_compiler_flag_unknown_warning_option=yes
15556 xorg_cv_compiler_flag_unknown_warning_option=no
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15561 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15562 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15563 CFLAGS="$xorg_testset_save_CFLAGS"
15566 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15567 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15572 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15573 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15574 $as_echo_n "(cached) " >&6
15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15580 if ac_fn_c_try_compile "$LINENO"; then :
15581 xorg_cv_compiler_flag_unused_command_line_argument=yes
15583 xorg_cv_compiler_flag_unused_command_line_argument=no
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15588 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15589 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15590 CFLAGS="$xorg_testset_save_CFLAGS"
15595 if test $found = "no" ; then
15596 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15600 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15604 CFLAGS="$CFLAGS -Winit-self"
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15607 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15608 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15609 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15610 $as_echo_n "(cached) " >&6
15612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15613 /* end confdefs.h. */
15623 if ac_fn_c_try_link "$LINENO"; then :
15624 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15626 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15628 rm -f core conftest.err conftest.$ac_objext \
15629 conftest$ac_exeext conftest.$ac_ext
15633 CFLAGS="$xorg_testset_save_CFLAGS"
15635 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15637 $as_echo "$supported" >&6; }
15638 if test "$supported" = "yes" ; then
15639 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15656 xorg_testset_save_CFLAGS="$CFLAGS"
15658 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15661 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15662 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15663 $as_echo_n "(cached) " >&6
15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666 /* end confdefs.h. */
15669 if ac_fn_c_try_compile "$LINENO"; then :
15670 xorg_cv_compiler_flag_unknown_warning_option=yes
15672 xorg_cv_compiler_flag_unknown_warning_option=no
15674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15677 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15678 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15679 CFLAGS="$xorg_testset_save_CFLAGS"
15682 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15683 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15688 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15689 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15690 $as_echo_n "(cached) " >&6
15692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693 /* end confdefs.h. */
15696 if ac_fn_c_try_compile "$LINENO"; then :
15697 xorg_cv_compiler_flag_unused_command_line_argument=yes
15699 xorg_cv_compiler_flag_unused_command_line_argument=no
15701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15704 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15705 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15706 CFLAGS="$xorg_testset_save_CFLAGS"
15711 if test $found = "no" ; then
15712 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15716 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15720 CFLAGS="$CFLAGS -Wmain"
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15723 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15724 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15725 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15726 $as_echo_n "(cached) " >&6
15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h. */
15739 if ac_fn_c_try_link "$LINENO"; then :
15740 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15742 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15744 rm -f core conftest.err conftest.$ac_objext \
15745 conftest$ac_exeext conftest.$ac_ext
15749 CFLAGS="$xorg_testset_save_CFLAGS"
15751 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15753 $as_echo "$supported" >&6; }
15754 if test "$supported" = "yes" ; then
15755 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15772 xorg_testset_save_CFLAGS="$CFLAGS"
15774 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15777 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15778 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15779 $as_echo_n "(cached) " >&6
15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15782 /* end confdefs.h. */
15785 if ac_fn_c_try_compile "$LINENO"; then :
15786 xorg_cv_compiler_flag_unknown_warning_option=yes
15788 xorg_cv_compiler_flag_unknown_warning_option=no
15790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15793 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15794 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15795 CFLAGS="$xorg_testset_save_CFLAGS"
15798 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15799 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15804 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15805 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15806 $as_echo_n "(cached) " >&6
15808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809 /* end confdefs.h. */
15812 if ac_fn_c_try_compile "$LINENO"; then :
15813 xorg_cv_compiler_flag_unused_command_line_argument=yes
15815 xorg_cv_compiler_flag_unused_command_line_argument=no
15817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15820 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15821 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15822 CFLAGS="$xorg_testset_save_CFLAGS"
15827 if test $found = "no" ; then
15828 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15832 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15836 CFLAGS="$CFLAGS -Wmissing-braces"
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15839 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15840 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
15841 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15842 $as_echo_n "(cached) " >&6
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15855 if ac_fn_c_try_link "$LINENO"; then :
15856 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15858 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15860 rm -f core conftest.err conftest.$ac_objext \
15861 conftest$ac_exeext conftest.$ac_ext
15865 CFLAGS="$xorg_testset_save_CFLAGS"
15867 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15869 $as_echo "$supported" >&6; }
15870 if test "$supported" = "yes" ; then
15871 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15888 xorg_testset_save_CFLAGS="$CFLAGS"
15890 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15893 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15894 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15895 $as_echo_n "(cached) " >&6
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15901 if ac_fn_c_try_compile "$LINENO"; then :
15902 xorg_cv_compiler_flag_unknown_warning_option=yes
15904 xorg_cv_compiler_flag_unknown_warning_option=no
15906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15909 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15910 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15911 CFLAGS="$xorg_testset_save_CFLAGS"
15914 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15915 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15920 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15921 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15922 $as_echo_n "(cached) " >&6
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15928 if ac_fn_c_try_compile "$LINENO"; then :
15929 xorg_cv_compiler_flag_unused_command_line_argument=yes
15931 xorg_cv_compiler_flag_unused_command_line_argument=no
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15936 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15937 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15938 CFLAGS="$xorg_testset_save_CFLAGS"
15943 if test $found = "no" ; then
15944 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15948 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15952 CFLAGS="$CFLAGS -Wsequence-point"
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
15955 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
15956 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
15957 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15958 $as_echo_n "(cached) " >&6
15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h. */
15971 if ac_fn_c_try_link "$LINENO"; then :
15972 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15974 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15976 rm -f core conftest.err conftest.$ac_objext \
15977 conftest$ac_exeext conftest.$ac_ext
15981 CFLAGS="$xorg_testset_save_CFLAGS"
15983 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15985 $as_echo "$supported" >&6; }
15986 if test "$supported" = "yes" ; then
15987 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16004 xorg_testset_save_CFLAGS="$CFLAGS"
16006 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16009 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16010 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16011 $as_echo_n "(cached) " >&6
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16017 if ac_fn_c_try_compile "$LINENO"; then :
16018 xorg_cv_compiler_flag_unknown_warning_option=yes
16020 xorg_cv_compiler_flag_unknown_warning_option=no
16022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16025 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16026 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16027 CFLAGS="$xorg_testset_save_CFLAGS"
16030 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16031 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16036 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16037 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16038 $as_echo_n "(cached) " >&6
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16044 if ac_fn_c_try_compile "$LINENO"; then :
16045 xorg_cv_compiler_flag_unused_command_line_argument=yes
16047 xorg_cv_compiler_flag_unused_command_line_argument=no
16049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16052 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16053 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16054 CFLAGS="$xorg_testset_save_CFLAGS"
16059 if test $found = "no" ; then
16060 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16064 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16068 CFLAGS="$CFLAGS -Wreturn-type"
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16071 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16072 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16073 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16074 $as_echo_n "(cached) " >&6
16076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077 /* end confdefs.h. */
16087 if ac_fn_c_try_link "$LINENO"; then :
16088 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16090 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16092 rm -f core conftest.err conftest.$ac_objext \
16093 conftest$ac_exeext conftest.$ac_ext
16097 CFLAGS="$xorg_testset_save_CFLAGS"
16099 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16101 $as_echo "$supported" >&6; }
16102 if test "$supported" = "yes" ; then
16103 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16120 xorg_testset_save_CFLAGS="$CFLAGS"
16122 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16125 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16126 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16127 $as_echo_n "(cached) " >&6
16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130 /* end confdefs.h. */
16133 if ac_fn_c_try_compile "$LINENO"; then :
16134 xorg_cv_compiler_flag_unknown_warning_option=yes
16136 xorg_cv_compiler_flag_unknown_warning_option=no
16138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16141 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16142 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16143 CFLAGS="$xorg_testset_save_CFLAGS"
16146 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16147 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16152 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16153 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16154 $as_echo_n "(cached) " >&6
16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16160 if ac_fn_c_try_compile "$LINENO"; then :
16161 xorg_cv_compiler_flag_unused_command_line_argument=yes
16163 xorg_cv_compiler_flag_unused_command_line_argument=no
16165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16168 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16169 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16170 CFLAGS="$xorg_testset_save_CFLAGS"
16175 if test $found = "no" ; then
16176 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16180 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16184 CFLAGS="$CFLAGS -Wtrigraphs"
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16187 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16188 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16189 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16190 $as_echo_n "(cached) " >&6
16192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16193 /* end confdefs.h. */
16203 if ac_fn_c_try_link "$LINENO"; then :
16204 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16206 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16208 rm -f core conftest.err conftest.$ac_objext \
16209 conftest$ac_exeext conftest.$ac_ext
16213 CFLAGS="$xorg_testset_save_CFLAGS"
16215 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16217 $as_echo "$supported" >&6; }
16218 if test "$supported" = "yes" ; then
16219 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16236 xorg_testset_save_CFLAGS="$CFLAGS"
16238 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16241 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16242 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16243 $as_echo_n "(cached) " >&6
16245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16246 /* end confdefs.h. */
16249 if ac_fn_c_try_compile "$LINENO"; then :
16250 xorg_cv_compiler_flag_unknown_warning_option=yes
16252 xorg_cv_compiler_flag_unknown_warning_option=no
16254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16257 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16258 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16259 CFLAGS="$xorg_testset_save_CFLAGS"
16262 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16263 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16268 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16269 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16270 $as_echo_n "(cached) " >&6
16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273 /* end confdefs.h. */
16276 if ac_fn_c_try_compile "$LINENO"; then :
16277 xorg_cv_compiler_flag_unused_command_line_argument=yes
16279 xorg_cv_compiler_flag_unused_command_line_argument=no
16281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16284 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16285 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16286 CFLAGS="$xorg_testset_save_CFLAGS"
16291 if test $found = "no" ; then
16292 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16296 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16300 CFLAGS="$CFLAGS -Warray-bounds"
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16303 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16304 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16305 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16306 $as_echo_n "(cached) " >&6
16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309 /* end confdefs.h. */
16319 if ac_fn_c_try_link "$LINENO"; then :
16320 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16322 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16324 rm -f core conftest.err conftest.$ac_objext \
16325 conftest$ac_exeext conftest.$ac_ext
16329 CFLAGS="$xorg_testset_save_CFLAGS"
16331 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16333 $as_echo "$supported" >&6; }
16334 if test "$supported" = "yes" ; then
16335 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16352 xorg_testset_save_CFLAGS="$CFLAGS"
16354 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16357 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16358 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16359 $as_echo_n "(cached) " >&6
16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362 /* end confdefs.h. */
16365 if ac_fn_c_try_compile "$LINENO"; then :
16366 xorg_cv_compiler_flag_unknown_warning_option=yes
16368 xorg_cv_compiler_flag_unknown_warning_option=no
16370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16373 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16374 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16375 CFLAGS="$xorg_testset_save_CFLAGS"
16378 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16379 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16384 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16385 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16386 $as_echo_n "(cached) " >&6
16388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h. */
16392 if ac_fn_c_try_compile "$LINENO"; then :
16393 xorg_cv_compiler_flag_unused_command_line_argument=yes
16395 xorg_cv_compiler_flag_unused_command_line_argument=no
16397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16400 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16401 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16402 CFLAGS="$xorg_testset_save_CFLAGS"
16407 if test $found = "no" ; then
16408 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16412 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16416 CFLAGS="$CFLAGS -Wwrite-strings"
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16419 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16420 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16421 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16422 $as_echo_n "(cached) " >&6
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h. */
16435 if ac_fn_c_try_link "$LINENO"; then :
16436 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16438 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16440 rm -f core conftest.err conftest.$ac_objext \
16441 conftest$ac_exeext conftest.$ac_ext
16445 CFLAGS="$xorg_testset_save_CFLAGS"
16447 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16449 $as_echo "$supported" >&6; }
16450 if test "$supported" = "yes" ; then
16451 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16468 xorg_testset_save_CFLAGS="$CFLAGS"
16470 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16473 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16474 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16475 $as_echo_n "(cached) " >&6
16477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478 /* end confdefs.h. */
16481 if ac_fn_c_try_compile "$LINENO"; then :
16482 xorg_cv_compiler_flag_unknown_warning_option=yes
16484 xorg_cv_compiler_flag_unknown_warning_option=no
16486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16489 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16490 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16491 CFLAGS="$xorg_testset_save_CFLAGS"
16494 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16495 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16500 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16501 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16502 $as_echo_n "(cached) " >&6
16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h. */
16508 if ac_fn_c_try_compile "$LINENO"; then :
16509 xorg_cv_compiler_flag_unused_command_line_argument=yes
16511 xorg_cv_compiler_flag_unused_command_line_argument=no
16513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16516 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16517 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16518 CFLAGS="$xorg_testset_save_CFLAGS"
16523 if test $found = "no" ; then
16524 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16528 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16532 CFLAGS="$CFLAGS -Waddress"
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16535 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16536 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16537 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16538 $as_echo_n "(cached) " >&6
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16551 if ac_fn_c_try_link "$LINENO"; then :
16552 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16554 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16556 rm -f core conftest.err conftest.$ac_objext \
16557 conftest$ac_exeext conftest.$ac_ext
16561 CFLAGS="$xorg_testset_save_CFLAGS"
16563 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16565 $as_echo "$supported" >&6; }
16566 if test "$supported" = "yes" ; then
16567 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16584 xorg_testset_save_CFLAGS="$CFLAGS"
16586 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16589 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16590 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16591 $as_echo_n "(cached) " >&6
16593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16594 /* end confdefs.h. */
16597 if ac_fn_c_try_compile "$LINENO"; then :
16598 xorg_cv_compiler_flag_unknown_warning_option=yes
16600 xorg_cv_compiler_flag_unknown_warning_option=no
16602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16605 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16606 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16607 CFLAGS="$xorg_testset_save_CFLAGS"
16610 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16611 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16616 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16617 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16618 $as_echo_n "(cached) " >&6
16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16621 /* end confdefs.h. */
16624 if ac_fn_c_try_compile "$LINENO"; then :
16625 xorg_cv_compiler_flag_unused_command_line_argument=yes
16627 xorg_cv_compiler_flag_unused_command_line_argument=no
16629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16632 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16633 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16634 CFLAGS="$xorg_testset_save_CFLAGS"
16639 if test $found = "no" ; then
16640 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16644 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16648 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16651 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16652 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16653 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16654 $as_echo_n "(cached) " >&6
16656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16657 /* end confdefs.h. */
16667 if ac_fn_c_try_link "$LINENO"; then :
16668 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16670 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16672 rm -f core conftest.err conftest.$ac_objext \
16673 conftest$ac_exeext conftest.$ac_ext
16677 CFLAGS="$xorg_testset_save_CFLAGS"
16679 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16681 $as_echo "$supported" >&6; }
16682 if test "$supported" = "yes" ; then
16683 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16700 xorg_testset_save_CFLAGS="$CFLAGS"
16702 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16705 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16706 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16707 $as_echo_n "(cached) " >&6
16709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h. */
16713 if ac_fn_c_try_compile "$LINENO"; then :
16714 xorg_cv_compiler_flag_unknown_warning_option=yes
16716 xorg_cv_compiler_flag_unknown_warning_option=no
16718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16721 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16722 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16723 CFLAGS="$xorg_testset_save_CFLAGS"
16726 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16727 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16732 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16733 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16734 $as_echo_n "(cached) " >&6
16736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737 /* end confdefs.h. */
16740 if ac_fn_c_try_compile "$LINENO"; then :
16741 xorg_cv_compiler_flag_unused_command_line_argument=yes
16743 xorg_cv_compiler_flag_unused_command_line_argument=no
16745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16748 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16749 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16750 CFLAGS="$xorg_testset_save_CFLAGS"
16755 if test $found = "no" ; then
16756 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16760 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16764 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16767 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16768 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16769 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16770 $as_echo_n "(cached) " >&6
16772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16773 /* end confdefs.h. */
16783 if ac_fn_c_try_link "$LINENO"; then :
16784 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16786 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16788 rm -f core conftest.err conftest.$ac_objext \
16789 conftest$ac_exeext conftest.$ac_ext
16793 CFLAGS="$xorg_testset_save_CFLAGS"
16795 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16797 $as_echo "$supported" >&6; }
16798 if test "$supported" = "yes" ; then
16799 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16813 CWARNFLAGS="$BASE_CFLAGS"
16814 if test "x$GCC" = xyes ; then
16815 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16825 # Check whether --enable-strict-compilation was given.
16826 if test "${enable_strict_compilation+set}" = set; then :
16827 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16849 xorg_testset_save_CFLAGS="$CFLAGS"
16851 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16854 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16855 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16856 $as_echo_n "(cached) " >&6
16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859 /* end confdefs.h. */
16862 if ac_fn_c_try_compile "$LINENO"; then :
16863 xorg_cv_compiler_flag_unknown_warning_option=yes
16865 xorg_cv_compiler_flag_unknown_warning_option=no
16867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16870 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16871 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16872 CFLAGS="$xorg_testset_save_CFLAGS"
16875 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16876 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16881 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16882 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16883 $as_echo_n "(cached) " >&6
16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h. */
16889 if ac_fn_c_try_compile "$LINENO"; then :
16890 xorg_cv_compiler_flag_unused_command_line_argument=yes
16892 xorg_cv_compiler_flag_unused_command_line_argument=no
16894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16897 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16898 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16899 CFLAGS="$xorg_testset_save_CFLAGS"
16904 if test $found = "no" ; then
16905 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16909 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16913 CFLAGS="$CFLAGS -pedantic"
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
16916 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
16917 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
16918 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16919 $as_echo_n "(cached) " >&6
16921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16922 /* end confdefs.h. */
16932 if ac_fn_c_try_link "$LINENO"; then :
16933 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16935 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16937 rm -f core conftest.err conftest.$ac_objext \
16938 conftest$ac_exeext conftest.$ac_ext
16942 CFLAGS="$xorg_testset_save_CFLAGS"
16944 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16946 $as_echo "$supported" >&6; }
16947 if test "$supported" = "yes" ; then
16948 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
16965 xorg_testset_save_CFLAGS="$CFLAGS"
16967 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16970 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16971 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16972 $as_echo_n "(cached) " >&6
16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16975 /* end confdefs.h. */
16978 if ac_fn_c_try_compile "$LINENO"; then :
16979 xorg_cv_compiler_flag_unknown_warning_option=yes
16981 xorg_cv_compiler_flag_unknown_warning_option=no
16983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16986 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16987 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16988 CFLAGS="$xorg_testset_save_CFLAGS"
16991 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16992 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16997 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16998 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16999 $as_echo_n "(cached) " >&6
17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17002 /* end confdefs.h. */
17005 if ac_fn_c_try_compile "$LINENO"; then :
17006 xorg_cv_compiler_flag_unused_command_line_argument=yes
17008 xorg_cv_compiler_flag_unused_command_line_argument=no
17010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17013 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17014 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17015 CFLAGS="$xorg_testset_save_CFLAGS"
17020 if test $found = "no" ; then
17021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17029 CFLAGS="$CFLAGS -Werror"
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17032 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17033 cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17034 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17035 $as_echo_n "(cached) " >&6
17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17038 /* end confdefs.h. */
17048 if ac_fn_c_try_link "$LINENO"; then :
17049 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17051 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17053 rm -f core conftest.err conftest.$ac_objext \
17054 conftest$ac_exeext conftest.$ac_ext
17058 CFLAGS="$xorg_testset_save_CFLAGS"
17060 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17062 $as_echo "$supported" >&6; }
17063 if test "$supported" = "yes" ; then
17064 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17069 if test $found = "no" ; then
17070 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17074 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17078 CFLAGS="$CFLAGS -errwarn"
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17081 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17082 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17083 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17084 $as_echo_n "(cached) " >&6
17086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17087 /* end confdefs.h. */
17097 if ac_fn_c_try_link "$LINENO"; then :
17098 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17100 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17102 rm -f core conftest.err conftest.$ac_objext \
17103 conftest$ac_exeext conftest.$ac_ext
17107 CFLAGS="$xorg_testset_save_CFLAGS"
17109 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17111 $as_echo "$supported" >&6; }
17112 if test "$supported" = "yes" ; then
17113 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17120 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17121 # activate it with -Werror, so we add it here explicitly.
17133 xorg_testset_save_CFLAGS="$CFLAGS"
17135 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17138 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17139 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17140 $as_echo_n "(cached) " >&6
17142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17143 /* end confdefs.h. */
17146 if ac_fn_c_try_compile "$LINENO"; then :
17147 xorg_cv_compiler_flag_unknown_warning_option=yes
17149 xorg_cv_compiler_flag_unknown_warning_option=no
17151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17154 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17155 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17156 CFLAGS="$xorg_testset_save_CFLAGS"
17159 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17160 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17165 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17166 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17167 $as_echo_n "(cached) " >&6
17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17170 /* end confdefs.h. */
17173 if ac_fn_c_try_compile "$LINENO"; then :
17174 xorg_cv_compiler_flag_unused_command_line_argument=yes
17176 xorg_cv_compiler_flag_unused_command_line_argument=no
17178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17181 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17182 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17183 CFLAGS="$xorg_testset_save_CFLAGS"
17188 if test $found = "no" ; then
17189 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17193 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17197 CFLAGS="$CFLAGS -Werror=attributes"
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17200 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17201 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17202 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17203 $as_echo_n "(cached) " >&6
17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h. */
17216 if ac_fn_c_try_link "$LINENO"; then :
17217 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17219 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17221 rm -f core conftest.err conftest.$ac_objext \
17222 conftest$ac_exeext conftest.$ac_ext
17226 CFLAGS="$xorg_testset_save_CFLAGS"
17228 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17230 $as_echo "$supported" >&6; }
17231 if test "$supported" = "yes" ; then
17232 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17239 if test "x$STRICT_COMPILE" = "xyes"; then
17240 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17241 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17249 cat >>confdefs.h <<_ACEOF
17250 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17253 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17254 if test "x$PVM" = "x"; then
17258 cat >>confdefs.h <<_ACEOF
17259 #define PACKAGE_VERSION_MINOR $PVM
17262 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17263 if test "x$PVP" = "x"; then
17267 cat >>confdefs.h <<_ACEOF
17268 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17273 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17274 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17275 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17276 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17281 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17282 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17283 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17284 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17285 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17292 if test x$APP_MAN_SUFFIX = x ; then
17295 if test x$APP_MAN_DIR = x ; then
17296 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17299 if test x$LIB_MAN_SUFFIX = x ; then
17302 if test x$LIB_MAN_DIR = x ; then
17303 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17306 if test x$FILE_MAN_SUFFIX = x ; then
17308 solaris*) FILE_MAN_SUFFIX=4 ;;
17309 *) FILE_MAN_SUFFIX=5 ;;
17312 if test x$FILE_MAN_DIR = x ; then
17313 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17316 if test x$MISC_MAN_SUFFIX = x ; then
17318 solaris*) MISC_MAN_SUFFIX=5 ;;
17319 *) MISC_MAN_SUFFIX=7 ;;
17322 if test x$MISC_MAN_DIR = x ; then
17323 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17326 if test x$DRIVER_MAN_SUFFIX = x ; then
17328 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17329 *) DRIVER_MAN_SUFFIX=4 ;;
17332 if test x$DRIVER_MAN_DIR = x ; then
17333 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17336 if test x$ADMIN_MAN_SUFFIX = x ; then
17338 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17339 *) ADMIN_MAN_SUFFIX=8 ;;
17342 if test x$ADMIN_MAN_DIR = x ; then
17343 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17360 XORG_MAN_PAGE="X Version 11"
17363 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17364 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17365 -e 's|__xservername__|Xorg|g' \
17366 -e 's|__xconfigfile__|xorg.conf|g' \
17367 -e 's|__projectroot__|\$(prefix)|g' \
17368 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17369 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17370 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17371 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17372 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17373 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17374 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17378 # Check whether --enable-silent-rules was given.
17379 if test "${enable_silent_rules+set}" = set; then :
17380 enableval=$enable_silent_rules;
17383 case $enable_silent_rules in
17384 yes) AM_DEFAULT_VERBOSITY=0;;
17385 no) AM_DEFAULT_VERBOSITY=1;;
17386 *) AM_DEFAULT_VERBOSITY=0;;
17392 # Check whether --enable-malloc0returnsnull was given.
17393 if test "${enable_malloc0returnsnull+set}" = set; then :
17394 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17396 MALLOC_ZERO_RETURNS_NULL=auto
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17401 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17402 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17403 if test "$cross_compiling" = yes; then :
17404 MALLOC_ZERO_RETURNS_NULL=yes
17406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17407 /* end confdefs.h. */
17409 #include <stdlib.h>
17415 char *m0, *r0, *c0, *p;
17420 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17426 if ac_fn_c_try_run "$LINENO"; then :
17427 MALLOC_ZERO_RETURNS_NULL=yes
17429 MALLOC_ZERO_RETURNS_NULL=no
17431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17432 conftest.$ac_objext conftest.beam conftest.$ac_ext
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17437 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17439 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17440 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17441 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17442 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17444 MALLOC_ZERO_CFLAGS=""
17445 XMALLOC_ZERO_CFLAGS=""
17446 XTMALLOC_ZERO_CFLAGS=""
17454 # Obtain compiler/linker options for depedencies
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSCRNSAVER" >&5
17458 $as_echo_n "checking for XSCRNSAVER... " >&6; }
17460 if test -n "$XSCRNSAVER_CFLAGS"; then
17461 pkg_cv_XSCRNSAVER_CFLAGS="$XSCRNSAVER_CFLAGS"
17462 elif test -n "$PKG_CONFIG"; then
17463 if test -n "$PKG_CONFIG" && \
17464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.2\""; } >&5
17465 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.2") 2>&5
17467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17468 test $ac_status = 0; }; then
17469 pkg_cv_XSCRNSAVER_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto scrnsaverproto >= 1.2" 2>/dev/null`
17476 if test -n "$XSCRNSAVER_LIBS"; then
17477 pkg_cv_XSCRNSAVER_LIBS="$XSCRNSAVER_LIBS"
17478 elif test -n "$PKG_CONFIG"; then
17479 if test -n "$PKG_CONFIG" && \
17480 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.2\""; } >&5
17481 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.2") 2>&5
17483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17484 test $ac_status = 0; }; then
17485 pkg_cv_XSCRNSAVER_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto scrnsaverproto >= 1.2" 2>/dev/null`
17495 if test $pkg_failed = yes; then
17497 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17498 _pkg_short_errors_supported=yes
17500 _pkg_short_errors_supported=no
17502 if test $_pkg_short_errors_supported = yes; then
17503 XSCRNSAVER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto scrnsaverproto >= 1.2" 2>&1`
17505 XSCRNSAVER_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto scrnsaverproto >= 1.2" 2>&1`
17507 # Put the nasty error message in config.log where it belongs
17508 echo "$XSCRNSAVER_PKG_ERRORS" >&5
17510 as_fn_error $? "Package requirements (x11 xext xextproto scrnsaverproto >= 1.2) were not met:
17512 $XSCRNSAVER_PKG_ERRORS
17514 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17515 installed software in a non-standard prefix.
17517 Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS
17518 and XSCRNSAVER_LIBS to avoid the need to call pkg-config.
17519 See the pkg-config man page for more details.
17521 elif test $pkg_failed = untried; then
17522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17524 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17525 is in your PATH or set the PKG_CONFIG environment variable to the full
17526 path to pkg-config.
17528 Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS
17529 and XSCRNSAVER_LIBS to avoid the need to call pkg-config.
17530 See the pkg-config man page for more details.
17532 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17533 See \`config.log' for more details" "$LINENO" 5; }
17535 XSCRNSAVER_CFLAGS=$pkg_cv_XSCRNSAVER_CFLAGS
17536 XSCRNSAVER_LIBS=$pkg_cv_XSCRNSAVER_LIBS
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17538 $as_echo "yes" >&6; }
17542 # Allow checking code with lint, sparse, etc.
17548 # Check whether --with-lint was given.
17549 if test "${with_lint+set}" = set; then :
17550 withval=$with_lint; use_lint=$withval
17556 # Obtain platform specific info like program name and options
17557 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
17559 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
17561 lint_options="-badflag"
17563 *freebsd* | *netbsd*)
17565 lint_options="-u -b"
17569 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
17573 # Test for the presence of the program (either guessed by the code or spelled out by the user)
17574 if test "x$use_lint" = x"yes" ; then
17575 # Extract the first word of "$lint_name", so it can be a program name with args.
17576 set dummy $lint_name; ac_word=$2
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17578 $as_echo_n "checking for $ac_word... " >&6; }
17579 if ${ac_cv_path_LINT+:} false; then :
17580 $as_echo_n "(cached) " >&6
17584 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
17587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17588 for as_dir in $PATH
17591 test -z "$as_dir" && as_dir=.
17592 for ac_exec_ext in '' $ac_executable_extensions; do
17593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17594 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
17595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17605 LINT=$ac_cv_path_LINT
17606 if test -n "$LINT"; then
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
17608 $as_echo "$LINT" >&6; }
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17611 $as_echo "no" >&6; }
17615 if test "x$LINT" = "x"; then
17616 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
17618 elif test "x$use_lint" = x"no" ; then
17619 if test "x$LINT" != "x"; then
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
17621 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
17624 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
17627 # User supplied flags override default flags
17628 if test "x$LINT_FLAGS" != "x"; then
17629 lint_options=$LINT_FLAGS
17632 LINT_FLAGS=$lint_options
17634 if test "x$LINT" != x; then
17646 # Check whether --enable-lint-library was given.
17647 if test "${enable_lint_library+set}" = set; then :
17648 enableval=$enable_lint_library; make_lint_lib=$enableval
17654 if test "x$make_lint_lib" = x"yes" ; then
17655 LINTLIB=llib-lXss.ln
17656 if test "x$LINT" = "x"; then
17657 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
17659 elif test "x$make_lint_lib" != x"no" ; then
17660 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
17664 if test x$make_lint_lib != xno; then
17665 MAKE_LINT_LIB_TRUE=
17666 MAKE_LINT_LIB_FALSE='#'
17668 MAKE_LINT_LIB_TRUE='#'
17669 MAKE_LINT_LIB_FALSE=
17675 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xscrnsaver.pc"
17677 cat >confcache <<\_ACEOF
17678 # This file is a shell script that caches the results of configure
17679 # tests run on this system so they can be shared between configure
17680 # scripts and configure runs, see configure's option --config-cache.
17681 # It is not useful on other systems. If it contains results you don't
17682 # want to keep, you may remove or edit it.
17684 # config.status only pays attention to the cache file if you give it
17685 # the --recheck option to rerun configure.
17687 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17688 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17689 # following values.
17693 # The following way of writing the cache mishandles newlines in values,
17694 # but we know of no workaround that is simple, portable, and efficient.
17695 # So, we kill variables containing newlines.
17696 # Ultrix sh set writes to stderr and can't be redirected directly,
17697 # and sets the high bit in the cache file unless we assign to the vars.
17699 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17700 eval ac_val=\$$ac_var
17704 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17705 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17708 _ | IFS | as_nl) ;; #(
17709 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17710 *) { eval $ac_var=; unset $ac_var;} ;;
17716 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17717 *${as_nl}ac_space=\ *)
17718 # `set' does not quote correctly, so add quotes: double-quote
17719 # substitution turns \\\\ into \\, and sed turns \\ into \.
17722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17725 # `set' quotes correctly as required by POSIX, so do not add quotes.
17726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17735 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17737 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17739 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17740 if test -w "$cache_file"; then
17741 if test "x$cache_file" != "x/dev/null"; then
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17743 $as_echo "$as_me: updating cache $cache_file" >&6;}
17744 if test ! -f "$cache_file" || test -h "$cache_file"; then
17745 cat confcache >"$cache_file"
17747 case $cache_file in #(
17749 mv -f confcache "$cache_file"$$ &&
17750 mv -f "$cache_file"$$ "$cache_file" ;; #(
17752 mv -f confcache "$cache_file" ;;
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17758 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17763 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17764 # Let make expand exec_prefix.
17765 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17767 DEFS=-DHAVE_CONFIG_H
17772 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17773 # 1. Remove the extension, and $U if already installed.
17774 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17775 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17776 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17777 # will be set to the directory where LIBOBJS objects are built.
17778 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17779 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17781 LIBOBJS=$ac_libobjs
17783 LTLIBOBJS=$ac_ltlibobjs
17786 if test -n "$EXEEXT"; then
17788 am__EXEEXT_FALSE='#'
17790 am__EXEEXT_TRUE='#'
17794 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17795 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17798 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17799 as_fn_error $? "conditional \"AMDEP\" was never defined.
17800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17802 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17803 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17806 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
17807 as_fn_error $? "conditional \"LINT\" was never defined.
17808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17810 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
17811 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
17812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17815 : "${CONFIG_STATUS=./config.status}"
17817 ac_clean_files_save=$ac_clean_files
17818 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17820 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17822 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17824 # Generated by $as_me.
17825 # Run this file to recreate the current configuration.
17826 # Compiler output produced by configure, useful for debugging
17827 # configure, is in config.log if it exists.
17830 ac_cs_recheck=false
17833 SHELL=\${CONFIG_SHELL-$SHELL}
17836 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17837 ## -------------------- ##
17838 ## M4sh Initialization. ##
17839 ## -------------------- ##
17841 # Be more Bourne compatible
17842 DUALCASE=1; export DUALCASE # for MKS sh
17843 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17846 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17847 # is contrary to our usage. Disable this feature.
17848 alias -g '${1+"$@"}'='"$@"'
17849 setopt NO_GLOB_SUBST
17851 case `(set -o) 2>/dev/null` in #(
17863 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17864 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17865 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17867 # Prefer a ksh shell builtin over an external printf program on Solaris,
17868 # but without wasting forks for bash or zsh.
17869 if test -z "$BASH_VERSION$ZSH_VERSION" \
17870 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17871 as_echo='print -r --'
17872 as_echo_n='print -rn --'
17873 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17874 as_echo='printf %s\n'
17875 as_echo_n='printf %s'
17877 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17878 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17879 as_echo_n='/usr/ucb/echo -n'
17881 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17882 as_echo_n_body='eval
17886 expr "X$arg" : "X\\(.*\\)$as_nl";
17887 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17889 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17891 export as_echo_n_body
17892 as_echo_n='sh -c $as_echo_n_body as_echo'
17894 export as_echo_body
17895 as_echo='sh -c $as_echo_body as_echo'
17898 # The user is always right.
17899 if test "${PATH_SEPARATOR+set}" != set; then
17901 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17902 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17909 # We need space, tab and new line, in precisely that order. Quoting is
17910 # there to prevent editors from complaining about space-tab.
17911 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17912 # splitting by setting IFS to empty value.)
17915 # Find who we are. Look in the path if we contain no directory separator.
17918 *[\\/]* ) as_myself=$0 ;;
17919 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17920 for as_dir in $PATH
17923 test -z "$as_dir" && as_dir=.
17924 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17930 # We did not find ourselves, most probably we were run as `sh COMMAND'
17931 # in which case we are not to be found in the path.
17932 if test "x$as_myself" = x; then
17935 if test ! -f "$as_myself"; then
17936 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17940 # Unset variables that we do not need and which cause bugs (e.g. in
17941 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17942 # suppresses any "Segmentation fault" message there. '((' could
17943 # trigger a bug in pdksh 5.2.14.
17944 for as_var in BASH_ENV ENV MAIL MAILPATH
17945 do eval test x\${$as_var+set} = xset \
17946 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17959 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17962 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17963 # ----------------------------------------
17964 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17965 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17966 # script with STATUS, using 1 if that was 0.
17969 as_status=$1; test $as_status -eq 0 && as_status=1
17971 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17972 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17974 $as_echo "$as_me: error: $2" >&2
17975 as_fn_exit $as_status
17979 # as_fn_set_status STATUS
17980 # -----------------------
17981 # Set $? to STATUS, without forking.
17982 as_fn_set_status ()
17985 } # as_fn_set_status
17987 # as_fn_exit STATUS
17988 # -----------------
17989 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17993 as_fn_set_status $1
17999 # Portably unset VAR.
18002 { eval $1=; unset $1;}
18004 as_unset=as_fn_unset
18005 # as_fn_append VAR VALUE
18006 # ----------------------
18007 # Append the text in VALUE to the end of the definition contained in VAR. Take
18008 # advantage of any shell optimizations that allow amortized linear growth over
18009 # repeated appends, instead of the typical quadratic growth present in naive
18011 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18012 eval 'as_fn_append ()
18023 # as_fn_arith ARG...
18024 # ------------------
18025 # Perform arithmetic evaluation on the ARGs, and store the result in the
18026 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18027 # must be portable across $(()) and expr.
18028 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18029 eval 'as_fn_arith ()
18036 as_val=`expr "$@" || test $? -eq 1`
18041 if expr a : '\(a\)' >/dev/null 2>&1 &&
18042 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18048 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18049 as_basename=basename
18054 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18060 as_me=`$as_basename -- "$0" ||
18061 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18062 X"$0" : 'X\(//\)$' \| \
18063 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18065 sed '/^.*\/\([^/][^/]*\)\/*$/{
18079 # Avoid depending upon Character Ranges.
18080 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18081 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18082 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18083 as_cr_digits='0123456789'
18084 as_cr_alnum=$as_cr_Letters$as_cr_digits
18086 ECHO_C= ECHO_N= ECHO_T=
18087 case `echo -n x` in #(((((
18089 case `echo 'xy\c'` in
18090 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18092 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18099 rm -f conf$$ conf$$.exe conf$$.file
18100 if test -d conf$$.dir; then
18101 rm -f conf$$.dir/conf$$.file
18104 mkdir conf$$.dir 2>/dev/null
18106 if (echo >conf$$.file) 2>/dev/null; then
18107 if ln -s conf$$.file conf$$ 2>/dev/null; then
18109 # ... but there are two gotchas:
18110 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18111 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18112 # In both cases, we have to default to `cp -p'.
18113 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18115 elif ln conf$$.file conf$$ 2>/dev/null; then
18123 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18124 rmdir conf$$.dir 2>/dev/null
18129 # Create "$as_dir" as a directory, including parents if necessary.
18134 -*) as_dir=./$as_dir;;
18136 test -d "$as_dir" || eval $as_mkdir_p || {
18140 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18141 *) as_qdir=$as_dir;;
18143 as_dirs="'$as_qdir' $as_dirs"
18144 as_dir=`$as_dirname -- "$as_dir" ||
18145 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18146 X"$as_dir" : 'X\(//\)[^/]' \| \
18147 X"$as_dir" : 'X\(//\)$' \| \
18148 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18149 $as_echo X"$as_dir" |
18150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18154 /^X\(\/\/\)[^/].*/{
18167 test -d "$as_dir" && break
18169 test -z "$as_dirs" || eval "mkdir $as_dirs"
18170 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18174 if mkdir -p . 2>/dev/null; then
18175 as_mkdir_p='mkdir -p "$as_dir"'
18177 test -d ./-p && rmdir ./-p
18181 if test -x / >/dev/null 2>&1; then
18182 as_test_x='test -x'
18184 if ls -dL / >/dev/null 2>&1; then
18191 if test -d "$1"; then
18197 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18198 ???[sx]*):;;*)false;;esac;fi
18202 as_executable_p=$as_test_x
18204 # Sed expression to map a string onto a valid CPP name.
18205 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18207 # Sed expression to map a string onto a valid variable name.
18208 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18212 ## ----------------------------------- ##
18213 ## Main body of $CONFIG_STATUS script. ##
18214 ## ----------------------------------- ##
18216 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18219 # Save the log message, to keep $0 and so on meaningful, and to
18220 # report actual input values of CONFIG_FILES etc. instead of their
18221 # values after options handling.
18223 This file was extended by libXScrnSaver $as_me 1.2.2, which was
18224 generated by GNU Autoconf 2.68. Invocation command line was
18226 CONFIG_FILES = $CONFIG_FILES
18227 CONFIG_HEADERS = $CONFIG_HEADERS
18228 CONFIG_LINKS = $CONFIG_LINKS
18229 CONFIG_COMMANDS = $CONFIG_COMMANDS
18232 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18237 case $ac_config_files in *"
18238 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18241 case $ac_config_headers in *"
18242 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18247 # Files that config.status was made for.
18248 config_files="$ac_config_files"
18249 config_headers="$ac_config_headers"
18250 config_commands="$ac_config_commands"
18254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18256 \`$as_me' instantiates files and other configuration actions
18257 from templates according to the current configuration. Unless the files
18258 and actions are specified as TAGs, all are instantiated by default.
18260 Usage: $0 [OPTION]... [TAG]...
18262 -h, --help print this help, then exit
18263 -V, --version print version number and configuration settings, then exit
18264 --config print configuration, then exit
18265 -q, --quiet, --silent
18266 do not print progress messages
18267 -d, --debug don't remove temporary files
18268 --recheck update $as_me by reconfiguring in the same conditions
18269 --file=FILE[:TEMPLATE]
18270 instantiate the configuration file FILE
18271 --header=FILE[:TEMPLATE]
18272 instantiate the configuration header FILE
18274 Configuration files:
18277 Configuration headers:
18280 Configuration commands:
18283 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18287 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18289 libXScrnSaver config.status 1.2.2
18290 configured by $0, generated by GNU Autoconf 2.68,
18291 with options \\"\$ac_cs_config\\"
18293 Copyright (C) 2010 Free Software Foundation, Inc.
18294 This config.status script is free software; the Free Software Foundation
18295 gives unlimited permission to copy, distribute and modify it."
18302 test -n "\$AWK" || AWK=awk
18305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18306 # The default lists apply if the user does not specify any file.
18312 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18313 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18317 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18329 # Handling of the options.
18330 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18332 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18333 $as_echo "$ac_cs_version"; exit ;;
18334 --config | --confi | --conf | --con | --co | --c )
18335 $as_echo "$ac_cs_config"; exit ;;
18336 --debug | --debu | --deb | --de | --d | -d )
18338 --file | --fil | --fi | --f )
18341 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18342 '') as_fn_error $? "missing file argument" ;;
18344 as_fn_append CONFIG_FILES " '$ac_optarg'"
18345 ac_need_defaults=false;;
18346 --header | --heade | --head | --hea )
18349 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18351 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18352 ac_need_defaults=false;;
18354 # Conflict between --help and --header
18355 as_fn_error $? "ambiguous option: \`$1'
18356 Try \`$0 --help' for more information.";;
18357 --help | --hel | -h )
18358 $as_echo "$ac_cs_usage"; exit ;;
18359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18360 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18363 # This is an error.
18364 -*) as_fn_error $? "unrecognized option: \`$1'
18365 Try \`$0 --help' for more information." ;;
18367 *) as_fn_append ac_config_targets " $1"
18368 ac_need_defaults=false ;;
18374 ac_configure_extra_args=
18376 if $ac_cs_silent; then
18378 ac_configure_extra_args="$ac_configure_extra_args --silent"
18382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18383 if \$ac_cs_recheck; then
18384 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18386 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18387 CONFIG_SHELL='$SHELL'
18388 export CONFIG_SHELL
18393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18397 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18398 ## Running $as_me. ##
18404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18408 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18411 # The HP-UX ksh and POSIX shell print the target directory to stdout
18412 # if CDPATH is set.
18413 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18415 sed_quote_subst='$sed_quote_subst'
18416 double_quote_subst='$double_quote_subst'
18417 delay_variable_subst='$delay_variable_subst'
18418 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18419 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18420 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18421 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18422 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18423 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18424 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18425 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18426 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18427 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18428 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18429 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18430 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18431 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18432 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18433 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18434 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18435 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18436 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18437 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18438 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18439 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18440 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18441 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18442 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18443 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18444 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18445 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18446 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18447 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18448 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18449 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18450 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18451 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18452 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18453 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18454 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18455 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18456 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18457 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18458 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18459 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18460 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18461 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18462 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18463 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18464 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18465 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18466 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18467 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18468 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18469 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18470 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18471 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18472 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18473 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"`'
18474 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18475 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18476 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18477 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18478 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18479 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18480 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18481 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18482 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18483 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18484 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18485 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18486 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18487 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18488 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18489 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18490 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18491 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18492 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18493 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18494 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18495 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18496 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18497 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18498 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18499 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18500 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18501 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18502 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18503 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18504 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18505 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18506 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18507 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18508 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18509 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18510 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18511 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18512 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18513 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18514 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18515 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18516 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18517 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18518 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18519 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18520 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18521 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18522 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18523 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18524 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18525 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18526 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18527 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18528 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18529 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18530 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18531 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18532 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18533 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18534 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18535 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18536 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18537 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18538 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18539 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18540 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18541 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18542 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18543 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18544 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18545 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18546 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18547 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18550 LTCFLAGS='$LTCFLAGS'
18551 compiler='$compiler_DEFAULT'
18553 # A function that is used when there is no print builtin or printf.
18554 func_fallback_echo ()
18556 eval 'cat <<_LTECHO_EOF
18561 # Quote evaled strings.
18575 deplibs_check_method \
18580 sharedlib_from_linklib_cmd \
18583 archiver_list_spec \
18589 lt_cv_sys_global_symbol_pipe \
18590 lt_cv_sys_global_symbol_to_cdecl \
18591 lt_cv_sys_global_symbol_to_c_name_address \
18592 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18593 nm_file_list_spec \
18594 lt_prog_compiler_no_builtin_flag \
18595 lt_prog_compiler_pic \
18596 lt_prog_compiler_wl \
18597 lt_prog_compiler_static \
18598 lt_cv_prog_compiler_c_o \
18607 export_dynamic_flag_spec \
18608 whole_archive_flag_spec \
18609 compiler_needs_object \
18611 allow_undefined_flag \
18612 no_undefined_flag \
18613 hardcode_libdir_flag_spec \
18614 hardcode_libdir_flag_spec_ld \
18615 hardcode_libdir_separator \
18619 variables_saved_for_relink \
18621 library_names_spec \
18623 install_override_mode \
18627 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18628 *[\\\\\\\`\\"\\\$]*)
18629 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18632 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18637 # Double-quote double-evaled strings.
18638 for var in reload_cmds \
18639 old_postinstall_cmds \
18640 old_postuninstall_cmds \
18642 extract_expsyms_cmds \
18643 old_archive_from_new_cmds \
18644 old_archive_from_expsyms_cmds \
18646 archive_expsym_cmds \
18648 module_expsym_cmds \
18649 export_symbols_cmds \
18653 postuninstall_cmds \
18655 sys_lib_search_path_spec \
18656 sys_lib_dlsearch_path_spec; do
18657 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18658 *[\\\\\\\`\\"\\\$]*)
18659 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18662 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18667 ac_aux_dir='$ac_aux_dir'
18668 xsi_shell='$xsi_shell'
18669 lt_shell_append='$lt_shell_append'
18671 # See if we are running on zsh, and set the options which allow our
18672 # commands through without removal of \ escapes INIT.
18673 if test -n "\${ZSH_VERSION+set}" ; then
18674 setopt NO_GLOB_SUBST
18680 TIMESTAMP='$TIMESTAMP'
18689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18691 # Handling of arguments.
18692 for ac_config_target in $ac_config_targets
18694 case $ac_config_target in
18695 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18696 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18697 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18698 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18699 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18700 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18701 "xscrnsaver.pc") CONFIG_FILES="$CONFIG_FILES xscrnsaver.pc" ;;
18703 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18708 # If the user did not use the arguments to specify the items to instantiate,
18709 # then the envvar interface is used. Set only those that are not.
18710 # We use the long form for the default assignment because of an extremely
18711 # bizarre bug on SunOS 4.1.3.
18712 if $ac_need_defaults; then
18713 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18714 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18715 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18718 # Have a temporary directory for convenience. Make it in the build tree
18719 # simply because there is no reason against having it here, and in addition,
18720 # creating and moving files from /tmp can sometimes cause problems.
18721 # Hook for its removal unless debugging.
18722 # Note that there is a small window in which the directory will not be cleaned:
18723 # after its creation but before its name has been assigned to `$tmp'.
18727 trap 'exit_status=$?
18728 : "${ac_tmp:=$tmp}"
18729 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18731 trap 'as_fn_exit 1' 1 2 13 15
18733 # Create a (secure) tmp directory for tmp files.
18736 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18740 tmp=./conf$$-$RANDOM
18741 (umask 077 && mkdir "$tmp")
18742 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18745 # Set up the scripts for CONFIG_FILES section.
18746 # No need to generate them if there are no CONFIG_FILES.
18747 # This happens for instance with `./config.status config.h'.
18748 if test -n "$CONFIG_FILES"; then
18751 ac_cr=`echo X | tr X '\015'`
18752 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18753 # But we know of no other shell where ac_cr would be empty at this
18754 # point, so we can use a bashism as a fallback.
18755 if test "x$ac_cr" = x; then
18756 eval ac_cr=\$\'\\r\'
18758 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18759 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18762 ac_cs_awk_cr=$ac_cr
18765 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18770 echo "cat >conf$$subs.awk <<_ACEOF" &&
18771 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18773 } >conf$$subs.sh ||
18774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18775 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18777 for ac_last_try in false false false false false :; do
18778 . ./conf$$subs.sh ||
18779 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18781 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18782 if test $ac_delim_n = $ac_delim_num; then
18784 elif $ac_last_try; then
18785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18790 rm -f conf$$subs.sh
18792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18793 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18797 s/^/S["/; s/!.*/"]=/
18807 s/\(.\{148\}\)..*/\1/
18809 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18814 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18821 s/\(.\{148\}\)..*/\1/
18823 s/["\\]/\\&/g; s/^/"/; s/$/"/
18827 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18832 ' <conf$$subs.awk | sed '
18837 ' >>$CONFIG_STATUS || ac_write_fail=1
18838 rm -f conf$$subs.awk
18839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18841 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18842 for (key in S) S_is_set[key] = 1
18848 nfields = split(line, field, "@")
18850 len = length(field[1])
18851 for (i = 2; i < nfields; i++) {
18853 keylen = length(key)
18854 if (S_is_set[key]) {
18856 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18857 len += length(value) + length(field[++i])
18868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18869 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18870 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18873 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18874 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18877 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18878 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18879 # trailing colons and then remove the whole line if VPATH becomes empty
18880 # (actually we leave an empty line to preserve line numbers).
18881 if test "x$srcdir" = x.; then
18882 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18901 fi # test -n "$CONFIG_FILES"
18903 # Set up the scripts for CONFIG_HEADERS section.
18904 # No need to generate them if there are no CONFIG_HEADERS.
18905 # This happens for instance with `./config.status Makefile'.
18906 if test -n "$CONFIG_HEADERS"; then
18907 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18911 # Transform confdefs.h into an awk script `defines.awk', embedded as
18912 # here-document in config.status, that substitutes the proper values into
18913 # config.h.in to produce config.h.
18915 # Create a delimiter string that does not exist in confdefs.h, to ease
18916 # handling of long lines.
18918 for ac_last_try in false false :; do
18919 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18920 if test -z "$ac_tt"; then
18922 elif $ac_last_try; then
18923 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18925 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18929 # For the awk script, D is an array of macro values keyed by name,
18930 # likewise P contains macro parameters if any. Preserve backslash
18931 # newline sequences.
18933 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18935 s/.\{148\}/&'"$ac_delim"'/g
18938 s/^[ ]*#[ ]*define[ ][ ]*/ /
18945 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18947 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18952 D["\1"]=" \3\\\\\\n"\\/p
18954 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18959 s/.\{148\}/&'"$ac_delim"'/g
18964 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18967 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18969 ' <confdefs.h | sed '
18970 s/'"$ac_delim"'/"\\\
18971 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18974 for (key in D) D_is_set[key] = 1
18977 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18979 split(line, arg, " ")
18980 if (arg[1] == "#") {
18984 defundef = substr(arg[1], 2)
18987 split(mac1, mac2, "(") #)
18989 prefix = substr(line, 1, index(line, defundef) - 1)
18990 if (D_is_set[macro]) {
18991 # Preserve the white space surrounding the "#".
18992 print prefix "define", macro P[macro] D[macro]
18995 # Replace #undef with comments. This is necessary, for example,
18996 # in the case of _POSIX_SOURCE, which is predefined and required
18997 # on some systems where configure will not decide to define it.
18998 if (defundef == "undef") {
18999 print "/*", prefix defundef, macro, "*/"
19007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19008 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19009 fi # test -n "$CONFIG_HEADERS"
19012 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19017 :[FHLC]) ac_mode=$ac_tag; continue;;
19019 case $ac_mode$ac_tag in
19021 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19022 :[FH]-) ac_tag=-:-;;
19023 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19040 -) ac_f="$ac_tmp/stdin";;
19041 *) # Look for the file first in the build tree, then in the source tree
19042 # (if the path is not absolute). The absolute path cannot be DOS-style,
19043 # because $ac_f cannot contain `:'.
19047 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19049 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19051 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19052 as_fn_append ac_file_inputs " '$ac_f'"
19055 # Let's still pretend it is `configure' which instantiates (i.e., don't
19056 # use $as_me), people would be surprised to read:
19057 # /* config.h. Generated by config.status. */
19058 configure_input='Generated from '`
19059 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19061 if test x"$ac_file" != x-; then
19062 configure_input="$ac_file. $configure_input"
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19064 $as_echo "$as_me: creating $ac_file" >&6;}
19066 # Neutralize special characters interpreted by sed in replacement strings.
19067 case $configure_input in #(
19068 *\&* | *\|* | *\\* )
19069 ac_sed_conf_input=`$as_echo "$configure_input" |
19070 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19071 *) ac_sed_conf_input=$configure_input;;
19075 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19076 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19081 ac_dir=`$as_dirname -- "$ac_file" ||
19082 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19083 X"$ac_file" : 'X\(//\)[^/]' \| \
19084 X"$ac_file" : 'X\(//\)$' \| \
19085 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19086 $as_echo X"$ac_file" |
19087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19091 /^X\(\/\/\)[^/].*/{
19104 as_dir="$ac_dir"; as_fn_mkdir_p
19108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19110 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19111 # A ".." for each directory in $ac_dir_suffix.
19112 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19113 case $ac_top_builddir_sub in
19114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19118 ac_abs_top_builddir=$ac_pwd
19119 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19120 # for backward compatibility:
19121 ac_top_builddir=$ac_top_build_prefix
19124 .) # We are building in place.
19126 ac_top_srcdir=$ac_top_builddir_sub
19127 ac_abs_top_srcdir=$ac_pwd ;;
19128 [\\/]* | ?:[\\/]* ) # Absolute name.
19129 ac_srcdir=$srcdir$ac_dir_suffix;
19130 ac_top_srcdir=$srcdir
19131 ac_abs_top_srcdir=$srcdir ;;
19132 *) # Relative name.
19133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19134 ac_top_srcdir=$ac_top_build_prefix$srcdir
19135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19147 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19148 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19150 ac_MKDIR_P=$MKDIR_P
19152 [\\/$]* | ?:[\\/]* ) ;;
19153 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19158 # If the template does not know about datarootdir, expand it.
19159 # FIXME: This hack should be removed a few years after 2.60.
19160 ac_datarootdir_hack=; ac_datarootdir_seen=
19171 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19172 *datarootdir*) ac_datarootdir_seen=yes;;
19173 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19175 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19178 ac_datarootdir_hack='
19179 s&@datadir@&$datadir&g
19180 s&@docdir@&$docdir&g
19181 s&@infodir@&$infodir&g
19182 s&@localedir@&$localedir&g
19183 s&@mandir@&$mandir&g
19184 s&\\\${datarootdir}&$datarootdir&g' ;;
19188 # Neutralize VPATH when `$srcdir' = `.'.
19189 # Shell code in configure.ac might set extrasub.
19190 # FIXME: do we really want to maintain this feature?
19191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19192 ac_sed_extra="$ac_vpsub
19195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19198 s|@configure_input@|$ac_sed_conf_input|;t t
19199 s&@top_builddir@&$ac_top_builddir_sub&;t t
19200 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19201 s&@srcdir@&$ac_srcdir&;t t
19202 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19203 s&@top_srcdir@&$ac_top_srcdir&;t t
19204 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19205 s&@builddir@&$ac_builddir&;t t
19206 s&@abs_builddir@&$ac_abs_builddir&;t t
19207 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19208 s&@INSTALL@&$ac_INSTALL&;t t
19209 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19210 $ac_datarootdir_hack
19212 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19213 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19215 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19216 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19217 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19218 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19220 which seems to be undefined. Please make sure it is defined" >&5
19221 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19222 which seems to be undefined. Please make sure it is defined" >&2;}
19224 rm -f "$ac_tmp/stdin"
19226 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19227 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19235 if test x"$ac_file" != x-; then
19237 $as_echo "/* $configure_input */" \
19238 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19239 } >"$ac_tmp/config.h" \
19240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19241 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19243 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19246 mv "$ac_tmp/config.h" "$ac_file" \
19247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19250 $as_echo "/* $configure_input */" \
19251 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19252 || as_fn_error $? "could not create -" "$LINENO" 5
19254 # Compute "$ac_file"'s index in $config_headers.
19257 for _am_header in $config_headers :; do
19258 case $_am_header in
19259 $_am_arg | $_am_arg:* )
19262 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19265 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19266 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19267 X"$_am_arg" : 'X\(//\)[^/]' \| \
19268 X"$_am_arg" : 'X\(//\)$' \| \
19269 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19270 $as_echo X"$_am_arg" |
19271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19275 /^X\(\/\/\)[^/].*/{
19287 s/.*/./; q'`/stamp-h$_am_stamp_count
19290 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19291 $as_echo "$as_me: executing $ac_file commands" >&6;}
19296 case $ac_file$ac_mode in
19297 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19298 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19299 # are listed without --file. Let's play safe and only enable the eval
19300 # if we detect the quoting.
19301 case $CONFIG_FILES in
19302 *\'*) eval set x "$CONFIG_FILES" ;;
19303 *) set x $CONFIG_FILES ;;
19308 # Strip MF so we end up with the name of the file.
19309 mf=`echo "$mf" | sed -e 's/:.*$//'`
19310 # Check whether this is an Automake generated Makefile or not.
19311 # We used to match only the files named `Makefile.in', but
19312 # some people rename them; so instead we look at the file content.
19313 # Grep'ing the first line is not enough: some people post-process
19314 # each Makefile.in and add a new line on top of each file to say so.
19315 # Grep'ing the whole file is not good either: AIX grep has a line
19316 # limit of 2048, but all sed's we know have understand at least 4000.
19317 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19318 dirpart=`$as_dirname -- "$mf" ||
19319 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19320 X"$mf" : 'X\(//\)[^/]' \| \
19321 X"$mf" : 'X\(//\)$' \| \
19322 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19328 /^X\(\/\/\)[^/].*/{
19344 # Extract the definition of DEPDIR, am__include, and am__quote
19345 # from the Makefile without running `make'.
19346 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19347 test -z "$DEPDIR" && continue
19348 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19349 test -z "am__include" && continue
19350 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19351 # When using ansi2knr, U may be empty or an underscore; expand it
19352 U=`sed -n 's/^U = //p' < "$mf"`
19353 # Find all dependency output files, they are included files with
19354 # $(DEPDIR) in their names. We invoke sed twice because it is the
19355 # simplest approach to changing $(DEPDIR) to its actual value in the
19357 for file in `sed -n "
19358 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19359 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19360 # Make sure the directory exists.
19361 test -f "$dirpart/$file" && continue
19362 fdir=`$as_dirname -- "$file" ||
19363 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19364 X"$file" : 'X\(//\)[^/]' \| \
19365 X"$file" : 'X\(//\)$' \| \
19366 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19367 $as_echo X"$file" |
19368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19372 /^X\(\/\/\)[^/].*/{
19385 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19386 # echo "creating $dirpart/$file"
19387 echo '# dummy' > "$dirpart/$file"
19394 # See if we are running on zsh, and set the options which allow our
19395 # commands through without removal of \ escapes.
19396 if test -n "${ZSH_VERSION+set}" ; then
19397 setopt NO_GLOB_SUBST
19400 cfgfile="${ofile}T"
19401 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19404 cat <<_LT_EOF >> "$cfgfile"
19407 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19408 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19410 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19412 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19413 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19415 # Written by Gordon Matzigkeit, 1996
19417 # This file is part of GNU Libtool.
19419 # GNU Libtool is free software; you can redistribute it and/or
19420 # modify it under the terms of the GNU General Public License as
19421 # published by the Free Software Foundation; either version 2 of
19422 # the License, or (at your option) any later version.
19424 # As a special exception to the GNU General Public License,
19425 # if you distribute this file as part of a program or library that
19426 # is built using GNU Libtool, you may include this file under the
19427 # same distribution terms that you use for the rest of that program.
19429 # GNU Libtool is distributed in the hope that it will be useful,
19430 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19431 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19432 # GNU General Public License for more details.
19434 # You should have received a copy of the GNU General Public License
19435 # along with GNU Libtool; see the file COPYING. If not, a copy
19436 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19437 # obtained by writing to the Free Software Foundation, Inc.,
19438 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19441 # The names of the tagged configurations supported by this script.
19444 # ### BEGIN LIBTOOL CONFIG
19446 # Which release of libtool.m4 was used?
19447 macro_version=$macro_version
19448 macro_revision=$macro_revision
19450 # Whether or not to build shared libraries.
19451 build_libtool_libs=$enable_shared
19453 # Whether or not to build static libraries.
19454 build_old_libs=$enable_static
19456 # What type of objects to build.
19459 # Whether or not to optimize for fast installation.
19460 fast_install=$enable_fast_install
19462 # Shell to use when invoking shell scripts.
19465 # An echo program that protects backslashes.
19469 host_alias=$host_alias
19473 # The build system.
19474 build_alias=$build_alias
19478 # A sed program that does not truncate output.
19481 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19482 Xsed="\$SED -e 1s/^X//"
19484 # A grep program that handles long lines.
19490 # A literal string matcher.
19493 # A BSD- or MS-compatible name lister.
19496 # Whether we need soft or hard links.
19499 # What is the maximum length of a command?
19500 max_cmd_len=$max_cmd_len
19502 # Object file suffix (normally "o").
19505 # Executable file suffix (normally "").
19508 # whether the shell understands "unset".
19511 # turn spaces into newlines.
19514 # turn newlines into spaces.
19517 # convert \$build file names to \$host format.
19518 to_host_file_cmd=$lt_cv_to_host_file_cmd
19520 # convert \$build files to toolchain format.
19521 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19523 # An object symbol dumper.
19524 OBJDUMP=$lt_OBJDUMP
19526 # Method to check whether dependent libraries are shared objects.
19527 deplibs_check_method=$lt_deplibs_check_method
19529 # Command to use when deplibs_check_method = "file_magic".
19530 file_magic_cmd=$lt_file_magic_cmd
19532 # How to find potential files when deplibs_check_method = "file_magic".
19533 file_magic_glob=$lt_file_magic_glob
19535 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19536 want_nocaseglob=$lt_want_nocaseglob
19538 # DLL creation program.
19539 DLLTOOL=$lt_DLLTOOL
19541 # Command to associate shared and link libraries.
19542 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19547 # Flags to create an archive.
19548 AR_FLAGS=$lt_AR_FLAGS
19550 # How to feed a file listing to the archiver.
19551 archiver_list_spec=$lt_archiver_list_spec
19553 # A symbol stripping program.
19556 # Commands used to install an old-style archive.
19558 old_postinstall_cmds=$lt_old_postinstall_cmds
19559 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19561 # Whether to use a lock for old archive extraction.
19562 lock_old_archive_extraction=$lock_old_archive_extraction
19567 # LTCC compiler flags.
19568 LTCFLAGS=$lt_CFLAGS
19570 # Take the output of nm and produce a listing of raw symbols and C names.
19571 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19573 # Transform the output of nm in a proper C declaration.
19574 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19576 # Transform the output of nm in a C name address pair.
19577 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19579 # Transform the output of nm in a C name address pair when lib prefix is needed.
19580 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19582 # Specify filename containing input files for \$NM.
19583 nm_file_list_spec=$lt_nm_file_list_spec
19585 # The root where to search for dependent libraries,and in which our libraries should be installed.
19586 lt_sysroot=$lt_sysroot
19588 # The name of the directory that contains temporary libtool files.
19591 # Used to examine libraries when file_magic_cmd begins with "file".
19592 MAGIC_CMD=$MAGIC_CMD
19594 # Must we lock files when doing compilation?
19595 need_locks=$lt_need_locks
19598 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19600 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19601 DSYMUTIL=$lt_DSYMUTIL
19603 # Tool to change global to local symbols on Mac OS X.
19606 # Tool to manipulate fat objects and archives on Mac OS X.
19609 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19612 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19613 OTOOL64=$lt_OTOOL64
19615 # Old archive suffix (normally "a").
19618 # Shared library suffix (normally ".so").
19619 shrext_cmds=$lt_shrext_cmds
19621 # The commands to extract the exported symbol list from a shared archive.
19622 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19624 # Variables whose values should be saved in libtool wrapper scripts and
19625 # restored at link time.
19626 variables_saved_for_relink=$lt_variables_saved_for_relink
19628 # Do we need the "lib" prefix for modules?
19629 need_lib_prefix=$need_lib_prefix
19631 # Do we need a version for libraries?
19632 need_version=$need_version
19634 # Library versioning type.
19635 version_type=$version_type
19637 # Shared library runtime path variable.
19638 runpath_var=$runpath_var
19640 # Shared library path variable.
19641 shlibpath_var=$shlibpath_var
19643 # Is shlibpath searched before the hard-coded library search path?
19644 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19646 # Format of library name prefix.
19647 libname_spec=$lt_libname_spec
19649 # List of archive names. First name is the real one, the rest are links.
19650 # The last name is the one that the linker finds with -lNAME
19651 library_names_spec=$lt_library_names_spec
19653 # The coded name of the library, if different from the real name.
19654 soname_spec=$lt_soname_spec
19656 # Permission mode override for installation of shared libraries.
19657 install_override_mode=$lt_install_override_mode
19659 # Command to use after installation of a shared archive.
19660 postinstall_cmds=$lt_postinstall_cmds
19662 # Command to use after uninstallation of a shared archive.
19663 postuninstall_cmds=$lt_postuninstall_cmds
19665 # Commands used to finish a libtool library installation in a directory.
19666 finish_cmds=$lt_finish_cmds
19668 # As "finish_cmds", except a single script fragment to be evaled but
19670 finish_eval=$lt_finish_eval
19672 # Whether we should hardcode library paths into libraries.
19673 hardcode_into_libs=$hardcode_into_libs
19675 # Compile-time system search path for libraries.
19676 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19678 # Run-time system search path for libraries.
19679 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19681 # Whether dlopen is supported.
19682 dlopen_support=$enable_dlopen
19684 # Whether dlopen of programs is supported.
19685 dlopen_self=$enable_dlopen_self
19687 # Whether dlopen of statically linked programs is supported.
19688 dlopen_self_static=$enable_dlopen_self_static
19690 # Commands to strip libraries.
19691 old_striplib=$lt_old_striplib
19692 striplib=$lt_striplib
19695 # The linker used to build libraries.
19698 # How to create reloadable object files.
19699 reload_flag=$lt_reload_flag
19700 reload_cmds=$lt_reload_cmds
19702 # Commands used to build an old-style archive.
19703 old_archive_cmds=$lt_old_archive_cmds
19705 # A language specific compiler.
19708 # Is the compiler the GNU compiler?
19711 # Compiler flag to turn off builtin functions.
19712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19714 # Additional compiler flags for building library objects.
19715 pic_flag=$lt_lt_prog_compiler_pic
19717 # How to pass a linker flag through the compiler.
19718 wl=$lt_lt_prog_compiler_wl
19720 # Compiler flag to prevent dynamic linking.
19721 link_static_flag=$lt_lt_prog_compiler_static
19723 # Does compiler simultaneously support -c and -o options?
19724 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19726 # Whether or not to add -lc for building shared libraries.
19727 build_libtool_need_lc=$archive_cmds_need_lc
19729 # Whether or not to disallow shared libs when runtime libs are static.
19730 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19732 # Compiler flag to allow reflexive dlopens.
19733 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19735 # Compiler flag to generate shared objects directly from archives.
19736 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19738 # Whether the compiler copes with passing no objects directly.
19739 compiler_needs_object=$lt_compiler_needs_object
19741 # Create an old-style archive from a shared archive.
19742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19744 # Create a temporary old-style archive to link instead of a shared archive.
19745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19747 # Commands used to build a shared archive.
19748 archive_cmds=$lt_archive_cmds
19749 archive_expsym_cmds=$lt_archive_expsym_cmds
19751 # Commands used to build a loadable module if different from building
19752 # a shared archive.
19753 module_cmds=$lt_module_cmds
19754 module_expsym_cmds=$lt_module_expsym_cmds
19756 # Whether we are building with GNU ld or not.
19757 with_gnu_ld=$lt_with_gnu_ld
19759 # Flag that allows shared libraries with undefined symbols to be built.
19760 allow_undefined_flag=$lt_allow_undefined_flag
19762 # Flag that enforces no undefined symbols.
19763 no_undefined_flag=$lt_no_undefined_flag
19765 # Flag to hardcode \$libdir into a binary during linking.
19766 # This must work even if \$libdir does not exist
19767 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19769 # If ld is used when linking, flag to hardcode \$libdir into a binary
19770 # during linking. This must work even if \$libdir does not exist.
19771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19773 # Whether we need a single "-rpath" flag with a separated argument.
19774 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19776 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19777 # DIR into the resulting binary.
19778 hardcode_direct=$hardcode_direct
19780 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19781 # DIR into the resulting binary and the resulting library dependency is
19782 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19783 # library is relocated.
19784 hardcode_direct_absolute=$hardcode_direct_absolute
19786 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19787 # into the resulting binary.
19788 hardcode_minus_L=$hardcode_minus_L
19790 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19791 # into the resulting binary.
19792 hardcode_shlibpath_var=$hardcode_shlibpath_var
19794 # Set to "yes" if building a shared library automatically hardcodes DIR
19795 # into the library and all subsequent libraries and executables linked
19797 hardcode_automatic=$hardcode_automatic
19799 # Set to yes if linker adds runtime paths of dependent libraries
19800 # to runtime path list.
19801 inherit_rpath=$inherit_rpath
19803 # Whether libtool must link a program against all its dependency libraries.
19804 link_all_deplibs=$link_all_deplibs
19806 # Set to "yes" if exported symbols are required.
19807 always_export_symbols=$always_export_symbols
19809 # The commands to list exported symbols.
19810 export_symbols_cmds=$lt_export_symbols_cmds
19812 # Symbols that should not be listed in the preloaded symbols.
19813 exclude_expsyms=$lt_exclude_expsyms
19815 # Symbols that must always be exported.
19816 include_expsyms=$lt_include_expsyms
19818 # Commands necessary for linking programs (against libraries) with templates.
19819 prelink_cmds=$lt_prelink_cmds
19821 # Commands necessary for finishing linking programs.
19822 postlink_cmds=$lt_postlink_cmds
19824 # Specify filename containing input files.
19825 file_list_spec=$lt_file_list_spec
19827 # How to hardcode a shared library path into an executable.
19828 hardcode_action=$hardcode_action
19830 # ### END LIBTOOL CONFIG
19836 cat <<\_LT_EOF >> "$cfgfile"
19837 # AIX sometimes has problems with the GCC collect2 program. For some
19838 # reason, if we set the COLLECT_NAMES environment variable, the problems
19839 # vanish in a puff of smoke.
19840 if test "X${COLLECT_NAMES+set}" != Xset; then
19842 export COLLECT_NAMES
19849 ltmain="$ac_aux_dir/ltmain.sh"
19852 # We use sed instead of cat because bash on DJGPP gets confused if
19853 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19854 # text mode, it properly converts lines to CR/LF. This bash problem
19855 # is reportedly fixed, but why not run on old versions too?
19856 sed '$q' "$ltmain" >> "$cfgfile" \
19857 || (rm -f "$cfgfile"; exit 1)
19859 if test x"$xsi_shell" = xyes; then
19860 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19864 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19865 \ * ) func_dirname_result="${3}" ;;\
19867 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19868 && mv -f "$cfgfile.tmp" "$cfgfile" \
19869 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19870 test 0 -eq $? || _lt_function_replace_fail=:
19873 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19876 \ func_basename_result="${1##*/}"\
19877 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19878 && mv -f "$cfgfile.tmp" "$cfgfile" \
19879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19880 test 0 -eq $? || _lt_function_replace_fail=:
19883 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19884 func_dirname_and_basename ()\
19887 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19888 \ * ) func_dirname_result="${3}" ;;\
19890 \ func_basename_result="${1##*/}"\
19891 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19892 && mv -f "$cfgfile.tmp" "$cfgfile" \
19893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19894 test 0 -eq $? || _lt_function_replace_fail=:
19897 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19900 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19901 \ # positional parameters, so assign one to ordinary parameter first.\
19902 \ func_stripname_result=${3}\
19903 \ func_stripname_result=${func_stripname_result#"${1}"}\
19904 \ func_stripname_result=${func_stripname_result%"${2}"}\
19905 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19906 && mv -f "$cfgfile.tmp" "$cfgfile" \
19907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19908 test 0 -eq $? || _lt_function_replace_fail=:
19911 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19912 func_split_long_opt ()\
19914 \ func_split_long_opt_name=${1%%=*}\
19915 \ func_split_long_opt_arg=${1#*=}\
19916 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19917 && mv -f "$cfgfile.tmp" "$cfgfile" \
19918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19919 test 0 -eq $? || _lt_function_replace_fail=:
19922 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19923 func_split_short_opt ()\
19925 \ func_split_short_opt_arg=${1#??}\
19926 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19927 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19928 && mv -f "$cfgfile.tmp" "$cfgfile" \
19929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19930 test 0 -eq $? || _lt_function_replace_fail=:
19933 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19937 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19938 \ *) func_lo2o_result=${1} ;;\
19940 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19941 && mv -f "$cfgfile.tmp" "$cfgfile" \
19942 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19943 test 0 -eq $? || _lt_function_replace_fail=:
19946 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19949 func_xform_result=${1%.*}.lo\
19950 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19951 && mv -f "$cfgfile.tmp" "$cfgfile" \
19952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19953 test 0 -eq $? || _lt_function_replace_fail=:
19956 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19959 func_arith_result=$(( $* ))\
19960 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19961 && mv -f "$cfgfile.tmp" "$cfgfile" \
19962 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19963 test 0 -eq $? || _lt_function_replace_fail=:
19966 sed -e '/^func_len ()$/,/^} # func_len /c\
19969 func_len_result=${#1}\
19970 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19971 && mv -f "$cfgfile.tmp" "$cfgfile" \
19972 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19973 test 0 -eq $? || _lt_function_replace_fail=:
19977 if test x"$lt_shell_append" = xyes; then
19978 sed -e '/^func_append ()$/,/^} # func_append /c\
19981 eval "${1}+=\\${2}"\
19982 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19983 && mv -f "$cfgfile.tmp" "$cfgfile" \
19984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19985 test 0 -eq $? || _lt_function_replace_fail=:
19988 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19989 func_append_quoted ()\
19991 \ func_quote_for_eval "${2}"\
19992 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19993 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19994 && mv -f "$cfgfile.tmp" "$cfgfile" \
19995 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19996 test 0 -eq $? || _lt_function_replace_fail=:
19999 # Save a `func_append' function call where possible by direct use of '+='
20000 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20001 && mv -f "$cfgfile.tmp" "$cfgfile" \
20002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20003 test 0 -eq $? || _lt_function_replace_fail=:
20005 # Save a `func_append' function call even when '+=' is not available
20006 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20007 && mv -f "$cfgfile.tmp" "$cfgfile" \
20008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20009 test 0 -eq $? || _lt_function_replace_fail=:
20012 if test x"$_lt_function_replace_fail" = x":"; then
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20014 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20018 mv -f "$cfgfile" "$ofile" ||
20019 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20030 ac_clean_files=$ac_clean_files_save
20032 test $ac_write_fail = 0 ||
20033 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20036 # configure is writing to config.log, and then calls config.status.
20037 # config.status does its own redirection, appending to config.log.
20038 # Unfortunately, on DOS this fails, as config.log is still kept open
20039 # by configure, so config.status won't be able to write to it; its
20040 # output is simply discarded. So we exec the FD to /dev/null,
20041 # effectively closing config.log, so it can be properly (re)opened and
20042 # appended to by config.status. When coming back to configure, we
20043 # need to make the FD available again.
20044 if test "$no_create" != yes; then
20046 ac_config_status_args=
20047 test "$silent" = yes &&
20048 ac_config_status_args="$ac_config_status_args --quiet"
20050 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20052 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20053 # would make configure fail if this is the last instruction.
20054 $ac_cs_success || as_fn_exit 1
20056 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20058 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}