2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-input-mtrack 0.2.0.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='xf86-input-mtrack'
593 PACKAGE_TARNAME='xf86-input-mtrack'
594 PACKAGE_VERSION='0.2.0'
595 PACKAGE_STRING='xf86-input-mtrack 0.2.0'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
613 # ifdef HAVE_STDLIB_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
716 MAINTAINER_MODE_FALSE
730 INSTALL_STRIP_PROGRAM
772 program_transform_name
785 enable_option_checking
787 enable_maintainer_mode
792 enable_dependency_tracking
796 enable_selective_werror
797 enable_strict_compilation
800 enable_debug_gestures
806 ac_precious_vars='build_alias
822 # Initialize some variables set by options.
824 ac_init_version=false
825 ac_unrecognized_opts=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
836 program_transform_name=s,x,x,
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
939 eval enable_$ac_useropt=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
965 eval enable_$ac_useropt=\$ac_optarg ;;
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
980 -help | --help | --hel | --he | -h)
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 htmldir=$ac_optarg ;;
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1010 -libdir | --libdir | --libdi | --libd)
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1101 -psdir | --psdir | --psdi | --psd | --ps)
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 sbindir=$ac_optarg ;;
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 sharedstatedir=$ac_optarg ;;
1127 -site | --site | --sit)
1129 -site=* | --site=* | --sit=*)
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1169 eval with_$ac_useropt=\$ac_optarg ;;
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1185 eval with_$ac_useropt=no ;;
1188 # Obsolete; use --with-x.
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1256 # Be sure to have absolute directory names.
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1269 target=$target_alias
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 test "$silent" = yes && exec 6>/dev/null
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 # Report the --help message.
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1360 \`configure' configures xf86-input-mtrack 0.2.0 to adapt to many kinds of systems.
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1367 Defaults for the options are specified in brackets.
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1391 For better control, use the options below.
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root
1409 [DATAROOTDIR/doc/xf86-input-mtrack]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of xf86-input-mtrack 0.2.0:";;
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-silent-rules less verbose build output (undo: "make V=1")
1440 --disable-silent-rules verbose build output (undo: "make V=0")
1441 --enable-maintainer-mode
1442 enable make rules and dependencies not useful (and
1443 sometimes confusing) to the casual installer
1444 --enable-static[=PKGS] build static libraries [default=no]
1445 --enable-shared[=PKGS] build shared libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --enable-dependency-tracking
1449 do not reject slow dependency extractors
1450 --disable-dependency-tracking
1451 speeds up one-time build
1452 --disable-libtool-lock avoid locking (might break parallel builds)
1453 --disable-selective-werror
1454 Turn off selective compiler errors. (default:
1456 --enable-strict-compilation
1457 Enable all warnings from compiler and make them
1458 errors (default: disabled)
1459 --enable-tools Build extra tools (default: disabled)
1460 --enable-debug-gestures Enable gesture debugging (default: disabled)
1461 --enable-debug-mtstate Enable multitouch state debugging (default:
1463 --enable-debug-props Enable property debugging (default: disabled)
1464 --enable-debug-driver Enable property debugging (default: disabled)
1465 --enable-debug Enable all debugging (default: disabled)
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1472 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1473 --with-sysroot=DIR Search for dependent libraries within DIR
1474 (or the compiler's sysroot if not specified).
1475 --with-xorg-module-dir=DIR
1476 Default xorg module directory
1477 [[default=$libdir/xorg/modules]]
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 LIBS libraries to pass to the linker, e.g. -l<library>
1485 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1488 PKG_CONFIG path to pkg-config utility
1490 directories to add to pkg-config's search path
1492 path overriding pkg-config's built-in search path
1493 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1494 XORG_LIBS linker flags for XORG, overriding pkg-config
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1499 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" ||
1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1529 .) # We are building in place.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1553 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1562 xf86-input-mtrack configure 0.2.0
1563 generated by GNU Autoconf 2.69
1565 Copyright (C) 2012 Free Software Foundation, Inc.
1566 This configure script is free software; the Free Software Foundation
1567 gives unlimited permission to copy, distribute and modify it.
1572 ## ------------------------ ##
1573 ## Autoconf initialization. ##
1574 ## ------------------------ ##
1576 # ac_fn_c_try_compile LINENO
1577 # --------------------------
1578 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_compile ()
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext
1583 if { { ac_try="$ac_compile"
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_compile") 2>conftest.err
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest.$ac_objext; then :
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1612 } # ac_fn_c_try_compile
1614 # ac_fn_c_try_link LINENO
1615 # -----------------------
1616 # Try to link conftest.$ac_ext, and return whether this succeeded.
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 rm -f conftest.$ac_objext conftest$ac_exeext
1621 if { { ac_try="$ac_link"
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_link") 2>conftest.err
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && {
1637 test -z "$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 } && test -s conftest$ac_exeext && {
1640 test "$cross_compiling" = yes ||
1641 test -x conftest$ac_exeext
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1650 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1651 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1652 # interfere with the next link command; also delete a directory that is
1653 # left behind by Apple's compiler. We do this before executing the actions.
1654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1658 } # ac_fn_c_try_link
1660 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1661 # -------------------------------------------------------
1662 # Tests whether HEADER exists and can be compiled using the include files in
1663 # INCLUDES, setting the cache variable VAR accordingly.
1664 ac_fn_c_check_header_compile ()
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if eval \${$3+:} false; then :
1670 $as_echo_n "(cached) " >&6
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1677 if ac_fn_c_try_compile "$LINENO"; then :
1682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 $as_echo "$ac_res" >&6; }
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 } # ac_fn_c_check_header_compile
1691 # ac_fn_c_try_cpp LINENO
1692 # ----------------------
1693 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_cpp conftest.$ac_ext"
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } > conftest.i && {
1713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1728 # ac_fn_c_try_run LINENO
1729 # ----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1731 # that executables *can* be run.
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_link"
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>&5
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1746 { { case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_try") 2>&5
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; }; }; then :
1758 $as_echo "$as_me: program exited with status $ac_status" >&5
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1762 ac_retval=$ac_status
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1770 # ac_fn_c_check_func LINENO FUNC VAR
1771 # ----------------------------------
1772 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1773 ac_fn_c_check_func ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if eval \${$3+:} false; then :
1779 $as_echo_n "(cached) " >&6
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1785 #define $2 innocuous_$2
1787 /* System header to define __stub macros and hopefully few prototypes,
1788 which can conflict with char $2 (); below.
1789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1790 <limits.h> exists even on freestanding compilers. */
1793 # include <limits.h>
1795 # include <assert.h>
1800 /* Override any GCC internal prototype to avoid an error.
1801 Use char because int might match the return type of a GCC
1802 builtin and then its argument prototype would still apply. */
1807 /* The GNU C library defines this for functions which it implements
1808 to always fail with ENOSYS. Some functions are actually named
1809 something starting with __ and the normal name is an alias. */
1810 #if defined __stub_$2 || defined __stub___$2
1822 if ac_fn_c_try_link "$LINENO"; then :
1827 rm -f core conftest.err conftest.$ac_objext \
1828 conftest$ac_exeext conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 } # ac_fn_c_check_func
1837 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1838 # ---------------------------------------------
1839 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1841 ac_fn_c_check_decl ()
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 as_decl_name=`echo $2|sed 's/ *(.*//'`
1845 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1847 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1857 #ifndef $as_decl_name
1859 (void) $as_decl_use;
1861 (void) $as_decl_name;
1869 if ac_fn_c_try_compile "$LINENO"; then :
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_decl
1882 cat >config.log <<_ACEOF
1883 This file contains any messages produced by compilers while
1884 running configure, to aid debugging if configure makes a mistake.
1886 It was created by xf86-input-mtrack $as_me 0.2.0, which was
1887 generated by GNU Autoconf 2.69. Invocation command line was
1899 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1908 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1909 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1910 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1912 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1913 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1914 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 test -z "$as_dir" && as_dir=.
1923 $as_echo "PATH: $as_dir"
1939 # Keep a trace of the command line.
1940 # Strip out --no-create and --no-recursion so they do not pile up.
1941 # Strip out --silent because we don't want to record it for future runs.
1942 # Also quote any args containing shell meta-characters.
1943 # Make two passes to allow for proper duplicate-argument suppression.
1947 ac_must_keep_next=false
1953 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1955 | -silent | --silent | --silen | --sile | --sil)
1958 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1961 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1963 as_fn_append ac_configure_args1 " '$ac_arg'"
1964 if test $ac_must_keep_next = true; then
1965 ac_must_keep_next=false # Got value, back to normal.
1968 *=* | --config-cache | -C | -disable-* | --disable-* \
1969 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1970 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1971 | -with-* | --with-* | -without-* | --without-* | --x)
1972 case "$ac_configure_args0 " in
1973 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1976 -* ) ac_must_keep_next=true ;;
1979 as_fn_append ac_configure_args " '$ac_arg'"
1984 { ac_configure_args0=; unset ac_configure_args0;}
1985 { ac_configure_args1=; unset ac_configure_args1;}
1987 # When interrupted or exit'd, cleanup temporary files, and complete
1988 # config.log. We remove comments because anyway the quotes in there
1989 # would cause problems or look ugly.
1990 # WARNING: Use '\'' to represent an apostrophe within the trap.
1991 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1992 trap 'exit_status=$?
1993 # Save into config.log some information that might help in debugging.
1997 $as_echo "## ---------------- ##
1998 ## Cache variables. ##
1999 ## ---------------- ##"
2001 # The following way of writing the cache mishandles newlines in values,
2003 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2004 eval ac_val=\$$ac_var
2008 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2009 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2012 _ | IFS | as_nl) ;; #(
2013 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2014 *) { eval $ac_var=; unset $ac_var;} ;;
2019 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2020 *${as_nl}ac_space=\ *)
2022 "s/'\''/'\''\\\\'\'''\''/g;
2023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2033 $as_echo "## ----------------- ##
2034 ## Output variables. ##
2035 ## ----------------- ##"
2037 for ac_var in $ac_subst_vars
2039 eval ac_val=\$$ac_var
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 $as_echo "$ac_var='\''$ac_val'\''"
2047 if test -n "$ac_subst_files"; then
2048 $as_echo "## ------------------- ##
2049 ## File substitutions. ##
2050 ## ------------------- ##"
2052 for ac_var in $ac_subst_files
2054 eval ac_val=\$$ac_var
2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2058 $as_echo "$ac_var='\''$ac_val'\''"
2063 if test -s confdefs.h; then
2064 $as_echo "## ----------- ##
2071 test "$ac_signal" != 0 &&
2072 $as_echo "$as_me: caught signal $ac_signal"
2073 $as_echo "$as_me: exit $exit_status"
2075 rm -f core *.core core.conftest.* &&
2076 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2079 for ac_signal in 1 2 13 15; do
2080 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2084 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2085 rm -f -r conftest* confdefs.h
2087 $as_echo "/* confdefs.h */" > confdefs.h
2089 # Predefined preprocessor variables.
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_NAME "$PACKAGE_NAME"
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_STRING "$PACKAGE_STRING"
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_URL "$PACKAGE_URL"
2116 # Let the site file select an alternate cache file if it wants to.
2117 # Prefer an explicitly selected file to automatically selected ones.
2120 if test -n "$CONFIG_SITE"; then
2121 # We do not want a PATH search for config.site.
2122 case $CONFIG_SITE in #((
2123 -*) ac_site_file1=./$CONFIG_SITE;;
2124 */*) ac_site_file1=$CONFIG_SITE;;
2125 *) ac_site_file1=./$CONFIG_SITE;;
2127 elif test "x$prefix" != xNONE; then
2128 ac_site_file1=$prefix/share/config.site
2129 ac_site_file2=$prefix/etc/config.site
2131 ac_site_file1=$ac_default_prefix/share/config.site
2132 ac_site_file2=$ac_default_prefix/etc/config.site
2134 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2136 test "x$ac_site_file" = xNONE && continue
2137 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2140 sed 's/^/| /' "$ac_site_file" >&5
2142 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144 as_fn_error $? "failed to load site script $ac_site_file
2145 See \`config.log' for more details" "$LINENO" 5; }
2149 if test -r "$cache_file"; then
2150 # Some versions of bash will fail to source /dev/null (special files
2151 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2152 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154 $as_echo "$as_me: loading cache $cache_file" >&6;}
2156 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157 *) . "./$cache_file";;
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162 $as_echo "$as_me: creating cache $cache_file" >&6;}
2166 # Check that the precious variables saved in the cache have kept the same
2168 ac_cache_corrupted=false
2169 for ac_var in $ac_precious_vars; do
2170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2171 eval ac_new_set=\$ac_env_${ac_var}_set
2172 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2173 eval ac_new_val=\$ac_env_${ac_var}_value
2174 case $ac_old_set,$ac_new_set in
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2181 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2182 ac_cache_corrupted=: ;;
2185 if test "x$ac_old_val" != "x$ac_new_val"; then
2186 # differences in whitespace do not lead to failure.
2187 ac_old_val_w=`echo x $ac_old_val`
2188 ac_new_val_w=`echo x $ac_new_val`
2189 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2191 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2192 ac_cache_corrupted=:
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2195 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2196 eval $ac_var=\$ac_old_val
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2199 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2201 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2204 # Pass precious variables to config.status.
2205 if test "$ac_new_set" = set; then
2207 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2208 *) ac_arg=$ac_var=$ac_new_val ;;
2210 case " $ac_configure_args " in
2211 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2212 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2216 if $ac_cache_corrupted; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2220 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2221 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2223 ## -------------------- ##
2224 ## Main body of script. ##
2225 ## -------------------- ##
2228 ac_cpp='$CPP $CPPFLAGS'
2229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236 ac_config_headers="$ac_config_headers config.h"
2239 for ac_dir in . "$srcdir"/.; do
2240 if test -f "$ac_dir/install-sh"; then
2242 ac_install_sh="$ac_aux_dir/install-sh -c"
2244 elif test -f "$ac_dir/install.sh"; then
2246 ac_install_sh="$ac_aux_dir/install.sh -c"
2248 elif test -f "$ac_dir/shtool"; then
2250 ac_install_sh="$ac_aux_dir/shtool install -c"
2254 if test -z "$ac_aux_dir"; then
2255 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2258 # These three variables are undocumented and unsupported,
2259 # and are intended to be withdrawn in a future Autoconf release.
2260 # They can cause serious problems if a builder's source tree is in a directory
2261 # whose full name contains unusual characters.
2262 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2263 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2264 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2268 # Initialize Automake
2269 am__api_version='1.15'
2271 # Find a good install program. We prefer a C program (faster),
2272 # so one script is as good as another. But avoid the broken or
2273 # incompatible versions:
2274 # SysV /etc/install, /usr/sbin/install
2275 # SunOS /usr/etc/install
2276 # IRIX /sbin/install
2278 # AmigaOS /C/install, which installs bootblocks on floppy discs
2279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2282 # OS/2's system install, which has a completely different semantic
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 # Reject install programs that cannot install multiple files.
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2286 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2287 if test -z "$INSTALL"; then
2288 if ${ac_cv_path_install+:} false; then :
2289 $as_echo_n "(cached) " >&6
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir=.
2296 # Account for people who put trailing slashes in PATH elements.
2297 case $as_dir/ in #((
2298 ./ | .// | /[cC]/* | \
2299 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2300 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2303 # OSF1 and SCO ODT 3.0 have their own names for install.
2304 # Don't use installbsd from OSF since it installs stuff as root
2306 for ac_prog in ginstall scoinst install; do
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2309 if test $ac_prog = install &&
2310 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311 # AIX install. It has an incompatible calling convention.
2313 elif test $ac_prog = install &&
2314 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2315 # program-specific install script used by HP pwplus--don't use.
2318 rm -rf conftest.one conftest.two conftest.dir
2319 echo one > conftest.one
2320 echo two > conftest.two
2322 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2323 test -s conftest.one && test -s conftest.two &&
2324 test -s conftest.dir/conftest.one &&
2325 test -s conftest.dir/conftest.two
2327 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2340 rm -rf conftest.one conftest.two conftest.dir
2343 if test "${ac_cv_path_install+set}" = set; then
2344 INSTALL=$ac_cv_path_install
2346 # As a last resort, use the slow shell script. Don't cache a
2347 # value for INSTALL within a source directory, because that will
2348 # break other packages using the cache if that directory is
2349 # removed, or if the value is a relative name.
2350 INSTALL=$ac_install_sh
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2354 $as_echo "$INSTALL" >&6; }
2356 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2357 # It thinks the first close brace ends the variable substitution.
2358 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2360 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2362 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2365 $as_echo_n "checking whether build environment is sane... " >&6; }
2366 # Reject unsafe characters in $srcdir or the absolute working directory
2367 # name. Accept space and tab only in the latter.
2371 *[\\\"\#\$\&\'\`$am_lf]*)
2372 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2375 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2376 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2379 # Do 'set' in a subshell so we don't clobber the current shell's
2380 # arguments. Must try -L first in case configure is actually a
2381 # symlink; some systems play weird games with the mod time of symlinks
2382 # (eg FreeBSD returns the mod time of the symlink's containing
2386 for am_try in 1 2; do
2387 echo "timestamp, slept: $am_has_slept" > conftest.file
2388 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2389 if test "$*" = "X"; then
2391 set X `ls -t "$srcdir/configure" conftest.file`
2393 if test "$*" != "X $srcdir/configure conftest.file" \
2394 && test "$*" != "X conftest.file $srcdir/configure"; then
2396 # If neither matched, then we have a broken ls. This can happen
2397 # if, for instance, CONFIG_SHELL is bash and it inherits a
2398 # broken ls alias from the environment. This has actually
2399 # happened. Such a system could not be considered "sane".
2400 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2401 alias in your environment" "$LINENO" 5
2403 if test "$2" = conftest.file || test $am_try -eq 2; then
2410 test "$2" = conftest.file
2416 as_fn_error $? "newly created file is older than distributed files!
2417 Check your system clock" "$LINENO" 5
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2420 $as_echo "yes" >&6; }
2421 # If we didn't sleep, we still need to ensure time stamps of config.status and
2422 # generated files are strictly newer.
2424 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2431 test "$program_prefix" != NONE &&
2432 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2433 # Use a double $ so make ignores it.
2434 test "$program_suffix" != NONE &&
2435 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2436 # Double any \ or $.
2437 # By default was `s,x,x', remove it if useless.
2438 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2439 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2441 # Expand $ac_aux_dir to an absolute path.
2442 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2444 if test x"${MISSING+set}" != xset; then
2447 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2449 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2452 # Use eval to expand $SHELL
2453 if eval "$MISSING --is-lightweight"; then
2454 am_missing_run="$MISSING "
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2458 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2461 if test x"${install_sh+set}" != xset; then
2464 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2466 install_sh="\${SHELL} $am_aux_dir/install-sh"
2470 # Installed binaries are usually stripped using 'strip' when the user
2471 # run "make install-strip". However 'strip' might not be the right
2472 # tool to use in cross-compilation environments, therefore Automake
2473 # will honor the 'STRIP' environment variable to overrule this program.
2474 if test "$cross_compiling" != no; then
2475 if test -n "$ac_tool_prefix"; then
2476 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2477 set dummy ${ac_tool_prefix}strip; ac_word=$2
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2479 $as_echo_n "checking for $ac_word... " >&6; }
2480 if ${ac_cv_prog_STRIP+:} false; then :
2481 $as_echo_n "(cached) " >&6
2483 if test -n "$STRIP"; then
2484 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2493 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 STRIP=$ac_cv_prog_STRIP
2504 if test -n "$STRIP"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2506 $as_echo "$STRIP" >&6; }
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2509 $as_echo "no" >&6; }
2514 if test -z "$ac_cv_prog_STRIP"; then
2516 # Extract the first word of "strip", so it can be a program name with args.
2517 set dummy strip; ac_word=$2
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2521 $as_echo_n "(cached) " >&6
2523 if test -n "$ac_ct_STRIP"; then
2524 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533 ac_cv_prog_ac_ct_STRIP="strip"
2534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2544 if test -n "$ac_ct_STRIP"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2546 $as_echo "$ac_ct_STRIP" >&6; }
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2552 if test "x$ac_ct_STRIP" = x; then
2555 case $cross_compiling:$ac_tool_warned in
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2559 ac_tool_warned=yes ;;
2564 STRIP="$ac_cv_prog_STRIP"
2568 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2571 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2572 if test -z "$MKDIR_P"; then
2573 if ${ac_cv_path_mkdir+:} false; then :
2574 $as_echo_n "(cached) " >&6
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2580 test -z "$as_dir" && as_dir=.
2581 for ac_prog in mkdir gmkdir; do
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2584 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2585 'mkdir (GNU coreutils) '* | \
2586 'mkdir (coreutils) '* | \
2587 'mkdir (fileutils) '4.1*)
2588 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2598 test -d ./--version && rmdir ./--version
2599 if test "${ac_cv_path_mkdir+set}" = set; then
2600 MKDIR_P="$ac_cv_path_mkdir -p"
2602 # As a last resort, use the slow shell script. Don't cache a
2603 # value for MKDIR_P within a source directory, because that will
2604 # break other packages using the cache if that directory is
2605 # removed, or if the value is a relative name.
2606 MKDIR_P="$ac_install_sh -d"
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2610 $as_echo "$MKDIR_P" >&6; }
2612 for ac_prog in gawk mawk nawk awk
2614 # Extract the first word of "$ac_prog", so it can be a program name with args.
2615 set dummy $ac_prog; ac_word=$2
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if ${ac_cv_prog_AWK+:} false; then :
2619 $as_echo_n "(cached) " >&6
2621 if test -n "$AWK"; then
2622 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631 ac_cv_prog_AWK="$ac_prog"
2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 if test -n "$AWK"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2644 $as_echo "$AWK" >&6; }
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2651 test -n "$AWK" && break
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2655 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2657 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2658 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2659 $as_echo_n "(cached) " >&6
2661 cat >conftest.make <<\_ACEOF
2664 @echo '@@@%%%=$(MAKE)=@@@%%%'
2666 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2667 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2669 eval ac_cv_prog_make_${ac_make}_set=yes;;
2671 eval ac_cv_prog_make_${ac_make}_set=no;;
2675 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2677 $as_echo "yes" >&6; }
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2682 SET_MAKE="MAKE=${MAKE-make}"
2685 rm -rf .tst 2>/dev/null
2686 mkdir .tst 2>/dev/null
2687 if test -d .tst; then
2692 rmdir .tst 2>/dev/null
2694 # Check whether --enable-silent-rules was given.
2695 if test "${enable_silent_rules+set}" = set; then :
2696 enableval=$enable_silent_rules;
2699 case $enable_silent_rules in # (((
2700 yes) AM_DEFAULT_VERBOSITY=0;;
2701 no) AM_DEFAULT_VERBOSITY=1;;
2702 *) AM_DEFAULT_VERBOSITY=1;;
2704 am_make=${MAKE-make}
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2706 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2707 if ${am_cv_make_support_nested_variables+:} false; then :
2708 $as_echo_n "(cached) " >&6
2710 if $as_echo 'TRUE=$(BAR$(V))
2716 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2717 am_cv_make_support_nested_variables=yes
2719 am_cv_make_support_nested_variables=no
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2723 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2724 if test $am_cv_make_support_nested_variables = yes; then
2726 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2728 AM_V=$AM_DEFAULT_VERBOSITY
2729 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2733 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2734 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2735 # is not polluted with repeated "-I."
2736 am__isrc=' -I$(srcdir)'
2737 # test to see if srcdir already configured
2738 if test -f $srcdir/config.status; then
2739 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2743 # test whether we have cygpath
2744 if test -z "$CYGPATH_W"; then
2745 if (cygpath --version) >/dev/null 2>/dev/null; then
2746 CYGPATH_W='cygpath -w'
2753 # Define the identity of the package.
2754 PACKAGE='xf86-input-mtrack'
2758 cat >>confdefs.h <<_ACEOF
2759 #define PACKAGE "$PACKAGE"
2763 cat >>confdefs.h <<_ACEOF
2764 #define VERSION "$VERSION"
2767 # Some tools Automake needs.
2769 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2772 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2775 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2778 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2781 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2783 # For better backward compatibility. To be removed once Automake 1.9.x
2784 # dies out for good. For more background, see:
2785 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2786 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2787 mkdir_p='$(MKDIR_P)'
2789 # We need awk for the "check" target (and possibly the TAP driver). The
2790 # system "awk" is bad on some platforms.
2791 # Always define AMTAR for backward compatibility. Yes, it's still used
2792 # in the wild :-( We should find a proper way to deprecate it ...
2796 # We'll loop over all known methods to create a tar archive until one works.
2797 _am_tools='gnutar pax cpio none'
2799 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2806 # POSIX will say in a future version that running "rm -f" with no argument
2807 # is OK; and we want to be able to make that assumption in our Makefile
2808 # recipes. So use an aggressive probe to check that the usage we want is
2809 # actually supported "in the wild" to an acceptable degree.
2810 # See automake bug#10828.
2811 # To make any issue more visible, cause the running configure to be aborted
2812 # by default if the 'rm' program in use doesn't match our expectations; the
2813 # user can still override this though.
2814 if rm -f && rm -fr && rm -rf; then : OK; else
2818 Your 'rm' program seems unable to run without file operands specified
2819 on the command line, even when the '-f' option is present. This is contrary
2820 to the behaviour of most rm programs out there, and not conforming with
2821 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2823 Please tell bug-automake@gnu.org about your system, including the value
2824 of your $PATH and any error possibly output before this message. This
2825 can help us improve future automake versions.
2828 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2829 echo 'Configuration will proceed anyway, since you have set the' >&2
2830 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2834 Aborting the configuration process, to ensure you take notice of the issue.
2836 You can download and install GNU coreutils to get an 'rm' implementation
2837 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2839 If you want to complete the configuration process using your problematic
2840 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2841 to "yes", and re-run configure.
2844 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2850 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2851 # Check whether --enable-maintainer-mode was given.
2852 if test "${enable_maintainer_mode+set}" = set; then :
2853 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2855 USE_MAINTAINER_MODE=no
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2859 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2860 if test $USE_MAINTAINER_MODE = yes; then
2861 MAINTAINER_MODE_TRUE=
2862 MAINTAINER_MODE_FALSE='#'
2864 MAINTAINER_MODE_TRUE='#'
2865 MAINTAINER_MODE_FALSE=
2868 MAINT=$MAINTAINER_MODE_TRUE
2872 # Initialize libtool
2873 # Check whether --enable-static was given.
2874 if test "${enable_static+set}" = set; then :
2875 enableval=$enable_static; p=${PACKAGE-default}
2877 yes) enable_static=yes ;;
2878 no) enable_static=no ;;
2881 # Look at the argument we got. We use all the common list separators.
2882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2883 for pkg in $enableval; do
2885 if test "X$pkg" = "X$p"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2907 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2912 macro_version='2.4.2'
2913 macro_revision='1.3337'
2927 ltmain="$ac_aux_dir/ltmain.sh"
2929 # Make sure we can run config.sub.
2930 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2931 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2934 $as_echo_n "checking build system type... " >&6; }
2935 if ${ac_cv_build+:} false; then :
2936 $as_echo_n "(cached) " >&6
2938 ac_build_alias=$build_alias
2939 test "x$ac_build_alias" = x &&
2940 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2941 test "x$ac_build_alias" = x &&
2942 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2943 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2944 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2948 $as_echo "$ac_cv_build" >&6; }
2949 case $ac_cv_build in
2951 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2954 ac_save_IFS=$IFS; IFS='-'
2960 # Remember, the first character of IFS is used to create $*,
2961 # except with old shells:
2964 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2968 $as_echo_n "checking host system type... " >&6; }
2969 if ${ac_cv_host+:} false; then :
2970 $as_echo_n "(cached) " >&6
2972 if test "x$host_alias" = x; then
2973 ac_cv_host=$ac_cv_build
2975 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2976 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2981 $as_echo "$ac_cv_host" >&6; }
2984 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2987 ac_save_IFS=$IFS; IFS='-'
2993 # Remember, the first character of IFS is used to create $*,
2994 # except with old shells:
2997 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3000 # Backslashify metacharacters that are still active within
3001 # double-quoted strings.
3002 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3004 # Same as above, but do not quote variable references.
3005 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3007 # Sed substitution to delay expansion of an escaped shell variable in a
3008 # double_quote_subst'ed string.
3009 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3011 # Sed substitution to delay expansion of an escaped single quote.
3012 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3014 # Sed substitution to avoid accidental globbing in evaled expressions
3015 no_glob_subst='s/\*/\\\*/g'
3017 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3018 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3019 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3022 $as_echo_n "checking how to print strings... " >&6; }
3023 # Test print first, because it will be a builtin if present.
3024 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3025 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3027 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3030 # Use this function as a fallback that always works.
3031 func_fallback_echo ()
3033 eval 'cat <<_LTECHO_EOF
3037 ECHO='func_fallback_echo'
3040 # func_echo_all arg...
3041 # Invoke $ECHO with all args, space-separated.
3048 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3049 $as_echo "printf" >&6; } ;;
3050 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3051 $as_echo "print -r" >&6; } ;;
3052 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3053 $as_echo "cat" >&6; } ;;
3069 DEPDIR="${am__leading_dot}deps"
3071 ac_config_commands="$ac_config_commands depfiles"
3074 am_make=${MAKE-make}
3075 cat > confinc << 'END'
3077 @echo this is the am__doit target
3080 # If we don't find an include directive, just comment out the code.
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3082 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3086 # First try GNU make style include.
3087 echo "include confinc" > confmf
3088 # Ignore all kinds of additional output from 'make'.
3089 case `$am_make -s -f confmf 2> /dev/null` in #(
3090 *the\ am__doit\ target*)
3096 # Now try BSD make style include.
3097 if test "$am__include" = "#"; then
3098 echo '.include "confinc"' > confmf
3099 case `$am_make -s -f confmf 2> /dev/null` in #(
3100 *the\ am__doit\ target*)
3101 am__include=.include
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3110 $as_echo "$_am_result" >&6; }
3111 rm -f confinc confmf
3113 # Check whether --enable-dependency-tracking was given.
3114 if test "${enable_dependency_tracking+set}" = set; then :
3115 enableval=$enable_dependency_tracking;
3118 if test "x$enable_dependency_tracking" != xno; then
3119 am_depcomp="$ac_aux_dir/depcomp"
3123 if test "x$enable_dependency_tracking" != xno; then
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_CC+:} false; then :
3143 $as_echo_n "(cached) " >&6
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3176 if test -z "$ac_cv_prog_CC"; then
3178 # Extract the first word of "gcc", so it can be a program name with args.
3179 set dummy gcc; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3183 $as_echo_n "(cached) " >&6
3185 if test -n "$ac_ct_CC"; then
3186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195 ac_cv_prog_ac_ct_CC="gcc"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3206 if test -n "$ac_ct_CC"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3208 $as_echo "$ac_ct_CC" >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3214 if test "x$ac_ct_CC" = x; then
3217 case $cross_compiling:$ac_tool_warned in
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3229 if test -z "$CC"; then
3230 if test -n "$ac_tool_prefix"; then
3231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}cc; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if ${ac_cv_prog_CC+:} false; then :
3236 $as_echo_n "(cached) " >&6
3238 if test -n "$CC"; then
3239 ac_cv_prog_CC="$CC" # Let the user override the test.
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_CC="${ac_tool_prefix}cc"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 if test -n "$CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3270 if test -z "$CC"; then
3271 # Extract the first word of "cc", so it can be a program name with args.
3272 set dummy cc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_CC+:} false; then :
3276 $as_echo_n "(cached) " >&6
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3290 ac_prog_rejected=yes
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 if test $ac_prog_rejected = yes; then
3302 # We found a bogon in the path, so make sure we never use it.
3303 set dummy $ac_cv_prog_CC
3305 if test $# != 0; then
3306 # We chose a different compiler from the bogus one.
3307 # However, it has the same basename, so the bogon will be chosen
3308 # first if we set CC to just the basename; use the full file name.
3310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3316 if test -n "$CC"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 $as_echo "$CC" >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3326 if test -z "$CC"; then
3327 if test -n "$ac_tool_prefix"; then
3328 for ac_prog in cl.exe
3330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if ${ac_cv_prog_CC+:} false; then :
3335 $as_echo_n "(cached) " >&6
3337 if test -n "$CC"; then
3338 ac_cv_prog_CC="$CC" # Let the user override the test.
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 if test -n "$CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3367 test -n "$CC" && break
3370 if test -z "$CC"; then
3372 for ac_prog in cl.exe
3374 # Extract the first word of "$ac_prog", so it can be a program name with args.
3375 set dummy $ac_prog; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3379 $as_echo_n "(cached) " >&6
3381 if test -n "$ac_ct_CC"; then
3382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391 ac_cv_prog_ac_ct_CC="$ac_prog"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3402 if test -n "$ac_ct_CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3404 $as_echo "$ac_ct_CC" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3411 test -n "$ac_ct_CC" && break
3414 if test "x$ac_ct_CC" = x; then
3417 case $cross_compiling:$ac_tool_warned in
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421 ac_tool_warned=yes ;;
3430 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "no acceptable C compiler found in \$PATH
3433 See \`config.log' for more details" "$LINENO" 5; }
3435 # Provide some information about the compiler.
3436 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3439 for ac_option in --version -v -V -qversion; do
3440 { { ac_try="$ac_compiler $ac_option >&5"
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3449 if test -s conftest.err; then
3451 ... rest of stderr output deleted ...
3452 10q' conftest.err >conftest.er1
3453 cat conftest.er1 >&5
3455 rm -f conftest.er1 conftest.err
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3471 ac_clean_files_save=$ac_clean_files
3472 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3473 # Try to create an executable without -o first, disregard a.out.
3474 # It will help us diagnose broken compilers, and finding out an intuition
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3477 $as_echo_n "checking whether the C compiler works... " >&6; }
3478 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3480 # The possible output files:
3481 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3484 for ac_file in $ac_files
3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3488 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3493 if { { ac_try="$ac_link_default"
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_link_default") 2>&5
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }; then :
3504 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3505 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3506 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3507 # so that the user can short-circuit this test for compilers unknown to
3509 for ac_file in $ac_files ''
3511 test -f "$ac_file" || continue
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3516 # We found the default executable, but exeext='' is most
3520 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3524 # We set ac_cv_exeext here because the later test for it is not
3525 # safe: cross compilers may not add the suffix if given an `-o'
3526 # argument, so we may need to know it at that point already.
3527 # Even if this section looks crufty: it has the advantage of
3534 test "$ac_cv_exeext" = no && ac_cv_exeext=
3539 if test -z "$ac_file"; then :
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 $as_echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error 77 "C compiler cannot create executables
3548 See \`config.log' for more details" "$LINENO" 5; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551 $as_echo "yes" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3554 $as_echo_n "checking for C compiler default output file name... " >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556 $as_echo "$ac_file" >&6; }
3557 ac_exeext=$ac_cv_exeext
3559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3560 ac_clean_files=$ac_clean_files_save
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3562 $as_echo_n "checking for suffix of executables... " >&6; }
3563 if { { ac_try="$ac_link"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_link") 2>&5
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }; then :
3574 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3575 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3576 # work properly (i.e., refer to `conftest.exe'), while it won't with
3578 for ac_file in conftest.exe conftest conftest.*; do
3579 test -f "$ac_file" || continue
3581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3582 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3591 See \`config.log' for more details" "$LINENO" 5; }
3593 rm -f conftest conftest$ac_cv_exeext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3595 $as_echo "$ac_cv_exeext" >&6; }
3597 rm -f conftest.$ac_ext
3598 EXEEXT=$ac_cv_exeext
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3606 FILE *f = fopen ("conftest.out", "w");
3607 return ferror (f) || fclose (f) != 0;
3613 ac_clean_files="$ac_clean_files conftest.out"
3614 # Check that the compiler produces executables we can run. If not, either
3615 # the compiler is broken, or we cross compile.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3617 $as_echo_n "checking whether we are cross compiling... " >&6; }
3618 if test "$cross_compiling" != yes; then
3619 { { ac_try="$ac_link"
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_link") 2>&5
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }
3630 if { ac_try='./conftest$ac_cv_exeext'
3631 { { case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_try") 2>&5
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }; }; then
3643 if test "$cross_compiling" = maybe; then
3646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error $? "cannot run C compiled programs.
3649 If you meant to cross compile, use \`--host'.
3650 See \`config.log' for more details" "$LINENO" 5; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3655 $as_echo "$cross_compiling" >&6; }
3657 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3658 ac_clean_files=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3660 $as_echo_n "checking for suffix of object files... " >&6; }
3661 if ${ac_cv_objext+:} false; then :
3662 $as_echo_n "(cached) " >&6
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3675 rm -f conftest.o conftest.obj
3676 if { { ac_try="$ac_compile"
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_compile") 2>&5
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }; then :
3687 for ac_file in conftest.o conftest.obj conftest.*; do
3688 test -f "$ac_file" || continue;
3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3696 $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error $? "cannot compute suffix of object files: cannot compile
3702 See \`config.log' for more details" "$LINENO" 5; }
3704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3707 $as_echo "$ac_cv_objext" >&6; }
3708 OBJEXT=$ac_cv_objext
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3712 if ${ac_cv_c_compiler_gnu+:} false; then :
3713 $as_echo_n "(cached) " >&6
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3729 if ac_fn_c_try_compile "$LINENO"; then :
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740 if test $ac_compiler_gnu = yes; then
3745 ac_test_CFLAGS=${CFLAGS+set}
3746 ac_save_CFLAGS=$CFLAGS
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3749 if ${ac_cv_prog_cc_g+:} false; then :
3750 $as_echo_n "(cached) " >&6
3752 ac_save_c_werror_flag=$ac_c_werror_flag
3753 ac_c_werror_flag=yes
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3767 if ac_fn_c_try_compile "$LINENO"; then :
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3782 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_c_werror_flag=$ac_save_c_werror_flag
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3798 if ac_fn_c_try_compile "$LINENO"; then :
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 ac_c_werror_flag=$ac_save_c_werror_flag
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3809 $as_echo "$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then
3811 CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then
3813 if test "$GCC" = yes; then
3819 if test "$GCC" = yes; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3827 if ${ac_cv_prog_cc_c89+:} false; then :
3828 $as_echo_n "(cached) " >&6
3830 ac_cv_prog_cc_c89=no
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3838 struct buf { int x; };
3839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3840 static char *e (p, i)
3846 static char *f (char * (*g) (char **, int), char **p, ...)
3851 s = g (p, va_arg (v,int));
3856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3857 function prototypes and stuff, but not '\xHH' hex character constants.
3858 These don't provoke an error unfortunately, instead are silently treated
3859 as 'x'. The following induces an error, until -std is added to get
3860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3861 array size at least. It's necessary to write '\x00'==0 to get something
3862 that's true only with -std. */
3863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3866 inside strings and character constants. */
3868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3870 int test (int i, double x);
3871 struct s1 {int (*f) (int a);};
3872 struct s2 {int (*f) (double a);};
3873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3887 CC="$ac_save_CC $ac_arg"
3888 if ac_fn_c_try_compile "$LINENO"; then :
3889 ac_cv_prog_cc_c89=$ac_arg
3891 rm -f core conftest.err conftest.$ac_objext
3892 test "x$ac_cv_prog_cc_c89" != "xno" && break
3894 rm -f conftest.$ac_ext
3899 case "x$ac_cv_prog_cc_c89" in
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3902 $as_echo "none needed" >&6; } ;;
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3905 $as_echo "unsupported" >&6; } ;;
3907 CC="$CC $ac_cv_prog_cc_c89"
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3911 if test "x$ac_cv_prog_cc_c89" != xno; then :
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922 ac_cpp='$CPP $CPPFLAGS'
3923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3927 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3928 if ${am_cv_prog_cc_c_o+:} false; then :
3929 $as_echo_n "(cached) " >&6
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3942 # Make sure it works both with $CC and with simple cc.
3943 # Following AC_PROG_CC_C_O, we do the test twice because some
3944 # compilers refuse to overwrite an existing .o file with -o,
3945 # though they will create one.
3946 am_cv_prog_cc_c_o=yes
3948 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3949 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } \
3953 && test -f conftest2.$ac_objext; then
3956 am_cv_prog_cc_c_o=no
3960 rm -f core conftest*
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3964 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3965 if test "$am_cv_prog_cc_c_o" != yes; then
3966 # Losing compiler, so override with the script.
3967 # FIXME: It is wrong to rewrite CC.
3968 # But if we don't then we get into trouble of one sort or another.
3969 # A longer-term fix would be to have automake use am__CC in this case,
3970 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3971 CC="$am_aux_dir/compile $CC"
3974 ac_cpp='$CPP $CPPFLAGS'
3975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980 depcc="$CC" am_compiler_list=
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3983 $as_echo_n "checking dependency style of $depcc... " >&6; }
3984 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3985 $as_echo_n "(cached) " >&6
3987 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3988 # We make a subdir and do the tests there. Otherwise we can end up
3989 # making bogus files that we don't know about and never remove. For
3990 # instance it was reported that on HP-UX the gcc test will end up
3991 # making a dummy file named 'D' -- because '-MD' means "put the output
3995 # Copy depcomp to subdir because otherwise we won't find it if we're
3996 # using a relative directory.
3997 cp "$am_depcomp" conftest.dir
3999 # We will build objects and dependencies in a subdirectory because
4000 # it helps to detect inapplicable dependency modes. For instance
4001 # both Tru64's cc and ICC support -MD to output dependencies as a
4002 # side effect of compilation, but ICC will put the dependencies in
4003 # the current directory while Tru64 will put them in the object
4007 am_cv_CC_dependencies_compiler_type=none
4008 if test "$am_compiler_list" = ""; then
4009 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4012 case " $depcc " in #(
4013 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4016 for depmode in $am_compiler_list; do
4017 # Setup a source with many dependencies, because some compilers
4018 # like to wrap large dependency lists on column 80 (with \), and
4019 # we should not choose a depcomp mode which is confused by this.
4021 # We need to recreate these files for each test, as the compiler may
4022 # overwrite some of them when testing with obscure command lines.
4023 # This happens at least with the AIX C compiler.
4025 for i in 1 2 3 4 5 6; do
4026 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4027 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4028 # Solaris 10 /bin/sh.
4029 echo '/* dummy */' > sub/conftst$i.h
4031 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4033 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4034 # mode. It turns out that the SunPro C++ compiler does not properly
4035 # handle '-M -o', and we need to detect this. Also, some Intel
4036 # versions had trouble with output in subdirs.
4037 am__obj=sub/conftest.${OBJEXT-o}
4038 am__minus_obj="-o $am__obj"
4041 # This depmode causes a compiler race in universal mode.
4042 test "$am__universal" = false || continue
4045 # After this tag, mechanisms are not by side-effect, so they'll
4046 # only be used when explicitly requested.
4047 if test "x$enable_dependency_tracking" = xyes; then
4053 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4054 # This compiler won't grok '-c -o', but also, the minuso test has
4055 # not run yet. These depmodes are late enough in the game, and
4056 # so weak that their functioning should not be impacted.
4057 am__obj=conftest.${OBJEXT-o}
4062 if depmode=$depmode \
4063 source=sub/conftest.c object=$am__obj \
4064 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4065 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4066 >/dev/null 2>conftest.err &&
4067 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4068 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4069 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4070 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4071 # icc doesn't choke on unknown options, it will just issue warnings
4072 # or remarks (even with -Werror). So we grep stderr for any message
4073 # that says an option was ignored or not supported.
4074 # When given -MP, icc 7.0 and 7.1 complain thusly:
4075 # icc: Command line warning: ignoring option '-M'; no argument required
4076 # The diagnosis changed in icc 8.0:
4077 # icc: Command line remark: option '-MP' not supported
4078 if (grep 'ignoring option' conftest.err ||
4079 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4080 am_cv_CC_dependencies_compiler_type=$depmode
4089 am_cv_CC_dependencies_compiler_type=none
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4094 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4095 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4098 test "x$enable_dependency_tracking" != xno \
4099 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4101 am__fastdepCC_FALSE='#'
4103 am__fastdepCC_TRUE='#'
4104 am__fastdepCC_FALSE=
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4109 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4110 if ${ac_cv_path_SED+:} false; then :
4111 $as_echo_n "(cached) " >&6
4113 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4114 for ac_i in 1 2 3 4 5 6 7; do
4115 ac_script="$ac_script$as_nl$ac_script"
4117 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4118 { ac_script=; unset ac_script;}
4119 if test -z "$SED"; then
4120 ac_path_SED_found=false
4121 # Loop through the user's path and test for each of PROGNAME-LIST
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 test -z "$as_dir" && as_dir=.
4127 for ac_prog in sed gsed; do
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4130 as_fn_executable_p "$ac_path_SED" || continue
4131 # Check for GNU ac_path_SED and select it if it is found.
4132 # Check for GNU $ac_path_SED
4133 case `"$ac_path_SED" --version 2>&1` in
4135 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4138 $as_echo_n 0123456789 >"conftest.in"
4141 cat "conftest.in" "conftest.in" >"conftest.tmp"
4142 mv "conftest.tmp" "conftest.in"
4143 cp "conftest.in" "conftest.nl"
4144 $as_echo '' >> "conftest.nl"
4145 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4147 as_fn_arith $ac_count + 1 && ac_count=$as_val
4148 if test $ac_count -gt ${ac_path_SED_max-0}; then
4149 # Best one so far, save it but keep looking for a better one
4150 ac_cv_path_SED="$ac_path_SED"
4151 ac_path_SED_max=$ac_count
4153 # 10*(2^10) chars as input seems more than enough
4154 test $ac_count -gt 10 && break
4156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4159 $ac_path_SED_found && break 3
4164 if test -z "$ac_cv_path_SED"; then
4165 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4173 $as_echo "$ac_cv_path_SED" >&6; }
4174 SED="$ac_cv_path_SED"
4177 test -z "$SED" && SED=sed
4178 Xsed="$SED -e 1s/^X//"
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4191 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4192 if ${ac_cv_path_GREP+:} false; then :
4193 $as_echo_n "(cached) " >&6
4195 if test -z "$GREP"; then
4196 ac_path_GREP_found=false
4197 # Loop through the user's path and test for each of PROGNAME-LIST
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4202 test -z "$as_dir" && as_dir=.
4203 for ac_prog in grep ggrep; do
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4206 as_fn_executable_p "$ac_path_GREP" || continue
4207 # Check for GNU ac_path_GREP and select it if it is found.
4208 # Check for GNU $ac_path_GREP
4209 case `"$ac_path_GREP" --version 2>&1` in
4211 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4214 $as_echo_n 0123456789 >"conftest.in"
4217 cat "conftest.in" "conftest.in" >"conftest.tmp"
4218 mv "conftest.tmp" "conftest.in"
4219 cp "conftest.in" "conftest.nl"
4220 $as_echo 'GREP' >> "conftest.nl"
4221 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4223 as_fn_arith $ac_count + 1 && ac_count=$as_val
4224 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4225 # Best one so far, save it but keep looking for a better one
4226 ac_cv_path_GREP="$ac_path_GREP"
4227 ac_path_GREP_max=$ac_count
4229 # 10*(2^10) chars as input seems more than enough
4230 test $ac_count -gt 10 && break
4232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4235 $ac_path_GREP_found && break 3
4240 if test -z "$ac_cv_path_GREP"; then
4241 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4244 ac_cv_path_GREP=$GREP
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4249 $as_echo "$ac_cv_path_GREP" >&6; }
4250 GREP="$ac_cv_path_GREP"
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4254 $as_echo_n "checking for egrep... " >&6; }
4255 if ${ac_cv_path_EGREP+:} false; then :
4256 $as_echo_n "(cached) " >&6
4258 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4259 then ac_cv_path_EGREP="$GREP -E"
4261 if test -z "$EGREP"; then
4262 ac_path_EGREP_found=false
4263 # Loop through the user's path and test for each of PROGNAME-LIST
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4268 test -z "$as_dir" && as_dir=.
4269 for ac_prog in egrep; do
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4272 as_fn_executable_p "$ac_path_EGREP" || continue
4273 # Check for GNU ac_path_EGREP and select it if it is found.
4274 # Check for GNU $ac_path_EGREP
4275 case `"$ac_path_EGREP" --version 2>&1` in
4277 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4280 $as_echo_n 0123456789 >"conftest.in"
4283 cat "conftest.in" "conftest.in" >"conftest.tmp"
4284 mv "conftest.tmp" "conftest.in"
4285 cp "conftest.in" "conftest.nl"
4286 $as_echo 'EGREP' >> "conftest.nl"
4287 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4288 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4289 as_fn_arith $ac_count + 1 && ac_count=$as_val
4290 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4291 # Best one so far, save it but keep looking for a better one
4292 ac_cv_path_EGREP="$ac_path_EGREP"
4293 ac_path_EGREP_max=$ac_count
4295 # 10*(2^10) chars as input seems more than enough
4296 test $ac_count -gt 10 && break
4298 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4301 $ac_path_EGREP_found && break 3
4306 if test -z "$ac_cv_path_EGREP"; then
4307 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4310 ac_cv_path_EGREP=$EGREP
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4316 $as_echo "$ac_cv_path_EGREP" >&6; }
4317 EGREP="$ac_cv_path_EGREP"
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4321 $as_echo_n "checking for fgrep... " >&6; }
4322 if ${ac_cv_path_FGREP+:} false; then :
4323 $as_echo_n "(cached) " >&6
4325 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4326 then ac_cv_path_FGREP="$GREP -F"
4328 if test -z "$FGREP"; then
4329 ac_path_FGREP_found=false
4330 # Loop through the user's path and test for each of PROGNAME-LIST
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4335 test -z "$as_dir" && as_dir=.
4336 for ac_prog in fgrep; do
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4339 as_fn_executable_p "$ac_path_FGREP" || continue
4340 # Check for GNU ac_path_FGREP and select it if it is found.
4341 # Check for GNU $ac_path_FGREP
4342 case `"$ac_path_FGREP" --version 2>&1` in
4344 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4347 $as_echo_n 0123456789 >"conftest.in"
4350 cat "conftest.in" "conftest.in" >"conftest.tmp"
4351 mv "conftest.tmp" "conftest.in"
4352 cp "conftest.in" "conftest.nl"
4353 $as_echo 'FGREP' >> "conftest.nl"
4354 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4355 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4356 as_fn_arith $ac_count + 1 && ac_count=$as_val
4357 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4358 # Best one so far, save it but keep looking for a better one
4359 ac_cv_path_FGREP="$ac_path_FGREP"
4360 ac_path_FGREP_max=$ac_count
4362 # 10*(2^10) chars as input seems more than enough
4363 test $ac_count -gt 10 && break
4365 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4368 $ac_path_FGREP_found && break 3
4373 if test -z "$ac_cv_path_FGREP"; then
4374 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4377 ac_cv_path_FGREP=$FGREP
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4383 $as_echo "$ac_cv_path_FGREP" >&6; }
4384 FGREP="$ac_cv_path_FGREP"
4387 test -z "$GREP" && GREP=grep
4407 # Check whether --with-gnu-ld was given.
4408 if test "${with_gnu_ld+set}" = set; then :
4409 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4415 if test "$GCC" = yes; then
4416 # Check if gcc -print-prog-name=ld gives a path.
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4418 $as_echo_n "checking for ld used by $CC... " >&6; }
4421 # gcc leaves a trailing carriage return which upsets mingw
4422 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4424 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4427 # Accept absolute paths.
4429 re_direlt='/[^/][^/]*/\.\./'
4430 # Canonicalize the pathname of ld
4431 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4432 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4433 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4435 test -z "$LD" && LD="$ac_prog"
4438 # If it fails, then pretend we aren't using GCC.
4442 # If it is relative, then search for the first ld in PATH.
4446 elif test "$with_gnu_ld" = yes; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4448 $as_echo_n "checking for GNU ld... " >&6; }
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4451 $as_echo_n "checking for non-GNU ld... " >&6; }
4453 if ${lt_cv_path_LD+:} false; then :
4454 $as_echo_n "(cached) " >&6
4456 if test -z "$LD"; then
4457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4458 for ac_dir in $PATH; do
4460 test -z "$ac_dir" && ac_dir=.
4461 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4462 lt_cv_path_LD="$ac_dir/$ac_prog"
4463 # Check to see if the program is GNU ld. I'd rather use --version,
4464 # but apparently some variants of GNU ld only accept -v.
4465 # Break only if it was the GNU/non-GNU ld that we prefer.
4466 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4467 *GNU* | *'with BFD'*)
4468 test "$with_gnu_ld" != no && break
4471 test "$with_gnu_ld" != yes && break
4478 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4483 if test -n "$LD"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4485 $as_echo "$LD" >&6; }
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4490 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4492 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4493 if ${lt_cv_prog_gnu_ld+:} false; then :
4494 $as_echo_n "(cached) " >&6
4496 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4497 case `$LD -v 2>&1 </dev/null` in
4498 *GNU* | *'with BFD'*)
4499 lt_cv_prog_gnu_ld=yes
4502 lt_cv_prog_gnu_ld=no
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4507 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4508 with_gnu_ld=$lt_cv_prog_gnu_ld
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4519 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4520 if ${lt_cv_path_NM+:} false; then :
4521 $as_echo_n "(cached) " >&6
4523 if test -n "$NM"; then
4524 # Let the user override the test.
4527 lt_nm_to_check="${ac_tool_prefix}nm"
4528 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4529 lt_nm_to_check="$lt_nm_to_check nm"
4531 for lt_tmp_nm in $lt_nm_to_check; do
4532 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4533 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4535 test -z "$ac_dir" && ac_dir=.
4536 tmp_nm="$ac_dir/$lt_tmp_nm"
4537 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4538 # Check to see if the nm accepts a BSD-compat flag.
4539 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4540 # nm: unknown option "B" ignored
4541 # Tru64's nm complains that /dev/null is an invalid object file
4542 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4543 */dev/null* | *'Invalid file or object type'*)
4544 lt_cv_path_NM="$tmp_nm -B"
4548 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4550 lt_cv_path_NM="$tmp_nm -p"
4554 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4555 continue # so that we can try to find one that supports BSD flags
4564 : ${lt_cv_path_NM=no}
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4568 $as_echo "$lt_cv_path_NM" >&6; }
4569 if test "$lt_cv_path_NM" != "no"; then
4572 # Didn't find any BSD compatible name lister, look for dumpbin.
4573 if test -n "$DUMPBIN"; then :
4574 # Let the user override the test.
4576 if test -n "$ac_tool_prefix"; then
4577 for ac_prog in dumpbin "link -dump"
4579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582 $as_echo_n "checking for $ac_word... " >&6; }
4583 if ${ac_cv_prog_DUMPBIN+:} false; then :
4584 $as_echo_n "(cached) " >&6
4586 if test -n "$DUMPBIN"; then
4587 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 DUMPBIN=$ac_cv_prog_DUMPBIN
4607 if test -n "$DUMPBIN"; then
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4609 $as_echo "$DUMPBIN" >&6; }
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612 $as_echo "no" >&6; }
4616 test -n "$DUMPBIN" && break
4619 if test -z "$DUMPBIN"; then
4620 ac_ct_DUMPBIN=$DUMPBIN
4621 for ac_prog in dumpbin "link -dump"
4623 # Extract the first word of "$ac_prog", so it can be a program name with args.
4624 set dummy $ac_prog; ac_word=$2
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626 $as_echo_n "checking for $ac_word... " >&6; }
4627 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4628 $as_echo_n "(cached) " >&6
4630 if test -n "$ac_ct_DUMPBIN"; then
4631 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4651 if test -n "$ac_ct_DUMPBIN"; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4653 $as_echo "$ac_ct_DUMPBIN" >&6; }
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 $as_echo "no" >&6; }
4660 test -n "$ac_ct_DUMPBIN" && break
4663 if test "x$ac_ct_DUMPBIN" = x; then
4666 case $cross_compiling:$ac_tool_warned in
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4670 ac_tool_warned=yes ;;
4672 DUMPBIN=$ac_ct_DUMPBIN
4676 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4678 DUMPBIN="$DUMPBIN -symbols"
4686 if test "$DUMPBIN" != ":"; then
4690 test -z "$NM" && NM=nm
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4698 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4699 if ${lt_cv_nm_interface+:} false; then :
4700 $as_echo_n "(cached) " >&6
4702 lt_cv_nm_interface="BSD nm"
4703 echo "int some_variable = 0;" > conftest.$ac_ext
4704 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4705 (eval "$ac_compile" 2>conftest.err)
4706 cat conftest.err >&5
4707 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4708 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4709 cat conftest.err >&5
4710 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4711 cat conftest.out >&5
4712 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4713 lt_cv_nm_interface="MS dumpbin"
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4718 $as_echo "$lt_cv_nm_interface" >&6; }
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4721 $as_echo_n "checking whether ln -s works... " >&6; }
4723 if test "$LN_S" = "ln -s"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4725 $as_echo "yes" >&6; }
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4728 $as_echo "no, using $LN_S" >&6; }
4731 # find the maximum length of command line arguments
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4733 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4734 if ${lt_cv_sys_max_cmd_len+:} false; then :
4735 $as_echo_n "(cached) " >&6
4742 # On DJGPP, this test can blow up pretty badly due to problems in libc
4743 # (any single argument exceeding 2000 bytes causes a buffer overrun
4744 # during glob expansion). Even if it were fixed, the result of this
4745 # check would be larger than it should be.
4746 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4750 # Under GNU Hurd, this test is not required because there is
4751 # no limit to the length of command line arguments.
4752 # Libtool will interpret -1 as no limit whatsoever
4753 lt_cv_sys_max_cmd_len=-1;
4756 cygwin* | mingw* | cegcc*)
4757 # On Win9x/ME, this test blows up -- it succeeds, but takes
4758 # about 5 minutes as the teststring grows exponentially.
4759 # Worse, since 9x/ME are not pre-emptively multitasking,
4760 # you end up with a "frozen" computer, even though with patience
4761 # the test eventually succeeds (with a max line length of 256k).
4762 # Instead, let's just punt: use the minimum linelength reported by
4763 # all of the supported platforms: 8192 (on NT/2K/XP).
4764 lt_cv_sys_max_cmd_len=8192;
4768 # On MiNT this can take a long time and run out of memory.
4769 lt_cv_sys_max_cmd_len=8192;
4773 # On AmigaOS with pdksh, this test takes hours, literally.
4774 # So we just punt and use a minimum line length of 8192.
4775 lt_cv_sys_max_cmd_len=8192;
4778 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4779 # This has been around since 386BSD, at least. Likely further.
4780 if test -x /sbin/sysctl; then
4781 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4782 elif test -x /usr/sbin/sysctl; then
4783 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4785 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4787 # And add a safety zone
4788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4793 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4794 lt_cv_sys_max_cmd_len=196608
4798 # The test takes a long time on OS/2.
4799 lt_cv_sys_max_cmd_len=8192
4803 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4804 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4805 # nice to cause kernel panics so lets avoid the loop below.
4806 # First set a reasonable default.
4807 lt_cv_sys_max_cmd_len=16384
4809 if test -x /sbin/sysconfig; then
4810 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4811 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4816 lt_cv_sys_max_cmd_len=102400
4818 sysv5* | sco5v6* | sysv4.2uw2*)
4819 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4820 if test -n "$kargmax"; then
4821 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4823 lt_cv_sys_max_cmd_len=32768
4827 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4828 if test -n "$lt_cv_sys_max_cmd_len"; then
4829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4830 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4832 # Make teststring a little bigger before we do anything with it.
4833 # a 1K string should be a reasonable start.
4834 for i in 1 2 3 4 5 6 7 8 ; do
4835 teststring=$teststring$teststring
4837 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4838 # If test is not a shell built-in, we'll probably end up computing a
4839 # maximum length that is only half of the actual maximum length, but
4841 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4842 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4843 test $i != 17 # 1/2 MB should be enough
4846 teststring=$teststring$teststring
4848 # Only check the string length outside the loop.
4849 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4851 # Add a significant safety factor because C++ compilers can tack on
4852 # massive amounts of additional arguments before passing them to the
4853 # linker. It appears as though 1/2 is a usable value.
4854 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4861 if test -n $lt_cv_sys_max_cmd_len ; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4863 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4866 $as_echo "none" >&6; }
4868 max_cmd_len=$lt_cv_sys_max_cmd_len
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4880 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4881 # Try some XSI features
4884 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4886 && eval 'test $(( 1 + 1 )) -eq 2 \
4887 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4890 $as_echo "$xsi_shell" >&6; }
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4894 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4896 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4898 && lt_shell_append=yes
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4900 $as_echo "$lt_shell_append" >&6; }
4903 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4913 # test EBCDIC or ASCII
4914 case `echo X|tr X '\101'` in
4915 A) # ASCII based system
4916 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4917 lt_SP2NL='tr \040 \012'
4918 lt_NL2SP='tr \015\012 \040\040'
4920 *) # EBCDIC based system
4921 lt_SP2NL='tr \100 \n'
4922 lt_NL2SP='tr \r\n \100\100'
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4935 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4936 if ${lt_cv_to_host_file_cmd+:} false; then :
4937 $as_echo_n "(cached) " >&6
4942 *-*-mingw* ) # actually msys
4943 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4946 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4948 * ) # otherwise, assume *nix
4949 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4955 *-*-mingw* ) # actually msys
4956 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4959 lt_cv_to_host_file_cmd=func_convert_file_noop
4961 * ) # otherwise, assume *nix
4962 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4966 * ) # unhandled hosts (and "normal" native builds)
4967 lt_cv_to_host_file_cmd=func_convert_file_noop
4973 to_host_file_cmd=$lt_cv_to_host_file_cmd
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4975 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4982 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4983 if ${lt_cv_to_tool_file_cmd+:} false; then :
4984 $as_echo_n "(cached) " >&6
4986 #assume ordinary cross tools, or native build.
4987 lt_cv_to_tool_file_cmd=func_convert_file_noop
4991 *-*-mingw* ) # actually msys
4992 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5000 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5002 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5009 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5010 if ${lt_cv_ld_reload_flag+:} false; then :
5011 $as_echo_n "(cached) " >&6
5013 lt_cv_ld_reload_flag='-r'
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5016 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5017 reload_flag=$lt_cv_ld_reload_flag
5018 case $reload_flag in
5020 *) reload_flag=" $reload_flag" ;;
5022 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5024 cygwin* | mingw* | pw32* | cegcc*)
5025 if test "$GCC" != yes; then
5030 if test "$GCC" = yes; then
5031 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5033 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5046 if test -n "$ac_tool_prefix"; then
5047 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5048 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if ${ac_cv_prog_OBJDUMP+:} false; then :
5052 $as_echo_n "(cached) " >&6
5054 if test -n "$OBJDUMP"; then
5055 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 OBJDUMP=$ac_cv_prog_OBJDUMP
5075 if test -n "$OBJDUMP"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5077 $as_echo "$OBJDUMP" >&6; }
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5085 if test -z "$ac_cv_prog_OBJDUMP"; then
5086 ac_ct_OBJDUMP=$OBJDUMP
5087 # Extract the first word of "objdump", so it can be a program name with args.
5088 set dummy objdump; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5092 $as_echo_n "(cached) " >&6
5094 if test -n "$ac_ct_OBJDUMP"; then
5095 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5115 if test -n "$ac_ct_OBJDUMP"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5117 $as_echo "$ac_ct_OBJDUMP" >&6; }
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5123 if test "x$ac_ct_OBJDUMP" = x; then
5126 case $cross_compiling:$ac_tool_warned in
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5130 ac_tool_warned=yes ;;
5132 OBJDUMP=$ac_ct_OBJDUMP
5135 OBJDUMP="$ac_cv_prog_OBJDUMP"
5138 test -z "$OBJDUMP" && OBJDUMP=objdump
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5149 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5150 if ${lt_cv_deplibs_check_method+:} false; then :
5151 $as_echo_n "(cached) " >&6
5153 lt_cv_file_magic_cmd='$MAGIC_CMD'
5154 lt_cv_file_magic_test_file=
5155 lt_cv_deplibs_check_method='unknown'
5156 # Need to set the preceding variable on all platforms that support
5157 # interlibrary dependencies.
5158 # 'none' -- dependencies not supported.
5159 # `unknown' -- same as none, but documents that we really don't know.
5160 # 'pass_all' -- all dependencies passed with no checks.
5161 # 'test_compile' -- check by making test program.
5162 # 'file_magic [[regex]]' -- check by looking for files in library path
5163 # which responds to the $file_magic_cmd with a given extended regex.
5164 # If you have `file' or equivalent on your system and you're not sure
5165 # whether `pass_all' will *always* work, you probably want this one.
5169 lt_cv_deplibs_check_method=pass_all
5173 lt_cv_deplibs_check_method=pass_all
5177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5178 lt_cv_file_magic_cmd='/usr/bin/file -L'
5179 lt_cv_file_magic_test_file=/shlib/libc.so
5183 # func_win32_libid is a shell function defined in ltmain.sh
5184 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5185 lt_cv_file_magic_cmd='func_win32_libid'
5189 # Base MSYS/MinGW do not provide the 'file' command needed by
5190 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5191 # unless we find 'file', for example because we are cross-compiling.
5192 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5193 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5195 lt_cv_file_magic_cmd='func_win32_libid'
5197 # Keep this pattern in sync with the one in func_win32_libid.
5198 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5199 lt_cv_file_magic_cmd='$OBJDUMP -f'
5204 # use the weaker test based on 'objdump'. See mingw*.
5205 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5206 lt_cv_file_magic_cmd='$OBJDUMP -f'
5209 darwin* | rhapsody*)
5210 lt_cv_deplibs_check_method=pass_all
5213 freebsd* | dragonfly*)
5214 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5217 # Not sure whether the presence of OpenBSD here was a mistake.
5218 # Let's accept both of them until this is cleared up.
5219 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5220 lt_cv_file_magic_cmd=/usr/bin/file
5221 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5225 lt_cv_deplibs_check_method=pass_all
5230 lt_cv_deplibs_check_method=pass_all
5234 lt_cv_deplibs_check_method=pass_all
5237 hpux10.20* | hpux11*)
5238 lt_cv_file_magic_cmd=/usr/bin/file
5241 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5242 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5245 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]'
5246 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5249 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5250 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5256 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5260 irix5* | irix6* | nonstopux*)
5262 *-32|*"-32 ") libmagic=32-bit;;
5263 *-n32|*"-n32 ") libmagic=N32;;
5264 *-64|*"-64 ") libmagic=64-bit;;
5265 *) libmagic=never-match;;
5267 lt_cv_deplibs_check_method=pass_all
5270 # This must be glibc/ELF.
5271 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5272 lt_cv_deplibs_check_method=pass_all
5276 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5285 lt_cv_file_magic_cmd=/usr/bin/file
5286 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5290 lt_cv_deplibs_check_method=pass_all
5294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5301 osf3* | osf4* | osf5*)
5302 lt_cv_deplibs_check_method=pass_all
5306 lt_cv_deplibs_check_method=pass_all
5310 lt_cv_deplibs_check_method=pass_all
5313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5314 lt_cv_deplibs_check_method=pass_all
5318 case $host_vendor in
5320 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]'
5321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5324 lt_cv_deplibs_check_method=pass_all
5327 lt_cv_file_magic_cmd='/bin/file'
5328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5331 lt_cv_file_magic_cmd='/bin/file'
5332 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5333 lt_cv_file_magic_test_file=/lib/libc.so
5336 lt_cv_deplibs_check_method=pass_all
5339 lt_cv_deplibs_check_method=pass_all
5345 lt_cv_deplibs_check_method=pass_all
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5351 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5355 if test "$build" = "$host"; then
5358 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5361 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5367 file_magic_cmd=$lt_cv_file_magic_cmd
5368 deplibs_check_method=$lt_cv_deplibs_check_method
5369 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5392 if test -n "$ac_tool_prefix"; then
5393 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5394 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_DLLTOOL+:} false; then :
5398 $as_echo_n "(cached) " >&6
5400 if test -n "$DLLTOOL"; then
5401 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 DLLTOOL=$ac_cv_prog_DLLTOOL
5421 if test -n "$DLLTOOL"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5423 $as_echo "$DLLTOOL" >&6; }
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5431 if test -z "$ac_cv_prog_DLLTOOL"; then
5432 ac_ct_DLLTOOL=$DLLTOOL
5433 # Extract the first word of "dlltool", so it can be a program name with args.
5434 set dummy dlltool; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5438 $as_echo_n "(cached) " >&6
5440 if test -n "$ac_ct_DLLTOOL"; then
5441 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5461 if test -n "$ac_ct_DLLTOOL"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5463 $as_echo "$ac_ct_DLLTOOL" >&6; }
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5469 if test "x$ac_ct_DLLTOOL" = x; then
5472 case $cross_compiling:$ac_tool_warned in
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5476 ac_tool_warned=yes ;;
5478 DLLTOOL=$ac_ct_DLLTOOL
5481 DLLTOOL="$ac_cv_prog_DLLTOOL"
5484 test -z "$DLLTOOL" && DLLTOOL=dlltool
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5496 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5497 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5498 $as_echo_n "(cached) " >&6
5500 lt_cv_sharedlib_from_linklib_cmd='unknown'
5503 cygwin* | mingw* | pw32* | cegcc*)
5504 # two different shell functions defined in ltmain.sh
5505 # decide which to use based on capabilities of $DLLTOOL
5506 case `$DLLTOOL --help 2>&1` in
5507 *--identify-strict*)
5508 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5511 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5516 # fallback: assume linklib IS sharedlib
5517 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5523 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5524 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5525 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5534 if test -n "$ac_tool_prefix"; then
5537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_AR+:} false; then :
5542 $as_echo_n "(cached) " >&6
5544 if test -n "$AR"; then
5545 ac_cv_prog_AR="$AR" # Let the user override the test.
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 if test -n "$AR"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5567 $as_echo "$AR" >&6; }
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5574 test -n "$AR" && break
5577 if test -z "$AR"; then
5581 # Extract the first word of "$ac_prog", so it can be a program name with args.
5582 set dummy $ac_prog; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5586 $as_echo_n "(cached) " >&6
5588 if test -n "$ac_ct_AR"; then
5589 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_prog_ac_ct_AR="$ac_prog"
5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5609 if test -n "$ac_ct_AR"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5611 $as_echo "$ac_ct_AR" >&6; }
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5618 test -n "$ac_ct_AR" && break
5621 if test "x$ac_ct_AR" = x; then
5624 case $cross_compiling:$ac_tool_warned in
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5628 ac_tool_warned=yes ;;
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5648 $as_echo_n "checking for archiver @FILE support... " >&6; }
5649 if ${lt_cv_ar_at_file+:} false; then :
5650 $as_echo_n "(cached) " >&6
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5664 if ac_fn_c_try_compile "$LINENO"; then :
5665 echo conftest.$ac_objext > conftest.lst
5666 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5668 (eval $lt_ar_try) 2>&5
5670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671 test $ac_status = 0; }
5672 if test "$ac_status" -eq 0; then
5673 # Ensure the archiver fails upon bogus file names.
5674 rm -f conftest.$ac_objext libconftest.a
5675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5676 (eval $lt_ar_try) 2>&5
5678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679 test $ac_status = 0; }
5680 if test "$ac_status" -ne 0; then
5684 rm -f conftest.* libconftest.a
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5691 $as_echo "$lt_cv_ar_at_file" >&6; }
5693 if test "x$lt_cv_ar_at_file" = xno; then
5696 archiver_list_spec=$lt_cv_ar_at_file
5705 if test -n "$ac_tool_prefix"; then
5706 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5707 set dummy ${ac_tool_prefix}strip; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if ${ac_cv_prog_STRIP+:} false; then :
5711 $as_echo_n "(cached) " >&6
5713 if test -n "$STRIP"; then
5714 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 STRIP=$ac_cv_prog_STRIP
5734 if test -n "$STRIP"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5736 $as_echo "$STRIP" >&6; }
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5744 if test -z "$ac_cv_prog_STRIP"; then
5746 # Extract the first word of "strip", so it can be a program name with args.
5747 set dummy strip; ac_word=$2
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749 $as_echo_n "checking for $ac_word... " >&6; }
5750 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5751 $as_echo_n "(cached) " >&6
5753 if test -n "$ac_ct_STRIP"; then
5754 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 ac_cv_prog_ac_ct_STRIP="strip"
5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5774 if test -n "$ac_ct_STRIP"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5776 $as_echo "$ac_ct_STRIP" >&6; }
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5782 if test "x$ac_ct_STRIP" = x; then
5785 case $cross_compiling:$ac_tool_warned in
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5789 ac_tool_warned=yes ;;
5794 STRIP="$ac_cv_prog_STRIP"
5797 test -z "$STRIP" && STRIP=:
5804 if test -n "$ac_tool_prefix"; then
5805 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5806 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_prog_RANLIB+:} false; then :
5810 $as_echo_n "(cached) " >&6
5812 if test -n "$RANLIB"; then
5813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 RANLIB=$ac_cv_prog_RANLIB
5833 if test -n "$RANLIB"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5835 $as_echo "$RANLIB" >&6; }
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5843 if test -z "$ac_cv_prog_RANLIB"; then
5844 ac_ct_RANLIB=$RANLIB
5845 # Extract the first word of "ranlib", so it can be a program name with args.
5846 set dummy ranlib; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5850 $as_echo_n "(cached) " >&6
5852 if test -n "$ac_ct_RANLIB"; then
5853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_ac_ct_RANLIB="ranlib"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5873 if test -n "$ac_ct_RANLIB"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5875 $as_echo "$ac_ct_RANLIB" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5881 if test "x$ac_ct_RANLIB" = x; then
5884 case $cross_compiling:$ac_tool_warned in
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5888 ac_tool_warned=yes ;;
5890 RANLIB=$ac_ct_RANLIB
5893 RANLIB="$ac_cv_prog_RANLIB"
5896 test -z "$RANLIB" && RANLIB=:
5903 # Determine commands to create old-style static archives.
5904 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5905 old_postinstall_cmds='chmod 644 $oldlib'
5906 old_postuninstall_cmds=
5908 if test -n "$RANLIB"; then
5911 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5914 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5917 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5922 lock_old_archive_extraction=yes ;;
5924 lock_old_archive_extraction=no ;;
5965 # If no C compiler was specified, use CC.
5968 # If no C compiler flags were specified, use CFLAGS.
5969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5971 # Allow CC to be a program name with arguments.
5975 # Check for command to grab the raw symbol name followed by C symbol from nm.
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5977 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5978 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5979 $as_echo_n "(cached) " >&6
5982 # These are sane defaults that work on at least a few old systems.
5983 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5985 # Character class describing NM global symbol codes.
5986 symcode='[BCDEGRST]'
5988 # Regexp to match symbols that can be accessed directly from C.
5989 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5991 # Define system-specific variables.
5996 cygwin* | mingw* | pw32* | cegcc*)
5997 symcode='[ABCDGISTW]'
6000 if test "$host_cpu" = ia64; then
6001 symcode='[ABCDEGRST]'
6005 symcode='[BCDEGRST]'
6008 symcode='[BCDEGQRST]'
6019 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6027 # If we're using GNU nm, then use its standard symbol codes.
6028 case `$NM -V 2>&1` in
6029 *GNU* | *'with BFD'*)
6030 symcode='[ABCDGIRSTW]' ;;
6033 # Transform an extracted symbol line into a proper C declaration.
6034 # Some systems (esp. on ia64) link data and code symbols differently,
6035 # so use this general approach.
6036 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6038 # Transform an extracted symbol line into symbol name and symbol address
6039 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6040 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'"
6042 # Handle CRLF in mingw tool chain
6046 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6050 # Try without a prefix underscore, then with it.
6051 for ac_symprfx in "" "_"; do
6053 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6054 symxfrm="\\1 $ac_symprfx\\2 \\2"
6056 # Write the raw and C identifiers.
6057 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6058 # Fake it for dumpbin and say T for any non-static function
6059 # and D for any global variable.
6060 # Also find C++ and __fastcall symbols from MSVC++,
6061 # which start with @ or ?.
6062 lt_cv_sys_global_symbol_pipe="$AWK '"\
6063 " {last_section=section; section=\$ 3};"\
6064 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6065 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6066 " \$ 0!~/External *\|/{next};"\
6067 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6068 " {if(hide[section]) next};"\
6069 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6070 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6071 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6072 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6073 " ' prfx=^$ac_symprfx"
6075 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6077 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6079 # Check to see that the pipe works correctly.
6083 cat > conftest.$ac_ext <<_LT_EOF
6088 void nm_test_func(void);
6089 void nm_test_func(void){}
6093 int main(){nm_test_var='a';nm_test_func();return(0);}
6096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6097 (eval $ac_compile) 2>&5
6099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6100 test $ac_status = 0; }; then
6101 # Now try to grab the symbols.
6103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6104 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6107 test $ac_status = 0; } && test -s "$nlist"; then
6108 # Try sorting and uniquifying the output.
6109 if sort "$nlist" | uniq > "$nlist"T; then
6110 mv -f "$nlist"T "$nlist"
6115 # Make sure that we snagged all the symbols we need.
6116 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6117 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6118 cat <<_LT_EOF > conftest.$ac_ext
6119 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6120 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6121 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6122 relocations are performed -- see ld's documentation on pseudo-relocs. */
6123 # define LT_DLSYM_CONST
6124 #elif defined(__osf__)
6125 /* This system does not cope well with relocations in const data. */
6126 # define LT_DLSYM_CONST
6128 # define LT_DLSYM_CONST const
6136 # Now generate the symbol file.
6137 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6139 cat <<_LT_EOF >> conftest.$ac_ext
6141 /* The mapping between symbol names and symbols. */
6142 LT_DLSYM_CONST struct {
6146 lt__PROGRAM__LTX_preloaded_symbols[] =
6148 { "@PROGRAM@", (void *) 0 },
6150 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6151 cat <<\_LT_EOF >> conftest.$ac_ext
6155 /* This works around a problem in FreeBSD linker */
6156 #ifdef FREEBSD_WORKAROUND
6157 static const void *lt_preloaded_setup() {
6158 return lt__PROGRAM__LTX_preloaded_symbols;
6166 # Now try linking the two files.
6167 mv conftest.$ac_objext conftstm.$ac_objext
6168 lt_globsym_save_LIBS=$LIBS
6169 lt_globsym_save_CFLAGS=$CFLAGS
6170 LIBS="conftstm.$ac_objext"
6171 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6173 (eval $ac_link) 2>&5
6175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6176 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6179 LIBS=$lt_globsym_save_LIBS
6180 CFLAGS=$lt_globsym_save_CFLAGS
6182 echo "cannot find nm_test_func in $nlist" >&5
6185 echo "cannot find nm_test_var in $nlist" >&5
6188 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6191 echo "$progname: failed program was:" >&5
6192 cat conftest.$ac_ext >&5
6194 rm -rf conftest* conftst*
6196 # Do not use the global_symbol_pipe unless it works.
6197 if test "$pipe_works" = yes; then
6200 lt_cv_sys_global_symbol_pipe=
6206 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6207 lt_cv_sys_global_symbol_to_cdecl=
6209 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6211 $as_echo "failed" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6214 $as_echo "ok" >&6; }
6217 # Response file support.
6218 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6219 nm_file_list_spec='@'
6220 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6221 nm_file_list_spec='@'
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6251 $as_echo_n "checking for sysroot... " >&6; }
6253 # Check whether --with-sysroot was given.
6254 if test "${with_sysroot+set}" = set; then :
6255 withval=$with_sysroot;
6262 case ${with_sysroot} in #(
6264 if test "$GCC" = yes; then
6265 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6269 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6275 $as_echo "${with_sysroot}" >&6; }
6276 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6281 $as_echo "${lt_sysroot:-no}" >&6; }
6287 # Check whether --enable-libtool-lock was given.
6288 if test "${enable_libtool_lock+set}" = set; then :
6289 enableval=$enable_libtool_lock;
6292 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6294 # Some flags need to be propagated to the compiler or linker for good
6298 # Find out which ABI we are using.
6299 echo 'int i;' > conftest.$ac_ext
6300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6301 (eval $ac_compile) 2>&5
6303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6304 test $ac_status = 0; }; then
6305 case `/usr/bin/file conftest.$ac_objext` in
6317 # Find out which ABI we are using.
6318 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6320 (eval $ac_compile) 2>&5
6322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323 test $ac_status = 0; }; then
6324 if test "$lt_cv_prog_gnu_ld" = yes; then
6325 case `/usr/bin/file conftest.$ac_objext` in
6327 LD="${LD-ld} -melf32bsmip"
6330 LD="${LD-ld} -melf32bmipn32"
6333 LD="${LD-ld} -melf64bmip"
6337 case `/usr/bin/file conftest.$ac_objext` in
6353 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6354 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6355 # Find out which ABI we are using.
6356 echo 'int i;' > conftest.$ac_ext
6357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6358 (eval $ac_compile) 2>&5
6360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361 test $ac_status = 0; }; then
6362 case `/usr/bin/file conftest.o` in
6365 x86_64-*kfreebsd*-gnu)
6366 LD="${LD-ld} -m elf_i386_fbsd"
6369 LD="${LD-ld} -m elf_i386"
6371 ppc64-*linux*|powerpc64-*linux*)
6372 LD="${LD-ld} -m elf32ppclinux"
6375 LD="${LD-ld} -m elf_s390"
6378 LD="${LD-ld} -m elf32_sparc"
6384 x86_64-*kfreebsd*-gnu)
6385 LD="${LD-ld} -m elf_x86_64_fbsd"
6388 LD="${LD-ld} -m elf_x86_64"
6390 ppc*-*linux*|powerpc*-*linux*)
6391 LD="${LD-ld} -m elf64ppc"
6393 s390*-*linux*|s390*-*tpf*)
6394 LD="${LD-ld} -m elf64_s390"
6397 LD="${LD-ld} -m elf64_sparc"
6407 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6408 SAVE_CFLAGS="$CFLAGS"
6409 CFLAGS="$CFLAGS -belf"
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6411 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6412 if ${lt_cv_cc_needs_belf+:} false; then :
6413 $as_echo_n "(cached) " >&6
6416 ac_cpp='$CPP $CPPFLAGS'
6417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6432 if ac_fn_c_try_link "$LINENO"; then :
6433 lt_cv_cc_needs_belf=yes
6435 lt_cv_cc_needs_belf=no
6437 rm -f core conftest.err conftest.$ac_objext \
6438 conftest$ac_exeext conftest.$ac_ext
6440 ac_cpp='$CPP $CPPFLAGS'
6441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6447 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6448 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6449 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6450 CFLAGS="$SAVE_CFLAGS"
6454 # Find out which ABI we are using.
6455 echo 'int i;' > conftest.$ac_ext
6456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6457 (eval $ac_compile) 2>&5
6459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6460 test $ac_status = 0; }; then
6461 case `/usr/bin/file conftest.o` in
6463 case $lt_cv_prog_gnu_ld in
6467 LD="${LD-ld} -m elf_x86_64"
6470 LD="${LD-ld} -m elf64_sparc"
6473 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6474 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6479 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6491 need_locks="$enable_libtool_lock"
6493 if test -n "$ac_tool_prefix"; then
6494 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6495 set dummy ${ac_tool_prefix}mt; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6499 $as_echo_n "(cached) " >&6
6501 if test -n "$MANIFEST_TOOL"; then
6502 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6522 if test -n "$MANIFEST_TOOL"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6524 $as_echo "$MANIFEST_TOOL" >&6; }
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6532 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6533 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6534 # Extract the first word of "mt", so it can be a program name with args.
6535 set dummy mt; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6539 $as_echo_n "(cached) " >&6
6541 if test -n "$ac_ct_MANIFEST_TOOL"; then
6542 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6562 if test -n "$ac_ct_MANIFEST_TOOL"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6564 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6570 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6573 case $cross_compiling:$ac_tool_warned in
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6577 ac_tool_warned=yes ;;
6579 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6582 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6585 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6587 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6588 if ${lt_cv_path_mainfest_tool+:} false; then :
6589 $as_echo_n "(cached) " >&6
6591 lt_cv_path_mainfest_tool=no
6592 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6593 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6594 cat conftest.err >&5
6595 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6596 lt_cv_path_mainfest_tool=yes
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6601 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6602 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6612 rhapsody* | darwin*)
6613 if test -n "$ac_tool_prefix"; then
6614 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6615 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6619 $as_echo_n "(cached) " >&6
6621 if test -n "$DSYMUTIL"; then
6622 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6642 if test -n "$DSYMUTIL"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6644 $as_echo "$DSYMUTIL" >&6; }
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6652 if test -z "$ac_cv_prog_DSYMUTIL"; then
6653 ac_ct_DSYMUTIL=$DSYMUTIL
6654 # Extract the first word of "dsymutil", so it can be a program name with args.
6655 set dummy dsymutil; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6659 $as_echo_n "(cached) " >&6
6661 if test -n "$ac_ct_DSYMUTIL"; then
6662 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6682 if test -n "$ac_ct_DSYMUTIL"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6684 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6690 if test "x$ac_ct_DSYMUTIL" = x; then
6693 case $cross_compiling:$ac_tool_warned in
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697 ac_tool_warned=yes ;;
6699 DSYMUTIL=$ac_ct_DSYMUTIL
6702 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6705 if test -n "$ac_tool_prefix"; then
6706 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6707 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if ${ac_cv_prog_NMEDIT+:} false; then :
6711 $as_echo_n "(cached) " >&6
6713 if test -n "$NMEDIT"; then
6714 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 NMEDIT=$ac_cv_prog_NMEDIT
6734 if test -n "$NMEDIT"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6736 $as_echo "$NMEDIT" >&6; }
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6744 if test -z "$ac_cv_prog_NMEDIT"; then
6745 ac_ct_NMEDIT=$NMEDIT
6746 # Extract the first word of "nmedit", so it can be a program name with args.
6747 set dummy nmedit; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6751 $as_echo_n "(cached) " >&6
6753 if test -n "$ac_ct_NMEDIT"; then
6754 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6774 if test -n "$ac_ct_NMEDIT"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6776 $as_echo "$ac_ct_NMEDIT" >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6782 if test "x$ac_ct_NMEDIT" = x; then
6785 case $cross_compiling:$ac_tool_warned in
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6789 ac_tool_warned=yes ;;
6791 NMEDIT=$ac_ct_NMEDIT
6794 NMEDIT="$ac_cv_prog_NMEDIT"
6797 if test -n "$ac_tool_prefix"; then
6798 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6799 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_LIPO+:} false; then :
6803 $as_echo_n "(cached) " >&6
6805 if test -n "$LIPO"; then
6806 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 LIPO=$ac_cv_prog_LIPO
6826 if test -n "$LIPO"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6828 $as_echo "$LIPO" >&6; }
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6836 if test -z "$ac_cv_prog_LIPO"; then
6838 # Extract the first word of "lipo", so it can be a program name with args.
6839 set dummy lipo; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6843 $as_echo_n "(cached) " >&6
6845 if test -n "$ac_ct_LIPO"; then
6846 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855 ac_cv_prog_ac_ct_LIPO="lipo"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6866 if test -n "$ac_ct_LIPO"; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6868 $as_echo "$ac_ct_LIPO" >&6; }
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6874 if test "x$ac_ct_LIPO" = x; then
6877 case $cross_compiling:$ac_tool_warned in
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881 ac_tool_warned=yes ;;
6886 LIPO="$ac_cv_prog_LIPO"
6889 if test -n "$ac_tool_prefix"; then
6890 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6891 set dummy ${ac_tool_prefix}otool; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_prog_OTOOL+:} false; then :
6895 $as_echo_n "(cached) " >&6
6897 if test -n "$OTOOL"; then
6898 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 OTOOL=$ac_cv_prog_OTOOL
6918 if test -n "$OTOOL"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6920 $as_echo "$OTOOL" >&6; }
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6928 if test -z "$ac_cv_prog_OTOOL"; then
6930 # Extract the first word of "otool", so it can be a program name with args.
6931 set dummy otool; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6935 $as_echo_n "(cached) " >&6
6937 if test -n "$ac_ct_OTOOL"; then
6938 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947 ac_cv_prog_ac_ct_OTOOL="otool"
6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6958 if test -n "$ac_ct_OTOOL"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6960 $as_echo "$ac_ct_OTOOL" >&6; }
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6966 if test "x$ac_ct_OTOOL" = x; then
6969 case $cross_compiling:$ac_tool_warned in
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6973 ac_tool_warned=yes ;;
6978 OTOOL="$ac_cv_prog_OTOOL"
6981 if test -n "$ac_tool_prefix"; then
6982 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_OTOOL64+:} false; then :
6987 $as_echo_n "(cached) " >&6
6989 if test -n "$OTOOL64"; then
6990 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 OTOOL64=$ac_cv_prog_OTOOL64
7010 if test -n "$OTOOL64"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7012 $as_echo "$OTOOL64" >&6; }
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7020 if test -z "$ac_cv_prog_OTOOL64"; then
7021 ac_ct_OTOOL64=$OTOOL64
7022 # Extract the first word of "otool64", so it can be a program name with args.
7023 set dummy otool64; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7027 $as_echo_n "(cached) " >&6
7029 if test -n "$ac_ct_OTOOL64"; then
7030 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_ac_ct_OTOOL64="otool64"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7050 if test -n "$ac_ct_OTOOL64"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7052 $as_echo "$ac_ct_OTOOL64" >&6; }
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7058 if test "x$ac_ct_OTOOL64" = x; then
7061 case $cross_compiling:$ac_tool_warned in
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7065 ac_tool_warned=yes ;;
7067 OTOOL64=$ac_ct_OTOOL64
7070 OTOOL64="$ac_cv_prog_OTOOL64"
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7100 $as_echo_n "checking for -single_module linker flag... " >&6; }
7101 if ${lt_cv_apple_cc_single_mod+:} false; then :
7102 $as_echo_n "(cached) " >&6
7104 lt_cv_apple_cc_single_mod=no
7105 if test -z "${LT_MULTI_MODULE}"; then
7106 # By default we will add the -single_module flag. You can override
7107 # by either setting the environment variable LT_MULTI_MODULE
7108 # non-empty at configure time, or by adding -multi_module to the
7110 rm -rf libconftest.dylib*
7111 echo "int foo(void){return 1;}" > conftest.c
7112 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7113 -dynamiclib -Wl,-single_module conftest.c" >&5
7114 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7115 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7117 # If there is a non-empty error log, and "single_module"
7118 # appears in it, assume the flag caused a linker warning
7119 if test -s conftest.err && $GREP single_module conftest.err; then
7120 cat conftest.err >&5
7121 # Otherwise, if the output was created with a 0 exit code from
7122 # the compiler, it worked.
7123 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7124 lt_cv_apple_cc_single_mod=yes
7126 cat conftest.err >&5
7128 rm -rf libconftest.dylib*
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7133 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7136 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7137 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7138 $as_echo_n "(cached) " >&6
7140 lt_cv_ld_exported_symbols_list=no
7141 save_LDFLAGS=$LDFLAGS
7142 echo "_main" > conftest.sym
7143 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7155 if ac_fn_c_try_link "$LINENO"; then :
7156 lt_cv_ld_exported_symbols_list=yes
7158 lt_cv_ld_exported_symbols_list=no
7160 rm -f core conftest.err conftest.$ac_objext \
7161 conftest$ac_exeext conftest.$ac_ext
7162 LDFLAGS="$save_LDFLAGS"
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7166 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7169 $as_echo_n "checking for -force_load linker flag... " >&6; }
7170 if ${lt_cv_ld_force_load+:} false; then :
7171 $as_echo_n "(cached) " >&6
7173 lt_cv_ld_force_load=no
7174 cat > conftest.c << _LT_EOF
7175 int forced_loaded() { return 2;}
7177 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7178 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7179 echo "$AR cru libconftest.a conftest.o" >&5
7180 $AR cru libconftest.a conftest.o 2>&5
7181 echo "$RANLIB libconftest.a" >&5
7182 $RANLIB libconftest.a 2>&5
7183 cat > conftest.c << _LT_EOF
7184 int main() { return 0;}
7186 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7187 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7189 if test -s conftest.err && $GREP force_load conftest.err; then
7190 cat conftest.err >&5
7191 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7192 lt_cv_ld_force_load=yes
7194 cat conftest.err >&5
7196 rm -f conftest.err libconftest.a conftest conftest.c
7197 rm -rf conftest.dSYM
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7201 $as_echo "$lt_cv_ld_force_load" >&6; }
7203 rhapsody* | darwin1.[012])
7204 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7206 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7207 darwin*) # darwin 5.x on
7208 # if running on 10.5 or later, the deployment target defaults
7209 # to the OS version, if on x86, and 10.4, the deployment
7210 # target defaults to 10.4. Don't you love it?
7211 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7212 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7213 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7215 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7217 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7221 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7222 _lt_dar_single_mod='$single_module'
7224 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7225 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7227 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7229 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7230 _lt_dsymutil='~$DSYMUTIL $lib || :'
7238 ac_cpp='$CPP $CPPFLAGS'
7239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7243 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7244 # On Suns, sometimes $CPP names a directory.
7245 if test -n "$CPP" && test -d "$CPP"; then
7248 if test -z "$CPP"; then
7249 if ${ac_cv_prog_CPP+:} false; then :
7250 $as_echo_n "(cached) " >&6
7252 # Double quotes because CPP needs to be expanded
7253 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7256 for ac_c_preproc_warn_flag in '' yes
7258 # Use a header file that comes with gcc, so configuring glibc
7259 # with a fresh cross-compiler works.
7260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7261 # <limits.h> exists even on freestanding compilers.
7262 # On the NeXT, cc -E runs the code through the compiler's parser,
7263 # not just through cpp. "Syntax error" is here to catch this case.
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7267 # include <limits.h>
7269 # include <assert.h>
7273 if ac_fn_c_try_cpp "$LINENO"; then :
7276 # Broken: fails on valid input.
7279 rm -f conftest.err conftest.i conftest.$ac_ext
7281 # OK, works on sane cases. Now check whether nonexistent headers
7282 # can be detected and how.
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7285 #include <ac_nonexistent.h>
7287 if ac_fn_c_try_cpp "$LINENO"; then :
7288 # Broken: success on invalid input.
7291 # Passes both tests.
7295 rm -f conftest.err conftest.i conftest.$ac_ext
7298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7299 rm -f conftest.i conftest.err conftest.$ac_ext
7300 if $ac_preproc_ok; then :
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7313 $as_echo "$CPP" >&6; }
7315 for ac_c_preproc_warn_flag in '' yes
7317 # Use a header file that comes with gcc, so configuring glibc
7318 # with a fresh cross-compiler works.
7319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7320 # <limits.h> exists even on freestanding compilers.
7321 # On the NeXT, cc -E runs the code through the compiler's parser,
7322 # not just through cpp. "Syntax error" is here to catch this case.
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7326 # include <limits.h>
7328 # include <assert.h>
7332 if ac_fn_c_try_cpp "$LINENO"; then :
7335 # Broken: fails on valid input.
7338 rm -f conftest.err conftest.i conftest.$ac_ext
7340 # OK, works on sane cases. Now check whether nonexistent headers
7341 # can be detected and how.
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344 #include <ac_nonexistent.h>
7346 if ac_fn_c_try_cpp "$LINENO"; then :
7347 # Broken: success on invalid input.
7350 # Passes both tests.
7354 rm -f conftest.err conftest.i conftest.$ac_ext
7357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7358 rm -f conftest.i conftest.err conftest.$ac_ext
7359 if $ac_preproc_ok; then :
7362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7364 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7365 See \`config.log' for more details" "$LINENO" 5; }
7369 ac_cpp='$CPP $CPPFLAGS'
7370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7376 $as_echo_n "checking for ANSI C header files... " >&6; }
7377 if ${ac_cv_header_stdc+:} false; then :
7378 $as_echo_n "(cached) " >&6
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7395 if ac_fn_c_try_compile "$LINENO"; then :
7396 ac_cv_header_stdc=yes
7398 ac_cv_header_stdc=no
7400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402 if test $ac_cv_header_stdc = yes; then
7403 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7410 $EGREP "memchr" >/dev/null 2>&1; then :
7413 ac_cv_header_stdc=no
7419 if test $ac_cv_header_stdc = yes; then
7420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7427 $EGREP "free" >/dev/null 2>&1; then :
7430 ac_cv_header_stdc=no
7436 if test $ac_cv_header_stdc = yes; then
7437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7438 if test "$cross_compiling" = yes; then :
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7445 #if ((' ' & 0x0FF) == 0x020)
7446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7449 # define ISLOWER(c) \
7450 (('a' <= (c) && (c) <= 'i') \
7451 || ('j' <= (c) && (c) <= 'r') \
7452 || ('s' <= (c) && (c) <= 'z'))
7453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7461 for (i = 0; i < 256; i++)
7462 if (XOR (islower (i), ISLOWER (i))
7463 || toupper (i) != TOUPPER (i))
7468 if ac_fn_c_try_run "$LINENO"; then :
7471 ac_cv_header_stdc=no
7473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7474 conftest.$ac_objext conftest.beam conftest.$ac_ext
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7480 $as_echo "$ac_cv_header_stdc" >&6; }
7481 if test $ac_cv_header_stdc = yes; then
7483 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7487 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7488 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7489 inttypes.h stdint.h unistd.h
7491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7492 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7494 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7495 cat >>confdefs.h <<_ACEOF
7496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7504 for ac_header in dlfcn.h
7506 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7508 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7509 cat >>confdefs.h <<_ACEOF
7510 #define HAVE_DLFCN_H 1
7531 # Check whether --enable-shared was given.
7532 if test "${enable_shared+set}" = set; then :
7533 enableval=$enable_shared; p=${PACKAGE-default}
7535 yes) enable_shared=yes ;;
7536 no) enable_shared=no ;;
7539 # Look at the argument we got. We use all the common list separators.
7540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7541 for pkg in $enableval; do
7543 if test "X$pkg" = "X$p"; then
7564 # Check whether --with-pic was given.
7565 if test "${with_pic+set}" = set; then :
7566 withval=$with_pic; lt_p=${PACKAGE-default}
7568 yes|no) pic_mode=$withval ;;
7571 # Look at the argument we got. We use all the common list separators.
7572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7573 for lt_pkg in $withval; do
7575 if test "X$lt_pkg" = "X$lt_p"; then
7587 test -z "$pic_mode" && pic_mode=default
7595 # Check whether --enable-fast-install was given.
7596 if test "${enable_fast_install+set}" = set; then :
7597 enableval=$enable_fast_install; p=${PACKAGE-default}
7599 yes) enable_fast_install=yes ;;
7600 no) enable_fast_install=no ;;
7602 enable_fast_install=no
7603 # Look at the argument we got. We use all the common list separators.
7604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7605 for pkg in $enableval; do
7607 if test "X$pkg" = "X$p"; then
7608 enable_fast_install=yes
7615 enable_fast_install=yes
7628 # This can be used to rebuild libtool when needed
7629 LIBTOOL_DEPS="$ltmain"
7631 # Always use our own libtool.
7632 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7663 test -z "$LN_S" && LN_S="ln -s"
7678 if test -n "${ZSH_VERSION+set}" ; then
7679 setopt NO_GLOB_SUBST
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7683 $as_echo_n "checking for objdir... " >&6; }
7684 if ${lt_cv_objdir+:} false; then :
7685 $as_echo_n "(cached) " >&6
7687 rm -f .libs 2>/dev/null
7688 mkdir .libs 2>/dev/null
7689 if test -d .libs; then
7692 # MS-DOS does not allow filenames that begin with a dot.
7695 rmdir .libs 2>/dev/null
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7698 $as_echo "$lt_cv_objdir" >&6; }
7699 objdir=$lt_cv_objdir
7705 cat >>confdefs.h <<_ACEOF
7706 #define LT_OBJDIR "$lt_cv_objdir/"
7714 # AIX sometimes has problems with the GCC collect2 program. For some
7715 # reason, if we set the COLLECT_NAMES environment variable, the problems
7716 # vanish in a puff of smoke.
7717 if test "X${COLLECT_NAMES+set}" != Xset; then
7719 export COLLECT_NAMES
7726 can_build_shared=yes
7728 # All known linkers require a `.a' archive for static linking (except MSVC,
7729 # which needs '.lib').
7732 with_gnu_ld="$lt_cv_prog_gnu_ld"
7735 old_CFLAGS="$CFLAGS"
7737 # Set sane defaults for various variables
7738 test -z "$CC" && CC=cc
7739 test -z "$LTCC" && LTCC=$CC
7740 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7741 test -z "$LD" && LD=ld
7742 test -z "$ac_objext" && ac_objext=o
7744 for cc_temp in $compiler""; do
7746 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7747 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7752 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7755 # Only perform the check for file, if the check method requires it
7756 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7757 case $deplibs_check_method in
7759 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7761 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7762 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7763 $as_echo_n "(cached) " >&6
7767 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7770 lt_save_MAGIC_CMD="$MAGIC_CMD"
7771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7772 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7773 for ac_dir in $ac_dummy; do
7775 test -z "$ac_dir" && ac_dir=.
7776 if test -f $ac_dir/${ac_tool_prefix}file; then
7777 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7778 if test -n "$file_magic_test_file"; then
7779 case $deplibs_check_method in
7781 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7783 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7784 $EGREP "$file_magic_regex" > /dev/null; then
7789 *** Warning: the command libtool uses to detect shared libraries,
7790 *** $file_magic_cmd, produces output that libtool cannot recognize.
7791 *** The result is that libtool may fail to recognize shared libraries
7792 *** as such. This will affect the creation of libtool libraries that
7793 *** depend on shared libraries, but programs linked with such libtool
7794 *** libraries will work regardless of this problem. Nevertheless, you
7795 *** may want to report the problem to your system manager and/or to
7796 *** bug-libtool@gnu.org
7806 MAGIC_CMD="$lt_save_MAGIC_CMD"
7811 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7812 if test -n "$MAGIC_CMD"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7814 $as_echo "$MAGIC_CMD" >&6; }
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7824 if test -z "$lt_cv_path_MAGIC_CMD"; then
7825 if test -n "$ac_tool_prefix"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7827 $as_echo_n "checking for file... " >&6; }
7828 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7829 $as_echo_n "(cached) " >&6
7833 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7836 lt_save_MAGIC_CMD="$MAGIC_CMD"
7837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7838 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7839 for ac_dir in $ac_dummy; do
7841 test -z "$ac_dir" && ac_dir=.
7842 if test -f $ac_dir/file; then
7843 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7844 if test -n "$file_magic_test_file"; then
7845 case $deplibs_check_method in
7847 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7848 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7849 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7850 $EGREP "$file_magic_regex" > /dev/null; then
7855 *** Warning: the command libtool uses to detect shared libraries,
7856 *** $file_magic_cmd, produces output that libtool cannot recognize.
7857 *** The result is that libtool may fail to recognize shared libraries
7858 *** as such. This will affect the creation of libtool libraries that
7859 *** depend on shared libraries, but programs linked with such libtool
7860 *** libraries will work regardless of this problem. Nevertheless, you
7861 *** may want to report the problem to your system manager and/or to
7862 *** bug-libtool@gnu.org
7872 MAGIC_CMD="$lt_save_MAGIC_CMD"
7877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7878 if test -n "$MAGIC_CMD"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7880 $as_echo "$MAGIC_CMD" >&6; }
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883 $as_echo "no" >&6; }
7896 # Use C for the default configuration in the libtool script
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7906 # Source file extension for C test sources.
7909 # Object file extension for compiled C test sources.
7913 # Code to be used in simple compile tests
7914 lt_simple_compile_test_code="int some_variable = 0;"
7916 # Code to be used in simple link tests
7917 lt_simple_link_test_code='int main(){return(0);}'
7925 # If no C compiler was specified, use CC.
7928 # If no C compiler flags were specified, use CFLAGS.
7929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7931 # Allow CC to be a program name with arguments.
7934 # Save the default compiler, since it gets overwritten when the other
7935 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7936 compiler_DEFAULT=$CC
7938 # save warnings/boilerplate of simple test code
7939 ac_outfile=conftest.$ac_objext
7940 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7941 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7942 _lt_compiler_boilerplate=`cat conftest.err`
7945 ac_outfile=conftest.$ac_objext
7946 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7947 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7948 _lt_linker_boilerplate=`cat conftest.err`
7953 ## There is no encapsulation within the following macros, do not change
7954 ## the running order or otherwise move them around unless you know exactly
7955 ## what you are doing...
7956 if test -n "$compiler"; then
7958 lt_prog_compiler_no_builtin_flag=
7960 if test "$GCC" = yes; then
7961 case $cc_basename in
7963 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7965 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7969 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7970 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7971 $as_echo_n "(cached) " >&6
7973 lt_cv_prog_compiler_rtti_exceptions=no
7974 ac_outfile=conftest.$ac_objext
7975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7976 lt_compiler_flag="-fno-rtti -fno-exceptions"
7977 # Insert the option either (1) after the last *FLAGS variable, or
7978 # (2) before a word containing "conftest.", or (3) at the end.
7979 # Note that $ac_compile itself does not contain backslashes and begins
7980 # with a dollar sign (not a hyphen), so the echo should work correctly.
7981 # The option is referenced via a variable to avoid confusing sed.
7982 lt_compile=`echo "$ac_compile" | $SED \
7983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7985 -e 's:$: $lt_compiler_flag:'`
7986 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7987 (eval "$lt_compile" 2>conftest.err)
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 if (exit $ac_status) && test -s "$ac_outfile"; then
7992 # The compiler can only warn and ignore the option if not recognized
7993 # So say no if there are warnings other than the usual output.
7994 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7996 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7997 lt_cv_prog_compiler_rtti_exceptions=yes
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8004 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8006 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8007 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8019 lt_prog_compiler_wl=
8020 lt_prog_compiler_pic=
8021 lt_prog_compiler_static=
8024 if test "$GCC" = yes; then
8025 lt_prog_compiler_wl='-Wl,'
8026 lt_prog_compiler_static='-static'
8030 # All AIX code is PIC.
8031 if test "$host_cpu" = ia64; then
8032 # AIX 5 now supports IA64 processor
8033 lt_prog_compiler_static='-Bstatic'
8040 # see comment about AmigaOS4 .so support
8041 lt_prog_compiler_pic='-fPIC'
8044 # FIXME: we need at least 68020 code to build shared libraries, but
8045 # adding the `-m68020' flag to GCC prevents building anything better,
8047 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8052 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8053 # PIC is the default for these OSes.
8056 mingw* | cygwin* | pw32* | os2* | cegcc*)
8057 # This hack is so that the source file can tell whether it is being
8058 # built for inclusion in a dll (and should export symbols for example).
8059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8060 # (--disable-auto-import) libraries
8061 lt_prog_compiler_pic='-DDLL_EXPORT'
8064 darwin* | rhapsody*)
8065 # PIC is the default on this platform
8066 # Common symbols not allowed in MH_DYLIB files
8067 lt_prog_compiler_pic='-fno-common'
8071 # PIC is the default for Haiku.
8072 # The "-static" flag exists, but is broken.
8073 lt_prog_compiler_static=
8077 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8078 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8079 # sets the default TLS model and affects inlining.
8085 lt_prog_compiler_pic='-fPIC'
8091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8092 # Instead, we relocate shared libraries at runtime.
8096 # Just because we use GCC doesn't mean we suddenly get shared libraries
8097 # on systems that don't support them.
8098 lt_prog_compiler_can_build_shared=no
8103 # QNX uses GNU C++, but need to define -shared option too, otherwise
8105 lt_prog_compiler_pic='-fPIC -shared'
8109 if test -d /usr/nec; then
8110 lt_prog_compiler_pic=-Kconform_pic
8115 lt_prog_compiler_pic='-fPIC'
8119 case $cc_basename in
8120 nvcc*) # Cuda Compiler Driver 2.2
8121 lt_prog_compiler_wl='-Xlinker '
8122 if test -n "$lt_prog_compiler_pic"; then
8123 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8128 # PORTME Check for flag to pass linker flags through the system compiler.
8131 lt_prog_compiler_wl='-Wl,'
8132 if test "$host_cpu" = ia64; then
8133 # AIX 5 now supports IA64 processor
8134 lt_prog_compiler_static='-Bstatic'
8136 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8140 mingw* | cygwin* | pw32* | os2* | cegcc*)
8141 # This hack is so that the source file can tell whether it is being
8142 # built for inclusion in a dll (and should export symbols for example).
8143 lt_prog_compiler_pic='-DDLL_EXPORT'
8146 hpux9* | hpux10* | hpux11*)
8147 lt_prog_compiler_wl='-Wl,'
8148 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8155 lt_prog_compiler_pic='+Z'
8158 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8159 lt_prog_compiler_static='${wl}-a ${wl}archive'
8162 irix5* | irix6* | nonstopux*)
8163 lt_prog_compiler_wl='-Wl,'
8164 # PIC (with -KPIC) is the default.
8165 lt_prog_compiler_static='-non_shared'
8168 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8169 case $cc_basename in
8170 # old Intel for x86_64 which still supported -KPIC.
8172 lt_prog_compiler_wl='-Wl,'
8173 lt_prog_compiler_pic='-KPIC'
8174 lt_prog_compiler_static='-static'
8176 # icc used to be incompatible with GCC.
8177 # ICC 10 doesn't accept -KPIC any more.
8179 lt_prog_compiler_wl='-Wl,'
8180 lt_prog_compiler_pic='-fPIC'
8181 lt_prog_compiler_static='-static'
8183 # Lahey Fortran 8.1.
8185 lt_prog_compiler_wl='-Wl,'
8186 lt_prog_compiler_pic='--shared'
8187 lt_prog_compiler_static='--static'
8190 # NAG Fortran compiler
8191 lt_prog_compiler_wl='-Wl,-Wl,,'
8192 lt_prog_compiler_pic='-PIC'
8193 lt_prog_compiler_static='-Bstatic'
8195 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8196 # Portland Group compilers (*not* the Pentium gcc compiler,
8197 # which looks to be a dead project)
8198 lt_prog_compiler_wl='-Wl,'
8199 lt_prog_compiler_pic='-fpic'
8200 lt_prog_compiler_static='-Bstatic'
8203 lt_prog_compiler_wl='-Wl,'
8204 # All Alpha code is PIC.
8205 lt_prog_compiler_static='-non_shared'
8207 xl* | bgxl* | bgf* | mpixl*)
8208 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8209 lt_prog_compiler_wl='-Wl,'
8210 lt_prog_compiler_pic='-qpic'
8211 lt_prog_compiler_static='-qstaticlink'
8214 case `$CC -V 2>&1 | sed 5q` in
8215 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8216 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8217 lt_prog_compiler_pic='-KPIC'
8218 lt_prog_compiler_static='-Bstatic'
8219 lt_prog_compiler_wl=''
8221 *Sun\ F* | *Sun*Fortran*)
8222 lt_prog_compiler_pic='-KPIC'
8223 lt_prog_compiler_static='-Bstatic'
8224 lt_prog_compiler_wl='-Qoption ld '
8228 lt_prog_compiler_pic='-KPIC'
8229 lt_prog_compiler_static='-Bstatic'
8230 lt_prog_compiler_wl='-Wl,'
8232 *Intel*\ [CF]*Compiler*)
8233 lt_prog_compiler_wl='-Wl,'
8234 lt_prog_compiler_pic='-fPIC'
8235 lt_prog_compiler_static='-static'
8238 lt_prog_compiler_wl='-Wl,'
8239 lt_prog_compiler_pic='-fpic'
8240 lt_prog_compiler_static='-Bstatic'
8248 lt_prog_compiler_pic='-KPIC'
8249 lt_prog_compiler_static='-Bstatic'
8253 # QNX uses GNU C++, but need to define -shared option too, otherwise
8255 lt_prog_compiler_pic='-fPIC -shared'
8258 osf3* | osf4* | osf5*)
8259 lt_prog_compiler_wl='-Wl,'
8260 # All OSF/1 code is PIC.
8261 lt_prog_compiler_static='-non_shared'
8265 lt_prog_compiler_static='-non_shared'
8269 lt_prog_compiler_pic='-KPIC'
8270 lt_prog_compiler_static='-Bstatic'
8271 case $cc_basename in
8272 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8273 lt_prog_compiler_wl='-Qoption ld ';;
8275 lt_prog_compiler_wl='-Wl,';;
8280 lt_prog_compiler_wl='-Qoption ld '
8281 lt_prog_compiler_pic='-PIC'
8282 lt_prog_compiler_static='-Bstatic'
8285 sysv4 | sysv4.2uw2* | sysv4.3*)
8286 lt_prog_compiler_wl='-Wl,'
8287 lt_prog_compiler_pic='-KPIC'
8288 lt_prog_compiler_static='-Bstatic'
8292 if test -d /usr/nec ;then
8293 lt_prog_compiler_pic='-Kconform_pic'
8294 lt_prog_compiler_static='-Bstatic'
8298 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8299 lt_prog_compiler_wl='-Wl,'
8300 lt_prog_compiler_pic='-KPIC'
8301 lt_prog_compiler_static='-Bstatic'
8305 lt_prog_compiler_wl='-Wl,'
8306 lt_prog_compiler_can_build_shared=no
8310 lt_prog_compiler_pic='-pic'
8311 lt_prog_compiler_static='-Bstatic'
8315 lt_prog_compiler_can_build_shared=no
8321 # For platforms which do not support PIC, -DPIC is meaningless:
8323 lt_prog_compiler_pic=
8326 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8331 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8332 if ${lt_cv_prog_compiler_pic+:} false; then :
8333 $as_echo_n "(cached) " >&6
8335 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8338 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8339 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8342 # Check to make sure the PIC flag actually works.
8344 if test -n "$lt_prog_compiler_pic"; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8346 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8347 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8348 $as_echo_n "(cached) " >&6
8350 lt_cv_prog_compiler_pic_works=no
8351 ac_outfile=conftest.$ac_objext
8352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8353 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8354 # Insert the option either (1) after the last *FLAGS variable, or
8355 # (2) before a word containing "conftest.", or (3) at the end.
8356 # Note that $ac_compile itself does not contain backslashes and begins
8357 # with a dollar sign (not a hyphen), so the echo should work correctly.
8358 # The option is referenced via a variable to avoid confusing sed.
8359 lt_compile=`echo "$ac_compile" | $SED \
8360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8362 -e 's:$: $lt_compiler_flag:'`
8363 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8364 (eval "$lt_compile" 2>conftest.err)
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 if (exit $ac_status) && test -s "$ac_outfile"; then
8369 # The compiler can only warn and ignore the option if not recognized
8370 # So say no if there are warnings other than the usual output.
8371 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8373 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8374 lt_cv_prog_compiler_pic_works=yes
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8381 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8383 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8384 case $lt_prog_compiler_pic in
8386 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8389 lt_prog_compiler_pic=
8390 lt_prog_compiler_can_build_shared=no
8406 # Check to make sure the static flag actually works.
8408 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8410 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8411 if ${lt_cv_prog_compiler_static_works+:} false; then :
8412 $as_echo_n "(cached) " >&6
8414 lt_cv_prog_compiler_static_works=no
8415 save_LDFLAGS="$LDFLAGS"
8416 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8417 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8418 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8419 # The linker can only warn and ignore the option if not recognized
8420 # So say no if there are warnings
8421 if test -s conftest.err; then
8422 # Append any errors to the config.log.
8423 cat conftest.err 1>&5
8424 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8426 if diff conftest.exp conftest.er2 >/dev/null; then
8427 lt_cv_prog_compiler_static_works=yes
8430 lt_cv_prog_compiler_static_works=yes
8434 LDFLAGS="$save_LDFLAGS"
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8438 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8440 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8443 lt_prog_compiler_static=
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8453 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8454 if ${lt_cv_prog_compiler_c_o+:} false; then :
8455 $as_echo_n "(cached) " >&6
8457 lt_cv_prog_compiler_c_o=no
8458 $RM -r conftest 2>/dev/null
8462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8464 lt_compiler_flag="-o out/conftest2.$ac_objext"
8465 # Insert the option either (1) after the last *FLAGS variable, or
8466 # (2) before a word containing "conftest.", or (3) at the end.
8467 # Note that $ac_compile itself does not contain backslashes and begins
8468 # with a dollar sign (not a hyphen), so the echo should work correctly.
8469 lt_compile=`echo "$ac_compile" | $SED \
8470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8472 -e 's:$: $lt_compiler_flag:'`
8473 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8474 (eval "$lt_compile" 2>out/conftest.err)
8476 cat out/conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8480 # The compiler can only warn and ignore the option if not recognized
8481 # So say no if there are warnings
8482 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8483 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8484 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8485 lt_cv_prog_compiler_c_o=yes
8490 # SGI C++ compiler will create directory out/ii_files/ for
8491 # template instantiation
8492 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8493 $RM out/* && rmdir out
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8500 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8508 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8509 if ${lt_cv_prog_compiler_c_o+:} false; then :
8510 $as_echo_n "(cached) " >&6
8512 lt_cv_prog_compiler_c_o=no
8513 $RM -r conftest 2>/dev/null
8517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8519 lt_compiler_flag="-o out/conftest2.$ac_objext"
8520 # Insert the option either (1) after the last *FLAGS variable, or
8521 # (2) before a word containing "conftest.", or (3) at the end.
8522 # Note that $ac_compile itself does not contain backslashes and begins
8523 # with a dollar sign (not a hyphen), so the echo should work correctly.
8524 lt_compile=`echo "$ac_compile" | $SED \
8525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8527 -e 's:$: $lt_compiler_flag:'`
8528 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8529 (eval "$lt_compile" 2>out/conftest.err)
8531 cat out/conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8535 # The compiler can only warn and ignore the option if not recognized
8536 # So say no if there are warnings
8537 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8538 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8539 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8540 lt_cv_prog_compiler_c_o=yes
8545 # SGI C++ compiler will create directory out/ii_files/ for
8546 # template instantiation
8547 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8548 $RM out/* && rmdir out
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8555 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8560 hard_links="nottested"
8561 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8562 # do not overwrite the value of need_locks provided by the user
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8564 $as_echo_n "checking if we can lock with hard links... " >&6; }
8567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8569 ln conftest.a conftest.b 2>&5 || hard_links=no
8570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8572 $as_echo "$hard_links" >&6; }
8573 if test "$hard_links" = no; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8575 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8588 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8591 allow_undefined_flag=
8592 always_export_symbols=no
8594 archive_expsym_cmds=
8595 compiler_needs_object=no
8596 enable_shared_with_static_runtimes=no
8597 export_dynamic_flag_spec=
8598 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8599 hardcode_automatic=no
8601 hardcode_direct_absolute=no
8602 hardcode_libdir_flag_spec=
8603 hardcode_libdir_separator=
8605 hardcode_shlibpath_var=unsupported
8607 link_all_deplibs=unknown
8610 old_archive_from_new_cmds=
8611 old_archive_from_expsyms_cmds=
8612 thread_safe_flag_spec=
8613 whole_archive_flag_spec=
8614 # include_expsyms should be a list of space-separated symbols to be *always*
8615 # included in the symbol list
8617 # exclude_expsyms can be an extended regexp of symbols to exclude
8618 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8619 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8620 # as well as any symbol that contains `d'.
8621 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8622 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8623 # platforms (ab)use it in PIC code, but their linkers get confused if
8624 # the symbol is explicitly referenced. Since portable code cannot
8625 # rely on this symbol name, it's probably fine to never include it in
8626 # preloaded symbol tables.
8627 # Exclude shared library initialization/finalization symbols.
8628 extract_expsyms_cmds=
8631 cygwin* | mingw* | pw32* | cegcc*)
8632 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8633 # When not using gcc, we currently assume that we are using
8634 # Microsoft Visual C++.
8635 if test "$GCC" != yes; then
8640 # we just hope/assume this is gcc and not c89 (= MSVC++)
8650 # On some targets, GNU ld is compatible enough with the native linker
8651 # that we're better off using the native interface for both.
8652 lt_use_gnu_ld_interface=no
8653 if test "$with_gnu_ld" = yes; then
8656 # The AIX port of GNU ld has always aspired to compatibility
8657 # with the native linker. However, as the warning in the GNU ld
8658 # block says, versions before 2.19.5* couldn't really create working
8659 # shared libraries, regardless of the interface used.
8660 case `$LD -v 2>&1` in
8661 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8662 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8663 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8665 lt_use_gnu_ld_interface=yes
8670 lt_use_gnu_ld_interface=yes
8675 if test "$lt_use_gnu_ld_interface" = yes; then
8676 # If archive_cmds runs LD, not CC, wlarc should be empty
8679 # Set some defaults for GNU ld with shared library support. These
8680 # are reset later if shared libraries are not supported. Putting them
8681 # here allows them to be overridden if necessary.
8682 runpath_var=LD_RUN_PATH
8683 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8684 export_dynamic_flag_spec='${wl}--export-dynamic'
8685 # ancient GNU ld didn't support --whole-archive et. al.
8686 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8687 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8689 whole_archive_flag_spec=
8691 supports_anon_versioning=no
8692 case `$LD -v 2>&1` in
8693 *GNU\ gold*) supports_anon_versioning=yes ;;
8694 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8695 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8696 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8697 *\ 2.11.*) ;; # other 2.11 versions
8698 *) supports_anon_versioning=yes ;;
8701 # See if GNU ld supports shared libraries.
8704 # On AIX/PPC, the GNU linker is very broken
8705 if test "$host_cpu" != ia64; then
8709 *** Warning: the GNU linker, at least up to release 2.19, is reported
8710 *** to be unable to reliably create shared libraries on AIX.
8711 *** Therefore, libtool is disabling shared libraries support. If you
8712 *** really care for shared libraries, you may want to install binutils
8713 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8714 *** You will then need to restart the configuration process.
8723 # see comment about AmigaOS4 .so support
8724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725 archive_expsym_cmds=''
8728 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)'
8729 hardcode_libdir_flag_spec='-L$libdir'
8730 hardcode_minus_L=yes
8736 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8737 allow_undefined_flag=unsupported
8738 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8739 # support --undefined. This deserves some investigation. FIXME
8740 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746 cygwin* | mingw* | pw32* | cegcc*)
8747 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8748 # as there is no search path for DLLs.
8749 hardcode_libdir_flag_spec='-L$libdir'
8750 export_dynamic_flag_spec='${wl}--export-all-symbols'
8751 allow_undefined_flag=unsupported
8752 always_export_symbols=no
8753 enable_shared_with_static_runtimes=yes
8754 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'
8755 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8757 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8759 # If the export-symbols file already is a .def file (1st line
8760 # is EXPORTS), use it as is; otherwise, prepend...
8761 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8762 cp $export_symbols $output_objdir/$soname.def;
8764 echo EXPORTS > $output_objdir/$soname.def;
8765 cat $export_symbols >> $output_objdir/$soname.def;
8767 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8775 link_all_deplibs=yes
8780 hardcode_shlibpath_var=no
8781 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8782 export_dynamic_flag_spec='${wl}-E'
8783 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8784 # Instead, shared libraries are loaded at an image base (0x10000000 by
8785 # default) and relocated if they conflict, which is a slow very memory
8786 # consuming and fragmenting process. To avoid this, we pick a random,
8787 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8788 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8789 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8790 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'
8793 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8795 if test "$host_os" = linux-dietlibc; then
8796 case $cc_basename in
8797 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8800 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8801 && test "$tmp_diet" = no
8803 tmp_addflag=' $pic_flag'
8804 tmp_sharedflag='-shared'
8805 case $cc_basename,$host_cpu in
8806 pgcc*) # Portland Group C compiler
8807 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'
8808 tmp_addflag=' $pic_flag'
8810 pgf77* | pgf90* | pgf95* | pgfortran*)
8811 # Portland Group f77 and f90 compilers
8812 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'
8813 tmp_addflag=' $pic_flag -Mnomain' ;;
8814 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8815 tmp_addflag=' -i_dynamic' ;;
8816 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8817 tmp_addflag=' -i_dynamic -nofor_main' ;;
8818 ifc* | ifort*) # Intel Fortran compiler
8819 tmp_addflag=' -nofor_main' ;;
8820 lf95*) # Lahey Fortran 8.1
8821 whole_archive_flag_spec=
8822 tmp_sharedflag='--shared' ;;
8823 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8824 tmp_sharedflag='-qmkshrobj'
8826 nvcc*) # Cuda Compiler Driver 2.2
8827 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'
8828 compiler_needs_object=yes
8831 case `$CC -V 2>&1 | sed 5q` in
8832 *Sun\ C*) # Sun C 5.9
8833 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'
8834 compiler_needs_object=yes
8835 tmp_sharedflag='-G' ;;
8836 *Sun\ F*) # Sun Fortran 8.3
8837 tmp_sharedflag='-G' ;;
8839 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8841 if test "x$supports_anon_versioning" = xyes; then
8842 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8843 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8844 echo "local: *; };" >> $output_objdir/$libname.ver~
8845 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8848 case $cc_basename in
8849 xlf* | bgf* | bgxlf* | mpixlf*)
8850 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8851 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8853 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8854 if test "x$supports_anon_versioning" = xyes; then
8855 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8857 echo "local: *; };" >> $output_objdir/$libname.ver~
8858 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8869 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8872 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8878 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8882 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8883 *** create shared libraries on Solaris systems. Therefore, libtool
8884 *** is disabling shared libraries support. We urge you to upgrade GNU
8885 *** binutils to release 2.9.1 or newer. Another option is to modify
8886 *** your PATH or compiler configuration so that the native linker is
8887 *** used, and then restart.
8890 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8891 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8899 case `$LD -v 2>&1` in
8900 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8904 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8905 *** reliably create shared libraries on SCO systems. Therefore, libtool
8906 *** is disabling shared libraries support. We urge you to upgrade GNU
8907 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8908 *** your PATH or compiler configuration so that the native linker is
8909 *** used, and then restart.
8914 # For security reasons, it is highly recommended that you always
8915 # use absolute paths for naming shared libraries, and exclude the
8916 # DT_RUNPATH tag from executables and libraries. But doing so
8917 # requires that you compile everything twice, which is a pain.
8918 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8930 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_shlibpath_var=no
8937 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8938 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8946 if test "$ld_shlibs" = no; then
8948 hardcode_libdir_flag_spec=
8949 export_dynamic_flag_spec=
8950 whole_archive_flag_spec=
8953 # PORTME fill in a description of your system's linker (not GNU ld)
8956 allow_undefined_flag=unsupported
8957 always_export_symbols=yes
8958 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'
8959 # Note: this linker hardcodes the directories in LIBPATH if there
8960 # are no directories specified by -L.
8961 hardcode_minus_L=yes
8962 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8963 # Neither direct hardcoding nor static linking is supported with a
8965 hardcode_direct=unsupported
8970 if test "$host_cpu" = ia64; then
8971 # On IA64, the linker does run time linking by default, so we don't
8972 # have to do anything special.
8973 aix_use_runtimelinking=no
8974 exp_sym_flag='-Bexport'
8977 # If we're using GNU nm, then we don't want the "-C" option.
8978 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8979 # Also, AIX nm treats weak defined symbols like other global
8980 # defined symbols, whereas GNU nm marks them as "W".
8981 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8982 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'
8984 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'
8986 aix_use_runtimelinking=no
8988 # Test if we are trying to use run time linking or normal
8989 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8990 # need to do runtime linking.
8991 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8992 for ld_flag in $LDFLAGS; do
8993 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8994 aix_use_runtimelinking=yes
9001 exp_sym_flag='-bexport'
9002 no_entry_flag='-bnoentry'
9005 # When large executables or shared objects are built, AIX ld can
9006 # have problems creating the table of contents. If linking a library
9007 # or program results in "error TOC overflow" add -mminimal-toc to
9008 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9009 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9013 hardcode_direct_absolute=yes
9014 hardcode_libdir_separator=':'
9015 link_all_deplibs=yes
9016 file_list_spec='${wl}-f,'
9018 if test "$GCC" = yes; then
9019 case $host_os in aix4.[012]|aix4.[012].*)
9020 # We only want to do this on AIX 4.2 and lower, the check
9021 # below for broken collect2 doesn't work under 4.3+
9022 collect2name=`${CC} -print-prog-name=collect2`
9023 if test -f "$collect2name" &&
9024 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9026 # We have reworked collect2
9029 # We have old collect2
9030 hardcode_direct=unsupported
9031 # It fails to find uninstalled libraries when the uninstalled
9032 # path is not listed in the libpath. Setting hardcode_minus_L
9033 # to unsupported forces relinking
9034 hardcode_minus_L=yes
9035 hardcode_libdir_flag_spec='-L$libdir'
9036 hardcode_libdir_separator=
9040 shared_flag='-shared'
9041 if test "$aix_use_runtimelinking" = yes; then
9042 shared_flag="$shared_flag "'${wl}-G'
9046 if test "$host_cpu" = ia64; then
9047 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9048 # chokes on -Wl,-G. The following line is correct:
9051 if test "$aix_use_runtimelinking" = yes; then
9052 shared_flag='${wl}-G'
9054 shared_flag='${wl}-bM:SRE'
9059 export_dynamic_flag_spec='${wl}-bexpall'
9060 # It seems that -bexpall does not export symbols beginning with
9061 # underscore (_), so it is better to generate a list of symbols to export.
9062 always_export_symbols=yes
9063 if test "$aix_use_runtimelinking" = yes; then
9064 # Warning - without using the other runtime loading flags (-brtl),
9065 # -berok will link without error, but may produce a broken library.
9066 allow_undefined_flag='-berok'
9067 # Determine the default libpath from the value encoded in an
9069 if test "${lt_cv_aix_libpath+set}" = set; then
9070 aix_libpath=$lt_cv_aix_libpath
9072 if ${lt_cv_aix_libpath_+:} false; then :
9073 $as_echo_n "(cached) " >&6
9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9086 if ac_fn_c_try_link "$LINENO"; then :
9088 lt_aix_libpath_sed='
9089 /Import File Strings/,/^$/ {
9091 s/^0 *\([^ ]*\) *$/\1/
9095 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9096 # Check for a 64-bit object if we didn't find anything.
9097 if test -z "$lt_cv_aix_libpath_"; then
9098 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9101 rm -f core conftest.err conftest.$ac_objext \
9102 conftest$ac_exeext conftest.$ac_ext
9103 if test -z "$lt_cv_aix_libpath_"; then
9104 lt_cv_aix_libpath_="/usr/lib:/lib"
9109 aix_libpath=$lt_cv_aix_libpath_
9112 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9113 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"
9115 if test "$host_cpu" = ia64; then
9116 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9117 allow_undefined_flag="-z nodefs"
9118 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"
9120 # Determine the default libpath from the value encoded in an
9122 if test "${lt_cv_aix_libpath+set}" = set; then
9123 aix_libpath=$lt_cv_aix_libpath
9125 if ${lt_cv_aix_libpath_+:} false; then :
9126 $as_echo_n "(cached) " >&6
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9139 if ac_fn_c_try_link "$LINENO"; then :
9141 lt_aix_libpath_sed='
9142 /Import File Strings/,/^$/ {
9144 s/^0 *\([^ ]*\) *$/\1/
9148 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9149 # Check for a 64-bit object if we didn't find anything.
9150 if test -z "$lt_cv_aix_libpath_"; then
9151 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9154 rm -f core conftest.err conftest.$ac_objext \
9155 conftest$ac_exeext conftest.$ac_ext
9156 if test -z "$lt_cv_aix_libpath_"; then
9157 lt_cv_aix_libpath_="/usr/lib:/lib"
9162 aix_libpath=$lt_cv_aix_libpath_
9165 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9166 # Warning - without using the other run time loading flags,
9167 # -berok will link without error, but may produce a broken library.
9168 no_undefined_flag=' ${wl}-bernotok'
9169 allow_undefined_flag=' ${wl}-berok'
9170 if test "$with_gnu_ld" = yes; then
9171 # We only use this code for GNU lds that support --whole-archive.
9172 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9174 # Exported symbols can be pulled into shared objects from archives
9175 whole_archive_flag_spec='$convenience'
9177 archive_cmds_need_lc=yes
9178 # This is similar to how AIX traditionally builds its shared libraries.
9179 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'
9187 # see comment about AmigaOS4 .so support
9188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9189 archive_expsym_cmds=''
9192 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)'
9193 hardcode_libdir_flag_spec='-L$libdir'
9194 hardcode_minus_L=yes
9200 export_dynamic_flag_spec=-rdynamic
9203 cygwin* | mingw* | pw32* | cegcc*)
9204 # When not using gcc, we currently assume that we are using
9205 # Microsoft Visual C++.
9206 # hardcode_libdir_flag_spec is actually meaningless, as there is
9207 # no search path for DLLs.
9208 case $cc_basename in
9211 hardcode_libdir_flag_spec=' '
9212 allow_undefined_flag=unsupported
9213 always_export_symbols=yes
9215 # Tell ltmain to make .lib files, not .a files.
9217 # Tell ltmain to make .dll files, not .so files.
9219 # FIXME: Setting linknames here is a bad hack.
9220 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9221 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9222 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9224 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9226 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9228 # The linker will not automatically build a static lib if we build a DLL.
9229 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9230 enable_shared_with_static_runtimes=yes
9231 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9232 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9234 old_postinstall_cmds='chmod 644 $oldlib'
9235 postlink_cmds='lt_outputfile="@OUTPUT@"~
9236 lt_tool_outputfile="@TOOL_OUTPUT@"~
9237 case $lt_outputfile in
9240 lt_outputfile="$lt_outputfile.exe"
9241 lt_tool_outputfile="$lt_tool_outputfile.exe"
9244 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9245 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9246 $RM "$lt_outputfile.manifest";
9250 # Assume MSVC wrapper
9251 hardcode_libdir_flag_spec=' '
9252 allow_undefined_flag=unsupported
9253 # Tell ltmain to make .lib files, not .a files.
9255 # Tell ltmain to make .dll files, not .so files.
9257 # FIXME: Setting linknames here is a bad hack.
9258 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9259 # The linker will automatically build a .lib file if we build a DLL.
9260 old_archive_from_new_cmds='true'
9261 # FIXME: Should let the user specify the lib program.
9262 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9263 enable_shared_with_static_runtimes=yes
9268 darwin* | rhapsody*)
9271 archive_cmds_need_lc=no
9273 hardcode_automatic=yes
9274 hardcode_shlibpath_var=unsupported
9275 if test "$lt_cv_ld_force_load" = "yes"; then
9276 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\"`'
9279 whole_archive_flag_spec=''
9281 link_all_deplibs=yes
9282 allow_undefined_flag="$_lt_dar_allow_undefined"
9283 case $cc_basename in
9284 ifort*) _lt_dar_can_shared=yes ;;
9285 *) _lt_dar_can_shared=$GCC ;;
9287 if test "$_lt_dar_can_shared" = "yes"; then
9288 output_verbose_link_cmd=func_echo_all
9289 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9290 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9291 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}"
9292 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}"
9301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9302 hardcode_libdir_flag_spec='-L$libdir'
9303 hardcode_shlibpath_var=no
9306 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9307 # support. Future versions do this automatically, but an explicit c++rt0.o
9308 # does not break anything, and helps significantly (at the cost of a little
9311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9312 hardcode_libdir_flag_spec='-R$libdir'
9314 hardcode_shlibpath_var=no
9317 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_minus_L=yes
9322 hardcode_shlibpath_var=no
9325 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9326 freebsd* | dragonfly*)
9327 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9328 hardcode_libdir_flag_spec='-R$libdir'
9330 hardcode_shlibpath_var=no
9334 if test "$GCC" = yes; then
9335 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'
9337 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'
9339 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9340 hardcode_libdir_separator=:
9343 # hardcode_minus_L: Not really in the search PATH,
9344 # but as the default location of the library.
9345 hardcode_minus_L=yes
9346 export_dynamic_flag_spec='${wl}-E'
9350 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9351 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9353 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9355 if test "$with_gnu_ld" = no; then
9356 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9357 hardcode_libdir_separator=:
9359 hardcode_direct_absolute=yes
9360 export_dynamic_flag_spec='${wl}-E'
9361 # hardcode_minus_L: Not really in the search PATH,
9362 # but as the default location of the library.
9363 hardcode_minus_L=yes
9368 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9371 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9374 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9377 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9383 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9386 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9390 # Older versions of the 11.00 compiler do not understand -b yet
9391 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9393 $as_echo_n "checking if $CC understands -b... " >&6; }
9394 if ${lt_cv_prog_compiler__b+:} false; then :
9395 $as_echo_n "(cached) " >&6
9397 lt_cv_prog_compiler__b=no
9398 save_LDFLAGS="$LDFLAGS"
9399 LDFLAGS="$LDFLAGS -b"
9400 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9401 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9402 # The linker can only warn and ignore the option if not recognized
9403 # So say no if there are warnings
9404 if test -s conftest.err; then
9405 # Append any errors to the config.log.
9406 cat conftest.err 1>&5
9407 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9409 if diff conftest.exp conftest.er2 >/dev/null; then
9410 lt_cv_prog_compiler__b=yes
9413 lt_cv_prog_compiler__b=yes
9417 LDFLAGS="$save_LDFLAGS"
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9421 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9423 if test x"$lt_cv_prog_compiler__b" = xyes; then
9424 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9426 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9432 if test "$with_gnu_ld" = no; then
9433 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9434 hardcode_libdir_separator=:
9439 hardcode_shlibpath_var=no
9443 hardcode_direct_absolute=yes
9444 export_dynamic_flag_spec='${wl}-E'
9446 # hardcode_minus_L: Not really in the search PATH,
9447 # but as the default location of the library.
9448 hardcode_minus_L=yes
9454 irix5* | irix6* | nonstopux*)
9455 if test "$GCC" = yes; then
9456 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'
9457 # Try to use the -exported_symbol ld option, if it does not
9458 # work, assume that -exports_file does not work either and
9459 # implicitly export all symbols.
9460 # This should be the same for all languages, so no per-tag cache variable.
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9462 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9463 if ${lt_cv_irix_exported_symbol+:} false; then :
9464 $as_echo_n "(cached) " >&6
9466 save_LDFLAGS="$LDFLAGS"
9467 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470 int foo (void) { return 0; }
9472 if ac_fn_c_try_link "$LINENO"; then :
9473 lt_cv_irix_exported_symbol=yes
9475 lt_cv_irix_exported_symbol=no
9477 rm -f core conftest.err conftest.$ac_objext \
9478 conftest$ac_exeext conftest.$ac_ext
9479 LDFLAGS="$save_LDFLAGS"
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9482 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9483 if test "$lt_cv_irix_exported_symbol" = yes; then
9484 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'
9487 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'
9488 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'
9490 archive_cmds_need_lc='no'
9491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9492 hardcode_libdir_separator=:
9494 link_all_deplibs=yes
9498 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9499 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9501 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9503 hardcode_libdir_flag_spec='-R$libdir'
9505 hardcode_shlibpath_var=no
9509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9512 hardcode_libdir_separator=:
9513 hardcode_shlibpath_var=no
9520 if test -f /usr/libexec/ld.so; then
9522 hardcode_shlibpath_var=no
9523 hardcode_direct_absolute=yes
9524 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9525 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9526 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9527 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9528 export_dynamic_flag_spec='${wl}-E'
9531 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9533 hardcode_libdir_flag_spec='-R$libdir'
9536 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9537 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9547 hardcode_libdir_flag_spec='-L$libdir'
9548 hardcode_minus_L=yes
9549 allow_undefined_flag=unsupported
9550 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'
9551 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9555 if test "$GCC" = yes; then
9556 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9557 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'
9559 allow_undefined_flag=' -expect_unresolved \*'
9560 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'
9562 archive_cmds_need_lc='no'
9563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9564 hardcode_libdir_separator=:
9567 osf4* | osf5*) # as osf3* with the addition of -msym flag
9568 if test "$GCC" = yes; then
9569 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9570 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'
9571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9573 allow_undefined_flag=' -expect_unresolved \*'
9574 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'
9575 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~
9576 $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'
9578 # Both c and cxx compiler support -rpath directly
9579 hardcode_libdir_flag_spec='-rpath $libdir'
9581 archive_cmds_need_lc='no'
9582 hardcode_libdir_separator=:
9586 no_undefined_flag=' -z defs'
9587 if test "$GCC" = yes; then
9589 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9590 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9591 $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'
9593 case `$CC -V 2>&1` in
9596 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9597 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9598 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9602 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9603 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9604 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9608 hardcode_libdir_flag_spec='-R$libdir'
9609 hardcode_shlibpath_var=no
9611 solaris2.[0-5] | solaris2.[0-5].*) ;;
9613 # The compiler driver will combine and reorder linker options,
9614 # but understands `-z linker_flag'. GCC discards it without `$wl',
9615 # but is careful enough not to reorder.
9616 # Supported since Solaris 2.6 (maybe 2.5.1?)
9617 if test "$GCC" = yes; then
9618 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9620 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9624 link_all_deplibs=yes
9628 if test "x$host_vendor" = xsequent; then
9629 # Use $CC to link under sequent, because it throws in some extra .o
9630 # files that make .init and .fini sections work.
9631 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9633 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9635 hardcode_libdir_flag_spec='-L$libdir'
9637 hardcode_minus_L=yes
9638 hardcode_shlibpath_var=no
9642 case $host_vendor in
9644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9645 hardcode_direct=yes # is this really true???
9648 ## LD is ld it makes a PLAMLIB
9649 ## CC just makes a GrossModule.
9650 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9651 reload_cmds='$CC -r -o $output$reload_objs'
9655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9656 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9659 runpath_var='LD_RUN_PATH'
9660 hardcode_shlibpath_var=no
9664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665 hardcode_shlibpath_var=no
9666 export_dynamic_flag_spec='-Bexport'
9670 if test -d /usr/nec; then
9671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9672 hardcode_shlibpath_var=no
9673 runpath_var=LD_RUN_PATH
9674 hardcode_runpath_var=yes
9679 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9680 no_undefined_flag='${wl}-z,text'
9681 archive_cmds_need_lc=no
9682 hardcode_shlibpath_var=no
9683 runpath_var='LD_RUN_PATH'
9685 if test "$GCC" = yes; then
9686 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9687 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9689 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 sysv5* | sco3.2v5* | sco5v6*)
9695 # Note: We can NOT use -z defs as we might desire, because we do not
9696 # link with -lc, and that would cause any symbols used from libc to
9697 # always be unresolved, which means just about no library would
9698 # ever link correctly. If we're not using GNU ld we use -z text
9699 # though, which does catch some bad symbols but isn't as heavy-handed
9701 no_undefined_flag='${wl}-z,text'
9702 allow_undefined_flag='${wl}-z,nodefs'
9703 archive_cmds_need_lc=no
9704 hardcode_shlibpath_var=no
9705 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9706 hardcode_libdir_separator=':'
9707 link_all_deplibs=yes
9708 export_dynamic_flag_spec='${wl}-Bexport'
9709 runpath_var='LD_RUN_PATH'
9711 if test "$GCC" = yes; then
9712 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9715 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722 hardcode_libdir_flag_spec='-L$libdir'
9723 hardcode_shlibpath_var=no
9731 if test x$host_vendor = xsni; then
9733 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9734 export_dynamic_flag_spec='${wl}-Blargedynsym'
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9741 $as_echo "$ld_shlibs" >&6; }
9742 test "$ld_shlibs" = no && can_build_shared=no
9744 with_gnu_ld=$with_gnu_ld
9761 # Do we need to explicitly link libc?
9763 case "x$archive_cmds_need_lc" in
9765 # Assume -lc should be added
9766 archive_cmds_need_lc=yes
9768 if test "$enable_shared" = yes && test "$GCC" = yes; then
9769 case $archive_cmds in
9771 # FIXME: we may have to deal with multi-command sequences.
9774 # Test whether the compiler implicitly links with -lc since on some
9775 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9776 # to ld, don't add -lc before -lgcc.
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9778 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9779 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9780 $as_echo_n "(cached) " >&6
9783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9786 (eval $ac_compile) 2>&5
9788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9789 test $ac_status = 0; } 2>conftest.err; then
9792 libobjs=conftest.$ac_objext
9794 wl=$lt_prog_compiler_wl
9795 pic_flag=$lt_prog_compiler_pic
9801 lt_save_allow_undefined_flag=$allow_undefined_flag
9802 allow_undefined_flag=
9803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9804 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9807 test $ac_status = 0; }
9809 lt_cv_archive_cmds_need_lc=no
9811 lt_cv_archive_cmds_need_lc=yes
9813 allow_undefined_flag=$lt_save_allow_undefined_flag
9815 cat conftest.err 1>&5
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9821 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9822 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9981 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9983 if test "$GCC" = yes; then
9985 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9986 *) lt_awk_arg="/^libraries:/" ;;
9989 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9990 *) lt_sed_strip_eq="s,=/,/,g" ;;
9992 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9993 case $lt_search_path_spec in
9995 # if the path contains ";" then we assume it to be the separator
9996 # otherwise default to the standard path separator (i.e. ":") - it is
9997 # assumed that no part of a normal pathname contains ";" but that should
9998 # okay in the real world where ";" in dirpaths is itself problematic.
9999 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10002 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10005 # Ok, now we have the path, separated by spaces, we can step through it
10006 # and add multilib dir if necessary.
10007 lt_tmp_lt_search_path_spec=
10008 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10009 for lt_sys_path in $lt_search_path_spec; do
10010 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10011 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10013 test -d "$lt_sys_path" && \
10014 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10017 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10018 BEGIN {RS=" "; FS="/|\n";} {
10021 for (lt_i = NF; lt_i > 0; lt_i--) {
10022 if ($lt_i != "" && $lt_i != ".") {
10023 if ($lt_i == "..") {
10026 if (lt_count == 0) {
10027 lt_foo="/" $lt_i lt_foo;
10034 if (lt_foo != "") { lt_freq[lt_foo]++; }
10035 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10037 # AWK program above erroneously prepends '/' to C:/dos/paths
10040 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10041 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10043 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10047 library_names_spec=
10048 libname_spec='lib$name'
10052 postuninstall_cmds=
10056 shlibpath_overrides_runpath=unknown
10058 dynamic_linker="$host_os ld.so"
10059 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10060 need_lib_prefix=unknown
10061 hardcode_into_libs=no
10063 # when you set need_version to no, make sure it does not cause -set_version
10064 # flags to be left without arguments
10065 need_version=unknown
10069 version_type=linux # correct to gnu/linux during the next big refactor
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10071 shlibpath_var=LIBPATH
10073 # AIX 3 has no versioning support, so we append a major version to the name.
10074 soname_spec='${libname}${release}${shared_ext}$major'
10078 version_type=linux # correct to gnu/linux during the next big refactor
10081 hardcode_into_libs=yes
10082 if test "$host_cpu" = ia64; then
10083 # AIX 5 supports IA64
10084 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10085 shlibpath_var=LD_LIBRARY_PATH
10087 # With GCC up to 2.95.x, collect2 would create an import file
10088 # for dependence libraries. The import file would start with
10089 # the line `#! .'. This would cause the generated library to
10090 # depend on `.', always an invalid library. This was fixed in
10091 # development snapshots of GCC prior to 3.0.
10093 aix4 | aix4.[01] | aix4.[01].*)
10094 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10096 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10099 can_build_shared=no
10103 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10104 # soname into executable. Probably we can add versioning support to
10105 # collect2, so additional links can be useful in future.
10106 if test "$aix_use_runtimelinking" = yes; then
10107 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10108 # instead of lib<name>.a to let people know that these are not
10109 # typical AIX shared libraries.
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112 # We preserve .a as extension for shared libraries through AIX4.2
10113 # and later when we are not doing run time linking.
10114 library_names_spec='${libname}${release}.a $libname.a'
10115 soname_spec='${libname}${release}${shared_ext}$major'
10117 shlibpath_var=LIBPATH
10124 # Since July 2007 AmigaOS4 officially supports .so libraries.
10125 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129 library_names_spec='$libname.ixlibrary $libname.a'
10130 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10131 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'
10137 library_names_spec='${libname}${shared_ext}'
10138 dynamic_linker="$host_os ld.so"
10139 shlibpath_var=LIBRARY_PATH
10143 version_type=linux # correct to gnu/linux during the next big refactor
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10148 shlibpath_var=LD_LIBRARY_PATH
10149 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10150 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10151 # the default ld.so.conf also contains /usr/contrib/lib and
10152 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10153 # libtool to hard-code these into programs
10156 cygwin* | mingw* | pw32* | cegcc*)
10157 version_type=windows
10162 case $GCC,$cc_basename in
10165 library_names_spec='$libname.dll.a'
10166 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10167 postinstall_cmds='base_file=`basename \${file}`~
10168 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10169 dldir=$destdir/`dirname \$dlpath`~
10170 test -d \$dldir || mkdir -p \$dldir~
10171 $install_prog $dir/$dlname \$dldir/$dlname~
10172 chmod a+x \$dldir/$dlname~
10173 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10174 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10177 dlpath=$dir/\$dldll~
10179 shlibpath_overrides_runpath=yes
10183 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10184 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10186 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10189 # MinGW DLLs use traditional 'lib' prefix
10190 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10193 # pw32 DLLs use 'pw' prefix rather than 'lib'
10194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10197 dynamic_linker='Win32 ld.exe'
10202 libname_spec='$name'
10203 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10204 library_names_spec='${libname}.dll.lib'
10208 sys_lib_search_path_spec=
10211 for lt_path in $LIB
10214 # Let DOS variable expansion print the short 8.3 style file name.
10215 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10216 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10219 # Convert to MSYS style.
10220 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10223 # Convert to unix form, then to dos form, then back to unix form
10224 # but this time dos style (no spaces!) so that the unix form looks
10225 # like /cygdrive/c/PROGRA~1:/cygdr...
10226 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10227 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10228 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10231 sys_lib_search_path_spec="$LIB"
10232 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10233 # It is most probably a Windows format PATH.
10234 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10236 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10238 # FIXME: find the short name or the path components, as spaces are
10239 # common. (e.g. "Program Files" -> "PROGRA~1")
10243 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10244 postinstall_cmds='base_file=`basename \${file}`~
10245 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10246 dldir=$destdir/`dirname \$dlpath`~
10247 test -d \$dldir || mkdir -p \$dldir~
10248 $install_prog $dir/$dlname \$dldir/$dlname'
10249 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10250 dlpath=$dir/\$dldll~
10252 shlibpath_overrides_runpath=yes
10253 dynamic_linker='Win32 link.exe'
10257 # Assume MSVC wrapper
10258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10259 dynamic_linker='Win32 ld.exe'
10262 # FIXME: first we should search . and the directory the executable is in
10266 darwin* | rhapsody*)
10267 dynamic_linker="$host_os dyld"
10268 version_type=darwin
10271 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10272 soname_spec='${libname}${release}${major}$shared_ext'
10273 shlibpath_overrides_runpath=yes
10274 shlibpath_var=DYLD_LIBRARY_PATH
10275 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10277 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10278 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10282 version_type=linux # correct to gnu/linux during the next big refactor
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LD_LIBRARY_PATH
10290 freebsd* | dragonfly*)
10291 # DragonFly does not have aout. When/if they implement a new
10292 # versioning mechanism, adjust this.
10293 if test -x /usr/bin/objformat; then
10294 objformat=`/usr/bin/objformat`
10297 freebsd[23].*) objformat=aout ;;
10298 *) objformat=elf ;;
10301 # Handle Gentoo/FreeBSD as it was Linux
10302 case $host_vendor in
10304 version_type=linux ;;
10306 version_type=freebsd-$objformat ;;
10309 case $version_type in
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10321 soname_spec='${libname}${release}${shared_ext}$major'
10326 shlibpath_var=LD_LIBRARY_PATH
10329 shlibpath_overrides_runpath=yes
10331 freebsd3.[01]* | freebsdelf3.[01]*)
10332 shlibpath_overrides_runpath=yes
10333 hardcode_into_libs=yes
10335 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10336 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10337 shlibpath_overrides_runpath=no
10338 hardcode_into_libs=yes
10340 *) # from 4.6 on, and DragonFly
10341 shlibpath_overrides_runpath=yes
10342 hardcode_into_libs=yes
10348 version_type=linux # correct to gnu/linux during the next big refactor
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 shlibpath_var=LD_LIBRARY_PATH
10354 shlibpath_overrides_runpath=no
10355 hardcode_into_libs=yes
10359 version_type=linux # correct to gnu/linux during the next big refactor
10362 dynamic_linker="$host_os runtime_loader"
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LIBRARY_PATH
10366 shlibpath_overrides_runpath=yes
10367 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10368 hardcode_into_libs=yes
10371 hpux9* | hpux10* | hpux11*)
10372 # Give a soname corresponding to the major version so that dld.sl refuses to
10373 # link against other versions.
10380 hardcode_into_libs=yes
10381 dynamic_linker="$host_os dld.so"
10382 shlibpath_var=LD_LIBRARY_PATH
10383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 if test "X$HPUX_IA64_MODE" = X32; then
10387 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10389 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10395 hardcode_into_libs=yes
10396 dynamic_linker="$host_os dld.sl"
10397 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10398 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10402 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10406 dynamic_linker="$host_os dld.sl"
10407 shlibpath_var=SHLIB_PATH
10408 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410 soname_spec='${libname}${release}${shared_ext}$major'
10413 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10414 postinstall_cmds='chmod 555 $lib'
10415 # or fails outright, so override atomically:
10416 install_override_mode=555
10420 version_type=linux # correct to gnu/linux during the next big refactor
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=no
10428 hardcode_into_libs=yes
10431 irix5* | irix6* | nonstopux*)
10433 nonstopux*) version_type=nonstopux ;;
10435 if test "$lt_cv_prog_gnu_ld" = yes; then
10436 version_type=linux # correct to gnu/linux during the next big refactor
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10446 irix5* | nonstopux*)
10447 libsuff= shlibsuff=
10450 case $LD in # libtool.m4 will add one of these switches to LD
10451 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10452 libsuff= shlibsuff= libmagic=32-bit;;
10453 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10454 libsuff=32 shlibsuff=N32 libmagic=N32;;
10455 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10456 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10457 *) libsuff= shlibsuff= libmagic=never-match;;
10461 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10462 shlibpath_overrides_runpath=no
10463 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10464 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10465 hardcode_into_libs=yes
10468 # No shared lib support for Linux oldld, aout, or coff.
10469 linux*oldld* | linux*aout* | linux*coff*)
10473 # This must be glibc/ELF.
10474 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10475 version_type=linux # correct to gnu/linux during the next big refactor
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479 soname_spec='${libname}${release}${shared_ext}$major'
10480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 shlibpath_overrides_runpath=no
10484 # Some binutils ld are patched to set DT_RUNPATH
10485 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10486 $as_echo_n "(cached) " >&6
10488 lt_cv_shlibpath_overrides_runpath=no
10489 save_LDFLAGS=$LDFLAGS
10490 save_libdir=$libdir
10491 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10492 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10504 if ac_fn_c_try_link "$LINENO"; then :
10505 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10506 lt_cv_shlibpath_overrides_runpath=yes
10509 rm -f core conftest.err conftest.$ac_objext \
10510 conftest$ac_exeext conftest.$ac_ext
10511 LDFLAGS=$save_LDFLAGS
10512 libdir=$save_libdir
10516 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10518 # This implies no fast_install, which is unacceptable.
10519 # Some rework will be needed to allow for fast_install
10520 # before this can be enabled.
10521 hardcode_into_libs=yes
10523 # Append ld.so.conf contents to the search path
10524 if test -f /etc/ld.so.conf; then
10525 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' ' '`
10526 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10529 # We used to test for /lib/ld.so.1 and disable shared libraries on
10530 # powerpc, because MkLinux only supported shared libraries with the
10531 # GNU dynamic linker. Since this was broken with cross compilers,
10532 # most powerpc-linux boxes support dynamic linking these days and
10533 # people can always --disable-shared, the test was removed, and we
10534 # assume the GNU/Linux dynamic linker is in use.
10535 dynamic_linker='GNU/Linux ld.so'
10542 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10545 dynamic_linker='NetBSD (a.out) ld.so'
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10548 soname_spec='${libname}${release}${shared_ext}$major'
10549 dynamic_linker='NetBSD ld.elf_so'
10551 shlibpath_var=LD_LIBRARY_PATH
10552 shlibpath_overrides_runpath=yes
10553 hardcode_into_libs=yes
10557 version_type=linux # correct to gnu/linux during the next big refactor
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559 shlibpath_var=LD_LIBRARY_PATH
10560 shlibpath_overrides_runpath=yes
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568 soname_spec='${libname}${release}${shared_ext}$major'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 shlibpath_overrides_runpath=no
10571 hardcode_into_libs=yes
10572 dynamic_linker='ldqnx.so'
10577 sys_lib_dlsearch_path_spec="/usr/lib"
10579 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10581 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10582 *) need_version=no ;;
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10589 openbsd2.[89] | openbsd2.[89].*)
10590 shlibpath_overrides_runpath=no
10593 shlibpath_overrides_runpath=yes
10597 shlibpath_overrides_runpath=yes
10602 libname_spec='$name'
10605 library_names_spec='$libname${shared_ext} $libname.a'
10606 dynamic_linker='OS/2 ld.exe'
10607 shlibpath_var=LIBPATH
10610 osf3* | osf4* | osf5*)
10614 soname_spec='${libname}${release}${shared_ext}$major'
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10618 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10626 version_type=linux # correct to gnu/linux during the next big refactor
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 shlibpath_overrides_runpath=yes
10633 hardcode_into_libs=yes
10634 # ldd complains unless libraries are executable
10635 postinstall_cmds='chmod +x $lib'
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10641 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 shlibpath_overrides_runpath=yes
10644 if test "$with_gnu_ld" = yes; then
10651 version_type=linux # correct to gnu/linux during the next big refactor
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653 soname_spec='${libname}${release}${shared_ext}$major'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 case $host_vendor in
10657 shlibpath_overrides_runpath=no
10659 runpath_var=LD_RUN_PATH
10667 shlibpath_overrides_runpath=no
10668 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10674 if test -d /usr/nec ;then
10675 version_type=linux # correct to gnu/linux during the next big refactor
10676 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10677 soname_spec='$libname${shared_ext}.$major'
10678 shlibpath_var=LD_LIBRARY_PATH
10682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10683 version_type=freebsd-elf
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 shlibpath_overrides_runpath=yes
10690 hardcode_into_libs=yes
10691 if test "$with_gnu_ld" = yes; then
10692 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10694 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10697 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10701 sys_lib_dlsearch_path_spec='/usr/lib'
10705 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10706 version_type=linux # correct to gnu/linux during the next big refactor
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710 shlibpath_var=LD_LIBRARY_PATH
10711 shlibpath_overrides_runpath=no
10712 hardcode_into_libs=yes
10716 version_type=linux # correct to gnu/linux during the next big refactor
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 shlibpath_var=LD_LIBRARY_PATH
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10727 $as_echo "$dynamic_linker" >&6; }
10728 test "$dynamic_linker" = no && can_build_shared=no
10730 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10731 if test "$GCC" = yes; then
10732 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10735 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10736 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10738 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10739 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10834 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10836 if test -n "$hardcode_libdir_flag_spec" ||
10837 test -n "$runpath_var" ||
10838 test "X$hardcode_automatic" = "Xyes" ; then
10840 # We can hardcode non-existent directories.
10841 if test "$hardcode_direct" != no &&
10842 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10843 # have to relink, otherwise we might link with an installed library
10844 # when we should be linking with a yet-to-be-installed one
10845 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10846 test "$hardcode_minus_L" != no; then
10847 # Linking always hardcodes the temporary library directory.
10848 hardcode_action=relink
10850 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10851 hardcode_action=immediate
10854 # We cannot hardcode anything, or else we can only hardcode existing
10856 hardcode_action=unsupported
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10859 $as_echo "$hardcode_action" >&6; }
10861 if test "$hardcode_action" = relink ||
10862 test "$inherit_rpath" = yes; then
10863 # Fast installation is not supported
10864 enable_fast_install=no
10865 elif test "$shlibpath_overrides_runpath" = yes ||
10866 test "$enable_shared" = no; then
10867 # Fast installation is not necessary
10868 enable_fast_install=needless
10876 if test "x$enable_dlopen" != xyes; then
10877 enable_dlopen=unknown
10878 enable_dlopen_self=unknown
10879 enable_dlopen_self_static=unknown
10886 lt_cv_dlopen="load_add_on"
10888 lt_cv_dlopen_self=yes
10891 mingw* | pw32* | cegcc*)
10892 lt_cv_dlopen="LoadLibrary"
10897 lt_cv_dlopen="dlopen"
10902 # if libdl is installed we need to link against it
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10904 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10905 if ${ac_cv_lib_dl_dlopen+:} false; then :
10906 $as_echo_n "(cached) " >&6
10908 ac_check_lib_save_LIBS=$LIBS
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10913 /* Override any GCC internal prototype to avoid an error.
10914 Use char because int might match the return type of a GCC
10915 builtin and then its argument prototype would still apply. */
10928 if ac_fn_c_try_link "$LINENO"; then :
10929 ac_cv_lib_dl_dlopen=yes
10931 ac_cv_lib_dl_dlopen=no
10933 rm -f core conftest.err conftest.$ac_objext \
10934 conftest$ac_exeext conftest.$ac_ext
10935 LIBS=$ac_check_lib_save_LIBS
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10938 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10939 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10940 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10943 lt_cv_dlopen="dyld"
10945 lt_cv_dlopen_self=yes
10952 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10953 if test "x$ac_cv_func_shl_load" = xyes; then :
10954 lt_cv_dlopen="shl_load"
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10957 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10958 if ${ac_cv_lib_dld_shl_load+:} false; then :
10959 $as_echo_n "(cached) " >&6
10961 ac_check_lib_save_LIBS=$LIBS
10963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10966 /* Override any GCC internal prototype to avoid an error.
10967 Use char because int might match the return type of a GCC
10968 builtin and then its argument prototype would still apply. */
10976 return shl_load ();
10981 if ac_fn_c_try_link "$LINENO"; then :
10982 ac_cv_lib_dld_shl_load=yes
10984 ac_cv_lib_dld_shl_load=no
10986 rm -f core conftest.err conftest.$ac_objext \
10987 conftest$ac_exeext conftest.$ac_ext
10988 LIBS=$ac_check_lib_save_LIBS
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10991 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10992 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10993 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10995 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10996 if test "x$ac_cv_func_dlopen" = xyes; then :
10997 lt_cv_dlopen="dlopen"
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11000 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11001 if ${ac_cv_lib_dl_dlopen+:} false; then :
11002 $as_echo_n "(cached) " >&6
11004 ac_check_lib_save_LIBS=$LIBS
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11009 /* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
11024 if ac_fn_c_try_link "$LINENO"; then :
11025 ac_cv_lib_dl_dlopen=yes
11027 ac_cv_lib_dl_dlopen=no
11029 rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_lib_save_LIBS
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11034 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11035 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11039 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11040 if ${ac_cv_lib_svld_dlopen+:} false; then :
11041 $as_echo_n "(cached) " >&6
11043 ac_check_lib_save_LIBS=$LIBS
11044 LIBS="-lsvld $LIBS"
11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h. */
11048 /* Override any GCC internal prototype to avoid an error.
11049 Use char because int might match the return type of a GCC
11050 builtin and then its argument prototype would still apply. */
11063 if ac_fn_c_try_link "$LINENO"; then :
11064 ac_cv_lib_svld_dlopen=yes
11066 ac_cv_lib_svld_dlopen=no
11068 rm -f core conftest.err conftest.$ac_objext \
11069 conftest$ac_exeext conftest.$ac_ext
11070 LIBS=$ac_check_lib_save_LIBS
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11073 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11074 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11075 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11078 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11079 if ${ac_cv_lib_dld_dld_link+:} false; then :
11080 $as_echo_n "(cached) " >&6
11082 ac_check_lib_save_LIBS=$LIBS
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11087 /* Override any GCC internal prototype to avoid an error.
11088 Use char because int might match the return type of a GCC
11089 builtin and then its argument prototype would still apply. */
11097 return dld_link ();
11102 if ac_fn_c_try_link "$LINENO"; then :
11103 ac_cv_lib_dld_dld_link=yes
11105 ac_cv_lib_dld_dld_link=no
11107 rm -f core conftest.err conftest.$ac_objext \
11108 conftest$ac_exeext conftest.$ac_ext
11109 LIBS=$ac_check_lib_save_LIBS
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11112 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11113 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11114 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11135 if test "x$lt_cv_dlopen" != xno; then
11141 case $lt_cv_dlopen in
11143 save_CPPFLAGS="$CPPFLAGS"
11144 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11146 save_LDFLAGS="$LDFLAGS"
11147 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11150 LIBS="$lt_cv_dlopen_libs $LIBS"
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11153 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11154 if ${lt_cv_dlopen_self+:} false; then :
11155 $as_echo_n "(cached) " >&6
11157 if test "$cross_compiling" = yes; then :
11158 lt_cv_dlopen_self=cross
11160 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11161 lt_status=$lt_dlunknown
11162 cat > conftest.$ac_ext <<_LT_EOF
11163 #line $LINENO "configure"
11164 #include "confdefs.h"
11173 # define LT_DLGLOBAL RTLD_GLOBAL
11176 # define LT_DLGLOBAL DL_GLOBAL
11178 # define LT_DLGLOBAL 0
11182 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11183 find out it does not work in some platform. */
11184 #ifndef LT_DLLAZY_OR_NOW
11186 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11189 # define LT_DLLAZY_OR_NOW DL_LAZY
11192 # define LT_DLLAZY_OR_NOW RTLD_NOW
11195 # define LT_DLLAZY_OR_NOW DL_NOW
11197 # define LT_DLLAZY_OR_NOW 0
11204 /* When -fvisbility=hidden is used, assume the code has been annotated
11205 correspondingly for the symbols needed. */
11206 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11207 int fnord () __attribute__((visibility("default")));
11210 int fnord () { return 42; }
11213 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11214 int status = $lt_dlunknown;
11218 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11221 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11222 else puts (dlerror ());
11224 /* dlclose (self); */
11232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11233 (eval $ac_link) 2>&5
11235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11236 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11237 (./conftest; exit; ) >&5 2>/dev/null
11239 case x$lt_status in
11240 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11241 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11242 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11245 # compilation failed
11246 lt_cv_dlopen_self=no
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11254 $as_echo "$lt_cv_dlopen_self" >&6; }
11256 if test "x$lt_cv_dlopen_self" = xyes; then
11257 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11259 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11260 if ${lt_cv_dlopen_self_static+:} false; then :
11261 $as_echo_n "(cached) " >&6
11263 if test "$cross_compiling" = yes; then :
11264 lt_cv_dlopen_self_static=cross
11266 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11267 lt_status=$lt_dlunknown
11268 cat > conftest.$ac_ext <<_LT_EOF
11269 #line $LINENO "configure"
11270 #include "confdefs.h"
11279 # define LT_DLGLOBAL RTLD_GLOBAL
11282 # define LT_DLGLOBAL DL_GLOBAL
11284 # define LT_DLGLOBAL 0
11288 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11289 find out it does not work in some platform. */
11290 #ifndef LT_DLLAZY_OR_NOW
11292 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11295 # define LT_DLLAZY_OR_NOW DL_LAZY
11298 # define LT_DLLAZY_OR_NOW RTLD_NOW
11301 # define LT_DLLAZY_OR_NOW DL_NOW
11303 # define LT_DLLAZY_OR_NOW 0
11310 /* When -fvisbility=hidden is used, assume the code has been annotated
11311 correspondingly for the symbols needed. */
11312 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11313 int fnord () __attribute__((visibility("default")));
11316 int fnord () { return 42; }
11319 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11320 int status = $lt_dlunknown;
11324 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11327 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11328 else puts (dlerror ());
11330 /* dlclose (self); */
11338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11339 (eval $ac_link) 2>&5
11341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11342 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11343 (./conftest; exit; ) >&5 2>/dev/null
11345 case x$lt_status in
11346 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11347 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11348 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11351 # compilation failed
11352 lt_cv_dlopen_self_static=no
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11360 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11363 CPPFLAGS="$save_CPPFLAGS"
11364 LDFLAGS="$save_LDFLAGS"
11369 case $lt_cv_dlopen_self in
11370 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11371 *) enable_dlopen_self=unknown ;;
11374 case $lt_cv_dlopen_self_static in
11375 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11376 *) enable_dlopen_self_static=unknown ;;
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11399 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11400 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11401 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11402 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11404 $as_echo "yes" >&6; }
11406 # FIXME - insert some real tests, host_os isn't really good enough
11409 if test -n "$STRIP" ; then
11410 striplib="$STRIP -x"
11411 old_striplib="$STRIP -S"
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11413 $as_echo "yes" >&6; }
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416 $as_echo "no" >&6; }
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421 $as_echo "no" >&6; }
11437 # Report which library types will actually be built
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11439 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11441 $as_echo "$can_build_shared" >&6; }
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11444 $as_echo_n "checking whether to build shared libraries... " >&6; }
11445 test "$can_build_shared" = "no" && enable_shared=no
11447 # On AIX, shared libraries and static libraries use the same namespace, and
11448 # are all built from PIC.
11451 test "$enable_shared" = yes && enable_static=no
11452 if test -n "$RANLIB"; then
11453 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11454 postinstall_cmds='$RANLIB $lib'
11459 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11460 test "$enable_shared" = yes && enable_static=no
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11465 $as_echo "$enable_shared" >&6; }
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11468 $as_echo_n "checking whether to build static libraries... " >&6; }
11469 # Make sure either enable_shared or enable_static is yes.
11470 test "$enable_shared" = yes || enable_static=yes
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11472 $as_echo "$enable_static" >&6; }
11479 ac_cpp='$CPP $CPPFLAGS'
11480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11500 ac_config_commands="$ac_config_commands libtool"
11505 # Only expand once:
11509 # Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11522 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11523 if ${ac_cv_prog_cc_c99+:} false; then :
11524 $as_echo_n "(cached) " >&6
11526 ac_cv_prog_cc_c99=no
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11530 #include <stdarg.h>
11531 #include <stdbool.h>
11532 #include <stdlib.h>
11536 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11537 #define debug(...) fprintf (stderr, __VA_ARGS__)
11538 #define showlist(...) puts (#__VA_ARGS__)
11539 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11541 test_varargs_macros (void)
11546 debug ("X = %d\n", x);
11547 showlist (The first, second, and third items.);
11548 report (x>y, "x is %d but y is %d", x, y);
11551 // Check long long types.
11552 #define BIG64 18446744073709551615ull
11553 #define BIG32 4294967295ul
11554 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11556 your preprocessor is broken;
11560 your preprocessor is broken;
11562 static long long int bignum = -9223372036854775807LL;
11563 static unsigned long long int ubignum = BIG64;
11565 struct incomplete_array
11571 struct named_init {
11573 const wchar_t *name;
11577 typedef const char *ccp;
11580 test_restrict (ccp restrict text)
11582 // See if C++-style comments work.
11583 // Iterate through items via the restricted pointer.
11584 // Also check for declarations in for loops.
11585 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11590 // Check varargs and va_copy.
11592 test_varargs (const char *format, ...)
11595 va_start (args, format);
11597 va_copy (args_copy, args);
11607 case 's': // string
11608 str = va_arg (args_copy, const char *);
11611 number = va_arg (args_copy, int);
11614 fnumber = va_arg (args_copy, double);
11620 va_end (args_copy);
11629 _Bool success = false;
11632 if (test_restrict ("String literal") == 0)
11634 char *restrict newvar = "Another string";
11637 test_varargs ("s, d' f .", "string", 65, 34.234);
11638 test_varargs_macros ();
11640 // Check flexible array members.
11641 struct incomplete_array *ia =
11642 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11644 for (int i = 0; i < ia->datasize; ++i)
11645 ia->data[i] = i * 1.234;
11647 // Check named initializers.
11648 struct named_init ni = {
11650 .name = L"Test wide string",
11651 .average = 543.34343,
11656 int dynamic_array[ni.number];
11657 dynamic_array[ni.number - 1] = 543;
11659 // work around unused variable warnings
11660 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11661 || dynamic_array[ni.number - 1] != 543);
11667 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11669 CC="$ac_save_CC $ac_arg"
11670 if ac_fn_c_try_compile "$LINENO"; then :
11671 ac_cv_prog_cc_c99=$ac_arg
11673 rm -f core conftest.err conftest.$ac_objext
11674 test "x$ac_cv_prog_cc_c99" != "xno" && break
11676 rm -f conftest.$ac_ext
11681 case "x$ac_cv_prog_cc_c99" in
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11684 $as_echo "none needed" >&6; } ;;
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11687 $as_echo "unsupported" >&6; } ;;
11689 CC="$CC $ac_cv_prog_cc_c99"
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11691 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11693 if test "x$ac_cv_prog_cc_c99" != xno; then :
11702 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11703 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11709 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11710 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11716 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11717 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11731 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11732 if test -n "$ac_tool_prefix"; then
11733 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11734 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11738 $as_echo_n "(cached) " >&6
11740 case $PKG_CONFIG in
11742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11749 test -z "$as_dir" && as_dir=.
11750 for ac_exec_ext in '' $ac_executable_extensions; do
11751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11752 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11764 if test -n "$PKG_CONFIG"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11766 $as_echo "$PKG_CONFIG" >&6; }
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11774 if test -z "$ac_cv_path_PKG_CONFIG"; then
11775 ac_pt_PKG_CONFIG=$PKG_CONFIG
11776 # Extract the first word of "pkg-config", so it can be a program name with args.
11777 set dummy pkg-config; ac_word=$2
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779 $as_echo_n "checking for $ac_word... " >&6; }
11780 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11781 $as_echo_n "(cached) " >&6
11783 case $ac_pt_PKG_CONFIG in
11785 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11806 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11807 if test -n "$ac_pt_PKG_CONFIG"; then
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11809 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11815 if test "x$ac_pt_PKG_CONFIG" = x; then
11818 case $cross_compiling:$ac_tool_warned in
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11822 ac_tool_warned=yes ;;
11824 PKG_CONFIG=$ac_pt_PKG_CONFIG
11827 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11831 if test -n "$PKG_CONFIG"; then
11832 _pkg_min_version=0.9.0
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11834 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11835 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837 $as_echo "yes" >&6; }
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11849 # Check whether --enable-selective-werror was given.
11850 if test "${enable_selective_werror+set}" = set; then :
11851 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11853 SELECTIVE_WERROR=yes
11860 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11861 if test "x$SUNCC" = "xyes"; then
11867 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11881 xorg_testset_save_CFLAGS="$CFLAGS"
11883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11886 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11887 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11888 $as_echo_n "(cached) " >&6
11890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891 /* end confdefs.h. */
11894 if ac_fn_c_try_compile "$LINENO"; then :
11895 xorg_cv_cc_flag_unknown_warning_option=yes
11897 xorg_cv_cc_flag_unknown_warning_option=no
11899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11902 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11904 CFLAGS="$xorg_testset_save_CFLAGS"
11907 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11913 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11914 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11915 $as_echo_n "(cached) " >&6
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11921 if ac_fn_c_try_compile "$LINENO"; then :
11922 xorg_cv_cc_flag_unused_command_line_argument=yes
11924 xorg_cv_cc_flag_unused_command_line_argument=no
11926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11929 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11931 CFLAGS="$xorg_testset_save_CFLAGS"
11936 if test $found = "no" ; then
11937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11945 CFLAGS="$CFLAGS -Wall"
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11948 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11949 cacheid=xorg_cv_cc_flag__Wall
11950 if eval \${$cacheid+:} false; then :
11951 $as_echo_n "(cached) " >&6
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11964 if ac_fn_c_try_link "$LINENO"; then :
11969 rm -f core conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
11974 CFLAGS="$xorg_testset_save_CFLAGS"
11976 eval supported=\$$cacheid
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11978 $as_echo "$supported" >&6; }
11979 if test "$supported" = "yes" ; then
11980 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11999 xorg_testset_save_CFLAGS="$CFLAGS"
12001 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12004 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12005 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12006 $as_echo_n "(cached) " >&6
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12012 if ac_fn_c_try_compile "$LINENO"; then :
12013 xorg_cv_cc_flag_unknown_warning_option=yes
12015 xorg_cv_cc_flag_unknown_warning_option=no
12017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12020 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12022 CFLAGS="$xorg_testset_save_CFLAGS"
12025 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12031 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12032 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12033 $as_echo_n "(cached) " >&6
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12039 if ac_fn_c_try_compile "$LINENO"; then :
12040 xorg_cv_cc_flag_unused_command_line_argument=yes
12042 xorg_cv_cc_flag_unused_command_line_argument=no
12044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12047 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12049 CFLAGS="$xorg_testset_save_CFLAGS"
12054 if test $found = "no" ; then
12055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12063 CFLAGS="$CFLAGS -Wpointer-arith"
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12066 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12067 cacheid=xorg_cv_cc_flag__Wpointer_arith
12068 if eval \${$cacheid+:} false; then :
12069 $as_echo_n "(cached) " >&6
12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12082 if ac_fn_c_try_link "$LINENO"; then :
12087 rm -f core conftest.err conftest.$ac_objext \
12088 conftest$ac_exeext conftest.$ac_ext
12092 CFLAGS="$xorg_testset_save_CFLAGS"
12094 eval supported=\$$cacheid
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12096 $as_echo "$supported" >&6; }
12097 if test "$supported" = "yes" ; then
12098 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12117 xorg_testset_save_CFLAGS="$CFLAGS"
12119 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12122 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12123 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12124 $as_echo_n "(cached) " >&6
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12130 if ac_fn_c_try_compile "$LINENO"; then :
12131 xorg_cv_cc_flag_unknown_warning_option=yes
12133 xorg_cv_cc_flag_unknown_warning_option=no
12135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12138 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12140 CFLAGS="$xorg_testset_save_CFLAGS"
12143 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12149 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12150 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12151 $as_echo_n "(cached) " >&6
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12157 if ac_fn_c_try_compile "$LINENO"; then :
12158 xorg_cv_cc_flag_unused_command_line_argument=yes
12160 xorg_cv_cc_flag_unused_command_line_argument=no
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12165 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12167 CFLAGS="$xorg_testset_save_CFLAGS"
12172 if test $found = "no" ; then
12173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12181 CFLAGS="$CFLAGS -Wmissing-declarations"
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12184 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12185 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12186 if eval \${$cacheid+:} false; then :
12187 $as_echo_n "(cached) " >&6
12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12200 if ac_fn_c_try_link "$LINENO"; then :
12205 rm -f core conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
12210 CFLAGS="$xorg_testset_save_CFLAGS"
12212 eval supported=\$$cacheid
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12214 $as_echo "$supported" >&6; }
12215 if test "$supported" = "yes" ; then
12216 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12235 xorg_testset_save_CFLAGS="$CFLAGS"
12237 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12240 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12241 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12242 $as_echo_n "(cached) " >&6
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12248 if ac_fn_c_try_compile "$LINENO"; then :
12249 xorg_cv_cc_flag_unknown_warning_option=yes
12251 xorg_cv_cc_flag_unknown_warning_option=no
12253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12256 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12258 CFLAGS="$xorg_testset_save_CFLAGS"
12261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12267 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12268 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12269 $as_echo_n "(cached) " >&6
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12275 if ac_fn_c_try_compile "$LINENO"; then :
12276 xorg_cv_cc_flag_unused_command_line_argument=yes
12278 xorg_cv_cc_flag_unused_command_line_argument=no
12280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12283 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12285 CFLAGS="$xorg_testset_save_CFLAGS"
12290 if test $found = "no" ; then
12291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12299 CFLAGS="$CFLAGS -Wformat=2"
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12302 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12303 cacheid=xorg_cv_cc_flag__Wformat_2
12304 if eval \${$cacheid+:} false; then :
12305 $as_echo_n "(cached) " >&6
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12318 if ac_fn_c_try_link "$LINENO"; then :
12323 rm -f core conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
12328 CFLAGS="$xorg_testset_save_CFLAGS"
12330 eval supported=\$$cacheid
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12332 $as_echo "$supported" >&6; }
12333 if test "$supported" = "yes" ; then
12334 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12339 if test $found = "no" ; then
12340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12348 CFLAGS="$CFLAGS -Wformat"
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12351 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12352 cacheid=xorg_cv_cc_flag__Wformat
12353 if eval \${$cacheid+:} false; then :
12354 $as_echo_n "(cached) " >&6
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12367 if ac_fn_c_try_link "$LINENO"; then :
12372 rm -f core conftest.err conftest.$ac_objext \
12373 conftest$ac_exeext conftest.$ac_ext
12377 CFLAGS="$xorg_testset_save_CFLAGS"
12379 eval supported=\$$cacheid
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12381 $as_echo "$supported" >&6; }
12382 if test "$supported" = "yes" ; then
12383 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12404 xorg_testset_save_CFLAGS="$CFLAGS"
12406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12409 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12410 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12411 $as_echo_n "(cached) " >&6
12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h. */
12417 if ac_fn_c_try_compile "$LINENO"; then :
12418 xorg_cv_cc_flag_unknown_warning_option=yes
12420 xorg_cv_cc_flag_unknown_warning_option=no
12422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12425 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12427 CFLAGS="$xorg_testset_save_CFLAGS"
12430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12436 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12437 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12438 $as_echo_n "(cached) " >&6
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12444 if ac_fn_c_try_compile "$LINENO"; then :
12445 xorg_cv_cc_flag_unused_command_line_argument=yes
12447 xorg_cv_cc_flag_unused_command_line_argument=no
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12452 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12454 CFLAGS="$xorg_testset_save_CFLAGS"
12459 if test $found = "no" ; then
12460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12468 CFLAGS="$CFLAGS -Wstrict-prototypes"
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12471 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12472 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12473 if eval \${$cacheid+:} false; then :
12474 $as_echo_n "(cached) " >&6
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12487 if ac_fn_c_try_link "$LINENO"; then :
12492 rm -f core conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12497 CFLAGS="$xorg_testset_save_CFLAGS"
12499 eval supported=\$$cacheid
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12501 $as_echo "$supported" >&6; }
12502 if test "$supported" = "yes" ; then
12503 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12522 xorg_testset_save_CFLAGS="$CFLAGS"
12524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12527 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12528 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12529 $as_echo_n "(cached) " >&6
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12535 if ac_fn_c_try_compile "$LINENO"; then :
12536 xorg_cv_cc_flag_unknown_warning_option=yes
12538 xorg_cv_cc_flag_unknown_warning_option=no
12540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12543 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12545 CFLAGS="$xorg_testset_save_CFLAGS"
12548 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12554 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12555 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12556 $as_echo_n "(cached) " >&6
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12562 if ac_fn_c_try_compile "$LINENO"; then :
12563 xorg_cv_cc_flag_unused_command_line_argument=yes
12565 xorg_cv_cc_flag_unused_command_line_argument=no
12567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12570 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12572 CFLAGS="$xorg_testset_save_CFLAGS"
12577 if test $found = "no" ; then
12578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12586 CFLAGS="$CFLAGS -Wmissing-prototypes"
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12589 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12590 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12591 if eval \${$cacheid+:} false; then :
12592 $as_echo_n "(cached) " >&6
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12605 if ac_fn_c_try_link "$LINENO"; then :
12610 rm -f core conftest.err conftest.$ac_objext \
12611 conftest$ac_exeext conftest.$ac_ext
12615 CFLAGS="$xorg_testset_save_CFLAGS"
12617 eval supported=\$$cacheid
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12619 $as_echo "$supported" >&6; }
12620 if test "$supported" = "yes" ; then
12621 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12640 xorg_testset_save_CFLAGS="$CFLAGS"
12642 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12645 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12646 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12647 $as_echo_n "(cached) " >&6
12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12653 if ac_fn_c_try_compile "$LINENO"; then :
12654 xorg_cv_cc_flag_unknown_warning_option=yes
12656 xorg_cv_cc_flag_unknown_warning_option=no
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12661 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12663 CFLAGS="$xorg_testset_save_CFLAGS"
12666 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12672 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12673 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12674 $as_echo_n "(cached) " >&6
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12680 if ac_fn_c_try_compile "$LINENO"; then :
12681 xorg_cv_cc_flag_unused_command_line_argument=yes
12683 xorg_cv_cc_flag_unused_command_line_argument=no
12685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12688 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12690 CFLAGS="$xorg_testset_save_CFLAGS"
12695 if test $found = "no" ; then
12696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12704 CFLAGS="$CFLAGS -Wnested-externs"
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12707 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12708 cacheid=xorg_cv_cc_flag__Wnested_externs
12709 if eval \${$cacheid+:} false; then :
12710 $as_echo_n "(cached) " >&6
12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12723 if ac_fn_c_try_link "$LINENO"; then :
12728 rm -f core conftest.err conftest.$ac_objext \
12729 conftest$ac_exeext conftest.$ac_ext
12733 CFLAGS="$xorg_testset_save_CFLAGS"
12735 eval supported=\$$cacheid
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12737 $as_echo "$supported" >&6; }
12738 if test "$supported" = "yes" ; then
12739 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12758 xorg_testset_save_CFLAGS="$CFLAGS"
12760 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12763 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12764 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12765 $as_echo_n "(cached) " >&6
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12771 if ac_fn_c_try_compile "$LINENO"; then :
12772 xorg_cv_cc_flag_unknown_warning_option=yes
12774 xorg_cv_cc_flag_unknown_warning_option=no
12776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12779 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12781 CFLAGS="$xorg_testset_save_CFLAGS"
12784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12790 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12791 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12792 $as_echo_n "(cached) " >&6
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12798 if ac_fn_c_try_compile "$LINENO"; then :
12799 xorg_cv_cc_flag_unused_command_line_argument=yes
12801 xorg_cv_cc_flag_unused_command_line_argument=no
12803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12806 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12808 CFLAGS="$xorg_testset_save_CFLAGS"
12813 if test $found = "no" ; then
12814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12822 CFLAGS="$CFLAGS -Wbad-function-cast"
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12825 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12826 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12827 if eval \${$cacheid+:} false; then :
12828 $as_echo_n "(cached) " >&6
12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12841 if ac_fn_c_try_link "$LINENO"; then :
12846 rm -f core conftest.err conftest.$ac_objext \
12847 conftest$ac_exeext conftest.$ac_ext
12851 CFLAGS="$xorg_testset_save_CFLAGS"
12853 eval supported=\$$cacheid
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12855 $as_echo "$supported" >&6; }
12856 if test "$supported" = "yes" ; then
12857 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12876 xorg_testset_save_CFLAGS="$CFLAGS"
12878 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12881 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12882 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12883 $as_echo_n "(cached) " >&6
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12889 if ac_fn_c_try_compile "$LINENO"; then :
12890 xorg_cv_cc_flag_unknown_warning_option=yes
12892 xorg_cv_cc_flag_unknown_warning_option=no
12894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12897 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12899 CFLAGS="$xorg_testset_save_CFLAGS"
12902 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12908 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12909 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12910 $as_echo_n "(cached) " >&6
12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12916 if ac_fn_c_try_compile "$LINENO"; then :
12917 xorg_cv_cc_flag_unused_command_line_argument=yes
12919 xorg_cv_cc_flag_unused_command_line_argument=no
12921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12924 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12926 CFLAGS="$xorg_testset_save_CFLAGS"
12931 if test $found = "no" ; then
12932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12940 CFLAGS="$CFLAGS -Wold-style-definition"
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12943 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12944 cacheid=xorg_cv_cc_flag__Wold_style_definition
12945 if eval \${$cacheid+:} false; then :
12946 $as_echo_n "(cached) " >&6
12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h. */
12959 if ac_fn_c_try_link "$LINENO"; then :
12964 rm -f core conftest.err conftest.$ac_objext \
12965 conftest$ac_exeext conftest.$ac_ext
12969 CFLAGS="$xorg_testset_save_CFLAGS"
12971 eval supported=\$$cacheid
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12973 $as_echo "$supported" >&6; }
12974 if test "$supported" = "yes" ; then
12975 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12980 if test $found = "no" ; then
12981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12989 CFLAGS="$CFLAGS -fd"
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
12992 $as_echo_n "checking if $CC supports -fd... " >&6; }
12993 cacheid=xorg_cv_cc_flag__fd
12994 if eval \${$cacheid+:} false; then :
12995 $as_echo_n "(cached) " >&6
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
13008 if ac_fn_c_try_link "$LINENO"; then :
13013 rm -f core conftest.err conftest.$ac_objext \
13014 conftest$ac_exeext conftest.$ac_ext
13018 CFLAGS="$xorg_testset_save_CFLAGS"
13020 eval supported=\$$cacheid
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13022 $as_echo "$supported" >&6; }
13023 if test "$supported" = "yes" ; then
13024 BASE_CFLAGS="$BASE_CFLAGS -fd"
13043 xorg_testset_save_CFLAGS="$CFLAGS"
13045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13048 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13049 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13050 $as_echo_n "(cached) " >&6
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13056 if ac_fn_c_try_compile "$LINENO"; then :
13057 xorg_cv_cc_flag_unknown_warning_option=yes
13059 xorg_cv_cc_flag_unknown_warning_option=no
13061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13064 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13066 CFLAGS="$xorg_testset_save_CFLAGS"
13069 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13075 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13076 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13077 $as_echo_n "(cached) " >&6
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13083 if ac_fn_c_try_compile "$LINENO"; then :
13084 xorg_cv_cc_flag_unused_command_line_argument=yes
13086 xorg_cv_cc_flag_unused_command_line_argument=no
13088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13091 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13093 CFLAGS="$xorg_testset_save_CFLAGS"
13098 if test $found = "no" ; then
13099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13107 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13110 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13111 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13112 if eval \${$cacheid+:} false; then :
13113 $as_echo_n "(cached) " >&6
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13126 if ac_fn_c_try_link "$LINENO"; then :
13131 rm -f core conftest.err conftest.$ac_objext \
13132 conftest$ac_exeext conftest.$ac_ext
13136 CFLAGS="$xorg_testset_save_CFLAGS"
13138 eval supported=\$$cacheid
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13140 $as_echo "$supported" >&6; }
13141 if test "$supported" = "yes" ; then
13142 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13151 # This chunk adds additional warnings that could catch undesired effects.
13165 xorg_testset_save_CFLAGS="$CFLAGS"
13167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13170 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13171 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13172 $as_echo_n "(cached) " >&6
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13178 if ac_fn_c_try_compile "$LINENO"; then :
13179 xorg_cv_cc_flag_unknown_warning_option=yes
13181 xorg_cv_cc_flag_unknown_warning_option=no
13183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13186 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13188 CFLAGS="$xorg_testset_save_CFLAGS"
13191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13197 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13198 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13199 $as_echo_n "(cached) " >&6
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13205 if ac_fn_c_try_compile "$LINENO"; then :
13206 xorg_cv_cc_flag_unused_command_line_argument=yes
13208 xorg_cv_cc_flag_unused_command_line_argument=no
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13213 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13215 CFLAGS="$xorg_testset_save_CFLAGS"
13220 if test $found = "no" ; then
13221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13229 CFLAGS="$CFLAGS -Wunused"
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13232 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13233 cacheid=xorg_cv_cc_flag__Wunused
13234 if eval \${$cacheid+:} false; then :
13235 $as_echo_n "(cached) " >&6
13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13248 if ac_fn_c_try_link "$LINENO"; then :
13253 rm -f core conftest.err conftest.$ac_objext \
13254 conftest$ac_exeext conftest.$ac_ext
13258 CFLAGS="$xorg_testset_save_CFLAGS"
13260 eval supported=\$$cacheid
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13262 $as_echo "$supported" >&6; }
13263 if test "$supported" = "yes" ; then
13264 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13283 xorg_testset_save_CFLAGS="$CFLAGS"
13285 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13288 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13289 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13290 $as_echo_n "(cached) " >&6
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13296 if ac_fn_c_try_compile "$LINENO"; then :
13297 xorg_cv_cc_flag_unknown_warning_option=yes
13299 xorg_cv_cc_flag_unknown_warning_option=no
13301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13304 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13306 CFLAGS="$xorg_testset_save_CFLAGS"
13309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13315 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13316 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13317 $as_echo_n "(cached) " >&6
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13323 if ac_fn_c_try_compile "$LINENO"; then :
13324 xorg_cv_cc_flag_unused_command_line_argument=yes
13326 xorg_cv_cc_flag_unused_command_line_argument=no
13328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13331 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13333 CFLAGS="$xorg_testset_save_CFLAGS"
13338 if test $found = "no" ; then
13339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13347 CFLAGS="$CFLAGS -Wuninitialized"
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13350 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13351 cacheid=xorg_cv_cc_flag__Wuninitialized
13352 if eval \${$cacheid+:} false; then :
13353 $as_echo_n "(cached) " >&6
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13366 if ac_fn_c_try_link "$LINENO"; then :
13371 rm -f core conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
13376 CFLAGS="$xorg_testset_save_CFLAGS"
13378 eval supported=\$$cacheid
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13380 $as_echo "$supported" >&6; }
13381 if test "$supported" = "yes" ; then
13382 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13401 xorg_testset_save_CFLAGS="$CFLAGS"
13403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13406 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13407 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13408 $as_echo_n "(cached) " >&6
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13414 if ac_fn_c_try_compile "$LINENO"; then :
13415 xorg_cv_cc_flag_unknown_warning_option=yes
13417 xorg_cv_cc_flag_unknown_warning_option=no
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13422 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13424 CFLAGS="$xorg_testset_save_CFLAGS"
13427 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13433 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13434 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13435 $as_echo_n "(cached) " >&6
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13441 if ac_fn_c_try_compile "$LINENO"; then :
13442 xorg_cv_cc_flag_unused_command_line_argument=yes
13444 xorg_cv_cc_flag_unused_command_line_argument=no
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13449 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13451 CFLAGS="$xorg_testset_save_CFLAGS"
13456 if test $found = "no" ; then
13457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13465 CFLAGS="$CFLAGS -Wshadow"
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13468 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13469 cacheid=xorg_cv_cc_flag__Wshadow
13470 if eval \${$cacheid+:} false; then :
13471 $as_echo_n "(cached) " >&6
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13484 if ac_fn_c_try_link "$LINENO"; then :
13489 rm -f core conftest.err conftest.$ac_objext \
13490 conftest$ac_exeext conftest.$ac_ext
13494 CFLAGS="$xorg_testset_save_CFLAGS"
13496 eval supported=\$$cacheid
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13498 $as_echo "$supported" >&6; }
13499 if test "$supported" = "yes" ; then
13500 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13519 xorg_testset_save_CFLAGS="$CFLAGS"
13521 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13524 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13525 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13526 $as_echo_n "(cached) " >&6
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13532 if ac_fn_c_try_compile "$LINENO"; then :
13533 xorg_cv_cc_flag_unknown_warning_option=yes
13535 xorg_cv_cc_flag_unknown_warning_option=no
13537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13540 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13542 CFLAGS="$xorg_testset_save_CFLAGS"
13545 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13551 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13552 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13553 $as_echo_n "(cached) " >&6
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13559 if ac_fn_c_try_compile "$LINENO"; then :
13560 xorg_cv_cc_flag_unused_command_line_argument=yes
13562 xorg_cv_cc_flag_unused_command_line_argument=no
13564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13567 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13569 CFLAGS="$xorg_testset_save_CFLAGS"
13574 if test $found = "no" ; then
13575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13583 CFLAGS="$CFLAGS -Wmissing-noreturn"
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13586 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13587 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13588 if eval \${$cacheid+:} false; then :
13589 $as_echo_n "(cached) " >&6
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13602 if ac_fn_c_try_link "$LINENO"; then :
13607 rm -f core conftest.err conftest.$ac_objext \
13608 conftest$ac_exeext conftest.$ac_ext
13612 CFLAGS="$xorg_testset_save_CFLAGS"
13614 eval supported=\$$cacheid
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13616 $as_echo "$supported" >&6; }
13617 if test "$supported" = "yes" ; then
13618 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13637 xorg_testset_save_CFLAGS="$CFLAGS"
13639 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13642 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13643 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13644 $as_echo_n "(cached) " >&6
13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h. */
13650 if ac_fn_c_try_compile "$LINENO"; then :
13651 xorg_cv_cc_flag_unknown_warning_option=yes
13653 xorg_cv_cc_flag_unknown_warning_option=no
13655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13658 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13660 CFLAGS="$xorg_testset_save_CFLAGS"
13663 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13669 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13670 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13671 $as_echo_n "(cached) " >&6
13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h. */
13677 if ac_fn_c_try_compile "$LINENO"; then :
13678 xorg_cv_cc_flag_unused_command_line_argument=yes
13680 xorg_cv_cc_flag_unused_command_line_argument=no
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13685 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13687 CFLAGS="$xorg_testset_save_CFLAGS"
13692 if test $found = "no" ; then
13693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13701 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13704 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13705 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13706 if eval \${$cacheid+:} false; then :
13707 $as_echo_n "(cached) " >&6
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13720 if ac_fn_c_try_link "$LINENO"; then :
13725 rm -f core conftest.err conftest.$ac_objext \
13726 conftest$ac_exeext conftest.$ac_ext
13730 CFLAGS="$xorg_testset_save_CFLAGS"
13732 eval supported=\$$cacheid
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13734 $as_echo "$supported" >&6; }
13735 if test "$supported" = "yes" ; then
13736 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13755 xorg_testset_save_CFLAGS="$CFLAGS"
13757 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13760 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13761 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13762 $as_echo_n "(cached) " >&6
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h. */
13768 if ac_fn_c_try_compile "$LINENO"; then :
13769 xorg_cv_cc_flag_unknown_warning_option=yes
13771 xorg_cv_cc_flag_unknown_warning_option=no
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13776 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13778 CFLAGS="$xorg_testset_save_CFLAGS"
13781 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13787 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13788 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13789 $as_echo_n "(cached) " >&6
13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13795 if ac_fn_c_try_compile "$LINENO"; then :
13796 xorg_cv_cc_flag_unused_command_line_argument=yes
13798 xorg_cv_cc_flag_unused_command_line_argument=no
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13803 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13804 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13805 CFLAGS="$xorg_testset_save_CFLAGS"
13810 if test $found = "no" ; then
13811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13819 CFLAGS="$CFLAGS -Wredundant-decls"
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13822 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13823 cacheid=xorg_cv_cc_flag__Wredundant_decls
13824 if eval \${$cacheid+:} false; then :
13825 $as_echo_n "(cached) " >&6
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13838 if ac_fn_c_try_link "$LINENO"; then :
13843 rm -f core conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext conftest.$ac_ext
13848 CFLAGS="$xorg_testset_save_CFLAGS"
13850 eval supported=\$$cacheid
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13852 $as_echo "$supported" >&6; }
13853 if test "$supported" = "yes" ; then
13854 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13873 xorg_testset_save_CFLAGS="$CFLAGS"
13875 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13878 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13879 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13880 $as_echo_n "(cached) " >&6
13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13886 if ac_fn_c_try_compile "$LINENO"; then :
13887 xorg_cv_cc_flag_unknown_warning_option=yes
13889 xorg_cv_cc_flag_unknown_warning_option=no
13891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13894 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13896 CFLAGS="$xorg_testset_save_CFLAGS"
13899 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13905 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13906 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13907 $as_echo_n "(cached) " >&6
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13913 if ac_fn_c_try_compile "$LINENO"; then :
13914 xorg_cv_cc_flag_unused_command_line_argument=yes
13916 xorg_cv_cc_flag_unused_command_line_argument=no
13918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13921 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13923 CFLAGS="$xorg_testset_save_CFLAGS"
13928 if test $found = "no" ; then
13929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13937 CFLAGS="$CFLAGS -Wlogical-op"
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
13940 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
13941 cacheid=xorg_cv_cc_flag__Wlogical_op
13942 if eval \${$cacheid+:} false; then :
13943 $as_echo_n "(cached) " >&6
13945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13946 /* end confdefs.h. */
13956 if ac_fn_c_try_link "$LINENO"; then :
13961 rm -f core conftest.err conftest.$ac_objext \
13962 conftest$ac_exeext conftest.$ac_ext
13966 CFLAGS="$xorg_testset_save_CFLAGS"
13968 eval supported=\$$cacheid
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13970 $as_echo "$supported" >&6; }
13971 if test "$supported" = "yes" ; then
13972 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
13979 # These are currently disabled because they are noisy. They will be enabled
13980 # in the future once the codebase is sufficiently modernized to silence
13981 # them. For now, I don't want them to drown out the other warnings.
13982 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13983 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13984 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
13986 # Turn some warnings into errors, so we don't accidently get successful builds
13987 # when there are problems that should be fixed.
13989 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14003 xorg_testset_save_CFLAGS="$CFLAGS"
14005 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14008 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14009 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14010 $as_echo_n "(cached) " >&6
14012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h. */
14016 if ac_fn_c_try_compile "$LINENO"; then :
14017 xorg_cv_cc_flag_unknown_warning_option=yes
14019 xorg_cv_cc_flag_unknown_warning_option=no
14021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14024 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14026 CFLAGS="$xorg_testset_save_CFLAGS"
14029 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14035 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14036 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14037 $as_echo_n "(cached) " >&6
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14043 if ac_fn_c_try_compile "$LINENO"; then :
14044 xorg_cv_cc_flag_unused_command_line_argument=yes
14046 xorg_cv_cc_flag_unused_command_line_argument=no
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14051 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14053 CFLAGS="$xorg_testset_save_CFLAGS"
14058 if test $found = "no" ; then
14059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14067 CFLAGS="$CFLAGS -Werror=implicit"
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14070 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14071 cacheid=xorg_cv_cc_flag__Werror_implicit
14072 if eval \${$cacheid+:} false; then :
14073 $as_echo_n "(cached) " >&6
14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14086 if ac_fn_c_try_link "$LINENO"; then :
14091 rm -f core conftest.err conftest.$ac_objext \
14092 conftest$ac_exeext conftest.$ac_ext
14096 CFLAGS="$xorg_testset_save_CFLAGS"
14098 eval supported=\$$cacheid
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14100 $as_echo "$supported" >&6; }
14101 if test "$supported" = "yes" ; then
14102 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14107 if test $found = "no" ; then
14108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14116 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14119 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14120 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14121 if eval \${$cacheid+:} false; then :
14122 $as_echo_n "(cached) " >&6
14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125 /* end confdefs.h. */
14135 if ac_fn_c_try_link "$LINENO"; then :
14140 rm -f core conftest.err conftest.$ac_objext \
14141 conftest$ac_exeext conftest.$ac_ext
14145 CFLAGS="$xorg_testset_save_CFLAGS"
14147 eval supported=\$$cacheid
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14149 $as_echo "$supported" >&6; }
14150 if test "$supported" = "yes" ; then
14151 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14170 xorg_testset_save_CFLAGS="$CFLAGS"
14172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14175 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14176 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14177 $as_echo_n "(cached) " >&6
14179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14180 /* end confdefs.h. */
14183 if ac_fn_c_try_compile "$LINENO"; then :
14184 xorg_cv_cc_flag_unknown_warning_option=yes
14186 xorg_cv_cc_flag_unknown_warning_option=no
14188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14191 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14193 CFLAGS="$xorg_testset_save_CFLAGS"
14196 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14202 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14203 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14204 $as_echo_n "(cached) " >&6
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14210 if ac_fn_c_try_compile "$LINENO"; then :
14211 xorg_cv_cc_flag_unused_command_line_argument=yes
14213 xorg_cv_cc_flag_unused_command_line_argument=no
14215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14218 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14220 CFLAGS="$xorg_testset_save_CFLAGS"
14225 if test $found = "no" ; then
14226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14234 CFLAGS="$CFLAGS -Werror=nonnull"
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14237 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14238 cacheid=xorg_cv_cc_flag__Werror_nonnull
14239 if eval \${$cacheid+:} false; then :
14240 $as_echo_n "(cached) " >&6
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14253 if ac_fn_c_try_link "$LINENO"; then :
14258 rm -f core conftest.err conftest.$ac_objext \
14259 conftest$ac_exeext conftest.$ac_ext
14263 CFLAGS="$xorg_testset_save_CFLAGS"
14265 eval supported=\$$cacheid
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14267 $as_echo "$supported" >&6; }
14268 if test "$supported" = "yes" ; then
14269 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14288 xorg_testset_save_CFLAGS="$CFLAGS"
14290 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14293 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14294 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14295 $as_echo_n "(cached) " >&6
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14301 if ac_fn_c_try_compile "$LINENO"; then :
14302 xorg_cv_cc_flag_unknown_warning_option=yes
14304 xorg_cv_cc_flag_unknown_warning_option=no
14306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14309 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14311 CFLAGS="$xorg_testset_save_CFLAGS"
14314 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14320 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14321 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14322 $as_echo_n "(cached) " >&6
14324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h. */
14328 if ac_fn_c_try_compile "$LINENO"; then :
14329 xorg_cv_cc_flag_unused_command_line_argument=yes
14331 xorg_cv_cc_flag_unused_command_line_argument=no
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14336 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14338 CFLAGS="$xorg_testset_save_CFLAGS"
14343 if test $found = "no" ; then
14344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14352 CFLAGS="$CFLAGS -Werror=init-self"
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14355 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14356 cacheid=xorg_cv_cc_flag__Werror_init_self
14357 if eval \${$cacheid+:} false; then :
14358 $as_echo_n "(cached) " >&6
14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14371 if ac_fn_c_try_link "$LINENO"; then :
14376 rm -f core conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
14381 CFLAGS="$xorg_testset_save_CFLAGS"
14383 eval supported=\$$cacheid
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14385 $as_echo "$supported" >&6; }
14386 if test "$supported" = "yes" ; then
14387 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14406 xorg_testset_save_CFLAGS="$CFLAGS"
14408 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14411 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14412 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14413 $as_echo_n "(cached) " >&6
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14419 if ac_fn_c_try_compile "$LINENO"; then :
14420 xorg_cv_cc_flag_unknown_warning_option=yes
14422 xorg_cv_cc_flag_unknown_warning_option=no
14424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14427 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14429 CFLAGS="$xorg_testset_save_CFLAGS"
14432 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14438 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14439 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14440 $as_echo_n "(cached) " >&6
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14446 if ac_fn_c_try_compile "$LINENO"; then :
14447 xorg_cv_cc_flag_unused_command_line_argument=yes
14449 xorg_cv_cc_flag_unused_command_line_argument=no
14451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14454 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14456 CFLAGS="$xorg_testset_save_CFLAGS"
14461 if test $found = "no" ; then
14462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14470 CFLAGS="$CFLAGS -Werror=main"
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14473 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14474 cacheid=xorg_cv_cc_flag__Werror_main
14475 if eval \${$cacheid+:} false; then :
14476 $as_echo_n "(cached) " >&6
14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14489 if ac_fn_c_try_link "$LINENO"; then :
14494 rm -f core conftest.err conftest.$ac_objext \
14495 conftest$ac_exeext conftest.$ac_ext
14499 CFLAGS="$xorg_testset_save_CFLAGS"
14501 eval supported=\$$cacheid
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14503 $as_echo "$supported" >&6; }
14504 if test "$supported" = "yes" ; then
14505 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14524 xorg_testset_save_CFLAGS="$CFLAGS"
14526 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14529 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14530 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14531 $as_echo_n "(cached) " >&6
14533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h. */
14537 if ac_fn_c_try_compile "$LINENO"; then :
14538 xorg_cv_cc_flag_unknown_warning_option=yes
14540 xorg_cv_cc_flag_unknown_warning_option=no
14542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14545 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14547 CFLAGS="$xorg_testset_save_CFLAGS"
14550 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14556 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14557 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14558 $as_echo_n "(cached) " >&6
14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14564 if ac_fn_c_try_compile "$LINENO"; then :
14565 xorg_cv_cc_flag_unused_command_line_argument=yes
14567 xorg_cv_cc_flag_unused_command_line_argument=no
14569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14572 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14574 CFLAGS="$xorg_testset_save_CFLAGS"
14579 if test $found = "no" ; then
14580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14588 CFLAGS="$CFLAGS -Werror=missing-braces"
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14591 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14592 cacheid=xorg_cv_cc_flag__Werror_missing_braces
14593 if eval \${$cacheid+:} false; then :
14594 $as_echo_n "(cached) " >&6
14596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14597 /* end confdefs.h. */
14607 if ac_fn_c_try_link "$LINENO"; then :
14612 rm -f core conftest.err conftest.$ac_objext \
14613 conftest$ac_exeext conftest.$ac_ext
14617 CFLAGS="$xorg_testset_save_CFLAGS"
14619 eval supported=\$$cacheid
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14621 $as_echo "$supported" >&6; }
14622 if test "$supported" = "yes" ; then
14623 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14642 xorg_testset_save_CFLAGS="$CFLAGS"
14644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14647 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14648 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14649 $as_echo_n "(cached) " >&6
14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652 /* end confdefs.h. */
14655 if ac_fn_c_try_compile "$LINENO"; then :
14656 xorg_cv_cc_flag_unknown_warning_option=yes
14658 xorg_cv_cc_flag_unknown_warning_option=no
14660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14663 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14665 CFLAGS="$xorg_testset_save_CFLAGS"
14668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14674 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14675 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14676 $as_echo_n "(cached) " >&6
14678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679 /* end confdefs.h. */
14682 if ac_fn_c_try_compile "$LINENO"; then :
14683 xorg_cv_cc_flag_unused_command_line_argument=yes
14685 xorg_cv_cc_flag_unused_command_line_argument=no
14687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14690 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14692 CFLAGS="$xorg_testset_save_CFLAGS"
14697 if test $found = "no" ; then
14698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14706 CFLAGS="$CFLAGS -Werror=sequence-point"
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14709 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14710 cacheid=xorg_cv_cc_flag__Werror_sequence_point
14711 if eval \${$cacheid+:} false; then :
14712 $as_echo_n "(cached) " >&6
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14725 if ac_fn_c_try_link "$LINENO"; then :
14730 rm -f core conftest.err conftest.$ac_objext \
14731 conftest$ac_exeext conftest.$ac_ext
14735 CFLAGS="$xorg_testset_save_CFLAGS"
14737 eval supported=\$$cacheid
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14739 $as_echo "$supported" >&6; }
14740 if test "$supported" = "yes" ; then
14741 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14760 xorg_testset_save_CFLAGS="$CFLAGS"
14762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14765 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14766 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14767 $as_echo_n "(cached) " >&6
14769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770 /* end confdefs.h. */
14773 if ac_fn_c_try_compile "$LINENO"; then :
14774 xorg_cv_cc_flag_unknown_warning_option=yes
14776 xorg_cv_cc_flag_unknown_warning_option=no
14778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14781 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14783 CFLAGS="$xorg_testset_save_CFLAGS"
14786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14792 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14793 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14794 $as_echo_n "(cached) " >&6
14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h. */
14800 if ac_fn_c_try_compile "$LINENO"; then :
14801 xorg_cv_cc_flag_unused_command_line_argument=yes
14803 xorg_cv_cc_flag_unused_command_line_argument=no
14805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14808 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14810 CFLAGS="$xorg_testset_save_CFLAGS"
14815 if test $found = "no" ; then
14816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14824 CFLAGS="$CFLAGS -Werror=return-type"
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14827 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14828 cacheid=xorg_cv_cc_flag__Werror_return_type
14829 if eval \${$cacheid+:} false; then :
14830 $as_echo_n "(cached) " >&6
14832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14833 /* end confdefs.h. */
14843 if ac_fn_c_try_link "$LINENO"; then :
14848 rm -f core conftest.err conftest.$ac_objext \
14849 conftest$ac_exeext conftest.$ac_ext
14853 CFLAGS="$xorg_testset_save_CFLAGS"
14855 eval supported=\$$cacheid
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14857 $as_echo "$supported" >&6; }
14858 if test "$supported" = "yes" ; then
14859 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14864 if test $found = "no" ; then
14865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14873 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14876 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14877 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14878 if eval \${$cacheid+:} false; then :
14879 $as_echo_n "(cached) " >&6
14881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14882 /* end confdefs.h. */
14892 if ac_fn_c_try_link "$LINENO"; then :
14897 rm -f core conftest.err conftest.$ac_objext \
14898 conftest$ac_exeext conftest.$ac_ext
14902 CFLAGS="$xorg_testset_save_CFLAGS"
14904 eval supported=\$$cacheid
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14906 $as_echo "$supported" >&6; }
14907 if test "$supported" = "yes" ; then
14908 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14927 xorg_testset_save_CFLAGS="$CFLAGS"
14929 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14932 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14933 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14934 $as_echo_n "(cached) " >&6
14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h. */
14940 if ac_fn_c_try_compile "$LINENO"; then :
14941 xorg_cv_cc_flag_unknown_warning_option=yes
14943 xorg_cv_cc_flag_unknown_warning_option=no
14945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14948 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14950 CFLAGS="$xorg_testset_save_CFLAGS"
14953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14959 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14960 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14961 $as_echo_n "(cached) " >&6
14963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h. */
14967 if ac_fn_c_try_compile "$LINENO"; then :
14968 xorg_cv_cc_flag_unused_command_line_argument=yes
14970 xorg_cv_cc_flag_unused_command_line_argument=no
14972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14975 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14977 CFLAGS="$xorg_testset_save_CFLAGS"
14982 if test $found = "no" ; then
14983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14991 CFLAGS="$CFLAGS -Werror=trigraphs"
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14994 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14995 cacheid=xorg_cv_cc_flag__Werror_trigraphs
14996 if eval \${$cacheid+:} false; then :
14997 $as_echo_n "(cached) " >&6
14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15010 if ac_fn_c_try_link "$LINENO"; then :
15015 rm -f core conftest.err conftest.$ac_objext \
15016 conftest$ac_exeext conftest.$ac_ext
15020 CFLAGS="$xorg_testset_save_CFLAGS"
15022 eval supported=\$$cacheid
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15024 $as_echo "$supported" >&6; }
15025 if test "$supported" = "yes" ; then
15026 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15045 xorg_testset_save_CFLAGS="$CFLAGS"
15047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15050 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15051 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15052 $as_echo_n "(cached) " >&6
15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15058 if ac_fn_c_try_compile "$LINENO"; then :
15059 xorg_cv_cc_flag_unknown_warning_option=yes
15061 xorg_cv_cc_flag_unknown_warning_option=no
15063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15066 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15068 CFLAGS="$xorg_testset_save_CFLAGS"
15071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15077 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15078 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15079 $as_echo_n "(cached) " >&6
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15085 if ac_fn_c_try_compile "$LINENO"; then :
15086 xorg_cv_cc_flag_unused_command_line_argument=yes
15088 xorg_cv_cc_flag_unused_command_line_argument=no
15090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15093 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15095 CFLAGS="$xorg_testset_save_CFLAGS"
15100 if test $found = "no" ; then
15101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15109 CFLAGS="$CFLAGS -Werror=array-bounds"
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15112 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15113 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15114 if eval \${$cacheid+:} false; then :
15115 $as_echo_n "(cached) " >&6
15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15128 if ac_fn_c_try_link "$LINENO"; then :
15133 rm -f core conftest.err conftest.$ac_objext \
15134 conftest$ac_exeext conftest.$ac_ext
15138 CFLAGS="$xorg_testset_save_CFLAGS"
15140 eval supported=\$$cacheid
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15142 $as_echo "$supported" >&6; }
15143 if test "$supported" = "yes" ; then
15144 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15163 xorg_testset_save_CFLAGS="$CFLAGS"
15165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15168 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15169 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15170 $as_echo_n "(cached) " >&6
15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h. */
15176 if ac_fn_c_try_compile "$LINENO"; then :
15177 xorg_cv_cc_flag_unknown_warning_option=yes
15179 xorg_cv_cc_flag_unknown_warning_option=no
15181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15184 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15186 CFLAGS="$xorg_testset_save_CFLAGS"
15189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15195 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15196 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15197 $as_echo_n "(cached) " >&6
15199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15200 /* end confdefs.h. */
15203 if ac_fn_c_try_compile "$LINENO"; then :
15204 xorg_cv_cc_flag_unused_command_line_argument=yes
15206 xorg_cv_cc_flag_unused_command_line_argument=no
15208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15211 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15213 CFLAGS="$xorg_testset_save_CFLAGS"
15218 if test $found = "no" ; then
15219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15227 CFLAGS="$CFLAGS -Werror=write-strings"
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15230 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15231 cacheid=xorg_cv_cc_flag__Werror_write_strings
15232 if eval \${$cacheid+:} false; then :
15233 $as_echo_n "(cached) " >&6
15235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h. */
15246 if ac_fn_c_try_link "$LINENO"; then :
15251 rm -f core conftest.err conftest.$ac_objext \
15252 conftest$ac_exeext conftest.$ac_ext
15256 CFLAGS="$xorg_testset_save_CFLAGS"
15258 eval supported=\$$cacheid
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15260 $as_echo "$supported" >&6; }
15261 if test "$supported" = "yes" ; then
15262 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15281 xorg_testset_save_CFLAGS="$CFLAGS"
15283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15286 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15287 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15288 $as_echo_n "(cached) " >&6
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15294 if ac_fn_c_try_compile "$LINENO"; then :
15295 xorg_cv_cc_flag_unknown_warning_option=yes
15297 xorg_cv_cc_flag_unknown_warning_option=no
15299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15302 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15304 CFLAGS="$xorg_testset_save_CFLAGS"
15307 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15313 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15314 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_cc_flag_unused_command_line_argument=yes
15324 xorg_cv_cc_flag_unused_command_line_argument=no
15326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15329 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15331 CFLAGS="$xorg_testset_save_CFLAGS"
15336 if test $found = "no" ; then
15337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15345 CFLAGS="$CFLAGS -Werror=address"
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15348 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15349 cacheid=xorg_cv_cc_flag__Werror_address
15350 if eval \${$cacheid+:} false; then :
15351 $as_echo_n "(cached) " >&6
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15364 if ac_fn_c_try_link "$LINENO"; then :
15369 rm -f core conftest.err conftest.$ac_objext \
15370 conftest$ac_exeext conftest.$ac_ext
15374 CFLAGS="$xorg_testset_save_CFLAGS"
15376 eval supported=\$$cacheid
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15378 $as_echo "$supported" >&6; }
15379 if test "$supported" = "yes" ; then
15380 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15399 xorg_testset_save_CFLAGS="$CFLAGS"
15401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15404 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15405 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15406 $as_echo_n "(cached) " >&6
15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h. */
15412 if ac_fn_c_try_compile "$LINENO"; then :
15413 xorg_cv_cc_flag_unknown_warning_option=yes
15415 xorg_cv_cc_flag_unknown_warning_option=no
15417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15420 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15422 CFLAGS="$xorg_testset_save_CFLAGS"
15425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15431 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15432 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15433 $as_echo_n "(cached) " >&6
15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h. */
15439 if ac_fn_c_try_compile "$LINENO"; then :
15440 xorg_cv_cc_flag_unused_command_line_argument=yes
15442 xorg_cv_cc_flag_unused_command_line_argument=no
15444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15447 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15449 CFLAGS="$xorg_testset_save_CFLAGS"
15454 if test $found = "no" ; then
15455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15463 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15466 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15467 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15468 if eval \${$cacheid+:} false; then :
15469 $as_echo_n "(cached) " >&6
15471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15472 /* end confdefs.h. */
15482 if ac_fn_c_try_link "$LINENO"; then :
15487 rm -f core conftest.err conftest.$ac_objext \
15488 conftest$ac_exeext conftest.$ac_ext
15492 CFLAGS="$xorg_testset_save_CFLAGS"
15494 eval supported=\$$cacheid
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15496 $as_echo "$supported" >&6; }
15497 if test "$supported" = "yes" ; then
15498 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15503 if test $found = "no" ; then
15504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15512 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15515 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15516 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15517 if eval \${$cacheid+:} false; then :
15518 $as_echo_n "(cached) " >&6
15520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15521 /* end confdefs.h. */
15531 if ac_fn_c_try_link "$LINENO"; then :
15536 rm -f core conftest.err conftest.$ac_objext \
15537 conftest$ac_exeext conftest.$ac_ext
15541 CFLAGS="$xorg_testset_save_CFLAGS"
15543 eval supported=\$$cacheid
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15545 $as_echo "$supported" >&6; }
15546 if test "$supported" = "yes" ; then
15547 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15566 xorg_testset_save_CFLAGS="$CFLAGS"
15568 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15571 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15572 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15573 $as_echo_n "(cached) " >&6
15575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576 /* end confdefs.h. */
15579 if ac_fn_c_try_compile "$LINENO"; then :
15580 xorg_cv_cc_flag_unknown_warning_option=yes
15582 xorg_cv_cc_flag_unknown_warning_option=no
15584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15587 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15589 CFLAGS="$xorg_testset_save_CFLAGS"
15592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15598 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15599 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15600 $as_echo_n "(cached) " >&6
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h. */
15606 if ac_fn_c_try_compile "$LINENO"; then :
15607 xorg_cv_cc_flag_unused_command_line_argument=yes
15609 xorg_cv_cc_flag_unused_command_line_argument=no
15611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15614 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15616 CFLAGS="$xorg_testset_save_CFLAGS"
15621 if test $found = "no" ; then
15622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15626 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15630 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15633 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15634 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15635 if eval \${$cacheid+:} false; then :
15636 $as_echo_n "(cached) " >&6
15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15649 if ac_fn_c_try_link "$LINENO"; then :
15654 rm -f core conftest.err conftest.$ac_objext \
15655 conftest$ac_exeext conftest.$ac_ext
15659 CFLAGS="$xorg_testset_save_CFLAGS"
15661 eval supported=\$$cacheid
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15663 $as_echo "$supported" >&6; }
15664 if test "$supported" = "yes" ; then
15665 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15670 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15672 { $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
15673 $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;}
15687 xorg_testset_save_CFLAGS="$CFLAGS"
15689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15692 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15693 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15694 $as_echo_n "(cached) " >&6
15696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697 /* end confdefs.h. */
15700 if ac_fn_c_try_compile "$LINENO"; then :
15701 xorg_cv_cc_flag_unknown_warning_option=yes
15703 xorg_cv_cc_flag_unknown_warning_option=no
15705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15708 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15710 CFLAGS="$xorg_testset_save_CFLAGS"
15713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15719 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15720 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15721 $as_echo_n "(cached) " >&6
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15727 if ac_fn_c_try_compile "$LINENO"; then :
15728 xorg_cv_cc_flag_unused_command_line_argument=yes
15730 xorg_cv_cc_flag_unused_command_line_argument=no
15732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15735 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15737 CFLAGS="$xorg_testset_save_CFLAGS"
15742 if test $found = "no" ; then
15743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15751 CFLAGS="$CFLAGS -Wimplicit"
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15754 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15755 cacheid=xorg_cv_cc_flag__Wimplicit
15756 if eval \${$cacheid+:} false; then :
15757 $as_echo_n "(cached) " >&6
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15770 if ac_fn_c_try_link "$LINENO"; then :
15775 rm -f core conftest.err conftest.$ac_objext \
15776 conftest$ac_exeext conftest.$ac_ext
15780 CFLAGS="$xorg_testset_save_CFLAGS"
15782 eval supported=\$$cacheid
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15784 $as_echo "$supported" >&6; }
15785 if test "$supported" = "yes" ; then
15786 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15805 xorg_testset_save_CFLAGS="$CFLAGS"
15807 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15810 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15811 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15812 $as_echo_n "(cached) " >&6
15814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h. */
15818 if ac_fn_c_try_compile "$LINENO"; then :
15819 xorg_cv_cc_flag_unknown_warning_option=yes
15821 xorg_cv_cc_flag_unknown_warning_option=no
15823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15826 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15828 CFLAGS="$xorg_testset_save_CFLAGS"
15831 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15837 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15838 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15839 $as_echo_n "(cached) " >&6
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15845 if ac_fn_c_try_compile "$LINENO"; then :
15846 xorg_cv_cc_flag_unused_command_line_argument=yes
15848 xorg_cv_cc_flag_unused_command_line_argument=no
15850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15853 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15855 CFLAGS="$xorg_testset_save_CFLAGS"
15860 if test $found = "no" ; then
15861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15869 CFLAGS="$CFLAGS -Wnonnull"
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15872 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15873 cacheid=xorg_cv_cc_flag__Wnonnull
15874 if eval \${$cacheid+:} false; then :
15875 $as_echo_n "(cached) " >&6
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15888 if ac_fn_c_try_link "$LINENO"; then :
15893 rm -f core conftest.err conftest.$ac_objext \
15894 conftest$ac_exeext conftest.$ac_ext
15898 CFLAGS="$xorg_testset_save_CFLAGS"
15900 eval supported=\$$cacheid
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15902 $as_echo "$supported" >&6; }
15903 if test "$supported" = "yes" ; then
15904 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15923 xorg_testset_save_CFLAGS="$CFLAGS"
15925 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15928 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15929 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15930 $as_echo_n "(cached) " >&6
15932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h. */
15936 if ac_fn_c_try_compile "$LINENO"; then :
15937 xorg_cv_cc_flag_unknown_warning_option=yes
15939 xorg_cv_cc_flag_unknown_warning_option=no
15941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15944 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15946 CFLAGS="$xorg_testset_save_CFLAGS"
15949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15955 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15956 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15957 $as_echo_n "(cached) " >&6
15959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h. */
15963 if ac_fn_c_try_compile "$LINENO"; then :
15964 xorg_cv_cc_flag_unused_command_line_argument=yes
15966 xorg_cv_cc_flag_unused_command_line_argument=no
15968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15971 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15973 CFLAGS="$xorg_testset_save_CFLAGS"
15978 if test $found = "no" ; then
15979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15987 CFLAGS="$CFLAGS -Winit-self"
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15990 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15991 cacheid=xorg_cv_cc_flag__Winit_self
15992 if eval \${$cacheid+:} false; then :
15993 $as_echo_n "(cached) " >&6
15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
16006 if ac_fn_c_try_link "$LINENO"; then :
16011 rm -f core conftest.err conftest.$ac_objext \
16012 conftest$ac_exeext conftest.$ac_ext
16016 CFLAGS="$xorg_testset_save_CFLAGS"
16018 eval supported=\$$cacheid
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16020 $as_echo "$supported" >&6; }
16021 if test "$supported" = "yes" ; then
16022 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16041 xorg_testset_save_CFLAGS="$CFLAGS"
16043 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16046 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16047 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16048 $as_echo_n "(cached) " >&6
16050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051 /* end confdefs.h. */
16054 if ac_fn_c_try_compile "$LINENO"; then :
16055 xorg_cv_cc_flag_unknown_warning_option=yes
16057 xorg_cv_cc_flag_unknown_warning_option=no
16059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16062 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16064 CFLAGS="$xorg_testset_save_CFLAGS"
16067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16073 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16074 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16075 $as_echo_n "(cached) " >&6
16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078 /* end confdefs.h. */
16081 if ac_fn_c_try_compile "$LINENO"; then :
16082 xorg_cv_cc_flag_unused_command_line_argument=yes
16084 xorg_cv_cc_flag_unused_command_line_argument=no
16086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16089 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16091 CFLAGS="$xorg_testset_save_CFLAGS"
16096 if test $found = "no" ; then
16097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16105 CFLAGS="$CFLAGS -Wmain"
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16108 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16109 cacheid=xorg_cv_cc_flag__Wmain
16110 if eval \${$cacheid+:} false; then :
16111 $as_echo_n "(cached) " >&6
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16124 if ac_fn_c_try_link "$LINENO"; then :
16129 rm -f core conftest.err conftest.$ac_objext \
16130 conftest$ac_exeext conftest.$ac_ext
16134 CFLAGS="$xorg_testset_save_CFLAGS"
16136 eval supported=\$$cacheid
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16138 $as_echo "$supported" >&6; }
16139 if test "$supported" = "yes" ; then
16140 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16159 xorg_testset_save_CFLAGS="$CFLAGS"
16161 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16164 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16165 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16166 $as_echo_n "(cached) " >&6
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16172 if ac_fn_c_try_compile "$LINENO"; then :
16173 xorg_cv_cc_flag_unknown_warning_option=yes
16175 xorg_cv_cc_flag_unknown_warning_option=no
16177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16180 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16182 CFLAGS="$xorg_testset_save_CFLAGS"
16185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16191 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16192 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16193 $as_echo_n "(cached) " >&6
16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16199 if ac_fn_c_try_compile "$LINENO"; then :
16200 xorg_cv_cc_flag_unused_command_line_argument=yes
16202 xorg_cv_cc_flag_unused_command_line_argument=no
16204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16207 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16209 CFLAGS="$xorg_testset_save_CFLAGS"
16214 if test $found = "no" ; then
16215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16223 CFLAGS="$CFLAGS -Wmissing-braces"
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16226 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16227 cacheid=xorg_cv_cc_flag__Wmissing_braces
16228 if eval \${$cacheid+:} false; then :
16229 $as_echo_n "(cached) " >&6
16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16242 if ac_fn_c_try_link "$LINENO"; then :
16247 rm -f core conftest.err conftest.$ac_objext \
16248 conftest$ac_exeext conftest.$ac_ext
16252 CFLAGS="$xorg_testset_save_CFLAGS"
16254 eval supported=\$$cacheid
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16256 $as_echo "$supported" >&6; }
16257 if test "$supported" = "yes" ; then
16258 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16277 xorg_testset_save_CFLAGS="$CFLAGS"
16279 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16282 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16283 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16284 $as_echo_n "(cached) " >&6
16286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287 /* end confdefs.h. */
16290 if ac_fn_c_try_compile "$LINENO"; then :
16291 xorg_cv_cc_flag_unknown_warning_option=yes
16293 xorg_cv_cc_flag_unknown_warning_option=no
16295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16298 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16300 CFLAGS="$xorg_testset_save_CFLAGS"
16303 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16309 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16310 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16311 $as_echo_n "(cached) " >&6
16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314 /* end confdefs.h. */
16317 if ac_fn_c_try_compile "$LINENO"; then :
16318 xorg_cv_cc_flag_unused_command_line_argument=yes
16320 xorg_cv_cc_flag_unused_command_line_argument=no
16322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16325 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16327 CFLAGS="$xorg_testset_save_CFLAGS"
16332 if test $found = "no" ; then
16333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16341 CFLAGS="$CFLAGS -Wsequence-point"
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16344 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16345 cacheid=xorg_cv_cc_flag__Wsequence_point
16346 if eval \${$cacheid+:} false; then :
16347 $as_echo_n "(cached) " >&6
16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350 /* end confdefs.h. */
16360 if ac_fn_c_try_link "$LINENO"; then :
16365 rm -f core conftest.err conftest.$ac_objext \
16366 conftest$ac_exeext conftest.$ac_ext
16370 CFLAGS="$xorg_testset_save_CFLAGS"
16372 eval supported=\$$cacheid
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16374 $as_echo "$supported" >&6; }
16375 if test "$supported" = "yes" ; then
16376 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16395 xorg_testset_save_CFLAGS="$CFLAGS"
16397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16400 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16401 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16402 $as_echo_n "(cached) " >&6
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16408 if ac_fn_c_try_compile "$LINENO"; then :
16409 xorg_cv_cc_flag_unknown_warning_option=yes
16411 xorg_cv_cc_flag_unknown_warning_option=no
16413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16416 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16418 CFLAGS="$xorg_testset_save_CFLAGS"
16421 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16427 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16428 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16429 $as_echo_n "(cached) " >&6
16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h. */
16435 if ac_fn_c_try_compile "$LINENO"; then :
16436 xorg_cv_cc_flag_unused_command_line_argument=yes
16438 xorg_cv_cc_flag_unused_command_line_argument=no
16440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16443 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16445 CFLAGS="$xorg_testset_save_CFLAGS"
16450 if test $found = "no" ; then
16451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16455 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16459 CFLAGS="$CFLAGS -Wreturn-type"
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16462 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16463 cacheid=xorg_cv_cc_flag__Wreturn_type
16464 if eval \${$cacheid+:} false; then :
16465 $as_echo_n "(cached) " >&6
16467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468 /* end confdefs.h. */
16478 if ac_fn_c_try_link "$LINENO"; then :
16483 rm -f core conftest.err conftest.$ac_objext \
16484 conftest$ac_exeext conftest.$ac_ext
16488 CFLAGS="$xorg_testset_save_CFLAGS"
16490 eval supported=\$$cacheid
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16492 $as_echo "$supported" >&6; }
16493 if test "$supported" = "yes" ; then
16494 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16513 xorg_testset_save_CFLAGS="$CFLAGS"
16515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16518 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16519 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16520 $as_echo_n "(cached) " >&6
16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h. */
16526 if ac_fn_c_try_compile "$LINENO"; then :
16527 xorg_cv_cc_flag_unknown_warning_option=yes
16529 xorg_cv_cc_flag_unknown_warning_option=no
16531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16534 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16536 CFLAGS="$xorg_testset_save_CFLAGS"
16539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16545 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16546 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16547 $as_echo_n "(cached) " >&6
16549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550 /* end confdefs.h. */
16553 if ac_fn_c_try_compile "$LINENO"; then :
16554 xorg_cv_cc_flag_unused_command_line_argument=yes
16556 xorg_cv_cc_flag_unused_command_line_argument=no
16558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16561 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16563 CFLAGS="$xorg_testset_save_CFLAGS"
16568 if test $found = "no" ; then
16569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16577 CFLAGS="$CFLAGS -Wtrigraphs"
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16580 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16581 cacheid=xorg_cv_cc_flag__Wtrigraphs
16582 if eval \${$cacheid+:} false; then :
16583 $as_echo_n "(cached) " >&6
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16596 if ac_fn_c_try_link "$LINENO"; then :
16601 rm -f core conftest.err conftest.$ac_objext \
16602 conftest$ac_exeext conftest.$ac_ext
16606 CFLAGS="$xorg_testset_save_CFLAGS"
16608 eval supported=\$$cacheid
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16610 $as_echo "$supported" >&6; }
16611 if test "$supported" = "yes" ; then
16612 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16631 xorg_testset_save_CFLAGS="$CFLAGS"
16633 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16636 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16637 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16638 $as_echo_n "(cached) " >&6
16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h. */
16644 if ac_fn_c_try_compile "$LINENO"; then :
16645 xorg_cv_cc_flag_unknown_warning_option=yes
16647 xorg_cv_cc_flag_unknown_warning_option=no
16649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16652 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16654 CFLAGS="$xorg_testset_save_CFLAGS"
16657 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16663 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16664 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16665 $as_echo_n "(cached) " >&6
16667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668 /* end confdefs.h. */
16671 if ac_fn_c_try_compile "$LINENO"; then :
16672 xorg_cv_cc_flag_unused_command_line_argument=yes
16674 xorg_cv_cc_flag_unused_command_line_argument=no
16676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16679 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16681 CFLAGS="$xorg_testset_save_CFLAGS"
16686 if test $found = "no" ; then
16687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16695 CFLAGS="$CFLAGS -Warray-bounds"
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16698 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16699 cacheid=xorg_cv_cc_flag__Warray_bounds
16700 if eval \${$cacheid+:} false; then :
16701 $as_echo_n "(cached) " >&6
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16714 if ac_fn_c_try_link "$LINENO"; then :
16719 rm -f core conftest.err conftest.$ac_objext \
16720 conftest$ac_exeext conftest.$ac_ext
16724 CFLAGS="$xorg_testset_save_CFLAGS"
16726 eval supported=\$$cacheid
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16728 $as_echo "$supported" >&6; }
16729 if test "$supported" = "yes" ; then
16730 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16749 xorg_testset_save_CFLAGS="$CFLAGS"
16751 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16754 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16755 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16756 $as_echo_n "(cached) " >&6
16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759 /* end confdefs.h. */
16762 if ac_fn_c_try_compile "$LINENO"; then :
16763 xorg_cv_cc_flag_unknown_warning_option=yes
16765 xorg_cv_cc_flag_unknown_warning_option=no
16767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16770 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16772 CFLAGS="$xorg_testset_save_CFLAGS"
16775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16781 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16782 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16783 $as_echo_n "(cached) " >&6
16785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786 /* end confdefs.h. */
16789 if ac_fn_c_try_compile "$LINENO"; then :
16790 xorg_cv_cc_flag_unused_command_line_argument=yes
16792 xorg_cv_cc_flag_unused_command_line_argument=no
16794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16797 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16799 CFLAGS="$xorg_testset_save_CFLAGS"
16804 if test $found = "no" ; then
16805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16813 CFLAGS="$CFLAGS -Wwrite-strings"
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16816 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16817 cacheid=xorg_cv_cc_flag__Wwrite_strings
16818 if eval \${$cacheid+:} false; then :
16819 $as_echo_n "(cached) " >&6
16821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16822 /* end confdefs.h. */
16832 if ac_fn_c_try_link "$LINENO"; then :
16837 rm -f core conftest.err conftest.$ac_objext \
16838 conftest$ac_exeext conftest.$ac_ext
16842 CFLAGS="$xorg_testset_save_CFLAGS"
16844 eval supported=\$$cacheid
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16846 $as_echo "$supported" >&6; }
16847 if test "$supported" = "yes" ; then
16848 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16867 xorg_testset_save_CFLAGS="$CFLAGS"
16869 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16872 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16873 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16874 $as_echo_n "(cached) " >&6
16876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16877 /* end confdefs.h. */
16880 if ac_fn_c_try_compile "$LINENO"; then :
16881 xorg_cv_cc_flag_unknown_warning_option=yes
16883 xorg_cv_cc_flag_unknown_warning_option=no
16885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16888 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16889 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16890 CFLAGS="$xorg_testset_save_CFLAGS"
16893 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16899 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16900 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16901 $as_echo_n "(cached) " >&6
16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h. */
16907 if ac_fn_c_try_compile "$LINENO"; then :
16908 xorg_cv_cc_flag_unused_command_line_argument=yes
16910 xorg_cv_cc_flag_unused_command_line_argument=no
16912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16915 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16917 CFLAGS="$xorg_testset_save_CFLAGS"
16922 if test $found = "no" ; then
16923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16931 CFLAGS="$CFLAGS -Waddress"
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16934 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16935 cacheid=xorg_cv_cc_flag__Waddress
16936 if eval \${$cacheid+:} false; then :
16937 $as_echo_n "(cached) " >&6
16939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940 /* end confdefs.h. */
16950 if ac_fn_c_try_link "$LINENO"; then :
16955 rm -f core conftest.err conftest.$ac_objext \
16956 conftest$ac_exeext conftest.$ac_ext
16960 CFLAGS="$xorg_testset_save_CFLAGS"
16962 eval supported=\$$cacheid
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16964 $as_echo "$supported" >&6; }
16965 if test "$supported" = "yes" ; then
16966 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16985 xorg_testset_save_CFLAGS="$CFLAGS"
16987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16990 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16991 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16992 $as_echo_n "(cached) " >&6
16994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h. */
16998 if ac_fn_c_try_compile "$LINENO"; then :
16999 xorg_cv_cc_flag_unknown_warning_option=yes
17001 xorg_cv_cc_flag_unknown_warning_option=no
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17006 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17008 CFLAGS="$xorg_testset_save_CFLAGS"
17011 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17017 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17018 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17019 $as_echo_n "(cached) " >&6
17021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17022 /* end confdefs.h. */
17025 if ac_fn_c_try_compile "$LINENO"; then :
17026 xorg_cv_cc_flag_unused_command_line_argument=yes
17028 xorg_cv_cc_flag_unused_command_line_argument=no
17030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17033 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17034 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17035 CFLAGS="$xorg_testset_save_CFLAGS"
17040 if test $found = "no" ; then
17041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17049 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17052 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17053 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17054 if eval \${$cacheid+:} false; then :
17055 $as_echo_n "(cached) " >&6
17057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h. */
17068 if ac_fn_c_try_link "$LINENO"; then :
17073 rm -f core conftest.err conftest.$ac_objext \
17074 conftest$ac_exeext conftest.$ac_ext
17078 CFLAGS="$xorg_testset_save_CFLAGS"
17080 eval supported=\$$cacheid
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17082 $as_echo "$supported" >&6; }
17083 if test "$supported" = "yes" ; then
17084 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17103 xorg_testset_save_CFLAGS="$CFLAGS"
17105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17108 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17109 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17110 $as_echo_n "(cached) " >&6
17112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113 /* end confdefs.h. */
17116 if ac_fn_c_try_compile "$LINENO"; then :
17117 xorg_cv_cc_flag_unknown_warning_option=yes
17119 xorg_cv_cc_flag_unknown_warning_option=no
17121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17124 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17126 CFLAGS="$xorg_testset_save_CFLAGS"
17129 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17135 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17136 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17137 $as_echo_n "(cached) " >&6
17139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17140 /* end confdefs.h. */
17143 if ac_fn_c_try_compile "$LINENO"; then :
17144 xorg_cv_cc_flag_unused_command_line_argument=yes
17146 xorg_cv_cc_flag_unused_command_line_argument=no
17148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17151 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17152 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17153 CFLAGS="$xorg_testset_save_CFLAGS"
17158 if test $found = "no" ; then
17159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17163 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17167 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17170 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17171 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17172 if eval \${$cacheid+:} false; then :
17173 $as_echo_n "(cached) " >&6
17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176 /* end confdefs.h. */
17186 if ac_fn_c_try_link "$LINENO"; then :
17191 rm -f core conftest.err conftest.$ac_objext \
17192 conftest$ac_exeext conftest.$ac_ext
17196 CFLAGS="$xorg_testset_save_CFLAGS"
17198 eval supported=\$$cacheid
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17200 $as_echo "$supported" >&6; }
17201 if test "$supported" = "yes" ; then
17202 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17216 CWARNFLAGS="$BASE_CFLAGS"
17217 if test "x$GCC" = xyes ; then
17218 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17228 # Check whether --enable-strict-compilation was given.
17229 if test "${enable_strict_compilation+set}" = set; then :
17230 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17254 xorg_testset_save_CFLAGS="$CFLAGS"
17256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17259 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17260 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17261 $as_echo_n "(cached) " >&6
17263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17264 /* end confdefs.h. */
17267 if ac_fn_c_try_compile "$LINENO"; then :
17268 xorg_cv_cc_flag_unknown_warning_option=yes
17270 xorg_cv_cc_flag_unknown_warning_option=no
17272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17275 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17277 CFLAGS="$xorg_testset_save_CFLAGS"
17280 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17286 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17287 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17288 $as_echo_n "(cached) " >&6
17290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17291 /* end confdefs.h. */
17294 if ac_fn_c_try_compile "$LINENO"; then :
17295 xorg_cv_cc_flag_unused_command_line_argument=yes
17297 xorg_cv_cc_flag_unused_command_line_argument=no
17299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17302 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17304 CFLAGS="$xorg_testset_save_CFLAGS"
17309 if test $found = "no" ; then
17310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17318 CFLAGS="$CFLAGS -pedantic"
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17321 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17322 cacheid=xorg_cv_cc_flag__pedantic
17323 if eval \${$cacheid+:} false; then :
17324 $as_echo_n "(cached) " >&6
17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h. */
17337 if ac_fn_c_try_link "$LINENO"; then :
17342 rm -f core conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
17347 CFLAGS="$xorg_testset_save_CFLAGS"
17349 eval supported=\$$cacheid
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17351 $as_echo "$supported" >&6; }
17352 if test "$supported" = "yes" ; then
17353 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17372 xorg_testset_save_CFLAGS="$CFLAGS"
17374 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17377 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17378 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17379 $as_echo_n "(cached) " >&6
17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17385 if ac_fn_c_try_compile "$LINENO"; then :
17386 xorg_cv_cc_flag_unknown_warning_option=yes
17388 xorg_cv_cc_flag_unknown_warning_option=no
17390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17393 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17395 CFLAGS="$xorg_testset_save_CFLAGS"
17398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17404 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17405 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17406 $as_echo_n "(cached) " >&6
17408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17409 /* end confdefs.h. */
17412 if ac_fn_c_try_compile "$LINENO"; then :
17413 xorg_cv_cc_flag_unused_command_line_argument=yes
17415 xorg_cv_cc_flag_unused_command_line_argument=no
17417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17420 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17422 CFLAGS="$xorg_testset_save_CFLAGS"
17427 if test $found = "no" ; then
17428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17436 CFLAGS="$CFLAGS -Werror"
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17439 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17440 cacheid=xorg_cv_cc_flag__Werror
17441 if eval \${$cacheid+:} false; then :
17442 $as_echo_n "(cached) " >&6
17444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17445 /* end confdefs.h. */
17455 if ac_fn_c_try_link "$LINENO"; then :
17460 rm -f core conftest.err conftest.$ac_objext \
17461 conftest$ac_exeext conftest.$ac_ext
17465 CFLAGS="$xorg_testset_save_CFLAGS"
17467 eval supported=\$$cacheid
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17469 $as_echo "$supported" >&6; }
17470 if test "$supported" = "yes" ; then
17471 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17476 if test $found = "no" ; then
17477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17485 CFLAGS="$CFLAGS -errwarn"
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17488 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17489 cacheid=xorg_cv_cc_flag__errwarn
17490 if eval \${$cacheid+:} false; then :
17491 $as_echo_n "(cached) " >&6
17493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494 /* end confdefs.h. */
17504 if ac_fn_c_try_link "$LINENO"; then :
17509 rm -f core conftest.err conftest.$ac_objext \
17510 conftest$ac_exeext conftest.$ac_ext
17514 CFLAGS="$xorg_testset_save_CFLAGS"
17516 eval supported=\$$cacheid
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17518 $as_echo "$supported" >&6; }
17519 if test "$supported" = "yes" ; then
17520 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17527 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17528 # activate it with -Werror, so we add it here explicitly.
17542 xorg_testset_save_CFLAGS="$CFLAGS"
17544 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17547 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17548 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17549 $as_echo_n "(cached) " >&6
17551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17552 /* end confdefs.h. */
17555 if ac_fn_c_try_compile "$LINENO"; then :
17556 xorg_cv_cc_flag_unknown_warning_option=yes
17558 xorg_cv_cc_flag_unknown_warning_option=no
17560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17563 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17565 CFLAGS="$xorg_testset_save_CFLAGS"
17568 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17574 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17575 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17576 $as_echo_n "(cached) " >&6
17578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h. */
17582 if ac_fn_c_try_compile "$LINENO"; then :
17583 xorg_cv_cc_flag_unused_command_line_argument=yes
17585 xorg_cv_cc_flag_unused_command_line_argument=no
17587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17590 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17592 CFLAGS="$xorg_testset_save_CFLAGS"
17597 if test $found = "no" ; then
17598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17606 CFLAGS="$CFLAGS -Werror=attributes"
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17609 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17610 cacheid=xorg_cv_cc_flag__Werror_attributes
17611 if eval \${$cacheid+:} false; then :
17612 $as_echo_n "(cached) " >&6
17614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h. */
17625 if ac_fn_c_try_link "$LINENO"; then :
17630 rm -f core conftest.err conftest.$ac_objext \
17631 conftest$ac_exeext conftest.$ac_ext
17635 CFLAGS="$xorg_testset_save_CFLAGS"
17637 eval supported=\$$cacheid
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17639 $as_echo "$supported" >&6; }
17640 if test "$supported" = "yes" ; then
17641 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17648 if test "x$STRICT_COMPILE" = "xyes"; then
17649 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17650 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17658 cat >>confdefs.h <<_ACEOF
17659 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17662 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17663 if test "x$PVM" = "x"; then
17667 cat >>confdefs.h <<_ACEOF
17668 #define PACKAGE_VERSION_MINOR $PVM
17671 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17672 if test "x$PVP" = "x"; then
17676 cat >>confdefs.h <<_ACEOF
17677 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17682 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17683 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17684 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17685 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17690 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17691 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17692 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17693 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17694 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17701 if test x$APP_MAN_SUFFIX = x ; then
17704 if test x$APP_MAN_DIR = x ; then
17705 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17708 if test x$LIB_MAN_SUFFIX = x ; then
17711 if test x$LIB_MAN_DIR = x ; then
17712 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17715 if test x$FILE_MAN_SUFFIX = x ; then
17717 solaris*) FILE_MAN_SUFFIX=4 ;;
17718 *) FILE_MAN_SUFFIX=5 ;;
17721 if test x$FILE_MAN_DIR = x ; then
17722 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17725 if test x$MISC_MAN_SUFFIX = x ; then
17727 solaris*) MISC_MAN_SUFFIX=5 ;;
17728 *) MISC_MAN_SUFFIX=7 ;;
17731 if test x$MISC_MAN_DIR = x ; then
17732 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17735 if test x$DRIVER_MAN_SUFFIX = x ; then
17737 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17738 *) DRIVER_MAN_SUFFIX=4 ;;
17741 if test x$DRIVER_MAN_DIR = x ; then
17742 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17745 if test x$ADMIN_MAN_SUFFIX = x ; then
17747 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17748 *) ADMIN_MAN_SUFFIX=8 ;;
17751 if test x$ADMIN_MAN_DIR = x ; then
17752 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17769 XORG_MAN_PAGE="X Version 11"
17772 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17773 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17774 -e 's|__xservername__|Xorg|g' \
17775 -e 's|__xconfigfile__|xorg.conf|g' \
17776 -e 's|__projectroot__|\$(prefix)|g' \
17777 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17778 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17779 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17780 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17781 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17782 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17783 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17787 # Check whether --enable-silent-rules was given.
17788 if test "${enable_silent_rules+set}" = set; then :
17789 enableval=$enable_silent_rules;
17792 case $enable_silent_rules in # (((
17793 yes) AM_DEFAULT_VERBOSITY=0;;
17794 no) AM_DEFAULT_VERBOSITY=1;;
17795 *) AM_DEFAULT_VERBOSITY=0;;
17797 am_make=${MAKE-make}
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17799 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17800 if ${am_cv_make_support_nested_variables+:} false; then :
17801 $as_echo_n "(cached) " >&6
17803 if $as_echo 'TRUE=$(BAR$(V))
17809 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17810 am_cv_make_support_nested_variables=yes
17812 am_cv_make_support_nested_variables=no
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17816 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17817 if test $am_cv_make_support_nested_variables = yes; then
17819 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17821 AM_V=$AM_DEFAULT_VERBOSITY
17822 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17828 # Checks for libraries.
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mtdev_open in -lmtdev" >&5
17830 $as_echo_n "checking for mtdev_open in -lmtdev... " >&6; }
17831 if ${ac_cv_lib_mtdev_mtdev_open+:} false; then :
17832 $as_echo_n "(cached) " >&6
17834 ac_check_lib_save_LIBS=$LIBS
17835 LIBS="-lmtdev $LIBS"
17836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17837 /* end confdefs.h. */
17839 /* Override any GCC internal prototype to avoid an error.
17840 Use char because int might match the return type of a GCC
17841 builtin and then its argument prototype would still apply. */
17845 char mtdev_open ();
17849 return mtdev_open ();
17854 if ac_fn_c_try_link "$LINENO"; then :
17855 ac_cv_lib_mtdev_mtdev_open=yes
17857 ac_cv_lib_mtdev_mtdev_open=no
17859 rm -f core conftest.err conftest.$ac_objext \
17860 conftest$ac_exeext conftest.$ac_ext
17861 LIBS=$ac_check_lib_save_LIBS
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtdev_mtdev_open" >&5
17864 $as_echo "$ac_cv_lib_mtdev_mtdev_open" >&6; }
17865 if test "x$ac_cv_lib_mtdev_mtdev_open" = xyes; then :
17866 cat >>confdefs.h <<_ACEOF
17867 #define HAVE_LIBMTDEV 1
17870 LIBS="-lmtdev $LIBS"
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2 in -lm" >&5
17875 $as_echo_n "checking for atan2 in -lm... " >&6; }
17876 if ${ac_cv_lib_m_atan2+:} false; then :
17877 $as_echo_n "(cached) " >&6
17879 ac_check_lib_save_LIBS=$LIBS
17881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17882 /* end confdefs.h. */
17884 /* Override any GCC internal prototype to avoid an error.
17885 Use char because int might match the return type of a GCC
17886 builtin and then its argument prototype would still apply. */
17899 if ac_fn_c_try_link "$LINENO"; then :
17900 ac_cv_lib_m_atan2=yes
17902 ac_cv_lib_m_atan2=no
17904 rm -f core conftest.err conftest.$ac_objext \
17905 conftest$ac_exeext conftest.$ac_ext
17906 LIBS=$ac_check_lib_save_LIBS
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2" >&5
17909 $as_echo "$ac_cv_lib_m_atan2" >&6; }
17910 if test "x$ac_cv_lib_m_atan2" = xyes; then :
17911 cat >>confdefs.h <<_ACEOF
17912 #define HAVE_LIBM 1
17920 # Obtain compiler/linker options for the mtrack driver dependencies
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17924 $as_echo_n "checking for XORG... " >&6; }
17926 if test -n "$XORG_CFLAGS"; then
17927 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17928 elif test -n "$PKG_CONFIG"; then
17929 if test -n "$PKG_CONFIG" && \
17930 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto \$REQUIRED_MODULES\""; } >&5
17931 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES") 2>&5
17933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17934 test $ac_status = 0; }; then
17935 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
17936 test "x$?" != "x0" && pkg_failed=yes
17943 if test -n "$XORG_LIBS"; then
17944 pkg_cv_XORG_LIBS="$XORG_LIBS"
17945 elif test -n "$PKG_CONFIG"; then
17946 if test -n "$PKG_CONFIG" && \
17947 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto \$REQUIRED_MODULES\""; } >&5
17948 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES") 2>&5
17950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17951 test $ac_status = 0; }; then
17952 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
17953 test "x$?" != "x0" && pkg_failed=yes
17963 if test $pkg_failed = yes; then
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17965 $as_echo "no" >&6; }
17967 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17968 _pkg_short_errors_supported=yes
17970 _pkg_short_errors_supported=no
17972 if test $_pkg_short_errors_supported = yes; then
17973 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>&1`
17975 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>&1`
17977 # Put the nasty error message in config.log where it belongs
17978 echo "$XORG_PKG_ERRORS" >&5
17980 as_fn_error $? "Package requirements (xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES) were not met:
17984 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17985 installed software in a non-standard prefix.
17987 Alternatively, you may set the environment variables XORG_CFLAGS
17988 and XORG_LIBS to avoid the need to call pkg-config.
17989 See the pkg-config man page for more details." "$LINENO" 5
17990 elif test $pkg_failed = untried; then
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17992 $as_echo "no" >&6; }
17993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17995 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17996 is in your PATH or set the PKG_CONFIG environment variable to the full
17997 path to pkg-config.
17999 Alternatively, you may set the environment variables XORG_CFLAGS
18000 and XORG_LIBS to avoid the need to call pkg-config.
18001 See the pkg-config man page for more details.
18003 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18004 See \`config.log' for more details" "$LINENO" 5; }
18006 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18007 XORG_LIBS=$pkg_cv_XORG_LIBS
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18009 $as_echo "yes" >&6; }
18017 # configure option for module install directory
18019 # Check whether --with-xorg-module-dir was given.
18020 if test "${with_xorg_module_dir+set}" = set; then :
18021 withval=$with_xorg_module_dir; moduledir="$withval"
18023 moduledir="$libdir/xorg/modules"
18026 inputdir=${moduledir}/input
18029 # configure option to build extra tools
18030 # Check whether --enable-tools was given.
18031 if test "${enable_tools+set}" = set; then :
18032 enableval=$enable_tools; ENABLE_TOOLS=yes
18037 if test "x$ENABLE_TOOLS" = xyes; then
18039 BUILD_TOOLS_FALSE='#'
18041 BUILD_TOOLS_TRUE='#'
18046 # configure option to enable gesture ate debugging
18047 # Check whether --enable-debug-gestures was given.
18048 if test "${enable_debug_gestures+set}" = set; then :
18049 enableval=$enable_debug_gestures; DEBUG_GESTURES=yes
18054 if test "x$DEBUG_GESTURES" = xyes; then
18056 $as_echo "#define DEBUG_GESTURES 1" >>confdefs.h
18060 # configure option to enable multitouch state debugging
18061 # Check whether --enable-debug-mtstate was given.
18062 if test "${enable_debug_mtstate+set}" = set; then :
18063 enableval=$enable_debug_mtstate; DEBUG_MTSTATE=yes
18068 if test "x$DEBUG_MTSTATE" = xyes; then
18070 $as_echo "#define DEBUG_MTSTATE 1" >>confdefs.h
18074 # configure option to enable property debugging
18075 # Check whether --enable-debug-props was given.
18076 if test "${enable_debug_props+set}" = set; then :
18077 enableval=$enable_debug_props; DEBUG_PROPS=yes
18082 if test "x$DEBUG_PROPS" = xyes; then
18084 $as_echo "#define DEBUG_PROPS 1" >>confdefs.h
18088 # configure option to enable driver debugging
18089 # Check whether --enable-debug-driver was given.
18090 if test "${enable_debug_driver+set}" = set; then :
18091 enableval=$enable_debug_driver; DEBUG_DRIVER=yes
18096 if test "x$DEBUG_DRIVER" = xyes; then
18098 $as_echo "#define DEBUG_DRIVER 1" >>confdefs.h
18103 # configure option to enable all debugging
18104 # Check whether --enable-debug was given.
18105 if test "${enable_debug+set}" = set; then :
18106 enableval=$enable_debug; DEBUG_ALL=$enableval
18111 if test "x$DEBUG_ALL" = xyes; then
18113 $as_echo "#define DEBUG_GESTURES 1" >>confdefs.h
18116 $as_echo "#define DEBUG_MTSTATE 1" >>confdefs.h
18119 $as_echo "#define DEBUG_PROPS 1" >>confdefs.h
18122 $as_echo "#define DEBUG_DRIVER 1" >>confdefs.h
18128 ac_cpp='$CPP $CPPFLAGS'
18129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18132 if test -n "$ac_tool_prefix"; then
18133 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18134 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18136 $as_echo_n "checking for $ac_word... " >&6; }
18137 if ${ac_cv_prog_CC+:} false; then :
18138 $as_echo_n "(cached) " >&6
18140 if test -n "$CC"; then
18141 ac_cv_prog_CC="$CC" # Let the user override the test.
18143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18144 for as_dir in $PATH
18147 test -z "$as_dir" && as_dir=.
18148 for ac_exec_ext in '' $ac_executable_extensions; do
18149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18150 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18161 if test -n "$CC"; then
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18163 $as_echo "$CC" >&6; }
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18166 $as_echo "no" >&6; }
18171 if test -z "$ac_cv_prog_CC"; then
18173 # Extract the first word of "gcc", so it can be a program name with args.
18174 set dummy gcc; ac_word=$2
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18176 $as_echo_n "checking for $ac_word... " >&6; }
18177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18178 $as_echo_n "(cached) " >&6
18180 if test -n "$ac_ct_CC"; then
18181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18184 for as_dir in $PATH
18187 test -z "$as_dir" && as_dir=.
18188 for ac_exec_ext in '' $ac_executable_extensions; do
18189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18190 ac_cv_prog_ac_ct_CC="gcc"
18191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18201 if test -n "$ac_ct_CC"; then
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18203 $as_echo "$ac_ct_CC" >&6; }
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18206 $as_echo "no" >&6; }
18209 if test "x$ac_ct_CC" = x; then
18212 case $cross_compiling:$ac_tool_warned in
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18216 ac_tool_warned=yes ;;
18221 CC="$ac_cv_prog_CC"
18224 if test -z "$CC"; then
18225 if test -n "$ac_tool_prefix"; then
18226 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18227 set dummy ${ac_tool_prefix}cc; ac_word=$2
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18229 $as_echo_n "checking for $ac_word... " >&6; }
18230 if ${ac_cv_prog_CC+:} false; then :
18231 $as_echo_n "(cached) " >&6
18233 if test -n "$CC"; then
18234 ac_cv_prog_CC="$CC" # Let the user override the test.
18236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18237 for as_dir in $PATH
18240 test -z "$as_dir" && as_dir=.
18241 for ac_exec_ext in '' $ac_executable_extensions; do
18242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18243 ac_cv_prog_CC="${ac_tool_prefix}cc"
18244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18254 if test -n "$CC"; then
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18256 $as_echo "$CC" >&6; }
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18259 $as_echo "no" >&6; }
18265 if test -z "$CC"; then
18266 # Extract the first word of "cc", so it can be a program name with args.
18267 set dummy cc; ac_word=$2
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18269 $as_echo_n "checking for $ac_word... " >&6; }
18270 if ${ac_cv_prog_CC+:} false; then :
18271 $as_echo_n "(cached) " >&6
18273 if test -n "$CC"; then
18274 ac_cv_prog_CC="$CC" # Let the user override the test.
18276 ac_prog_rejected=no
18277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18278 for as_dir in $PATH
18281 test -z "$as_dir" && as_dir=.
18282 for ac_exec_ext in '' $ac_executable_extensions; do
18283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18284 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18285 ac_prog_rejected=yes
18289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18296 if test $ac_prog_rejected = yes; then
18297 # We found a bogon in the path, so make sure we never use it.
18298 set dummy $ac_cv_prog_CC
18300 if test $# != 0; then
18301 # We chose a different compiler from the bogus one.
18302 # However, it has the same basename, so the bogon will be chosen
18303 # first if we set CC to just the basename; use the full file name.
18305 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18311 if test -n "$CC"; then
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18313 $as_echo "$CC" >&6; }
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18316 $as_echo "no" >&6; }
18321 if test -z "$CC"; then
18322 if test -n "$ac_tool_prefix"; then
18323 for ac_prog in cl.exe
18325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18328 $as_echo_n "checking for $ac_word... " >&6; }
18329 if ${ac_cv_prog_CC+:} false; then :
18330 $as_echo_n "(cached) " >&6
18332 if test -n "$CC"; then
18333 ac_cv_prog_CC="$CC" # Let the user override the test.
18335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18336 for as_dir in $PATH
18339 test -z "$as_dir" && as_dir=.
18340 for ac_exec_ext in '' $ac_executable_extensions; do
18341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18342 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18353 if test -n "$CC"; then
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18355 $as_echo "$CC" >&6; }
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18358 $as_echo "no" >&6; }
18362 test -n "$CC" && break
18365 if test -z "$CC"; then
18367 for ac_prog in cl.exe
18369 # Extract the first word of "$ac_prog", so it can be a program name with args.
18370 set dummy $ac_prog; ac_word=$2
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18372 $as_echo_n "checking for $ac_word... " >&6; }
18373 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18374 $as_echo_n "(cached) " >&6
18376 if test -n "$ac_ct_CC"; then
18377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18380 for as_dir in $PATH
18383 test -z "$as_dir" && as_dir=.
18384 for ac_exec_ext in '' $ac_executable_extensions; do
18385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18386 ac_cv_prog_ac_ct_CC="$ac_prog"
18387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18397 if test -n "$ac_ct_CC"; then
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18399 $as_echo "$ac_ct_CC" >&6; }
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18402 $as_echo "no" >&6; }
18406 test -n "$ac_ct_CC" && break
18409 if test "x$ac_ct_CC" = x; then
18412 case $cross_compiling:$ac_tool_warned in
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18416 ac_tool_warned=yes ;;
18425 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18427 as_fn_error $? "no acceptable C compiler found in \$PATH
18428 See \`config.log' for more details" "$LINENO" 5; }
18430 # Provide some information about the compiler.
18431 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18434 for ac_option in --version -v -V -qversion; do
18435 { { ac_try="$ac_compiler $ac_option >&5"
18436 case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18441 $as_echo "$ac_try_echo"; } >&5
18442 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18444 if test -s conftest.err; then
18446 ... rest of stderr output deleted ...
18447 10q' conftest.err >conftest.er1
18448 cat conftest.er1 >&5
18450 rm -f conftest.er1 conftest.err
18451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18452 test $ac_status = 0; }
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18456 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18457 if ${ac_cv_c_compiler_gnu+:} false; then :
18458 $as_echo_n "(cached) " >&6
18460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18461 /* end confdefs.h. */
18474 if ac_fn_c_try_compile "$LINENO"; then :
18475 ac_compiler_gnu=yes
18479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18480 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18484 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
18485 if test $ac_compiler_gnu = yes; then
18490 ac_test_CFLAGS=${CFLAGS+set}
18491 ac_save_CFLAGS=$CFLAGS
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18493 $as_echo_n "checking whether $CC accepts -g... " >&6; }
18494 if ${ac_cv_prog_cc_g+:} false; then :
18495 $as_echo_n "(cached) " >&6
18497 ac_save_c_werror_flag=$ac_c_werror_flag
18498 ac_c_werror_flag=yes
18501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h. */
18512 if ac_fn_c_try_compile "$LINENO"; then :
18513 ac_cv_prog_cc_g=yes
18516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18517 /* end confdefs.h. */
18527 if ac_fn_c_try_compile "$LINENO"; then :
18530 ac_c_werror_flag=$ac_save_c_werror_flag
18532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533 /* end confdefs.h. */
18543 if ac_fn_c_try_compile "$LINENO"; then :
18544 ac_cv_prog_cc_g=yes
18546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18551 ac_c_werror_flag=$ac_save_c_werror_flag
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18554 $as_echo "$ac_cv_prog_cc_g" >&6; }
18555 if test "$ac_test_CFLAGS" = set; then
18556 CFLAGS=$ac_save_CFLAGS
18557 elif test $ac_cv_prog_cc_g = yes; then
18558 if test "$GCC" = yes; then
18564 if test "$GCC" = yes; then
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
18571 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
18572 if ${ac_cv_prog_cc_c89+:} false; then :
18573 $as_echo_n "(cached) " >&6
18575 ac_cv_prog_cc_c89=no
18577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18578 /* end confdefs.h. */
18579 #include <stdarg.h>
18582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18583 struct buf { int x; };
18584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
18585 static char *e (p, i)
18591 static char *f (char * (*g) (char **, int), char **p, ...)
18596 s = g (p, va_arg (v,int));
18601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
18602 function prototypes and stuff, but not '\xHH' hex character constants.
18603 These don't provoke an error unfortunately, instead are silently treated
18604 as 'x'. The following induces an error, until -std is added to get
18605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
18606 array size at least. It's necessary to write '\x00'==0 to get something
18607 that's true only with -std. */
18608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18610 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18611 inside strings and character constants. */
18613 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18615 int test (int i, double x);
18616 struct s1 {int (*f) (int a);};
18617 struct s2 {int (*f) (double a);};
18618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
18629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18630 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18632 CC="$ac_save_CC $ac_arg"
18633 if ac_fn_c_try_compile "$LINENO"; then :
18634 ac_cv_prog_cc_c89=$ac_arg
18636 rm -f core conftest.err conftest.$ac_objext
18637 test "x$ac_cv_prog_cc_c89" != "xno" && break
18639 rm -f conftest.$ac_ext
18644 case "x$ac_cv_prog_cc_c89" in
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18647 $as_echo "none needed" >&6; } ;;
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18650 $as_echo "unsupported" >&6; } ;;
18652 CC="$CC $ac_cv_prog_cc_c89"
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18654 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18656 if test "x$ac_cv_prog_cc_c89" != xno; then :
18661 ac_cpp='$CPP $CPPFLAGS'
18662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18667 ac_cpp='$CPP $CPPFLAGS'
18668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
18672 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
18673 if ${am_cv_prog_cc_c_o+:} false; then :
18674 $as_echo_n "(cached) " >&6
18676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677 /* end confdefs.h. */
18687 # Make sure it works both with $CC and with simple cc.
18688 # Following AC_PROG_CC_C_O, we do the test twice because some
18689 # compilers refuse to overwrite an existing .o file with -o,
18690 # though they will create one.
18691 am_cv_prog_cc_c_o=yes
18692 for am_i in 1 2; do
18693 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
18694 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } \
18698 && test -f conftest2.$ac_objext; then
18701 am_cv_prog_cc_c_o=no
18705 rm -f core conftest*
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
18709 $as_echo "$am_cv_prog_cc_c_o" >&6; }
18710 if test "$am_cv_prog_cc_c_o" != yes; then
18711 # Losing compiler, so override with the script.
18712 # FIXME: It is wrong to rewrite CC.
18713 # But if we don't then we get into trouble of one sort or another.
18714 # A longer-term fix would be to have automake use am__CC in this case,
18715 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18716 CC="$am_aux_dir/compile $CC"
18719 ac_cpp='$CPP $CPPFLAGS'
18720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18725 depcc="$CC" am_compiler_list=
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18728 $as_echo_n "checking dependency style of $depcc... " >&6; }
18729 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
18730 $as_echo_n "(cached) " >&6
18732 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18733 # We make a subdir and do the tests there. Otherwise we can end up
18734 # making bogus files that we don't know about and never remove. For
18735 # instance it was reported that on HP-UX the gcc test will end up
18736 # making a dummy file named 'D' -- because '-MD' means "put the output
18738 rm -rf conftest.dir
18740 # Copy depcomp to subdir because otherwise we won't find it if we're
18741 # using a relative directory.
18742 cp "$am_depcomp" conftest.dir
18744 # We will build objects and dependencies in a subdirectory because
18745 # it helps to detect inapplicable dependency modes. For instance
18746 # both Tru64's cc and ICC support -MD to output dependencies as a
18747 # side effect of compilation, but ICC will put the dependencies in
18748 # the current directory while Tru64 will put them in the object
18752 am_cv_CC_dependencies_compiler_type=none
18753 if test "$am_compiler_list" = ""; then
18754 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18756 am__universal=false
18757 case " $depcc " in #(
18758 *\ -arch\ *\ -arch\ *) am__universal=true ;;
18761 for depmode in $am_compiler_list; do
18762 # Setup a source with many dependencies, because some compilers
18763 # like to wrap large dependency lists on column 80 (with \), and
18764 # we should not choose a depcomp mode which is confused by this.
18766 # We need to recreate these files for each test, as the compiler may
18767 # overwrite some of them when testing with obscure command lines.
18768 # This happens at least with the AIX C compiler.
18770 for i in 1 2 3 4 5 6; do
18771 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18772 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
18773 # Solaris 10 /bin/sh.
18774 echo '/* dummy */' > sub/conftst$i.h
18776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18778 # We check with '-c' and '-o' for the sake of the "dashmstdout"
18779 # mode. It turns out that the SunPro C++ compiler does not properly
18780 # handle '-M -o', and we need to detect this. Also, some Intel
18781 # versions had trouble with output in subdirs.
18782 am__obj=sub/conftest.${OBJEXT-o}
18783 am__minus_obj="-o $am__obj"
18786 # This depmode causes a compiler race in universal mode.
18787 test "$am__universal" = false || continue
18790 # After this tag, mechanisms are not by side-effect, so they'll
18791 # only be used when explicitly requested.
18792 if test "x$enable_dependency_tracking" = xyes; then
18798 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18799 # This compiler won't grok '-c -o', but also, the minuso test has
18800 # not run yet. These depmodes are late enough in the game, and
18801 # so weak that their functioning should not be impacted.
18802 am__obj=conftest.${OBJEXT-o}
18807 if depmode=$depmode \
18808 source=sub/conftest.c object=$am__obj \
18809 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18810 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18811 >/dev/null 2>conftest.err &&
18812 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18813 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18814 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18815 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18816 # icc doesn't choke on unknown options, it will just issue warnings
18817 # or remarks (even with -Werror). So we grep stderr for any message
18818 # that says an option was ignored or not supported.
18819 # When given -MP, icc 7.0 and 7.1 complain thusly:
18820 # icc: Command line warning: ignoring option '-M'; no argument required
18821 # The diagnosis changed in icc 8.0:
18822 # icc: Command line remark: option '-MP' not supported
18823 if (grep 'ignoring option' conftest.err ||
18824 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18825 am_cv_CC_dependencies_compiler_type=$depmode
18832 rm -rf conftest.dir
18834 am_cv_CC_dependencies_compiler_type=none
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18839 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
18840 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
18843 test "x$enable_dependency_tracking" != xno \
18844 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
18845 am__fastdepCC_TRUE=
18846 am__fastdepCC_FALSE='#'
18848 am__fastdepCC_TRUE='#'
18849 am__fastdepCC_FALSE=
18854 ac_config_files="$ac_config_files Makefile"
18856 cat >confcache <<\_ACEOF
18857 # This file is a shell script that caches the results of configure
18858 # tests run on this system so they can be shared between configure
18859 # scripts and configure runs, see configure's option --config-cache.
18860 # It is not useful on other systems. If it contains results you don't
18861 # want to keep, you may remove or edit it.
18863 # config.status only pays attention to the cache file if you give it
18864 # the --recheck option to rerun configure.
18866 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18867 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18868 # following values.
18872 # The following way of writing the cache mishandles newlines in values,
18873 # but we know of no workaround that is simple, portable, and efficient.
18874 # So, we kill variables containing newlines.
18875 # Ultrix sh set writes to stderr and can't be redirected directly,
18876 # and sets the high bit in the cache file unless we assign to the vars.
18878 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18879 eval ac_val=\$$ac_var
18883 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18884 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18887 _ | IFS | as_nl) ;; #(
18888 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18889 *) { eval $ac_var=; unset $ac_var;} ;;
18895 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18896 *${as_nl}ac_space=\ *)
18897 # `set' does not quote correctly, so add quotes: double-quote
18898 # substitution turns \\\\ into \\, and sed turns \\ into \.
18901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18904 # `set' quotes correctly as required by POSIX, so do not add quotes.
18905 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18914 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18916 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18918 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18919 if test -w "$cache_file"; then
18920 if test "x$cache_file" != "x/dev/null"; then
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18922 $as_echo "$as_me: updating cache $cache_file" >&6;}
18923 if test ! -f "$cache_file" || test -h "$cache_file"; then
18924 cat confcache >"$cache_file"
18926 case $cache_file in #(
18928 mv -f confcache "$cache_file"$$ &&
18929 mv -f "$cache_file"$$ "$cache_file" ;; #(
18931 mv -f confcache "$cache_file" ;;
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18937 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18942 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18943 # Let make expand exec_prefix.
18944 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18946 DEFS=-DHAVE_CONFIG_H
18951 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18952 # 1. Remove the extension, and $U if already installed.
18953 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18954 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18955 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18956 # will be set to the directory where LIBOBJS objects are built.
18957 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18958 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18960 LIBOBJS=$ac_libobjs
18962 LTLIBOBJS=$ac_ltlibobjs
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18966 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18967 if test -n "$am_sleep_pid"; then
18968 # Hide warnings about reused PIDs.
18969 wait $am_sleep_pid 2>/dev/null
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18972 $as_echo "done" >&6; }
18973 if test -n "$EXEEXT"; then
18975 am__EXEEXT_FALSE='#'
18977 am__EXEEXT_TRUE='#'
18981 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18982 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18985 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18986 as_fn_error $? "conditional \"AMDEP\" was never defined.
18987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18989 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18990 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18993 if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
18994 as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined.
18995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18997 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18998 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19002 : "${CONFIG_STATUS=./config.status}"
19004 ac_clean_files_save=$ac_clean_files
19005 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19007 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19009 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19011 # Generated by $as_me.
19012 # Run this file to recreate the current configuration.
19013 # Compiler output produced by configure, useful for debugging
19014 # configure, is in config.log if it exists.
19017 ac_cs_recheck=false
19020 SHELL=\${CONFIG_SHELL-$SHELL}
19023 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19024 ## -------------------- ##
19025 ## M4sh Initialization. ##
19026 ## -------------------- ##
19028 # Be more Bourne compatible
19029 DUALCASE=1; export DUALCASE # for MKS sh
19030 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19033 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19034 # is contrary to our usage. Disable this feature.
19035 alias -g '${1+"$@"}'='"$@"'
19036 setopt NO_GLOB_SUBST
19038 case `(set -o) 2>/dev/null` in #(
19050 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19051 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19052 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19053 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19054 # Prefer a ksh shell builtin over an external printf program on Solaris,
19055 # but without wasting forks for bash or zsh.
19056 if test -z "$BASH_VERSION$ZSH_VERSION" \
19057 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19058 as_echo='print -r --'
19059 as_echo_n='print -rn --'
19060 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19061 as_echo='printf %s\n'
19062 as_echo_n='printf %s'
19064 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19065 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19066 as_echo_n='/usr/ucb/echo -n'
19068 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19069 as_echo_n_body='eval
19073 expr "X$arg" : "X\\(.*\\)$as_nl";
19074 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19076 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19078 export as_echo_n_body
19079 as_echo_n='sh -c $as_echo_n_body as_echo'
19081 export as_echo_body
19082 as_echo='sh -c $as_echo_body as_echo'
19085 # The user is always right.
19086 if test "${PATH_SEPARATOR+set}" != set; then
19088 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19089 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19096 # We need space, tab and new line, in precisely that order. Quoting is
19097 # there to prevent editors from complaining about space-tab.
19098 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19099 # splitting by setting IFS to empty value.)
19102 # Find who we are. Look in the path if we contain no directory separator.
19105 *[\\/]* ) as_myself=$0 ;;
19106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19107 for as_dir in $PATH
19110 test -z "$as_dir" && as_dir=.
19111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19117 # We did not find ourselves, most probably we were run as `sh COMMAND'
19118 # in which case we are not to be found in the path.
19119 if test "x$as_myself" = x; then
19122 if test ! -f "$as_myself"; then
19123 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19127 # Unset variables that we do not need and which cause bugs (e.g. in
19128 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19129 # suppresses any "Segmentation fault" message there. '((' could
19130 # trigger a bug in pdksh 5.2.14.
19131 for as_var in BASH_ENV ENV MAIL MAILPATH
19132 do eval test x\${$as_var+set} = xset \
19133 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19146 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19149 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19150 # ----------------------------------------
19151 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19152 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19153 # script with STATUS, using 1 if that was 0.
19156 as_status=$1; test $as_status -eq 0 && as_status=1
19158 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19159 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19161 $as_echo "$as_me: error: $2" >&2
19162 as_fn_exit $as_status
19166 # as_fn_set_status STATUS
19167 # -----------------------
19168 # Set $? to STATUS, without forking.
19169 as_fn_set_status ()
19172 } # as_fn_set_status
19174 # as_fn_exit STATUS
19175 # -----------------
19176 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19180 as_fn_set_status $1
19186 # Portably unset VAR.
19189 { eval $1=; unset $1;}
19191 as_unset=as_fn_unset
19192 # as_fn_append VAR VALUE
19193 # ----------------------
19194 # Append the text in VALUE to the end of the definition contained in VAR. Take
19195 # advantage of any shell optimizations that allow amortized linear growth over
19196 # repeated appends, instead of the typical quadratic growth present in naive
19198 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19199 eval 'as_fn_append ()
19210 # as_fn_arith ARG...
19211 # ------------------
19212 # Perform arithmetic evaluation on the ARGs, and store the result in the
19213 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19214 # must be portable across $(()) and expr.
19215 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19216 eval 'as_fn_arith ()
19223 as_val=`expr "$@" || test $? -eq 1`
19228 if expr a : '\(a\)' >/dev/null 2>&1 &&
19229 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19235 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19236 as_basename=basename
19241 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19247 as_me=`$as_basename -- "$0" ||
19248 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19249 X"$0" : 'X\(//\)$' \| \
19250 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19252 sed '/^.*\/\([^/][^/]*\)\/*$/{
19266 # Avoid depending upon Character Ranges.
19267 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19268 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19269 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19270 as_cr_digits='0123456789'
19271 as_cr_alnum=$as_cr_Letters$as_cr_digits
19273 ECHO_C= ECHO_N= ECHO_T=
19274 case `echo -n x` in #(((((
19276 case `echo 'xy\c'` in
19277 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19279 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19286 rm -f conf$$ conf$$.exe conf$$.file
19287 if test -d conf$$.dir; then
19288 rm -f conf$$.dir/conf$$.file
19291 mkdir conf$$.dir 2>/dev/null
19293 if (echo >conf$$.file) 2>/dev/null; then
19294 if ln -s conf$$.file conf$$ 2>/dev/null; then
19296 # ... but there are two gotchas:
19297 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19298 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19299 # In both cases, we have to default to `cp -pR'.
19300 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19302 elif ln conf$$.file conf$$ 2>/dev/null; then
19310 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19311 rmdir conf$$.dir 2>/dev/null
19316 # Create "$as_dir" as a directory, including parents if necessary.
19321 -*) as_dir=./$as_dir;;
19323 test -d "$as_dir" || eval $as_mkdir_p || {
19327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19328 *) as_qdir=$as_dir;;
19330 as_dirs="'$as_qdir' $as_dirs"
19331 as_dir=`$as_dirname -- "$as_dir" ||
19332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19333 X"$as_dir" : 'X\(//\)[^/]' \| \
19334 X"$as_dir" : 'X\(//\)$' \| \
19335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19336 $as_echo X"$as_dir" |
19337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19341 /^X\(\/\/\)[^/].*/{
19354 test -d "$as_dir" && break
19356 test -z "$as_dirs" || eval "mkdir $as_dirs"
19357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19361 if mkdir -p . 2>/dev/null; then
19362 as_mkdir_p='mkdir -p "$as_dir"'
19364 test -d ./-p && rmdir ./-p
19369 # as_fn_executable_p FILE
19370 # -----------------------
19371 # Test if FILE is an executable regular file.
19372 as_fn_executable_p ()
19374 test -f "$1" && test -x "$1"
19375 } # as_fn_executable_p
19376 as_test_x='test -x'
19377 as_executable_p=as_fn_executable_p
19379 # Sed expression to map a string onto a valid CPP name.
19380 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19382 # Sed expression to map a string onto a valid variable name.
19383 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19387 ## ----------------------------------- ##
19388 ## Main body of $CONFIG_STATUS script. ##
19389 ## ----------------------------------- ##
19391 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19394 # Save the log message, to keep $0 and so on meaningful, and to
19395 # report actual input values of CONFIG_FILES etc. instead of their
19396 # values after options handling.
19398 This file was extended by xf86-input-mtrack $as_me 0.2.0, which was
19399 generated by GNU Autoconf 2.69. Invocation command line was
19401 CONFIG_FILES = $CONFIG_FILES
19402 CONFIG_HEADERS = $CONFIG_HEADERS
19403 CONFIG_LINKS = $CONFIG_LINKS
19404 CONFIG_COMMANDS = $CONFIG_COMMANDS
19407 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19412 case $ac_config_files in *"
19413 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19416 case $ac_config_headers in *"
19417 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19422 # Files that config.status was made for.
19423 config_files="$ac_config_files"
19424 config_headers="$ac_config_headers"
19425 config_commands="$ac_config_commands"
19429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19431 \`$as_me' instantiates files and other configuration actions
19432 from templates according to the current configuration. Unless the files
19433 and actions are specified as TAGs, all are instantiated by default.
19435 Usage: $0 [OPTION]... [TAG]...
19437 -h, --help print this help, then exit
19438 -V, --version print version number and configuration settings, then exit
19439 --config print configuration, then exit
19440 -q, --quiet, --silent
19441 do not print progress messages
19442 -d, --debug don't remove temporary files
19443 --recheck update $as_me by reconfiguring in the same conditions
19444 --file=FILE[:TEMPLATE]
19445 instantiate the configuration file FILE
19446 --header=FILE[:TEMPLATE]
19447 instantiate the configuration header FILE
19449 Configuration files:
19452 Configuration headers:
19455 Configuration commands:
19458 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19462 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19464 xf86-input-mtrack config.status 0.2.0
19465 configured by $0, generated by GNU Autoconf 2.69,
19466 with options \\"\$ac_cs_config\\"
19468 Copyright (C) 2012 Free Software Foundation, Inc.
19469 This config.status script is free software; the Free Software Foundation
19470 gives unlimited permission to copy, distribute and modify it."
19477 test -n "\$AWK" || AWK=awk
19480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19481 # The default lists apply if the user does not specify any file.
19487 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19488 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19492 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19504 # Handling of the options.
19505 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19507 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19508 $as_echo "$ac_cs_version"; exit ;;
19509 --config | --confi | --conf | --con | --co | --c )
19510 $as_echo "$ac_cs_config"; exit ;;
19511 --debug | --debu | --deb | --de | --d | -d )
19513 --file | --fil | --fi | --f )
19516 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19517 '') as_fn_error $? "missing file argument" ;;
19519 as_fn_append CONFIG_FILES " '$ac_optarg'"
19520 ac_need_defaults=false;;
19521 --header | --heade | --head | --hea )
19524 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19526 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19527 ac_need_defaults=false;;
19529 # Conflict between --help and --header
19530 as_fn_error $? "ambiguous option: \`$1'
19531 Try \`$0 --help' for more information.";;
19532 --help | --hel | -h )
19533 $as_echo "$ac_cs_usage"; exit ;;
19534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19535 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19538 # This is an error.
19539 -*) as_fn_error $? "unrecognized option: \`$1'
19540 Try \`$0 --help' for more information." ;;
19542 *) as_fn_append ac_config_targets " $1"
19543 ac_need_defaults=false ;;
19549 ac_configure_extra_args=
19551 if $ac_cs_silent; then
19553 ac_configure_extra_args="$ac_configure_extra_args --silent"
19557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19558 if \$ac_cs_recheck; then
19559 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19561 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19562 CONFIG_SHELL='$SHELL'
19563 export CONFIG_SHELL
19568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19572 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19573 ## Running $as_me. ##
19579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19583 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19586 # The HP-UX ksh and POSIX shell print the target directory to stdout
19587 # if CDPATH is set.
19588 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19590 sed_quote_subst='$sed_quote_subst'
19591 double_quote_subst='$double_quote_subst'
19592 delay_variable_subst='$delay_variable_subst'
19593 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19594 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19595 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19596 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19597 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19598 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19599 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19600 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19601 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19602 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19603 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19604 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19605 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19606 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19607 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19608 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19609 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19610 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19611 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19612 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19613 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19614 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19615 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19616 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19617 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19618 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19619 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19620 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19621 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19622 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19623 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19624 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19625 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19626 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19627 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19628 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19629 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19630 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19631 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19632 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19633 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19634 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19635 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19636 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19637 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19638 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19639 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19640 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19641 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19642 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19643 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19644 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19645 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19646 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19647 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19648 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19649 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"`'
19650 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19651 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19652 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19653 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19654 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19655 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19656 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19657 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19658 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19659 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19660 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19661 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19662 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19663 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19664 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19665 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19666 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19667 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19668 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19669 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19670 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19671 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19672 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19673 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19674 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19675 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19676 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19677 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19678 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19679 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19680 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19681 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19682 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19683 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19684 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19685 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19686 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19687 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19688 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19689 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19690 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19691 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19692 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19693 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19694 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19695 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19696 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19697 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19698 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19699 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19700 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19701 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19702 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19703 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19704 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19705 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19706 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19707 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19708 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19709 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19710 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19711 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19712 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19713 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19714 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19715 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19716 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19717 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19718 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19719 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19720 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19721 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19722 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19725 LTCFLAGS='$LTCFLAGS'
19726 compiler='$compiler_DEFAULT'
19728 # A function that is used when there is no print builtin or printf.
19729 func_fallback_echo ()
19731 eval 'cat <<_LTECHO_EOF
19736 # Quote evaled strings.
19751 deplibs_check_method \
19756 sharedlib_from_linklib_cmd \
19759 archiver_list_spec \
19765 lt_cv_sys_global_symbol_pipe \
19766 lt_cv_sys_global_symbol_to_cdecl \
19767 lt_cv_sys_global_symbol_to_c_name_address \
19768 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19769 nm_file_list_spec \
19770 lt_prog_compiler_no_builtin_flag \
19771 lt_prog_compiler_pic \
19772 lt_prog_compiler_wl \
19773 lt_prog_compiler_static \
19774 lt_cv_prog_compiler_c_o \
19783 export_dynamic_flag_spec \
19784 whole_archive_flag_spec \
19785 compiler_needs_object \
19787 allow_undefined_flag \
19788 no_undefined_flag \
19789 hardcode_libdir_flag_spec \
19790 hardcode_libdir_separator \
19794 variables_saved_for_relink \
19796 library_names_spec \
19798 install_override_mode \
19802 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19803 *[\\\\\\\`\\"\\\$]*)
19804 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19807 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19812 # Double-quote double-evaled strings.
19813 for var in reload_cmds \
19814 old_postinstall_cmds \
19815 old_postuninstall_cmds \
19817 extract_expsyms_cmds \
19818 old_archive_from_new_cmds \
19819 old_archive_from_expsyms_cmds \
19821 archive_expsym_cmds \
19823 module_expsym_cmds \
19824 export_symbols_cmds \
19828 postuninstall_cmds \
19830 sys_lib_search_path_spec \
19831 sys_lib_dlsearch_path_spec; do
19832 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19833 *[\\\\\\\`\\"\\\$]*)
19834 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19837 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19842 ac_aux_dir='$ac_aux_dir'
19843 xsi_shell='$xsi_shell'
19844 lt_shell_append='$lt_shell_append'
19846 # See if we are running on zsh, and set the options which allow our
19847 # commands through without removal of \ escapes INIT.
19848 if test -n "\${ZSH_VERSION+set}" ; then
19849 setopt NO_GLOB_SUBST
19855 TIMESTAMP='$TIMESTAMP'
19864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19866 # Handling of arguments.
19867 for ac_config_target in $ac_config_targets
19869 case $ac_config_target in
19870 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19871 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19872 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19873 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19875 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19880 # If the user did not use the arguments to specify the items to instantiate,
19881 # then the envvar interface is used. Set only those that are not.
19882 # We use the long form for the default assignment because of an extremely
19883 # bizarre bug on SunOS 4.1.3.
19884 if $ac_need_defaults; then
19885 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19886 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19887 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19890 # Have a temporary directory for convenience. Make it in the build tree
19891 # simply because there is no reason against having it here, and in addition,
19892 # creating and moving files from /tmp can sometimes cause problems.
19893 # Hook for its removal unless debugging.
19894 # Note that there is a small window in which the directory will not be cleaned:
19895 # after its creation but before its name has been assigned to `$tmp'.
19899 trap 'exit_status=$?
19900 : "${ac_tmp:=$tmp}"
19901 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19903 trap 'as_fn_exit 1' 1 2 13 15
19905 # Create a (secure) tmp directory for tmp files.
19908 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19912 tmp=./conf$$-$RANDOM
19913 (umask 077 && mkdir "$tmp")
19914 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19917 # Set up the scripts for CONFIG_FILES section.
19918 # No need to generate them if there are no CONFIG_FILES.
19919 # This happens for instance with `./config.status config.h'.
19920 if test -n "$CONFIG_FILES"; then
19923 ac_cr=`echo X | tr X '\015'`
19924 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19925 # But we know of no other shell where ac_cr would be empty at this
19926 # point, so we can use a bashism as a fallback.
19927 if test "x$ac_cr" = x; then
19928 eval ac_cr=\$\'\\r\'
19930 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19931 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19934 ac_cs_awk_cr=$ac_cr
19937 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19942 echo "cat >conf$$subs.awk <<_ACEOF" &&
19943 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19945 } >conf$$subs.sh ||
19946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19947 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19949 for ac_last_try in false false false false false :; do
19950 . ./conf$$subs.sh ||
19951 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19953 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19954 if test $ac_delim_n = $ac_delim_num; then
19956 elif $ac_last_try; then
19957 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19959 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19962 rm -f conf$$subs.sh
19964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19965 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19969 s/^/S["/; s/!.*/"]=/
19979 s/\(.\{148\}\)..*/\1/
19981 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19986 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19993 s/\(.\{148\}\)..*/\1/
19995 s/["\\]/\\&/g; s/^/"/; s/$/"/
19999 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20004 ' <conf$$subs.awk | sed '
20009 ' >>$CONFIG_STATUS || ac_write_fail=1
20010 rm -f conf$$subs.awk
20011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20013 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20014 for (key in S) S_is_set[key] = 1
20020 nfields = split(line, field, "@")
20022 len = length(field[1])
20023 for (i = 2; i < nfields; i++) {
20025 keylen = length(key)
20026 if (S_is_set[key]) {
20028 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20029 len += length(value) + length(field[++i])
20040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20041 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20042 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20045 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20046 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20049 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20050 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20051 # trailing colons and then remove the whole line if VPATH becomes empty
20052 # (actually we leave an empty line to preserve line numbers).
20053 if test "x$srcdir" = x.; then
20054 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20073 fi # test -n "$CONFIG_FILES"
20075 # Set up the scripts for CONFIG_HEADERS section.
20076 # No need to generate them if there are no CONFIG_HEADERS.
20077 # This happens for instance with `./config.status Makefile'.
20078 if test -n "$CONFIG_HEADERS"; then
20079 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20083 # Transform confdefs.h into an awk script `defines.awk', embedded as
20084 # here-document in config.status, that substitutes the proper values into
20085 # config.h.in to produce config.h.
20087 # Create a delimiter string that does not exist in confdefs.h, to ease
20088 # handling of long lines.
20090 for ac_last_try in false false :; do
20091 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20092 if test -z "$ac_tt"; then
20094 elif $ac_last_try; then
20095 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20097 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20101 # For the awk script, D is an array of macro values keyed by name,
20102 # likewise P contains macro parameters if any. Preserve backslash
20103 # newline sequences.
20105 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20107 s/.\{148\}/&'"$ac_delim"'/g
20110 s/^[ ]*#[ ]*define[ ][ ]*/ /
20117 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20119 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20123 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20124 D["\1"]=" \3\\\\\\n"\\/p
20126 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20131 s/.\{148\}/&'"$ac_delim"'/g
20136 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20139 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20141 ' <confdefs.h | sed '
20142 s/'"$ac_delim"'/"\\\
20143 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20146 for (key in D) D_is_set[key] = 1
20149 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20151 split(line, arg, " ")
20152 if (arg[1] == "#") {
20156 defundef = substr(arg[1], 2)
20159 split(mac1, mac2, "(") #)
20161 prefix = substr(line, 1, index(line, defundef) - 1)
20162 if (D_is_set[macro]) {
20163 # Preserve the white space surrounding the "#".
20164 print prefix "define", macro P[macro] D[macro]
20167 # Replace #undef with comments. This is necessary, for example,
20168 # in the case of _POSIX_SOURCE, which is predefined and required
20169 # on some systems where configure will not decide to define it.
20170 if (defundef == "undef") {
20171 print "/*", prefix defundef, macro, "*/"
20179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20180 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20181 fi # test -n "$CONFIG_HEADERS"
20184 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20189 :[FHLC]) ac_mode=$ac_tag; continue;;
20191 case $ac_mode$ac_tag in
20193 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20194 :[FH]-) ac_tag=-:-;;
20195 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20212 -) ac_f="$ac_tmp/stdin";;
20213 *) # Look for the file first in the build tree, then in the source tree
20214 # (if the path is not absolute). The absolute path cannot be DOS-style,
20215 # because $ac_f cannot contain `:'.
20219 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20221 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20223 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20224 as_fn_append ac_file_inputs " '$ac_f'"
20227 # Let's still pretend it is `configure' which instantiates (i.e., don't
20228 # use $as_me), people would be surprised to read:
20229 # /* config.h. Generated by config.status. */
20230 configure_input='Generated from '`
20231 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20233 if test x"$ac_file" != x-; then
20234 configure_input="$ac_file. $configure_input"
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20236 $as_echo "$as_me: creating $ac_file" >&6;}
20238 # Neutralize special characters interpreted by sed in replacement strings.
20239 case $configure_input in #(
20240 *\&* | *\|* | *\\* )
20241 ac_sed_conf_input=`$as_echo "$configure_input" |
20242 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20243 *) ac_sed_conf_input=$configure_input;;
20247 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20248 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20253 ac_dir=`$as_dirname -- "$ac_file" ||
20254 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20255 X"$ac_file" : 'X\(//\)[^/]' \| \
20256 X"$ac_file" : 'X\(//\)$' \| \
20257 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20258 $as_echo X"$ac_file" |
20259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20263 /^X\(\/\/\)[^/].*/{
20276 as_dir="$ac_dir"; as_fn_mkdir_p
20280 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20282 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20283 # A ".." for each directory in $ac_dir_suffix.
20284 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20285 case $ac_top_builddir_sub in
20286 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20287 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20290 ac_abs_top_builddir=$ac_pwd
20291 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20292 # for backward compatibility:
20293 ac_top_builddir=$ac_top_build_prefix
20296 .) # We are building in place.
20298 ac_top_srcdir=$ac_top_builddir_sub
20299 ac_abs_top_srcdir=$ac_pwd ;;
20300 [\\/]* | ?:[\\/]* ) # Absolute name.
20301 ac_srcdir=$srcdir$ac_dir_suffix;
20302 ac_top_srcdir=$srcdir
20303 ac_abs_top_srcdir=$srcdir ;;
20304 *) # Relative name.
20305 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20306 ac_top_srcdir=$ac_top_build_prefix$srcdir
20307 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20309 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20319 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20320 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20322 ac_MKDIR_P=$MKDIR_P
20324 [\\/$]* | ?:[\\/]* ) ;;
20325 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20330 # If the template does not know about datarootdir, expand it.
20331 # FIXME: This hack should be removed a few years after 2.60.
20332 ac_datarootdir_hack=; ac_datarootdir_seen=
20343 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20344 *datarootdir*) ac_datarootdir_seen=yes;;
20345 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20347 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20350 ac_datarootdir_hack='
20351 s&@datadir@&$datadir&g
20352 s&@docdir@&$docdir&g
20353 s&@infodir@&$infodir&g
20354 s&@localedir@&$localedir&g
20355 s&@mandir@&$mandir&g
20356 s&\\\${datarootdir}&$datarootdir&g' ;;
20360 # Neutralize VPATH when `$srcdir' = `.'.
20361 # Shell code in configure.ac might set extrasub.
20362 # FIXME: do we really want to maintain this feature?
20363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20364 ac_sed_extra="$ac_vpsub
20367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20370 s|@configure_input@|$ac_sed_conf_input|;t t
20371 s&@top_builddir@&$ac_top_builddir_sub&;t t
20372 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20373 s&@srcdir@&$ac_srcdir&;t t
20374 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20375 s&@top_srcdir@&$ac_top_srcdir&;t t
20376 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20377 s&@builddir@&$ac_builddir&;t t
20378 s&@abs_builddir@&$ac_abs_builddir&;t t
20379 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20380 s&@INSTALL@&$ac_INSTALL&;t t
20381 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20382 $ac_datarootdir_hack
20384 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20385 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20387 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20388 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20389 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20390 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20392 which seems to be undefined. Please make sure it is defined" >&5
20393 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20394 which seems to be undefined. Please make sure it is defined" >&2;}
20396 rm -f "$ac_tmp/stdin"
20398 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20399 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20407 if test x"$ac_file" != x-; then
20409 $as_echo "/* $configure_input */" \
20410 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20411 } >"$ac_tmp/config.h" \
20412 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20413 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20415 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20418 mv "$ac_tmp/config.h" "$ac_file" \
20419 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20422 $as_echo "/* $configure_input */" \
20423 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20424 || as_fn_error $? "could not create -" "$LINENO" 5
20426 # Compute "$ac_file"'s index in $config_headers.
20429 for _am_header in $config_headers :; do
20430 case $_am_header in
20431 $_am_arg | $_am_arg:* )
20434 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20437 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20438 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20439 X"$_am_arg" : 'X\(//\)[^/]' \| \
20440 X"$_am_arg" : 'X\(//\)$' \| \
20441 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20442 $as_echo X"$_am_arg" |
20443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20447 /^X\(\/\/\)[^/].*/{
20459 s/.*/./; q'`/stamp-h$_am_stamp_count
20462 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20463 $as_echo "$as_me: executing $ac_file commands" >&6;}
20468 case $ac_file$ac_mode in
20469 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20470 # Older Autoconf quotes --file arguments for eval, but not when files
20471 # are listed without --file. Let's play safe and only enable the eval
20472 # if we detect the quoting.
20473 case $CONFIG_FILES in
20474 *\'*) eval set x "$CONFIG_FILES" ;;
20475 *) set x $CONFIG_FILES ;;
20480 # Strip MF so we end up with the name of the file.
20481 mf=`echo "$mf" | sed -e 's/:.*$//'`
20482 # Check whether this is an Automake generated Makefile or not.
20483 # We used to match only the files named 'Makefile.in', but
20484 # some people rename them; so instead we look at the file content.
20485 # Grep'ing the first line is not enough: some people post-process
20486 # each Makefile.in and add a new line on top of each file to say so.
20487 # Grep'ing the whole file is not good either: AIX grep has a line
20488 # limit of 2048, but all sed's we know have understand at least 4000.
20489 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20490 dirpart=`$as_dirname -- "$mf" ||
20491 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20492 X"$mf" : 'X\(//\)[^/]' \| \
20493 X"$mf" : 'X\(//\)$' \| \
20494 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20500 /^X\(\/\/\)[^/].*/{
20516 # Extract the definition of DEPDIR, am__include, and am__quote
20517 # from the Makefile without running 'make'.
20518 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20519 test -z "$DEPDIR" && continue
20520 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20521 test -z "$am__include" && continue
20522 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20523 # Find all dependency output files, they are included files with
20524 # $(DEPDIR) in their names. We invoke sed twice because it is the
20525 # simplest approach to changing $(DEPDIR) to its actual value in the
20527 for file in `sed -n "
20528 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20529 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20530 # Make sure the directory exists.
20531 test -f "$dirpart/$file" && continue
20532 fdir=`$as_dirname -- "$file" ||
20533 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20534 X"$file" : 'X\(//\)[^/]' \| \
20535 X"$file" : 'X\(//\)$' \| \
20536 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20537 $as_echo X"$file" |
20538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20542 /^X\(\/\/\)[^/].*/{
20555 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20556 # echo "creating $dirpart/$file"
20557 echo '# dummy' > "$dirpart/$file"
20564 # See if we are running on zsh, and set the options which allow our
20565 # commands through without removal of \ escapes.
20566 if test -n "${ZSH_VERSION+set}" ; then
20567 setopt NO_GLOB_SUBST
20570 cfgfile="${ofile}T"
20571 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20574 cat <<_LT_EOF >> "$cfgfile"
20577 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20578 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20580 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20582 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20583 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20585 # Written by Gordon Matzigkeit, 1996
20587 # This file is part of GNU Libtool.
20589 # GNU Libtool is free software; you can redistribute it and/or
20590 # modify it under the terms of the GNU General Public License as
20591 # published by the Free Software Foundation; either version 2 of
20592 # the License, or (at your option) any later version.
20594 # As a special exception to the GNU General Public License,
20595 # if you distribute this file as part of a program or library that
20596 # is built using GNU Libtool, you may include this file under the
20597 # same distribution terms that you use for the rest of that program.
20599 # GNU Libtool is distributed in the hope that it will be useful,
20600 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20601 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20602 # GNU General Public License for more details.
20604 # You should have received a copy of the GNU General Public License
20605 # along with GNU Libtool; see the file COPYING. If not, a copy
20606 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20607 # obtained by writing to the Free Software Foundation, Inc.,
20608 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20611 # The names of the tagged configurations supported by this script.
20614 # ### BEGIN LIBTOOL CONFIG
20616 # Whether or not to build static libraries.
20617 build_old_libs=$enable_static
20619 # Which release of libtool.m4 was used?
20620 macro_version=$macro_version
20621 macro_revision=$macro_revision
20623 # Whether or not to build shared libraries.
20624 build_libtool_libs=$enable_shared
20626 # What type of objects to build.
20629 # Whether or not to optimize for fast installation.
20630 fast_install=$enable_fast_install
20632 # Shell to use when invoking shell scripts.
20635 # An echo program that protects backslashes.
20638 # The PATH separator for the build system.
20639 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20642 host_alias=$host_alias
20646 # The build system.
20647 build_alias=$build_alias
20651 # A sed program that does not truncate output.
20654 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20655 Xsed="\$SED -e 1s/^X//"
20657 # A grep program that handles long lines.
20663 # A literal string matcher.
20666 # A BSD- or MS-compatible name lister.
20669 # Whether we need soft or hard links.
20672 # What is the maximum length of a command?
20673 max_cmd_len=$max_cmd_len
20675 # Object file suffix (normally "o").
20678 # Executable file suffix (normally "").
20681 # whether the shell understands "unset".
20684 # turn spaces into newlines.
20687 # turn newlines into spaces.
20690 # convert \$build file names to \$host format.
20691 to_host_file_cmd=$lt_cv_to_host_file_cmd
20693 # convert \$build files to toolchain format.
20694 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20696 # An object symbol dumper.
20697 OBJDUMP=$lt_OBJDUMP
20699 # Method to check whether dependent libraries are shared objects.
20700 deplibs_check_method=$lt_deplibs_check_method
20702 # Command to use when deplibs_check_method = "file_magic".
20703 file_magic_cmd=$lt_file_magic_cmd
20705 # How to find potential files when deplibs_check_method = "file_magic".
20706 file_magic_glob=$lt_file_magic_glob
20708 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20709 want_nocaseglob=$lt_want_nocaseglob
20711 # DLL creation program.
20712 DLLTOOL=$lt_DLLTOOL
20714 # Command to associate shared and link libraries.
20715 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20720 # Flags to create an archive.
20721 AR_FLAGS=$lt_AR_FLAGS
20723 # How to feed a file listing to the archiver.
20724 archiver_list_spec=$lt_archiver_list_spec
20726 # A symbol stripping program.
20729 # Commands used to install an old-style archive.
20731 old_postinstall_cmds=$lt_old_postinstall_cmds
20732 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20734 # Whether to use a lock for old archive extraction.
20735 lock_old_archive_extraction=$lock_old_archive_extraction
20740 # LTCC compiler flags.
20741 LTCFLAGS=$lt_CFLAGS
20743 # Take the output of nm and produce a listing of raw symbols and C names.
20744 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20746 # Transform the output of nm in a proper C declaration.
20747 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20749 # Transform the output of nm in a C name address pair.
20750 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20752 # Transform the output of nm in a C name address pair when lib prefix is needed.
20753 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20755 # Specify filename containing input files for \$NM.
20756 nm_file_list_spec=$lt_nm_file_list_spec
20758 # The root where to search for dependent libraries,and in which our libraries should be installed.
20759 lt_sysroot=$lt_sysroot
20761 # The name of the directory that contains temporary libtool files.
20764 # Used to examine libraries when file_magic_cmd begins with "file".
20765 MAGIC_CMD=$MAGIC_CMD
20767 # Must we lock files when doing compilation?
20768 need_locks=$lt_need_locks
20771 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20773 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20774 DSYMUTIL=$lt_DSYMUTIL
20776 # Tool to change global to local symbols on Mac OS X.
20779 # Tool to manipulate fat objects and archives on Mac OS X.
20782 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20785 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20786 OTOOL64=$lt_OTOOL64
20788 # Old archive suffix (normally "a").
20791 # Shared library suffix (normally ".so").
20792 shrext_cmds=$lt_shrext_cmds
20794 # The commands to extract the exported symbol list from a shared archive.
20795 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20797 # Variables whose values should be saved in libtool wrapper scripts and
20798 # restored at link time.
20799 variables_saved_for_relink=$lt_variables_saved_for_relink
20801 # Do we need the "lib" prefix for modules?
20802 need_lib_prefix=$need_lib_prefix
20804 # Do we need a version for libraries?
20805 need_version=$need_version
20807 # Library versioning type.
20808 version_type=$version_type
20810 # Shared library runtime path variable.
20811 runpath_var=$runpath_var
20813 # Shared library path variable.
20814 shlibpath_var=$shlibpath_var
20816 # Is shlibpath searched before the hard-coded library search path?
20817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20819 # Format of library name prefix.
20820 libname_spec=$lt_libname_spec
20822 # List of archive names. First name is the real one, the rest are links.
20823 # The last name is the one that the linker finds with -lNAME
20824 library_names_spec=$lt_library_names_spec
20826 # The coded name of the library, if different from the real name.
20827 soname_spec=$lt_soname_spec
20829 # Permission mode override for installation of shared libraries.
20830 install_override_mode=$lt_install_override_mode
20832 # Command to use after installation of a shared archive.
20833 postinstall_cmds=$lt_postinstall_cmds
20835 # Command to use after uninstallation of a shared archive.
20836 postuninstall_cmds=$lt_postuninstall_cmds
20838 # Commands used to finish a libtool library installation in a directory.
20839 finish_cmds=$lt_finish_cmds
20841 # As "finish_cmds", except a single script fragment to be evaled but
20843 finish_eval=$lt_finish_eval
20845 # Whether we should hardcode library paths into libraries.
20846 hardcode_into_libs=$hardcode_into_libs
20848 # Compile-time system search path for libraries.
20849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20851 # Run-time system search path for libraries.
20852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20854 # Whether dlopen is supported.
20855 dlopen_support=$enable_dlopen
20857 # Whether dlopen of programs is supported.
20858 dlopen_self=$enable_dlopen_self
20860 # Whether dlopen of statically linked programs is supported.
20861 dlopen_self_static=$enable_dlopen_self_static
20863 # Commands to strip libraries.
20864 old_striplib=$lt_old_striplib
20865 striplib=$lt_striplib
20868 # The linker used to build libraries.
20871 # How to create reloadable object files.
20872 reload_flag=$lt_reload_flag
20873 reload_cmds=$lt_reload_cmds
20875 # Commands used to build an old-style archive.
20876 old_archive_cmds=$lt_old_archive_cmds
20878 # A language specific compiler.
20881 # Is the compiler the GNU compiler?
20884 # Compiler flag to turn off builtin functions.
20885 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20887 # Additional compiler flags for building library objects.
20888 pic_flag=$lt_lt_prog_compiler_pic
20890 # How to pass a linker flag through the compiler.
20891 wl=$lt_lt_prog_compiler_wl
20893 # Compiler flag to prevent dynamic linking.
20894 link_static_flag=$lt_lt_prog_compiler_static
20896 # Does compiler simultaneously support -c and -o options?
20897 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20899 # Whether or not to add -lc for building shared libraries.
20900 build_libtool_need_lc=$archive_cmds_need_lc
20902 # Whether or not to disallow shared libs when runtime libs are static.
20903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20905 # Compiler flag to allow reflexive dlopens.
20906 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20908 # Compiler flag to generate shared objects directly from archives.
20909 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20911 # Whether the compiler copes with passing no objects directly.
20912 compiler_needs_object=$lt_compiler_needs_object
20914 # Create an old-style archive from a shared archive.
20915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20917 # Create a temporary old-style archive to link instead of a shared archive.
20918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20920 # Commands used to build a shared archive.
20921 archive_cmds=$lt_archive_cmds
20922 archive_expsym_cmds=$lt_archive_expsym_cmds
20924 # Commands used to build a loadable module if different from building
20925 # a shared archive.
20926 module_cmds=$lt_module_cmds
20927 module_expsym_cmds=$lt_module_expsym_cmds
20929 # Whether we are building with GNU ld or not.
20930 with_gnu_ld=$lt_with_gnu_ld
20932 # Flag that allows shared libraries with undefined symbols to be built.
20933 allow_undefined_flag=$lt_allow_undefined_flag
20935 # Flag that enforces no undefined symbols.
20936 no_undefined_flag=$lt_no_undefined_flag
20938 # Flag to hardcode \$libdir into a binary during linking.
20939 # This must work even if \$libdir does not exist
20940 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20942 # Whether we need a single "-rpath" flag with a separated argument.
20943 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20945 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20946 # DIR into the resulting binary.
20947 hardcode_direct=$hardcode_direct
20949 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20950 # DIR into the resulting binary and the resulting library dependency is
20951 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20952 # library is relocated.
20953 hardcode_direct_absolute=$hardcode_direct_absolute
20955 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20956 # into the resulting binary.
20957 hardcode_minus_L=$hardcode_minus_L
20959 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20960 # into the resulting binary.
20961 hardcode_shlibpath_var=$hardcode_shlibpath_var
20963 # Set to "yes" if building a shared library automatically hardcodes DIR
20964 # into the library and all subsequent libraries and executables linked
20966 hardcode_automatic=$hardcode_automatic
20968 # Set to yes if linker adds runtime paths of dependent libraries
20969 # to runtime path list.
20970 inherit_rpath=$inherit_rpath
20972 # Whether libtool must link a program against all its dependency libraries.
20973 link_all_deplibs=$link_all_deplibs
20975 # Set to "yes" if exported symbols are required.
20976 always_export_symbols=$always_export_symbols
20978 # The commands to list exported symbols.
20979 export_symbols_cmds=$lt_export_symbols_cmds
20981 # Symbols that should not be listed in the preloaded symbols.
20982 exclude_expsyms=$lt_exclude_expsyms
20984 # Symbols that must always be exported.
20985 include_expsyms=$lt_include_expsyms
20987 # Commands necessary for linking programs (against libraries) with templates.
20988 prelink_cmds=$lt_prelink_cmds
20990 # Commands necessary for finishing linking programs.
20991 postlink_cmds=$lt_postlink_cmds
20993 # Specify filename containing input files.
20994 file_list_spec=$lt_file_list_spec
20996 # How to hardcode a shared library path into an executable.
20997 hardcode_action=$hardcode_action
20999 # ### END LIBTOOL CONFIG
21005 cat <<\_LT_EOF >> "$cfgfile"
21006 # AIX sometimes has problems with the GCC collect2 program. For some
21007 # reason, if we set the COLLECT_NAMES environment variable, the problems
21008 # vanish in a puff of smoke.
21009 if test "X${COLLECT_NAMES+set}" != Xset; then
21011 export COLLECT_NAMES
21018 ltmain="$ac_aux_dir/ltmain.sh"
21021 # We use sed instead of cat because bash on DJGPP gets confused if
21022 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21023 # text mode, it properly converts lines to CR/LF. This bash problem
21024 # is reportedly fixed, but why not run on old versions too?
21025 sed '$q' "$ltmain" >> "$cfgfile" \
21026 || (rm -f "$cfgfile"; exit 1)
21028 if test x"$xsi_shell" = xyes; then
21029 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21033 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21034 \ * ) func_dirname_result="${3}" ;;\
21036 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21037 && mv -f "$cfgfile.tmp" "$cfgfile" \
21038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21039 test 0 -eq $? || _lt_function_replace_fail=:
21042 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21045 \ func_basename_result="${1##*/}"\
21046 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21047 && mv -f "$cfgfile.tmp" "$cfgfile" \
21048 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21049 test 0 -eq $? || _lt_function_replace_fail=:
21052 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21053 func_dirname_and_basename ()\
21056 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21057 \ * ) func_dirname_result="${3}" ;;\
21059 \ func_basename_result="${1##*/}"\
21060 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21061 && mv -f "$cfgfile.tmp" "$cfgfile" \
21062 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21063 test 0 -eq $? || _lt_function_replace_fail=:
21066 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21069 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21070 \ # positional parameters, so assign one to ordinary parameter first.\
21071 \ func_stripname_result=${3}\
21072 \ func_stripname_result=${func_stripname_result#"${1}"}\
21073 \ func_stripname_result=${func_stripname_result%"${2}"}\
21074 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21075 && mv -f "$cfgfile.tmp" "$cfgfile" \
21076 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21077 test 0 -eq $? || _lt_function_replace_fail=:
21080 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21081 func_split_long_opt ()\
21083 \ func_split_long_opt_name=${1%%=*}\
21084 \ func_split_long_opt_arg=${1#*=}\
21085 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21086 && mv -f "$cfgfile.tmp" "$cfgfile" \
21087 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21088 test 0 -eq $? || _lt_function_replace_fail=:
21091 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21092 func_split_short_opt ()\
21094 \ func_split_short_opt_arg=${1#??}\
21095 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21096 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21097 && mv -f "$cfgfile.tmp" "$cfgfile" \
21098 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21099 test 0 -eq $? || _lt_function_replace_fail=:
21102 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21106 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21107 \ *) func_lo2o_result=${1} ;;\
21109 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21110 && mv -f "$cfgfile.tmp" "$cfgfile" \
21111 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21112 test 0 -eq $? || _lt_function_replace_fail=:
21115 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21118 func_xform_result=${1%.*}.lo\
21119 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21120 && mv -f "$cfgfile.tmp" "$cfgfile" \
21121 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21122 test 0 -eq $? || _lt_function_replace_fail=:
21125 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21128 func_arith_result=$(( $* ))\
21129 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21130 && mv -f "$cfgfile.tmp" "$cfgfile" \
21131 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21132 test 0 -eq $? || _lt_function_replace_fail=:
21135 sed -e '/^func_len ()$/,/^} # func_len /c\
21138 func_len_result=${#1}\
21139 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21140 && mv -f "$cfgfile.tmp" "$cfgfile" \
21141 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21142 test 0 -eq $? || _lt_function_replace_fail=:
21146 if test x"$lt_shell_append" = xyes; then
21147 sed -e '/^func_append ()$/,/^} # func_append /c\
21150 eval "${1}+=\\${2}"\
21151 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21152 && mv -f "$cfgfile.tmp" "$cfgfile" \
21153 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21154 test 0 -eq $? || _lt_function_replace_fail=:
21157 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21158 func_append_quoted ()\
21160 \ func_quote_for_eval "${2}"\
21161 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21162 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21163 && mv -f "$cfgfile.tmp" "$cfgfile" \
21164 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21165 test 0 -eq $? || _lt_function_replace_fail=:
21168 # Save a `func_append' function call where possible by direct use of '+='
21169 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21170 && mv -f "$cfgfile.tmp" "$cfgfile" \
21171 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21172 test 0 -eq $? || _lt_function_replace_fail=:
21174 # Save a `func_append' function call even when '+=' is not available
21175 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21176 && mv -f "$cfgfile.tmp" "$cfgfile" \
21177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21178 test 0 -eq $? || _lt_function_replace_fail=:
21181 if test x"$_lt_function_replace_fail" = x":"; then
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21183 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21187 mv -f "$cfgfile" "$ofile" ||
21188 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21199 ac_clean_files=$ac_clean_files_save
21201 test $ac_write_fail = 0 ||
21202 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21205 # configure is writing to config.log, and then calls config.status.
21206 # config.status does its own redirection, appending to config.log.
21207 # Unfortunately, on DOS this fails, as config.log is still kept open
21208 # by configure, so config.status won't be able to write to it; its
21209 # output is simply discarded. So we exec the FD to /dev/null,
21210 # effectively closing config.log, so it can be properly (re)opened and
21211 # appended to by config.status. When coming back to configure, we
21212 # need to make the FD available again.
21213 if test "$no_create" != yes; then
21215 ac_config_status_args=
21216 test "$silent" = yes &&
21217 ac_config_status_args="$ac_config_status_args --quiet"
21219 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21221 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21222 # would make configure fail if this is the last instruction.
21223 $ac_cs_success || as_fn_exit 1
21225 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21227 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}