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
717 MAINTAINER_MODE_FALSE
731 INSTALL_STRIP_PROGRAM
774 program_transform_name
787 enable_option_checking
789 enable_maintainer_mode
795 enable_dependency_tracking
799 enable_selective_werror
800 enable_strict_compilation
803 enable_debug_gestures
809 ac_precious_vars='build_alias
826 # Initialize some variables set by options.
828 ac_init_version=false
829 ac_unrecognized_opts=
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
840 program_transform_name=s,x,x,
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 runstatedir='${localstatedir}/run'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
887 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 # Accept the important Cygnus configure options, so we can diagnose typos.
894 case $ac_dashdash$ac_option in
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
916 cache_file=config.cache ;;
918 -datadir | --datadir | --datadi | --datad)
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
930 -disable-* | --disable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
944 eval enable_$ac_useropt=no ;;
946 -docdir | --docdir | --docdi | --doc | --do)
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 -enable-* | --enable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: $ac_useropt"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
970 eval enable_$ac_useropt=\$ac_optarg ;;
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
979 exec_prefix=$ac_optarg ;;
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
985 -help | --help | --hel | --he | -h)
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
992 -host | --host | --hos | --ho)
993 ac_prev=host_alias ;;
994 -host=* | --host=* | --hos=* | --ho=*)
995 host_alias=$ac_optarg ;;
997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 htmldir=$ac_optarg ;;
1003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
1008 includedir=$ac_optarg ;;
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013 infodir=$ac_optarg ;;
1015 -libdir | --libdir | --libdi | --libd)
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018 libdir=$ac_optarg ;;
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
1025 libexecdir=$ac_optarg ;;
1027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1032 -localstatedir | --localstatedir | --localstatedi | --localstated \
1033 | --localstate | --localstat | --localsta | --localst | --locals)
1034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037 localstatedir=$ac_optarg ;;
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042 mandir=$ac_optarg ;;
1044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 | --no-cr | --no-c | -n)
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063 oldincludedir=$ac_optarg ;;
1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068 prefix=$ac_optarg ;;
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075 program_prefix=$ac_optarg ;;
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082 program_suffix=$ac_optarg ;;
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
1099 program_transform_name=$ac_optarg ;;
1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1106 -psdir | --psdir | --psdi | --psd | --ps)
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1115 -runstatedir | --runstatedir | --runstatedi | --runstated \
1116 | --runstate | --runstat | --runsta | --runst | --runs \
1117 | --run | --ru | --r)
1118 ac_prev=runstatedir ;;
1119 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1120 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1121 | --run=* | --ru=* | --r=*)
1122 runstatedir=$ac_optarg ;;
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 sbindir=$ac_optarg ;;
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 sharedstatedir=$ac_optarg ;;
1141 -site | --site | --sit)
1143 -site=* | --site=* | --sit=*)
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1183 eval with_$ac_useropt=\$ac_optarg ;;
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1199 eval with_$ac_useropt=no ;;
1202 # Obsolete; use --with-x.
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error $? "missing argument to $ac_option"
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir runstatedir
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1270 # Be sure to have absolute directory names.
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1283 target=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 elif test "x$build_alias" != "x$host_alias"; then
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297 test "$silent" = yes && exec 6>/dev/null
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error $? "pwd does not report name of working directory"
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1340 ac_srcdir_defaulted=no
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1374 \`configure' configures xf86-input-mtrack 0.2.0 to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking ...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root
1424 [DATAROOTDIR/doc/xf86-input-mtrack]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of xf86-input-mtrack 0.2.0:";;
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-silent-rules less verbose build output (undo: "make V=1")
1455 --disable-silent-rules verbose build output (undo: "make V=0")
1456 --enable-maintainer-mode
1457 enable make rules and dependencies not useful (and
1458 sometimes confusing) to the casual installer
1459 --enable-static[=PKGS] build static libraries [default=no]
1460 --enable-shared[=PKGS] build shared libraries [default=yes]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --enable-dependency-tracking
1464 do not reject slow dependency extractors
1465 --disable-dependency-tracking
1466 speeds up one-time build
1467 --disable-libtool-lock avoid locking (might break parallel builds)
1468 --disable-selective-werror
1469 Turn off selective compiler errors. (default:
1471 --enable-strict-compilation
1472 Enable all warnings from compiler and make them
1473 errors (default: disabled)
1474 --enable-tools Build extra tools (default: disabled)
1475 --enable-debug-gestures Enable gesture debugging (default: disabled)
1476 --enable-debug-mtstate Enable multitouch state debugging (default:
1478 --enable-debug-props Enable property debugging (default: disabled)
1479 --enable-debug-driver Enable property debugging (default: disabled)
1480 --enable-debug Enable all debugging (default: disabled)
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1487 --with-aix-soname=aix|svr4|both
1488 shared library versioning (aka "SONAME") variant to
1489 provide on AIX, [default=aix].
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1492 compiler's sysroot if not specified).
1493 --with-xorg-module-dir=DIR
1494 Default xorg module directory
1495 [[default=$libdir/xorg/modules]]
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1506 User-defined run-time library search path.
1508 PKG_CONFIG path to pkg-config utility
1510 directories to add to pkg-config's search path
1512 path overriding pkg-config's built-in search path
1513 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1514 XORG_LIBS linker flags for XORG, overriding pkg-config
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1519 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" ||
1528 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1549 .) # We are building in place.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for guested configure.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1573 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1582 xf86-input-mtrack configure 0.2.0
1583 generated by GNU Autoconf 2.69
1585 Copyright (C) 2012 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1592 ## ------------------------ ##
1593 ## Autoconf initialization. ##
1594 ## ------------------------ ##
1596 # ac_fn_c_try_compile LINENO
1597 # --------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_compile ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext
1603 if { { ac_try="$ac_compile"
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_compile") 2>conftest.err
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest.$ac_objext; then :
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1632 } # ac_fn_c_try_compile
1634 # ac_fn_c_try_link LINENO
1635 # -----------------------
1636 # Try to link conftest.$ac_ext, and return whether this succeeded.
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 rm -f conftest.$ac_objext conftest$ac_exeext
1641 if { { ac_try="$ac_link"
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_link") 2>conftest.err
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && {
1657 test -z "$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 } && test -s conftest$ac_exeext && {
1660 test "$cross_compiling" = yes ||
1661 test -x conftest$ac_exeext
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672 # interfere with the next link command; also delete a directory that is
1673 # left behind by Apple's compiler. We do this before executing the actions.
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1678 } # ac_fn_c_try_link
1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists and can be compiled using the include files in
1683 # INCLUDES, setting the cache variable VAR accordingly.
1684 ac_fn_c_check_header_compile ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \${$3+:} false; then :
1690 $as_echo_n "(cached) " >&6
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1697 if ac_fn_c_try_compile "$LINENO"; then :
1702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706 $as_echo "$ac_res" >&6; }
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 } # ac_fn_c_check_header_compile
1711 # ac_fn_c_try_cpp LINENO
1712 # ----------------------
1713 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_cpp conftest.$ac_ext"
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } > conftest.i && {
1733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1748 # ac_fn_c_try_run LINENO
1749 # ----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751 # that executables *can* be run.
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { { ac_try="$ac_link"
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>&5
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766 { { case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_try") 2>&5
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; }; }; then :
1778 $as_echo "$as_me: program exited with status $ac_status" >&5
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1782 ac_retval=$ac_status
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1790 # ac_fn_c_check_func LINENO FUNC VAR
1791 # ----------------------------------
1792 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1793 ac_fn_c_check_func ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799 $as_echo_n "(cached) " >&6
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1803 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1805 #define $2 innocuous_$2
1807 /* System header to define __stub macros and hopefully few prototypes,
1808 which can conflict with char $2 (); below.
1809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1810 <limits.h> exists even on freestanding compilers. */
1813 # include <limits.h>
1815 # include <assert.h>
1820 /* Override any GCC internal prototype to avoid an error.
1821 Use char because int might match the return type of a GCC
1822 builtin and then its argument prototype would still apply. */
1827 /* The GNU C library defines this for functions which it implements
1828 to always fail with ENOSYS. Some functions are actually named
1829 something starting with __ and the normal name is an alias. */
1830 #if defined __stub_$2 || defined __stub___$2
1842 if ac_fn_c_try_link "$LINENO"; then :
1847 rm -f core conftest.err conftest.$ac_objext \
1848 conftest$ac_exeext conftest.$ac_ext
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 $as_echo "$ac_res" >&6; }
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 } # ac_fn_c_check_func
1857 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1858 # ---------------------------------------------
1859 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1861 ac_fn_c_check_decl ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 as_decl_name=`echo $2|sed 's/ *(.*//'`
1865 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1867 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1868 if eval \${$3+:} false; then :
1869 $as_echo_n "(cached) " >&6
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1877 #ifndef $as_decl_name
1879 (void) $as_decl_use;
1881 (void) $as_decl_name;
1889 if ac_fn_c_try_compile "$LINENO"; then :
1894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 } # ac_fn_c_check_decl
1902 cat >config.log <<_ACEOF
1903 This file contains any messages produced by compilers while
1904 running configure, to aid debugging if configure makes a mistake.
1906 It was created by xf86-input-mtrack $as_me 0.2.0, which was
1907 generated by GNU Autoconf 2.69. Invocation command line was
1919 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1920 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1921 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1922 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1923 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1925 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1926 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1928 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1929 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1930 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1931 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1932 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1933 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1934 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 test -z "$as_dir" && as_dir=.
1943 $as_echo "PATH: $as_dir"
1959 # Keep a trace of the command line.
1960 # Strip out --no-create and --no-recursion so they do not pile up.
1961 # Strip out --silent because we don't want to record it for future runs.
1962 # Also quote any args containing shell meta-characters.
1963 # Make two passes to allow for proper duplicate-argument suppression.
1967 ac_must_keep_next=false
1973 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1975 | -silent | --silent | --silen | --sile | --sil)
1978 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1981 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1983 as_fn_append ac_configure_args1 " '$ac_arg'"
1984 if test $ac_must_keep_next = true; then
1985 ac_must_keep_next=false # Got value, back to normal.
1988 *=* | --config-cache | -C | -disable-* | --disable-* \
1989 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1990 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1991 | -with-* | --with-* | -without-* | --without-* | --x)
1992 case "$ac_configure_args0 " in
1993 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1996 -* ) ac_must_keep_next=true ;;
1999 as_fn_append ac_configure_args " '$ac_arg'"
2004 { ac_configure_args0=; unset ac_configure_args0;}
2005 { ac_configure_args1=; unset ac_configure_args1;}
2007 # When interrupted or exit'd, cleanup temporary files, and complete
2008 # config.log. We remove comments because anyway the quotes in there
2009 # would cause problems or look ugly.
2010 # WARNING: Use '\'' to represent an apostrophe within the trap.
2011 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2012 trap 'exit_status=$?
2013 # Save into config.log some information that might help in debugging.
2017 $as_echo "## ---------------- ##
2018 ## Cache variables. ##
2019 ## ---------------- ##"
2021 # The following way of writing the cache mishandles newlines in values,
2023 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2024 eval ac_val=\$$ac_var
2028 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2029 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2032 _ | IFS | as_nl) ;; #(
2033 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2034 *) { eval $ac_var=; unset $ac_var;} ;;
2039 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2040 *${as_nl}ac_space=\ *)
2042 "s/'\''/'\''\\\\'\'''\''/g;
2043 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2046 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2053 $as_echo "## ----------------- ##
2054 ## Output variables. ##
2055 ## ----------------- ##"
2057 for ac_var in $ac_subst_vars
2059 eval ac_val=\$$ac_var
2061 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063 $as_echo "$ac_var='\''$ac_val'\''"
2067 if test -n "$ac_subst_files"; then
2068 $as_echo "## ------------------- ##
2069 ## File substitutions. ##
2070 ## ------------------- ##"
2072 for ac_var in $ac_subst_files
2074 eval ac_val=\$$ac_var
2076 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2078 $as_echo "$ac_var='\''$ac_val'\''"
2083 if test -s confdefs.h; then
2084 $as_echo "## ----------- ##
2091 test "$ac_signal" != 0 &&
2092 $as_echo "$as_me: caught signal $ac_signal"
2093 $as_echo "$as_me: exit $exit_status"
2095 rm -f core *.core core.conftest.* &&
2096 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2099 for ac_signal in 1 2 13 15; do
2100 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2104 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2105 rm -f -r conftest* confdefs.h
2107 $as_echo "/* confdefs.h */" > confdefs.h
2109 # Predefined preprocessor variables.
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_NAME "$PACKAGE_NAME"
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_STRING "$PACKAGE_STRING"
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_URL "$PACKAGE_URL"
2136 # Let the site file select an alternate cache file if it wants to.
2137 # Prefer an explicitly selected file to automatically selected ones.
2140 if test -n "$CONFIG_SITE"; then
2141 # We do not want a PATH search for config.site.
2142 case $CONFIG_SITE in #((
2143 -*) ac_site_file1=./$CONFIG_SITE;;
2144 */*) ac_site_file1=$CONFIG_SITE;;
2145 *) ac_site_file1=./$CONFIG_SITE;;
2147 elif test "x$prefix" != xNONE; then
2148 ac_site_file1=$prefix/share/config.site
2149 ac_site_file2=$prefix/etc/config.site
2151 ac_site_file1=$ac_default_prefix/share/config.site
2152 ac_site_file2=$ac_default_prefix/etc/config.site
2154 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2156 test "x$ac_site_file" = xNONE && continue
2157 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2159 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2160 sed 's/^/| /' "$ac_site_file" >&5
2162 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2164 as_fn_error $? "failed to load site script $ac_site_file
2165 See \`config.log' for more details" "$LINENO" 5; }
2169 if test -r "$cache_file"; then
2170 # Some versions of bash will fail to source /dev/null (special files
2171 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2172 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2174 $as_echo "$as_me: loading cache $cache_file" >&6;}
2176 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2177 *) . "./$cache_file";;
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2182 $as_echo "$as_me: creating cache $cache_file" >&6;}
2186 # Check that the precious variables saved in the cache have kept the same
2188 ac_cache_corrupted=false
2189 for ac_var in $ac_precious_vars; do
2190 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2191 eval ac_new_set=\$ac_env_${ac_var}_set
2192 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2193 eval ac_new_val=\$ac_env_${ac_var}_value
2194 case $ac_old_set,$ac_new_set in
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2197 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2198 ac_cache_corrupted=: ;;
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2201 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2202 ac_cache_corrupted=: ;;
2205 if test "x$ac_old_val" != "x$ac_new_val"; then
2206 # differences in whitespace do not lead to failure.
2207 ac_old_val_w=`echo x $ac_old_val`
2208 ac_new_val_w=`echo x $ac_new_val`
2209 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2211 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2212 ac_cache_corrupted=:
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2215 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2216 eval $ac_var=\$ac_old_val
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2219 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2221 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2224 # Pass precious variables to config.status.
2225 if test "$ac_new_set" = set; then
2227 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2228 *) ac_arg=$ac_var=$ac_new_val ;;
2230 case " $ac_configure_args " in
2231 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2232 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2236 if $ac_cache_corrupted; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2240 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2241 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2243 ## -------------------- ##
2244 ## Main body of script. ##
2245 ## -------------------- ##
2248 ac_cpp='$CPP $CPPFLAGS'
2249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256 ac_config_headers="$ac_config_headers config.h"
2259 for ac_dir in . "$srcdir"/.; do
2260 if test -f "$ac_dir/install-sh"; then
2262 ac_install_sh="$ac_aux_dir/install-sh -c"
2264 elif test -f "$ac_dir/install.sh"; then
2266 ac_install_sh="$ac_aux_dir/install.sh -c"
2268 elif test -f "$ac_dir/shtool"; then
2270 ac_install_sh="$ac_aux_dir/shtool install -c"
2274 if test -z "$ac_aux_dir"; then
2275 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2278 # These three variables are undocumented and unsupported,
2279 # and are intended to be withdrawn in a future Autoconf release.
2280 # They can cause serious problems if a builder's source tree is in a directory
2281 # whose full name contains unusual characters.
2282 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2283 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2284 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2288 # Initialize Automake
2289 am__api_version='1.15'
2291 # Find a good install program. We prefer a C program (faster),
2292 # so one script is as good as another. But avoid the broken or
2293 # incompatible versions:
2294 # SysV /etc/install, /usr/sbin/install
2295 # SunOS /usr/etc/install
2296 # IRIX /sbin/install
2298 # AmigaOS /C/install, which installs bootblocks on floppy discs
2299 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2300 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2301 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2302 # OS/2's system install, which has a completely different semantic
2303 # ./install, which can be erroneously created by make from ./install.sh.
2304 # Reject install programs that cannot install multiple files.
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2306 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2307 if test -z "$INSTALL"; then
2308 if ${ac_cv_path_install+:} false; then :
2309 $as_echo_n "(cached) " >&6
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 test -z "$as_dir" && as_dir=.
2316 # Account for people who put trailing slashes in PATH elements.
2317 case $as_dir/ in #((
2318 ./ | .// | /[cC]/* | \
2319 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2320 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2323 # OSF1 and SCO ODT 3.0 have their own names for install.
2324 # Don't use installbsd from OSF since it installs stuff as root
2326 for ac_prog in ginstall scoinst install; do
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2329 if test $ac_prog = install &&
2330 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2331 # AIX install. It has an incompatible calling convention.
2333 elif test $ac_prog = install &&
2334 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2335 # program-specific install script used by HP pwplus--don't use.
2338 rm -rf conftest.one conftest.two conftest.dir
2339 echo one > conftest.one
2340 echo two > conftest.two
2342 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2343 test -s conftest.one && test -s conftest.two &&
2344 test -s conftest.dir/conftest.one &&
2345 test -s conftest.dir/conftest.two
2347 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2360 rm -rf conftest.one conftest.two conftest.dir
2363 if test "${ac_cv_path_install+set}" = set; then
2364 INSTALL=$ac_cv_path_install
2366 # As a last resort, use the slow shell script. Don't cache a
2367 # value for INSTALL within a source directory, because that will
2368 # break other packages using the cache if that directory is
2369 # removed, or if the value is a relative name.
2370 INSTALL=$ac_install_sh
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2374 $as_echo "$INSTALL" >&6; }
2376 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2377 # It thinks the first close brace ends the variable substitution.
2378 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2380 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2382 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2385 $as_echo_n "checking whether build environment is sane... " >&6; }
2386 # Reject unsafe characters in $srcdir or the absolute working directory
2387 # name. Accept space and tab only in the latter.
2391 *[\\\"\#\$\&\'\`$am_lf]*)
2392 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2395 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2396 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2399 # Do 'set' in a subshell so we don't clobber the current shell's
2400 # arguments. Must try -L first in case configure is actually a
2401 # symlink; some systems play weird games with the mod time of symlinks
2402 # (eg FreeBSD returns the mod time of the symlink's containing
2406 for am_try in 1 2; do
2407 echo "timestamp, slept: $am_has_slept" > conftest.file
2408 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2409 if test "$*" = "X"; then
2411 set X `ls -t "$srcdir/configure" conftest.file`
2413 if test "$*" != "X $srcdir/configure conftest.file" \
2414 && test "$*" != "X conftest.file $srcdir/configure"; then
2416 # If neither matched, then we have a broken ls. This can happen
2417 # if, for instance, CONFIG_SHELL is bash and it inherits a
2418 # broken ls alias from the environment. This has actually
2419 # happened. Such a system could not be considered "sane".
2420 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2421 alias in your environment" "$LINENO" 5
2423 if test "$2" = conftest.file || test $am_try -eq 2; then
2430 test "$2" = conftest.file
2436 as_fn_error $? "newly created file is older than distributed files!
2437 Check your system clock" "$LINENO" 5
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2440 $as_echo "yes" >&6; }
2441 # If we didn't sleep, we still need to ensure time stamps of config.status and
2442 # generated files are strictly newer.
2444 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2451 test "$program_prefix" != NONE &&
2452 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2453 # Use a double $ so make ignores it.
2454 test "$program_suffix" != NONE &&
2455 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2456 # Double any \ or $.
2457 # By default was `s,x,x', remove it if useless.
2458 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2459 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2461 # Expand $ac_aux_dir to an absolute path.
2462 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2464 if test x"${MISSING+set}" != xset; then
2467 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2469 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2472 # Use eval to expand $SHELL
2473 if eval "$MISSING --is-lightweight"; then
2474 am_missing_run="$MISSING "
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2478 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2481 if test x"${install_sh+set}" != xset; then
2484 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2486 install_sh="\${SHELL} $am_aux_dir/install-sh"
2490 # Installed binaries are usually stripped using 'strip' when the user
2491 # run "make install-strip". However 'strip' might not be the right
2492 # tool to use in cross-compilation environments, therefore Automake
2493 # will honor the 'STRIP' environment variable to overrule this program.
2494 if test "$cross_compiling" != no; then
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}strip; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_STRIP+:} false; then :
2501 $as_echo_n "(cached) " >&6
2503 if test -n "$STRIP"; then
2504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 STRIP=$ac_cv_prog_STRIP
2524 if test -n "$STRIP"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2526 $as_echo "$STRIP" >&6; }
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2534 if test -z "$ac_cv_prog_STRIP"; then
2536 # Extract the first word of "strip", so it can be a program name with args.
2537 set dummy strip; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2541 $as_echo_n "(cached) " >&6
2543 if test -n "$ac_ct_STRIP"; then
2544 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_ac_ct_STRIP="strip"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2564 if test -n "$ac_ct_STRIP"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2566 $as_echo "$ac_ct_STRIP" >&6; }
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2572 if test "x$ac_ct_STRIP" = x; then
2575 case $cross_compiling:$ac_tool_warned in
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2579 ac_tool_warned=yes ;;
2584 STRIP="$ac_cv_prog_STRIP"
2588 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2591 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2592 if test -z "$MKDIR_P"; then
2593 if ${ac_cv_path_mkdir+:} false; then :
2594 $as_echo_n "(cached) " >&6
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2600 test -z "$as_dir" && as_dir=.
2601 for ac_prog in mkdir gmkdir; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2604 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2605 'mkdir (GNU coreutils) '* | \
2606 'mkdir (coreutils) '* | \
2607 'mkdir (fileutils) '4.1*)
2608 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2618 test -d ./--version && rmdir ./--version
2619 if test "${ac_cv_path_mkdir+set}" = set; then
2620 MKDIR_P="$ac_cv_path_mkdir -p"
2622 # As a last resort, use the slow shell script. Don't cache a
2623 # value for MKDIR_P within a source directory, because that will
2624 # break other packages using the cache if that directory is
2625 # removed, or if the value is a relative name.
2626 MKDIR_P="$ac_install_sh -d"
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2630 $as_echo "$MKDIR_P" >&6; }
2632 for ac_prog in gawk mawk nawk awk
2634 # Extract the first word of "$ac_prog", so it can be a program name with args.
2635 set dummy $ac_prog; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if ${ac_cv_prog_AWK+:} false; then :
2639 $as_echo_n "(cached) " >&6
2641 if test -n "$AWK"; then
2642 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_AWK="$ac_prog"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 if test -n "$AWK"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2664 $as_echo "$AWK" >&6; }
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2671 test -n "$AWK" && break
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2675 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2677 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2678 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2679 $as_echo_n "(cached) " >&6
2681 cat >conftest.make <<\_ACEOF
2684 @echo '@@@%%%=$(MAKE)=@@@%%%'
2686 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2687 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2689 eval ac_cv_prog_make_${ac_make}_set=yes;;
2691 eval ac_cv_prog_make_${ac_make}_set=no;;
2695 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2697 $as_echo "yes" >&6; }
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2702 SET_MAKE="MAKE=${MAKE-make}"
2705 rm -rf .tst 2>/dev/null
2706 mkdir .tst 2>/dev/null
2707 if test -d .tst; then
2712 rmdir .tst 2>/dev/null
2714 # Check whether --enable-silent-rules was given.
2715 if test "${enable_silent_rules+set}" = set; then :
2716 enableval=$enable_silent_rules;
2719 case $enable_silent_rules in # (((
2720 yes) AM_DEFAULT_VERBOSITY=0;;
2721 no) AM_DEFAULT_VERBOSITY=1;;
2722 *) AM_DEFAULT_VERBOSITY=1;;
2724 am_make=${MAKE-make}
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2726 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2727 if ${am_cv_make_support_nested_variables+:} false; then :
2728 $as_echo_n "(cached) " >&6
2730 if $as_echo 'TRUE=$(BAR$(V))
2736 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2737 am_cv_make_support_nested_variables=yes
2739 am_cv_make_support_nested_variables=no
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2743 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2744 if test $am_cv_make_support_nested_variables = yes; then
2746 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2748 AM_V=$AM_DEFAULT_VERBOSITY
2749 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2753 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2754 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2755 # is not polluted with repeated "-I."
2756 am__isrc=' -I$(srcdir)'
2757 # test to see if srcdir already configured
2758 if test -f $srcdir/config.status; then
2759 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2763 # test whether we have cygpath
2764 if test -z "$CYGPATH_W"; then
2765 if (cygpath --version) >/dev/null 2>/dev/null; then
2766 CYGPATH_W='cygpath -w'
2773 # Define the identity of the package.
2774 PACKAGE='xf86-input-mtrack'
2778 cat >>confdefs.h <<_ACEOF
2779 #define PACKAGE "$PACKAGE"
2783 cat >>confdefs.h <<_ACEOF
2784 #define VERSION "$VERSION"
2787 # Some tools Automake needs.
2789 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2792 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2795 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2798 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2801 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2803 # For better backward compatibility. To be removed once Automake 1.9.x
2804 # dies out for good. For more background, see:
2805 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2806 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2807 mkdir_p='$(MKDIR_P)'
2809 # We need awk for the "check" target (and possibly the TAP driver). The
2810 # system "awk" is bad on some platforms.
2811 # Always define AMTAR for backward compatibility. Yes, it's still used
2812 # in the wild :-( We should find a proper way to deprecate it ...
2816 # We'll loop over all known methods to create a tar archive until one works.
2817 _am_tools='gnutar pax cpio none'
2819 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2826 # POSIX will say in a future version that running "rm -f" with no argument
2827 # is OK; and we want to be able to make that assumption in our Makefile
2828 # recipes. So use an aggressive probe to check that the usage we want is
2829 # actually supported "in the wild" to an acceptable degree.
2830 # See automake bug#10828.
2831 # To make any issue more visible, cause the running configure to be aborted
2832 # by default if the 'rm' program in use doesn't match our expectations; the
2833 # user can still override this though.
2834 if rm -f && rm -fr && rm -rf; then : OK; else
2838 Your 'rm' program seems unable to run without file operands specified
2839 on the command line, even when the '-f' option is present. This is contrary
2840 to the behaviour of most rm programs out there, and not conforming with
2841 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2843 Please tell bug-automake@gnu.org about your system, including the value
2844 of your $PATH and any error possibly output before this message. This
2845 can help us improve future automake versions.
2848 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2849 echo 'Configuration will proceed anyway, since you have set the' >&2
2850 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2854 Aborting the configuration process, to ensure you take notice of the issue.
2856 You can download and install GNU coreutils to get an 'rm' implementation
2857 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2859 If you want to complete the configuration process using your problematic
2860 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2861 to "yes", and re-run configure.
2864 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2870 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2871 # Check whether --enable-maintainer-mode was given.
2872 if test "${enable_maintainer_mode+set}" = set; then :
2873 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2875 USE_MAINTAINER_MODE=no
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2879 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2880 if test $USE_MAINTAINER_MODE = yes; then
2881 MAINTAINER_MODE_TRUE=
2882 MAINTAINER_MODE_FALSE='#'
2884 MAINTAINER_MODE_TRUE='#'
2885 MAINTAINER_MODE_FALSE=
2888 MAINT=$MAINTAINER_MODE_TRUE
2892 # Initialize libtool
2893 # Check whether --enable-static was given.
2894 if test "${enable_static+set}" = set; then :
2895 enableval=$enable_static; p=${PACKAGE-default}
2897 yes) enable_static=yes ;;
2898 no) enable_static=no ;;
2901 # Look at the argument we got. We use all the common list separators.
2902 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
2903 for pkg in $enableval; do
2905 if test "X$pkg" = "X$p"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2927 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2932 macro_version='2.4.6'
2933 macro_revision='2.4.6'
2947 ltmain=$ac_aux_dir/ltmain.sh
2949 # Make sure we can run config.sub.
2950 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2951 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2954 $as_echo_n "checking build system type... " >&6; }
2955 if ${ac_cv_build+:} false; then :
2956 $as_echo_n "(cached) " >&6
2958 ac_build_alias=$build_alias
2959 test "x$ac_build_alias" = x &&
2960 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2961 test "x$ac_build_alias" = x &&
2962 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2963 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2964 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2968 $as_echo "$ac_cv_build" >&6; }
2969 case $ac_cv_build in
2971 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2974 ac_save_IFS=$IFS; IFS='-'
2980 # Remember, the first character of IFS is used to create $*,
2981 # except with old shells:
2984 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2988 $as_echo_n "checking host system type... " >&6; }
2989 if ${ac_cv_host+:} false; then :
2990 $as_echo_n "(cached) " >&6
2992 if test "x$host_alias" = x; then
2993 ac_cv_host=$ac_cv_build
2995 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2996 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3001 $as_echo "$ac_cv_host" >&6; }
3004 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3007 ac_save_IFS=$IFS; IFS='-'
3013 # Remember, the first character of IFS is used to create $*,
3014 # except with old shells:
3017 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3020 # Backslashify metacharacters that are still active within
3021 # double-quoted strings.
3022 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3024 # Same as above, but do not quote variable references.
3025 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3027 # Sed substitution to delay expansion of an escaped shell variable in a
3028 # double_quote_subst'ed string.
3029 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3031 # Sed substitution to delay expansion of an escaped single quote.
3032 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3034 # Sed substitution to avoid accidental globbing in evaled expressions
3035 no_glob_subst='s/\*/\\\*/g'
3037 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3038 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3039 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3042 $as_echo_n "checking how to print strings... " >&6; }
3043 # Test print first, because it will be a builtin if present.
3044 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3045 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3047 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3050 # Use this function as a fallback that always works.
3051 func_fallback_echo ()
3053 eval 'cat <<_LTECHO_EOF
3057 ECHO='func_fallback_echo'
3060 # func_echo_all arg...
3061 # Invoke $ECHO with all args, space-separated.
3068 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3069 $as_echo "printf" >&6; } ;;
3070 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3071 $as_echo "print -r" >&6; } ;;
3072 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3073 $as_echo "cat" >&6; } ;;
3089 DEPDIR="${am__leading_dot}deps"
3091 ac_config_commands="$ac_config_commands depfiles"
3094 am_make=${MAKE-make}
3095 cat > confinc << 'END'
3097 @echo this is the am__doit target
3100 # If we don't find an include directive, just comment out the code.
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3102 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3106 # First try GNU make style include.
3107 echo "include confinc" > confmf
3108 # Ignore all kinds of additional output from 'make'.
3109 case `$am_make -s -f confmf 2> /dev/null` in #(
3110 *the\ am__doit\ target*)
3116 # Now try BSD make style include.
3117 if test "$am__include" = "#"; then
3118 echo '.include "confinc"' > confmf
3119 case `$am_make -s -f confmf 2> /dev/null` in #(
3120 *the\ am__doit\ target*)
3121 am__include=.include
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3130 $as_echo "$_am_result" >&6; }
3131 rm -f confinc confmf
3133 # Check whether --enable-dependency-tracking was given.
3134 if test "${enable_dependency_tracking+set}" = set; then :
3135 enableval=$enable_dependency_tracking;
3138 if test "x$enable_dependency_tracking" != xno; then
3139 am_depcomp="$ac_aux_dir/depcomp"
3143 if test "x$enable_dependency_tracking" != xno; then
3153 ac_cpp='$CPP $CPPFLAGS'
3154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157 if test -n "$ac_tool_prefix"; then
3158 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3159 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_CC+:} false; then :
3163 $as_echo_n "(cached) " >&6
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 if test -n "$CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188 $as_echo "$CC" >&6; }
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3196 if test -z "$ac_cv_prog_CC"; then
3198 # Extract the first word of "gcc", so it can be a program name with args.
3199 set dummy gcc; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3203 $as_echo_n "(cached) " >&6
3205 if test -n "$ac_ct_CC"; then
3206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_ac_ct_CC="gcc"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3228 $as_echo "$ac_ct_CC" >&6; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3234 if test "x$ac_ct_CC" = x; then
3237 case $cross_compiling:$ac_tool_warned in
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3241 ac_tool_warned=yes ;;
3249 if test -z "$CC"; then
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}cc; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if ${ac_cv_prog_CC+:} false; then :
3256 $as_echo_n "(cached) " >&6
3258 if test -n "$CC"; then
3259 ac_cv_prog_CC="$CC" # Let the user override the test.
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_CC="${ac_tool_prefix}cc"
3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 if test -n "$CC"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281 $as_echo "$CC" >&6; }
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3290 if test -z "$CC"; then
3291 # Extract the first word of "cc", so it can be a program name with args.
3292 set dummy cc; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if ${ac_cv_prog_CC+:} false; then :
3296 $as_echo_n "(cached) " >&6
3298 if test -n "$CC"; then
3299 ac_cv_prog_CC="$CC" # Let the user override the test.
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3310 ac_prog_rejected=yes
3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 if test $ac_prog_rejected = yes; then
3322 # We found a bogon in the path, so make sure we never use it.
3323 set dummy $ac_cv_prog_CC
3325 if test $# != 0; then
3326 # We chose a different compiler from the bogus one.
3327 # However, it has the same basename, so the bogon will be chosen
3328 # first if we set CC to just the basename; use the full file name.
3330 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3336 if test -n "$CC"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338 $as_echo "$CC" >&6; }
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3346 if test -z "$CC"; then
3347 if test -n "$ac_tool_prefix"; then
3348 for ac_prog in cl.exe
3350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_CC+:} false; then :
3355 $as_echo_n "(cached) " >&6
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 if test -n "$CC"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3380 $as_echo "$CC" >&6; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3387 test -n "$CC" && break
3390 if test -z "$CC"; then
3392 for ac_prog in cl.exe
3394 # Extract the first word of "$ac_prog", so it can be a program name with args.
3395 set dummy $ac_prog; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3399 $as_echo_n "(cached) " >&6
3401 if test -n "$ac_ct_CC"; then
3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_ac_ct_CC="$ac_prog"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3422 if test -n "$ac_ct_CC"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3424 $as_echo "$ac_ct_CC" >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3431 test -n "$ac_ct_CC" && break
3434 if test "x$ac_ct_CC" = x; then
3437 case $cross_compiling:$ac_tool_warned in
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3441 ac_tool_warned=yes ;;
3450 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error $? "no acceptable C compiler found in \$PATH
3453 See \`config.log' for more details" "$LINENO" 5; }
3455 # Provide some information about the compiler.
3456 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3459 for ac_option in --version -v -V -qversion; do
3460 { { ac_try="$ac_compiler $ac_option >&5"
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3469 if test -s conftest.err; then
3471 ... rest of stderr output deleted ...
3472 10q' conftest.err >conftest.er1
3473 cat conftest.er1 >&5
3475 rm -f conftest.er1 conftest.err
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3491 ac_clean_files_save=$ac_clean_files
3492 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3493 # Try to create an executable without -o first, disregard a.out.
3494 # It will help us diagnose broken compilers, and finding out an intuition
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3497 $as_echo_n "checking whether the C compiler works... " >&6; }
3498 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3500 # The possible output files:
3501 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3504 for ac_file in $ac_files
3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3508 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3513 if { { ac_try="$ac_link_default"
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_link_default") 2>&5
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }; then :
3524 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3525 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3526 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3527 # so that the user can short-circuit this test for compilers unknown to
3529 for ac_file in $ac_files ''
3531 test -f "$ac_file" || continue
3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3536 # We found the default executable, but exeext='' is most
3540 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3542 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3544 # We set ac_cv_exeext here because the later test for it is not
3545 # safe: cross compilers may not add the suffix if given an `-o'
3546 # argument, so we may need to know it at that point already.
3547 # Even if this section looks crufty: it has the advantage of
3554 test "$ac_cv_exeext" = no && ac_cv_exeext=
3559 if test -z "$ac_file"; then :
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3562 $as_echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error 77 "C compiler cannot create executables
3568 See \`config.log' for more details" "$LINENO" 5; }
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3571 $as_echo "yes" >&6; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3574 $as_echo_n "checking for C compiler default output file name... " >&6; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3576 $as_echo "$ac_file" >&6; }
3577 ac_exeext=$ac_cv_exeext
3579 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3580 ac_clean_files=$ac_clean_files_save
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3582 $as_echo_n "checking for suffix of executables... " >&6; }
3583 if { { ac_try="$ac_link"
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_link") 2>&5
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }; then :
3594 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3595 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3596 # work properly (i.e., refer to `conftest.exe'), while it won't with
3598 for ac_file in conftest.exe conftest conftest.*; do
3599 test -f "$ac_file" || continue
3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3602 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3611 See \`config.log' for more details" "$LINENO" 5; }
3613 rm -f conftest conftest$ac_cv_exeext
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3615 $as_echo "$ac_cv_exeext" >&6; }
3617 rm -f conftest.$ac_ext
3618 EXEEXT=$ac_cv_exeext
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3626 FILE *f = fopen ("conftest.out", "w");
3627 return ferror (f) || fclose (f) != 0;
3633 ac_clean_files="$ac_clean_files conftest.out"
3634 # Check that the compiler produces executables we can run. If not, either
3635 # the compiler is broken, or we cross compile.
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3637 $as_echo_n "checking whether we are cross compiling... " >&6; }
3638 if test "$cross_compiling" != yes; then
3639 { { ac_try="$ac_link"
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_link") 2>&5
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }
3650 if { ac_try='./conftest$ac_cv_exeext'
3651 { { case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_try") 2>&5
3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }; }; then
3663 if test "$cross_compiling" = maybe; then
3666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error $? "cannot run C compiled programs.
3669 If you meant to cross compile, use \`--host'.
3670 See \`config.log' for more details" "$LINENO" 5; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3675 $as_echo "$cross_compiling" >&6; }
3677 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3678 ac_clean_files=$ac_clean_files_save
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3680 $as_echo_n "checking for suffix of object files... " >&6; }
3681 if ${ac_cv_objext+:} false; then :
3682 $as_echo_n "(cached) " >&6
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3695 rm -f conftest.o conftest.obj
3696 if { { ac_try="$ac_compile"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 $as_echo "$ac_try_echo"; } >&5
3703 (eval "$ac_compile") 2>&5
3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706 test $ac_status = 0; }; then :
3707 for ac_file in conftest.o conftest.obj conftest.*; do
3708 test -f "$ac_file" || continue;
3710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3711 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3716 $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 as_fn_error $? "cannot compute suffix of object files: cannot compile
3722 See \`config.log' for more details" "$LINENO" 5; }
3724 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3727 $as_echo "$ac_cv_objext" >&6; }
3728 OBJEXT=$ac_cv_objext
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3731 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3732 if ${ac_cv_c_compiler_gnu+:} false; then :
3733 $as_echo_n "(cached) " >&6
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3749 if ac_fn_c_try_compile "$LINENO"; then :
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3759 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3760 if test $ac_compiler_gnu = yes; then
3765 ac_test_CFLAGS=${CFLAGS+set}
3766 ac_save_CFLAGS=$CFLAGS
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3768 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3769 if ${ac_cv_prog_cc_g+:} false; then :
3770 $as_echo_n "(cached) " >&6
3772 ac_save_c_werror_flag=$ac_c_werror_flag
3773 ac_c_werror_flag=yes
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3787 if ac_fn_c_try_compile "$LINENO"; then :
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3802 if ac_fn_c_try_compile "$LINENO"; then :
3805 ac_c_werror_flag=$ac_save_c_werror_flag
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3818 if ac_fn_c_try_compile "$LINENO"; then :
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 ac_c_werror_flag=$ac_save_c_werror_flag
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3829 $as_echo "$ac_cv_prog_cc_g" >&6; }
3830 if test "$ac_test_CFLAGS" = set; then
3831 CFLAGS=$ac_save_CFLAGS
3832 elif test $ac_cv_prog_cc_g = yes; then
3833 if test "$GCC" = yes; then
3839 if test "$GCC" = yes; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3846 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3847 if ${ac_cv_prog_cc_c89+:} false; then :
3848 $as_echo_n "(cached) " >&6
3850 ac_cv_prog_cc_c89=no
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3858 struct buf { int x; };
3859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3860 static char *e (p, i)
3866 static char *f (char * (*g) (char **, int), char **p, ...)
3871 s = g (p, va_arg (v,int));
3876 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3877 function prototypes and stuff, but not '\xHH' hex character constants.
3878 These don't provoke an error unfortunately, instead are silently treated
3879 as 'x'. The following induces an error, until -std is added to get
3880 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3881 array size at least. It's necessary to write '\x00'==0 to get something
3882 that's true only with -std. */
3883 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3885 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3886 inside strings and character constants. */
3888 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3890 int test (int i, double x);
3891 struct s1 {int (*f) (int a);};
3892 struct s2 {int (*f) (double a);};
3893 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3899 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3904 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3905 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3907 CC="$ac_save_CC $ac_arg"
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_cv_prog_cc_c89=$ac_arg
3911 rm -f core conftest.err conftest.$ac_objext
3912 test "x$ac_cv_prog_cc_c89" != "xno" && break
3914 rm -f conftest.$ac_ext
3919 case "x$ac_cv_prog_cc_c89" in
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3922 $as_echo "none needed" >&6; } ;;
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3925 $as_echo "unsupported" >&6; } ;;
3927 CC="$CC $ac_cv_prog_cc_c89"
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3929 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3931 if test "x$ac_cv_prog_cc_c89" != xno; then :
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942 ac_cpp='$CPP $CPPFLAGS'
3943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3947 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3948 if ${am_cv_prog_cc_c_o+:} false; then :
3949 $as_echo_n "(cached) " >&6
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3962 # Make sure it works both with $CC and with simple cc.
3963 # Following AC_PROG_CC_C_O, we do the test twice because some
3964 # compilers refuse to overwrite an existing .o file with -o,
3965 # though they will create one.
3966 am_cv_prog_cc_c_o=yes
3968 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3969 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } \
3973 && test -f conftest2.$ac_objext; then
3976 am_cv_prog_cc_c_o=no
3980 rm -f core conftest*
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3984 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3985 if test "$am_cv_prog_cc_c_o" != yes; then
3986 # Losing compiler, so override with the script.
3987 # FIXME: It is wrong to rewrite CC.
3988 # But if we don't then we get into trouble of one sort or another.
3989 # A longer-term fix would be to have automake use am__CC in this case,
3990 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3991 CC="$am_aux_dir/compile $CC"
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000 depcc="$CC" am_compiler_list=
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4003 $as_echo_n "checking dependency style of $depcc... " >&6; }
4004 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4005 $as_echo_n "(cached) " >&6
4007 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4008 # We make a subdir and do the tests there. Otherwise we can end up
4009 # making bogus files that we don't know about and never remove. For
4010 # instance it was reported that on HP-UX the gcc test will end up
4011 # making a dummy file named 'D' -- because '-MD' means "put the output
4015 # Copy depcomp to subdir because otherwise we won't find it if we're
4016 # using a relative directory.
4017 cp "$am_depcomp" conftest.dir
4019 # We will build objects and dependencies in a subdirectory because
4020 # it helps to detect inapplicable dependency modes. For instance
4021 # both Tru64's cc and ICC support -MD to output dependencies as a
4022 # side effect of compilation, but ICC will put the dependencies in
4023 # the current directory while Tru64 will put them in the object
4027 am_cv_CC_dependencies_compiler_type=none
4028 if test "$am_compiler_list" = ""; then
4029 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4032 case " $depcc " in #(
4033 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4036 for depmode in $am_compiler_list; do
4037 # Setup a source with many dependencies, because some compilers
4038 # like to wrap large dependency lists on column 80 (with \), and
4039 # we should not choose a depcomp mode which is confused by this.
4041 # We need to recreate these files for each test, as the compiler may
4042 # overwrite some of them when testing with obscure command lines.
4043 # This happens at least with the AIX C compiler.
4045 for i in 1 2 3 4 5 6; do
4046 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4047 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4048 # Solaris 10 /bin/sh.
4049 echo '/* dummy */' > sub/conftst$i.h
4051 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4053 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4054 # mode. It turns out that the SunPro C++ compiler does not properly
4055 # handle '-M -o', and we need to detect this. Also, some Intel
4056 # versions had trouble with output in subdirs.
4057 am__obj=sub/conftest.${OBJEXT-o}
4058 am__minus_obj="-o $am__obj"
4061 # This depmode causes a compiler race in universal mode.
4062 test "$am__universal" = false || continue
4065 # After this tag, mechanisms are not by side-effect, so they'll
4066 # only be used when explicitly requested.
4067 if test "x$enable_dependency_tracking" = xyes; then
4073 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4074 # This compiler won't grok '-c -o', but also, the minuso test has
4075 # not run yet. These depmodes are late enough in the game, and
4076 # so weak that their functioning should not be impacted.
4077 am__obj=conftest.${OBJEXT-o}
4082 if depmode=$depmode \
4083 source=sub/conftest.c object=$am__obj \
4084 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4085 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4086 >/dev/null 2>conftest.err &&
4087 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4088 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4089 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4090 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4091 # icc doesn't choke on unknown options, it will just issue warnings
4092 # or remarks (even with -Werror). So we grep stderr for any message
4093 # that says an option was ignored or not supported.
4094 # When given -MP, icc 7.0 and 7.1 complain thusly:
4095 # icc: Command line warning: ignoring option '-M'; no argument required
4096 # The diagnosis changed in icc 8.0:
4097 # icc: Command line remark: option '-MP' not supported
4098 if (grep 'ignoring option' conftest.err ||
4099 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4100 am_cv_CC_dependencies_compiler_type=$depmode
4109 am_cv_CC_dependencies_compiler_type=none
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4114 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4115 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4118 test "x$enable_dependency_tracking" != xno \
4119 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4121 am__fastdepCC_FALSE='#'
4123 am__fastdepCC_TRUE='#'
4124 am__fastdepCC_FALSE=
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4129 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4130 if ${ac_cv_path_SED+:} false; then :
4131 $as_echo_n "(cached) " >&6
4133 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4134 for ac_i in 1 2 3 4 5 6 7; do
4135 ac_script="$ac_script$as_nl$ac_script"
4137 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4138 { ac_script=; unset ac_script;}
4139 if test -z "$SED"; then
4140 ac_path_SED_found=false
4141 # Loop through the user's path and test for each of PROGNAME-LIST
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 test -z "$as_dir" && as_dir=.
4147 for ac_prog in sed gsed; do
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4150 as_fn_executable_p "$ac_path_SED" || continue
4151 # Check for GNU ac_path_SED and select it if it is found.
4152 # Check for GNU $ac_path_SED
4153 case `"$ac_path_SED" --version 2>&1` in
4155 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4158 $as_echo_n 0123456789 >"conftest.in"
4161 cat "conftest.in" "conftest.in" >"conftest.tmp"
4162 mv "conftest.tmp" "conftest.in"
4163 cp "conftest.in" "conftest.nl"
4164 $as_echo '' >> "conftest.nl"
4165 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4167 as_fn_arith $ac_count + 1 && ac_count=$as_val
4168 if test $ac_count -gt ${ac_path_SED_max-0}; then
4169 # Best one so far, save it but keep looking for a better one
4170 ac_cv_path_SED="$ac_path_SED"
4171 ac_path_SED_max=$ac_count
4173 # 10*(2^10) chars as input seems more than enough
4174 test $ac_count -gt 10 && break
4176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4179 $ac_path_SED_found && break 3
4184 if test -z "$ac_cv_path_SED"; then
4185 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4193 $as_echo "$ac_cv_path_SED" >&6; }
4194 SED="$ac_cv_path_SED"
4197 test -z "$SED" && SED=sed
4198 Xsed="$SED -e 1s/^X//"
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4211 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4212 if ${ac_cv_path_GREP+:} false; then :
4213 $as_echo_n "(cached) " >&6
4215 if test -z "$GREP"; then
4216 ac_path_GREP_found=false
4217 # Loop through the user's path and test for each of PROGNAME-LIST
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222 test -z "$as_dir" && as_dir=.
4223 for ac_prog in grep ggrep; do
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4226 as_fn_executable_p "$ac_path_GREP" || continue
4227 # Check for GNU ac_path_GREP and select it if it is found.
4228 # Check for GNU $ac_path_GREP
4229 case `"$ac_path_GREP" --version 2>&1` in
4231 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4234 $as_echo_n 0123456789 >"conftest.in"
4237 cat "conftest.in" "conftest.in" >"conftest.tmp"
4238 mv "conftest.tmp" "conftest.in"
4239 cp "conftest.in" "conftest.nl"
4240 $as_echo 'GREP' >> "conftest.nl"
4241 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4243 as_fn_arith $ac_count + 1 && ac_count=$as_val
4244 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4245 # Best one so far, save it but keep looking for a better one
4246 ac_cv_path_GREP="$ac_path_GREP"
4247 ac_path_GREP_max=$ac_count
4249 # 10*(2^10) chars as input seems more than enough
4250 test $ac_count -gt 10 && break
4252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255 $ac_path_GREP_found && break 3
4260 if test -z "$ac_cv_path_GREP"; then
4261 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4264 ac_cv_path_GREP=$GREP
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4269 $as_echo "$ac_cv_path_GREP" >&6; }
4270 GREP="$ac_cv_path_GREP"
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4274 $as_echo_n "checking for egrep... " >&6; }
4275 if ${ac_cv_path_EGREP+:} false; then :
4276 $as_echo_n "(cached) " >&6
4278 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4279 then ac_cv_path_EGREP="$GREP -E"
4281 if test -z "$EGREP"; then
4282 ac_path_EGREP_found=false
4283 # Loop through the user's path and test for each of PROGNAME-LIST
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288 test -z "$as_dir" && as_dir=.
4289 for ac_prog in egrep; do
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4292 as_fn_executable_p "$ac_path_EGREP" || continue
4293 # Check for GNU ac_path_EGREP and select it if it is found.
4294 # Check for GNU $ac_path_EGREP
4295 case `"$ac_path_EGREP" --version 2>&1` in
4297 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4300 $as_echo_n 0123456789 >"conftest.in"
4303 cat "conftest.in" "conftest.in" >"conftest.tmp"
4304 mv "conftest.tmp" "conftest.in"
4305 cp "conftest.in" "conftest.nl"
4306 $as_echo 'EGREP' >> "conftest.nl"
4307 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309 as_fn_arith $ac_count + 1 && ac_count=$as_val
4310 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4311 # Best one so far, save it but keep looking for a better one
4312 ac_cv_path_EGREP="$ac_path_EGREP"
4313 ac_path_EGREP_max=$ac_count
4315 # 10*(2^10) chars as input seems more than enough
4316 test $ac_count -gt 10 && break
4318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321 $ac_path_EGREP_found && break 3
4326 if test -z "$ac_cv_path_EGREP"; then
4327 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4330 ac_cv_path_EGREP=$EGREP
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4336 $as_echo "$ac_cv_path_EGREP" >&6; }
4337 EGREP="$ac_cv_path_EGREP"
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4341 $as_echo_n "checking for fgrep... " >&6; }
4342 if ${ac_cv_path_FGREP+:} false; then :
4343 $as_echo_n "(cached) " >&6
4345 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4346 then ac_cv_path_FGREP="$GREP -F"
4348 if test -z "$FGREP"; then
4349 ac_path_FGREP_found=false
4350 # Loop through the user's path and test for each of PROGNAME-LIST
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355 test -z "$as_dir" && as_dir=.
4356 for ac_prog in fgrep; do
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4359 as_fn_executable_p "$ac_path_FGREP" || continue
4360 # Check for GNU ac_path_FGREP and select it if it is found.
4361 # Check for GNU $ac_path_FGREP
4362 case `"$ac_path_FGREP" --version 2>&1` in
4364 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4367 $as_echo_n 0123456789 >"conftest.in"
4370 cat "conftest.in" "conftest.in" >"conftest.tmp"
4371 mv "conftest.tmp" "conftest.in"
4372 cp "conftest.in" "conftest.nl"
4373 $as_echo 'FGREP' >> "conftest.nl"
4374 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4376 as_fn_arith $ac_count + 1 && ac_count=$as_val
4377 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4378 # Best one so far, save it but keep looking for a better one
4379 ac_cv_path_FGREP="$ac_path_FGREP"
4380 ac_path_FGREP_max=$ac_count
4382 # 10*(2^10) chars as input seems more than enough
4383 test $ac_count -gt 10 && break
4385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388 $ac_path_FGREP_found && break 3
4393 if test -z "$ac_cv_path_FGREP"; then
4394 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397 ac_cv_path_FGREP=$FGREP
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4403 $as_echo "$ac_cv_path_FGREP" >&6; }
4404 FGREP="$ac_cv_path_FGREP"
4407 test -z "$GREP" && GREP=grep
4427 # Check whether --with-gnu-ld was given.
4428 if test "${with_gnu_ld+set}" = set; then :
4429 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4435 if test yes = "$GCC"; then
4436 # Check if gcc -print-prog-name=ld gives a path.
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4438 $as_echo_n "checking for ld used by $CC... " >&6; }
4441 # gcc leaves a trailing carriage return, which upsets mingw
4442 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4444 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4447 # Accept absolute paths.
4449 re_direlt='/[^/][^/]*/\.\./'
4450 # Canonicalize the pathname of ld
4451 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4452 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4453 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4455 test -z "$LD" && LD=$ac_prog
4458 # If it fails, then pretend we aren't using GCC.
4462 # If it is relative, then search for the first ld in PATH.
4466 elif test yes = "$with_gnu_ld"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4468 $as_echo_n "checking for GNU ld... " >&6; }
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4471 $as_echo_n "checking for non-GNU ld... " >&6; }
4473 if ${lt_cv_path_LD+:} false; then :
4474 $as_echo_n "(cached) " >&6
4476 if test -z "$LD"; then
4477 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4478 for ac_dir in $PATH; do
4480 test -z "$ac_dir" && ac_dir=.
4481 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4482 lt_cv_path_LD=$ac_dir/$ac_prog
4483 # Check to see if the program is GNU ld. I'd rather use --version,
4484 # but apparently some variants of GNU ld only accept -v.
4485 # Break only if it was the GNU/non-GNU ld that we prefer.
4486 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4487 *GNU* | *'with BFD'*)
4488 test no != "$with_gnu_ld" && break
4491 test yes != "$with_gnu_ld" && break
4498 lt_cv_path_LD=$LD # Let the user override the test with a path.
4503 if test -n "$LD"; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4505 $as_echo "$LD" >&6; }
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 $as_echo "no" >&6; }
4510 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4512 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4513 if ${lt_cv_prog_gnu_ld+:} false; then :
4514 $as_echo_n "(cached) " >&6
4516 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4517 case `$LD -v 2>&1 </dev/null` in
4518 *GNU* | *'with BFD'*)
4519 lt_cv_prog_gnu_ld=yes
4522 lt_cv_prog_gnu_ld=no
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4527 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4528 with_gnu_ld=$lt_cv_prog_gnu_ld
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4539 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4540 if ${lt_cv_path_NM+:} false; then :
4541 $as_echo_n "(cached) " >&6
4543 if test -n "$NM"; then
4544 # Let the user override the test.
4547 lt_nm_to_check=${ac_tool_prefix}nm
4548 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4549 lt_nm_to_check="$lt_nm_to_check nm"
4551 for lt_tmp_nm in $lt_nm_to_check; do
4552 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4553 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4555 test -z "$ac_dir" && ac_dir=.
4556 tmp_nm=$ac_dir/$lt_tmp_nm
4557 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4558 # Check to see if the nm accepts a BSD-compat flag.
4559 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4560 # nm: unknown option "B" ignored
4561 # Tru64's nm complains that /dev/null is an invalid object file
4562 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4564 mingw*) lt_bad_file=conftest.nm/nofile ;;
4565 *) lt_bad_file=/dev/null ;;
4567 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4568 *$lt_bad_file* | *'Invalid file or object type'*)
4569 lt_cv_path_NM="$tmp_nm -B"
4573 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4575 lt_cv_path_NM="$tmp_nm -p"
4579 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4580 continue # so that we can try to find one that supports BSD flags
4589 : ${lt_cv_path_NM=no}
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4593 $as_echo "$lt_cv_path_NM" >&6; }
4594 if test no != "$lt_cv_path_NM"; then
4597 # Didn't find any BSD compatible name lister, look for dumpbin.
4598 if test -n "$DUMPBIN"; then :
4599 # Let the user override the test.
4601 if test -n "$ac_tool_prefix"; then
4602 for ac_prog in dumpbin "link -dump"
4604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if ${ac_cv_prog_DUMPBIN+:} false; then :
4609 $as_echo_n "(cached) " >&6
4611 if test -n "$DUMPBIN"; then
4612 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 DUMPBIN=$ac_cv_prog_DUMPBIN
4632 if test -n "$DUMPBIN"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4634 $as_echo "$DUMPBIN" >&6; }
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4641 test -n "$DUMPBIN" && break
4644 if test -z "$DUMPBIN"; then
4645 ac_ct_DUMPBIN=$DUMPBIN
4646 for ac_prog in dumpbin "link -dump"
4648 # Extract the first word of "$ac_prog", so it can be a program name with args.
4649 set dummy $ac_prog; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4653 $as_echo_n "(cached) " >&6
4655 if test -n "$ac_ct_DUMPBIN"; then
4656 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4676 if test -n "$ac_ct_DUMPBIN"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4678 $as_echo "$ac_ct_DUMPBIN" >&6; }
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4685 test -n "$ac_ct_DUMPBIN" && break
4688 if test "x$ac_ct_DUMPBIN" = x; then
4691 case $cross_compiling:$ac_tool_warned in
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695 ac_tool_warned=yes ;;
4697 DUMPBIN=$ac_ct_DUMPBIN
4701 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4703 DUMPBIN="$DUMPBIN -symbols -headers"
4711 if test : != "$DUMPBIN"; then
4715 test -z "$NM" && NM=nm
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4723 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4724 if ${lt_cv_nm_interface+:} false; then :
4725 $as_echo_n "(cached) " >&6
4727 lt_cv_nm_interface="BSD nm"
4728 echo "int some_variable = 0;" > conftest.$ac_ext
4729 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4730 (eval "$ac_compile" 2>conftest.err)
4731 cat conftest.err >&5
4732 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4733 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4734 cat conftest.err >&5
4735 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4736 cat conftest.out >&5
4737 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4738 lt_cv_nm_interface="MS dumpbin"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4743 $as_echo "$lt_cv_nm_interface" >&6; }
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4746 $as_echo_n "checking whether ln -s works... " >&6; }
4748 if test "$LN_S" = "ln -s"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4750 $as_echo "yes" >&6; }
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4753 $as_echo "no, using $LN_S" >&6; }
4756 # find the maximum length of command line arguments
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4758 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4759 if ${lt_cv_sys_max_cmd_len+:} false; then :
4760 $as_echo_n "(cached) " >&6
4767 # On DJGPP, this test can blow up pretty badly due to problems in libc
4768 # (any single argument exceeding 2000 bytes causes a buffer overrun
4769 # during glob expansion). Even if it were fixed, the result of this
4770 # check would be larger than it should be.
4771 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4775 # Under GNU Hurd, this test is not required because there is
4776 # no limit to the length of command line arguments.
4777 # Libtool will interpret -1 as no limit whatsoever
4778 lt_cv_sys_max_cmd_len=-1;
4781 cygwin* | mingw* | cegcc*)
4782 # On Win9x/ME, this test blows up -- it succeeds, but takes
4783 # about 5 minutes as the teststring grows exponentially.
4784 # Worse, since 9x/ME are not pre-emptively multitasking,
4785 # you end up with a "frozen" computer, even though with patience
4786 # the test eventually succeeds (with a max line length of 256k).
4787 # Instead, let's just punt: use the minimum linelength reported by
4788 # all of the supported platforms: 8192 (on NT/2K/XP).
4789 lt_cv_sys_max_cmd_len=8192;
4793 # On MiNT this can take a long time and run out of memory.
4794 lt_cv_sys_max_cmd_len=8192;
4798 # On AmigaOS with pdksh, this test takes hours, literally.
4799 # So we just punt and use a minimum line length of 8192.
4800 lt_cv_sys_max_cmd_len=8192;
4803 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4804 # This has been around since 386BSD, at least. Likely further.
4805 if test -x /sbin/sysctl; then
4806 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4807 elif test -x /usr/sbin/sysctl; then
4808 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4810 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4812 # And add a safety zone
4813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4818 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4819 lt_cv_sys_max_cmd_len=196608
4823 # The test takes a long time on OS/2.
4824 lt_cv_sys_max_cmd_len=8192
4828 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4829 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4830 # nice to cause kernel panics so lets avoid the loop below.
4831 # First set a reasonable default.
4832 lt_cv_sys_max_cmd_len=16384
4834 if test -x /sbin/sysconfig; then
4835 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4836 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4841 lt_cv_sys_max_cmd_len=102400
4843 sysv5* | sco5v6* | sysv4.2uw2*)
4844 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4845 if test -n "$kargmax"; then
4846 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4848 lt_cv_sys_max_cmd_len=32768
4852 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4853 if test -n "$lt_cv_sys_max_cmd_len" && \
4854 test undefined != "$lt_cv_sys_max_cmd_len"; then
4855 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4858 # Make teststring a little bigger before we do anything with it.
4859 # a 1K string should be a reasonable start.
4860 for i in 1 2 3 4 5 6 7 8; do
4861 teststring=$teststring$teststring
4863 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4864 # If test is not a shell built-in, we'll probably end up computing a
4865 # maximum length that is only half of the actual maximum length, but
4867 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4868 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4869 test 17 != "$i" # 1/2 MB should be enough
4872 teststring=$teststring$teststring
4874 # Only check the string length outside the loop.
4875 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4877 # Add a significant safety factor because C++ compilers can tack on
4878 # massive amounts of additional arguments before passing them to the
4879 # linker. It appears as though 1/2 is a usable value.
4880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4887 if test -n "$lt_cv_sys_max_cmd_len"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4889 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4892 $as_echo "none" >&6; }
4894 max_cmd_len=$lt_cv_sys_max_cmd_len
4905 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4915 # test EBCDIC or ASCII
4916 case `echo X|tr X '\101'` in
4917 A) # ASCII based system
4918 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4919 lt_SP2NL='tr \040 \012'
4920 lt_NL2SP='tr \015\012 \040\040'
4922 *) # EBCDIC based system
4923 lt_SP2NL='tr \100 \n'
4924 lt_NL2SP='tr \r\n \100\100'
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4937 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4938 if ${lt_cv_to_host_file_cmd+:} false; then :
4939 $as_echo_n "(cached) " >&6
4944 *-*-mingw* ) # actually msys
4945 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4948 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4950 * ) # otherwise, assume *nix
4951 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4957 *-*-mingw* ) # actually msys
4958 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4961 lt_cv_to_host_file_cmd=func_convert_file_noop
4963 * ) # otherwise, assume *nix
4964 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4968 * ) # unhandled hosts (and "normal" native builds)
4969 lt_cv_to_host_file_cmd=func_convert_file_noop
4975 to_host_file_cmd=$lt_cv_to_host_file_cmd
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4977 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4984 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4985 if ${lt_cv_to_tool_file_cmd+:} false; then :
4986 $as_echo_n "(cached) " >&6
4988 #assume ordinary cross tools, or native build.
4989 lt_cv_to_tool_file_cmd=func_convert_file_noop
4993 *-*-mingw* ) # actually msys
4994 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5002 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5004 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5011 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5012 if ${lt_cv_ld_reload_flag+:} false; then :
5013 $as_echo_n "(cached) " >&6
5015 lt_cv_ld_reload_flag='-r'
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5018 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5019 reload_flag=$lt_cv_ld_reload_flag
5020 case $reload_flag in
5022 *) reload_flag=" $reload_flag" ;;
5024 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5026 cygwin* | mingw* | pw32* | cegcc*)
5027 if test yes != "$GCC"; then
5032 if test yes = "$GCC"; then
5033 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5035 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5048 if test -n "$ac_tool_prefix"; then
5049 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5050 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_prog_OBJDUMP+:} false; then :
5054 $as_echo_n "(cached) " >&6
5056 if test -n "$OBJDUMP"; then
5057 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 OBJDUMP=$ac_cv_prog_OBJDUMP
5077 if test -n "$OBJDUMP"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5079 $as_echo "$OBJDUMP" >&6; }
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5087 if test -z "$ac_cv_prog_OBJDUMP"; then
5088 ac_ct_OBJDUMP=$OBJDUMP
5089 # Extract the first word of "objdump", so it can be a program name with args.
5090 set dummy objdump; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5094 $as_echo_n "(cached) " >&6
5096 if test -n "$ac_ct_OBJDUMP"; then
5097 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5117 if test -n "$ac_ct_OBJDUMP"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5119 $as_echo "$ac_ct_OBJDUMP" >&6; }
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5125 if test "x$ac_ct_OBJDUMP" = x; then
5128 case $cross_compiling:$ac_tool_warned in
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5132 ac_tool_warned=yes ;;
5134 OBJDUMP=$ac_ct_OBJDUMP
5137 OBJDUMP="$ac_cv_prog_OBJDUMP"
5140 test -z "$OBJDUMP" && OBJDUMP=objdump
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5151 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5152 if ${lt_cv_deplibs_check_method+:} false; then :
5153 $as_echo_n "(cached) " >&6
5155 lt_cv_file_magic_cmd='$MAGIC_CMD'
5156 lt_cv_file_magic_test_file=
5157 lt_cv_deplibs_check_method='unknown'
5158 # Need to set the preceding variable on all platforms that support
5159 # interlibrary dependencies.
5160 # 'none' -- dependencies not supported.
5161 # 'unknown' -- same as none, but documents that we really don't know.
5162 # 'pass_all' -- all dependencies passed with no checks.
5163 # 'test_compile' -- check by making test program.
5164 # 'file_magic [[regex]]' -- check by looking for files in library path
5165 # that responds to the $file_magic_cmd with a given extended regex.
5166 # If you have 'file' or equivalent on your system and you're not sure
5167 # whether 'pass_all' will *always* work, you probably want this one.
5171 lt_cv_deplibs_check_method=pass_all
5175 lt_cv_deplibs_check_method=pass_all
5179 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5180 lt_cv_file_magic_cmd='/usr/bin/file -L'
5181 lt_cv_file_magic_test_file=/shlib/libc.so
5185 # func_win32_libid is a shell function defined in ltmain.sh
5186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5187 lt_cv_file_magic_cmd='func_win32_libid'
5191 # Base MSYS/MinGW do not provide the 'file' command needed by
5192 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5193 # unless we find 'file', for example because we are cross-compiling.
5194 if ( file / ) >/dev/null 2>&1; then
5195 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5196 lt_cv_file_magic_cmd='func_win32_libid'
5198 # Keep this pattern in sync with the one in func_win32_libid.
5199 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5200 lt_cv_file_magic_cmd='$OBJDUMP -f'
5205 # use the weaker test based on 'objdump'. See mingw*.
5206 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5207 lt_cv_file_magic_cmd='$OBJDUMP -f'
5210 darwin* | rhapsody*)
5211 lt_cv_deplibs_check_method=pass_all
5214 freebsd* | dragonfly*)
5215 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5218 # Not sure whether the presence of OpenBSD here was a mistake.
5219 # Let's accept both of them until this is cleared up.
5220 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5221 lt_cv_file_magic_cmd=/usr/bin/file
5222 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5226 lt_cv_deplibs_check_method=pass_all
5231 lt_cv_deplibs_check_method=pass_all
5234 hpux10.20* | hpux11*)
5235 lt_cv_file_magic_cmd=/usr/bin/file
5238 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5239 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5242 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]'
5243 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5246 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5247 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5253 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5257 irix5* | irix6* | nonstopux*)
5259 *-32|*"-32 ") libmagic=32-bit;;
5260 *-n32|*"-n32 ") libmagic=N32;;
5261 *-64|*"-64 ") libmagic=64-bit;;
5262 *) libmagic=never-match;;
5264 lt_cv_deplibs_check_method=pass_all
5267 # This must be glibc/ELF.
5268 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5269 lt_cv_deplibs_check_method=pass_all
5272 netbsd* | netbsdelf*-gnu)
5273 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5282 lt_cv_file_magic_cmd=/usr/bin/file
5283 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5287 lt_cv_deplibs_check_method=pass_all
5291 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5298 osf3* | osf4* | osf5*)
5299 lt_cv_deplibs_check_method=pass_all
5303 lt_cv_deplibs_check_method=pass_all
5307 lt_cv_deplibs_check_method=pass_all
5310 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5311 lt_cv_deplibs_check_method=pass_all
5315 case $host_vendor in
5317 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]'
5318 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5321 lt_cv_deplibs_check_method=pass_all
5324 lt_cv_file_magic_cmd='/bin/file'
5325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5328 lt_cv_file_magic_cmd='/bin/file'
5329 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5330 lt_cv_file_magic_test_file=/lib/libc.so
5333 lt_cv_deplibs_check_method=pass_all
5336 lt_cv_deplibs_check_method=pass_all
5342 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 one 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 0 -eq "$ac_status"; 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 0 -ne "$ac_status"; 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 no = "$lt_cv_ar_at_file"; 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 ia64 = "$host_cpu"; 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 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6034 # Gets list of data symbols to import.
6035 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6036 # Adjust the below global symbol transforms to fixup imported variables.
6037 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6038 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6039 lt_c_name_lib_hook="\
6040 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6041 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6043 # Disable hooks by default.
6044 lt_cv_sys_global_symbol_to_import=
6050 # Transform an extracted symbol line into a proper C declaration.
6051 # Some systems (esp. on ia64) link data and code symbols differently,
6052 # so use this general approach.
6053 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6055 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6056 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6058 # Transform an extracted symbol line into symbol name and symbol address
6059 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6061 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6062 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6064 # Transform an extracted symbol line into symbol name with lib prefix and
6066 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6067 $lt_c_name_lib_hook\
6068 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6069 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6070 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6072 # Handle CRLF in mingw tool chain
6076 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6080 # Try without a prefix underscore, then with it.
6081 for ac_symprfx in "" "_"; do
6083 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6084 symxfrm="\\1 $ac_symprfx\\2 \\2"
6086 # Write the raw and C identifiers.
6087 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6088 # Fake it for dumpbin and say T for any non-static function,
6089 # D for any global variable and I for any imported variable.
6090 # Also find C++ and __fastcall symbols from MSVC++,
6091 # which start with @ or ?.
6092 lt_cv_sys_global_symbol_pipe="$AWK '"\
6093 " {last_section=section; section=\$ 3};"\
6094 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6095 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6096 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6097 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6098 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6099 " \$ 0!~/External *\|/{next};"\
6100 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6101 " {if(hide[section]) next};"\
6102 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6103 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6104 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6105 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6106 " ' prfx=^$ac_symprfx"
6108 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6110 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6112 # Check to see that the pipe works correctly.
6116 cat > conftest.$ac_ext <<_LT_EOF
6121 void nm_test_func(void);
6122 void nm_test_func(void){}
6126 int main(){nm_test_var='a';nm_test_func();return(0);}
6129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6130 (eval $ac_compile) 2>&5
6132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6133 test $ac_status = 0; }; then
6134 # Now try to grab the symbols.
6136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6137 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6140 test $ac_status = 0; } && test -s "$nlist"; then
6141 # Try sorting and uniquifying the output.
6142 if sort "$nlist" | uniq > "$nlist"T; then
6143 mv -f "$nlist"T "$nlist"
6148 # Make sure that we snagged all the symbols we need.
6149 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6150 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6151 cat <<_LT_EOF > conftest.$ac_ext
6152 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6153 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6154 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6155 relocations are performed -- see ld's documentation on pseudo-relocs. */
6156 # define LT_DLSYM_CONST
6157 #elif defined __osf__
6158 /* This system does not cope well with relocations in const data. */
6159 # define LT_DLSYM_CONST
6161 # define LT_DLSYM_CONST const
6169 # Now generate the symbol file.
6170 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6172 cat <<_LT_EOF >> conftest.$ac_ext
6174 /* The mapping between symbol names and symbols. */
6175 LT_DLSYM_CONST struct {
6179 lt__PROGRAM__LTX_preloaded_symbols[] =
6181 { "@PROGRAM@", (void *) 0 },
6183 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6184 cat <<\_LT_EOF >> conftest.$ac_ext
6188 /* This works around a problem in FreeBSD linker */
6189 #ifdef FREEBSD_WORKAROUND
6190 static const void *lt_preloaded_setup() {
6191 return lt__PROGRAM__LTX_preloaded_symbols;
6199 # Now try linking the two files.
6200 mv conftest.$ac_objext conftstm.$ac_objext
6201 lt_globsym_save_LIBS=$LIBS
6202 lt_globsym_save_CFLAGS=$CFLAGS
6203 LIBS=conftstm.$ac_objext
6204 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6206 (eval $ac_link) 2>&5
6208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6212 LIBS=$lt_globsym_save_LIBS
6213 CFLAGS=$lt_globsym_save_CFLAGS
6215 echo "cannot find nm_test_func in $nlist" >&5
6218 echo "cannot find nm_test_var in $nlist" >&5
6221 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6224 echo "$progname: failed program was:" >&5
6225 cat conftest.$ac_ext >&5
6227 rm -rf conftest* conftst*
6229 # Do not use the global_symbol_pipe unless it works.
6230 if test yes = "$pipe_works"; then
6233 lt_cv_sys_global_symbol_pipe=
6239 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6240 lt_cv_sys_global_symbol_to_cdecl=
6242 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6244 $as_echo "failed" >&6; }
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6247 $as_echo "ok" >&6; }
6250 # Response file support.
6251 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6252 nm_file_list_spec='@'
6253 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6254 nm_file_list_spec='@'
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6294 $as_echo_n "checking for sysroot... " >&6; }
6296 # Check whether --with-sysroot was given.
6297 if test "${with_sysroot+set}" = set; then :
6298 withval=$with_sysroot;
6305 case $with_sysroot in #(
6307 if test yes = "$GCC"; then
6308 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6312 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6318 $as_echo "$with_sysroot" >&6; }
6319 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6324 $as_echo "${lt_sysroot:-no}" >&6; }
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6331 $as_echo_n "checking for a working dd... " >&6; }
6332 if ${ac_cv_path_lt_DD+:} false; then :
6333 $as_echo_n "(cached) " >&6
6335 printf 0123456789abcdef0123456789abcdef >conftest.i
6336 cat conftest.i conftest.i >conftest2.i
6338 if test -z "$lt_DD"; then
6339 ac_path_lt_DD_found=false
6340 # Loop through the user's path and test for each of PROGNAME-LIST
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 test -z "$as_dir" && as_dir=.
6346 for ac_prog in dd; do
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6349 as_fn_executable_p "$ac_path_lt_DD" || continue
6350 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6351 cmp -s conftest.i conftest.out \
6352 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6354 $ac_path_lt_DD_found && break 3
6359 if test -z "$ac_cv_path_lt_DD"; then
6363 ac_cv_path_lt_DD=$lt_DD
6366 rm -f conftest.i conftest2.i conftest.out
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6369 $as_echo "$ac_cv_path_lt_DD" >&6; }
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6373 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6374 if ${lt_cv_truncate_bin+:} false; then :
6375 $as_echo_n "(cached) " >&6
6377 printf 0123456789abcdef0123456789abcdef >conftest.i
6378 cat conftest.i conftest.i >conftest2.i
6380 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6381 cmp -s conftest.i conftest.out \
6382 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6384 rm -f conftest.i conftest2.i conftest.out
6385 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6388 $as_echo "$lt_cv_truncate_bin" >&6; }
6396 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6399 for cc_temp in $*""; do
6401 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6402 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6407 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6410 # Check whether --enable-libtool-lock was given.
6411 if test "${enable_libtool_lock+set}" = set; then :
6412 enableval=$enable_libtool_lock;
6415 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6417 # Some flags need to be propagated to the compiler or linker for good
6421 # Find out what ABI is being produced by ac_compile, and set mode
6422 # options accordingly.
6423 echo 'int i;' > conftest.$ac_ext
6424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6425 (eval $ac_compile) 2>&5
6427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6428 test $ac_status = 0; }; then
6429 case `/usr/bin/file conftest.$ac_objext` in
6441 # Find out what ABI is being produced by ac_compile, and set linker
6442 # options accordingly.
6443 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6445 (eval $ac_compile) 2>&5
6447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448 test $ac_status = 0; }; then
6449 if test yes = "$lt_cv_prog_gnu_ld"; then
6450 case `/usr/bin/file conftest.$ac_objext` in
6452 LD="${LD-ld} -melf32bsmip"
6455 LD="${LD-ld} -melf32bmipn32"
6458 LD="${LD-ld} -melf64bmip"
6462 case `/usr/bin/file conftest.$ac_objext` in
6479 # Find out what ABI is being produced by ac_compile, and set linker
6480 # options accordingly.
6481 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6483 (eval $ac_compile) 2>&5
6485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6486 test $ac_status = 0; }; then
6488 case `/usr/bin/file conftest.$ac_objext` in
6496 case `/usr/bin/file conftest.$ac_objext` in
6498 emul="${emul}btsmip"
6501 emul="${emul}ltsmip"
6504 case `/usr/bin/file conftest.$ac_objext` in
6509 LD="${LD-ld} -m $emul"
6514 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6515 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6516 # Find out what ABI is being produced by ac_compile, and set linker
6517 # options accordingly. Note that the listed cases only cover the
6518 # situations where additional linker options are needed (such as when
6519 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6520 # vice versa); the common cases where no linker options are needed do
6521 # not appear in the list.
6522 echo 'int i;' > conftest.$ac_ext
6523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6524 (eval $ac_compile) 2>&5
6526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527 test $ac_status = 0; }; then
6528 case `/usr/bin/file conftest.o` in
6531 x86_64-*kfreebsd*-gnu)
6532 LD="${LD-ld} -m elf_i386_fbsd"
6535 case `/usr/bin/file conftest.o` in
6537 LD="${LD-ld} -m elf32_x86_64"
6540 LD="${LD-ld} -m elf_i386"
6544 powerpc64le-*linux*)
6545 LD="${LD-ld} -m elf32lppclinux"
6548 LD="${LD-ld} -m elf32ppclinux"
6551 LD="${LD-ld} -m elf_s390"
6554 LD="${LD-ld} -m elf32_sparc"
6560 x86_64-*kfreebsd*-gnu)
6561 LD="${LD-ld} -m elf_x86_64_fbsd"
6564 LD="${LD-ld} -m elf_x86_64"
6567 LD="${LD-ld} -m elf64lppc"
6570 LD="${LD-ld} -m elf64ppc"
6572 s390*-*linux*|s390*-*tpf*)
6573 LD="${LD-ld} -m elf64_s390"
6576 LD="${LD-ld} -m elf64_sparc"
6586 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6588 CFLAGS="$CFLAGS -belf"
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6590 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6591 if ${lt_cv_cc_needs_belf+:} false; then :
6592 $as_echo_n "(cached) " >&6
6595 ac_cpp='$CPP $CPPFLAGS'
6596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6611 if ac_fn_c_try_link "$LINENO"; then :
6612 lt_cv_cc_needs_belf=yes
6614 lt_cv_cc_needs_belf=no
6616 rm -f core conftest.err conftest.$ac_objext \
6617 conftest$ac_exeext conftest.$ac_ext
6619 ac_cpp='$CPP $CPPFLAGS'
6620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6626 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6627 if test yes != "$lt_cv_cc_needs_belf"; then
6628 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6633 # Find out what ABI is being produced by ac_compile, and set linker
6634 # options accordingly.
6635 echo 'int i;' > conftest.$ac_ext
6636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6637 (eval $ac_compile) 2>&5
6639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6640 test $ac_status = 0; }; then
6641 case `/usr/bin/file conftest.o` in
6643 case $lt_cv_prog_gnu_ld in
6646 i?86-*-solaris*|x86_64-*-solaris*)
6647 LD="${LD-ld} -m elf_x86_64"
6650 LD="${LD-ld} -m elf64_sparc"
6653 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6654 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6659 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6671 need_locks=$enable_libtool_lock
6673 if test -n "$ac_tool_prefix"; then
6674 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6675 set dummy ${ac_tool_prefix}mt; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6679 $as_echo_n "(cached) " >&6
6681 if test -n "$MANIFEST_TOOL"; then
6682 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6702 if test -n "$MANIFEST_TOOL"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6704 $as_echo "$MANIFEST_TOOL" >&6; }
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6712 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6713 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6714 # Extract the first word of "mt", so it can be a program name with args.
6715 set dummy mt; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6719 $as_echo_n "(cached) " >&6
6721 if test -n "$ac_ct_MANIFEST_TOOL"; then
6722 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6742 if test -n "$ac_ct_MANIFEST_TOOL"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6744 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6750 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6753 case $cross_compiling:$ac_tool_warned in
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6757 ac_tool_warned=yes ;;
6759 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6762 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6765 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6767 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6768 if ${lt_cv_path_mainfest_tool+:} false; then :
6769 $as_echo_n "(cached) " >&6
6771 lt_cv_path_mainfest_tool=no
6772 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6773 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6774 cat conftest.err >&5
6775 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6776 lt_cv_path_mainfest_tool=yes
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6781 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6782 if test yes != "$lt_cv_path_mainfest_tool"; then
6792 rhapsody* | darwin*)
6793 if test -n "$ac_tool_prefix"; then
6794 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6795 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6799 $as_echo_n "(cached) " >&6
6801 if test -n "$DSYMUTIL"; then
6802 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6822 if test -n "$DSYMUTIL"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6824 $as_echo "$DSYMUTIL" >&6; }
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6832 if test -z "$ac_cv_prog_DSYMUTIL"; then
6833 ac_ct_DSYMUTIL=$DSYMUTIL
6834 # Extract the first word of "dsymutil", so it can be a program name with args.
6835 set dummy dsymutil; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6839 $as_echo_n "(cached) " >&6
6841 if test -n "$ac_ct_DSYMUTIL"; then
6842 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6862 if test -n "$ac_ct_DSYMUTIL"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6864 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6870 if test "x$ac_ct_DSYMUTIL" = x; then
6873 case $cross_compiling:$ac_tool_warned in
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6877 ac_tool_warned=yes ;;
6879 DSYMUTIL=$ac_ct_DSYMUTIL
6882 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6885 if test -n "$ac_tool_prefix"; then
6886 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6887 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_NMEDIT+:} false; then :
6891 $as_echo_n "(cached) " >&6
6893 if test -n "$NMEDIT"; then
6894 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 NMEDIT=$ac_cv_prog_NMEDIT
6914 if test -n "$NMEDIT"; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6916 $as_echo "$NMEDIT" >&6; }
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6924 if test -z "$ac_cv_prog_NMEDIT"; then
6925 ac_ct_NMEDIT=$NMEDIT
6926 # Extract the first word of "nmedit", so it can be a program name with args.
6927 set dummy nmedit; ac_word=$2
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929 $as_echo_n "checking for $ac_word... " >&6; }
6930 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6931 $as_echo_n "(cached) " >&6
6933 if test -n "$ac_ct_NMEDIT"; then
6934 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6943 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6954 if test -n "$ac_ct_NMEDIT"; then
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6956 $as_echo "$ac_ct_NMEDIT" >&6; }
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6962 if test "x$ac_ct_NMEDIT" = x; then
6965 case $cross_compiling:$ac_tool_warned in
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6969 ac_tool_warned=yes ;;
6971 NMEDIT=$ac_ct_NMEDIT
6974 NMEDIT="$ac_cv_prog_NMEDIT"
6977 if test -n "$ac_tool_prefix"; then
6978 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6979 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if ${ac_cv_prog_LIPO+:} false; then :
6983 $as_echo_n "(cached) " >&6
6985 if test -n "$LIPO"; then
6986 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 LIPO=$ac_cv_prog_LIPO
7006 if test -n "$LIPO"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7008 $as_echo "$LIPO" >&6; }
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7016 if test -z "$ac_cv_prog_LIPO"; then
7018 # Extract the first word of "lipo", so it can be a program name with args.
7019 set dummy lipo; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7023 $as_echo_n "(cached) " >&6
7025 if test -n "$ac_ct_LIPO"; then
7026 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_ac_ct_LIPO="lipo"
7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7046 if test -n "$ac_ct_LIPO"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7048 $as_echo "$ac_ct_LIPO" >&6; }
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7054 if test "x$ac_ct_LIPO" = x; then
7057 case $cross_compiling:$ac_tool_warned in
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7061 ac_tool_warned=yes ;;
7066 LIPO="$ac_cv_prog_LIPO"
7069 if test -n "$ac_tool_prefix"; then
7070 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7071 set dummy ${ac_tool_prefix}otool; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if ${ac_cv_prog_OTOOL+:} false; then :
7075 $as_echo_n "(cached) " >&6
7077 if test -n "$OTOOL"; then
7078 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 OTOOL=$ac_cv_prog_OTOOL
7098 if test -n "$OTOOL"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7100 $as_echo "$OTOOL" >&6; }
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103 $as_echo "no" >&6; }
7108 if test -z "$ac_cv_prog_OTOOL"; then
7110 # Extract the first word of "otool", so it can be a program name with args.
7111 set dummy otool; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7115 $as_echo_n "(cached) " >&6
7117 if test -n "$ac_ct_OTOOL"; then
7118 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_ac_ct_OTOOL="otool"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7138 if test -n "$ac_ct_OTOOL"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7140 $as_echo "$ac_ct_OTOOL" >&6; }
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7146 if test "x$ac_ct_OTOOL" = x; then
7149 case $cross_compiling:$ac_tool_warned in
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7153 ac_tool_warned=yes ;;
7158 OTOOL="$ac_cv_prog_OTOOL"
7161 if test -n "$ac_tool_prefix"; then
7162 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7163 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_OTOOL64+:} false; then :
7167 $as_echo_n "(cached) " >&6
7169 if test -n "$OTOOL64"; then
7170 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 OTOOL64=$ac_cv_prog_OTOOL64
7190 if test -n "$OTOOL64"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7192 $as_echo "$OTOOL64" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7200 if test -z "$ac_cv_prog_OTOOL64"; then
7201 ac_ct_OTOOL64=$OTOOL64
7202 # Extract the first word of "otool64", so it can be a program name with args.
7203 set dummy otool64; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7207 $as_echo_n "(cached) " >&6
7209 if test -n "$ac_ct_OTOOL64"; then
7210 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_ac_ct_OTOOL64="otool64"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7230 if test -n "$ac_ct_OTOOL64"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7232 $as_echo "$ac_ct_OTOOL64" >&6; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7238 if test "x$ac_ct_OTOOL64" = x; then
7241 case $cross_compiling:$ac_tool_warned in
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7245 ac_tool_warned=yes ;;
7247 OTOOL64=$ac_ct_OTOOL64
7250 OTOOL64="$ac_cv_prog_OTOOL64"
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7280 $as_echo_n "checking for -single_module linker flag... " >&6; }
7281 if ${lt_cv_apple_cc_single_mod+:} false; then :
7282 $as_echo_n "(cached) " >&6
7284 lt_cv_apple_cc_single_mod=no
7285 if test -z "$LT_MULTI_MODULE"; then
7286 # By default we will add the -single_module flag. You can override
7287 # by either setting the environment variable LT_MULTI_MODULE
7288 # non-empty at configure time, or by adding -multi_module to the
7290 rm -rf libconftest.dylib*
7291 echo "int foo(void){return 1;}" > conftest.c
7292 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7293 -dynamiclib -Wl,-single_module conftest.c" >&5
7294 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7295 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7297 # If there is a non-empty error log, and "single_module"
7298 # appears in it, assume the flag caused a linker warning
7299 if test -s conftest.err && $GREP single_module conftest.err; then
7300 cat conftest.err >&5
7301 # Otherwise, if the output was created with a 0 exit code from
7302 # the compiler, it worked.
7303 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7304 lt_cv_apple_cc_single_mod=yes
7306 cat conftest.err >&5
7308 rm -rf libconftest.dylib*
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7313 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7316 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7317 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7318 $as_echo_n "(cached) " >&6
7320 lt_cv_ld_exported_symbols_list=no
7321 save_LDFLAGS=$LDFLAGS
7322 echo "_main" > conftest.sym
7323 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7335 if ac_fn_c_try_link "$LINENO"; then :
7336 lt_cv_ld_exported_symbols_list=yes
7338 lt_cv_ld_exported_symbols_list=no
7340 rm -f core conftest.err conftest.$ac_objext \
7341 conftest$ac_exeext conftest.$ac_ext
7342 LDFLAGS=$save_LDFLAGS
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7346 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7349 $as_echo_n "checking for -force_load linker flag... " >&6; }
7350 if ${lt_cv_ld_force_load+:} false; then :
7351 $as_echo_n "(cached) " >&6
7353 lt_cv_ld_force_load=no
7354 cat > conftest.c << _LT_EOF
7355 int forced_loaded() { return 2;}
7357 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7358 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7359 echo "$AR cru libconftest.a conftest.o" >&5
7360 $AR cru libconftest.a conftest.o 2>&5
7361 echo "$RANLIB libconftest.a" >&5
7362 $RANLIB libconftest.a 2>&5
7363 cat > conftest.c << _LT_EOF
7364 int main() { return 0;}
7366 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7367 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7369 if test -s conftest.err && $GREP force_load conftest.err; then
7370 cat conftest.err >&5
7371 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7372 lt_cv_ld_force_load=yes
7374 cat conftest.err >&5
7376 rm -f conftest.err libconftest.a conftest conftest.c
7377 rm -rf conftest.dSYM
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7381 $as_echo "$lt_cv_ld_force_load" >&6; }
7383 rhapsody* | darwin1.[012])
7384 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7386 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7387 darwin*) # darwin 5.x on
7388 # if running on 10.5 or later, the deployment target defaults
7389 # to the OS version, if on x86, and 10.4, the deployment
7390 # target defaults to 10.4. Don't you love it?
7391 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7392 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7393 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7395 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7397 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7401 if test yes = "$lt_cv_apple_cc_single_mod"; then
7402 _lt_dar_single_mod='$single_module'
7404 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7405 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7407 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7409 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7410 _lt_dsymutil='~$DSYMUTIL $lib || :'
7417 # func_munge_path_list VARIABLE PATH
7418 # -----------------------------------
7419 # VARIABLE is name of variable containing _space_ separated list of
7420 # directories to be munged by the contents of PATH, which is string
7423 # string "DIR[ DIR]" will be prepended to VARIABLE
7425 # string "DIR[ DIR]" will be appended to VARIABLE
7426 # "DIRP[:DIRP]::[DIRA:]DIRA"
7427 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7428 # "DIRA[ DIRA]" will be appended to VARIABLE
7430 # VARIABLE will be replaced by "DIR[ DIR]"
7431 func_munge_path_list ()
7437 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7440 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7443 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7444 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7447 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7453 ac_cpp='$CPP $CPPFLAGS'
7454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7458 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7459 # On Suns, sometimes $CPP names a directory.
7460 if test -n "$CPP" && test -d "$CPP"; then
7463 if test -z "$CPP"; then
7464 if ${ac_cv_prog_CPP+:} false; then :
7465 $as_echo_n "(cached) " >&6
7467 # Double quotes because CPP needs to be expanded
7468 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7471 for ac_c_preproc_warn_flag in '' yes
7473 # Use a header file that comes with gcc, so configuring glibc
7474 # with a fresh cross-compiler works.
7475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7476 # <limits.h> exists even on freestanding compilers.
7477 # On the NeXT, cc -E runs the code through the compiler's parser,
7478 # not just through cpp. "Syntax error" is here to catch this case.
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7482 # include <limits.h>
7484 # include <assert.h>
7488 if ac_fn_c_try_cpp "$LINENO"; then :
7491 # Broken: fails on valid input.
7494 rm -f conftest.err conftest.i conftest.$ac_ext
7496 # OK, works on sane cases. Now check whether nonexistent headers
7497 # can be detected and how.
7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7500 #include <ac_nonexistent.h>
7502 if ac_fn_c_try_cpp "$LINENO"; then :
7503 # Broken: success on invalid input.
7506 # Passes both tests.
7510 rm -f conftest.err conftest.i conftest.$ac_ext
7513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7514 rm -f conftest.i conftest.err conftest.$ac_ext
7515 if $ac_preproc_ok; then :
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7528 $as_echo "$CPP" >&6; }
7530 for ac_c_preproc_warn_flag in '' yes
7532 # Use a header file that comes with gcc, so configuring glibc
7533 # with a fresh cross-compiler works.
7534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7535 # <limits.h> exists even on freestanding compilers.
7536 # On the NeXT, cc -E runs the code through the compiler's parser,
7537 # not just through cpp. "Syntax error" is here to catch this case.
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7541 # include <limits.h>
7543 # include <assert.h>
7547 if ac_fn_c_try_cpp "$LINENO"; then :
7550 # Broken: fails on valid input.
7553 rm -f conftest.err conftest.i conftest.$ac_ext
7555 # OK, works on sane cases. Now check whether nonexistent headers
7556 # can be detected and how.
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7559 #include <ac_nonexistent.h>
7561 if ac_fn_c_try_cpp "$LINENO"; then :
7562 # Broken: success on invalid input.
7565 # Passes both tests.
7569 rm -f conftest.err conftest.i conftest.$ac_ext
7572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7573 rm -f conftest.i conftest.err conftest.$ac_ext
7574 if $ac_preproc_ok; then :
7577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7579 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7580 See \`config.log' for more details" "$LINENO" 5; }
7584 ac_cpp='$CPP $CPPFLAGS'
7585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7591 $as_echo_n "checking for ANSI C header files... " >&6; }
7592 if ${ac_cv_header_stdc+:} false; then :
7593 $as_echo_n "(cached) " >&6
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7610 if ac_fn_c_try_compile "$LINENO"; then :
7611 ac_cv_header_stdc=yes
7613 ac_cv_header_stdc=no
7615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 if test $ac_cv_header_stdc = yes; then
7618 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7625 $EGREP "memchr" >/dev/null 2>&1; then :
7628 ac_cv_header_stdc=no
7634 if test $ac_cv_header_stdc = yes; then
7635 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7642 $EGREP "free" >/dev/null 2>&1; then :
7645 ac_cv_header_stdc=no
7651 if test $ac_cv_header_stdc = yes; then
7652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7653 if test "$cross_compiling" = yes; then :
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7660 #if ((' ' & 0x0FF) == 0x020)
7661 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7662 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7664 # define ISLOWER(c) \
7665 (('a' <= (c) && (c) <= 'i') \
7666 || ('j' <= (c) && (c) <= 'r') \
7667 || ('s' <= (c) && (c) <= 'z'))
7668 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7671 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7676 for (i = 0; i < 256; i++)
7677 if (XOR (islower (i), ISLOWER (i))
7678 || toupper (i) != TOUPPER (i))
7683 if ac_fn_c_try_run "$LINENO"; then :
7686 ac_cv_header_stdc=no
7688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7689 conftest.$ac_objext conftest.beam conftest.$ac_ext
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7695 $as_echo "$ac_cv_header_stdc" >&6; }
7696 if test $ac_cv_header_stdc = yes; then
7698 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7702 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7703 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7704 inttypes.h stdint.h unistd.h
7706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7707 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7709 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7710 cat >>confdefs.h <<_ACEOF
7711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7719 for ac_header in dlfcn.h
7721 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7723 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7724 cat >>confdefs.h <<_ACEOF
7725 #define HAVE_DLFCN_H 1
7746 # Check whether --enable-shared was given.
7747 if test "${enable_shared+set}" = set; then :
7748 enableval=$enable_shared; p=${PACKAGE-default}
7750 yes) enable_shared=yes ;;
7751 no) enable_shared=no ;;
7754 # Look at the argument we got. We use all the common list separators.
7755 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7756 for pkg in $enableval; do
7758 if test "X$pkg" = "X$p"; then
7779 # Check whether --with-pic was given.
7780 if test "${with_pic+set}" = set; then :
7781 withval=$with_pic; lt_p=${PACKAGE-default}
7783 yes|no) pic_mode=$withval ;;
7786 # Look at the argument we got. We use all the common list separators.
7787 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7788 for lt_pkg in $withval; do
7790 if test "X$lt_pkg" = "X$lt_p"; then
7808 # Check whether --enable-fast-install was given.
7809 if test "${enable_fast_install+set}" = set; then :
7810 enableval=$enable_fast_install; p=${PACKAGE-default}
7812 yes) enable_fast_install=yes ;;
7813 no) enable_fast_install=no ;;
7815 enable_fast_install=no
7816 # Look at the argument we got. We use all the common list separators.
7817 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7818 for pkg in $enableval; do
7820 if test "X$pkg" = "X$p"; then
7821 enable_fast_install=yes
7828 enable_fast_install=yes
7838 shared_archive_member_spec=
7839 case $host,$enable_shared in
7840 power*-*-aix[5-9]*,yes)
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7842 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7844 # Check whether --with-aix-soname was given.
7845 if test "${with_aix_soname+set}" = set; then :
7846 withval=$with_aix_soname; case $withval in
7850 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7853 lt_cv_with_aix_soname=$with_aix_soname
7855 if ${lt_cv_with_aix_soname+:} false; then :
7856 $as_echo_n "(cached) " >&6
7858 lt_cv_with_aix_soname=aix
7861 with_aix_soname=$lt_cv_with_aix_soname
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7865 $as_echo "$with_aix_soname" >&6; }
7866 if test aix != "$with_aix_soname"; then
7867 # For the AIX way of multilib, we name the shared archive member
7868 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7869 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7870 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7871 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7872 if test 64 = "${OBJECT_MODE-32}"; then
7873 shared_archive_member_spec=shr_64
7875 shared_archive_member_spec=shr
7893 # This can be used to rebuild libtool when needed
7894 LIBTOOL_DEPS=$ltmain
7896 # Always use our own libtool.
7897 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7928 test -z "$LN_S" && LN_S="ln -s"
7943 if test -n "${ZSH_VERSION+set}"; then
7944 setopt NO_GLOB_SUBST
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7948 $as_echo_n "checking for objdir... " >&6; }
7949 if ${lt_cv_objdir+:} false; then :
7950 $as_echo_n "(cached) " >&6
7952 rm -f .libs 2>/dev/null
7953 mkdir .libs 2>/dev/null
7954 if test -d .libs; then
7957 # MS-DOS does not allow filenames that begin with a dot.
7960 rmdir .libs 2>/dev/null
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7963 $as_echo "$lt_cv_objdir" >&6; }
7964 objdir=$lt_cv_objdir
7970 cat >>confdefs.h <<_ACEOF
7971 #define LT_OBJDIR "$lt_cv_objdir/"
7979 # AIX sometimes has problems with the GCC collect2 program. For some
7980 # reason, if we set the COLLECT_NAMES environment variable, the problems
7981 # vanish in a puff of smoke.
7982 if test set != "${COLLECT_NAMES+set}"; then
7984 export COLLECT_NAMES
7991 can_build_shared=yes
7993 # All known linkers require a '.a' archive for static linking (except MSVC,
7994 # which needs '.lib').
7997 with_gnu_ld=$lt_cv_prog_gnu_ld
8002 # Set sane defaults for various variables
8003 test -z "$CC" && CC=cc
8004 test -z "$LTCC" && LTCC=$CC
8005 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8006 test -z "$LD" && LD=ld
8007 test -z "$ac_objext" && ac_objext=o
8009 func_cc_basename $compiler
8010 cc_basename=$func_cc_basename_result
8013 # Only perform the check for file, if the check method requires it
8014 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8015 case $deplibs_check_method in
8017 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8019 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8020 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8021 $as_echo_n "(cached) " >&6
8025 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8028 lt_save_MAGIC_CMD=$MAGIC_CMD
8029 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8030 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8031 for ac_dir in $ac_dummy; do
8033 test -z "$ac_dir" && ac_dir=.
8034 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8035 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8036 if test -n "$file_magic_test_file"; then
8037 case $deplibs_check_method in
8039 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8040 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8041 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8042 $EGREP "$file_magic_regex" > /dev/null; then
8047 *** Warning: the command libtool uses to detect shared libraries,
8048 *** $file_magic_cmd, produces output that libtool cannot recognize.
8049 *** The result is that libtool may fail to recognize shared libraries
8050 *** as such. This will affect the creation of libtool libraries that
8051 *** depend on shared libraries, but programs linked with such libtool
8052 *** libraries will work regardless of this problem. Nevertheless, you
8053 *** may want to report the problem to your system manager and/or to
8054 *** bug-libtool@gnu.org
8064 MAGIC_CMD=$lt_save_MAGIC_CMD
8069 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8070 if test -n "$MAGIC_CMD"; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8072 $as_echo "$MAGIC_CMD" >&6; }
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8082 if test -z "$lt_cv_path_MAGIC_CMD"; then
8083 if test -n "$ac_tool_prefix"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8085 $as_echo_n "checking for file... " >&6; }
8086 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8087 $as_echo_n "(cached) " >&6
8091 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8094 lt_save_MAGIC_CMD=$MAGIC_CMD
8095 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8096 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8097 for ac_dir in $ac_dummy; do
8099 test -z "$ac_dir" && ac_dir=.
8100 if test -f "$ac_dir/file"; then
8101 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8102 if test -n "$file_magic_test_file"; then
8103 case $deplibs_check_method in
8105 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8106 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8107 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8108 $EGREP "$file_magic_regex" > /dev/null; then
8113 *** Warning: the command libtool uses to detect shared libraries,
8114 *** $file_magic_cmd, produces output that libtool cannot recognize.
8115 *** The result is that libtool may fail to recognize shared libraries
8116 *** as such. This will affect the creation of libtool libraries that
8117 *** depend on shared libraries, but programs linked with such libtool
8118 *** libraries will work regardless of this problem. Nevertheless, you
8119 *** may want to report the problem to your system manager and/or to
8120 *** bug-libtool@gnu.org
8130 MAGIC_CMD=$lt_save_MAGIC_CMD
8135 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8136 if test -n "$MAGIC_CMD"; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8138 $as_echo "$MAGIC_CMD" >&6; }
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8154 # Use C for the default configuration in the libtool script
8158 ac_cpp='$CPP $CPPFLAGS'
8159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8164 # Source file extension for C test sources.
8167 # Object file extension for compiled C test sources.
8171 # Code to be used in simple compile tests
8172 lt_simple_compile_test_code="int some_variable = 0;"
8174 # Code to be used in simple link tests
8175 lt_simple_link_test_code='int main(){return(0);}'
8183 # If no C compiler was specified, use CC.
8186 # If no C compiler flags were specified, use CFLAGS.
8187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8189 # Allow CC to be a program name with arguments.
8192 # Save the default compiler, since it gets overwritten when the other
8193 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8194 compiler_DEFAULT=$CC
8196 # save warnings/boilerplate of simple test code
8197 ac_outfile=conftest.$ac_objext
8198 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8199 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8200 _lt_compiler_boilerplate=`cat conftest.err`
8203 ac_outfile=conftest.$ac_objext
8204 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8205 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8206 _lt_linker_boilerplate=`cat conftest.err`
8211 ## There is no encapsulation within the following macros, do not change
8212 ## the running order or otherwise move them around unless you know exactly
8213 ## what you are doing...
8214 if test -n "$compiler"; then
8216 lt_prog_compiler_no_builtin_flag=
8218 if test yes = "$GCC"; then
8219 case $cc_basename in
8221 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8223 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8227 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8228 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8229 $as_echo_n "(cached) " >&6
8231 lt_cv_prog_compiler_rtti_exceptions=no
8232 ac_outfile=conftest.$ac_objext
8233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8234 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8235 # Insert the option either (1) after the last *FLAGS variable, or
8236 # (2) before a word containing "conftest.", or (3) at the end.
8237 # Note that $ac_compile itself does not contain backslashes and begins
8238 # with a dollar sign (not a hyphen), so the echo should work correctly.
8239 # The option is referenced via a variable to avoid confusing sed.
8240 lt_compile=`echo "$ac_compile" | $SED \
8241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8243 -e 's:$: $lt_compiler_flag:'`
8244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8245 (eval "$lt_compile" 2>conftest.err)
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 if (exit $ac_status) && test -s "$ac_outfile"; then
8250 # The compiler can only warn and ignore the option if not recognized
8251 # So say no if there are warnings other than the usual output.
8252 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8254 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8255 lt_cv_prog_compiler_rtti_exceptions=yes
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8262 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8264 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8265 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8277 lt_prog_compiler_wl=
8278 lt_prog_compiler_pic=
8279 lt_prog_compiler_static=
8282 if test yes = "$GCC"; then
8283 lt_prog_compiler_wl='-Wl,'
8284 lt_prog_compiler_static='-static'
8288 # All AIX code is PIC.
8289 if test ia64 = "$host_cpu"; then
8290 # AIX 5 now supports IA64 processor
8291 lt_prog_compiler_static='-Bstatic'
8293 lt_prog_compiler_pic='-fPIC'
8299 # see comment about AmigaOS4 .so support
8300 lt_prog_compiler_pic='-fPIC'
8303 # FIXME: we need at least 68020 code to build shared libraries, but
8304 # adding the '-m68020' flag to GCC prevents building anything better,
8306 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8311 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8312 # PIC is the default for these OSes.
8315 mingw* | cygwin* | pw32* | os2* | cegcc*)
8316 # This hack is so that the source file can tell whether it is being
8317 # built for inclusion in a dll (and should export symbols for example).
8318 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8319 # (--disable-auto-import) libraries
8320 lt_prog_compiler_pic='-DDLL_EXPORT'
8323 lt_prog_compiler_static='$wl-static'
8328 darwin* | rhapsody*)
8329 # PIC is the default on this platform
8330 # Common symbols not allowed in MH_DYLIB files
8331 lt_prog_compiler_pic='-fno-common'
8335 # PIC is the default for Haiku.
8336 # The "-static" flag exists, but is broken.
8337 lt_prog_compiler_static=
8341 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8342 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8343 # sets the default TLS model and affects inlining.
8349 lt_prog_compiler_pic='-fPIC'
8355 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8356 # Instead, we relocate shared libraries at runtime.
8360 # Just because we use GCC doesn't mean we suddenly get shared libraries
8361 # on systems that don't support them.
8362 lt_prog_compiler_can_build_shared=no
8367 # QNX uses GNU C++, but need to define -shared option too, otherwise
8369 lt_prog_compiler_pic='-fPIC -shared'
8373 if test -d /usr/nec; then
8374 lt_prog_compiler_pic=-Kconform_pic
8379 lt_prog_compiler_pic='-fPIC'
8383 case $cc_basename in
8384 nvcc*) # Cuda Compiler Driver 2.2
8385 lt_prog_compiler_wl='-Xlinker '
8386 if test -n "$lt_prog_compiler_pic"; then
8387 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8392 # PORTME Check for flag to pass linker flags through the system compiler.
8395 lt_prog_compiler_wl='-Wl,'
8396 if test ia64 = "$host_cpu"; then
8397 # AIX 5 now supports IA64 processor
8398 lt_prog_compiler_static='-Bstatic'
8400 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8404 darwin* | rhapsody*)
8405 # PIC is the default on this platform
8406 # Common symbols not allowed in MH_DYLIB files
8407 lt_prog_compiler_pic='-fno-common'
8408 case $cc_basename in
8410 # NAG Fortran compiler
8411 lt_prog_compiler_wl='-Wl,-Wl,,'
8412 lt_prog_compiler_pic='-PIC'
8413 lt_prog_compiler_static='-Bstatic'
8418 mingw* | cygwin* | pw32* | os2* | cegcc*)
8419 # This hack is so that the source file can tell whether it is being
8420 # built for inclusion in a dll (and should export symbols for example).
8421 lt_prog_compiler_pic='-DDLL_EXPORT'
8424 lt_prog_compiler_static='$wl-static'
8429 hpux9* | hpux10* | hpux11*)
8430 lt_prog_compiler_wl='-Wl,'
8431 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8438 lt_prog_compiler_pic='+Z'
8441 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8442 lt_prog_compiler_static='$wl-a ${wl}archive'
8445 irix5* | irix6* | nonstopux*)
8446 lt_prog_compiler_wl='-Wl,'
8447 # PIC (with -KPIC) is the default.
8448 lt_prog_compiler_static='-non_shared'
8451 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8452 case $cc_basename in
8453 # old Intel for x86_64, which still supported -KPIC.
8455 lt_prog_compiler_wl='-Wl,'
8456 lt_prog_compiler_pic='-KPIC'
8457 lt_prog_compiler_static='-static'
8459 # icc used to be incompatible with GCC.
8460 # ICC 10 doesn't accept -KPIC any more.
8462 lt_prog_compiler_wl='-Wl,'
8463 lt_prog_compiler_pic='-fPIC'
8464 lt_prog_compiler_static='-static'
8466 # Lahey Fortran 8.1.
8468 lt_prog_compiler_wl='-Wl,'
8469 lt_prog_compiler_pic='--shared'
8470 lt_prog_compiler_static='--static'
8473 # NAG Fortran compiler
8474 lt_prog_compiler_wl='-Wl,-Wl,,'
8475 lt_prog_compiler_pic='-PIC'
8476 lt_prog_compiler_static='-Bstatic'
8479 # Fabrice Bellard et al's Tiny C Compiler
8480 lt_prog_compiler_wl='-Wl,'
8481 lt_prog_compiler_pic='-fPIC'
8482 lt_prog_compiler_static='-static'
8484 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8485 # Portland Group compilers (*not* the Pentium gcc compiler,
8486 # which looks to be a dead project)
8487 lt_prog_compiler_wl='-Wl,'
8488 lt_prog_compiler_pic='-fpic'
8489 lt_prog_compiler_static='-Bstatic'
8492 lt_prog_compiler_wl='-Wl,'
8493 # All Alpha code is PIC.
8494 lt_prog_compiler_static='-non_shared'
8496 xl* | bgxl* | bgf* | mpixl*)
8497 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8498 lt_prog_compiler_wl='-Wl,'
8499 lt_prog_compiler_pic='-qpic'
8500 lt_prog_compiler_static='-qstaticlink'
8503 case `$CC -V 2>&1 | sed 5q` in
8504 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8505 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8506 lt_prog_compiler_pic='-KPIC'
8507 lt_prog_compiler_static='-Bstatic'
8508 lt_prog_compiler_wl=''
8510 *Sun\ F* | *Sun*Fortran*)
8511 lt_prog_compiler_pic='-KPIC'
8512 lt_prog_compiler_static='-Bstatic'
8513 lt_prog_compiler_wl='-Qoption ld '
8517 lt_prog_compiler_pic='-KPIC'
8518 lt_prog_compiler_static='-Bstatic'
8519 lt_prog_compiler_wl='-Wl,'
8521 *Intel*\ [CF]*Compiler*)
8522 lt_prog_compiler_wl='-Wl,'
8523 lt_prog_compiler_pic='-fPIC'
8524 lt_prog_compiler_static='-static'
8527 lt_prog_compiler_wl='-Wl,'
8528 lt_prog_compiler_pic='-fpic'
8529 lt_prog_compiler_static='-Bstatic'
8537 lt_prog_compiler_pic='-KPIC'
8538 lt_prog_compiler_static='-Bstatic'
8542 # QNX uses GNU C++, but need to define -shared option too, otherwise
8544 lt_prog_compiler_pic='-fPIC -shared'
8547 osf3* | osf4* | osf5*)
8548 lt_prog_compiler_wl='-Wl,'
8549 # All OSF/1 code is PIC.
8550 lt_prog_compiler_static='-non_shared'
8554 lt_prog_compiler_static='-non_shared'
8558 lt_prog_compiler_pic='-KPIC'
8559 lt_prog_compiler_static='-Bstatic'
8560 case $cc_basename in
8561 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8562 lt_prog_compiler_wl='-Qoption ld ';;
8564 lt_prog_compiler_wl='-Wl,';;
8569 lt_prog_compiler_wl='-Qoption ld '
8570 lt_prog_compiler_pic='-PIC'
8571 lt_prog_compiler_static='-Bstatic'
8574 sysv4 | sysv4.2uw2* | sysv4.3*)
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='-KPIC'
8577 lt_prog_compiler_static='-Bstatic'
8581 if test -d /usr/nec; then
8582 lt_prog_compiler_pic='-Kconform_pic'
8583 lt_prog_compiler_static='-Bstatic'
8587 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8588 lt_prog_compiler_wl='-Wl,'
8589 lt_prog_compiler_pic='-KPIC'
8590 lt_prog_compiler_static='-Bstatic'
8594 lt_prog_compiler_wl='-Wl,'
8595 lt_prog_compiler_can_build_shared=no
8599 lt_prog_compiler_pic='-pic'
8600 lt_prog_compiler_static='-Bstatic'
8604 lt_prog_compiler_can_build_shared=no
8610 # For platforms that do not support PIC, -DPIC is meaningless:
8612 lt_prog_compiler_pic=
8615 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8620 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8621 if ${lt_cv_prog_compiler_pic+:} false; then :
8622 $as_echo_n "(cached) " >&6
8624 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8627 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8628 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8631 # Check to make sure the PIC flag actually works.
8633 if test -n "$lt_prog_compiler_pic"; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8635 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8636 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8637 $as_echo_n "(cached) " >&6
8639 lt_cv_prog_compiler_pic_works=no
8640 ac_outfile=conftest.$ac_objext
8641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8642 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8643 # Insert the option either (1) after the last *FLAGS variable, or
8644 # (2) before a word containing "conftest.", or (3) at the end.
8645 # Note that $ac_compile itself does not contain backslashes and begins
8646 # with a dollar sign (not a hyphen), so the echo should work correctly.
8647 # The option is referenced via a variable to avoid confusing sed.
8648 lt_compile=`echo "$ac_compile" | $SED \
8649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8651 -e 's:$: $lt_compiler_flag:'`
8652 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8653 (eval "$lt_compile" 2>conftest.err)
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 if (exit $ac_status) && test -s "$ac_outfile"; then
8658 # The compiler can only warn and ignore the option if not recognized
8659 # So say no if there are warnings other than the usual output.
8660 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8662 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8663 lt_cv_prog_compiler_pic_works=yes
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8670 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8672 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8673 case $lt_prog_compiler_pic in
8675 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8678 lt_prog_compiler_pic=
8679 lt_prog_compiler_can_build_shared=no
8695 # Check to make sure the static flag actually works.
8697 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8699 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8700 if ${lt_cv_prog_compiler_static_works+:} false; then :
8701 $as_echo_n "(cached) " >&6
8703 lt_cv_prog_compiler_static_works=no
8704 save_LDFLAGS=$LDFLAGS
8705 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8706 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8707 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8708 # The linker can only warn and ignore the option if not recognized
8709 # So say no if there are warnings
8710 if test -s conftest.err; then
8711 # Append any errors to the config.log.
8712 cat conftest.err 1>&5
8713 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8715 if diff conftest.exp conftest.er2 >/dev/null; then
8716 lt_cv_prog_compiler_static_works=yes
8719 lt_cv_prog_compiler_static_works=yes
8723 LDFLAGS=$save_LDFLAGS
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8727 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8729 if test yes = "$lt_cv_prog_compiler_static_works"; then
8732 lt_prog_compiler_static=
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8742 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8743 if ${lt_cv_prog_compiler_c_o+:} false; then :
8744 $as_echo_n "(cached) " >&6
8746 lt_cv_prog_compiler_c_o=no
8747 $RM -r conftest 2>/dev/null
8751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8753 lt_compiler_flag="-o out/conftest2.$ac_objext"
8754 # Insert the option either (1) after the last *FLAGS variable, or
8755 # (2) before a word containing "conftest.", or (3) at the end.
8756 # Note that $ac_compile itself does not contain backslashes and begins
8757 # with a dollar sign (not a hyphen), so the echo should work correctly.
8758 lt_compile=`echo "$ac_compile" | $SED \
8759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8761 -e 's:$: $lt_compiler_flag:'`
8762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8763 (eval "$lt_compile" 2>out/conftest.err)
8765 cat out/conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8769 # The compiler can only warn and ignore the option if not recognized
8770 # So say no if there are warnings
8771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8774 lt_cv_prog_compiler_c_o=yes
8779 # SGI C++ compiler will create directory out/ii_files/ for
8780 # template instantiation
8781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8782 $RM out/* && rmdir out
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8789 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8797 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8798 if ${lt_cv_prog_compiler_c_o+:} false; then :
8799 $as_echo_n "(cached) " >&6
8801 lt_cv_prog_compiler_c_o=no
8802 $RM -r conftest 2>/dev/null
8806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8808 lt_compiler_flag="-o out/conftest2.$ac_objext"
8809 # Insert the option either (1) after the last *FLAGS variable, or
8810 # (2) before a word containing "conftest.", or (3) at the end.
8811 # Note that $ac_compile itself does not contain backslashes and begins
8812 # with a dollar sign (not a hyphen), so the echo should work correctly.
8813 lt_compile=`echo "$ac_compile" | $SED \
8814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8816 -e 's:$: $lt_compiler_flag:'`
8817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8818 (eval "$lt_compile" 2>out/conftest.err)
8820 cat out/conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8824 # The compiler can only warn and ignore the option if not recognized
8825 # So say no if there are warnings
8826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8827 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8828 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8829 lt_cv_prog_compiler_c_o=yes
8834 # SGI C++ compiler will create directory out/ii_files/ for
8835 # template instantiation
8836 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8837 $RM out/* && rmdir out
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8844 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8849 hard_links=nottested
8850 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8851 # do not overwrite the value of need_locks provided by the user
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8853 $as_echo_n "checking if we can lock with hard links... " >&6; }
8856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8858 ln conftest.a conftest.b 2>&5 || hard_links=no
8859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8861 $as_echo "$hard_links" >&6; }
8862 if test no = "$hard_links"; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8864 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8877 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8880 allow_undefined_flag=
8881 always_export_symbols=no
8883 archive_expsym_cmds=
8884 compiler_needs_object=no
8885 enable_shared_with_static_runtimes=no
8886 export_dynamic_flag_spec=
8887 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8888 hardcode_automatic=no
8890 hardcode_direct_absolute=no
8891 hardcode_libdir_flag_spec=
8892 hardcode_libdir_separator=
8894 hardcode_shlibpath_var=unsupported
8896 link_all_deplibs=unknown
8899 old_archive_from_new_cmds=
8900 old_archive_from_expsyms_cmds=
8901 thread_safe_flag_spec=
8902 whole_archive_flag_spec=
8903 # include_expsyms should be a list of space-separated symbols to be *always*
8904 # included in the symbol list
8906 # exclude_expsyms can be an extended regexp of symbols to exclude
8907 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8908 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8909 # as well as any symbol that contains 'd'.
8910 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8911 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8912 # platforms (ab)use it in PIC code, but their linkers get confused if
8913 # the symbol is explicitly referenced. Since portable code cannot
8914 # rely on this symbol name, it's probably fine to never include it in
8915 # preloaded symbol tables.
8916 # Exclude shared library initialization/finalization symbols.
8917 extract_expsyms_cmds=
8920 cygwin* | mingw* | pw32* | cegcc*)
8921 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8922 # When not using gcc, we currently assume that we are using
8923 # Microsoft Visual C++.
8924 if test yes != "$GCC"; then
8929 # we just hope/assume this is gcc and not c89 (= MSVC++)
8935 linux* | k*bsd*-gnu | gnu*)
8942 # On some targets, GNU ld is compatible enough with the native linker
8943 # that we're better off using the native interface for both.
8944 lt_use_gnu_ld_interface=no
8945 if test yes = "$with_gnu_ld"; then
8948 # The AIX port of GNU ld has always aspired to compatibility
8949 # with the native linker. However, as the warning in the GNU ld
8950 # block says, versions before 2.19.5* couldn't really create working
8951 # shared libraries, regardless of the interface used.
8952 case `$LD -v 2>&1` in
8953 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8954 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8955 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8957 lt_use_gnu_ld_interface=yes
8962 lt_use_gnu_ld_interface=yes
8967 if test yes = "$lt_use_gnu_ld_interface"; then
8968 # If archive_cmds runs LD, not CC, wlarc should be empty
8971 # Set some defaults for GNU ld with shared library support. These
8972 # are reset later if shared libraries are not supported. Putting them
8973 # here allows them to be overridden if necessary.
8974 runpath_var=LD_RUN_PATH
8975 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8976 export_dynamic_flag_spec='$wl--export-dynamic'
8977 # ancient GNU ld didn't support --whole-archive et. al.
8978 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8979 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8981 whole_archive_flag_spec=
8983 supports_anon_versioning=no
8984 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8985 *GNU\ gold*) supports_anon_versioning=yes ;;
8986 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8987 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8988 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8989 *\ 2.11.*) ;; # other 2.11 versions
8990 *) supports_anon_versioning=yes ;;
8993 # See if GNU ld supports shared libraries.
8996 # On AIX/PPC, the GNU linker is very broken
8997 if test ia64 != "$host_cpu"; then
9001 *** Warning: the GNU linker, at least up to release 2.19, is reported
9002 *** to be unable to reliably create shared libraries on AIX.
9003 *** Therefore, libtool is disabling shared libraries support. If you
9004 *** really care for shared libraries, you may want to install binutils
9005 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9006 *** You will then need to restart the configuration process.
9015 # see comment about AmigaOS4 .so support
9016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9017 archive_expsym_cmds=''
9020 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)'
9021 hardcode_libdir_flag_spec='-L$libdir'
9022 hardcode_minus_L=yes
9028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9029 allow_undefined_flag=unsupported
9030 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9031 # support --undefined. This deserves some investigation. FIXME
9032 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9038 cygwin* | mingw* | pw32* | cegcc*)
9039 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9040 # as there is no search path for DLLs.
9041 hardcode_libdir_flag_spec='-L$libdir'
9042 export_dynamic_flag_spec='$wl--export-all-symbols'
9043 allow_undefined_flag=unsupported
9044 always_export_symbols=no
9045 enable_shared_with_static_runtimes=yes
9046 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'
9047 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9049 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9051 # If the export-symbols file already is a .def file, use it as
9052 # is; otherwise, prepend EXPORTS...
9053 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9054 cp $export_symbols $output_objdir/$soname.def;
9056 echo EXPORTS > $output_objdir/$soname.def;
9057 cat $export_symbols >> $output_objdir/$soname.def;
9059 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9067 link_all_deplibs=yes
9071 hardcode_libdir_flag_spec='-L$libdir'
9072 hardcode_minus_L=yes
9073 allow_undefined_flag=unsupported
9075 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9076 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9077 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9078 $ECHO EXPORTS >> $output_objdir/$libname.def~
9079 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9080 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9081 emximp -o $lib $output_objdir/$libname.def'
9082 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9083 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9084 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9085 $ECHO EXPORTS >> $output_objdir/$libname.def~
9087 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9088 prefix_cmds="$prefix_cmds -e 1d";
9090 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9091 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9092 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9093 emximp -o $lib $output_objdir/$libname.def'
9094 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9095 enable_shared_with_static_runtimes=yes
9100 hardcode_shlibpath_var=no
9101 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9102 export_dynamic_flag_spec='$wl-E'
9103 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9104 # Instead, shared libraries are loaded at an image base (0x10000000 by
9105 # default) and relocated if they conflict, which is a slow very memory
9106 # consuming and fragmenting process. To avoid this, we pick a random,
9107 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9108 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9109 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9110 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'
9113 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9115 if test linux-dietlibc = "$host_os"; then
9116 case $cc_basename in
9117 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9120 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9121 && test no = "$tmp_diet"
9123 tmp_addflag=' $pic_flag'
9124 tmp_sharedflag='-shared'
9125 case $cc_basename,$host_cpu in
9126 pgcc*) # Portland Group C compiler
9127 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'
9128 tmp_addflag=' $pic_flag'
9130 pgf77* | pgf90* | pgf95* | pgfortran*)
9131 # Portland Group f77 and f90 compilers
9132 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'
9133 tmp_addflag=' $pic_flag -Mnomain' ;;
9134 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9135 tmp_addflag=' -i_dynamic' ;;
9136 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9137 tmp_addflag=' -i_dynamic -nofor_main' ;;
9138 ifc* | ifort*) # Intel Fortran compiler
9139 tmp_addflag=' -nofor_main' ;;
9140 lf95*) # Lahey Fortran 8.1
9141 whole_archive_flag_spec=
9142 tmp_sharedflag='--shared' ;;
9143 nagfor*) # NAGFOR 5.3
9144 tmp_sharedflag='-Wl,-shared' ;;
9145 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9146 tmp_sharedflag='-qmkshrobj'
9148 nvcc*) # Cuda Compiler Driver 2.2
9149 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'
9150 compiler_needs_object=yes
9153 case `$CC -V 2>&1 | sed 5q` in
9154 *Sun\ C*) # Sun C 5.9
9155 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'
9156 compiler_needs_object=yes
9157 tmp_sharedflag='-G' ;;
9158 *Sun\ F*) # Sun Fortran 8.3
9159 tmp_sharedflag='-G' ;;
9161 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9163 if test yes = "$supports_anon_versioning"; then
9164 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9166 echo "local: *; };" >> $output_objdir/$libname.ver~
9167 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9170 case $cc_basename in
9172 export_dynamic_flag_spec='-rdynamic'
9174 xlf* | bgf* | bgxlf* | mpixlf*)
9175 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9176 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9177 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9178 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9179 if test yes = "$supports_anon_versioning"; then
9180 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9181 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9182 echo "local: *; };" >> $output_objdir/$libname.ver~
9183 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9192 netbsd* | netbsdelf*-gnu)
9193 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9194 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9197 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9198 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9203 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9207 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9208 *** create shared libraries on Solaris systems. Therefore, libtool
9209 *** is disabling shared libraries support. We urge you to upgrade GNU
9210 *** binutils to release 2.9.1 or newer. Another option is to modify
9211 *** your PATH or compiler configuration so that the native linker is
9212 *** used, and then restart.
9215 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9216 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9217 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9224 case `$LD -v 2>&1` in
9225 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9229 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9230 *** reliably create shared libraries on SCO systems. Therefore, libtool
9231 *** is disabling shared libraries support. We urge you to upgrade GNU
9232 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9233 *** your PATH or compiler configuration so that the native linker is
9234 *** used, and then restart.
9239 # For security reasons, it is highly recommended that you always
9240 # use absolute paths for naming shared libraries, and exclude the
9241 # DT_RUNPATH tag from executables and libraries. But doing so
9242 # requires that you compile everything twice, which is a pain.
9243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9244 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9246 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9255 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9258 hardcode_shlibpath_var=no
9262 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9263 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9264 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9271 if test no = "$ld_shlibs"; then
9273 hardcode_libdir_flag_spec=
9274 export_dynamic_flag_spec=
9275 whole_archive_flag_spec=
9278 # PORTME fill in a description of your system's linker (not GNU ld)
9281 allow_undefined_flag=unsupported
9282 always_export_symbols=yes
9283 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'
9284 # Note: this linker hardcodes the directories in LIBPATH if there
9285 # are no directories specified by -L.
9286 hardcode_minus_L=yes
9287 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9288 # Neither direct hardcoding nor static linking is supported with a
9290 hardcode_direct=unsupported
9295 if test ia64 = "$host_cpu"; then
9296 # On IA64, the linker does run time linking by default, so we don't
9297 # have to do anything special.
9298 aix_use_runtimelinking=no
9299 exp_sym_flag='-Bexport'
9302 # If we're using GNU nm, then we don't want the "-C" option.
9303 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9304 # Without the "-l" option, or with the "-B" option, AIX nm treats
9305 # weak defined symbols like other global defined symbols, whereas
9306 # GNU nm marks them as "W".
9307 # While the 'weak' keyword is ignored in the Export File, we need
9308 # it in the Import File for the 'aix-soname' feature, so we have
9309 # to replace the "-B" option with "-P" for AIX nm.
9310 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9311 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9313 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9315 aix_use_runtimelinking=no
9317 # Test if we are trying to use run time linking or normal
9318 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9319 # have runtime linking enabled, and use it for executables.
9320 # For shared libraries, we enable/disable runtime linking
9321 # depending on the kind of the shared library created -
9322 # when "with_aix_soname,aix_use_runtimelinking" is:
9323 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9324 # "aix,yes" lib.so shared, rtl:yes, for executables
9325 # lib.a static archive
9326 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9327 # lib.a(lib.so.V) shared, rtl:no, for executables
9328 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9329 # lib.a(lib.so.V) shared, rtl:no
9330 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9331 # lib.a static archive
9332 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9333 for ld_flag in $LDFLAGS; do
9334 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9335 aix_use_runtimelinking=yes
9339 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9340 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9341 # so we don't have lib.a shared libs to link our executables.
9342 # We have to force runtime linking in this case.
9343 aix_use_runtimelinking=yes
9344 LDFLAGS="$LDFLAGS -Wl,-brtl"
9349 exp_sym_flag='-bexport'
9350 no_entry_flag='-bnoentry'
9353 # When large executables or shared objects are built, AIX ld can
9354 # have problems creating the table of contents. If linking a library
9355 # or program results in "error TOC overflow" add -mminimal-toc to
9356 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9357 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9361 hardcode_direct_absolute=yes
9362 hardcode_libdir_separator=':'
9363 link_all_deplibs=yes
9364 file_list_spec='$wl-f,'
9365 case $with_aix_soname,$aix_use_runtimelinking in
9366 aix,*) ;; # traditional, no import file
9367 svr4,* | *,yes) # use import file
9368 # The Import File defines what to hardcode.
9370 hardcode_direct_absolute=no
9374 if test yes = "$GCC"; then
9375 case $host_os in aix4.[012]|aix4.[012].*)
9376 # We only want to do this on AIX 4.2 and lower, the check
9377 # below for broken collect2 doesn't work under 4.3+
9378 collect2name=`$CC -print-prog-name=collect2`
9379 if test -f "$collect2name" &&
9380 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9382 # We have reworked collect2
9385 # We have old collect2
9386 hardcode_direct=unsupported
9387 # It fails to find uninstalled libraries when the uninstalled
9388 # path is not listed in the libpath. Setting hardcode_minus_L
9389 # to unsupported forces relinking
9390 hardcode_minus_L=yes
9391 hardcode_libdir_flag_spec='-L$libdir'
9392 hardcode_libdir_separator=
9396 shared_flag='-shared'
9397 if test yes = "$aix_use_runtimelinking"; then
9398 shared_flag="$shared_flag "'$wl-G'
9400 # Need to ensure runtime linking is disabled for the traditional
9401 # shared library, or the linker may eventually find shared libraries
9402 # /with/ Import File - we do not want to mix them.
9403 shared_flag_aix='-shared'
9404 shared_flag_svr4='-shared $wl-G'
9407 if test ia64 = "$host_cpu"; then
9408 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9409 # chokes on -Wl,-G. The following line is correct:
9412 if test yes = "$aix_use_runtimelinking"; then
9415 shared_flag='$wl-bM:SRE'
9417 shared_flag_aix='$wl-bM:SRE'
9418 shared_flag_svr4='$wl-G'
9422 export_dynamic_flag_spec='$wl-bexpall'
9423 # It seems that -bexpall does not export symbols beginning with
9424 # underscore (_), so it is better to generate a list of symbols to export.
9425 always_export_symbols=yes
9426 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9427 # Warning - without using the other runtime loading flags (-brtl),
9428 # -berok will link without error, but may produce a broken library.
9429 allow_undefined_flag='-berok'
9430 # Determine the default libpath from the value encoded in an
9432 if test set = "${lt_cv_aix_libpath+set}"; then
9433 aix_libpath=$lt_cv_aix_libpath
9435 if ${lt_cv_aix_libpath_+:} false; then :
9436 $as_echo_n "(cached) " >&6
9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439 /* end confdefs.h. */
9449 if ac_fn_c_try_link "$LINENO"; then :
9451 lt_aix_libpath_sed='
9452 /Import File Strings/,/^$/ {
9454 s/^0 *\([^ ]*\) *$/\1/
9458 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9459 # Check for a 64-bit object if we didn't find anything.
9460 if test -z "$lt_cv_aix_libpath_"; then
9461 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9464 rm -f core conftest.err conftest.$ac_objext \
9465 conftest$ac_exeext conftest.$ac_ext
9466 if test -z "$lt_cv_aix_libpath_"; then
9467 lt_cv_aix_libpath_=/usr/lib:/lib
9472 aix_libpath=$lt_cv_aix_libpath_
9475 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9476 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9478 if test ia64 = "$host_cpu"; then
9479 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9480 allow_undefined_flag="-z nodefs"
9481 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"
9483 # Determine the default libpath from the value encoded in an
9485 if test set = "${lt_cv_aix_libpath+set}"; then
9486 aix_libpath=$lt_cv_aix_libpath
9488 if ${lt_cv_aix_libpath_+:} false; then :
9489 $as_echo_n "(cached) " >&6
9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9502 if ac_fn_c_try_link "$LINENO"; then :
9504 lt_aix_libpath_sed='
9505 /Import File Strings/,/^$/ {
9507 s/^0 *\([^ ]*\) *$/\1/
9511 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9512 # Check for a 64-bit object if we didn't find anything.
9513 if test -z "$lt_cv_aix_libpath_"; then
9514 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9517 rm -f core conftest.err conftest.$ac_objext \
9518 conftest$ac_exeext conftest.$ac_ext
9519 if test -z "$lt_cv_aix_libpath_"; then
9520 lt_cv_aix_libpath_=/usr/lib:/lib
9525 aix_libpath=$lt_cv_aix_libpath_
9528 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9529 # Warning - without using the other run time loading flags,
9530 # -berok will link without error, but may produce a broken library.
9531 no_undefined_flag=' $wl-bernotok'
9532 allow_undefined_flag=' $wl-berok'
9533 if test yes = "$with_gnu_ld"; then
9534 # We only use this code for GNU lds that support --whole-archive.
9535 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9537 # Exported symbols can be pulled into shared objects from archives
9538 whole_archive_flag_spec='$convenience'
9540 archive_cmds_need_lc=yes
9541 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9542 # -brtl affects multiple linker settings, -berok does not and is overridden later
9543 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9544 if test svr4 != "$with_aix_soname"; then
9545 # This is similar to how AIX traditionally builds its shared libraries.
9546 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9548 if test aix != "$with_aix_soname"; then
9549 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9551 # used by -dlpreopen to get the symbols
9552 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9554 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9562 # see comment about AmigaOS4 .so support
9563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9564 archive_expsym_cmds=''
9567 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)'
9568 hardcode_libdir_flag_spec='-L$libdir'
9569 hardcode_minus_L=yes
9575 export_dynamic_flag_spec=-rdynamic
9578 cygwin* | mingw* | pw32* | cegcc*)
9579 # When not using gcc, we currently assume that we are using
9580 # Microsoft Visual C++.
9581 # hardcode_libdir_flag_spec is actually meaningless, as there is
9582 # no search path for DLLs.
9583 case $cc_basename in
9586 hardcode_libdir_flag_spec=' '
9587 allow_undefined_flag=unsupported
9588 always_export_symbols=yes
9590 # Tell ltmain to make .lib files, not .a files.
9592 # Tell ltmain to make .dll files, not .so files.
9594 # FIXME: Setting linknames here is a bad hack.
9595 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9596 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9597 cp "$export_symbols" "$output_objdir/$soname.def";
9598 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9600 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9602 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9604 # The linker will not automatically build a static lib if we build a DLL.
9605 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9606 enable_shared_with_static_runtimes=yes
9607 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9608 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9610 old_postinstall_cmds='chmod 644 $oldlib'
9611 postlink_cmds='lt_outputfile="@OUTPUT@"~
9612 lt_tool_outputfile="@TOOL_OUTPUT@"~
9613 case $lt_outputfile in
9616 lt_outputfile=$lt_outputfile.exe
9617 lt_tool_outputfile=$lt_tool_outputfile.exe
9620 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9621 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9622 $RM "$lt_outputfile.manifest";
9626 # Assume MSVC wrapper
9627 hardcode_libdir_flag_spec=' '
9628 allow_undefined_flag=unsupported
9629 # Tell ltmain to make .lib files, not .a files.
9631 # Tell ltmain to make .dll files, not .so files.
9633 # FIXME: Setting linknames here is a bad hack.
9634 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9635 # The linker will automatically build a .lib file if we build a DLL.
9636 old_archive_from_new_cmds='true'
9637 # FIXME: Should let the user specify the lib program.
9638 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9639 enable_shared_with_static_runtimes=yes
9644 darwin* | rhapsody*)
9647 archive_cmds_need_lc=no
9649 hardcode_automatic=yes
9650 hardcode_shlibpath_var=unsupported
9651 if test yes = "$lt_cv_ld_force_load"; then
9652 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\"`'
9655 whole_archive_flag_spec=''
9657 link_all_deplibs=yes
9658 allow_undefined_flag=$_lt_dar_allow_undefined
9659 case $cc_basename in
9660 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9661 *) _lt_dar_can_shared=$GCC ;;
9663 if test yes = "$_lt_dar_can_shared"; then
9664 output_verbose_link_cmd=func_echo_all
9665 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9666 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9667 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"
9668 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"
9677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678 hardcode_libdir_flag_spec='-L$libdir'
9679 hardcode_shlibpath_var=no
9682 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9683 # support. Future versions do this automatically, but an explicit c++rt0.o
9684 # does not break anything, and helps significantly (at the cost of a little
9687 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9688 hardcode_libdir_flag_spec='-R$libdir'
9690 hardcode_shlibpath_var=no
9693 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9695 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_minus_L=yes
9698 hardcode_shlibpath_var=no
9701 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9702 freebsd* | dragonfly*)
9703 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9704 hardcode_libdir_flag_spec='-R$libdir'
9706 hardcode_shlibpath_var=no
9710 if test yes = "$GCC"; then
9711 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9713 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9715 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9716 hardcode_libdir_separator=:
9719 # hardcode_minus_L: Not really in the search PATH,
9720 # but as the default location of the library.
9721 hardcode_minus_L=yes
9722 export_dynamic_flag_spec='$wl-E'
9726 if test yes,no = "$GCC,$with_gnu_ld"; then
9727 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9731 if test no = "$with_gnu_ld"; then
9732 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9733 hardcode_libdir_separator=:
9735 hardcode_direct_absolute=yes
9736 export_dynamic_flag_spec='$wl-E'
9737 # hardcode_minus_L: Not really in the search PATH,
9738 # but as the default location of the library.
9739 hardcode_minus_L=yes
9744 if test yes,no = "$GCC,$with_gnu_ld"; then
9747 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9750 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9753 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9759 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9762 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9766 # Older versions of the 11.00 compiler do not understand -b yet
9767 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9769 $as_echo_n "checking if $CC understands -b... " >&6; }
9770 if ${lt_cv_prog_compiler__b+:} false; then :
9771 $as_echo_n "(cached) " >&6
9773 lt_cv_prog_compiler__b=no
9774 save_LDFLAGS=$LDFLAGS
9775 LDFLAGS="$LDFLAGS -b"
9776 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9777 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9778 # The linker can only warn and ignore the option if not recognized
9779 # So say no if there are warnings
9780 if test -s conftest.err; then
9781 # Append any errors to the config.log.
9782 cat conftest.err 1>&5
9783 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9785 if diff conftest.exp conftest.er2 >/dev/null; then
9786 lt_cv_prog_compiler__b=yes
9789 lt_cv_prog_compiler__b=yes
9793 LDFLAGS=$save_LDFLAGS
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9797 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9799 if test yes = "$lt_cv_prog_compiler__b"; then
9800 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9802 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9808 if test no = "$with_gnu_ld"; then
9809 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9810 hardcode_libdir_separator=:
9815 hardcode_shlibpath_var=no
9819 hardcode_direct_absolute=yes
9820 export_dynamic_flag_spec='$wl-E'
9822 # hardcode_minus_L: Not really in the search PATH,
9823 # but as the default location of the library.
9824 hardcode_minus_L=yes
9830 irix5* | irix6* | nonstopux*)
9831 if test yes = "$GCC"; then
9832 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'
9833 # Try to use the -exported_symbol ld option, if it does not
9834 # work, assume that -exports_file does not work either and
9835 # implicitly export all symbols.
9836 # This should be the same for all languages, so no per-tag cache variable.
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9838 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9839 if ${lt_cv_irix_exported_symbol+:} false; then :
9840 $as_echo_n "(cached) " >&6
9842 save_LDFLAGS=$LDFLAGS
9843 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9846 int foo (void) { return 0; }
9848 if ac_fn_c_try_link "$LINENO"; then :
9849 lt_cv_irix_exported_symbol=yes
9851 lt_cv_irix_exported_symbol=no
9853 rm -f core conftest.err conftest.$ac_objext \
9854 conftest$ac_exeext conftest.$ac_ext
9855 LDFLAGS=$save_LDFLAGS
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9858 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9859 if test yes = "$lt_cv_irix_exported_symbol"; then
9860 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'
9864 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'
9865 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'
9867 archive_cmds_need_lc='no'
9868 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9869 hardcode_libdir_separator=:
9871 link_all_deplibs=yes
9875 case $cc_basename in
9877 # Fabrice Bellard et al's Tiny C Compiler
9879 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9884 netbsd* | netbsdelf*-gnu)
9885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9888 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9890 hardcode_libdir_flag_spec='-R$libdir'
9892 hardcode_shlibpath_var=no
9896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9898 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9899 hardcode_libdir_separator=:
9900 hardcode_shlibpath_var=no
9907 if test -f /usr/libexec/ld.so; then
9909 hardcode_shlibpath_var=no
9910 hardcode_direct_absolute=yes
9911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9912 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9913 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9914 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9915 export_dynamic_flag_spec='$wl-E'
9917 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9918 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9926 hardcode_libdir_flag_spec='-L$libdir'
9927 hardcode_minus_L=yes
9928 allow_undefined_flag=unsupported
9930 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9931 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9932 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9933 $ECHO EXPORTS >> $output_objdir/$libname.def~
9934 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9935 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9936 emximp -o $lib $output_objdir/$libname.def'
9937 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9938 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9939 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9940 $ECHO EXPORTS >> $output_objdir/$libname.def~
9942 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9943 prefix_cmds="$prefix_cmds -e 1d";
9945 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9946 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9947 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9948 emximp -o $lib $output_objdir/$libname.def'
9949 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9950 enable_shared_with_static_runtimes=yes
9954 if test yes = "$GCC"; then
9955 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9956 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'
9958 allow_undefined_flag=' -expect_unresolved \*'
9959 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'
9961 archive_cmds_need_lc='no'
9962 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9963 hardcode_libdir_separator=:
9966 osf4* | osf5*) # as osf3* with the addition of -msym flag
9967 if test yes = "$GCC"; then
9968 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9969 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'
9970 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9972 allow_undefined_flag=' -expect_unresolved \*'
9973 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'
9974 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~
9975 $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'
9977 # Both c and cxx compiler support -rpath directly
9978 hardcode_libdir_flag_spec='-rpath $libdir'
9980 archive_cmds_need_lc='no'
9981 hardcode_libdir_separator=:
9985 no_undefined_flag=' -z defs'
9986 if test yes = "$GCC"; then
9988 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9989 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9990 $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'
9992 case `$CC -V 2>&1` in
9995 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9996 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9997 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10001 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10002 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10003 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10007 hardcode_libdir_flag_spec='-R$libdir'
10008 hardcode_shlibpath_var=no
10010 solaris2.[0-5] | solaris2.[0-5].*) ;;
10012 # The compiler driver will combine and reorder linker options,
10013 # but understands '-z linker_flag'. GCC discards it without '$wl',
10014 # but is careful enough not to reorder.
10015 # Supported since Solaris 2.6 (maybe 2.5.1?)
10016 if test yes = "$GCC"; then
10017 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10019 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10023 link_all_deplibs=yes
10027 if test sequent = "$host_vendor"; then
10028 # Use $CC to link under sequent, because it throws in some extra .o
10029 # files that make .init and .fini sections work.
10030 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10032 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10034 hardcode_libdir_flag_spec='-L$libdir'
10035 hardcode_direct=yes
10036 hardcode_minus_L=yes
10037 hardcode_shlibpath_var=no
10041 case $host_vendor in
10043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10044 hardcode_direct=yes # is this really true???
10047 ## LD is ld it makes a PLAMLIB
10048 ## CC just makes a GrossModule.
10049 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10050 reload_cmds='$CC -r -o $output$reload_objs'
10054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10058 runpath_var='LD_RUN_PATH'
10059 hardcode_shlibpath_var=no
10063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064 hardcode_shlibpath_var=no
10065 export_dynamic_flag_spec='-Bexport'
10069 if test -d /usr/nec; then
10070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071 hardcode_shlibpath_var=no
10072 runpath_var=LD_RUN_PATH
10073 hardcode_runpath_var=yes
10078 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10079 no_undefined_flag='$wl-z,text'
10080 archive_cmds_need_lc=no
10081 hardcode_shlibpath_var=no
10082 runpath_var='LD_RUN_PATH'
10084 if test yes = "$GCC"; then
10085 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10086 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10089 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 sysv5* | sco3.2v5* | sco5v6*)
10094 # Note: We CANNOT use -z defs as we might desire, because we do not
10095 # link with -lc, and that would cause any symbols used from libc to
10096 # always be unresolved, which means just about no library would
10097 # ever link correctly. If we're not using GNU ld we use -z text
10098 # though, which does catch some bad symbols but isn't as heavy-handed
10100 no_undefined_flag='$wl-z,text'
10101 allow_undefined_flag='$wl-z,nodefs'
10102 archive_cmds_need_lc=no
10103 hardcode_shlibpath_var=no
10104 hardcode_libdir_flag_spec='$wl-R,$libdir'
10105 hardcode_libdir_separator=':'
10106 link_all_deplibs=yes
10107 export_dynamic_flag_spec='$wl-Bexport'
10108 runpath_var='LD_RUN_PATH'
10110 if test yes = "$GCC"; then
10111 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10112 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10121 hardcode_libdir_flag_spec='-L$libdir'
10122 hardcode_shlibpath_var=no
10130 if test sni = "$host_vendor"; then
10132 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10133 export_dynamic_flag_spec='$wl-Blargedynsym'
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10140 $as_echo "$ld_shlibs" >&6; }
10141 test no = "$ld_shlibs" && can_build_shared=no
10143 with_gnu_ld=$with_gnu_ld
10160 # Do we need to explicitly link libc?
10162 case "x$archive_cmds_need_lc" in
10164 # Assume -lc should be added
10165 archive_cmds_need_lc=yes
10167 if test yes,yes = "$GCC,$enable_shared"; then
10168 case $archive_cmds in
10170 # FIXME: we may have to deal with multi-command sequences.
10173 # Test whether the compiler implicitly links with -lc since on some
10174 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10175 # to ld, don't add -lc before -lgcc.
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10177 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10178 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10179 $as_echo_n "(cached) " >&6
10182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10185 (eval $ac_compile) 2>&5
10187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10188 test $ac_status = 0; } 2>conftest.err; then
10191 libobjs=conftest.$ac_objext
10193 wl=$lt_prog_compiler_wl
10194 pic_flag=$lt_prog_compiler_pic
10200 lt_save_allow_undefined_flag=$allow_undefined_flag
10201 allow_undefined_flag=
10202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10203 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10206 test $ac_status = 0; }
10208 lt_cv_archive_cmds_need_lc=no
10210 lt_cv_archive_cmds_need_lc=yes
10212 allow_undefined_flag=$lt_save_allow_undefined_flag
10214 cat conftest.err 1>&5
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10220 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10221 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10380 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10382 if test yes = "$GCC"; then
10384 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10385 *) lt_awk_arg='/^libraries:/' ;;
10388 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10389 *) lt_sed_strip_eq='s|=/|/|g' ;;
10391 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10392 case $lt_search_path_spec in
10394 # if the path contains ";" then we assume it to be the separator
10395 # otherwise default to the standard path separator (i.e. ":") - it is
10396 # assumed that no part of a normal pathname contains ";" but that should
10397 # okay in the real world where ";" in dirpaths is itself problematic.
10398 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10401 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10404 # Ok, now we have the path, separated by spaces, we can step through it
10405 # and add multilib dir if necessary...
10406 lt_tmp_lt_search_path_spec=
10407 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10408 # ...but if some path component already ends with the multilib dir we assume
10409 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10410 case "$lt_multi_os_dir; $lt_search_path_spec " in
10411 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10415 for lt_sys_path in $lt_search_path_spec; do
10416 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10417 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10418 elif test -n "$lt_multi_os_dir"; then
10419 test -d "$lt_sys_path" && \
10420 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10423 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10424 BEGIN {RS = " "; FS = "/|\n";} {
10427 for (lt_i = NF; lt_i > 0; lt_i--) {
10428 if ($lt_i != "" && $lt_i != ".") {
10429 if ($lt_i == "..") {
10432 if (lt_count == 0) {
10433 lt_foo = "/" $lt_i lt_foo;
10440 if (lt_foo != "") { lt_freq[lt_foo]++; }
10441 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10443 # AWK program above erroneously prepends '/' to C:/dos/paths
10446 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10447 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10449 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10453 library_names_spec=
10454 libname_spec='lib$name'
10458 postuninstall_cmds=
10462 shlibpath_overrides_runpath=unknown
10464 dynamic_linker="$host_os ld.so"
10465 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10466 need_lib_prefix=unknown
10467 hardcode_into_libs=no
10469 # when you set need_version to no, make sure it does not cause -set_version
10470 # flags to be left without arguments
10471 need_version=unknown
10477 version_type=linux # correct to gnu/linux during the next big refactor
10478 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10479 shlibpath_var=LIBPATH
10481 # AIX 3 has no versioning support, so we append a major version to the name.
10482 soname_spec='$libname$release$shared_ext$major'
10486 version_type=linux # correct to gnu/linux during the next big refactor
10489 hardcode_into_libs=yes
10490 if test ia64 = "$host_cpu"; then
10491 # AIX 5 supports IA64
10492 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10493 shlibpath_var=LD_LIBRARY_PATH
10495 # With GCC up to 2.95.x, collect2 would create an import file
10496 # for dependence libraries. The import file would start with
10497 # the line '#! .'. This would cause the generated library to
10498 # depend on '.', always an invalid library. This was fixed in
10499 # development snapshots of GCC prior to 3.0.
10501 aix4 | aix4.[01] | aix4.[01].*)
10502 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10504 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10507 can_build_shared=no
10511 # Using Import Files as archive members, it is possible to support
10512 # filename-based versioning of shared library archives on AIX. While
10513 # this would work for both with and without runtime linking, it will
10514 # prevent static linking of such archives. So we do filename-based
10515 # shared library versioning with .so extension only, which is used
10516 # when both runtime linking and shared linking is enabled.
10517 # Unfortunately, runtime linking may impact performance, so we do
10518 # not want this to be the default eventually. Also, we use the
10519 # versioned .so libs for executables only if there is the -brtl
10520 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10521 # To allow for filename-based versioning support, we need to create
10522 # libNAME.so.V as an archive file, containing:
10523 # *) an Import File, referring to the versioned filename of the
10524 # archive as well as the shared archive member, telling the
10525 # bitwidth (32 or 64) of that shared object, and providing the
10526 # list of exported symbols of that shared object, eventually
10527 # decorated with the 'weak' keyword
10528 # *) the shared object with the F_LOADONLY flag set, to really avoid
10529 # it being seen by the linker.
10530 # At run time we better use the real file rather than another symlink,
10531 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10533 case $with_aix_soname,$aix_use_runtimelinking in
10534 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10535 # soname into executable. Probably we can add versioning support to
10536 # collect2, so additional links can be useful in future.
10537 aix,yes) # traditional libtool
10538 dynamic_linker='AIX unversionable lib.so'
10539 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10540 # instead of lib<name>.a to let people know that these are not
10541 # typical AIX shared libraries.
10542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10544 aix,no) # traditional AIX only
10545 dynamic_linker='AIX lib.a(lib.so.V)'
10546 # We preserve .a as extension for shared libraries through AIX4.2
10547 # and later when we are not doing run time linking.
10548 library_names_spec='$libname$release.a $libname.a'
10549 soname_spec='$libname$release$shared_ext$major'
10551 svr4,*) # full svr4 only
10552 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10553 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10554 # We do not specify a path in Import Files, so LIBPATH fires.
10555 shlibpath_overrides_runpath=yes
10557 *,yes) # both, prefer svr4
10558 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10559 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10560 # unpreferred sharedlib libNAME.a needs extra handling
10561 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10562 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10563 # We do not specify a path in Import Files, so LIBPATH fires.
10564 shlibpath_overrides_runpath=yes
10566 *,no) # both, prefer aix
10567 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10568 library_names_spec='$libname$release.a $libname.a'
10569 soname_spec='$libname$release$shared_ext$major'
10570 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10571 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10572 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10575 shlibpath_var=LIBPATH
10582 # Since July 2007 AmigaOS4 officially supports .so libraries.
10583 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10587 library_names_spec='$libname.ixlibrary $libname.a'
10588 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10589 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10595 library_names_spec='$libname$shared_ext'
10596 dynamic_linker="$host_os ld.so"
10597 shlibpath_var=LIBRARY_PATH
10601 version_type=linux # correct to gnu/linux during the next big refactor
10603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10604 soname_spec='$libname$release$shared_ext$major'
10605 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10606 shlibpath_var=LD_LIBRARY_PATH
10607 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10608 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10609 # the default ld.so.conf also contains /usr/contrib/lib and
10610 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10611 # libtool to hard-code these into programs
10614 cygwin* | mingw* | pw32* | cegcc*)
10615 version_type=windows
10620 case $GCC,$cc_basename in
10623 library_names_spec='$libname.dll.a'
10624 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10625 postinstall_cmds='base_file=`basename \$file`~
10626 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10627 dldir=$destdir/`dirname \$dlpath`~
10628 test -d \$dldir || mkdir -p \$dldir~
10629 $install_prog $dir/$dlname \$dldir/$dlname~
10630 chmod a+x \$dldir/$dlname~
10631 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10632 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10634 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10635 dlpath=$dir/\$dldll~
10637 shlibpath_overrides_runpath=yes
10641 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10642 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10644 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10647 # MinGW DLLs use traditional 'lib' prefix
10648 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10651 # pw32 DLLs use 'pw' prefix rather than 'lib'
10652 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10655 dynamic_linker='Win32 ld.exe'
10660 libname_spec='$name'
10661 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10662 library_names_spec='$libname.dll.lib'
10666 sys_lib_search_path_spec=
10669 for lt_path in $LIB
10672 # Let DOS variable expansion print the short 8.3 style file name.
10673 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10674 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10677 # Convert to MSYS style.
10678 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10681 # Convert to unix form, then to dos form, then back to unix form
10682 # but this time dos style (no spaces!) so that the unix form looks
10683 # like /cygdrive/c/PROGRA~1:/cygdr...
10684 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10685 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10686 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10689 sys_lib_search_path_spec=$LIB
10690 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10691 # It is most probably a Windows format PATH.
10692 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10694 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10696 # FIXME: find the short name or the path components, as spaces are
10697 # common. (e.g. "Program Files" -> "PROGRA~1")
10701 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10702 postinstall_cmds='base_file=`basename \$file`~
10703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10704 dldir=$destdir/`dirname \$dlpath`~
10705 test -d \$dldir || mkdir -p \$dldir~
10706 $install_prog $dir/$dlname \$dldir/$dlname'
10707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10708 dlpath=$dir/\$dldll~
10710 shlibpath_overrides_runpath=yes
10711 dynamic_linker='Win32 link.exe'
10715 # Assume MSVC wrapper
10716 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10717 dynamic_linker='Win32 ld.exe'
10720 # FIXME: first we should search . and the directory the executable is in
10724 darwin* | rhapsody*)
10725 dynamic_linker="$host_os dyld"
10726 version_type=darwin
10729 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10730 soname_spec='$libname$release$major$shared_ext'
10731 shlibpath_overrides_runpath=yes
10732 shlibpath_var=DYLD_LIBRARY_PATH
10733 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10735 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10736 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10740 version_type=linux # correct to gnu/linux during the next big refactor
10743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10744 soname_spec='$libname$release$shared_ext$major'
10745 shlibpath_var=LD_LIBRARY_PATH
10748 freebsd* | dragonfly*)
10749 # DragonFly does not have aout. When/if they implement a new
10750 # versioning mechanism, adjust this.
10751 if test -x /usr/bin/objformat; then
10752 objformat=`/usr/bin/objformat`
10755 freebsd[23].*) objformat=aout ;;
10756 *) objformat=elf ;;
10759 version_type=freebsd-$objformat
10760 case $version_type in
10762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10763 soname_spec='$libname$release$shared_ext$major'
10768 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10772 shlibpath_var=LD_LIBRARY_PATH
10775 shlibpath_overrides_runpath=yes
10777 freebsd3.[01]* | freebsdelf3.[01]*)
10778 shlibpath_overrides_runpath=yes
10779 hardcode_into_libs=yes
10781 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10782 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10783 shlibpath_overrides_runpath=no
10784 hardcode_into_libs=yes
10786 *) # from 4.6 on, and DragonFly
10787 shlibpath_overrides_runpath=yes
10788 hardcode_into_libs=yes
10794 version_type=linux # correct to gnu/linux during the next big refactor
10797 dynamic_linker="$host_os runtime_loader"
10798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10799 soname_spec='$libname$release$shared_ext$major'
10800 shlibpath_var=LIBRARY_PATH
10801 shlibpath_overrides_runpath=no
10802 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10803 hardcode_into_libs=yes
10806 hpux9* | hpux10* | hpux11*)
10807 # Give a soname corresponding to the major version so that dld.sl refuses to
10808 # link against other versions.
10815 hardcode_into_libs=yes
10816 dynamic_linker="$host_os dld.so"
10817 shlibpath_var=LD_LIBRARY_PATH
10818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10820 soname_spec='$libname$release$shared_ext$major'
10821 if test 32 = "$HPUX_IA64_MODE"; then
10822 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10823 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10825 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10826 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10831 hardcode_into_libs=yes
10832 dynamic_linker="$host_os dld.sl"
10833 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10836 soname_spec='$libname$release$shared_ext$major'
10837 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10842 dynamic_linker="$host_os dld.sl"
10843 shlibpath_var=SHLIB_PATH
10844 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10846 soname_spec='$libname$release$shared_ext$major'
10849 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10850 postinstall_cmds='chmod 555 $lib'
10851 # or fails outright, so override atomically:
10852 install_override_mode=555
10856 version_type=linux # correct to gnu/linux during the next big refactor
10859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10860 soname_spec='$libname$release$shared_ext$major'
10861 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 shlibpath_overrides_runpath=no
10864 hardcode_into_libs=yes
10867 irix5* | irix6* | nonstopux*)
10869 nonstopux*) version_type=nonstopux ;;
10871 if test yes = "$lt_cv_prog_gnu_ld"; then
10872 version_type=linux # correct to gnu/linux during the next big refactor
10879 soname_spec='$libname$release$shared_ext$major'
10880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10882 irix5* | nonstopux*)
10883 libsuff= shlibsuff=
10886 case $LD in # libtool.m4 will add one of these switches to LD
10887 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10888 libsuff= shlibsuff= libmagic=32-bit;;
10889 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10890 libsuff=32 shlibsuff=N32 libmagic=N32;;
10891 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10892 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10893 *) libsuff= shlibsuff= libmagic=never-match;;
10897 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10898 shlibpath_overrides_runpath=no
10899 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10900 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10901 hardcode_into_libs=yes
10904 # No shared lib support for Linux oldld, aout, or coff.
10905 linux*oldld* | linux*aout* | linux*coff*)
10910 version_type=none # Android doesn't support versioned libraries.
10913 library_names_spec='$libname$release$shared_ext'
10914 soname_spec='$libname$release$shared_ext'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 shlibpath_overrides_runpath=yes
10919 # This implies no fast_install, which is unacceptable.
10920 # Some rework will be needed to allow for fast_install
10921 # before this can be enabled.
10922 hardcode_into_libs=yes
10924 dynamic_linker='Android linker'
10925 # Don't embed -rpath directories since the linker doesn't support them.
10926 hardcode_libdir_flag_spec='-L$libdir'
10929 # This must be glibc/ELF.
10930 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10931 version_type=linux # correct to gnu/linux during the next big refactor
10934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10935 soname_spec='$libname$release$shared_ext$major'
10936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10937 shlibpath_var=LD_LIBRARY_PATH
10938 shlibpath_overrides_runpath=no
10940 # Some binutils ld are patched to set DT_RUNPATH
10941 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10942 $as_echo_n "(cached) " >&6
10944 lt_cv_shlibpath_overrides_runpath=no
10945 save_LDFLAGS=$LDFLAGS
10946 save_libdir=$libdir
10947 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10948 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10960 if ac_fn_c_try_link "$LINENO"; then :
10961 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10962 lt_cv_shlibpath_overrides_runpath=yes
10965 rm -f core conftest.err conftest.$ac_objext \
10966 conftest$ac_exeext conftest.$ac_ext
10967 LDFLAGS=$save_LDFLAGS
10968 libdir=$save_libdir
10972 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10974 # This implies no fast_install, which is unacceptable.
10975 # Some rework will be needed to allow for fast_install
10976 # before this can be enabled.
10977 hardcode_into_libs=yes
10979 # Ideally, we could use ldconfig to report *all* directores which are
10980 # searched for libraries, however this is still not possible. Aside from not
10981 # being certain /sbin/ldconfig is available, command
10982 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10983 # even though it is searched at run-time. Try to do the best guess by
10984 # appending ld.so.conf contents (and includes) to the search path.
10985 if test -f /etc/ld.so.conf; then
10986 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' ' '`
10987 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10990 # We used to test for /lib/ld.so.1 and disable shared libraries on
10991 # powerpc, because MkLinux only supported shared libraries with the
10992 # GNU dynamic linker. Since this was broken with cross compilers,
10993 # most powerpc-linux boxes support dynamic linking these days and
10994 # people can always --disable-shared, the test was removed, and we
10995 # assume the GNU/Linux dynamic linker is in use.
10996 dynamic_linker='GNU/Linux ld.so'
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11004 soname_spec='${libname}${release}${shared_ext}$major'
11005 shlibpath_var=LD_LIBRARY_PATH
11006 shlibpath_overrides_runpath=no
11007 hardcode_into_libs=yes
11008 dynamic_linker='NetBSD ld.elf_so'
11015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11016 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11018 dynamic_linker='NetBSD (a.out) ld.so'
11020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11021 soname_spec='$libname$release$shared_ext$major'
11022 dynamic_linker='NetBSD ld.elf_so'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=yes
11026 hardcode_into_libs=yes
11030 version_type=linux # correct to gnu/linux during the next big refactor
11031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 shlibpath_overrides_runpath=yes
11040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11041 soname_spec='$libname$release$shared_ext$major'
11042 shlibpath_var=LD_LIBRARY_PATH
11043 shlibpath_overrides_runpath=no
11044 hardcode_into_libs=yes
11045 dynamic_linker='ldqnx.so'
11048 openbsd* | bitrig*)
11050 sys_lib_dlsearch_path_spec=/usr/lib
11052 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11057 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 shlibpath_overrides_runpath=yes
11064 libname_spec='$name'
11065 version_type=windows
11069 # OS/2 can only load a DLL with a base name of 8 characters or less.
11070 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11071 v=$($ECHO $release$versuffix | tr -d .-);
11072 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11073 $ECHO $n$v`$shared_ext'
11074 library_names_spec='${libname}_dll.$libext'
11075 dynamic_linker='OS/2 ld.exe'
11076 shlibpath_var=BEGINLIBPATH
11077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11079 postinstall_cmds='base_file=`basename \$file`~
11080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11081 dldir=$destdir/`dirname \$dlpath`~
11082 test -d \$dldir || mkdir -p \$dldir~
11083 $install_prog $dir/$dlname \$dldir/$dlname~
11084 chmod a+x \$dldir/$dlname~
11085 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11086 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11089 dlpath=$dir/\$dldll~
11093 osf3* | osf4* | osf5*)
11097 soname_spec='$libname$release$shared_ext$major'
11098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11099 shlibpath_var=LD_LIBRARY_PATH
11100 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11109 version_type=linux # correct to gnu/linux during the next big refactor
11112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11113 soname_spec='$libname$release$shared_ext$major'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=yes
11116 hardcode_into_libs=yes
11117 # ldd complains unless libraries are executable
11118 postinstall_cmds='chmod +x $lib'
11123 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11124 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=yes
11127 if test yes = "$with_gnu_ld"; then
11134 version_type=linux # correct to gnu/linux during the next big refactor
11135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11136 soname_spec='$libname$release$shared_ext$major'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 case $host_vendor in
11140 shlibpath_overrides_runpath=no
11142 runpath_var=LD_RUN_PATH
11150 shlibpath_overrides_runpath=no
11151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11157 if test -d /usr/nec; then
11158 version_type=linux # correct to gnu/linux during the next big refactor
11159 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11160 soname_spec='$libname$shared_ext.$major'
11161 shlibpath_var=LD_LIBRARY_PATH
11165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11170 soname_spec='$libname$release$shared_ext$major'
11171 shlibpath_var=LD_LIBRARY_PATH
11172 shlibpath_overrides_runpath=yes
11173 hardcode_into_libs=yes
11174 if test yes = "$with_gnu_ld"; then
11175 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11184 sys_lib_dlsearch_path_spec='/usr/lib'
11188 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11189 version_type=linux # correct to gnu/linux during the next big refactor
11192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 shlibpath_overrides_runpath=no
11195 hardcode_into_libs=yes
11199 version_type=linux # correct to gnu/linux during the next big refactor
11200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11201 soname_spec='$libname$release$shared_ext$major'
11202 shlibpath_var=LD_LIBRARY_PATH
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11210 $as_echo "$dynamic_linker" >&6; }
11211 test no = "$dynamic_linker" && can_build_shared=no
11213 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11214 if test yes = "$GCC"; then
11215 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11218 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11219 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11222 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11223 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11226 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11227 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11229 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11230 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11232 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11233 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11332 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11334 if test -n "$hardcode_libdir_flag_spec" ||
11335 test -n "$runpath_var" ||
11336 test yes = "$hardcode_automatic"; then
11338 # We can hardcode non-existent directories.
11339 if test no != "$hardcode_direct" &&
11340 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11341 # have to relink, otherwise we might link with an installed library
11342 # when we should be linking with a yet-to-be-installed one
11343 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11344 test no != "$hardcode_minus_L"; then
11345 # Linking always hardcodes the temporary library directory.
11346 hardcode_action=relink
11348 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11349 hardcode_action=immediate
11352 # We cannot hardcode anything, or else we can only hardcode existing
11354 hardcode_action=unsupported
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11357 $as_echo "$hardcode_action" >&6; }
11359 if test relink = "$hardcode_action" ||
11360 test yes = "$inherit_rpath"; then
11361 # Fast installation is not supported
11362 enable_fast_install=no
11363 elif test yes = "$shlibpath_overrides_runpath" ||
11364 test no = "$enable_shared"; then
11365 # Fast installation is not necessary
11366 enable_fast_install=needless
11374 if test yes != "$enable_dlopen"; then
11375 enable_dlopen=unknown
11376 enable_dlopen_self=unknown
11377 enable_dlopen_self_static=unknown
11384 lt_cv_dlopen=load_add_on
11386 lt_cv_dlopen_self=yes
11389 mingw* | pw32* | cegcc*)
11390 lt_cv_dlopen=LoadLibrary
11395 lt_cv_dlopen=dlopen
11400 # if libdl is installed we need to link against it
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11402 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11403 if ${ac_cv_lib_dl_dlopen+:} false; then :
11404 $as_echo_n "(cached) " >&6
11406 ac_check_lib_save_LIBS=$LIBS
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h. */
11411 /* Override any GCC internal prototype to avoid an error.
11412 Use char because int might match the return type of a GCC
11413 builtin and then its argument prototype would still apply. */
11426 if ac_fn_c_try_link "$LINENO"; then :
11427 ac_cv_lib_dl_dlopen=yes
11429 ac_cv_lib_dl_dlopen=no
11431 rm -f core conftest.err conftest.$ac_objext \
11432 conftest$ac_exeext conftest.$ac_ext
11433 LIBS=$ac_check_lib_save_LIBS
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11436 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11437 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11438 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11443 lt_cv_dlopen_self=yes
11450 # Don't try to run any link tests for TPF. We know it's impossible
11451 # because TPF is a cross-compiler, and we know how we open DSOs.
11452 lt_cv_dlopen=dlopen
11454 lt_cv_dlopen_self=no
11458 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11459 if test "x$ac_cv_func_shl_load" = xyes; then :
11460 lt_cv_dlopen=shl_load
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11463 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11464 if ${ac_cv_lib_dld_shl_load+:} false; then :
11465 $as_echo_n "(cached) " >&6
11467 ac_check_lib_save_LIBS=$LIBS
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11472 /* Override any GCC internal prototype to avoid an error.
11473 Use char because int might match the return type of a GCC
11474 builtin and then its argument prototype would still apply. */
11482 return shl_load ();
11487 if ac_fn_c_try_link "$LINENO"; then :
11488 ac_cv_lib_dld_shl_load=yes
11490 ac_cv_lib_dld_shl_load=no
11492 rm -f core conftest.err conftest.$ac_objext \
11493 conftest$ac_exeext conftest.$ac_ext
11494 LIBS=$ac_check_lib_save_LIBS
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11497 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11498 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11499 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11501 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11502 if test "x$ac_cv_func_dlopen" = xyes; then :
11503 lt_cv_dlopen=dlopen
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11506 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11507 if ${ac_cv_lib_dl_dlopen+:} false; then :
11508 $as_echo_n "(cached) " >&6
11510 ac_check_lib_save_LIBS=$LIBS
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h. */
11515 /* Override any GCC internal prototype to avoid an error.
11516 Use char because int might match the return type of a GCC
11517 builtin and then its argument prototype would still apply. */
11530 if ac_fn_c_try_link "$LINENO"; then :
11531 ac_cv_lib_dl_dlopen=yes
11533 ac_cv_lib_dl_dlopen=no
11535 rm -f core conftest.err conftest.$ac_objext \
11536 conftest$ac_exeext conftest.$ac_ext
11537 LIBS=$ac_check_lib_save_LIBS
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11540 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11541 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11542 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11545 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11546 if ${ac_cv_lib_svld_dlopen+:} false; then :
11547 $as_echo_n "(cached) " >&6
11549 ac_check_lib_save_LIBS=$LIBS
11550 LIBS="-lsvld $LIBS"
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h. */
11554 /* Override any GCC internal prototype to avoid an error.
11555 Use char because int might match the return type of a GCC
11556 builtin and then its argument prototype would still apply. */
11569 if ac_fn_c_try_link "$LINENO"; then :
11570 ac_cv_lib_svld_dlopen=yes
11572 ac_cv_lib_svld_dlopen=no
11574 rm -f core conftest.err conftest.$ac_objext \
11575 conftest$ac_exeext conftest.$ac_ext
11576 LIBS=$ac_check_lib_save_LIBS
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11579 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11580 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11581 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11584 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11585 if ${ac_cv_lib_dld_dld_link+:} false; then :
11586 $as_echo_n "(cached) " >&6
11588 ac_check_lib_save_LIBS=$LIBS
11590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591 /* end confdefs.h. */
11593 /* Override any GCC internal prototype to avoid an error.
11594 Use char because int might match the return type of a GCC
11595 builtin and then its argument prototype would still apply. */
11603 return dld_link ();
11608 if ac_fn_c_try_link "$LINENO"; then :
11609 ac_cv_lib_dld_dld_link=yes
11611 ac_cv_lib_dld_dld_link=no
11613 rm -f core conftest.err conftest.$ac_objext \
11614 conftest$ac_exeext conftest.$ac_ext
11615 LIBS=$ac_check_lib_save_LIBS
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11618 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11619 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11620 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11641 if test no = "$lt_cv_dlopen"; then
11647 case $lt_cv_dlopen in
11649 save_CPPFLAGS=$CPPFLAGS
11650 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11652 save_LDFLAGS=$LDFLAGS
11653 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11656 LIBS="$lt_cv_dlopen_libs $LIBS"
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11659 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11660 if ${lt_cv_dlopen_self+:} false; then :
11661 $as_echo_n "(cached) " >&6
11663 if test yes = "$cross_compiling"; then :
11664 lt_cv_dlopen_self=cross
11666 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11667 lt_status=$lt_dlunknown
11668 cat > conftest.$ac_ext <<_LT_EOF
11669 #line $LINENO "configure"
11670 #include "confdefs.h"
11679 # define LT_DLGLOBAL RTLD_GLOBAL
11682 # define LT_DLGLOBAL DL_GLOBAL
11684 # define LT_DLGLOBAL 0
11688 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11689 find out it does not work in some platform. */
11690 #ifndef LT_DLLAZY_OR_NOW
11692 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11695 # define LT_DLLAZY_OR_NOW DL_LAZY
11698 # define LT_DLLAZY_OR_NOW RTLD_NOW
11701 # define LT_DLLAZY_OR_NOW DL_NOW
11703 # define LT_DLLAZY_OR_NOW 0
11710 /* When -fvisibility=hidden is used, assume the code has been annotated
11711 correspondingly for the symbols needed. */
11712 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11713 int fnord () __attribute__((visibility("default")));
11716 int fnord () { return 42; }
11719 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11720 int status = $lt_dlunknown;
11724 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11727 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11728 else puts (dlerror ());
11730 /* dlclose (self); */
11738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11739 (eval $ac_link) 2>&5
11741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11742 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11743 (./conftest; exit; ) >&5 2>/dev/null
11745 case x$lt_status in
11746 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11747 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11748 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11751 # compilation failed
11752 lt_cv_dlopen_self=no
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11760 $as_echo "$lt_cv_dlopen_self" >&6; }
11762 if test yes = "$lt_cv_dlopen_self"; then
11763 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11765 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11766 if ${lt_cv_dlopen_self_static+:} false; then :
11767 $as_echo_n "(cached) " >&6
11769 if test yes = "$cross_compiling"; then :
11770 lt_cv_dlopen_self_static=cross
11772 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11773 lt_status=$lt_dlunknown
11774 cat > conftest.$ac_ext <<_LT_EOF
11775 #line $LINENO "configure"
11776 #include "confdefs.h"
11785 # define LT_DLGLOBAL RTLD_GLOBAL
11788 # define LT_DLGLOBAL DL_GLOBAL
11790 # define LT_DLGLOBAL 0
11794 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11795 find out it does not work in some platform. */
11796 #ifndef LT_DLLAZY_OR_NOW
11798 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11801 # define LT_DLLAZY_OR_NOW DL_LAZY
11804 # define LT_DLLAZY_OR_NOW RTLD_NOW
11807 # define LT_DLLAZY_OR_NOW DL_NOW
11809 # define LT_DLLAZY_OR_NOW 0
11816 /* When -fvisibility=hidden is used, assume the code has been annotated
11817 correspondingly for the symbols needed. */
11818 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11819 int fnord () __attribute__((visibility("default")));
11822 int fnord () { return 42; }
11825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11826 int status = $lt_dlunknown;
11830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11833 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11834 else puts (dlerror ());
11836 /* dlclose (self); */
11844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11845 (eval $ac_link) 2>&5
11847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11848 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11849 (./conftest; exit; ) >&5 2>/dev/null
11851 case x$lt_status in
11852 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11853 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11854 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11857 # compilation failed
11858 lt_cv_dlopen_self_static=no
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11866 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11869 CPPFLAGS=$save_CPPFLAGS
11870 LDFLAGS=$save_LDFLAGS
11875 case $lt_cv_dlopen_self in
11876 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11877 *) enable_dlopen_self=unknown ;;
11880 case $lt_cv_dlopen_self_static in
11881 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11882 *) enable_dlopen_self_static=unknown ;;
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11905 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11906 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11907 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11908 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11910 $as_echo "yes" >&6; }
11912 # FIXME - insert some real tests, host_os isn't really good enough
11915 if test -n "$STRIP"; then
11916 striplib="$STRIP -x"
11917 old_striplib="$STRIP -S"
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11919 $as_echo "yes" >&6; }
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922 $as_echo "no" >&6; }
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11943 # Report what library types will actually be built
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11945 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11947 $as_echo "$can_build_shared" >&6; }
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11950 $as_echo_n "checking whether to build shared libraries... " >&6; }
11951 test no = "$can_build_shared" && enable_shared=no
11953 # On AIX, shared libraries and static libraries use the same namespace, and
11954 # are all built from PIC.
11957 test yes = "$enable_shared" && enable_static=no
11958 if test -n "$RANLIB"; then
11959 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11960 postinstall_cmds='$RANLIB $lib'
11965 if test ia64 != "$host_cpu"; then
11966 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11967 yes,aix,yes) ;; # shared object as lib.so file only
11968 yes,svr4,*) ;; # shared object as lib.so archive member only
11969 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11975 $as_echo "$enable_shared" >&6; }
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11978 $as_echo_n "checking whether to build static libraries... " >&6; }
11979 # Make sure either enable_shared or enable_static is yes.
11980 test yes = "$enable_shared" || enable_static=yes
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11982 $as_echo "$enable_static" >&6; }
11989 ac_cpp='$CPP $CPPFLAGS'
11990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12010 ac_config_commands="$ac_config_commands libtool"
12015 # Only expand once:
12019 # Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12032 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12033 if ${ac_cv_prog_cc_c99+:} false; then :
12034 $as_echo_n "(cached) " >&6
12036 ac_cv_prog_cc_c99=no
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12040 #include <stdarg.h>
12041 #include <stdbool.h>
12042 #include <stdlib.h>
12046 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12047 #define debug(...) fprintf (stderr, __VA_ARGS__)
12048 #define showlist(...) puts (#__VA_ARGS__)
12049 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12051 test_varargs_macros (void)
12056 debug ("X = %d\n", x);
12057 showlist (The first, second, and third items.);
12058 report (x>y, "x is %d but y is %d", x, y);
12061 // Check long long types.
12062 #define BIG64 18446744073709551615ull
12063 #define BIG32 4294967295ul
12064 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12066 your preprocessor is broken;
12070 your preprocessor is broken;
12072 static long long int bignum = -9223372036854775807LL;
12073 static unsigned long long int ubignum = BIG64;
12075 struct incomplete_array
12081 struct named_init {
12083 const wchar_t *name;
12087 typedef const char *ccp;
12090 test_restrict (ccp restrict text)
12092 // See if C++-style comments work.
12093 // Iterate through items via the restricted pointer.
12094 // Also check for declarations in for loops.
12095 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12100 // Check varargs and va_copy.
12102 test_varargs (const char *format, ...)
12105 va_start (args, format);
12107 va_copy (args_copy, args);
12117 case 's': // string
12118 str = va_arg (args_copy, const char *);
12121 number = va_arg (args_copy, int);
12124 fnumber = va_arg (args_copy, double);
12130 va_end (args_copy);
12139 _Bool success = false;
12142 if (test_restrict ("String literal") == 0)
12144 char *restrict newvar = "Another string";
12147 test_varargs ("s, d' f .", "string", 65, 34.234);
12148 test_varargs_macros ();
12150 // Check flexible array members.
12151 struct incomplete_array *ia =
12152 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12154 for (int i = 0; i < ia->datasize; ++i)
12155 ia->data[i] = i * 1.234;
12157 // Check named initializers.
12158 struct named_init ni = {
12160 .name = L"Test wide string",
12161 .average = 543.34343,
12166 int dynamic_array[ni.number];
12167 dynamic_array[ni.number - 1] = 543;
12169 // work around unused variable warnings
12170 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12171 || dynamic_array[ni.number - 1] != 543);
12177 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12179 CC="$ac_save_CC $ac_arg"
12180 if ac_fn_c_try_compile "$LINENO"; then :
12181 ac_cv_prog_cc_c99=$ac_arg
12183 rm -f core conftest.err conftest.$ac_objext
12184 test "x$ac_cv_prog_cc_c99" != "xno" && break
12186 rm -f conftest.$ac_ext
12191 case "x$ac_cv_prog_cc_c99" in
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12194 $as_echo "none needed" >&6; } ;;
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12197 $as_echo "unsupported" >&6; } ;;
12199 CC="$CC $ac_cv_prog_cc_c99"
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12201 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12203 if test "x$ac_cv_prog_cc_c99" != xno; then :
12212 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12213 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12219 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12220 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12226 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12227 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12241 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12242 if test -n "$ac_tool_prefix"; then
12243 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12244 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246 $as_echo_n "checking for $ac_word... " >&6; }
12247 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12248 $as_echo_n "(cached) " >&6
12250 case $PKG_CONFIG in
12252 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12262 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12274 if test -n "$PKG_CONFIG"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12276 $as_echo "$PKG_CONFIG" >&6; }
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279 $as_echo "no" >&6; }
12284 if test -z "$ac_cv_path_PKG_CONFIG"; then
12285 ac_pt_PKG_CONFIG=$PKG_CONFIG
12286 # Extract the first word of "pkg-config", so it can be a program name with args.
12287 set dummy pkg-config; ac_word=$2
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12289 $as_echo_n "checking for $ac_word... " >&6; }
12290 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12291 $as_echo_n "(cached) " >&6
12293 case $ac_pt_PKG_CONFIG in
12295 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299 for as_dir in $PATH
12302 test -z "$as_dir" && as_dir=.
12303 for ac_exec_ext in '' $ac_executable_extensions; do
12304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12305 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12316 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12317 if test -n "$ac_pt_PKG_CONFIG"; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12319 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12325 if test "x$ac_pt_PKG_CONFIG" = x; then
12328 case $cross_compiling:$ac_tool_warned in
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12332 ac_tool_warned=yes ;;
12334 PKG_CONFIG=$ac_pt_PKG_CONFIG
12337 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12341 if test -n "$PKG_CONFIG"; then
12342 _pkg_min_version=0.9.0
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12344 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12345 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12347 $as_echo "yes" >&6; }
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350 $as_echo "no" >&6; }
12359 # Check whether --enable-selective-werror was given.
12360 if test "${enable_selective_werror+set}" = set; then :
12361 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12363 SELECTIVE_WERROR=yes
12370 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12371 if test "x$SUNCC" = "xyes"; then
12377 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12391 xorg_testset_save_CFLAGS="$CFLAGS"
12393 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12396 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12397 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12398 $as_echo_n "(cached) " >&6
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12404 if ac_fn_c_try_compile "$LINENO"; then :
12405 xorg_cv_cc_flag_unknown_warning_option=yes
12407 xorg_cv_cc_flag_unknown_warning_option=no
12409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12412 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12414 CFLAGS="$xorg_testset_save_CFLAGS"
12417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12423 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12424 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12425 $as_echo_n "(cached) " >&6
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12431 if ac_fn_c_try_compile "$LINENO"; then :
12432 xorg_cv_cc_flag_unused_command_line_argument=yes
12434 xorg_cv_cc_flag_unused_command_line_argument=no
12436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12439 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12441 CFLAGS="$xorg_testset_save_CFLAGS"
12446 if test $found = "no" ; then
12447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12455 CFLAGS="$CFLAGS -Wall"
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12458 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12459 cacheid=xorg_cv_cc_flag__Wall
12460 if eval \${$cacheid+:} false; then :
12461 $as_echo_n "(cached) " >&6
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12474 if ac_fn_c_try_link "$LINENO"; then :
12479 rm -f core conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
12484 CFLAGS="$xorg_testset_save_CFLAGS"
12486 eval supported=\$$cacheid
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12488 $as_echo "$supported" >&6; }
12489 if test "$supported" = "yes" ; then
12490 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12509 xorg_testset_save_CFLAGS="$CFLAGS"
12511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12514 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12515 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12516 $as_echo_n "(cached) " >&6
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12522 if ac_fn_c_try_compile "$LINENO"; then :
12523 xorg_cv_cc_flag_unknown_warning_option=yes
12525 xorg_cv_cc_flag_unknown_warning_option=no
12527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12530 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12532 CFLAGS="$xorg_testset_save_CFLAGS"
12535 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12541 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12542 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12543 $as_echo_n "(cached) " >&6
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12549 if ac_fn_c_try_compile "$LINENO"; then :
12550 xorg_cv_cc_flag_unused_command_line_argument=yes
12552 xorg_cv_cc_flag_unused_command_line_argument=no
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12557 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12559 CFLAGS="$xorg_testset_save_CFLAGS"
12564 if test $found = "no" ; then
12565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12573 CFLAGS="$CFLAGS -Wpointer-arith"
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12576 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12577 cacheid=xorg_cv_cc_flag__Wpointer_arith
12578 if eval \${$cacheid+:} false; then :
12579 $as_echo_n "(cached) " >&6
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12592 if ac_fn_c_try_link "$LINENO"; then :
12597 rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12602 CFLAGS="$xorg_testset_save_CFLAGS"
12604 eval supported=\$$cacheid
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12606 $as_echo "$supported" >&6; }
12607 if test "$supported" = "yes" ; then
12608 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12627 xorg_testset_save_CFLAGS="$CFLAGS"
12629 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12632 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12633 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12634 $as_echo_n "(cached) " >&6
12636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h. */
12640 if ac_fn_c_try_compile "$LINENO"; then :
12641 xorg_cv_cc_flag_unknown_warning_option=yes
12643 xorg_cv_cc_flag_unknown_warning_option=no
12645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12648 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12650 CFLAGS="$xorg_testset_save_CFLAGS"
12653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12659 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12660 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12661 $as_echo_n "(cached) " >&6
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h. */
12667 if ac_fn_c_try_compile "$LINENO"; then :
12668 xorg_cv_cc_flag_unused_command_line_argument=yes
12670 xorg_cv_cc_flag_unused_command_line_argument=no
12672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12675 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12677 CFLAGS="$xorg_testset_save_CFLAGS"
12682 if test $found = "no" ; then
12683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12691 CFLAGS="$CFLAGS -Wmissing-declarations"
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12694 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12695 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12696 if eval \${$cacheid+:} false; then :
12697 $as_echo_n "(cached) " >&6
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12710 if ac_fn_c_try_link "$LINENO"; then :
12715 rm -f core conftest.err conftest.$ac_objext \
12716 conftest$ac_exeext conftest.$ac_ext
12720 CFLAGS="$xorg_testset_save_CFLAGS"
12722 eval supported=\$$cacheid
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12724 $as_echo "$supported" >&6; }
12725 if test "$supported" = "yes" ; then
12726 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12745 xorg_testset_save_CFLAGS="$CFLAGS"
12747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12750 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12751 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12752 $as_echo_n "(cached) " >&6
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12758 if ac_fn_c_try_compile "$LINENO"; then :
12759 xorg_cv_cc_flag_unknown_warning_option=yes
12761 xorg_cv_cc_flag_unknown_warning_option=no
12763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12766 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12768 CFLAGS="$xorg_testset_save_CFLAGS"
12771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12777 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12778 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12779 $as_echo_n "(cached) " >&6
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12785 if ac_fn_c_try_compile "$LINENO"; then :
12786 xorg_cv_cc_flag_unused_command_line_argument=yes
12788 xorg_cv_cc_flag_unused_command_line_argument=no
12790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12793 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12795 CFLAGS="$xorg_testset_save_CFLAGS"
12800 if test $found = "no" ; then
12801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12809 CFLAGS="$CFLAGS -Wformat=2"
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12812 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12813 cacheid=xorg_cv_cc_flag__Wformat_2
12814 if eval \${$cacheid+:} false; then :
12815 $as_echo_n "(cached) " >&6
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12828 if ac_fn_c_try_link "$LINENO"; then :
12833 rm -f core conftest.err conftest.$ac_objext \
12834 conftest$ac_exeext conftest.$ac_ext
12838 CFLAGS="$xorg_testset_save_CFLAGS"
12840 eval supported=\$$cacheid
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12842 $as_echo "$supported" >&6; }
12843 if test "$supported" = "yes" ; then
12844 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12849 if test $found = "no" ; then
12850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12858 CFLAGS="$CFLAGS -Wformat"
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12861 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12862 cacheid=xorg_cv_cc_flag__Wformat
12863 if eval \${$cacheid+:} false; then :
12864 $as_echo_n "(cached) " >&6
12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12877 if ac_fn_c_try_link "$LINENO"; then :
12882 rm -f core conftest.err conftest.$ac_objext \
12883 conftest$ac_exeext conftest.$ac_ext
12887 CFLAGS="$xorg_testset_save_CFLAGS"
12889 eval supported=\$$cacheid
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12891 $as_echo "$supported" >&6; }
12892 if test "$supported" = "yes" ; then
12893 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12914 xorg_testset_save_CFLAGS="$CFLAGS"
12916 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12919 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12920 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12921 $as_echo_n "(cached) " >&6
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12927 if ac_fn_c_try_compile "$LINENO"; then :
12928 xorg_cv_cc_flag_unknown_warning_option=yes
12930 xorg_cv_cc_flag_unknown_warning_option=no
12932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12935 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12937 CFLAGS="$xorg_testset_save_CFLAGS"
12940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12946 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12947 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12948 $as_echo_n "(cached) " >&6
12950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12954 if ac_fn_c_try_compile "$LINENO"; then :
12955 xorg_cv_cc_flag_unused_command_line_argument=yes
12957 xorg_cv_cc_flag_unused_command_line_argument=no
12959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12962 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12964 CFLAGS="$xorg_testset_save_CFLAGS"
12969 if test $found = "no" ; then
12970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12978 CFLAGS="$CFLAGS -Wstrict-prototypes"
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12981 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12982 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12983 if eval \${$cacheid+:} false; then :
12984 $as_echo_n "(cached) " >&6
12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h. */
12997 if ac_fn_c_try_link "$LINENO"; then :
13002 rm -f core conftest.err conftest.$ac_objext \
13003 conftest$ac_exeext conftest.$ac_ext
13007 CFLAGS="$xorg_testset_save_CFLAGS"
13009 eval supported=\$$cacheid
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13011 $as_echo "$supported" >&6; }
13012 if test "$supported" = "yes" ; then
13013 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13032 xorg_testset_save_CFLAGS="$CFLAGS"
13034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13037 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13038 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13039 $as_echo_n "(cached) " >&6
13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042 /* end confdefs.h. */
13045 if ac_fn_c_try_compile "$LINENO"; then :
13046 xorg_cv_cc_flag_unknown_warning_option=yes
13048 xorg_cv_cc_flag_unknown_warning_option=no
13050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13053 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13055 CFLAGS="$xorg_testset_save_CFLAGS"
13058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13064 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13065 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13066 $as_echo_n "(cached) " >&6
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13072 if ac_fn_c_try_compile "$LINENO"; then :
13073 xorg_cv_cc_flag_unused_command_line_argument=yes
13075 xorg_cv_cc_flag_unused_command_line_argument=no
13077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13080 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13082 CFLAGS="$xorg_testset_save_CFLAGS"
13087 if test $found = "no" ; then
13088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13096 CFLAGS="$CFLAGS -Wmissing-prototypes"
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13099 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13100 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13101 if eval \${$cacheid+:} false; then :
13102 $as_echo_n "(cached) " >&6
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13115 if ac_fn_c_try_link "$LINENO"; then :
13120 rm -f core conftest.err conftest.$ac_objext \
13121 conftest$ac_exeext conftest.$ac_ext
13125 CFLAGS="$xorg_testset_save_CFLAGS"
13127 eval supported=\$$cacheid
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13129 $as_echo "$supported" >&6; }
13130 if test "$supported" = "yes" ; then
13131 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13150 xorg_testset_save_CFLAGS="$CFLAGS"
13152 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13155 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13156 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13157 $as_echo_n "(cached) " >&6
13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13163 if ac_fn_c_try_compile "$LINENO"; then :
13164 xorg_cv_cc_flag_unknown_warning_option=yes
13166 xorg_cv_cc_flag_unknown_warning_option=no
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13171 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13173 CFLAGS="$xorg_testset_save_CFLAGS"
13176 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13182 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13183 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13184 $as_echo_n "(cached) " >&6
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13190 if ac_fn_c_try_compile "$LINENO"; then :
13191 xorg_cv_cc_flag_unused_command_line_argument=yes
13193 xorg_cv_cc_flag_unused_command_line_argument=no
13195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13198 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13200 CFLAGS="$xorg_testset_save_CFLAGS"
13205 if test $found = "no" ; then
13206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13214 CFLAGS="$CFLAGS -Wnested-externs"
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13217 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13218 cacheid=xorg_cv_cc_flag__Wnested_externs
13219 if eval \${$cacheid+:} false; then :
13220 $as_echo_n "(cached) " >&6
13222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13233 if ac_fn_c_try_link "$LINENO"; then :
13238 rm -f core conftest.err conftest.$ac_objext \
13239 conftest$ac_exeext conftest.$ac_ext
13243 CFLAGS="$xorg_testset_save_CFLAGS"
13245 eval supported=\$$cacheid
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13247 $as_echo "$supported" >&6; }
13248 if test "$supported" = "yes" ; then
13249 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13268 xorg_testset_save_CFLAGS="$CFLAGS"
13270 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13273 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13274 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13275 $as_echo_n "(cached) " >&6
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13281 if ac_fn_c_try_compile "$LINENO"; then :
13282 xorg_cv_cc_flag_unknown_warning_option=yes
13284 xorg_cv_cc_flag_unknown_warning_option=no
13286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13289 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13291 CFLAGS="$xorg_testset_save_CFLAGS"
13294 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13300 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13301 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13302 $as_echo_n "(cached) " >&6
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13308 if ac_fn_c_try_compile "$LINENO"; then :
13309 xorg_cv_cc_flag_unused_command_line_argument=yes
13311 xorg_cv_cc_flag_unused_command_line_argument=no
13313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13316 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13318 CFLAGS="$xorg_testset_save_CFLAGS"
13323 if test $found = "no" ; then
13324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13332 CFLAGS="$CFLAGS -Wbad-function-cast"
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13335 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13336 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13337 if eval \${$cacheid+:} false; then :
13338 $as_echo_n "(cached) " >&6
13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341 /* end confdefs.h. */
13351 if ac_fn_c_try_link "$LINENO"; then :
13356 rm -f core conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13361 CFLAGS="$xorg_testset_save_CFLAGS"
13363 eval supported=\$$cacheid
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13365 $as_echo "$supported" >&6; }
13366 if test "$supported" = "yes" ; then
13367 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13386 xorg_testset_save_CFLAGS="$CFLAGS"
13388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13391 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13392 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13393 $as_echo_n "(cached) " >&6
13395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396 /* end confdefs.h. */
13399 if ac_fn_c_try_compile "$LINENO"; then :
13400 xorg_cv_cc_flag_unknown_warning_option=yes
13402 xorg_cv_cc_flag_unknown_warning_option=no
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13407 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13409 CFLAGS="$xorg_testset_save_CFLAGS"
13412 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13418 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13419 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13420 $as_echo_n "(cached) " >&6
13422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13423 /* end confdefs.h. */
13426 if ac_fn_c_try_compile "$LINENO"; then :
13427 xorg_cv_cc_flag_unused_command_line_argument=yes
13429 xorg_cv_cc_flag_unused_command_line_argument=no
13431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13434 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13436 CFLAGS="$xorg_testset_save_CFLAGS"
13441 if test $found = "no" ; then
13442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13450 CFLAGS="$CFLAGS -Wold-style-definition"
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13453 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13454 cacheid=xorg_cv_cc_flag__Wold_style_definition
13455 if eval \${$cacheid+:} false; then :
13456 $as_echo_n "(cached) " >&6
13458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h. */
13469 if ac_fn_c_try_link "$LINENO"; then :
13474 rm -f core conftest.err conftest.$ac_objext \
13475 conftest$ac_exeext conftest.$ac_ext
13479 CFLAGS="$xorg_testset_save_CFLAGS"
13481 eval supported=\$$cacheid
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13483 $as_echo "$supported" >&6; }
13484 if test "$supported" = "yes" ; then
13485 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13490 if test $found = "no" ; then
13491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13499 CFLAGS="$CFLAGS -fd"
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13502 $as_echo_n "checking if $CC supports -fd... " >&6; }
13503 cacheid=xorg_cv_cc_flag__fd
13504 if eval \${$cacheid+:} false; then :
13505 $as_echo_n "(cached) " >&6
13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h. */
13518 if ac_fn_c_try_link "$LINENO"; then :
13523 rm -f core conftest.err conftest.$ac_objext \
13524 conftest$ac_exeext conftest.$ac_ext
13528 CFLAGS="$xorg_testset_save_CFLAGS"
13530 eval supported=\$$cacheid
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13532 $as_echo "$supported" >&6; }
13533 if test "$supported" = "yes" ; then
13534 BASE_CFLAGS="$BASE_CFLAGS -fd"
13553 xorg_testset_save_CFLAGS="$CFLAGS"
13555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13558 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13559 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13560 $as_echo_n "(cached) " >&6
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13566 if ac_fn_c_try_compile "$LINENO"; then :
13567 xorg_cv_cc_flag_unknown_warning_option=yes
13569 xorg_cv_cc_flag_unknown_warning_option=no
13571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13574 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13576 CFLAGS="$xorg_testset_save_CFLAGS"
13579 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13585 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13586 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13587 $as_echo_n "(cached) " >&6
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13593 if ac_fn_c_try_compile "$LINENO"; then :
13594 xorg_cv_cc_flag_unused_command_line_argument=yes
13596 xorg_cv_cc_flag_unused_command_line_argument=no
13598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13601 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13603 CFLAGS="$xorg_testset_save_CFLAGS"
13608 if test $found = "no" ; then
13609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13617 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13620 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13621 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13622 if eval \${$cacheid+:} false; then :
13623 $as_echo_n "(cached) " >&6
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13636 if ac_fn_c_try_link "$LINENO"; then :
13641 rm -f core conftest.err conftest.$ac_objext \
13642 conftest$ac_exeext conftest.$ac_ext
13646 CFLAGS="$xorg_testset_save_CFLAGS"
13648 eval supported=\$$cacheid
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13650 $as_echo "$supported" >&6; }
13651 if test "$supported" = "yes" ; then
13652 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13661 # This chunk adds additional warnings that could catch undesired effects.
13675 xorg_testset_save_CFLAGS="$CFLAGS"
13677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13680 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13681 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13682 $as_echo_n "(cached) " >&6
13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h. */
13688 if ac_fn_c_try_compile "$LINENO"; then :
13689 xorg_cv_cc_flag_unknown_warning_option=yes
13691 xorg_cv_cc_flag_unknown_warning_option=no
13693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13696 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13698 CFLAGS="$xorg_testset_save_CFLAGS"
13701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13707 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13708 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13709 $as_echo_n "(cached) " >&6
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13715 if ac_fn_c_try_compile "$LINENO"; then :
13716 xorg_cv_cc_flag_unused_command_line_argument=yes
13718 xorg_cv_cc_flag_unused_command_line_argument=no
13720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13723 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13725 CFLAGS="$xorg_testset_save_CFLAGS"
13730 if test $found = "no" ; then
13731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13739 CFLAGS="$CFLAGS -Wunused"
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13742 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13743 cacheid=xorg_cv_cc_flag__Wunused
13744 if eval \${$cacheid+:} false; then :
13745 $as_echo_n "(cached) " >&6
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13758 if ac_fn_c_try_link "$LINENO"; then :
13763 rm -f core conftest.err conftest.$ac_objext \
13764 conftest$ac_exeext conftest.$ac_ext
13768 CFLAGS="$xorg_testset_save_CFLAGS"
13770 eval supported=\$$cacheid
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13772 $as_echo "$supported" >&6; }
13773 if test "$supported" = "yes" ; then
13774 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13793 xorg_testset_save_CFLAGS="$CFLAGS"
13795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13798 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13799 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13800 $as_echo_n "(cached) " >&6
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13806 if ac_fn_c_try_compile "$LINENO"; then :
13807 xorg_cv_cc_flag_unknown_warning_option=yes
13809 xorg_cv_cc_flag_unknown_warning_option=no
13811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13814 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13816 CFLAGS="$xorg_testset_save_CFLAGS"
13819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13825 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13826 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13827 $as_echo_n "(cached) " >&6
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13833 if ac_fn_c_try_compile "$LINENO"; then :
13834 xorg_cv_cc_flag_unused_command_line_argument=yes
13836 xorg_cv_cc_flag_unused_command_line_argument=no
13838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13841 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13843 CFLAGS="$xorg_testset_save_CFLAGS"
13848 if test $found = "no" ; then
13849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13857 CFLAGS="$CFLAGS -Wuninitialized"
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13860 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13861 cacheid=xorg_cv_cc_flag__Wuninitialized
13862 if eval \${$cacheid+:} false; then :
13863 $as_echo_n "(cached) " >&6
13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h. */
13876 if ac_fn_c_try_link "$LINENO"; then :
13881 rm -f core conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
13886 CFLAGS="$xorg_testset_save_CFLAGS"
13888 eval supported=\$$cacheid
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13890 $as_echo "$supported" >&6; }
13891 if test "$supported" = "yes" ; then
13892 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13911 xorg_testset_save_CFLAGS="$CFLAGS"
13913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13916 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13917 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13918 $as_echo_n "(cached) " >&6
13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h. */
13924 if ac_fn_c_try_compile "$LINENO"; then :
13925 xorg_cv_cc_flag_unknown_warning_option=yes
13927 xorg_cv_cc_flag_unknown_warning_option=no
13929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13932 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13934 CFLAGS="$xorg_testset_save_CFLAGS"
13937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13943 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13944 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13945 $as_echo_n "(cached) " >&6
13947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h. */
13951 if ac_fn_c_try_compile "$LINENO"; then :
13952 xorg_cv_cc_flag_unused_command_line_argument=yes
13954 xorg_cv_cc_flag_unused_command_line_argument=no
13956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13959 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13961 CFLAGS="$xorg_testset_save_CFLAGS"
13966 if test $found = "no" ; then
13967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13975 CFLAGS="$CFLAGS -Wshadow"
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13978 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13979 cacheid=xorg_cv_cc_flag__Wshadow
13980 if eval \${$cacheid+:} false; then :
13981 $as_echo_n "(cached) " >&6
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13994 if ac_fn_c_try_link "$LINENO"; then :
13999 rm -f core conftest.err conftest.$ac_objext \
14000 conftest$ac_exeext conftest.$ac_ext
14004 CFLAGS="$xorg_testset_save_CFLAGS"
14006 eval supported=\$$cacheid
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14008 $as_echo "$supported" >&6; }
14009 if test "$supported" = "yes" ; then
14010 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14029 xorg_testset_save_CFLAGS="$CFLAGS"
14031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14034 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14035 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14036 $as_echo_n "(cached) " >&6
14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */
14042 if ac_fn_c_try_compile "$LINENO"; then :
14043 xorg_cv_cc_flag_unknown_warning_option=yes
14045 xorg_cv_cc_flag_unknown_warning_option=no
14047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14050 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14052 CFLAGS="$xorg_testset_save_CFLAGS"
14055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14061 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14062 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14063 $as_echo_n "(cached) " >&6
14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h. */
14069 if ac_fn_c_try_compile "$LINENO"; then :
14070 xorg_cv_cc_flag_unused_command_line_argument=yes
14072 xorg_cv_cc_flag_unused_command_line_argument=no
14074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14077 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14079 CFLAGS="$xorg_testset_save_CFLAGS"
14084 if test $found = "no" ; then
14085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14093 CFLAGS="$CFLAGS -Wmissing-noreturn"
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14096 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14097 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14098 if eval \${$cacheid+:} false; then :
14099 $as_echo_n "(cached) " >&6
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14112 if ac_fn_c_try_link "$LINENO"; then :
14117 rm -f core conftest.err conftest.$ac_objext \
14118 conftest$ac_exeext conftest.$ac_ext
14122 CFLAGS="$xorg_testset_save_CFLAGS"
14124 eval supported=\$$cacheid
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14126 $as_echo "$supported" >&6; }
14127 if test "$supported" = "yes" ; then
14128 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14147 xorg_testset_save_CFLAGS="$CFLAGS"
14149 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14152 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14153 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14154 $as_echo_n "(cached) " >&6
14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157 /* end confdefs.h. */
14160 if ac_fn_c_try_compile "$LINENO"; then :
14161 xorg_cv_cc_flag_unknown_warning_option=yes
14163 xorg_cv_cc_flag_unknown_warning_option=no
14165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14168 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14170 CFLAGS="$xorg_testset_save_CFLAGS"
14173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14179 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14180 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14181 $as_echo_n "(cached) " >&6
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14187 if ac_fn_c_try_compile "$LINENO"; then :
14188 xorg_cv_cc_flag_unused_command_line_argument=yes
14190 xorg_cv_cc_flag_unused_command_line_argument=no
14192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14195 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14197 CFLAGS="$xorg_testset_save_CFLAGS"
14202 if test $found = "no" ; then
14203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14211 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14214 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14215 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14216 if eval \${$cacheid+:} false; then :
14217 $as_echo_n "(cached) " >&6
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14230 if ac_fn_c_try_link "$LINENO"; then :
14235 rm -f core conftest.err conftest.$ac_objext \
14236 conftest$ac_exeext conftest.$ac_ext
14240 CFLAGS="$xorg_testset_save_CFLAGS"
14242 eval supported=\$$cacheid
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14244 $as_echo "$supported" >&6; }
14245 if test "$supported" = "yes" ; then
14246 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14265 xorg_testset_save_CFLAGS="$CFLAGS"
14267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14270 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14271 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14272 $as_echo_n "(cached) " >&6
14274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14275 /* end confdefs.h. */
14278 if ac_fn_c_try_compile "$LINENO"; then :
14279 xorg_cv_cc_flag_unknown_warning_option=yes
14281 xorg_cv_cc_flag_unknown_warning_option=no
14283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14286 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14288 CFLAGS="$xorg_testset_save_CFLAGS"
14291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14297 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14298 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14299 $as_echo_n "(cached) " >&6
14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14305 if ac_fn_c_try_compile "$LINENO"; then :
14306 xorg_cv_cc_flag_unused_command_line_argument=yes
14308 xorg_cv_cc_flag_unused_command_line_argument=no
14310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14313 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14315 CFLAGS="$xorg_testset_save_CFLAGS"
14320 if test $found = "no" ; then
14321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14329 CFLAGS="$CFLAGS -Wredundant-decls"
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14332 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14333 cacheid=xorg_cv_cc_flag__Wredundant_decls
14334 if eval \${$cacheid+:} false; then :
14335 $as_echo_n "(cached) " >&6
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14348 if ac_fn_c_try_link "$LINENO"; then :
14353 rm -f core conftest.err conftest.$ac_objext \
14354 conftest$ac_exeext conftest.$ac_ext
14358 CFLAGS="$xorg_testset_save_CFLAGS"
14360 eval supported=\$$cacheid
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14362 $as_echo "$supported" >&6; }
14363 if test "$supported" = "yes" ; then
14364 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14383 xorg_testset_save_CFLAGS="$CFLAGS"
14385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14388 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14389 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14390 $as_echo_n "(cached) " >&6
14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h. */
14396 if ac_fn_c_try_compile "$LINENO"; then :
14397 xorg_cv_cc_flag_unknown_warning_option=yes
14399 xorg_cv_cc_flag_unknown_warning_option=no
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14404 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14406 CFLAGS="$xorg_testset_save_CFLAGS"
14409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14415 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14416 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14417 $as_echo_n "(cached) " >&6
14419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h. */
14423 if ac_fn_c_try_compile "$LINENO"; then :
14424 xorg_cv_cc_flag_unused_command_line_argument=yes
14426 xorg_cv_cc_flag_unused_command_line_argument=no
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14431 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14433 CFLAGS="$xorg_testset_save_CFLAGS"
14438 if test $found = "no" ; then
14439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14447 CFLAGS="$CFLAGS -Wlogical-op"
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14450 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14451 cacheid=xorg_cv_cc_flag__Wlogical_op
14452 if eval \${$cacheid+:} false; then :
14453 $as_echo_n "(cached) " >&6
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14466 if ac_fn_c_try_link "$LINENO"; then :
14471 rm -f core conftest.err conftest.$ac_objext \
14472 conftest$ac_exeext conftest.$ac_ext
14476 CFLAGS="$xorg_testset_save_CFLAGS"
14478 eval supported=\$$cacheid
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14480 $as_echo "$supported" >&6; }
14481 if test "$supported" = "yes" ; then
14482 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14489 # These are currently disabled because they are noisy. They will be enabled
14490 # in the future once the codebase is sufficiently modernized to silence
14491 # them. For now, I don't want them to drown out the other warnings.
14492 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14493 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14494 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14496 # Turn some warnings into errors, so we don't accidently get successful builds
14497 # when there are problems that should be fixed.
14499 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14513 xorg_testset_save_CFLAGS="$CFLAGS"
14515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14518 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14519 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14520 $as_echo_n "(cached) " >&6
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14526 if ac_fn_c_try_compile "$LINENO"; then :
14527 xorg_cv_cc_flag_unknown_warning_option=yes
14529 xorg_cv_cc_flag_unknown_warning_option=no
14531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14534 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14536 CFLAGS="$xorg_testset_save_CFLAGS"
14539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14545 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14546 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14547 $as_echo_n "(cached) " >&6
14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14553 if ac_fn_c_try_compile "$LINENO"; then :
14554 xorg_cv_cc_flag_unused_command_line_argument=yes
14556 xorg_cv_cc_flag_unused_command_line_argument=no
14558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14561 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14563 CFLAGS="$xorg_testset_save_CFLAGS"
14568 if test $found = "no" ; then
14569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14577 CFLAGS="$CFLAGS -Werror=implicit"
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14580 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14581 cacheid=xorg_cv_cc_flag__Werror_implicit
14582 if eval \${$cacheid+:} false; then :
14583 $as_echo_n "(cached) " >&6
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14596 if ac_fn_c_try_link "$LINENO"; then :
14601 rm -f core conftest.err conftest.$ac_objext \
14602 conftest$ac_exeext conftest.$ac_ext
14606 CFLAGS="$xorg_testset_save_CFLAGS"
14608 eval supported=\$$cacheid
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14610 $as_echo "$supported" >&6; }
14611 if test "$supported" = "yes" ; then
14612 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14617 if test $found = "no" ; then
14618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14626 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14629 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14630 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14631 if eval \${$cacheid+:} false; then :
14632 $as_echo_n "(cached) " >&6
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h. */
14645 if ac_fn_c_try_link "$LINENO"; then :
14650 rm -f core conftest.err conftest.$ac_objext \
14651 conftest$ac_exeext conftest.$ac_ext
14655 CFLAGS="$xorg_testset_save_CFLAGS"
14657 eval supported=\$$cacheid
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14659 $as_echo "$supported" >&6; }
14660 if test "$supported" = "yes" ; then
14661 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14680 xorg_testset_save_CFLAGS="$CFLAGS"
14682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14685 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14686 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14687 $as_echo_n "(cached) " >&6
14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14693 if ac_fn_c_try_compile "$LINENO"; then :
14694 xorg_cv_cc_flag_unknown_warning_option=yes
14696 xorg_cv_cc_flag_unknown_warning_option=no
14698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14701 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14703 CFLAGS="$xorg_testset_save_CFLAGS"
14706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14712 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14713 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14714 $as_echo_n "(cached) " >&6
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14720 if ac_fn_c_try_compile "$LINENO"; then :
14721 xorg_cv_cc_flag_unused_command_line_argument=yes
14723 xorg_cv_cc_flag_unused_command_line_argument=no
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14728 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14730 CFLAGS="$xorg_testset_save_CFLAGS"
14735 if test $found = "no" ; then
14736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14744 CFLAGS="$CFLAGS -Werror=nonnull"
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14747 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14748 cacheid=xorg_cv_cc_flag__Werror_nonnull
14749 if eval \${$cacheid+:} false; then :
14750 $as_echo_n "(cached) " >&6
14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14763 if ac_fn_c_try_link "$LINENO"; then :
14768 rm -f core conftest.err conftest.$ac_objext \
14769 conftest$ac_exeext conftest.$ac_ext
14773 CFLAGS="$xorg_testset_save_CFLAGS"
14775 eval supported=\$$cacheid
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14777 $as_echo "$supported" >&6; }
14778 if test "$supported" = "yes" ; then
14779 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14798 xorg_testset_save_CFLAGS="$CFLAGS"
14800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14803 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14804 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14805 $as_echo_n "(cached) " >&6
14807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h. */
14811 if ac_fn_c_try_compile "$LINENO"; then :
14812 xorg_cv_cc_flag_unknown_warning_option=yes
14814 xorg_cv_cc_flag_unknown_warning_option=no
14816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14819 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14821 CFLAGS="$xorg_testset_save_CFLAGS"
14824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14830 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14831 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14832 $as_echo_n "(cached) " >&6
14834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14835 /* end confdefs.h. */
14838 if ac_fn_c_try_compile "$LINENO"; then :
14839 xorg_cv_cc_flag_unused_command_line_argument=yes
14841 xorg_cv_cc_flag_unused_command_line_argument=no
14843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14846 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14848 CFLAGS="$xorg_testset_save_CFLAGS"
14853 if test $found = "no" ; then
14854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14862 CFLAGS="$CFLAGS -Werror=init-self"
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14865 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14866 cacheid=xorg_cv_cc_flag__Werror_init_self
14867 if eval \${$cacheid+:} false; then :
14868 $as_echo_n "(cached) " >&6
14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871 /* end confdefs.h. */
14881 if ac_fn_c_try_link "$LINENO"; then :
14886 rm -f core conftest.err conftest.$ac_objext \
14887 conftest$ac_exeext conftest.$ac_ext
14891 CFLAGS="$xorg_testset_save_CFLAGS"
14893 eval supported=\$$cacheid
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14895 $as_echo "$supported" >&6; }
14896 if test "$supported" = "yes" ; then
14897 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14916 xorg_testset_save_CFLAGS="$CFLAGS"
14918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14921 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14922 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14923 $as_echo_n "(cached) " >&6
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14929 if ac_fn_c_try_compile "$LINENO"; then :
14930 xorg_cv_cc_flag_unknown_warning_option=yes
14932 xorg_cv_cc_flag_unknown_warning_option=no
14934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14937 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14939 CFLAGS="$xorg_testset_save_CFLAGS"
14942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14948 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14949 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14950 $as_echo_n "(cached) " >&6
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14956 if ac_fn_c_try_compile "$LINENO"; then :
14957 xorg_cv_cc_flag_unused_command_line_argument=yes
14959 xorg_cv_cc_flag_unused_command_line_argument=no
14961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14964 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14966 CFLAGS="$xorg_testset_save_CFLAGS"
14971 if test $found = "no" ; then
14972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14980 CFLAGS="$CFLAGS -Werror=main"
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14983 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14984 cacheid=xorg_cv_cc_flag__Werror_main
14985 if eval \${$cacheid+:} false; then :
14986 $as_echo_n "(cached) " >&6
14988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989 /* end confdefs.h. */
14999 if ac_fn_c_try_link "$LINENO"; then :
15004 rm -f core conftest.err conftest.$ac_objext \
15005 conftest$ac_exeext conftest.$ac_ext
15009 CFLAGS="$xorg_testset_save_CFLAGS"
15011 eval supported=\$$cacheid
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15013 $as_echo "$supported" >&6; }
15014 if test "$supported" = "yes" ; then
15015 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15034 xorg_testset_save_CFLAGS="$CFLAGS"
15036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15039 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15040 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15041 $as_echo_n "(cached) " >&6
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15047 if ac_fn_c_try_compile "$LINENO"; then :
15048 xorg_cv_cc_flag_unknown_warning_option=yes
15050 xorg_cv_cc_flag_unknown_warning_option=no
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15055 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15057 CFLAGS="$xorg_testset_save_CFLAGS"
15060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15066 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15067 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15068 $as_echo_n "(cached) " >&6
15070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15071 /* end confdefs.h. */
15074 if ac_fn_c_try_compile "$LINENO"; then :
15075 xorg_cv_cc_flag_unused_command_line_argument=yes
15077 xorg_cv_cc_flag_unused_command_line_argument=no
15079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15082 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15084 CFLAGS="$xorg_testset_save_CFLAGS"
15089 if test $found = "no" ; then
15090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15098 CFLAGS="$CFLAGS -Werror=missing-braces"
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15101 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15102 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15103 if eval \${$cacheid+:} false; then :
15104 $as_echo_n "(cached) " >&6
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15117 if ac_fn_c_try_link "$LINENO"; then :
15122 rm -f core conftest.err conftest.$ac_objext \
15123 conftest$ac_exeext conftest.$ac_ext
15127 CFLAGS="$xorg_testset_save_CFLAGS"
15129 eval supported=\$$cacheid
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15131 $as_echo "$supported" >&6; }
15132 if test "$supported" = "yes" ; then
15133 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15152 xorg_testset_save_CFLAGS="$CFLAGS"
15154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15157 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15158 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15159 $as_echo_n "(cached) " >&6
15161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162 /* end confdefs.h. */
15165 if ac_fn_c_try_compile "$LINENO"; then :
15166 xorg_cv_cc_flag_unknown_warning_option=yes
15168 xorg_cv_cc_flag_unknown_warning_option=no
15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15173 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15175 CFLAGS="$xorg_testset_save_CFLAGS"
15178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15184 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15185 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15186 $as_echo_n "(cached) " >&6
15188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h. */
15192 if ac_fn_c_try_compile "$LINENO"; then :
15193 xorg_cv_cc_flag_unused_command_line_argument=yes
15195 xorg_cv_cc_flag_unused_command_line_argument=no
15197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15200 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15202 CFLAGS="$xorg_testset_save_CFLAGS"
15207 if test $found = "no" ; then
15208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15216 CFLAGS="$CFLAGS -Werror=sequence-point"
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15219 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15220 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15221 if eval \${$cacheid+:} false; then :
15222 $as_echo_n "(cached) " >&6
15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 /* end confdefs.h. */
15235 if ac_fn_c_try_link "$LINENO"; then :
15240 rm -f core conftest.err conftest.$ac_objext \
15241 conftest$ac_exeext conftest.$ac_ext
15245 CFLAGS="$xorg_testset_save_CFLAGS"
15247 eval supported=\$$cacheid
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15249 $as_echo "$supported" >&6; }
15250 if test "$supported" = "yes" ; then
15251 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15270 xorg_testset_save_CFLAGS="$CFLAGS"
15272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15275 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15276 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15277 $as_echo_n "(cached) " >&6
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15283 if ac_fn_c_try_compile "$LINENO"; then :
15284 xorg_cv_cc_flag_unknown_warning_option=yes
15286 xorg_cv_cc_flag_unknown_warning_option=no
15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15291 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15293 CFLAGS="$xorg_testset_save_CFLAGS"
15296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15302 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15303 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15304 $as_echo_n "(cached) " >&6
15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15310 if ac_fn_c_try_compile "$LINENO"; then :
15311 xorg_cv_cc_flag_unused_command_line_argument=yes
15313 xorg_cv_cc_flag_unused_command_line_argument=no
15315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15318 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15320 CFLAGS="$xorg_testset_save_CFLAGS"
15325 if test $found = "no" ; then
15326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15334 CFLAGS="$CFLAGS -Werror=return-type"
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15337 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15338 cacheid=xorg_cv_cc_flag__Werror_return_type
15339 if eval \${$cacheid+:} false; then :
15340 $as_echo_n "(cached) " >&6
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15353 if ac_fn_c_try_link "$LINENO"; then :
15358 rm -f core conftest.err conftest.$ac_objext \
15359 conftest$ac_exeext conftest.$ac_ext
15363 CFLAGS="$xorg_testset_save_CFLAGS"
15365 eval supported=\$$cacheid
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15367 $as_echo "$supported" >&6; }
15368 if test "$supported" = "yes" ; then
15369 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15374 if test $found = "no" ; then
15375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15383 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15386 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15387 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15388 if eval \${$cacheid+:} false; then :
15389 $as_echo_n "(cached) " >&6
15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h. */
15402 if ac_fn_c_try_link "$LINENO"; then :
15407 rm -f core conftest.err conftest.$ac_objext \
15408 conftest$ac_exeext conftest.$ac_ext
15412 CFLAGS="$xorg_testset_save_CFLAGS"
15414 eval supported=\$$cacheid
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15416 $as_echo "$supported" >&6; }
15417 if test "$supported" = "yes" ; then
15418 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15437 xorg_testset_save_CFLAGS="$CFLAGS"
15439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15442 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15443 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15444 $as_echo_n "(cached) " >&6
15446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15450 if ac_fn_c_try_compile "$LINENO"; then :
15451 xorg_cv_cc_flag_unknown_warning_option=yes
15453 xorg_cv_cc_flag_unknown_warning_option=no
15455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15458 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15460 CFLAGS="$xorg_testset_save_CFLAGS"
15463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15469 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15470 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15471 $as_echo_n "(cached) " >&6
15473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h. */
15477 if ac_fn_c_try_compile "$LINENO"; then :
15478 xorg_cv_cc_flag_unused_command_line_argument=yes
15480 xorg_cv_cc_flag_unused_command_line_argument=no
15482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15485 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15487 CFLAGS="$xorg_testset_save_CFLAGS"
15492 if test $found = "no" ; then
15493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15501 CFLAGS="$CFLAGS -Werror=trigraphs"
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15504 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15505 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15506 if eval \${$cacheid+:} false; then :
15507 $as_echo_n "(cached) " >&6
15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15520 if ac_fn_c_try_link "$LINENO"; then :
15525 rm -f core conftest.err conftest.$ac_objext \
15526 conftest$ac_exeext conftest.$ac_ext
15530 CFLAGS="$xorg_testset_save_CFLAGS"
15532 eval supported=\$$cacheid
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15534 $as_echo "$supported" >&6; }
15535 if test "$supported" = "yes" ; then
15536 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15555 xorg_testset_save_CFLAGS="$CFLAGS"
15557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15560 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15561 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15562 $as_echo_n "(cached) " >&6
15564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h. */
15568 if ac_fn_c_try_compile "$LINENO"; then :
15569 xorg_cv_cc_flag_unknown_warning_option=yes
15571 xorg_cv_cc_flag_unknown_warning_option=no
15573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15576 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15578 CFLAGS="$xorg_testset_save_CFLAGS"
15581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15587 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15588 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15589 $as_echo_n "(cached) " >&6
15591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h. */
15595 if ac_fn_c_try_compile "$LINENO"; then :
15596 xorg_cv_cc_flag_unused_command_line_argument=yes
15598 xorg_cv_cc_flag_unused_command_line_argument=no
15600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15603 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15605 CFLAGS="$xorg_testset_save_CFLAGS"
15610 if test $found = "no" ; then
15611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15619 CFLAGS="$CFLAGS -Werror=array-bounds"
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15622 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15623 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15624 if eval \${$cacheid+:} false; then :
15625 $as_echo_n "(cached) " >&6
15627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628 /* end confdefs.h. */
15638 if ac_fn_c_try_link "$LINENO"; then :
15643 rm -f core conftest.err conftest.$ac_objext \
15644 conftest$ac_exeext conftest.$ac_ext
15648 CFLAGS="$xorg_testset_save_CFLAGS"
15650 eval supported=\$$cacheid
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15652 $as_echo "$supported" >&6; }
15653 if test "$supported" = "yes" ; then
15654 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15673 xorg_testset_save_CFLAGS="$CFLAGS"
15675 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15678 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15679 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15680 $as_echo_n "(cached) " >&6
15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h. */
15686 if ac_fn_c_try_compile "$LINENO"; then :
15687 xorg_cv_cc_flag_unknown_warning_option=yes
15689 xorg_cv_cc_flag_unknown_warning_option=no
15691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15694 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15696 CFLAGS="$xorg_testset_save_CFLAGS"
15699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15705 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15706 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15707 $as_echo_n "(cached) " >&6
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15713 if ac_fn_c_try_compile "$LINENO"; then :
15714 xorg_cv_cc_flag_unused_command_line_argument=yes
15716 xorg_cv_cc_flag_unused_command_line_argument=no
15718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15721 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15723 CFLAGS="$xorg_testset_save_CFLAGS"
15728 if test $found = "no" ; then
15729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15737 CFLAGS="$CFLAGS -Werror=write-strings"
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15740 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15741 cacheid=xorg_cv_cc_flag__Werror_write_strings
15742 if eval \${$cacheid+:} false; then :
15743 $as_echo_n "(cached) " >&6
15745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h. */
15756 if ac_fn_c_try_link "$LINENO"; then :
15761 rm -f core conftest.err conftest.$ac_objext \
15762 conftest$ac_exeext conftest.$ac_ext
15766 CFLAGS="$xorg_testset_save_CFLAGS"
15768 eval supported=\$$cacheid
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15770 $as_echo "$supported" >&6; }
15771 if test "$supported" = "yes" ; then
15772 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15791 xorg_testset_save_CFLAGS="$CFLAGS"
15793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15796 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15797 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15798 $as_echo_n "(cached) " >&6
15800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h. */
15804 if ac_fn_c_try_compile "$LINENO"; then :
15805 xorg_cv_cc_flag_unknown_warning_option=yes
15807 xorg_cv_cc_flag_unknown_warning_option=no
15809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15812 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15813 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15814 CFLAGS="$xorg_testset_save_CFLAGS"
15817 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15823 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15824 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15825 $as_echo_n "(cached) " >&6
15827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15828 /* end confdefs.h. */
15831 if ac_fn_c_try_compile "$LINENO"; then :
15832 xorg_cv_cc_flag_unused_command_line_argument=yes
15834 xorg_cv_cc_flag_unused_command_line_argument=no
15836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15839 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15840 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15841 CFLAGS="$xorg_testset_save_CFLAGS"
15846 if test $found = "no" ; then
15847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15851 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15855 CFLAGS="$CFLAGS -Werror=address"
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15858 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15859 cacheid=xorg_cv_cc_flag__Werror_address
15860 if eval \${$cacheid+:} false; then :
15861 $as_echo_n "(cached) " >&6
15863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864 /* end confdefs.h. */
15874 if ac_fn_c_try_link "$LINENO"; then :
15879 rm -f core conftest.err conftest.$ac_objext \
15880 conftest$ac_exeext conftest.$ac_ext
15884 CFLAGS="$xorg_testset_save_CFLAGS"
15886 eval supported=\$$cacheid
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15888 $as_echo "$supported" >&6; }
15889 if test "$supported" = "yes" ; then
15890 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15909 xorg_testset_save_CFLAGS="$CFLAGS"
15911 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15914 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15915 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15916 $as_echo_n "(cached) " >&6
15918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919 /* end confdefs.h. */
15922 if ac_fn_c_try_compile "$LINENO"; then :
15923 xorg_cv_cc_flag_unknown_warning_option=yes
15925 xorg_cv_cc_flag_unknown_warning_option=no
15927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15930 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15931 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15932 CFLAGS="$xorg_testset_save_CFLAGS"
15935 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15941 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15942 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15943 $as_echo_n "(cached) " >&6
15945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h. */
15949 if ac_fn_c_try_compile "$LINENO"; then :
15950 xorg_cv_cc_flag_unused_command_line_argument=yes
15952 xorg_cv_cc_flag_unused_command_line_argument=no
15954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15957 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15959 CFLAGS="$xorg_testset_save_CFLAGS"
15964 if test $found = "no" ; then
15965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15973 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15976 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15977 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15978 if eval \${$cacheid+:} false; then :
15979 $as_echo_n "(cached) " >&6
15981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h. */
15992 if ac_fn_c_try_link "$LINENO"; then :
15997 rm -f core conftest.err conftest.$ac_objext \
15998 conftest$ac_exeext conftest.$ac_ext
16002 CFLAGS="$xorg_testset_save_CFLAGS"
16004 eval supported=\$$cacheid
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16006 $as_echo "$supported" >&6; }
16007 if test "$supported" = "yes" ; then
16008 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16013 if test $found = "no" ; then
16014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16022 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16025 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16026 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16027 if eval \${$cacheid+:} false; then :
16028 $as_echo_n "(cached) " >&6
16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h. */
16041 if ac_fn_c_try_link "$LINENO"; then :
16046 rm -f core conftest.err conftest.$ac_objext \
16047 conftest$ac_exeext conftest.$ac_ext
16051 CFLAGS="$xorg_testset_save_CFLAGS"
16053 eval supported=\$$cacheid
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16055 $as_echo "$supported" >&6; }
16056 if test "$supported" = "yes" ; then
16057 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16076 xorg_testset_save_CFLAGS="$CFLAGS"
16078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16083 $as_echo_n "(cached) " >&6
16085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086 /* end confdefs.h. */
16089 if ac_fn_c_try_compile "$LINENO"; then :
16090 xorg_cv_cc_flag_unknown_warning_option=yes
16092 xorg_cv_cc_flag_unknown_warning_option=no
16094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16099 CFLAGS="$xorg_testset_save_CFLAGS"
16102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16110 $as_echo_n "(cached) " >&6
16112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16113 /* end confdefs.h. */
16116 if ac_fn_c_try_compile "$LINENO"; then :
16117 xorg_cv_cc_flag_unused_command_line_argument=yes
16119 xorg_cv_cc_flag_unused_command_line_argument=no
16121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16126 CFLAGS="$xorg_testset_save_CFLAGS"
16131 if test $found = "no" ; then
16132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16140 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16143 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16144 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16145 if eval \${$cacheid+:} false; then :
16146 $as_echo_n "(cached) " >&6
16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149 /* end confdefs.h. */
16159 if ac_fn_c_try_link "$LINENO"; then :
16164 rm -f core conftest.err conftest.$ac_objext \
16165 conftest$ac_exeext conftest.$ac_ext
16169 CFLAGS="$xorg_testset_save_CFLAGS"
16171 eval supported=\$$cacheid
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16173 $as_echo "$supported" >&6; }
16174 if test "$supported" = "yes" ; then
16175 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16180 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16182 { $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
16183 $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;}
16197 xorg_testset_save_CFLAGS="$CFLAGS"
16199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16204 $as_echo_n "(cached) " >&6
16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16207 /* end confdefs.h. */
16210 if ac_fn_c_try_compile "$LINENO"; then :
16211 xorg_cv_cc_flag_unknown_warning_option=yes
16213 xorg_cv_cc_flag_unknown_warning_option=no
16215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16220 CFLAGS="$xorg_testset_save_CFLAGS"
16223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16231 $as_echo_n "(cached) " >&6
16233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16234 /* end confdefs.h. */
16237 if ac_fn_c_try_compile "$LINENO"; then :
16238 xorg_cv_cc_flag_unused_command_line_argument=yes
16240 xorg_cv_cc_flag_unused_command_line_argument=no
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16247 CFLAGS="$xorg_testset_save_CFLAGS"
16252 if test $found = "no" ; then
16253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16261 CFLAGS="$CFLAGS -Wimplicit"
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16264 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16265 cacheid=xorg_cv_cc_flag__Wimplicit
16266 if eval \${$cacheid+:} false; then :
16267 $as_echo_n "(cached) " >&6
16269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270 /* end confdefs.h. */
16280 if ac_fn_c_try_link "$LINENO"; then :
16285 rm -f core conftest.err conftest.$ac_objext \
16286 conftest$ac_exeext conftest.$ac_ext
16290 CFLAGS="$xorg_testset_save_CFLAGS"
16292 eval supported=\$$cacheid
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16294 $as_echo "$supported" >&6; }
16295 if test "$supported" = "yes" ; then
16296 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16315 xorg_testset_save_CFLAGS="$CFLAGS"
16317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16322 $as_echo_n "(cached) " >&6
16324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h. */
16328 if ac_fn_c_try_compile "$LINENO"; then :
16329 xorg_cv_cc_flag_unknown_warning_option=yes
16331 xorg_cv_cc_flag_unknown_warning_option=no
16333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16338 CFLAGS="$xorg_testset_save_CFLAGS"
16341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16349 $as_echo_n "(cached) " >&6
16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352 /* end confdefs.h. */
16355 if ac_fn_c_try_compile "$LINENO"; then :
16356 xorg_cv_cc_flag_unused_command_line_argument=yes
16358 xorg_cv_cc_flag_unused_command_line_argument=no
16360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16365 CFLAGS="$xorg_testset_save_CFLAGS"
16370 if test $found = "no" ; then
16371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16379 CFLAGS="$CFLAGS -Wnonnull"
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16382 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16383 cacheid=xorg_cv_cc_flag__Wnonnull
16384 if eval \${$cacheid+:} false; then :
16385 $as_echo_n "(cached) " >&6
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16398 if ac_fn_c_try_link "$LINENO"; then :
16403 rm -f core conftest.err conftest.$ac_objext \
16404 conftest$ac_exeext conftest.$ac_ext
16408 CFLAGS="$xorg_testset_save_CFLAGS"
16410 eval supported=\$$cacheid
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16412 $as_echo "$supported" >&6; }
16413 if test "$supported" = "yes" ; then
16414 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16433 xorg_testset_save_CFLAGS="$CFLAGS"
16435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16440 $as_echo_n "(cached) " >&6
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16446 if ac_fn_c_try_compile "$LINENO"; then :
16447 xorg_cv_cc_flag_unknown_warning_option=yes
16449 xorg_cv_cc_flag_unknown_warning_option=no
16451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16456 CFLAGS="$xorg_testset_save_CFLAGS"
16459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16467 $as_echo_n "(cached) " >&6
16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16473 if ac_fn_c_try_compile "$LINENO"; then :
16474 xorg_cv_cc_flag_unused_command_line_argument=yes
16476 xorg_cv_cc_flag_unused_command_line_argument=no
16478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16483 CFLAGS="$xorg_testset_save_CFLAGS"
16488 if test $found = "no" ; then
16489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16497 CFLAGS="$CFLAGS -Winit-self"
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16500 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16501 cacheid=xorg_cv_cc_flag__Winit_self
16502 if eval \${$cacheid+:} false; then :
16503 $as_echo_n "(cached) " >&6
16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h. */
16516 if ac_fn_c_try_link "$LINENO"; then :
16521 rm -f core conftest.err conftest.$ac_objext \
16522 conftest$ac_exeext conftest.$ac_ext
16526 CFLAGS="$xorg_testset_save_CFLAGS"
16528 eval supported=\$$cacheid
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16530 $as_echo "$supported" >&6; }
16531 if test "$supported" = "yes" ; then
16532 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16551 xorg_testset_save_CFLAGS="$CFLAGS"
16553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16556 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16557 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16558 $as_echo_n "(cached) " >&6
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h. */
16564 if ac_fn_c_try_compile "$LINENO"; then :
16565 xorg_cv_cc_flag_unknown_warning_option=yes
16567 xorg_cv_cc_flag_unknown_warning_option=no
16569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16572 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16574 CFLAGS="$xorg_testset_save_CFLAGS"
16577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16584 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16585 $as_echo_n "(cached) " >&6
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16591 if ac_fn_c_try_compile "$LINENO"; then :
16592 xorg_cv_cc_flag_unused_command_line_argument=yes
16594 xorg_cv_cc_flag_unused_command_line_argument=no
16596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16599 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16601 CFLAGS="$xorg_testset_save_CFLAGS"
16606 if test $found = "no" ; then
16607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16615 CFLAGS="$CFLAGS -Wmain"
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16618 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16619 cacheid=xorg_cv_cc_flag__Wmain
16620 if eval \${$cacheid+:} false; then :
16621 $as_echo_n "(cached) " >&6
16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624 /* end confdefs.h. */
16634 if ac_fn_c_try_link "$LINENO"; then :
16639 rm -f core conftest.err conftest.$ac_objext \
16640 conftest$ac_exeext conftest.$ac_ext
16644 CFLAGS="$xorg_testset_save_CFLAGS"
16646 eval supported=\$$cacheid
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16648 $as_echo "$supported" >&6; }
16649 if test "$supported" = "yes" ; then
16650 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16669 xorg_testset_save_CFLAGS="$CFLAGS"
16671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16674 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16675 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16676 $as_echo_n "(cached) " >&6
16678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h. */
16682 if ac_fn_c_try_compile "$LINENO"; then :
16683 xorg_cv_cc_flag_unknown_warning_option=yes
16685 xorg_cv_cc_flag_unknown_warning_option=no
16687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16690 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16692 CFLAGS="$xorg_testset_save_CFLAGS"
16695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16701 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16702 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16703 $as_echo_n "(cached) " >&6
16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706 /* end confdefs.h. */
16709 if ac_fn_c_try_compile "$LINENO"; then :
16710 xorg_cv_cc_flag_unused_command_line_argument=yes
16712 xorg_cv_cc_flag_unused_command_line_argument=no
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16717 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16719 CFLAGS="$xorg_testset_save_CFLAGS"
16724 if test $found = "no" ; then
16725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16733 CFLAGS="$CFLAGS -Wmissing-braces"
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16736 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16737 cacheid=xorg_cv_cc_flag__Wmissing_braces
16738 if eval \${$cacheid+:} false; then :
16739 $as_echo_n "(cached) " >&6
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16752 if ac_fn_c_try_link "$LINENO"; then :
16757 rm -f core conftest.err conftest.$ac_objext \
16758 conftest$ac_exeext conftest.$ac_ext
16762 CFLAGS="$xorg_testset_save_CFLAGS"
16764 eval supported=\$$cacheid
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16766 $as_echo "$supported" >&6; }
16767 if test "$supported" = "yes" ; then
16768 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16787 xorg_testset_save_CFLAGS="$CFLAGS"
16789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16792 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16793 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16794 $as_echo_n "(cached) " >&6
16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h. */
16800 if ac_fn_c_try_compile "$LINENO"; then :
16801 xorg_cv_cc_flag_unknown_warning_option=yes
16803 xorg_cv_cc_flag_unknown_warning_option=no
16805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16808 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16810 CFLAGS="$xorg_testset_save_CFLAGS"
16813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16819 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16820 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16821 $as_echo_n "(cached) " >&6
16823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16827 if ac_fn_c_try_compile "$LINENO"; then :
16828 xorg_cv_cc_flag_unused_command_line_argument=yes
16830 xorg_cv_cc_flag_unused_command_line_argument=no
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16835 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16837 CFLAGS="$xorg_testset_save_CFLAGS"
16842 if test $found = "no" ; then
16843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16851 CFLAGS="$CFLAGS -Wsequence-point"
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16854 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16855 cacheid=xorg_cv_cc_flag__Wsequence_point
16856 if eval \${$cacheid+:} false; then :
16857 $as_echo_n "(cached) " >&6
16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h. */
16870 if ac_fn_c_try_link "$LINENO"; then :
16875 rm -f core conftest.err conftest.$ac_objext \
16876 conftest$ac_exeext conftest.$ac_ext
16880 CFLAGS="$xorg_testset_save_CFLAGS"
16882 eval supported=\$$cacheid
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16884 $as_echo "$supported" >&6; }
16885 if test "$supported" = "yes" ; then
16886 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16905 xorg_testset_save_CFLAGS="$CFLAGS"
16907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16910 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16911 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16912 $as_echo_n "(cached) " >&6
16914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16915 /* end confdefs.h. */
16918 if ac_fn_c_try_compile "$LINENO"; then :
16919 xorg_cv_cc_flag_unknown_warning_option=yes
16921 xorg_cv_cc_flag_unknown_warning_option=no
16923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16926 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16928 CFLAGS="$xorg_testset_save_CFLAGS"
16931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16937 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16938 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16939 $as_echo_n "(cached) " >&6
16941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942 /* end confdefs.h. */
16945 if ac_fn_c_try_compile "$LINENO"; then :
16946 xorg_cv_cc_flag_unused_command_line_argument=yes
16948 xorg_cv_cc_flag_unused_command_line_argument=no
16950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16953 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16955 CFLAGS="$xorg_testset_save_CFLAGS"
16960 if test $found = "no" ; then
16961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16969 CFLAGS="$CFLAGS -Wreturn-type"
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16972 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16973 cacheid=xorg_cv_cc_flag__Wreturn_type
16974 if eval \${$cacheid+:} false; then :
16975 $as_echo_n "(cached) " >&6
16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978 /* end confdefs.h. */
16988 if ac_fn_c_try_link "$LINENO"; then :
16993 rm -f core conftest.err conftest.$ac_objext \
16994 conftest$ac_exeext conftest.$ac_ext
16998 CFLAGS="$xorg_testset_save_CFLAGS"
17000 eval supported=\$$cacheid
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17002 $as_echo "$supported" >&6; }
17003 if test "$supported" = "yes" ; then
17004 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17023 xorg_testset_save_CFLAGS="$CFLAGS"
17025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17028 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17029 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17030 $as_echo_n "(cached) " >&6
17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17036 if ac_fn_c_try_compile "$LINENO"; then :
17037 xorg_cv_cc_flag_unknown_warning_option=yes
17039 xorg_cv_cc_flag_unknown_warning_option=no
17041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17044 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17046 CFLAGS="$xorg_testset_save_CFLAGS"
17049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17055 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17056 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17057 $as_echo_n "(cached) " >&6
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h. */
17063 if ac_fn_c_try_compile "$LINENO"; then :
17064 xorg_cv_cc_flag_unused_command_line_argument=yes
17066 xorg_cv_cc_flag_unused_command_line_argument=no
17068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17071 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17073 CFLAGS="$xorg_testset_save_CFLAGS"
17078 if test $found = "no" ; then
17079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17087 CFLAGS="$CFLAGS -Wtrigraphs"
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17090 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17091 cacheid=xorg_cv_cc_flag__Wtrigraphs
17092 if eval \${$cacheid+:} false; then :
17093 $as_echo_n "(cached) " >&6
17095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h. */
17106 if ac_fn_c_try_link "$LINENO"; then :
17111 rm -f core conftest.err conftest.$ac_objext \
17112 conftest$ac_exeext conftest.$ac_ext
17116 CFLAGS="$xorg_testset_save_CFLAGS"
17118 eval supported=\$$cacheid
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17120 $as_echo "$supported" >&6; }
17121 if test "$supported" = "yes" ; then
17122 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17141 xorg_testset_save_CFLAGS="$CFLAGS"
17143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17146 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17147 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17148 $as_echo_n "(cached) " >&6
17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h. */
17154 if ac_fn_c_try_compile "$LINENO"; then :
17155 xorg_cv_cc_flag_unknown_warning_option=yes
17157 xorg_cv_cc_flag_unknown_warning_option=no
17159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17162 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17164 CFLAGS="$xorg_testset_save_CFLAGS"
17167 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17173 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17174 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17175 $as_echo_n "(cached) " >&6
17177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17178 /* end confdefs.h. */
17181 if ac_fn_c_try_compile "$LINENO"; then :
17182 xorg_cv_cc_flag_unused_command_line_argument=yes
17184 xorg_cv_cc_flag_unused_command_line_argument=no
17186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17189 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17191 CFLAGS="$xorg_testset_save_CFLAGS"
17196 if test $found = "no" ; then
17197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17205 CFLAGS="$CFLAGS -Warray-bounds"
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17208 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17209 cacheid=xorg_cv_cc_flag__Warray_bounds
17210 if eval \${$cacheid+:} false; then :
17211 $as_echo_n "(cached) " >&6
17213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h. */
17224 if ac_fn_c_try_link "$LINENO"; then :
17229 rm -f core conftest.err conftest.$ac_objext \
17230 conftest$ac_exeext conftest.$ac_ext
17234 CFLAGS="$xorg_testset_save_CFLAGS"
17236 eval supported=\$$cacheid
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17238 $as_echo "$supported" >&6; }
17239 if test "$supported" = "yes" ; then
17240 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17259 xorg_testset_save_CFLAGS="$CFLAGS"
17261 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17264 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17265 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17266 $as_echo_n "(cached) " >&6
17268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17269 /* end confdefs.h. */
17272 if ac_fn_c_try_compile "$LINENO"; then :
17273 xorg_cv_cc_flag_unknown_warning_option=yes
17275 xorg_cv_cc_flag_unknown_warning_option=no
17277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17280 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17282 CFLAGS="$xorg_testset_save_CFLAGS"
17285 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17291 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17292 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17293 $as_echo_n "(cached) " >&6
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296 /* end confdefs.h. */
17299 if ac_fn_c_try_compile "$LINENO"; then :
17300 xorg_cv_cc_flag_unused_command_line_argument=yes
17302 xorg_cv_cc_flag_unused_command_line_argument=no
17304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17307 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17309 CFLAGS="$xorg_testset_save_CFLAGS"
17314 if test $found = "no" ; then
17315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17323 CFLAGS="$CFLAGS -Wwrite-strings"
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17326 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17327 cacheid=xorg_cv_cc_flag__Wwrite_strings
17328 if eval \${$cacheid+:} false; then :
17329 $as_echo_n "(cached) " >&6
17331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17332 /* end confdefs.h. */
17342 if ac_fn_c_try_link "$LINENO"; then :
17347 rm -f core conftest.err conftest.$ac_objext \
17348 conftest$ac_exeext conftest.$ac_ext
17352 CFLAGS="$xorg_testset_save_CFLAGS"
17354 eval supported=\$$cacheid
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17356 $as_echo "$supported" >&6; }
17357 if test "$supported" = "yes" ; then
17358 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17377 xorg_testset_save_CFLAGS="$CFLAGS"
17379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17382 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17383 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17384 $as_echo_n "(cached) " >&6
17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17390 if ac_fn_c_try_compile "$LINENO"; then :
17391 xorg_cv_cc_flag_unknown_warning_option=yes
17393 xorg_cv_cc_flag_unknown_warning_option=no
17395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17398 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17400 CFLAGS="$xorg_testset_save_CFLAGS"
17403 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17409 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17410 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17411 $as_echo_n "(cached) " >&6
17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414 /* end confdefs.h. */
17417 if ac_fn_c_try_compile "$LINENO"; then :
17418 xorg_cv_cc_flag_unused_command_line_argument=yes
17420 xorg_cv_cc_flag_unused_command_line_argument=no
17422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17425 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17427 CFLAGS="$xorg_testset_save_CFLAGS"
17432 if test $found = "no" ; then
17433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17441 CFLAGS="$CFLAGS -Waddress"
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17444 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17445 cacheid=xorg_cv_cc_flag__Waddress
17446 if eval \${$cacheid+:} false; then :
17447 $as_echo_n "(cached) " >&6
17449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17450 /* end confdefs.h. */
17460 if ac_fn_c_try_link "$LINENO"; then :
17465 rm -f core conftest.err conftest.$ac_objext \
17466 conftest$ac_exeext conftest.$ac_ext
17470 CFLAGS="$xorg_testset_save_CFLAGS"
17472 eval supported=\$$cacheid
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17474 $as_echo "$supported" >&6; }
17475 if test "$supported" = "yes" ; then
17476 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17495 xorg_testset_save_CFLAGS="$CFLAGS"
17497 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17500 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17501 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17502 $as_echo_n "(cached) " >&6
17504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17505 /* end confdefs.h. */
17508 if ac_fn_c_try_compile "$LINENO"; then :
17509 xorg_cv_cc_flag_unknown_warning_option=yes
17511 xorg_cv_cc_flag_unknown_warning_option=no
17513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17516 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17518 CFLAGS="$xorg_testset_save_CFLAGS"
17521 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17527 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17528 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17529 $as_echo_n "(cached) " >&6
17531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17532 /* end confdefs.h. */
17535 if ac_fn_c_try_compile "$LINENO"; then :
17536 xorg_cv_cc_flag_unused_command_line_argument=yes
17538 xorg_cv_cc_flag_unused_command_line_argument=no
17540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17543 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17544 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17545 CFLAGS="$xorg_testset_save_CFLAGS"
17550 if test $found = "no" ; then
17551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17555 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17559 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17562 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17563 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17564 if eval \${$cacheid+:} false; then :
17565 $as_echo_n "(cached) " >&6
17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h. */
17578 if ac_fn_c_try_link "$LINENO"; then :
17583 rm -f core conftest.err conftest.$ac_objext \
17584 conftest$ac_exeext conftest.$ac_ext
17588 CFLAGS="$xorg_testset_save_CFLAGS"
17590 eval supported=\$$cacheid
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17592 $as_echo "$supported" >&6; }
17593 if test "$supported" = "yes" ; then
17594 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17613 xorg_testset_save_CFLAGS="$CFLAGS"
17615 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17618 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17619 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17620 $as_echo_n "(cached) " >&6
17622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h. */
17626 if ac_fn_c_try_compile "$LINENO"; then :
17627 xorg_cv_cc_flag_unknown_warning_option=yes
17629 xorg_cv_cc_flag_unknown_warning_option=no
17631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17634 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17635 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17636 CFLAGS="$xorg_testset_save_CFLAGS"
17639 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17645 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17646 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17647 $as_echo_n "(cached) " >&6
17649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17650 /* end confdefs.h. */
17653 if ac_fn_c_try_compile "$LINENO"; then :
17654 xorg_cv_cc_flag_unused_command_line_argument=yes
17656 xorg_cv_cc_flag_unused_command_line_argument=no
17658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17661 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17663 CFLAGS="$xorg_testset_save_CFLAGS"
17668 if test $found = "no" ; then
17669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17673 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17677 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17680 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17681 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17682 if eval \${$cacheid+:} false; then :
17683 $as_echo_n "(cached) " >&6
17685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h. */
17696 if ac_fn_c_try_link "$LINENO"; then :
17701 rm -f core conftest.err conftest.$ac_objext \
17702 conftest$ac_exeext conftest.$ac_ext
17706 CFLAGS="$xorg_testset_save_CFLAGS"
17708 eval supported=\$$cacheid
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17710 $as_echo "$supported" >&6; }
17711 if test "$supported" = "yes" ; then
17712 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17726 CWARNFLAGS="$BASE_CFLAGS"
17727 if test "x$GCC" = xyes ; then
17728 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17738 # Check whether --enable-strict-compilation was given.
17739 if test "${enable_strict_compilation+set}" = set; then :
17740 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17764 xorg_testset_save_CFLAGS="$CFLAGS"
17766 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17769 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17770 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17771 $as_echo_n "(cached) " >&6
17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17777 if ac_fn_c_try_compile "$LINENO"; then :
17778 xorg_cv_cc_flag_unknown_warning_option=yes
17780 xorg_cv_cc_flag_unknown_warning_option=no
17782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17785 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17787 CFLAGS="$xorg_testset_save_CFLAGS"
17790 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17796 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17797 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17798 $as_echo_n "(cached) " >&6
17800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801 /* end confdefs.h. */
17804 if ac_fn_c_try_compile "$LINENO"; then :
17805 xorg_cv_cc_flag_unused_command_line_argument=yes
17807 xorg_cv_cc_flag_unused_command_line_argument=no
17809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17812 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17814 CFLAGS="$xorg_testset_save_CFLAGS"
17819 if test $found = "no" ; then
17820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17828 CFLAGS="$CFLAGS -pedantic"
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17831 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17832 cacheid=xorg_cv_cc_flag__pedantic
17833 if eval \${$cacheid+:} false; then :
17834 $as_echo_n "(cached) " >&6
17836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17837 /* end confdefs.h. */
17847 if ac_fn_c_try_link "$LINENO"; then :
17852 rm -f core conftest.err conftest.$ac_objext \
17853 conftest$ac_exeext conftest.$ac_ext
17857 CFLAGS="$xorg_testset_save_CFLAGS"
17859 eval supported=\$$cacheid
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17861 $as_echo "$supported" >&6; }
17862 if test "$supported" = "yes" ; then
17863 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17882 xorg_testset_save_CFLAGS="$CFLAGS"
17884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17887 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17888 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17889 $as_echo_n "(cached) " >&6
17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17895 if ac_fn_c_try_compile "$LINENO"; then :
17896 xorg_cv_cc_flag_unknown_warning_option=yes
17898 xorg_cv_cc_flag_unknown_warning_option=no
17900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17903 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17905 CFLAGS="$xorg_testset_save_CFLAGS"
17908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17914 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17915 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17916 $as_echo_n "(cached) " >&6
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h. */
17922 if ac_fn_c_try_compile "$LINENO"; then :
17923 xorg_cv_cc_flag_unused_command_line_argument=yes
17925 xorg_cv_cc_flag_unused_command_line_argument=no
17927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17930 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17932 CFLAGS="$xorg_testset_save_CFLAGS"
17937 if test $found = "no" ; then
17938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17946 CFLAGS="$CFLAGS -Werror"
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17949 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17950 cacheid=xorg_cv_cc_flag__Werror
17951 if eval \${$cacheid+:} false; then :
17952 $as_echo_n "(cached) " >&6
17954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17955 /* end confdefs.h. */
17965 if ac_fn_c_try_link "$LINENO"; then :
17970 rm -f core conftest.err conftest.$ac_objext \
17971 conftest$ac_exeext conftest.$ac_ext
17975 CFLAGS="$xorg_testset_save_CFLAGS"
17977 eval supported=\$$cacheid
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17979 $as_echo "$supported" >&6; }
17980 if test "$supported" = "yes" ; then
17981 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17986 if test $found = "no" ; then
17987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17995 CFLAGS="$CFLAGS -errwarn"
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17998 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17999 cacheid=xorg_cv_cc_flag__errwarn
18000 if eval \${$cacheid+:} false; then :
18001 $as_echo_n "(cached) " >&6
18003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004 /* end confdefs.h. */
18014 if ac_fn_c_try_link "$LINENO"; then :
18019 rm -f core conftest.err conftest.$ac_objext \
18020 conftest$ac_exeext conftest.$ac_ext
18024 CFLAGS="$xorg_testset_save_CFLAGS"
18026 eval supported=\$$cacheid
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18028 $as_echo "$supported" >&6; }
18029 if test "$supported" = "yes" ; then
18030 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18037 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18038 # activate it with -Werror, so we add it here explicitly.
18052 xorg_testset_save_CFLAGS="$CFLAGS"
18054 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18057 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18058 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18059 $as_echo_n "(cached) " >&6
18061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18062 /* end confdefs.h. */
18065 if ac_fn_c_try_compile "$LINENO"; then :
18066 xorg_cv_cc_flag_unknown_warning_option=yes
18068 xorg_cv_cc_flag_unknown_warning_option=no
18070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18073 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18075 CFLAGS="$xorg_testset_save_CFLAGS"
18078 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18084 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18085 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18086 $as_echo_n "(cached) " >&6
18088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18089 /* end confdefs.h. */
18092 if ac_fn_c_try_compile "$LINENO"; then :
18093 xorg_cv_cc_flag_unused_command_line_argument=yes
18095 xorg_cv_cc_flag_unused_command_line_argument=no
18097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18100 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18102 CFLAGS="$xorg_testset_save_CFLAGS"
18107 if test $found = "no" ; then
18108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18116 CFLAGS="$CFLAGS -Werror=attributes"
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18119 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18120 cacheid=xorg_cv_cc_flag__Werror_attributes
18121 if eval \${$cacheid+:} false; then :
18122 $as_echo_n "(cached) " >&6
18124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18125 /* end confdefs.h. */
18135 if ac_fn_c_try_link "$LINENO"; then :
18140 rm -f core conftest.err conftest.$ac_objext \
18141 conftest$ac_exeext conftest.$ac_ext
18145 CFLAGS="$xorg_testset_save_CFLAGS"
18147 eval supported=\$$cacheid
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18149 $as_echo "$supported" >&6; }
18150 if test "$supported" = "yes" ; then
18151 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18158 if test "x$STRICT_COMPILE" = "xyes"; then
18159 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18160 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18168 cat >>confdefs.h <<_ACEOF
18169 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18172 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18173 if test "x$PVM" = "x"; then
18177 cat >>confdefs.h <<_ACEOF
18178 #define PACKAGE_VERSION_MINOR $PVM
18181 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18182 if test "x$PVP" = "x"; then
18186 cat >>confdefs.h <<_ACEOF
18187 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18192 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18193 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18194 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18195 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18200 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18201 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18202 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18203 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18204 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18211 if test x$APP_MAN_SUFFIX = x ; then
18214 if test x$APP_MAN_DIR = x ; then
18215 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18218 if test x$LIB_MAN_SUFFIX = x ; then
18221 if test x$LIB_MAN_DIR = x ; then
18222 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18225 if test x$FILE_MAN_SUFFIX = x ; then
18227 solaris*) FILE_MAN_SUFFIX=4 ;;
18228 *) FILE_MAN_SUFFIX=5 ;;
18231 if test x$FILE_MAN_DIR = x ; then
18232 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18235 if test x$MISC_MAN_SUFFIX = x ; then
18237 solaris*) MISC_MAN_SUFFIX=5 ;;
18238 *) MISC_MAN_SUFFIX=7 ;;
18241 if test x$MISC_MAN_DIR = x ; then
18242 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18245 if test x$DRIVER_MAN_SUFFIX = x ; then
18247 solaris*) DRIVER_MAN_SUFFIX=7 ;;
18248 *) DRIVER_MAN_SUFFIX=4 ;;
18251 if test x$DRIVER_MAN_DIR = x ; then
18252 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18255 if test x$ADMIN_MAN_SUFFIX = x ; then
18257 solaris*) ADMIN_MAN_SUFFIX=1m ;;
18258 *) ADMIN_MAN_SUFFIX=8 ;;
18261 if test x$ADMIN_MAN_DIR = x ; then
18262 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18279 XORG_MAN_PAGE="X Version 11"
18282 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18283 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18284 -e 's|__xservername__|Xorg|g' \
18285 -e 's|__xconfigfile__|xorg.conf|g' \
18286 -e 's|__projectroot__|\$(prefix)|g' \
18287 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18288 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18289 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18290 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18291 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18292 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18293 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18297 # Check whether --enable-silent-rules was given.
18298 if test "${enable_silent_rules+set}" = set; then :
18299 enableval=$enable_silent_rules;
18302 case $enable_silent_rules in # (((
18303 yes) AM_DEFAULT_VERBOSITY=0;;
18304 no) AM_DEFAULT_VERBOSITY=1;;
18305 *) AM_DEFAULT_VERBOSITY=0;;
18307 am_make=${MAKE-make}
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18309 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18310 if ${am_cv_make_support_nested_variables+:} false; then :
18311 $as_echo_n "(cached) " >&6
18313 if $as_echo 'TRUE=$(BAR$(V))
18319 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18320 am_cv_make_support_nested_variables=yes
18322 am_cv_make_support_nested_variables=no
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18326 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18327 if test $am_cv_make_support_nested_variables = yes; then
18329 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18331 AM_V=$AM_DEFAULT_VERBOSITY
18332 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18338 # Checks for libraries.
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mtdev_open in -lmtdev" >&5
18340 $as_echo_n "checking for mtdev_open in -lmtdev... " >&6; }
18341 if ${ac_cv_lib_mtdev_mtdev_open+:} false; then :
18342 $as_echo_n "(cached) " >&6
18344 ac_check_lib_save_LIBS=$LIBS
18345 LIBS="-lmtdev $LIBS"
18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h. */
18349 /* Override any GCC internal prototype to avoid an error.
18350 Use char because int might match the return type of a GCC
18351 builtin and then its argument prototype would still apply. */
18355 char mtdev_open ();
18359 return mtdev_open ();
18364 if ac_fn_c_try_link "$LINENO"; then :
18365 ac_cv_lib_mtdev_mtdev_open=yes
18367 ac_cv_lib_mtdev_mtdev_open=no
18369 rm -f core conftest.err conftest.$ac_objext \
18370 conftest$ac_exeext conftest.$ac_ext
18371 LIBS=$ac_check_lib_save_LIBS
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtdev_mtdev_open" >&5
18374 $as_echo "$ac_cv_lib_mtdev_mtdev_open" >&6; }
18375 if test "x$ac_cv_lib_mtdev_mtdev_open" = xyes; then :
18376 cat >>confdefs.h <<_ACEOF
18377 #define HAVE_LIBMTDEV 1
18380 LIBS="-lmtdev $LIBS"
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2 in -lm" >&5
18385 $as_echo_n "checking for atan2 in -lm... " >&6; }
18386 if ${ac_cv_lib_m_atan2+:} false; then :
18387 $as_echo_n "(cached) " >&6
18389 ac_check_lib_save_LIBS=$LIBS
18391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18392 /* end confdefs.h. */
18394 /* Override any GCC internal prototype to avoid an error.
18395 Use char because int might match the return type of a GCC
18396 builtin and then its argument prototype would still apply. */
18409 if ac_fn_c_try_link "$LINENO"; then :
18410 ac_cv_lib_m_atan2=yes
18412 ac_cv_lib_m_atan2=no
18414 rm -f core conftest.err conftest.$ac_objext \
18415 conftest$ac_exeext conftest.$ac_ext
18416 LIBS=$ac_check_lib_save_LIBS
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2" >&5
18419 $as_echo "$ac_cv_lib_m_atan2" >&6; }
18420 if test "x$ac_cv_lib_m_atan2" = xyes; then :
18421 cat >>confdefs.h <<_ACEOF
18422 #define HAVE_LIBM 1
18430 # Obtain compiler/linker options for the mtrack driver dependencies
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18434 $as_echo_n "checking for XORG... " >&6; }
18436 if test -n "$XORG_CFLAGS"; then
18437 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18438 elif test -n "$PKG_CONFIG"; then
18439 if test -n "$PKG_CONFIG" && \
18440 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto \$REQUIRED_MODULES\""; } >&5
18441 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES") 2>&5
18443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18444 test $ac_status = 0; }; then
18445 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
18446 test "x$?" != "x0" && pkg_failed=yes
18453 if test -n "$XORG_LIBS"; then
18454 pkg_cv_XORG_LIBS="$XORG_LIBS"
18455 elif test -n "$PKG_CONFIG"; then
18456 if test -n "$PKG_CONFIG" && \
18457 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto \$REQUIRED_MODULES\""; } >&5
18458 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES") 2>&5
18460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18461 test $ac_status = 0; }; then
18462 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
18463 test "x$?" != "x0" && pkg_failed=yes
18473 if test $pkg_failed = yes; then
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18475 $as_echo "no" >&6; }
18477 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18478 _pkg_short_errors_supported=yes
18480 _pkg_short_errors_supported=no
18482 if test $_pkg_short_errors_supported = yes; then
18483 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>&1`
18485 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>&1`
18487 # Put the nasty error message in config.log where it belongs
18488 echo "$XORG_PKG_ERRORS" >&5
18490 as_fn_error $? "Package requirements (xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES) were not met:
18494 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18495 installed software in a non-standard prefix.
18497 Alternatively, you may set the environment variables XORG_CFLAGS
18498 and XORG_LIBS to avoid the need to call pkg-config.
18499 See the pkg-config man page for more details." "$LINENO" 5
18500 elif test $pkg_failed = untried; then
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18502 $as_echo "no" >&6; }
18503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18505 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18506 is in your PATH or set the PKG_CONFIG environment variable to the full
18507 path to pkg-config.
18509 Alternatively, you may set the environment variables XORG_CFLAGS
18510 and XORG_LIBS to avoid the need to call pkg-config.
18511 See the pkg-config man page for more details.
18513 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18514 See \`config.log' for more details" "$LINENO" 5; }
18516 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18517 XORG_LIBS=$pkg_cv_XORG_LIBS
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18519 $as_echo "yes" >&6; }
18527 # configure option for module install directory
18529 # Check whether --with-xorg-module-dir was given.
18530 if test "${with_xorg_module_dir+set}" = set; then :
18531 withval=$with_xorg_module_dir; moduledir="$withval"
18533 moduledir="$libdir/xorg/modules"
18536 inputdir=${moduledir}/input
18539 # configure option to build extra tools
18540 # Check whether --enable-tools was given.
18541 if test "${enable_tools+set}" = set; then :
18542 enableval=$enable_tools; ENABLE_TOOLS=yes
18547 if test "x$ENABLE_TOOLS" = xyes; then
18549 BUILD_TOOLS_FALSE='#'
18551 BUILD_TOOLS_TRUE='#'
18556 # configure option to enable gesture ate debugging
18557 # Check whether --enable-debug-gestures was given.
18558 if test "${enable_debug_gestures+set}" = set; then :
18559 enableval=$enable_debug_gestures; DEBUG_GESTURES=yes
18564 if test "x$DEBUG_GESTURES" = xyes; then
18566 $as_echo "#define DEBUG_GESTURES 1" >>confdefs.h
18570 # configure option to enable multitouch state debugging
18571 # Check whether --enable-debug-mtstate was given.
18572 if test "${enable_debug_mtstate+set}" = set; then :
18573 enableval=$enable_debug_mtstate; DEBUG_MTSTATE=yes
18578 if test "x$DEBUG_MTSTATE" = xyes; then
18580 $as_echo "#define DEBUG_MTSTATE 1" >>confdefs.h
18584 # configure option to enable property debugging
18585 # Check whether --enable-debug-props was given.
18586 if test "${enable_debug_props+set}" = set; then :
18587 enableval=$enable_debug_props; DEBUG_PROPS=yes
18592 if test "x$DEBUG_PROPS" = xyes; then
18594 $as_echo "#define DEBUG_PROPS 1" >>confdefs.h
18598 # configure option to enable driver debugging
18599 # Check whether --enable-debug-driver was given.
18600 if test "${enable_debug_driver+set}" = set; then :
18601 enableval=$enable_debug_driver; DEBUG_DRIVER=yes
18606 if test "x$DEBUG_DRIVER" = xyes; then
18608 $as_echo "#define DEBUG_DRIVER 1" >>confdefs.h
18613 # configure option to enable all debugging
18614 # Check whether --enable-debug was given.
18615 if test "${enable_debug+set}" = set; then :
18616 enableval=$enable_debug; DEBUG_ALL=$enableval
18621 if test "x$DEBUG_ALL" = xyes; then
18623 $as_echo "#define DEBUG_GESTURES 1" >>confdefs.h
18626 $as_echo "#define DEBUG_MTSTATE 1" >>confdefs.h
18629 $as_echo "#define DEBUG_PROPS 1" >>confdefs.h
18632 $as_echo "#define DEBUG_DRIVER 1" >>confdefs.h
18638 ac_cpp='$CPP $CPPFLAGS'
18639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18642 if test -n "$ac_tool_prefix"; then
18643 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18644 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18646 $as_echo_n "checking for $ac_word... " >&6; }
18647 if ${ac_cv_prog_CC+:} false; then :
18648 $as_echo_n "(cached) " >&6
18650 if test -n "$CC"; then
18651 ac_cv_prog_CC="$CC" # Let the user override the test.
18653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18654 for as_dir in $PATH
18657 test -z "$as_dir" && as_dir=.
18658 for ac_exec_ext in '' $ac_executable_extensions; do
18659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18660 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18671 if test -n "$CC"; then
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18673 $as_echo "$CC" >&6; }
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18676 $as_echo "no" >&6; }
18681 if test -z "$ac_cv_prog_CC"; then
18683 # Extract the first word of "gcc", so it can be a program name with args.
18684 set dummy gcc; ac_word=$2
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18686 $as_echo_n "checking for $ac_word... " >&6; }
18687 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18688 $as_echo_n "(cached) " >&6
18690 if test -n "$ac_ct_CC"; then
18691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18694 for as_dir in $PATH
18697 test -z "$as_dir" && as_dir=.
18698 for ac_exec_ext in '' $ac_executable_extensions; do
18699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18700 ac_cv_prog_ac_ct_CC="gcc"
18701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18711 if test -n "$ac_ct_CC"; then
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18713 $as_echo "$ac_ct_CC" >&6; }
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716 $as_echo "no" >&6; }
18719 if test "x$ac_ct_CC" = x; then
18722 case $cross_compiling:$ac_tool_warned in
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18726 ac_tool_warned=yes ;;
18731 CC="$ac_cv_prog_CC"
18734 if test -z "$CC"; then
18735 if test -n "$ac_tool_prefix"; then
18736 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18737 set dummy ${ac_tool_prefix}cc; ac_word=$2
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18739 $as_echo_n "checking for $ac_word... " >&6; }
18740 if ${ac_cv_prog_CC+:} false; then :
18741 $as_echo_n "(cached) " >&6
18743 if test -n "$CC"; then
18744 ac_cv_prog_CC="$CC" # Let the user override the test.
18746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18747 for as_dir in $PATH
18750 test -z "$as_dir" && as_dir=.
18751 for ac_exec_ext in '' $ac_executable_extensions; do
18752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18753 ac_cv_prog_CC="${ac_tool_prefix}cc"
18754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18764 if test -n "$CC"; then
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18766 $as_echo "$CC" >&6; }
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18769 $as_echo "no" >&6; }
18775 if test -z "$CC"; then
18776 # Extract the first word of "cc", so it can be a program name with args.
18777 set dummy cc; ac_word=$2
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18779 $as_echo_n "checking for $ac_word... " >&6; }
18780 if ${ac_cv_prog_CC+:} false; then :
18781 $as_echo_n "(cached) " >&6
18783 if test -n "$CC"; then
18784 ac_cv_prog_CC="$CC" # Let the user override the test.
18786 ac_prog_rejected=no
18787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18788 for as_dir in $PATH
18791 test -z "$as_dir" && as_dir=.
18792 for ac_exec_ext in '' $ac_executable_extensions; do
18793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18794 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18795 ac_prog_rejected=yes
18799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18806 if test $ac_prog_rejected = yes; then
18807 # We found a bogon in the path, so make sure we never use it.
18808 set dummy $ac_cv_prog_CC
18810 if test $# != 0; then
18811 # We chose a different compiler from the bogus one.
18812 # However, it has the same basename, so the bogon will be chosen
18813 # first if we set CC to just the basename; use the full file name.
18815 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18821 if test -n "$CC"; then
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18823 $as_echo "$CC" >&6; }
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18826 $as_echo "no" >&6; }
18831 if test -z "$CC"; then
18832 if test -n "$ac_tool_prefix"; then
18833 for ac_prog in cl.exe
18835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18836 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18838 $as_echo_n "checking for $ac_word... " >&6; }
18839 if ${ac_cv_prog_CC+:} false; then :
18840 $as_echo_n "(cached) " >&6
18842 if test -n "$CC"; then
18843 ac_cv_prog_CC="$CC" # Let the user override the test.
18845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18846 for as_dir in $PATH
18849 test -z "$as_dir" && as_dir=.
18850 for ac_exec_ext in '' $ac_executable_extensions; do
18851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18852 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18863 if test -n "$CC"; then
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18865 $as_echo "$CC" >&6; }
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18868 $as_echo "no" >&6; }
18872 test -n "$CC" && break
18875 if test -z "$CC"; then
18877 for ac_prog in cl.exe
18879 # Extract the first word of "$ac_prog", so it can be a program name with args.
18880 set dummy $ac_prog; ac_word=$2
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18882 $as_echo_n "checking for $ac_word... " >&6; }
18883 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18884 $as_echo_n "(cached) " >&6
18886 if test -n "$ac_ct_CC"; then
18887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18890 for as_dir in $PATH
18893 test -z "$as_dir" && as_dir=.
18894 for ac_exec_ext in '' $ac_executable_extensions; do
18895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18896 ac_cv_prog_ac_ct_CC="$ac_prog"
18897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18907 if test -n "$ac_ct_CC"; then
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18909 $as_echo "$ac_ct_CC" >&6; }
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18912 $as_echo "no" >&6; }
18916 test -n "$ac_ct_CC" && break
18919 if test "x$ac_ct_CC" = x; then
18922 case $cross_compiling:$ac_tool_warned in
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18926 ac_tool_warned=yes ;;
18935 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18937 as_fn_error $? "no acceptable C compiler found in \$PATH
18938 See \`config.log' for more details" "$LINENO" 5; }
18940 # Provide some information about the compiler.
18941 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18944 for ac_option in --version -v -V -qversion; do
18945 { { ac_try="$ac_compiler $ac_option >&5"
18946 case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18951 $as_echo "$ac_try_echo"; } >&5
18952 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18954 if test -s conftest.err; then
18956 ... rest of stderr output deleted ...
18957 10q' conftest.err >conftest.er1
18958 cat conftest.er1 >&5
18960 rm -f conftest.er1 conftest.err
18961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18962 test $ac_status = 0; }
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18966 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18967 if ${ac_cv_c_compiler_gnu+:} false; then :
18968 $as_echo_n "(cached) " >&6
18970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18971 /* end confdefs.h. */
18984 if ac_fn_c_try_compile "$LINENO"; then :
18985 ac_compiler_gnu=yes
18989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18990 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18994 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
18995 if test $ac_compiler_gnu = yes; then
19000 ac_test_CFLAGS=${CFLAGS+set}
19001 ac_save_CFLAGS=$CFLAGS
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19003 $as_echo_n "checking whether $CC accepts -g... " >&6; }
19004 if ${ac_cv_prog_cc_g+:} false; then :
19005 $as_echo_n "(cached) " >&6
19007 ac_save_c_werror_flag=$ac_c_werror_flag
19008 ac_c_werror_flag=yes
19011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19012 /* end confdefs.h. */
19022 if ac_fn_c_try_compile "$LINENO"; then :
19023 ac_cv_prog_cc_g=yes
19026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19027 /* end confdefs.h. */
19037 if ac_fn_c_try_compile "$LINENO"; then :
19040 ac_c_werror_flag=$ac_save_c_werror_flag
19042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19043 /* end confdefs.h. */
19053 if ac_fn_c_try_compile "$LINENO"; then :
19054 ac_cv_prog_cc_g=yes
19056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19061 ac_c_werror_flag=$ac_save_c_werror_flag
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
19064 $as_echo "$ac_cv_prog_cc_g" >&6; }
19065 if test "$ac_test_CFLAGS" = set; then
19066 CFLAGS=$ac_save_CFLAGS
19067 elif test $ac_cv_prog_cc_g = yes; then
19068 if test "$GCC" = yes; then
19074 if test "$GCC" = yes; then
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
19081 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
19082 if ${ac_cv_prog_cc_c89+:} false; then :
19083 $as_echo_n "(cached) " >&6
19085 ac_cv_prog_cc_c89=no
19087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088 /* end confdefs.h. */
19089 #include <stdarg.h>
19092 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19093 struct buf { int x; };
19094 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19095 static char *e (p, i)
19101 static char *f (char * (*g) (char **, int), char **p, ...)
19106 s = g (p, va_arg (v,int));
19111 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19112 function prototypes and stuff, but not '\xHH' hex character constants.
19113 These don't provoke an error unfortunately, instead are silently treated
19114 as 'x'. The following induces an error, until -std is added to get
19115 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19116 array size at least. It's necessary to write '\x00'==0 to get something
19117 that's true only with -std. */
19118 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19120 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19121 inside strings and character constants. */
19123 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19125 int test (int i, double x);
19126 struct s1 {int (*f) (int a);};
19127 struct s2 {int (*f) (double a);};
19128 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19134 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19139 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19140 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19142 CC="$ac_save_CC $ac_arg"
19143 if ac_fn_c_try_compile "$LINENO"; then :
19144 ac_cv_prog_cc_c89=$ac_arg
19146 rm -f core conftest.err conftest.$ac_objext
19147 test "x$ac_cv_prog_cc_c89" != "xno" && break
19149 rm -f conftest.$ac_ext
19154 case "x$ac_cv_prog_cc_c89" in
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19157 $as_echo "none needed" >&6; } ;;
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19160 $as_echo "unsupported" >&6; } ;;
19162 CC="$CC $ac_cv_prog_cc_c89"
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19164 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
19166 if test "x$ac_cv_prog_cc_c89" != xno; then :
19171 ac_cpp='$CPP $CPPFLAGS'
19172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19177 ac_cpp='$CPP $CPPFLAGS'
19178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
19182 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
19183 if ${am_cv_prog_cc_c_o+:} false; then :
19184 $as_echo_n "(cached) " >&6
19186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19187 /* end confdefs.h. */
19197 # Make sure it works both with $CC and with simple cc.
19198 # Following AC_PROG_CC_C_O, we do the test twice because some
19199 # compilers refuse to overwrite an existing .o file with -o,
19200 # though they will create one.
19201 am_cv_prog_cc_c_o=yes
19202 for am_i in 1 2; do
19203 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
19204 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } \
19208 && test -f conftest2.$ac_objext; then
19211 am_cv_prog_cc_c_o=no
19215 rm -f core conftest*
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
19219 $as_echo "$am_cv_prog_cc_c_o" >&6; }
19220 if test "$am_cv_prog_cc_c_o" != yes; then
19221 # Losing compiler, so override with the script.
19222 # FIXME: It is wrong to rewrite CC.
19223 # But if we don't then we get into trouble of one sort or another.
19224 # A longer-term fix would be to have automake use am__CC in this case,
19225 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19226 CC="$am_aux_dir/compile $CC"
19229 ac_cpp='$CPP $CPPFLAGS'
19230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19235 depcc="$CC" am_compiler_list=
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19238 $as_echo_n "checking dependency style of $depcc... " >&6; }
19239 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
19240 $as_echo_n "(cached) " >&6
19242 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19243 # We make a subdir and do the tests there. Otherwise we can end up
19244 # making bogus files that we don't know about and never remove. For
19245 # instance it was reported that on HP-UX the gcc test will end up
19246 # making a dummy file named 'D' -- because '-MD' means "put the output
19248 rm -rf conftest.dir
19250 # Copy depcomp to subdir because otherwise we won't find it if we're
19251 # using a relative directory.
19252 cp "$am_depcomp" conftest.dir
19254 # We will build objects and dependencies in a subdirectory because
19255 # it helps to detect inapplicable dependency modes. For instance
19256 # both Tru64's cc and ICC support -MD to output dependencies as a
19257 # side effect of compilation, but ICC will put the dependencies in
19258 # the current directory while Tru64 will put them in the object
19262 am_cv_CC_dependencies_compiler_type=none
19263 if test "$am_compiler_list" = ""; then
19264 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19266 am__universal=false
19267 case " $depcc " in #(
19268 *\ -arch\ *\ -arch\ *) am__universal=true ;;
19271 for depmode in $am_compiler_list; do
19272 # Setup a source with many dependencies, because some compilers
19273 # like to wrap large dependency lists on column 80 (with \), and
19274 # we should not choose a depcomp mode which is confused by this.
19276 # We need to recreate these files for each test, as the compiler may
19277 # overwrite some of them when testing with obscure command lines.
19278 # This happens at least with the AIX C compiler.
19280 for i in 1 2 3 4 5 6; do
19281 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19282 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
19283 # Solaris 10 /bin/sh.
19284 echo '/* dummy */' > sub/conftst$i.h
19286 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19288 # We check with '-c' and '-o' for the sake of the "dashmstdout"
19289 # mode. It turns out that the SunPro C++ compiler does not properly
19290 # handle '-M -o', and we need to detect this. Also, some Intel
19291 # versions had trouble with output in subdirs.
19292 am__obj=sub/conftest.${OBJEXT-o}
19293 am__minus_obj="-o $am__obj"
19296 # This depmode causes a compiler race in universal mode.
19297 test "$am__universal" = false || continue
19300 # After this tag, mechanisms are not by side-effect, so they'll
19301 # only be used when explicitly requested.
19302 if test "x$enable_dependency_tracking" = xyes; then
19308 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
19309 # This compiler won't grok '-c -o', but also, the minuso test has
19310 # not run yet. These depmodes are late enough in the game, and
19311 # so weak that their functioning should not be impacted.
19312 am__obj=conftest.${OBJEXT-o}
19317 if depmode=$depmode \
19318 source=sub/conftest.c object=$am__obj \
19319 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19320 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
19321 >/dev/null 2>conftest.err &&
19322 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19323 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19324 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
19325 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19326 # icc doesn't choke on unknown options, it will just issue warnings
19327 # or remarks (even with -Werror). So we grep stderr for any message
19328 # that says an option was ignored or not supported.
19329 # When given -MP, icc 7.0 and 7.1 complain thusly:
19330 # icc: Command line warning: ignoring option '-M'; no argument required
19331 # The diagnosis changed in icc 8.0:
19332 # icc: Command line remark: option '-MP' not supported
19333 if (grep 'ignoring option' conftest.err ||
19334 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19335 am_cv_CC_dependencies_compiler_type=$depmode
19342 rm -rf conftest.dir
19344 am_cv_CC_dependencies_compiler_type=none
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19349 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19350 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19353 test "x$enable_dependency_tracking" != xno \
19354 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19355 am__fastdepCC_TRUE=
19356 am__fastdepCC_FALSE='#'
19358 am__fastdepCC_TRUE='#'
19359 am__fastdepCC_FALSE=
19364 ac_config_files="$ac_config_files Makefile"
19366 cat >confcache <<\_ACEOF
19367 # This file is a shell script that caches the results of configure
19368 # tests run on this system so they can be shared between configure
19369 # scripts and configure runs, see configure's option --config-cache.
19370 # It is not useful on other systems. If it contains results you don't
19371 # want to keep, you may remove or edit it.
19373 # config.status only pays attention to the cache file if you give it
19374 # the --recheck option to rerun configure.
19376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19378 # following values.
19382 # The following way of writing the cache mishandles newlines in values,
19383 # but we know of no workaround that is simple, portable, and efficient.
19384 # So, we kill variables containing newlines.
19385 # Ultrix sh set writes to stderr and can't be redirected directly,
19386 # and sets the high bit in the cache file unless we assign to the vars.
19388 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19389 eval ac_val=\$$ac_var
19393 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19394 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19397 _ | IFS | as_nl) ;; #(
19398 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19399 *) { eval $ac_var=; unset $ac_var;} ;;
19405 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19406 *${as_nl}ac_space=\ *)
19407 # `set' does not quote correctly, so add quotes: double-quote
19408 # substitution turns \\\\ into \\, and sed turns \\ into \.
19411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19414 # `set' quotes correctly as required by POSIX, so do not add quotes.
19415 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19424 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19426 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19428 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19429 if test -w "$cache_file"; then
19430 if test "x$cache_file" != "x/dev/null"; then
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19432 $as_echo "$as_me: updating cache $cache_file" >&6;}
19433 if test ! -f "$cache_file" || test -h "$cache_file"; then
19434 cat confcache >"$cache_file"
19436 case $cache_file in #(
19438 mv -f confcache "$cache_file"$$ &&
19439 mv -f "$cache_file"$$ "$cache_file" ;; #(
19441 mv -f confcache "$cache_file" ;;
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19447 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19453 # Let make expand exec_prefix.
19454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19456 DEFS=-DHAVE_CONFIG_H
19461 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19462 # 1. Remove the extension, and $U if already installed.
19463 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19464 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19465 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19466 # will be set to the directory where LIBOBJS objects are built.
19467 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19468 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19470 LIBOBJS=$ac_libobjs
19472 LTLIBOBJS=$ac_ltlibobjs
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19476 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19477 if test -n "$am_sleep_pid"; then
19478 # Hide warnings about reused PIDs.
19479 wait $am_sleep_pid 2>/dev/null
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19482 $as_echo "done" >&6; }
19483 if test -n "$EXEEXT"; then
19485 am__EXEEXT_FALSE='#'
19487 am__EXEEXT_TRUE='#'
19491 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19492 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19495 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19496 as_fn_error $? "conditional \"AMDEP\" was never defined.
19497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19499 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19500 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19503 if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
19504 as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined.
19505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19507 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19508 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19512 : "${CONFIG_STATUS=./config.status}"
19514 ac_clean_files_save=$ac_clean_files
19515 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19517 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19519 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19521 # Generated by $as_me.
19522 # Run this file to recreate the current configuration.
19523 # Compiler output produced by configure, useful for debugging
19524 # configure, is in config.log if it exists.
19527 ac_cs_recheck=false
19530 SHELL=\${CONFIG_SHELL-$SHELL}
19533 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19534 ## -------------------- ##
19535 ## M4sh Initialization. ##
19536 ## -------------------- ##
19538 # Be more Bourne compatible
19539 DUALCASE=1; export DUALCASE # for MKS sh
19540 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19543 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19544 # is contrary to our usage. Disable this feature.
19545 alias -g '${1+"$@"}'='"$@"'
19546 setopt NO_GLOB_SUBST
19548 case `(set -o) 2>/dev/null` in #(
19560 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19561 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19562 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19563 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19564 # Prefer a ksh shell builtin over an external printf program on Solaris,
19565 # but without wasting forks for bash or zsh.
19566 if test -z "$BASH_VERSION$ZSH_VERSION" \
19567 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19568 as_echo='print -r --'
19569 as_echo_n='print -rn --'
19570 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19571 as_echo='printf %s\n'
19572 as_echo_n='printf %s'
19574 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19575 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19576 as_echo_n='/usr/ucb/echo -n'
19578 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19579 as_echo_n_body='eval
19583 expr "X$arg" : "X\\(.*\\)$as_nl";
19584 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19586 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19588 export as_echo_n_body
19589 as_echo_n='sh -c $as_echo_n_body as_echo'
19591 export as_echo_body
19592 as_echo='sh -c $as_echo_body as_echo'
19595 # The user is always right.
19596 if test "${PATH_SEPARATOR+set}" != set; then
19598 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19599 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19606 # We need space, tab and new line, in precisely that order. Quoting is
19607 # there to prevent editors from complaining about space-tab.
19608 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19609 # splitting by setting IFS to empty value.)
19612 # Find who we are. Look in the path if we contain no directory separator.
19615 *[\\/]* ) as_myself=$0 ;;
19616 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19617 for as_dir in $PATH
19620 test -z "$as_dir" && as_dir=.
19621 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19627 # We did not find ourselves, most probably we were run as `sh COMMAND'
19628 # in which case we are not to be found in the path.
19629 if test "x$as_myself" = x; then
19632 if test ! -f "$as_myself"; then
19633 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19637 # Unset variables that we do not need and which cause bugs (e.g. in
19638 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19639 # suppresses any "Segmentation fault" message there. '((' could
19640 # trigger a bug in pdksh 5.2.14.
19641 for as_var in BASH_ENV ENV MAIL MAILPATH
19642 do eval test x\${$as_var+set} = xset \
19643 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19656 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19659 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19660 # ----------------------------------------
19661 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19662 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19663 # script with STATUS, using 1 if that was 0.
19666 as_status=$1; test $as_status -eq 0 && as_status=1
19668 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19669 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19671 $as_echo "$as_me: error: $2" >&2
19672 as_fn_exit $as_status
19676 # as_fn_set_status STATUS
19677 # -----------------------
19678 # Set $? to STATUS, without forking.
19679 as_fn_set_status ()
19682 } # as_fn_set_status
19684 # as_fn_exit STATUS
19685 # -----------------
19686 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19690 as_fn_set_status $1
19696 # Portably unset VAR.
19699 { eval $1=; unset $1;}
19701 as_unset=as_fn_unset
19702 # as_fn_append VAR VALUE
19703 # ----------------------
19704 # Append the text in VALUE to the end of the definition contained in VAR. Take
19705 # advantage of any shell optimizations that allow amortized linear growth over
19706 # repeated appends, instead of the typical quadratic growth present in naive
19708 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19709 eval 'as_fn_append ()
19720 # as_fn_arith ARG...
19721 # ------------------
19722 # Perform arithmetic evaluation on the ARGs, and store the result in the
19723 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19724 # must be portable across $(()) and expr.
19725 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19726 eval 'as_fn_arith ()
19733 as_val=`expr "$@" || test $? -eq 1`
19738 if expr a : '\(a\)' >/dev/null 2>&1 &&
19739 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19745 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19746 as_basename=basename
19751 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19757 as_me=`$as_basename -- "$0" ||
19758 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19759 X"$0" : 'X\(//\)$' \| \
19760 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19762 sed '/^.*\/\([^/][^/]*\)\/*$/{
19776 # Avoid depending upon Character Ranges.
19777 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19778 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19779 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19780 as_cr_digits='0123456789'
19781 as_cr_alnum=$as_cr_Letters$as_cr_digits
19783 ECHO_C= ECHO_N= ECHO_T=
19784 case `echo -n x` in #(((((
19786 case `echo 'xy\c'` in
19787 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19789 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19796 rm -f conf$$ conf$$.exe conf$$.file
19797 if test -d conf$$.dir; then
19798 rm -f conf$$.dir/conf$$.file
19801 mkdir conf$$.dir 2>/dev/null
19803 if (echo >conf$$.file) 2>/dev/null; then
19804 if ln -s conf$$.file conf$$ 2>/dev/null; then
19806 # ... but there are two gotchas:
19807 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19808 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19809 # In both cases, we have to default to `cp -pR'.
19810 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19812 elif ln conf$$.file conf$$ 2>/dev/null; then
19820 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19821 rmdir conf$$.dir 2>/dev/null
19826 # Create "$as_dir" as a directory, including parents if necessary.
19831 -*) as_dir=./$as_dir;;
19833 test -d "$as_dir" || eval $as_mkdir_p || {
19837 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19838 *) as_qdir=$as_dir;;
19840 as_dirs="'$as_qdir' $as_dirs"
19841 as_dir=`$as_dirname -- "$as_dir" ||
19842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19843 X"$as_dir" : 'X\(//\)[^/]' \| \
19844 X"$as_dir" : 'X\(//\)$' \| \
19845 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19846 $as_echo X"$as_dir" |
19847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19851 /^X\(\/\/\)[^/].*/{
19864 test -d "$as_dir" && break
19866 test -z "$as_dirs" || eval "mkdir $as_dirs"
19867 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19871 if mkdir -p . 2>/dev/null; then
19872 as_mkdir_p='mkdir -p "$as_dir"'
19874 test -d ./-p && rmdir ./-p
19879 # as_fn_executable_p FILE
19880 # -----------------------
19881 # Test if FILE is an executable regular file.
19882 as_fn_executable_p ()
19884 test -f "$1" && test -x "$1"
19885 } # as_fn_executable_p
19886 as_test_x='test -x'
19887 as_executable_p=as_fn_executable_p
19889 # Sed expression to map a string onto a valid CPP name.
19890 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19892 # Sed expression to map a string onto a valid variable name.
19893 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19897 ## ----------------------------------- ##
19898 ## Main body of $CONFIG_STATUS script. ##
19899 ## ----------------------------------- ##
19901 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19904 # Save the log message, to keep $0 and so on meaningful, and to
19905 # report actual input values of CONFIG_FILES etc. instead of their
19906 # values after options handling.
19908 This file was extended by xf86-input-mtrack $as_me 0.2.0, which was
19909 generated by GNU Autoconf 2.69. Invocation command line was
19911 CONFIG_FILES = $CONFIG_FILES
19912 CONFIG_HEADERS = $CONFIG_HEADERS
19913 CONFIG_LINKS = $CONFIG_LINKS
19914 CONFIG_COMMANDS = $CONFIG_COMMANDS
19917 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19922 case $ac_config_files in *"
19923 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19926 case $ac_config_headers in *"
19927 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19932 # Files that config.status was made for.
19933 config_files="$ac_config_files"
19934 config_headers="$ac_config_headers"
19935 config_commands="$ac_config_commands"
19939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19941 \`$as_me' instantiates files and other configuration actions
19942 from templates according to the current configuration. Unless the files
19943 and actions are specified as TAGs, all are instantiated by default.
19945 Usage: $0 [OPTION]... [TAG]...
19947 -h, --help print this help, then exit
19948 -V, --version print version number and configuration settings, then exit
19949 --config print configuration, then exit
19950 -q, --quiet, --silent
19951 do not print progress messages
19952 -d, --debug don't remove temporary files
19953 --recheck update $as_me by reconfiguring in the same conditions
19954 --file=FILE[:TEMPLATE]
19955 instantiate the configuration file FILE
19956 --header=FILE[:TEMPLATE]
19957 instantiate the configuration header FILE
19959 Configuration files:
19962 Configuration headers:
19965 Configuration commands:
19968 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19972 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19974 xf86-input-mtrack config.status 0.2.0
19975 configured by $0, generated by GNU Autoconf 2.69,
19976 with options \\"\$ac_cs_config\\"
19978 Copyright (C) 2012 Free Software Foundation, Inc.
19979 This config.status script is free software; the Free Software Foundation
19980 gives unlimited permission to copy, distribute and modify it."
19987 test -n "\$AWK" || AWK=awk
19990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19991 # The default lists apply if the user does not specify any file.
19997 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19998 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20002 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20014 # Handling of the options.
20015 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20017 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20018 $as_echo "$ac_cs_version"; exit ;;
20019 --config | --confi | --conf | --con | --co | --c )
20020 $as_echo "$ac_cs_config"; exit ;;
20021 --debug | --debu | --deb | --de | --d | -d )
20023 --file | --fil | --fi | --f )
20026 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20027 '') as_fn_error $? "missing file argument" ;;
20029 as_fn_append CONFIG_FILES " '$ac_optarg'"
20030 ac_need_defaults=false;;
20031 --header | --heade | --head | --hea )
20034 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20036 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20037 ac_need_defaults=false;;
20039 # Conflict between --help and --header
20040 as_fn_error $? "ambiguous option: \`$1'
20041 Try \`$0 --help' for more information.";;
20042 --help | --hel | -h )
20043 $as_echo "$ac_cs_usage"; exit ;;
20044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20045 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20048 # This is an error.
20049 -*) as_fn_error $? "unrecognized option: \`$1'
20050 Try \`$0 --help' for more information." ;;
20052 *) as_fn_append ac_config_targets " $1"
20053 ac_need_defaults=false ;;
20059 ac_configure_extra_args=
20061 if $ac_cs_silent; then
20063 ac_configure_extra_args="$ac_configure_extra_args --silent"
20067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20068 if \$ac_cs_recheck; then
20069 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20071 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20072 CONFIG_SHELL='$SHELL'
20073 export CONFIG_SHELL
20078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20082 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20083 ## Running $as_me. ##
20089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20093 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20096 # The HP-UX ksh and POSIX shell print the target directory to stdout
20097 # if CDPATH is set.
20098 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20100 sed_quote_subst='$sed_quote_subst'
20101 double_quote_subst='$double_quote_subst'
20102 delay_variable_subst='$delay_variable_subst'
20103 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20104 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20105 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20106 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20107 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20108 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20109 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20110 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20111 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20112 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20113 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20114 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20115 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20116 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20117 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20118 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20119 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20120 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20121 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20122 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20123 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20124 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20125 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20126 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20127 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20128 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20129 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20130 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20131 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20132 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20133 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20134 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20135 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20136 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20137 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20138 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20139 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20140 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20141 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20142 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20143 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20144 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20145 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20146 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20147 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20148 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20149 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20150 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20151 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20152 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20153 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20154 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20155 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20156 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20157 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20158 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20159 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20160 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20161 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"`'
20162 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20163 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20164 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20165 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20166 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20167 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20168 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20169 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20170 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20171 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20172 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20173 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20174 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20175 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20176 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20177 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20178 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20179 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20180 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20181 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20182 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20183 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20184 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20185 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20186 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20187 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20188 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20189 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20190 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20191 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20192 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20193 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20194 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20195 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20196 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20197 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20198 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20199 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20200 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20201 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20202 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20203 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20204 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20205 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20206 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20207 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20208 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20209 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20210 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20211 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20212 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20213 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20214 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20215 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20216 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20217 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20218 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20219 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20220 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20221 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20222 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20223 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20224 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20225 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20226 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20227 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20228 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20229 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20230 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20231 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20232 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20233 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20234 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20235 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20236 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20237 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20240 LTCFLAGS='$LTCFLAGS'
20241 compiler='$compiler_DEFAULT'
20243 # A function that is used when there is no print builtin or printf.
20244 func_fallback_echo ()
20246 eval 'cat <<_LTECHO_EOF
20251 # Quote evaled strings.
20266 deplibs_check_method \
20271 sharedlib_from_linklib_cmd \
20274 archiver_list_spec \
20280 lt_cv_sys_global_symbol_pipe \
20281 lt_cv_sys_global_symbol_to_cdecl \
20282 lt_cv_sys_global_symbol_to_import \
20283 lt_cv_sys_global_symbol_to_c_name_address \
20284 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20285 lt_cv_nm_interface \
20286 nm_file_list_spec \
20287 lt_cv_truncate_bin \
20288 lt_prog_compiler_no_builtin_flag \
20289 lt_prog_compiler_pic \
20290 lt_prog_compiler_wl \
20291 lt_prog_compiler_static \
20292 lt_cv_prog_compiler_c_o \
20301 export_dynamic_flag_spec \
20302 whole_archive_flag_spec \
20303 compiler_needs_object \
20305 allow_undefined_flag \
20306 no_undefined_flag \
20307 hardcode_libdir_flag_spec \
20308 hardcode_libdir_separator \
20312 variables_saved_for_relink \
20314 library_names_spec \
20316 install_override_mode \
20320 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20321 *[\\\\\\\`\\"\\\$]*)
20322 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20325 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20330 # Double-quote double-evaled strings.
20331 for var in reload_cmds \
20332 old_postinstall_cmds \
20333 old_postuninstall_cmds \
20335 extract_expsyms_cmds \
20336 old_archive_from_new_cmds \
20337 old_archive_from_expsyms_cmds \
20339 archive_expsym_cmds \
20341 module_expsym_cmds \
20342 export_symbols_cmds \
20346 postuninstall_cmds \
20348 sys_lib_search_path_spec \
20349 configure_time_dlsearch_path \
20350 configure_time_lt_sys_library_path; do
20351 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20352 *[\\\\\\\`\\"\\\$]*)
20353 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20356 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20361 ac_aux_dir='$ac_aux_dir'
20363 # See if we are running on zsh, and set the options that allow our
20364 # commands through without removal of \ escapes INIT.
20365 if test -n "\${ZSH_VERSION+set}"; then
20366 setopt NO_GLOB_SUBST
20380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20382 # Handling of arguments.
20383 for ac_config_target in $ac_config_targets
20385 case $ac_config_target in
20386 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20387 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20388 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20389 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20391 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20396 # If the user did not use the arguments to specify the items to instantiate,
20397 # then the envvar interface is used. Set only those that are not.
20398 # We use the long form for the default assignment because of an extremely
20399 # bizarre bug on SunOS 4.1.3.
20400 if $ac_need_defaults; then
20401 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20402 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20403 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20406 # Have a temporary directory for convenience. Make it in the build tree
20407 # simply because there is no reason against having it here, and in addition,
20408 # creating and moving files from /tmp can sometimes cause problems.
20409 # Hook for its removal unless debugging.
20410 # Note that there is a small window in which the directory will not be cleaned:
20411 # after its creation but before its name has been assigned to `$tmp'.
20415 trap 'exit_status=$?
20416 : "${ac_tmp:=$tmp}"
20417 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20419 trap 'as_fn_exit 1' 1 2 13 15
20421 # Create a (secure) tmp directory for tmp files.
20424 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20428 tmp=./conf$$-$RANDOM
20429 (umask 077 && mkdir "$tmp")
20430 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20433 # Set up the scripts for CONFIG_FILES section.
20434 # No need to generate them if there are no CONFIG_FILES.
20435 # This happens for instance with `./config.status config.h'.
20436 if test -n "$CONFIG_FILES"; then
20439 ac_cr=`echo X | tr X '\015'`
20440 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20441 # But we know of no other shell where ac_cr would be empty at this
20442 # point, so we can use a bashism as a fallback.
20443 if test "x$ac_cr" = x; then
20444 eval ac_cr=\$\'\\r\'
20446 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20447 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20450 ac_cs_awk_cr=$ac_cr
20453 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20458 echo "cat >conf$$subs.awk <<_ACEOF" &&
20459 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20461 } >conf$$subs.sh ||
20462 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20463 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20465 for ac_last_try in false false false false false :; do
20466 . ./conf$$subs.sh ||
20467 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20469 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20470 if test $ac_delim_n = $ac_delim_num; then
20472 elif $ac_last_try; then
20473 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20475 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20478 rm -f conf$$subs.sh
20480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20481 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20485 s/^/S["/; s/!.*/"]=/
20495 s/\(.\{148\}\)..*/\1/
20497 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20502 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20509 s/\(.\{148\}\)..*/\1/
20511 s/["\\]/\\&/g; s/^/"/; s/$/"/
20515 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20520 ' <conf$$subs.awk | sed '
20525 ' >>$CONFIG_STATUS || ac_write_fail=1
20526 rm -f conf$$subs.awk
20527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20529 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20530 for (key in S) S_is_set[key] = 1
20536 nfields = split(line, field, "@")
20538 len = length(field[1])
20539 for (i = 2; i < nfields; i++) {
20541 keylen = length(key)
20542 if (S_is_set[key]) {
20544 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20545 len += length(value) + length(field[++i])
20556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20557 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20558 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20561 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20562 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20565 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20566 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20567 # trailing colons and then remove the whole line if VPATH becomes empty
20568 # (actually we leave an empty line to preserve line numbers).
20569 if test "x$srcdir" = x.; then
20570 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20589 fi # test -n "$CONFIG_FILES"
20591 # Set up the scripts for CONFIG_HEADERS section.
20592 # No need to generate them if there are no CONFIG_HEADERS.
20593 # This happens for instance with `./config.status Makefile'.
20594 if test -n "$CONFIG_HEADERS"; then
20595 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20599 # Transform confdefs.h into an awk script `defines.awk', embedded as
20600 # here-document in config.status, that substitutes the proper values into
20601 # config.h.in to produce config.h.
20603 # Create a delimiter string that does not exist in confdefs.h, to ease
20604 # handling of long lines.
20606 for ac_last_try in false false :; do
20607 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20608 if test -z "$ac_tt"; then
20610 elif $ac_last_try; then
20611 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20617 # For the awk script, D is an array of macro values keyed by name,
20618 # likewise P contains macro parameters if any. Preserve backslash
20619 # newline sequences.
20621 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20623 s/.\{148\}/&'"$ac_delim"'/g
20626 s/^[ ]*#[ ]*define[ ][ ]*/ /
20633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20635 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20640 D["\1"]=" \3\\\\\\n"\\/p
20642 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20647 s/.\{148\}/&'"$ac_delim"'/g
20652 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20655 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20657 ' <confdefs.h | sed '
20658 s/'"$ac_delim"'/"\\\
20659 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20662 for (key in D) D_is_set[key] = 1
20665 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20667 split(line, arg, " ")
20668 if (arg[1] == "#") {
20672 defundef = substr(arg[1], 2)
20675 split(mac1, mac2, "(") #)
20677 prefix = substr(line, 1, index(line, defundef) - 1)
20678 if (D_is_set[macro]) {
20679 # Preserve the white space surrounding the "#".
20680 print prefix "define", macro P[macro] D[macro]
20683 # Replace #undef with comments. This is necessary, for example,
20684 # in the case of _POSIX_SOURCE, which is predefined and required
20685 # on some systems where configure will not decide to define it.
20686 if (defundef == "undef") {
20687 print "/*", prefix defundef, macro, "*/"
20695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20696 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20697 fi # test -n "$CONFIG_HEADERS"
20700 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20705 :[FHLC]) ac_mode=$ac_tag; continue;;
20707 case $ac_mode$ac_tag in
20709 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20710 :[FH]-) ac_tag=-:-;;
20711 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20728 -) ac_f="$ac_tmp/stdin";;
20729 *) # Look for the file first in the build tree, then in the source tree
20730 # (if the path is not absolute). The absolute path cannot be DOS-style,
20731 # because $ac_f cannot contain `:'.
20735 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20737 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20739 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20740 as_fn_append ac_file_inputs " '$ac_f'"
20743 # Let's still pretend it is `configure' which instantiates (i.e., don't
20744 # use $as_me), people would be surprised to read:
20745 # /* config.h. Generated by config.status. */
20746 configure_input='Generated from '`
20747 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20749 if test x"$ac_file" != x-; then
20750 configure_input="$ac_file. $configure_input"
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20752 $as_echo "$as_me: creating $ac_file" >&6;}
20754 # Neutralize special characters interpreted by sed in replacement strings.
20755 case $configure_input in #(
20756 *\&* | *\|* | *\\* )
20757 ac_sed_conf_input=`$as_echo "$configure_input" |
20758 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20759 *) ac_sed_conf_input=$configure_input;;
20763 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20764 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20769 ac_dir=`$as_dirname -- "$ac_file" ||
20770 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20771 X"$ac_file" : 'X\(//\)[^/]' \| \
20772 X"$ac_file" : 'X\(//\)$' \| \
20773 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20774 $as_echo X"$ac_file" |
20775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20779 /^X\(\/\/\)[^/].*/{
20792 as_dir="$ac_dir"; as_fn_mkdir_p
20796 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20798 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20799 # A ".." for each directory in $ac_dir_suffix.
20800 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20801 case $ac_top_builddir_sub in
20802 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20803 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20806 ac_abs_top_builddir=$ac_pwd
20807 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20808 # for backward compatibility:
20809 ac_top_builddir=$ac_top_build_prefix
20812 .) # We are building in place.
20814 ac_top_srcdir=$ac_top_builddir_sub
20815 ac_abs_top_srcdir=$ac_pwd ;;
20816 [\\/]* | ?:[\\/]* ) # Absolute name.
20817 ac_srcdir=$srcdir$ac_dir_suffix;
20818 ac_top_srcdir=$srcdir
20819 ac_abs_top_srcdir=$srcdir ;;
20820 *) # Relative name.
20821 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20822 ac_top_srcdir=$ac_top_build_prefix$srcdir
20823 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20825 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20836 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20838 ac_MKDIR_P=$MKDIR_P
20840 [\\/$]* | ?:[\\/]* ) ;;
20841 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20846 # If the template does not know about datarootdir, expand it.
20847 # FIXME: This hack should be removed a few years after 2.60.
20848 ac_datarootdir_hack=; ac_datarootdir_seen=
20859 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20860 *datarootdir*) ac_datarootdir_seen=yes;;
20861 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20863 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20866 ac_datarootdir_hack='
20867 s&@datadir@&$datadir&g
20868 s&@docdir@&$docdir&g
20869 s&@infodir@&$infodir&g
20870 s&@localedir@&$localedir&g
20871 s&@mandir@&$mandir&g
20872 s&\\\${datarootdir}&$datarootdir&g' ;;
20876 # Neutralize VPATH when `$srcdir' = `.'.
20877 # Shell code in configure.ac might set extrasub.
20878 # FIXME: do we really want to maintain this feature?
20879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20880 ac_sed_extra="$ac_vpsub
20883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20886 s|@configure_input@|$ac_sed_conf_input|;t t
20887 s&@top_builddir@&$ac_top_builddir_sub&;t t
20888 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20889 s&@srcdir@&$ac_srcdir&;t t
20890 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20891 s&@top_srcdir@&$ac_top_srcdir&;t t
20892 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20893 s&@builddir@&$ac_builddir&;t t
20894 s&@abs_builddir@&$ac_abs_builddir&;t t
20895 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20896 s&@INSTALL@&$ac_INSTALL&;t t
20897 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20898 $ac_datarootdir_hack
20900 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20901 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20903 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20904 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20905 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20906 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20908 which seems to be undefined. Please make sure it is defined" >&5
20909 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20910 which seems to be undefined. Please make sure it is defined" >&2;}
20912 rm -f "$ac_tmp/stdin"
20914 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20915 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20917 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20923 if test x"$ac_file" != x-; then
20925 $as_echo "/* $configure_input */" \
20926 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20927 } >"$ac_tmp/config.h" \
20928 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20929 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20931 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20934 mv "$ac_tmp/config.h" "$ac_file" \
20935 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20938 $as_echo "/* $configure_input */" \
20939 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20940 || as_fn_error $? "could not create -" "$LINENO" 5
20942 # Compute "$ac_file"'s index in $config_headers.
20945 for _am_header in $config_headers :; do
20946 case $_am_header in
20947 $_am_arg | $_am_arg:* )
20950 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20953 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20954 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20955 X"$_am_arg" : 'X\(//\)[^/]' \| \
20956 X"$_am_arg" : 'X\(//\)$' \| \
20957 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20958 $as_echo X"$_am_arg" |
20959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20963 /^X\(\/\/\)[^/].*/{
20975 s/.*/./; q'`/stamp-h$_am_stamp_count
20978 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20979 $as_echo "$as_me: executing $ac_file commands" >&6;}
20984 case $ac_file$ac_mode in
20985 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20986 # Older Autoconf quotes --file arguments for eval, but not when files
20987 # are listed without --file. Let's play safe and only enable the eval
20988 # if we detect the quoting.
20989 case $CONFIG_FILES in
20990 *\'*) eval set x "$CONFIG_FILES" ;;
20991 *) set x $CONFIG_FILES ;;
20996 # Strip MF so we end up with the name of the file.
20997 mf=`echo "$mf" | sed -e 's/:.*$//'`
20998 # Check whether this is an Automake generated Makefile or not.
20999 # We used to match only the files named 'Makefile.in', but
21000 # some people rename them; so instead we look at the file content.
21001 # Grep'ing the first line is not enough: some people post-process
21002 # each Makefile.in and add a new line on top of each file to say so.
21003 # Grep'ing the whole file is not good either: AIX grep has a line
21004 # limit of 2048, but all sed's we know have understand at least 4000.
21005 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21006 dirpart=`$as_dirname -- "$mf" ||
21007 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21008 X"$mf" : 'X\(//\)[^/]' \| \
21009 X"$mf" : 'X\(//\)$' \| \
21010 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21016 /^X\(\/\/\)[^/].*/{
21032 # Extract the definition of DEPDIR, am__include, and am__quote
21033 # from the Makefile without running 'make'.
21034 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21035 test -z "$DEPDIR" && continue
21036 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21037 test -z "$am__include" && continue
21038 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21039 # Find all dependency output files, they are included files with
21040 # $(DEPDIR) in their names. We invoke sed twice because it is the
21041 # simplest approach to changing $(DEPDIR) to its actual value in the
21043 for file in `sed -n "
21044 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21045 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21046 # Make sure the directory exists.
21047 test -f "$dirpart/$file" && continue
21048 fdir=`$as_dirname -- "$file" ||
21049 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21050 X"$file" : 'X\(//\)[^/]' \| \
21051 X"$file" : 'X\(//\)$' \| \
21052 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21053 $as_echo X"$file" |
21054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21058 /^X\(\/\/\)[^/].*/{
21071 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21072 # echo "creating $dirpart/$file"
21073 echo '# dummy' > "$dirpart/$file"
21080 # See if we are running on zsh, and set the options that allow our
21081 # commands through without removal of \ escapes.
21082 if test -n "${ZSH_VERSION+set}"; then
21083 setopt NO_GLOB_SUBST
21087 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21090 cat <<_LT_EOF >> "$cfgfile"
21092 # Generated automatically by $as_me ($PACKAGE) $VERSION
21093 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21094 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21096 # Provide generalized library-building support services.
21097 # Written by Gordon Matzigkeit, 1996
21099 # Copyright (C) 2014 Free Software Foundation, Inc.
21100 # This is free software; see the source for copying conditions. There is NO
21101 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21103 # GNU Libtool is free software; you can redistribute it and/or modify
21104 # it under the terms of the GNU General Public License as published by
21105 # the Free Software Foundation; either version 2 of of the License, or
21106 # (at your option) any later version.
21108 # As a special exception to the GNU General Public License, if you
21109 # distribute this file as part of a program or library that is built
21110 # using GNU Libtool, you may include this file under the same
21111 # distribution terms that you use for the rest of that program.
21113 # GNU Libtool is distributed in the hope that it will be useful, but
21114 # WITHOUT ANY WARRANTY; without even the implied warranty of
21115 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21116 # GNU General Public License for more details.
21118 # You should have received a copy of the GNU General Public License
21119 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21122 # The names of the tagged configurations supported by this script.
21125 # Configured defaults for sys_lib_dlsearch_path munging.
21126 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21128 # ### BEGIN LIBTOOL CONFIG
21130 # Whether or not to build static libraries.
21131 build_old_libs=$enable_static
21133 # Which release of libtool.m4 was used?
21134 macro_version=$macro_version
21135 macro_revision=$macro_revision
21137 # Whether or not to build shared libraries.
21138 build_libtool_libs=$enable_shared
21140 # What type of objects to build.
21143 # Whether or not to optimize for fast installation.
21144 fast_install=$enable_fast_install
21146 # Shared archive member basename,for filename based shared library versioning on AIX.
21147 shared_archive_member_spec=$shared_archive_member_spec
21149 # Shell to use when invoking shell scripts.
21152 # An echo program that protects backslashes.
21155 # The PATH separator for the build system.
21156 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21159 host_alias=$host_alias
21163 # The build system.
21164 build_alias=$build_alias
21168 # A sed program that does not truncate output.
21171 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21172 Xsed="\$SED -e 1s/^X//"
21174 # A grep program that handles long lines.
21180 # A literal string matcher.
21183 # A BSD- or MS-compatible name lister.
21186 # Whether we need soft or hard links.
21189 # What is the maximum length of a command?
21190 max_cmd_len=$max_cmd_len
21192 # Object file suffix (normally "o").
21195 # Executable file suffix (normally "").
21198 # whether the shell understands "unset".
21201 # turn spaces into newlines.
21204 # turn newlines into spaces.
21207 # convert \$build file names to \$host format.
21208 to_host_file_cmd=$lt_cv_to_host_file_cmd
21210 # convert \$build files to toolchain format.
21211 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21213 # An object symbol dumper.
21214 OBJDUMP=$lt_OBJDUMP
21216 # Method to check whether dependent libraries are shared objects.
21217 deplibs_check_method=$lt_deplibs_check_method
21219 # Command to use when deplibs_check_method = "file_magic".
21220 file_magic_cmd=$lt_file_magic_cmd
21222 # How to find potential files when deplibs_check_method = "file_magic".
21223 file_magic_glob=$lt_file_magic_glob
21225 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21226 want_nocaseglob=$lt_want_nocaseglob
21228 # DLL creation program.
21229 DLLTOOL=$lt_DLLTOOL
21231 # Command to associate shared and link libraries.
21232 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21237 # Flags to create an archive.
21238 AR_FLAGS=$lt_AR_FLAGS
21240 # How to feed a file listing to the archiver.
21241 archiver_list_spec=$lt_archiver_list_spec
21243 # A symbol stripping program.
21246 # Commands used to install an old-style archive.
21248 old_postinstall_cmds=$lt_old_postinstall_cmds
21249 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21251 # Whether to use a lock for old archive extraction.
21252 lock_old_archive_extraction=$lock_old_archive_extraction
21257 # LTCC compiler flags.
21258 LTCFLAGS=$lt_CFLAGS
21260 # Take the output of nm and produce a listing of raw symbols and C names.
21261 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21263 # Transform the output of nm in a proper C declaration.
21264 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21266 # Transform the output of nm into a list of symbols to manually relocate.
21267 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21269 # Transform the output of nm in a C name address pair.
21270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21272 # Transform the output of nm in a C name address pair when lib prefix is needed.
21273 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21275 # The name lister interface.
21276 nm_interface=$lt_lt_cv_nm_interface
21278 # Specify filename containing input files for \$NM.
21279 nm_file_list_spec=$lt_nm_file_list_spec
21281 # The root where to search for dependent libraries,and where our libraries should be installed.
21282 lt_sysroot=$lt_sysroot
21284 # Command to truncate a binary pipe.
21285 lt_truncate_bin=$lt_lt_cv_truncate_bin
21287 # The name of the directory that contains temporary libtool files.
21290 # Used to examine libraries when file_magic_cmd begins with "file".
21291 MAGIC_CMD=$MAGIC_CMD
21293 # Must we lock files when doing compilation?
21294 need_locks=$lt_need_locks
21297 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21299 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21300 DSYMUTIL=$lt_DSYMUTIL
21302 # Tool to change global to local symbols on Mac OS X.
21305 # Tool to manipulate fat objects and archives on Mac OS X.
21308 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21311 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21312 OTOOL64=$lt_OTOOL64
21314 # Old archive suffix (normally "a").
21317 # Shared library suffix (normally ".so").
21318 shrext_cmds=$lt_shrext_cmds
21320 # The commands to extract the exported symbol list from a shared archive.
21321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21323 # Variables whose values should be saved in libtool wrapper scripts and
21324 # restored at link time.
21325 variables_saved_for_relink=$lt_variables_saved_for_relink
21327 # Do we need the "lib" prefix for modules?
21328 need_lib_prefix=$need_lib_prefix
21330 # Do we need a version for libraries?
21331 need_version=$need_version
21333 # Library versioning type.
21334 version_type=$version_type
21336 # Shared library runtime path variable.
21337 runpath_var=$runpath_var
21339 # Shared library path variable.
21340 shlibpath_var=$shlibpath_var
21342 # Is shlibpath searched before the hard-coded library search path?
21343 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21345 # Format of library name prefix.
21346 libname_spec=$lt_libname_spec
21348 # List of archive names. First name is the real one, the rest are links.
21349 # The last name is the one that the linker finds with -lNAME
21350 library_names_spec=$lt_library_names_spec
21352 # The coded name of the library, if different from the real name.
21353 soname_spec=$lt_soname_spec
21355 # Permission mode override for installation of shared libraries.
21356 install_override_mode=$lt_install_override_mode
21358 # Command to use after installation of a shared archive.
21359 postinstall_cmds=$lt_postinstall_cmds
21361 # Command to use after uninstallation of a shared archive.
21362 postuninstall_cmds=$lt_postuninstall_cmds
21364 # Commands used to finish a libtool library installation in a directory.
21365 finish_cmds=$lt_finish_cmds
21367 # As "finish_cmds", except a single script fragment to be evaled but
21369 finish_eval=$lt_finish_eval
21371 # Whether we should hardcode library paths into libraries.
21372 hardcode_into_libs=$hardcode_into_libs
21374 # Compile-time system search path for libraries.
21375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21377 # Detected run-time system search path for libraries.
21378 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21380 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21381 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21383 # Whether dlopen is supported.
21384 dlopen_support=$enable_dlopen
21386 # Whether dlopen of programs is supported.
21387 dlopen_self=$enable_dlopen_self
21389 # Whether dlopen of statically linked programs is supported.
21390 dlopen_self_static=$enable_dlopen_self_static
21392 # Commands to strip libraries.
21393 old_striplib=$lt_old_striplib
21394 striplib=$lt_striplib
21397 # The linker used to build libraries.
21400 # How to create reloadable object files.
21401 reload_flag=$lt_reload_flag
21402 reload_cmds=$lt_reload_cmds
21404 # Commands used to build an old-style archive.
21405 old_archive_cmds=$lt_old_archive_cmds
21407 # A language specific compiler.
21410 # Is the compiler the GNU compiler?
21413 # Compiler flag to turn off builtin functions.
21414 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21416 # Additional compiler flags for building library objects.
21417 pic_flag=$lt_lt_prog_compiler_pic
21419 # How to pass a linker flag through the compiler.
21420 wl=$lt_lt_prog_compiler_wl
21422 # Compiler flag to prevent dynamic linking.
21423 link_static_flag=$lt_lt_prog_compiler_static
21425 # Does compiler simultaneously support -c and -o options?
21426 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21428 # Whether or not to add -lc for building shared libraries.
21429 build_libtool_need_lc=$archive_cmds_need_lc
21431 # Whether or not to disallow shared libs when runtime libs are static.
21432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21434 # Compiler flag to allow reflexive dlopens.
21435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21437 # Compiler flag to generate shared objects directly from archives.
21438 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21440 # Whether the compiler copes with passing no objects directly.
21441 compiler_needs_object=$lt_compiler_needs_object
21443 # Create an old-style archive from a shared archive.
21444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21446 # Create a temporary old-style archive to link instead of a shared archive.
21447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21449 # Commands used to build a shared archive.
21450 archive_cmds=$lt_archive_cmds
21451 archive_expsym_cmds=$lt_archive_expsym_cmds
21453 # Commands used to build a loadable module if different from building
21454 # a shared archive.
21455 module_cmds=$lt_module_cmds
21456 module_expsym_cmds=$lt_module_expsym_cmds
21458 # Whether we are building with GNU ld or not.
21459 with_gnu_ld=$lt_with_gnu_ld
21461 # Flag that allows shared libraries with undefined symbols to be built.
21462 allow_undefined_flag=$lt_allow_undefined_flag
21464 # Flag that enforces no undefined symbols.
21465 no_undefined_flag=$lt_no_undefined_flag
21467 # Flag to hardcode \$libdir into a binary during linking.
21468 # This must work even if \$libdir does not exist
21469 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21471 # Whether we need a single "-rpath" flag with a separated argument.
21472 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21474 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21475 # DIR into the resulting binary.
21476 hardcode_direct=$hardcode_direct
21478 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21479 # DIR into the resulting binary and the resulting library dependency is
21480 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21481 # library is relocated.
21482 hardcode_direct_absolute=$hardcode_direct_absolute
21484 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21485 # into the resulting binary.
21486 hardcode_minus_L=$hardcode_minus_L
21488 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21489 # into the resulting binary.
21490 hardcode_shlibpath_var=$hardcode_shlibpath_var
21492 # Set to "yes" if building a shared library automatically hardcodes DIR
21493 # into the library and all subsequent libraries and executables linked
21495 hardcode_automatic=$hardcode_automatic
21497 # Set to yes if linker adds runtime paths of dependent libraries
21498 # to runtime path list.
21499 inherit_rpath=$inherit_rpath
21501 # Whether libtool must link a program against all its dependency libraries.
21502 link_all_deplibs=$link_all_deplibs
21504 # Set to "yes" if exported symbols are required.
21505 always_export_symbols=$always_export_symbols
21507 # The commands to list exported symbols.
21508 export_symbols_cmds=$lt_export_symbols_cmds
21510 # Symbols that should not be listed in the preloaded symbols.
21511 exclude_expsyms=$lt_exclude_expsyms
21513 # Symbols that must always be exported.
21514 include_expsyms=$lt_include_expsyms
21516 # Commands necessary for linking programs (against libraries) with templates.
21517 prelink_cmds=$lt_prelink_cmds
21519 # Commands necessary for finishing linking programs.
21520 postlink_cmds=$lt_postlink_cmds
21522 # Specify filename containing input files.
21523 file_list_spec=$lt_file_list_spec
21525 # How to hardcode a shared library path into an executable.
21526 hardcode_action=$hardcode_action
21528 # ### END LIBTOOL CONFIG
21532 cat <<'_LT_EOF' >> "$cfgfile"
21534 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21536 # func_munge_path_list VARIABLE PATH
21537 # -----------------------------------
21538 # VARIABLE is name of variable containing _space_ separated list of
21539 # directories to be munged by the contents of PATH, which is string
21542 # string "DIR[ DIR]" will be prepended to VARIABLE
21544 # string "DIR[ DIR]" will be appended to VARIABLE
21545 # "DIRP[:DIRP]::[DIRA:]DIRA"
21546 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21547 # "DIRA[ DIRA]" will be appended to VARIABLE
21549 # VARIABLE will be replaced by "DIR[ DIR]"
21550 func_munge_path_list ()
21556 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21559 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21562 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21563 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21566 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21572 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21573 func_cc_basename ()
21575 for cc_temp in $*""; do
21577 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21578 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21583 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21587 # ### END FUNCTIONS SHARED WITH CONFIGURE
21593 cat <<\_LT_EOF >> "$cfgfile"
21594 # AIX sometimes has problems with the GCC collect2 program. For some
21595 # reason, if we set the COLLECT_NAMES environment variable, the problems
21596 # vanish in a puff of smoke.
21597 if test set != "${COLLECT_NAMES+set}"; then
21599 export COLLECT_NAMES
21606 ltmain=$ac_aux_dir/ltmain.sh
21609 # We use sed instead of cat because bash on DJGPP gets confused if
21610 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21611 # text mode, it properly converts lines to CR/LF. This bash problem
21612 # is reportedly fixed, but why not run on old versions too?
21613 sed '$q' "$ltmain" >> "$cfgfile" \
21614 || (rm -f "$cfgfile"; exit 1)
21616 mv -f "$cfgfile" "$ofile" ||
21617 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21628 ac_clean_files=$ac_clean_files_save
21630 test $ac_write_fail = 0 ||
21631 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21634 # configure is writing to config.log, and then calls config.status.
21635 # config.status does its own redirection, appending to config.log.
21636 # Unfortunately, on DOS this fails, as config.log is still kept open
21637 # by configure, so config.status won't be able to write to it; its
21638 # output is simply discarded. So we exec the FD to /dev/null,
21639 # effectively closing config.log, so it can be properly (re)opened and
21640 # appended to by config.status. When coming back to configure, we
21641 # need to make the FD available again.
21642 if test "$no_create" != yes; then
21644 ac_config_status_args=
21645 test "$silent" = yes &&
21646 ac_config_status_args="$ac_config_status_args --quiet"
21648 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21650 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21651 # would make configure fail if this is the last instruction.
21652 $ac_cs_success || as_fn_exit 1
21654 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21656 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}